@microblink/capture 1.1.1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,32 @@
1
- (function(Ne,Gt){typeof exports=="object"&&typeof module<"u"?Gt(exports):typeof define=="function"&&define.amd?define(["exports"],Gt):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Gt(Ne.capture={}))})(this,function(Ne){"use strict";typeof HTMLVideoElement<"u"&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(e){const t=performance.now(),n=this.getVideoPlaybackQuality(),i=this.mozPresentedFrames||this.mozPaintedFrames||n.totalVideoFrames-n.droppedVideoFrames,r=(o,s)=>{const a=this.getVideoPlaybackQuality(),c=this.mozPresentedFrames||this.mozPaintedFrames||a.totalVideoFrames-a.droppedVideoFrames;if(c>i){const u=this.mozFrameDelay||a.totalFrameDelay-n.totalFrameDelay||0,l=s-o;e(s,{presentationTime:s+u*1e3,expectedDisplayTime:s+l,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+l/1e3,presentedFrames:c,processingDuration:u}),delete this._rvfcpolyfillmap[t]}else this._rvfcpolyfillmap[t]=requestAnimationFrame(u=>r(s,u))};return this._rvfcpolyfillmap[t]=requestAnimationFrame(o=>r(t,o)),t},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(e){cancelAnimationFrame(this._rvfcpolyfillmap[e]),delete this._rvfcpolyfillmap[e]});/**
1
+ (function(me,Qt){typeof exports=="object"&&typeof module<"u"?Qt(exports):typeof define=="function"&&define.amd?define(["exports"],Qt):(me=typeof globalThis<"u"?globalThis:me||self,Qt(me.capture={}))})(this,function(me){"use strict";typeof HTMLVideoElement<"u"&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(e){const t=performance.now(),n=this.getVideoPlaybackQuality(),i=this.mozPresentedFrames||this.mozPaintedFrames||n.totalVideoFrames-n.droppedVideoFrames,r=(o,s)=>{const a=this.getVideoPlaybackQuality(),c=this.mozPresentedFrames||this.mozPaintedFrames||a.totalVideoFrames-a.droppedVideoFrames;if(c>i){const u=this.mozFrameDelay||a.totalFrameDelay-n.totalFrameDelay||0,l=s-o;e(s,{presentationTime:s+u*1e3,expectedDisplayTime:s+l,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+l/1e3,presentedFrames:c,processingDuration:u}),delete this._rvfcpolyfillmap[t]}else this._rvfcpolyfillmap[t]=requestAnimationFrame(u=>r(s,u))};return this._rvfcpolyfillmap[t]=requestAnimationFrame(o=>r(t,o)),t},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(e){cancelAnimationFrame(this._rvfcpolyfillmap[e]),delete this._rvfcpolyfillmap[e]});/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
- */const Gt=Symbol("Comlink.proxy"),Tu=Symbol("Comlink.endpoint"),Lu=Symbol("Comlink.releaseProxy"),Qi=Symbol("Comlink.finalizer"),$n=Symbol("Comlink.thrown"),Yo=e=>typeof e=="object"&&e!==null||typeof e=="function",ju={canHandle:e=>Yo(e)&&e[Gt],serialize(e){const{port1:t,port2:n}=new MessageChannel;return Ro(e,t),[n,[n]]},deserialize(e){return e.start(),Bo(e)}},Au={canHandle:e=>Yo(e)&&$n in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Po=new Map([["proxy",ju],["throw",Au]]);function Eu(e,t){for(const n of e)if(t===n||n==="*"||n instanceof RegExp&&n.test(t))return!0;return!1}function Ro(e,t=globalThis,n=["*"]){t.addEventListener("message",function i(r){if(!r||!r.data)return;if(!Eu(n,r.origin)){console.warn(`Invalid origin '${r.origin}' for comlink proxy`);return}const{id:o,type:s,path:a}=Object.assign({path:[]},r.data),c=(r.data.argumentList||[]).map(Ot);let u;try{const l=a.slice(0,-1).reduce((f,h)=>f[h],e),g=a.reduce((f,h)=>f[h],e);switch(s){case"GET":u=g;break;case"SET":l[a.slice(-1)[0]]=Ot(r.data.value),u=!0;break;case"APPLY":u=g.apply(l,c);break;case"CONSTRUCT":{const f=new g(...c);u=xu(f)}break;case"ENDPOINT":{const{port1:f,port2:h}=new MessageChannel;Ro(e,h),u=Vo(f,[f])}break;case"RELEASE":u=void 0;break;default:return}}catch(l){u={value:l,[$n]:0}}Promise.resolve(u).catch(l=>({value:l,[$n]:0})).then(l=>{const[g,f]=Xn(l);t.postMessage(Object.assign(Object.assign({},g),{id:o}),f),s==="RELEASE"&&(t.removeEventListener("message",i),Fo(t),Qi in e&&typeof e[Qi]=="function"&&e[Qi]())}).catch(l=>{const[g,f]=Xn({value:new TypeError("Unserializable return value"),[$n]:0});t.postMessage(Object.assign(Object.assign({},g),{id:o}),f)})}),t.start&&t.start()}function Su(e){return e.constructor.name==="MessagePort"}function Fo(e){Su(e)&&e.close()}function Bo(e,t){return Gi(e,[],t)}function Wn(e){if(e)throw new Error("Proxy has been released and is not useable")}function Ho(e){return Vt(e,{type:"RELEASE"}).then(()=>{Fo(e)})}const Zn=new WeakMap,qn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Zn.get(e)||0)-1;Zn.set(e,t),t===0&&Ho(e)});function pu(e,t){const n=(Zn.get(t)||0)+1;Zn.set(t,n),qn&&qn.register(e,t,e)}function Iu(e){qn&&qn.unregister(e)}function Gi(e,t=[],n=function(){}){let i=!1;const r=new Proxy(n,{get(o,s){if(Wn(i),s===Lu)return()=>{Iu(r),Ho(e),i=!0};if(s==="then"){if(t.length===0)return{then:()=>r};const a=Vt(e,{type:"GET",path:t.map(c=>c.toString())}).then(Ot);return a.then.bind(a)}return Gi(e,[...t,s])},set(o,s,a){Wn(i);const[c,u]=Xn(a);return Vt(e,{type:"SET",path:[...t,s].map(l=>l.toString()),value:c},u).then(Ot)},apply(o,s,a){Wn(i);const c=t[t.length-1];if(c===Tu)return Vt(e,{type:"ENDPOINT"}).then(Ot);if(c==="bind")return Gi(e,t.slice(0,-1));const[u,l]=Qo(a);return Vt(e,{type:"APPLY",path:t.map(g=>g.toString()),argumentList:u},l).then(Ot)},construct(o,s){Wn(i);const[a,c]=Qo(s);return Vt(e,{type:"CONSTRUCT",path:t.map(u=>u.toString()),argumentList:a},c).then(Ot)}});return pu(r,e),r}function wu(e){return Array.prototype.concat.apply([],e)}function Qo(e){const t=e.map(Xn);return[t.map(n=>n[0]),wu(t.map(n=>n[1]))]}const Go=new WeakMap;function Vo(e,t){return Go.set(e,t),e}function xu(e){return Object.assign(e,{[Gt]:!0})}function Xn(e){for(const[t,n]of Po)if(n.canHandle(e)){const[i,r]=n.serialize(e);return[{type:"HANDLER",name:t,value:i},r]}return[{type:"RAW",value:e},Go.get(e)||[]]}function Ot(e){switch(e.type){case"HANDLER":return Po.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Vt(e,t,n){return new Promise(i=>{const r=Du();e.addEventListener("message",function o(s){!s.data||!s.data.id||s.data.id!==r||(e.removeEventListener("message",o),i(s.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:r},t),n)})}function Du(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var Vi=(e=>(e[e.Invalid=0]="Invalid",e[e.RequiresServerPermission=1]="RequiresServerPermission",e[e.Valid=2]="Valid",e))(Vi||{}),Ki=(e=>(e[e.Ok=0]="Ok",e[e.NetworkError=1]="NetworkError",e[e.RemoteLock=2]="RemoteLock",e[e.PermissionExpired=3]="PermissionExpired",e[e.PayloadCorrupted=4]="PayloadCorrupted",e[e.PayloadSignatureVerificationFailed=5]="PayloadSignatureVerificationFailed",e[e.IncorrectTokenState=6]="IncorrectTokenState",e))(Ki||{});const Ko=Element.prototype.attachShadow;function $i(){return typeof window.ShadyDOM<"u"&&typeof ShadowRoot<"u"}function bu(){return typeof ShadowRoot<"u"}function vu(e){Ko==null||$i()||(Element.prototype.attachShadow=function(t){const n=Ko.call(this,t);return e(n),n})}function Ou(e,...t){const n=new Set(t);let i=!1;const r=()=>{for(const o of n)e(o);n.clear()};return{isRunning(){return i},schedule(o){n.add(o),i&&r()},stop(){i=!1},run(){i||(i=!0,r())}}}const Cu={childList:!0,subtree:!0},zu=e=>{typeof queueMicrotask<"u"?queueMicrotask(e):typeof Promise<"u"?Promise.resolve().then(()=>e()):setTimeout(()=>e(),0)};function $o(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null)return[...e];{const t=[];for(let n=0;n<e.length;n++)t[n]=e[n];return t}}function _u(e,t){return $i()?new Set($o(window.ShadyDOM.nativeMethods.querySelectorAll.call(document.documentElement,t))):new Set("querySelectorAll"in e?$o(e.querySelectorAll(t)):[])}function ku(e,t){return new Set([...e??[],...t??[]])}function Uu(e){return"activeElement"in e}function Wo(e=document.documentElement){if(Uu(e)&&Zo(e),$i()&&e instanceof ShadowRoot||!bu())return;const t=e.childNodes,n="shadowRoot"in e&&e.shadowRoot!=null?[e.shadowRoot]:[];for(const i of[...t,...n])Wo(i)}function Yu(e){return"isConnected"in Node.prototype?e.isConnected:e.ownerDocument==null||!(e.ownerDocument.compareDocumentPosition(e)&e.DOCUMENT_POSITION_DISCONNECTED)}const An=new Map;function Pu(e,t){const n=new Set,i=new Set,r=new Map,o=new WeakMap;let s=!1,a=!1,c=!1;const u=()=>{a=!0;const T=[...n];T.length>0&&t(T,e),n.clear(),s=!1,a=!1},l=()=>{s||(s=!0,zu(u))},g=T=>{n.add(T),a||l()},f=()=>{const T=[...n];return n.clear(),T},h=()=>{i.clear()},d=(T,N)=>{let j=r.get(T);const A=_u(T,N),E=j?.get(N),S=ku(A,E);M(S),j==null&&(j=new Map,r.set(T,j)),j.set(N,A)},M=T=>{for(const N of T){const j=o.get(N),A=Yu(N);j!==A&&(o.set(N,A),g({connected:A,target:N}))}},m={observedTargets:i,queryRootAndHandleMutationChanges:d,handleMutationChange:M,addObservedTarget:T=>{if(Zi.run(),c||(c=!0,Wo()),i.add(T),typeof T!="string")M([T]);else for(const N of Wi)d(N,T)},clearObservedTargets:h,clearQueue:f};An.set(e,m)}const Ru=e=>{for(const t of e)if(t.type==="childList")for(const n of An.values())for(const i of n.observedTargets)typeof i=="string"?n.queryRootAndHandleMutationChanges(t.target,i):n.handleMutationChange([i])},Wi=new Set,Zo=(()=>{let e;return function(t){Wi.has(t)||(Wi.add(t),e==null&&(e=new MutationObserver(Ru)),e.observe(t,Cu))}})(),Zi=Ou(Zo,document.documentElement);class Ct{constructor(t){if(new.target===void 0)throw new TypeError(`Constructor ${Ct.name} requires 'new'`);if(t===void 0)throw new ReferenceError(`Failed to construct '${Ct.name}': 1 argument required, but only 0 present.`);if(typeof t!="function")throw new TypeError(`Failed to construct '${Ct.name}': The callback provided as parameter 1 is not a function.`);Pu(this,t)}get[Symbol.toStringTag](){return"ConnectionObserver"}observe(t){if(t===void 0)throw new ReferenceError(`Failed to execute '${this.observe.name}' on '${Ct.name}': 1 argument required, but only 0 present.`);if(typeof t!="string"&&!(t instanceof Node))throw new TypeError(`Failed to execute '${this.observe.name}' on '${Ct.name}': parameter 1 is not of type 'Node' or a DOMString.`);const n=An.get(this);n?.addObservedTarget(t)}takeRecords(){const t=An.get(this);return t==null?[]:t.clearQueue()}disconnect(){const t=An.get(this);t?.clearObservedTargets()}}vu(Zi.schedule.bind(Zi));var Fu=function(){function e(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Bu=Hu(["",""],["",""]);function Hu(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Qu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var we=function(){function e(){for(var t=this,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return Qu(this,e),this.tag=function(o){for(var s=arguments.length,a=Array(s>1?s-1:0),c=1;c<s;c++)a[c-1]=arguments[c];return typeof o=="function"?t.interimTag.bind(t,o):typeof o=="string"?t.transformEndResult(o):(o=o.map(t.transformString.bind(t)),t.transformEndResult(o.reduce(t.processSubstitutions.bind(t,a))))},i.length>0&&Array.isArray(i[0])&&(i=i[0]),this.transformers=i.map(function(o){return typeof o=="function"?o():o}),this.tag}return Fu(e,[{key:"interimTag",value:function(n,i){for(var r=arguments.length,o=Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return this.tag(Bu,n.apply(void 0,[i].concat(o)))}},{key:"processSubstitutions",value:function(n,i,r){var o=this.transformSubstitution(n.shift(),i);return"".concat(i,o,r)}},{key:"transformString",value:function(n){var i=function(o,s){return s.onString?s.onString(o):o};return this.transformers.reduce(i,n)}},{key:"transformSubstitution",value:function(n,i){var r=function(s,a){return a.onSubstitution?a.onSubstitution(s,i):s};return this.transformers.reduce(r,n)}},{key:"transformEndResult",value:function(n){var i=function(o,s){return s.onEndResult?s.onEndResult(o):o};return this.transformers.reduce(i,n)}}]),e}(),xe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return{onEndResult:function(i){if(t==="")return i.trim();if(t=t.toLowerCase(),t==="start"||t==="left")return i.replace(/^\s*/,"");if(t==="end"||t==="right")return i.replace(/\s*$/,"");throw new Error("Side not supported: "+t)}}};function Gu(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var mt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";return{onEndResult:function(i){if(t==="initial"){var r=i.match(/^[^\S\n]*(?=\S)/gm),o=r&&Math.min.apply(Math,Gu(r.map(function(a){return a.length})));if(o){var s=new RegExp("^.{"+o+"}","gm");return i.replace(s,"")}return i}if(t==="all")return i.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+t)}}},Kt=function(t,n){return{onEndResult:function(r){if(t==null||n==null)throw new Error("replaceResultTransformer requires at least 2 arguments.");return r.replace(t,n)}}},$t=function(t,n){return{onSubstitution:function(r,o){if(t==null||n==null)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return r==null?r:r.toString().replace(t,n)}}},Vu={separator:"",conjunction:"",serial:!1},tt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vu;return{onSubstitution:function(i,r){if(Array.isArray(i)){var o=i.length,s=t.separator,a=t.conjunction,c=t.serial,u=r.match(/(\n?[^\S\n]+)$/);if(u?i=i.join(s+u[1]):i=i.join(s+" "),a&&o>1){var l=i.lastIndexOf(s);i=i.slice(0,l)+(c?s:"")+" "+a+i.slice(l+1)}}return i}}},qo=function(t){return{onSubstitution:function(i,r){if(t!=null&&typeof t=="string")typeof i=="string"&&i.includes(t)&&(i=i.split(t));else throw new Error("You need to specify a string character to split by.");return i}}},Xo=function(t){return t!=null&&!Number.isNaN(t)&&typeof t!="boolean"},Ku=function(){return{onSubstitution:function(n){return Array.isArray(n)?n.filter(Xo):Xo(n)?n:""}}};new we(tt({separator:","}),mt,xe),new we(tt({separator:",",conjunction:"and"}),mt,xe),new we(tt({separator:",",conjunction:"or"}),mt,xe),new we(qo(`
6
- `),Ku,tt,mt,xe),new we(qo(`
7
- `),tt,mt,xe,$t(/&/g,"&amp;"),$t(/</g,"&lt;"),$t(/>/g,"&gt;"),$t(/"/g,"&quot;"),$t(/'/g,"&#x27;"),$t(/`/g,"&#x60;")),new we(Kt(/(?:\n(?:\s*))+/g," "),xe),new we(Kt(/(?:\n\s*)/g,""),xe),new we(tt({separator:","}),Kt(/(?:\s+)/g," "),xe),new we(tt({separator:",",conjunction:"or"}),Kt(/(?:\s+)/g," "),xe),new we(tt({separator:",",conjunction:"and"}),Kt(/(?:\s+)/g," "),xe),new we(tt,mt,xe),new we(tt,Kt(/(?:\s+)/g," "),xe),new we(mt,xe);var qi=new we(mt("all"),xe),$u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xi={exports:{}};(function(e,t){(function(n,i){var r="1.0.36",o="",s="?",a="function",c="undefined",u="object",l="string",g="major",f="model",h="name",d="type",M="vendor",y="version",m="architecture",T="console",N="mobile",j="tablet",A="smarttv",E="wearable",S="embedded",I=350,z="Amazon",C="Apple",R="ASUS",F="BlackBerry",x="Browser",D="Chrome",b="Edge",w="Firefox",v="Google",O="Huawei",_="LG",$="Microsoft",X="Motorola",se="Opera",Se="Samsung",at="Sharp",Je="Sony",U="Xiaomi",de="Zebra",fe="Facebook",Bt="Chromium OS",Gn="Mac OS",Ht=function(W,re){var Q={};for(var ce in W)re[ce]&&re[ce].length%2===0?Q[ce]=re[ce].concat(W[ce]):Q[ce]=W[ce];return Q},Qt=function(W){for(var re={},Q=0;Q<W.length;Q++)re[W[Q].toUpperCase()]=W[Q];return re},Bi=function(W,re){return typeof W===l?Vn(re).indexOf(Vn(W))!==-1:!1},Vn=function(W){return W.toLowerCase()},Cy=function(W){return typeof W===l?W.replace(/[^\d\.]/g,o).split(".")[0]:i},_o=function(W,re){if(typeof W===l)return W=W.replace(/^\s\s*/,o),typeof re===c?W:W.substring(0,I)},Kn=function(W,re){for(var Q=0,ce,vt,ct,ie,B,ut;Q<re.length&&!B;){var Uo=re[Q],Nu=re[Q+1];for(ce=vt=0;ce<Uo.length&&!B&&Uo[ce];)if(B=Uo[ce++].exec(W),B)for(ct=0;ct<Nu.length;ct++)ut=B[++vt],ie=Nu[ct],typeof ie===u&&ie.length>0?ie.length===2?typeof ie[1]==a?this[ie[0]]=ie[1].call(this,ut):this[ie[0]]=ie[1]:ie.length===3?typeof ie[1]===a&&!(ie[1].exec&&ie[1].test)?this[ie[0]]=ut?ie[1].call(this,ut,ie[2]):i:this[ie[0]]=ut?ut.replace(ie[1],ie[2]):i:ie.length===4&&(this[ie[0]]=ut?ie[3].call(this,ut.replace(ie[1],ie[2])):i):this[ie]=ut||i;Q+=2}},ko=function(W,re){for(var Q in re)if(typeof re[Q]===u&&re[Q].length>0){for(var ce=0;ce<re[Q].length;ce++)if(Bi(re[Q][ce],W))return Q===s?i:Q}else if(Bi(re[Q],W))return Q===s?i:Q;return W},zy={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},yu={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"},mu={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,y],[/opios[\/ ]+([\w\.]+)/i],[y,[h,se+" Mini"]],[/\bopr\/([\w\.]+)/i],[y,[h,se]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\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,y],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[h,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[y,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[y,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+x],y],[/\bfocus\/([\w\.]+)/i],[y,[h,w+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[h,se+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[h,se+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[h,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[y,[h,w]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+x],y],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,y],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,fe],y],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[h,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,D+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[h,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[y,ko,zy]],[/(webkit|khtml)\/([\w\.]+)/i],[h,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[h,w+" 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,y],[/(cobalt)\/([\w\.]+)/i],[h,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,Vn]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,o,Vn]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,Vn]]],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],[f,[M,Se],[d,j]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[M,Se],[d,N]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[M,C],[d,N]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[M,C],[d,j]],[/(macintosh);/i],[f,[M,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[M,at],[d,N]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[M,O],[d,j]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[M,O],[d,N]],[/\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,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[M,U],[d,N]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[M,U],[d,j]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[M,"OPPO"],[d,N]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[M,"Vivo"],[d,N]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[M,"Realme"],[d,N]],[/\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],[f,[M,X],[d,N]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[M,X],[d,j]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[M,_],[d,j]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[M,_],[d,N]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[M,"Lenovo"],[d,j]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[M,"Nokia"],[d,N]],[/(pixel c)\b/i],[f,[M,v],[d,j]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[M,v],[d,N]],[/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],[f,[M,Je],[d,N]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[M,Je],[d,j]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[M,"OnePlus"],[d,N]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[M,z],[d,j]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[M,z],[d,N]],[/(playbook);[-\w\),; ]+(rim)/i],[f,M,[d,j]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[M,F],[d,N]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[M,R],[d,j]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[M,R],[d,N]],[/(nexus 9)/i],[f,[M,"HTC"],[d,j]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[M,[f,/_/g," "],[d,N]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[M,"Acer"],[d,j]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[M,"Meizu"],[d,N]],[/(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,f,[d,N]],[/(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,f,[d,j]],[/(surface duo)/i],[f,[M,$],[d,j]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[M,"Fairphone"],[d,N]],[/(u304aa)/i],[f,[M,"AT&T"],[d,N]],[/\bsie-(\w*)/i],[f,[M,"Siemens"],[d,N]],[/\b(rct\w+) b/i],[f,[M,"RCA"],[d,j]],[/\b(venue[\d ]{2,7}) b/i],[f,[M,"Dell"],[d,j]],[/\b(q(?:mv|ta)\w+) b/i],[f,[M,"Verizon"],[d,j]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[M,"Barnes & Noble"],[d,j]],[/\b(tm\d{3}\w+) b/i],[f,[M,"NuVision"],[d,j]],[/\b(k88) b/i],[f,[M,"ZTE"],[d,j]],[/\b(nx\d{3}j) b/i],[f,[M,"ZTE"],[d,N]],[/\b(gen\d{3}) b.+49h/i],[f,[M,"Swiss"],[d,N]],[/\b(zur\d{3}) b/i],[f,[M,"Swiss"],[d,j]],[/\b((zeki)?tb.*\b) b/i],[f,[M,"Zeki"],[d,j]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[M,"Dragon Touch"],f,[d,j]],[/\b(ns-?\w{0,9}) b/i],[f,[M,"Insignia"],[d,j]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[M,"NextBook"],[d,j]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[M,"Voice"],f,[d,N]],[/\b(lvtel\-)?(v1[12]) b/i],[[M,"LvTel"],f,[d,N]],[/\b(ph-1) /i],[f,[M,"Essential"],[d,N]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[M,"Envizen"],[d,j]],[/\b(trio[-\w\. ]+) b/i],[f,[M,"MachSpeed"],[d,j]],[/\btu_(1491) b/i],[f,[M,"Rotor"],[d,j]],[/(shield[\w ]+) b/i],[f,[M,"Nvidia"],[d,j]],[/(sprint) (\w+)/i],[M,f,[d,N]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[M,$],[d,N]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[M,de],[d,j]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[M,de],[d,N]],[/smart-tv.+(samsung)/i],[M,[d,A]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[M,Se],[d,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[M,_],[d,A]],[/(apple) ?tv/i],[M,[f,C+" TV"],[d,A]],[/crkey/i],[[f,D+"cast"],[M,v],[d,A]],[/droid.+aft(\w+)( bui|\))/i],[f,[M,z],[d,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[M,at],[d,A]],[/(bravia[\w ]+)( bui|\))/i],[f,[M,Je],[d,A]],[/(mitv-\w{5}) bui/i],[f,[M,U],[d,A]],[/Hbbtv.*(technisat) (.*);/i],[M,f,[d,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[M,_o],[f,_o],[d,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[M,f,[d,T]],[/droid.+; (shield) bui/i],[f,[M,"Nvidia"],[d,T]],[/(playstation [345portablevi]+)/i],[f,[M,Je],[d,T]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[M,$],[d,T]],[/((pebble))app/i],[M,f,[d,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[M,C],[d,E]],[/droid.+; (glass) \d/i],[f,[M,v],[d,E]],[/droid.+; (wt63?0{2,3})\)/i],[f,[M,de],[d,E]],[/(quest( 2| pro)?)/i],[f,[M,fe],[d,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[M,[d,S]],[/(aeobc)\b/i],[f,[M,z],[d,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[d,N]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[d,j]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,j]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,N]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[M,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[h,b+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[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,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,y],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[y,ko,yu]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[y,ko,yu]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,Gn],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,y],[/\(bb(10);/i],[y,[h,F]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[h,w+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[h,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,Bt],y],[/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,y],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,y]]},et=function(W,re){if(typeof W===u&&(re=W,W=i),!(this instanceof et))return new et(W,re).getResult();var Q=typeof n!==c&&n.navigator?n.navigator:i,ce=W||(Q&&Q.userAgent?Q.userAgent:o),vt=Q&&Q.userAgentData?Q.userAgentData:i,ct=re?Ht(mu,re):mu,ie=Q&&Q.userAgent==ce;return this.getBrowser=function(){var B={};return B[h]=i,B[y]=i,Kn.call(B,ce,ct.browser),B[g]=Cy(B[y]),ie&&Q&&Q.brave&&typeof Q.brave.isBrave==a&&(B[h]="Brave"),B},this.getCPU=function(){var B={};return B[m]=i,Kn.call(B,ce,ct.cpu),B},this.getDevice=function(){var B={};return B[M]=i,B[f]=i,B[d]=i,Kn.call(B,ce,ct.device),ie&&!B[d]&&vt&&vt.mobile&&(B[d]=N),ie&&B[f]=="Macintosh"&&Q&&typeof Q.standalone!==c&&Q.maxTouchPoints&&Q.maxTouchPoints>2&&(B[f]="iPad",B[d]=j),B},this.getEngine=function(){var B={};return B[h]=i,B[y]=i,Kn.call(B,ce,ct.engine),B},this.getOS=function(){var B={};return B[h]=i,B[y]=i,Kn.call(B,ce,ct.os),ie&&!B[h]&&vt&&vt.platform!="Unknown"&&(B[h]=vt.platform.replace(/chrome os/i,Bt).replace(/macos/i,Gn)),B},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 ce},this.setUA=function(B){return ce=typeof B===l&&B.length>I?_o(B,I):B,this},this.setUA(ce),this};et.VERSION=r,et.BROWSER=Qt([h,y,g]),et.CPU=Qt([m]),et.DEVICE=Qt([f,M,d,T,N,A,j,E,S]),et.ENGINE=et.OS=Qt([h,y]),e.exports&&(t=e.exports=et),t.UAParser=et;var jn=typeof n!==c&&(n.jQuery||n.Zepto);if(jn&&!jn.ua){var Hi=new et;jn.ua=Hi.getResult(),jn.ua.get=function(){return Hi.getUA()},jn.ua.set=function(W){Hi.setUA(W);var re=Hi.getResult();for(var Q in re)jn.ua[Q]=re[Q]}}})(typeof window=="object"?window:$u)})(Xi,Xi.exports);var Wu=Xi.exports;const Zu=Jo(Wu);function es(e){const t=Object.keys(e);if(t.length===0)throw new Error("No members in object!");let n=t[0],i=-1/0;for(const[r,o]of Object.entries(e))o>i&&(i=o,n=r);return n}const Ji=e=>{if(e instanceof Error)return e;try{return new Error(JSON.stringify(e))}catch{return new Error(String(e))}};class ts{deviceInfo;settings;activeStream;name;#e;constructor(t,n){this.deviceInfo=t,this.name=t.label,this.activeStream=null,this.#e=is(t),this.settings=n}async startStream(){if(this.activeStream)return this.activeStream;const t=await navigator.mediaDevices.getUserMedia(this.#e);this.activeStream=t,t.onaddtrack=i=>console.log("added track",i),t.onremovetrack=i=>console.log("removed track",i);const n=t.getVideoTracks()[0];return n.onended=i=>{console.log("track ended",i),this.stopStream()},t}stopStream(){this.activeStream&&(console.log(`Stopping active stream on ${this.name}`),nr(this.activeStream),this.activeStream=null)}getVideoTrack(){if(this.activeStream)return this.activeStream.getVideoTracks()[0]}}const er=new Zu,tr=er.getOS().name==="Android",ns=er.getOS().name==="iOS",qu=async()=>{try{const e=await navigator.mediaDevices.getUserMedia({video:!0});nr(e)}catch{throw new Error("Camera permission not given")}},Xu=async()=>{if(!navigator.mediaDevices)throw new Error(qi`
5
+ */const Qt=Symbol("Comlink.proxy"),ju=Symbol("Comlink.endpoint"),Au=Symbol("Comlink.releaseProxy"),Qi=Symbol("Comlink.finalizer"),$n=Symbol("Comlink.thrown"),Uo=e=>typeof e=="object"&&e!==null||typeof e=="function",Eu={canHandle:e=>Uo(e)&&e[Qt],serialize(e){const{port1:t,port2:n}=new MessageChannel;return Po(e,t),[n,[n]]},deserialize(e){return e.start(),Fo(e)}},Su={canHandle:e=>Uo(e)&&$n in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Yo=new Map([["proxy",Eu],["throw",Su]]);function pu(e,t){for(const n of e)if(t===n||n==="*"||n instanceof RegExp&&n.test(t))return!0;return!1}function Po(e,t=globalThis,n=["*"]){t.addEventListener("message",function i(r){if(!r||!r.data)return;if(!pu(n,r.origin)){console.warn(`Invalid origin '${r.origin}' for comlink proxy`);return}const{id:o,type:s,path:a}=Object.assign({path:[]},r.data),c=(r.data.argumentList||[]).map(Ot);let u;try{const l=a.slice(0,-1).reduce((f,h)=>f[h],e),g=a.reduce((f,h)=>f[h],e);switch(s){case"GET":u=g;break;case"SET":l[a.slice(-1)[0]]=Ot(r.data.value),u=!0;break;case"APPLY":u=g.apply(l,c);break;case"CONSTRUCT":{const f=new g(...c);u=bu(f)}break;case"ENDPOINT":{const{port1:f,port2:h}=new MessageChannel;Po(e,h),u=Go(f,[f])}break;case"RELEASE":u=void 0;break;default:return}}catch(l){u={value:l,[$n]:0}}Promise.resolve(u).catch(l=>({value:l,[$n]:0})).then(l=>{const[g,f]=Xn(l);t.postMessage(Object.assign(Object.assign({},g),{id:o}),f),s==="RELEASE"&&(t.removeEventListener("message",i),Ro(t),Qi in e&&typeof e[Qi]=="function"&&e[Qi]())}).catch(l=>{const[g,f]=Xn({value:new TypeError("Unserializable return value"),[$n]:0});t.postMessage(Object.assign(Object.assign({},g),{id:o}),f)})}),t.start&&t.start()}function Iu(e){return e.constructor.name==="MessagePort"}function Ro(e){Iu(e)&&e.close()}function Fo(e,t){return Gi(e,[],t)}function Wn(e){if(e)throw new Error("Proxy has been released and is not useable")}function Bo(e){return Gt(e,{type:"RELEASE"}).then(()=>{Ro(e)})}const Zn=new WeakMap,qn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Zn.get(e)||0)-1;Zn.set(e,t),t===0&&Bo(e)});function wu(e,t){const n=(Zn.get(t)||0)+1;Zn.set(t,n),qn&&qn.register(e,t,e)}function xu(e){qn&&qn.unregister(e)}function Gi(e,t=[],n=function(){}){let i=!1;const r=new Proxy(n,{get(o,s){if(Wn(i),s===Au)return()=>{xu(r),Bo(e),i=!0};if(s==="then"){if(t.length===0)return{then:()=>r};const a=Gt(e,{type:"GET",path:t.map(c=>c.toString())}).then(Ot);return a.then.bind(a)}return Gi(e,[...t,s])},set(o,s,a){Wn(i);const[c,u]=Xn(a);return Gt(e,{type:"SET",path:[...t,s].map(l=>l.toString()),value:c},u).then(Ot)},apply(o,s,a){Wn(i);const c=t[t.length-1];if(c===ju)return Gt(e,{type:"ENDPOINT"}).then(Ot);if(c==="bind")return Gi(e,t.slice(0,-1));const[u,l]=Ho(a);return Gt(e,{type:"APPLY",path:t.map(g=>g.toString()),argumentList:u},l).then(Ot)},construct(o,s){Wn(i);const[a,c]=Ho(s);return Gt(e,{type:"CONSTRUCT",path:t.map(u=>u.toString()),argumentList:a},c).then(Ot)}});return wu(r,e),r}function Du(e){return Array.prototype.concat.apply([],e)}function Ho(e){const t=e.map(Xn);return[t.map(n=>n[0]),Du(t.map(n=>n[1]))]}const Qo=new WeakMap;function Go(e,t){return Qo.set(e,t),e}function bu(e){return Object.assign(e,{[Qt]:!0})}function Xn(e){for(const[t,n]of Yo)if(n.canHandle(e)){const[i,r]=n.serialize(e);return[{type:"HANDLER",name:t,value:i},r]}return[{type:"RAW",value:e},Qo.get(e)||[]]}function Ot(e){switch(e.type){case"HANDLER":return Yo.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Gt(e,t,n){return new Promise(i=>{const r=vu();e.addEventListener("message",function o(s){!s.data||!s.data.id||s.data.id!==r||(e.removeEventListener("message",o),i(s.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:r},t),n)})}function vu(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var Vi=(e=>(e[e.Invalid=0]="Invalid",e[e.RequiresServerPermission=1]="RequiresServerPermission",e[e.Valid=2]="Valid",e))(Vi||{}),Ki=(e=>(e[e.Ok=0]="Ok",e[e.NetworkError=1]="NetworkError",e[e.RemoteLock=2]="RemoteLock",e[e.PermissionExpired=3]="PermissionExpired",e[e.PayloadCorrupted=4]="PayloadCorrupted",e[e.PayloadSignatureVerificationFailed=5]="PayloadSignatureVerificationFailed",e[e.IncorrectTokenState=6]="IncorrectTokenState",e))(Ki||{});const Vo=Element.prototype.attachShadow;function $i(){return typeof window.ShadyDOM<"u"&&typeof ShadowRoot<"u"}function Ou(){return typeof ShadowRoot<"u"}function Cu(e){Vo==null||$i()||(Element.prototype.attachShadow=function(t){const n=Vo.call(this,t);return e(n),n})}function zu(e,...t){const n=new Set(t);let i=!1;const r=()=>{for(const o of n)e(o);n.clear()};return{isRunning(){return i},schedule(o){n.add(o),i&&r()},stop(){i=!1},run(){i||(i=!0,r())}}}const _u={childList:!0,subtree:!0},ku=e=>{typeof queueMicrotask<"u"?queueMicrotask(e):typeof Promise<"u"?Promise.resolve().then(()=>e()):setTimeout(()=>e(),0)};function Ko(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null)return[...e];{const t=[];for(let n=0;n<e.length;n++)t[n]=e[n];return t}}function Uu(e,t){return $i()?new Set(Ko(window.ShadyDOM.nativeMethods.querySelectorAll.call(document.documentElement,t))):new Set("querySelectorAll"in e?Ko(e.querySelectorAll(t)):[])}function Yu(e,t){return new Set([...e??[],...t??[]])}function Pu(e){return"activeElement"in e}function $o(e=document.documentElement){if(Pu(e)&&Wo(e),$i()&&e instanceof ShadowRoot||!Ou())return;const t=e.childNodes,n="shadowRoot"in e&&e.shadowRoot!=null?[e.shadowRoot]:[];for(const i of[...t,...n])$o(i)}function Ru(e){return"isConnected"in Node.prototype?e.isConnected:e.ownerDocument==null||!(e.ownerDocument.compareDocumentPosition(e)&e.DOCUMENT_POSITION_DISCONNECTED)}const An=new Map;function Fu(e,t){const n=new Set,i=new Set,r=new Map,o=new WeakMap;let s=!1,a=!1,c=!1;const u=()=>{a=!0;const T=[...n];T.length>0&&t(T,e),n.clear(),s=!1,a=!1},l=()=>{s||(s=!0,ku(u))},g=T=>{n.add(T),a||l()},f=()=>{const T=[...n];return n.clear(),T},h=()=>{i.clear()},d=(T,N)=>{let j=r.get(T);const A=Uu(T,N),E=j?.get(N),S=Yu(A,E);M(S),j==null&&(j=new Map,r.set(T,j)),j.set(N,A)},M=T=>{for(const N of T){const j=o.get(N),A=Ru(N);j!==A&&(o.set(N,A),g({connected:A,target:N}))}},m={observedTargets:i,queryRootAndHandleMutationChanges:d,handleMutationChange:M,addObservedTarget:T=>{if(Zi.run(),c||(c=!0,$o()),i.add(T),typeof T!="string")M([T]);else for(const N of Wi)d(N,T)},clearObservedTargets:h,clearQueue:f};An.set(e,m)}const Bu=e=>{for(const t of e)if(t.type==="childList")for(const n of An.values())for(const i of n.observedTargets)typeof i=="string"?n.queryRootAndHandleMutationChanges(t.target,i):n.handleMutationChange([i])},Wi=new Set,Wo=(()=>{let e;return function(t){Wi.has(t)||(Wi.add(t),e==null&&(e=new MutationObserver(Bu)),e.observe(t,_u))}})(),Zi=zu(Wo,document.documentElement);class Ct{constructor(t){if(new.target===void 0)throw new TypeError(`Constructor ${Ct.name} requires 'new'`);if(t===void 0)throw new ReferenceError(`Failed to construct '${Ct.name}': 1 argument required, but only 0 present.`);if(typeof t!="function")throw new TypeError(`Failed to construct '${Ct.name}': The callback provided as parameter 1 is not a function.`);Fu(this,t)}get[Symbol.toStringTag](){return"ConnectionObserver"}observe(t){if(t===void 0)throw new ReferenceError(`Failed to execute '${this.observe.name}' on '${Ct.name}': 1 argument required, but only 0 present.`);if(typeof t!="string"&&!(t instanceof Node))throw new TypeError(`Failed to execute '${this.observe.name}' on '${Ct.name}': parameter 1 is not of type 'Node' or a DOMString.`);const n=An.get(this);n?.addObservedTarget(t)}takeRecords(){const t=An.get(this);return t==null?[]:t.clearQueue()}disconnect(){const t=An.get(this);t?.clearObservedTargets()}}Cu(Zi.schedule.bind(Zi));var Hu=function(){function e(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Qu=Gu(["",""],["",""]);function Gu(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Vu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var we=function(){function e(){for(var t=this,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return Vu(this,e),this.tag=function(o){for(var s=arguments.length,a=Array(s>1?s-1:0),c=1;c<s;c++)a[c-1]=arguments[c];return typeof o=="function"?t.interimTag.bind(t,o):typeof o=="string"?t.transformEndResult(o):(o=o.map(t.transformString.bind(t)),t.transformEndResult(o.reduce(t.processSubstitutions.bind(t,a))))},i.length>0&&Array.isArray(i[0])&&(i=i[0]),this.transformers=i.map(function(o){return typeof o=="function"?o():o}),this.tag}return Hu(e,[{key:"interimTag",value:function(n,i){for(var r=arguments.length,o=Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return this.tag(Qu,n.apply(void 0,[i].concat(o)))}},{key:"processSubstitutions",value:function(n,i,r){var o=this.transformSubstitution(n.shift(),i);return"".concat(i,o,r)}},{key:"transformString",value:function(n){var i=function(o,s){return s.onString?s.onString(o):o};return this.transformers.reduce(i,n)}},{key:"transformSubstitution",value:function(n,i){var r=function(s,a){return a.onSubstitution?a.onSubstitution(s,i):s};return this.transformers.reduce(r,n)}},{key:"transformEndResult",value:function(n){var i=function(o,s){return s.onEndResult?s.onEndResult(o):o};return this.transformers.reduce(i,n)}}]),e}(),xe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return{onEndResult:function(i){if(t==="")return i.trim();if(t=t.toLowerCase(),t==="start"||t==="left")return i.replace(/^\s*/,"");if(t==="end"||t==="right")return i.replace(/\s*$/,"");throw new Error("Side not supported: "+t)}}};function Ku(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var mt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"initial";return{onEndResult:function(i){if(t==="initial"){var r=i.match(/^[^\S\n]*(?=\S)/gm),o=r&&Math.min.apply(Math,Ku(r.map(function(a){return a.length})));if(o){var s=new RegExp("^.{"+o+"}","gm");return i.replace(s,"")}return i}if(t==="all")return i.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+t)}}},Vt=function(t,n){return{onEndResult:function(r){if(t==null||n==null)throw new Error("replaceResultTransformer requires at least 2 arguments.");return r.replace(t,n)}}},Kt=function(t,n){return{onSubstitution:function(r,o){if(t==null||n==null)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return r==null?r:r.toString().replace(t,n)}}},$u={separator:"",conjunction:"",serial:!1},tt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$u;return{onSubstitution:function(i,r){if(Array.isArray(i)){var o=i.length,s=t.separator,a=t.conjunction,c=t.serial,u=r.match(/(\n?[^\S\n]+)$/);if(u?i=i.join(s+u[1]):i=i.join(s+" "),a&&o>1){var l=i.lastIndexOf(s);i=i.slice(0,l)+(c?s:"")+" "+a+i.slice(l+1)}}return i}}},Zo=function(t){return{onSubstitution:function(i,r){if(t!=null&&typeof t=="string")typeof i=="string"&&i.includes(t)&&(i=i.split(t));else throw new Error("You need to specify a string character to split by.");return i}}},qo=function(t){return t!=null&&!Number.isNaN(t)&&typeof t!="boolean"},Wu=function(){return{onSubstitution:function(n){return Array.isArray(n)?n.filter(qo):qo(n)?n:""}}};new we(tt({separator:","}),mt,xe),new we(tt({separator:",",conjunction:"and"}),mt,xe),new we(tt({separator:",",conjunction:"or"}),mt,xe),new we(Zo(`
6
+ `),Wu,tt,mt,xe),new we(Zo(`
7
+ `),tt,mt,xe,Kt(/&/g,"&amp;"),Kt(/</g,"&lt;"),Kt(/>/g,"&gt;"),Kt(/"/g,"&quot;"),Kt(/'/g,"&#x27;"),Kt(/`/g,"&#x60;")),new we(Vt(/(?:\n(?:\s*))+/g," "),xe),new we(Vt(/(?:\n\s*)/g,""),xe),new we(tt({separator:","}),Vt(/(?:\s+)/g," "),xe),new we(tt({separator:",",conjunction:"or"}),Vt(/(?:\s+)/g," "),xe),new we(tt({separator:",",conjunction:"and"}),Vt(/(?:\s+)/g," "),xe),new we(tt,mt,xe),new we(tt,Vt(/(?:\s+)/g," "),xe),new we(mt,xe);var qi=new we(mt("all"),xe),Zu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xi={exports:{}};(function(e,t){(function(n,i){var r="1.0.36",o="",s="?",a="function",c="undefined",u="object",l="string",g="major",f="model",h="name",d="type",M="vendor",y="version",m="architecture",T="console",N="mobile",j="tablet",A="smarttv",E="wearable",S="embedded",I=350,z="Amazon",C="Apple",R="ASUS",F="BlackBerry",x="Browser",D="Chrome",b="Edge",w="Firefox",v="Google",O="Huawei",_="LG",$="Microsoft",X="Motorola",se="Opera",Se="Samsung",at="Sharp",Je="Sony",U="Xiaomi",de="Zebra",fe="Facebook",Ft="Chromium OS",Gn="Mac OS",Bt=function(W,re){var Q={};for(var ce in W)re[ce]&&re[ce].length%2===0?Q[ce]=re[ce].concat(W[ce]):Q[ce]=W[ce];return Q},Ht=function(W){for(var re={},Q=0;Q<W.length;Q++)re[W[Q].toUpperCase()]=W[Q];return re},Bi=function(W,re){return typeof W===l?Vn(re).indexOf(Vn(W))!==-1:!1},Vn=function(W){return W.toLowerCase()},_y=function(W){return typeof W===l?W.replace(/[^\d\.]/g,o).split(".")[0]:i},zo=function(W,re){if(typeof W===l)return W=W.replace(/^\s\s*/,o),typeof re===c?W:W.substring(0,I)},Kn=function(W,re){for(var Q=0,ce,vt,ct,ie,B,ut;Q<re.length&&!B;){var ko=re[Q],Lu=re[Q+1];for(ce=vt=0;ce<ko.length&&!B&&ko[ce];)if(B=ko[ce++].exec(W),B)for(ct=0;ct<Lu.length;ct++)ut=B[++vt],ie=Lu[ct],typeof ie===u&&ie.length>0?ie.length===2?typeof ie[1]==a?this[ie[0]]=ie[1].call(this,ut):this[ie[0]]=ie[1]:ie.length===3?typeof ie[1]===a&&!(ie[1].exec&&ie[1].test)?this[ie[0]]=ut?ie[1].call(this,ut,ie[2]):i:this[ie[0]]=ut?ut.replace(ie[1],ie[2]):i:ie.length===4&&(this[ie[0]]=ut?ie[3].call(this,ut.replace(ie[1],ie[2])):i):this[ie]=ut||i;Q+=2}},_o=function(W,re){for(var Q in re)if(typeof re[Q]===u&&re[Q].length>0){for(var ce=0;ce<re[Q].length;ce++)if(Bi(re[Q][ce],W))return Q===s?i:Q}else if(Bi(re[Q],W))return Q===s?i:Q;return W},ky={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Nu={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"},Tu={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,y],[/opios[\/ ]+([\w\.]+)/i],[y,[h,se+" Mini"]],[/\bopr\/([\w\.]+)/i],[y,[h,se]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\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,y],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[h,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[y,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[y,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+x],y],[/\bfocus\/([\w\.]+)/i],[y,[h,w+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[h,se+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[h,se+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[h,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[y,[h,w]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+x],y],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,y],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,fe],y],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[h,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,D+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[h,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[y,_o,ky]],[/(webkit|khtml)\/([\w\.]+)/i],[h,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[h,w+" 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,y],[/(cobalt)\/([\w\.]+)/i],[h,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,Vn]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,o,Vn]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,Vn]]],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],[f,[M,Se],[d,j]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[M,Se],[d,N]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[M,C],[d,N]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[M,C],[d,j]],[/(macintosh);/i],[f,[M,C]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[M,at],[d,N]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[M,O],[d,j]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[M,O],[d,N]],[/\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,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[M,U],[d,N]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[M,U],[d,j]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[M,"OPPO"],[d,N]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[M,"Vivo"],[d,N]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[M,"Realme"],[d,N]],[/\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],[f,[M,X],[d,N]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[M,X],[d,j]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[M,_],[d,j]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[M,_],[d,N]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[M,"Lenovo"],[d,j]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[M,"Nokia"],[d,N]],[/(pixel c)\b/i],[f,[M,v],[d,j]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[M,v],[d,N]],[/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],[f,[M,Je],[d,N]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[M,Je],[d,j]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[M,"OnePlus"],[d,N]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[M,z],[d,j]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[M,z],[d,N]],[/(playbook);[-\w\),; ]+(rim)/i],[f,M,[d,j]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[M,F],[d,N]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[M,R],[d,j]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[M,R],[d,N]],[/(nexus 9)/i],[f,[M,"HTC"],[d,j]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[M,[f,/_/g," "],[d,N]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[M,"Acer"],[d,j]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[M,"Meizu"],[d,N]],[/(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,f,[d,N]],[/(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,f,[d,j]],[/(surface duo)/i],[f,[M,$],[d,j]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[M,"Fairphone"],[d,N]],[/(u304aa)/i],[f,[M,"AT&T"],[d,N]],[/\bsie-(\w*)/i],[f,[M,"Siemens"],[d,N]],[/\b(rct\w+) b/i],[f,[M,"RCA"],[d,j]],[/\b(venue[\d ]{2,7}) b/i],[f,[M,"Dell"],[d,j]],[/\b(q(?:mv|ta)\w+) b/i],[f,[M,"Verizon"],[d,j]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[M,"Barnes & Noble"],[d,j]],[/\b(tm\d{3}\w+) b/i],[f,[M,"NuVision"],[d,j]],[/\b(k88) b/i],[f,[M,"ZTE"],[d,j]],[/\b(nx\d{3}j) b/i],[f,[M,"ZTE"],[d,N]],[/\b(gen\d{3}) b.+49h/i],[f,[M,"Swiss"],[d,N]],[/\b(zur\d{3}) b/i],[f,[M,"Swiss"],[d,j]],[/\b((zeki)?tb.*\b) b/i],[f,[M,"Zeki"],[d,j]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[M,"Dragon Touch"],f,[d,j]],[/\b(ns-?\w{0,9}) b/i],[f,[M,"Insignia"],[d,j]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[M,"NextBook"],[d,j]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[M,"Voice"],f,[d,N]],[/\b(lvtel\-)?(v1[12]) b/i],[[M,"LvTel"],f,[d,N]],[/\b(ph-1) /i],[f,[M,"Essential"],[d,N]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[M,"Envizen"],[d,j]],[/\b(trio[-\w\. ]+) b/i],[f,[M,"MachSpeed"],[d,j]],[/\btu_(1491) b/i],[f,[M,"Rotor"],[d,j]],[/(shield[\w ]+) b/i],[f,[M,"Nvidia"],[d,j]],[/(sprint) (\w+)/i],[M,f,[d,N]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[M,$],[d,N]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[M,de],[d,j]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[M,de],[d,N]],[/smart-tv.+(samsung)/i],[M,[d,A]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[M,Se],[d,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[M,_],[d,A]],[/(apple) ?tv/i],[M,[f,C+" TV"],[d,A]],[/crkey/i],[[f,D+"cast"],[M,v],[d,A]],[/droid.+aft(\w+)( bui|\))/i],[f,[M,z],[d,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[M,at],[d,A]],[/(bravia[\w ]+)( bui|\))/i],[f,[M,Je],[d,A]],[/(mitv-\w{5}) bui/i],[f,[M,U],[d,A]],[/Hbbtv.*(technisat) (.*);/i],[M,f,[d,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[M,zo],[f,zo],[d,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[M,f,[d,T]],[/droid.+; (shield) bui/i],[f,[M,"Nvidia"],[d,T]],[/(playstation [345portablevi]+)/i],[f,[M,Je],[d,T]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[M,$],[d,T]],[/((pebble))app/i],[M,f,[d,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[M,C],[d,E]],[/droid.+; (glass) \d/i],[f,[M,v],[d,E]],[/droid.+; (wt63?0{2,3})\)/i],[f,[M,de],[d,E]],[/(quest( 2| pro)?)/i],[f,[M,fe],[d,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[M,[d,S]],[/(aeobc)\b/i],[f,[M,z],[d,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[d,N]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[d,j]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,j]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,N]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[M,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[h,b+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[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,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,y],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[y,_o,Nu]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[y,_o,Nu]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,Gn],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,y],[/\(bb(10);/i],[y,[h,F]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[h,w+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[h,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,Ft],y],[/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,y],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,y]]},et=function(W,re){if(typeof W===u&&(re=W,W=i),!(this instanceof et))return new et(W,re).getResult();var Q=typeof n!==c&&n.navigator?n.navigator:i,ce=W||(Q&&Q.userAgent?Q.userAgent:o),vt=Q&&Q.userAgentData?Q.userAgentData:i,ct=re?Bt(Tu,re):Tu,ie=Q&&Q.userAgent==ce;return this.getBrowser=function(){var B={};return B[h]=i,B[y]=i,Kn.call(B,ce,ct.browser),B[g]=_y(B[y]),ie&&Q&&Q.brave&&typeof Q.brave.isBrave==a&&(B[h]="Brave"),B},this.getCPU=function(){var B={};return B[m]=i,Kn.call(B,ce,ct.cpu),B},this.getDevice=function(){var B={};return B[M]=i,B[f]=i,B[d]=i,Kn.call(B,ce,ct.device),ie&&!B[d]&&vt&&vt.mobile&&(B[d]=N),ie&&B[f]=="Macintosh"&&Q&&typeof Q.standalone!==c&&Q.maxTouchPoints&&Q.maxTouchPoints>2&&(B[f]="iPad",B[d]=j),B},this.getEngine=function(){var B={};return B[h]=i,B[y]=i,Kn.call(B,ce,ct.engine),B},this.getOS=function(){var B={};return B[h]=i,B[y]=i,Kn.call(B,ce,ct.os),ie&&!B[h]&&vt&&vt.platform!="Unknown"&&(B[h]=vt.platform.replace(/chrome os/i,Ft).replace(/macos/i,Gn)),B},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 ce},this.setUA=function(B){return ce=typeof B===l&&B.length>I?zo(B,I):B,this},this.setUA(ce),this};et.VERSION=r,et.BROWSER=Ht([h,y,g]),et.CPU=Ht([m]),et.DEVICE=Ht([f,M,d,T,N,A,j,E,S]),et.ENGINE=et.OS=Ht([h,y]),e.exports&&(t=e.exports=et),t.UAParser=et;var jn=typeof n!==c&&(n.jQuery||n.Zepto);if(jn&&!jn.ua){var Hi=new et;jn.ua=Hi.getResult(),jn.ua.get=function(){return Hi.getUA()},jn.ua.set=function(W){Hi.setUA(W);var re=Hi.getResult();for(var Q in re)jn.ua[Q]=re[Q]}}})(typeof window=="object"?window:Zu)})(Xi,Xi.exports);var qu=Xi.exports;const Xu=Xo(qu);function Jo(e){const t=Object.keys(e);if(t.length===0)throw new Error("No members in object!");let n=t[0],i=-1/0;for(const[r,o]of Object.entries(e))o>i&&(i=o,n=r);return n}const Ji=e=>{if(e instanceof Error)return e;try{return new Error(JSON.stringify(e))}catch{return new Error(String(e))}};class es{deviceInfo;settings;activeStream;name;#e;constructor(t,n){this.deviceInfo=t,this.name=t.label,this.activeStream=null,this.#e=ns(t),this.settings=n}async startStream(){if(this.activeStream)return this.activeStream;const t=await navigator.mediaDevices.getUserMedia(this.#e);this.activeStream=t,t.onaddtrack=i=>console.log("added track",i),t.onremovetrack=i=>console.log("removed track",i);const n=t.getVideoTracks()[0];return n.onended=i=>{console.log("track ended",i),this.stopStream()},t}stopStream(){this.activeStream&&(console.log(`Stopping active stream on ${this.name}`),nr(this.activeStream),this.activeStream=null)}getVideoTrack(){if(this.activeStream)return this.activeStream.getVideoTracks()[0]}}const er=new Xu,tr=er.getOS().name==="Android",ts=er.getOS().name==="iOS",Ju=async()=>{try{const e=await navigator.mediaDevices.getUserMedia({video:!0});nr(e)}catch{throw new Error("Camera permission not given")}},el=async()=>{if(!navigator.mediaDevices)throw new Error(qi`
8
8
  Cameras can only be used in a secure context:
9
9
  https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
10
- `);return await qu(),(await navigator.mediaDevices.enumerateDevices()).filter(n=>n.kind==="videoinput")};async function Ju(e){try{const t=await nl(e),n=t.getVideoTracks()[0].getSettings();return nr(t),new ts(e,n)}catch{return console.warn(`DEBUG: Device ${e.deviceId} doesn't support this constraint.`),null}}const el=e=>{if(er.getOS().name!=="Android")return;if(e.some(i=>i.settings.facingMode===void 0)){console.warn("Not all devices have facingMode");return}let t=0,n=0;for(const i of e){const r=i.settings.facingMode;r==="environment"&&(i.name=`Back camera ${++n}`),r==="user"&&(i.name=`Front camera ${++t}`)}},nr=e=>{const t=e.getTracks();for(const n of t)n.stop()},tl=e=>{const t={};for(const i of e){const r=i.deviceInfo.deviceId;t[r]=0,i.settings.facingMode==="environment"&&(t[r]+=2),tr&&"torch"in i.settings&&(t[r]+=2),tr&&i.settings.focusMode==="single-shot"&&(t[r]+=2),tr&&i===e[e.length]&&(t[r]+=1),ns&&i.name==="Back Triple Camera"&&(t[r]+=5),ns&&i.name==="Back Dual Wide Camera"&&(t[r]+=3)}return es(t)};function is(e){return{video:{deviceId:{exact:e.deviceId},frameRate:{exact:30},width:{exact:1920},height:{exact:1080}},audio:!1}}async function nl(e){const t=is(e);return await navigator.mediaDevices.getUserMedia(t)}async function il(){const e=await Xu(),t=[];for await(const n of e){const i=await Ju(n);i!==null&&t.push(i)}return t}function rl(e){return{data:e.data,width:e.width,height:e.height,colorSpace:e.colorSpace}}const rs="application/javascript",ol=(e,t={})=>{const n={skipSameOrigin:!0,useBlob:!0,...t};return n.skipSameOrigin&&new URL(e).origin===self.location.origin?Promise.resolve(e):new Promise((i,r)=>void fetch(e).then(o=>o.text()).then(o=>{const s=new URL(e).href.split("/");s.pop();const a=qi`
10
+ `);return await Ju(),(await navigator.mediaDevices.enumerateDevices()).filter(n=>n.kind==="videoinput")};async function tl(e){try{const t=await rl(e),n=t.getVideoTracks()[0].getSettings();return nr(t),new es(e,n)}catch{return console.warn(`DEBUG: Device ${e.deviceId} doesn't support this constraint.`),null}}const nl=e=>{if(er.getOS().name!=="Android")return;if(e.some(i=>i.settings.facingMode===void 0)){console.warn("Not all devices have facingMode");return}let t=0,n=0;for(const i of e){const r=i.settings.facingMode;r==="environment"&&(i.name=`Back camera ${++n}`),r==="user"&&(i.name=`Front camera ${++t}`)}},nr=e=>{const t=e.getTracks();for(const n of t)n.stop()},il=e=>{const t={};for(const i of e){const r=i.deviceInfo.deviceId;t[r]=0,i.settings.facingMode==="environment"&&(t[r]+=2),tr&&"torch"in i.settings&&(t[r]+=2),tr&&i.settings.focusMode==="single-shot"&&(t[r]+=2),tr&&i===e[e.length]&&(t[r]+=1),ts&&i.name==="Back Triple Camera"&&(t[r]+=5),ts&&i.name==="Back Dual Wide Camera"&&(t[r]+=3)}return Jo(t)};function ns(e){return{video:{deviceId:{exact:e.deviceId},frameRate:{exact:30},width:{exact:1920},height:{exact:1080}},audio:!1}}async function rl(e){const t=ns(e);return await navigator.mediaDevices.getUserMedia(t)}async function ol(){const e=await el(),t=[];for await(const n of e){const i=await tl(n);i!==null&&t.push(i)}return t}function sl(e){return{data:e.data,width:e.width,height:e.height,colorSpace:e.colorSpace}}const is="application/javascript",al=(e,t={})=>{const n={skipSameOrigin:!0,useBlob:!0,...t};return n.skipSameOrigin&&new URL(e).origin===self.location.origin?Promise.resolve(e):new Promise((i,r)=>void fetch(e,{signal:AbortSignal.timeout(3e3)}).then(o=>o.text()).then(o=>{const s=new URL(e).href.split("/");s.pop();const a=qi`
11
11
  const _importScripts = importScripts;
12
12
  const _fixImports = (url) => new URL(url, '${s.join("/")+"/"}').href;
13
13
  importScripts = (...urls) => _importScripts(...urls.map(_fixImports));
14
- `;let c="";if(n.useBlob){const u=new Blob([a+o],{type:rs});c=URL.createObjectURL(u)}else c=`data:${rs},`+encodeURIComponent(a+o);i(c)}).catch(r))},sl=async(e=window.location.href)=>{const t=await ol(e+"/resources/capture-worker.js"),n=new Worker(t);n.onerror=r=>{console.error("Worker error:",r)};const i=Bo(n);return await i.setResourceUrl(e+"/resources"),i};let al=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");const os="capture-userid";function cl(){const e=localStorage.getItem(os);if(e)return e;const t=al();return localStorage.setItem(os,t),t}function ul(e){return{licenseId:e.licenseId,licensee:e.licensee,packageName:e.packageName,platform:"Browser",sdkName:e.sdkName,sdkVersion:e.sdkVersion}}async function ll(e){try{return await(await fetch("https://baltazar.microblink.com/api/v1/status/check",{method:"POST",headers:{"Content-Type":"application/json"},cache:"no-cache",body:JSON.stringify(ul(e))})).json()}catch(t){throw console.error(t),t}}class fl{#e;#t;constructor(t,n){this.#e=t,this.#t=n}analyze=async t=>{const n=rl(t);return await this.#e.analyze(Vo(n,[n.data.buffer]))};finishSideCapture=async()=>await this.#t.finishSideCapture();getResult=async()=>await this.#t.getResult();getSettings=async()=>await this.#t.getSettings();updateSettings=async t=>{const i={...await this.getSettings(),...t};await this.#t.updateSettings(i)};resetCapture=async()=>{await this.#t.reset()};async terminateWorker(){await this.#e.terminate()}}async function ss(e){const t=await sl(e.resourceUrl),n=cl(),i=await t.loadWasm(),r=await i.initializeWithLicenseKey(e.licenseKey,n,!1);if(r.unlockResult===Vi.RequiresServerPermission){const u=await ll(r),l=await i.submitServerPermission(JSON.stringify(u));if(console.log(l),l.status!==Ki.Ok)throw new Error("Server unlock not ok.")}const o=await t.createAnalyzer();if(!o)throw new Error("Failed to create analyzer");let a={...await o.getSettings(),minimumDocumentDpi:220};return e.analyzerSettings&&Object.assign(a,e.analyzerSettings),await o.updateSettings(a),new fl(t,o)}const De=Symbol.for("@ts-pattern/matcher"),as=Symbol.for("@ts-pattern/isVariadic"),Jn="@ts-pattern/anonymous-select-key",ir=e=>!!(e&&typeof e=="object"),ei=e=>e&&!!e[De],Te=(e,t,n)=>{if(ei(e)){const i=e[De](),{matched:r,selections:o}=i.match(t);return r&&o&&Object.keys(o).forEach(s=>n(s,o[s])),r}if(ir(e)){if(!ir(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let i=[],r=[],o=[];for(const s of e.keys()){const a=e[s];ei(a)&&a[as]?o.push(a):o.length?r.push(a):i.push(a)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<i.length+r.length)return!1;const s=t.slice(0,i.length),a=r.length===0?[]:t.slice(-r.length),c=t.slice(i.length,r.length===0?1/0:-r.length);return i.every((u,l)=>Te(u,s[l],n))&&r.every((u,l)=>Te(u,a[l],n))&&(o.length===0||Te(o[0],c,n))}return e.length===t.length&&e.every((s,a)=>Te(s,t[a],n))}return Object.keys(e).every(i=>{const r=e[i];return(i in t||ei(o=r)&&o[De]().matcherType==="optional")&&Te(r,t[i],n);var o})}return Object.is(t,e)},Oe=e=>{var t,n,i;return ir(e)?ei(e)?(t=(n=(i=e[De]()).getSelectionKeys)==null?void 0:n.call(i))!=null?t:[]:Array.isArray(e)?En(e,Oe):En(Object.values(e),Oe):[]},En=(e,t)=>e.reduce((n,i)=>n.concat(t(i)),[]);function dl(...e){if(e.length===1){const[t]=e;return n=>Te(t,n,()=>{})}if(e.length===2){const[t,n]=e;return Te(t,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function je(e){return Object.assign(e,{optional:()=>or(e),and:t=>ue(e,t),or:t=>cs(e,t),select:t=>t===void 0?Sn(e):Sn(t,e)})}function rr(e){return Object.assign((t=>Object.assign(t,{*[Symbol.iterator](){yield Object.assign(t,{[as]:!0})}}))(e),{optional:()=>rr(or(e)),select:t=>rr(t===void 0?Sn(e):Sn(t,e))})}function or(e){return je({[De]:()=>({match:t=>{let n={};const i=(r,o)=>{n[r]=o};return t===void 0?(Oe(e).forEach(r=>i(r,void 0)),{matched:!0,selections:n}):{matched:Te(e,t,i),selections:n}},getSelectionKeys:()=>Oe(e),matcherType:"optional"})})}const gl=(e,t)=>{for(const n of e)if(!t(n))return!1;return!0},Ml=(e,t)=>{for(const[n,i]of e.entries())if(!t(i,n))return!1;return!0};function ue(...e){return je({[De]:()=>({match:t=>{let n={};const i=(r,o)=>{n[r]=o};return{matched:e.every(r=>Te(r,t,i)),selections:n}},getSelectionKeys:()=>En(e,Oe),matcherType:"and"})})}function cs(...e){return je({[De]:()=>({match:t=>{let n={};const i=(r,o)=>{n[r]=o};return En(e,Oe).forEach(r=>i(r,void 0)),{matched:e.some(r=>Te(r,t,i)),selections:n}},getSelectionKeys:()=>En(e,Oe),matcherType:"or"})})}function J(e){return{[De]:()=>({match:t=>({matched:!!e(t)})})}}function Sn(...e){const t=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return je({[De]:()=>({match:i=>{let r={[t??Jn]:i};return{matched:n===void 0||Te(n,i,(o,s)=>{r[o]=s}),selections:r}},getSelectionKeys:()=>[t??Jn].concat(n===void 0?[]:Oe(n))})})}function nt(e){return typeof e=="number"}function zt(e){return typeof e=="string"}function Nt(e){return typeof e=="bigint"}const us=je(J(function(e){return!0})),hl=us,_t=e=>Object.assign(je(e),{startsWith:t=>{return _t(ue(e,(n=t,J(i=>zt(i)&&i.startsWith(n)))));var n},endsWith:t=>{return _t(ue(e,(n=t,J(i=>zt(i)&&i.endsWith(n)))));var n},minLength:t=>_t(ue(e,(n=>J(i=>zt(i)&&i.length>=n))(t))),maxLength:t=>_t(ue(e,(n=>J(i=>zt(i)&&i.length<=n))(t))),includes:t=>{return _t(ue(e,(n=t,J(i=>zt(i)&&i.includes(n)))));var n},regex:t=>{return _t(ue(e,(n=t,J(i=>zt(i)&&!!i.match(n)))));var n}}),yl=_t(J(zt)),it=e=>Object.assign(je(e),{between:(t,n)=>it(ue(e,((i,r)=>J(o=>nt(o)&&i<=o&&r>=o))(t,n))),lt:t=>it(ue(e,(n=>J(i=>nt(i)&&i<n))(t))),gt:t=>it(ue(e,(n=>J(i=>nt(i)&&i>n))(t))),lte:t=>it(ue(e,(n=>J(i=>nt(i)&&i<=n))(t))),gte:t=>it(ue(e,(n=>J(i=>nt(i)&&i>=n))(t))),int:()=>it(ue(e,J(t=>nt(t)&&Number.isInteger(t)))),finite:()=>it(ue(e,J(t=>nt(t)&&Number.isFinite(t)))),positive:()=>it(ue(e,J(t=>nt(t)&&t>0))),negative:()=>it(ue(e,J(t=>nt(t)&&t<0)))}),ml=it(J(nt)),Tt=e=>Object.assign(je(e),{between:(t,n)=>Tt(ue(e,((i,r)=>J(o=>Nt(o)&&i<=o&&r>=o))(t,n))),lt:t=>Tt(ue(e,(n=>J(i=>Nt(i)&&i<n))(t))),gt:t=>Tt(ue(e,(n=>J(i=>Nt(i)&&i>n))(t))),lte:t=>Tt(ue(e,(n=>J(i=>Nt(i)&&i<=n))(t))),gte:t=>Tt(ue(e,(n=>J(i=>Nt(i)&&i>=n))(t))),positive:()=>Tt(ue(e,J(t=>Nt(t)&&t>0))),negative:()=>Tt(ue(e,J(t=>Nt(t)&&t<0)))}),Nl=Tt(J(Nt)),Tl=je(J(function(e){return typeof e=="boolean"})),Ll=je(J(function(e){return typeof e=="symbol"})),jl=je(J(function(e){return e==null}));var Al={__proto__:null,matcher:De,optional:or,array:function(...e){return rr({[De]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(e.length===0)return{matched:!0};const n=e[0];let i={};if(t.length===0)return Oe(n).forEach(o=>{i[o]=[]}),{matched:!0,selections:i};const r=(o,s)=>{i[o]=(i[o]||[]).concat([s])};return{matched:t.every(o=>Te(n,o,r)),selections:i}},getSelectionKeys:()=>e.length===0?[]:Oe(e[0])})})},set:function(...e){return je({[De]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};const i=(o,s)=>{n[o]=(n[o]||[]).concat([s])},r=e[0];return{matched:gl(t,o=>Te(r,o,i)),selections:n}},getSelectionKeys:()=>e.length===0?[]:Oe(e[0])})})},map:function(...e){return je({[De]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};const i=(a,c)=>{n[a]=(n[a]||[]).concat([c])};if(e.length===0)return{matched:!0};var r;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(r=e[0])==null?void 0:r.toString()}`);const[o,s]=e;return{matched:Ml(t,(a,c)=>{const u=Te(o,c,i),l=Te(s,a,i);return u&&l}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...Oe(e[0]),...Oe(e[1])]})})},intersection:ue,union:cs,not:function(e){return je({[De]:()=>({match:t=>({matched:!Te(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:J,select:Sn,any:us,_:hl,string:yl,number:ml,bigint:Nl,boolean:Tl,symbol:Ll,nullish:jl,instanceOf:function(e){return je(J(function(t){return n=>n instanceof t}(e)))},shape:function(e){return je(J(dl(e)))}};const sr={matched:!1,value:void 0};function El(e){return new ti(e,sr)}class ti{constructor(t,n){this.input=void 0,this.state=void 0,this.input=t,this.state=n}with(...t){if(this.state.matched)return this;const n=t[t.length-1],i=[t[0]];let r;t.length===3&&typeof t[1]=="function"?(i.push(t[0]),r=t[1]):t.length>2&&i.push(...t.slice(1,t.length-1));let o=!1,s={};const a=(u,l)=>{o=!0,s[u]=l},c=!i.some(u=>Te(u,this.input,a))||r&&!r(this.input)?sr:{matched:!0,value:n(o?Jn in s?s[Jn]:s:this.input,this.input)};return new ti(this.input,c)}when(t,n){if(this.state.matched)return this;const i=!!t(this.input);return new ti(this.input,i?{matched:!0,value:n(this.input,this.input)}:sr)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){return this.run()}run(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}returnType(){return this}}const Le={PROCESSING:{key:"PROCESSING",reticleType:"processing",minDuration:1e3},SIDE_CAPTURED:{key:"SIDE_CAPTURED",reticleType:"flip",minDuration:3e3},DOCUMENT_CAPTURED:{key:"DOCUMENT_CAPTURED",reticleType:"done",minDuration:1e3},SENSING_FRONT:{key:"SENSING_FRONT",reticleType:"searching",minDuration:1e3},SENSING_BACK:{key:"SENSING_BACK",reticleType:"searching",minDuration:1e3},DOCUMENT_FRAMING_CAMERA_TOO_FAR:{key:"DOCUMENT_FRAMING_CAMERA_TOO_FAR",reticleType:"error",minDuration:1500},DOCUMENT_FRAMING_CAMERA_TOO_CLOSE:{key:"DOCUMENT_FRAMING_CAMERA_TOO_CLOSE",reticleType:"error",minDuration:1500},DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION:{key:"DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION",reticleType:"rotate",minDuration:3e3},DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE:{key:"DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE",reticleType:"error",minDuration:1500},DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP:{key:"DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP",reticleType:"error",minDuration:1500},DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE:{key:"DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE",reticleType:"error",minDuration:1500},LIGHTING_TOO_DARK:{key:"LIGHTING_TOO_DARK",reticleType:"error",minDuration:1500},LIGHTING_TOO_BRIGHT:{key:"LIGHTING_TOO_BRIGHT",reticleType:"error",minDuration:1500},BLUR_DETECTED:{key:"BLUR_DETECTED",reticleType:"error",minDuration:1500},GLARE_DETECTED:{key:"GLARE_DETECTED",reticleType:"error",minDuration:1500},OCCLUDED:{key:"OCCLUDED",reticleType:"error",minDuration:1500},WRONG_SIDE:{key:"WRONG_SIDE",reticleType:"error",minDuration:1500}};class Sl{timeWindow=3e3;decayRate=.95;eventStack=[];currentUiState=Le.SENSING_FRONT;currentStateStartTime=performance.now();reset(){this.eventStack=[]}getUiState(t){const n=performance.now(),i={stateKey:this.getUiStateKeyFromResult(t),timeStamp:n,currentWeight:1};if(i.stateKey==="SIDE_CAPTURED"||i.stateKey==="DOCUMENT_CAPTURED")return this.eventStack=[],Le[i.stateKey];this.eventStack.push(i);const r={};if(this.eventStack.forEach(s=>{if(n-s.timeStamp>this.timeWindow){this.eventStack.shift();return}const a=s.timeStamp/n;s.currentWeight*=this.decayRate*a,r[s.stateKey]||(r[s.stateKey]=[]),r[s.stateKey].push(s.currentWeight)}),n-this.currentStateStartTime<this.currentUiState.minDuration)return this.currentUiState;const o={};for(const s in r){const a=s,c=s.length/this.eventStack.length,u=r[a].reduce((l,g)=>l+g,0);o[a]=u*c}try{const s=es(o),a=Le[s];return a!==this.currentUiState&&(this.currentUiState=a,this.currentStateStartTime=n),a}catch{return this.currentUiState}}getUiStateKeyFromResult(t){return El(t).with({frameCaptured:!0,captureState:Al.when(n=>n==="first-side-capture-in-progress"||n==="second-side-capture-in-progress")},()=>"PROCESSING").with({captureState:"first-side-capture-in-progress",frameAnalysisStatus:{framingStatus:"no-document"}},()=>"SENSING_FRONT").with({captureState:"second-side-capture-in-progress",frameAnalysisStatus:{framingStatus:"no-document"}},()=>"SENSING_BACK").with({captureState:"document-captured"},()=>"DOCUMENT_CAPTURED").with({captureState:"side-captured"},()=>"SIDE_CAPTURED").with({frameAnalysisStatus:{sideAnalysisStatus:"side-already-captured"}},()=>"WRONG_SIDE").with({frameAnalysisStatus:{framingStatus:"camera-angle-too-steep"}},()=>"DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP").with({frameAnalysisStatus:{framingStatus:"camera-too-close"}},()=>"DOCUMENT_FRAMING_CAMERA_TOO_CLOSE").with({frameAnalysisStatus:{framingStatus:"camera-orientation-unsuitable"}},()=>"DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE").with({frameAnalysisStatus:{framingStatus:"camera-too-far"}},()=>"DOCUMENT_FRAMING_CAMERA_TOO_FAR").with({frameAnalysisStatus:{framingStatus:"document-too-close-to-frame-edge"}},()=>"DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE").with({frameAnalysisStatus:{lightingStatus:"too-bright"}},()=>"LIGHTING_TOO_BRIGHT").with({frameAnalysisStatus:{lightingStatus:"too-dark"}},()=>"LIGHTING_TOO_DARK").with({frameAnalysisStatus:{blurStatus:"blur-detected"}},()=>"BLUR_DETECTED").with({frameAnalysisStatus:{glareStatus:"glare-detected"}},()=>"GLARE_DETECTED").with({frameAnalysisStatus:{occlusionStatus:"occluded"}},()=>"OCCLUDED").otherwise(()=>"SENSING_FRONT")}}const ar=new Sl,cr=document.createElement("canvas"),ni=cr.getContext("2d",{willReadFrequently:!0,alpha:!1});function pl(e,t=!1){if(!ni)throw new Error("CanvasRenderingContext2D is missing!");const n=e.videoWidth,i=e.videoHeight;return cr.width=n,cr.height=i,ni.drawImage(e,0,0,n,i),t&&ni.scale(-1,1),ni.getImageData(0,0,n,i)}const Il=e=>(t,n,i)=>{const r=i.subscribe;return i.subscribe=(s,a,c)=>{let u=s;if(a){const l=c?.equalityFn||Object.is;let g=s(i.getState());u=f=>{const h=s(f);if(!l(g,h)){const d=g;a(g=h,d)}},c?.fireImmediately&&a(g,g)}return r(u)},e(t,n,i)},ls=e=>{let t;const n=new Set,i=(c,u)=>{const l=typeof c=="function"?c(t):c;if(!Object.is(l,t)){const g=t;t=u??typeof l!="object"?l:Object.assign({},t,l),n.forEach(f=>f(t,g))}},r=()=>t,a={setState:i,getState:r,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{n.clear()}};return t=e(i,r,a),a},wl=e=>e?ls(e):ls,fs={cameras:[],videoElement:null,selectedCamera:null,isPlaying:!1,isCapturing:!1,isSwappingCamera:!1,isQueryingCameras:!1,callbacks:{},mirrorX:!1,uiState:structuredClone(Le.SENSING_FRONT),captureRequiresLandscape:!1,initialized:!1,errorState:null,analyzerSettings:{}},k=wl()(Il(()=>structuredClone(fs)));k.subscribe(e=>e.videoElement,(e,t)=>{!e&&t&&ur()});const ur=()=>{console.log("resetting zustand store"),k.getState().cameras.forEach(e=>{e.stopStream()}),k.setState(structuredClone(fs))};let lr,ii;class xl{#e;#t;constructor(t){this.#e=t}setupVideoElement(t){new Ct(i=>{i[0].connected||this.destroy()}).observe(t),t.playsInline=!0,t.setAttribute("muted","")}async updateAnalyzerSettings(t){if(k.getState().isCapturing){console.warn("Cancel the capture process using `cancelCapture()` before updating settings");return}try{await this.#e.updateSettings(t)}catch(n){console.error("Error updating analyzer settings",n)}}async selectCamera(t){const n=k.getState();if(n.selectedCamera===t){console.warn("Already selected");return}if(n.isSwappingCamera)return;const i=n.selectedCamera;k.setState({isSwappingCamera:!0}),i&&i.stopStream(),n.videoElement&&(n.videoElement.srcObject=null);try{const r=await t.startStream();n.videoElement&&(n.videoElement.srcObject=r,n.isPlaying&&await n.videoElement.play()),k.setState({selectedCamera:t,isSwappingCamera:!1})}catch(r){console.error(r)}}async updateCameraDevices(){if(k.getState().isQueryingCameras||k.getState().isSwappingCamera)return;k.setState({isQueryingCameras:!0});const t=await il();if(t.length<1)throw new Error("No capable devices found! Your camera needs to have a minimum resolution of 1920x1080");el(t);const n=tl(t),i=t.find(r=>r.deviceInfo.deviceId===n);k.setState({cameras:t,selectedCamera:i,isQueryingCameras:!1})}async startPlayback(){const t=k.getState();if(!t.isPlaying){if(!t.videoElement){console.warn("No video element present.");return}if(!t.videoElement.srcObject){console.warn("No source present. Start a camera stream first.");return}if(!t.selectedCamera){console.warn("No selected camera");return}await t.selectedCamera.startStream(),await t.videoElement.play(),k.setState({isPlaying:!0}),t.isCapturing===!0&&t.videoElement.requestVideoFrameCallback(()=>void this.#n())}}async startCameraStream(t,n=!0){if(k.getState().isPlaying){console.warn("Already streaming");return}if(k.getState().selectedCamera)console.log("Reusing previous device");else try{await this.updateCameraDevices()}catch(c){k.setState({errorState:Ji(c)});return}const i=k.getState();if(!i.selectedCamera){console.warn("No selected camera!");return}const r=await i.selectedCamera.startStream(),o=r.getVideoTracks()[0],s=o.getSettings();if(!s.width||!s.height)throw new Error("Video doesn't have dimensions!");if(!t.isConnected)throw new Error("Video element needs to be in the document!");k.getState().videoElement||this.setupVideoElement(t),t.srcObject=r,t.width=s.width,t.height=s.height,o.getSettings().facingMode==="environment"?k.setState({mirrorX:!1}):k.setState({mirrorX:!0}),k.setState({videoElement:t}),n&&await this.startPlayback()}async startCapture(){const t=k.getState();if(!t.isCapturing){if(!t.videoElement){console.warn("Missing video element");return}if(!t.selectedCamera){console.warn("No active camera!");return}await this.startPlayback(),k.getState().isPlaying&&(k.setState({isCapturing:!0}),this.#t=t.videoElement.requestVideoFrameCallback(()=>void this.#n()))}}pauseCapture(){const t=k.getState().videoElement;t&&this.#t&&t.cancelVideoFrameCallback(this.#t),k.setState({isCapturing:!1})}async cancelCapture(){await this.resetCapture(),ar.reset(),this.pauseCapture(),k.setState({uiState:Le.SENSING_FRONT})}async resetCapture(){await this.#e.resetCapture(),this.#i()}async stopStream(){console.log("stopStream called");const t=k.getState();if(t.selectedCamera?.stopStream(),!t.videoElement){console.log("no video element");return}t.videoElement.srcObject=null,await this.cancelCapture(),this.pausePlayback()}async finishSideCapture(){return await this.#e.finishSideCapture()}pausePlayback(){console.log("pausePlayback called");const t=k.getState();if(!t.videoElement){k.setState({isPlaying:!1});return}this.pauseCapture(),t.videoElement.pause(),k.setState({isPlaying:!1})}#i(){k.setState({captureRequiresLandscape:!1})}async#n(){const t=k.getState();if(!t.isCapturing||!t.isPlaying)return;if(!t.videoElement){console.error("Missing video element");return}const n=t.callbacks?.onFrameAnalysis,i=typeof n=="function",r=pl(t.videoElement);lr=new ImageData(Uint8ClampedArray.from(r.data),r.width,r.height);const o=await this.#e.analyze(r);if("error"in o){k.setState({errorState:Ji(o.error)});return}const s=ar.getUiState(o);if(i)try{n(o,lr),window.setTimeout(()=>lr=null,0)}catch(a){throw console.warn("onFrameAnalysis callback exception"),a}if(s.key==="DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE"){if(!k.getState().captureRequiresLandscape){this.pauseCapture();const a=Le.DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION;k.setState({uiState:a,captureRequiresLandscape:!0}),await new Promise(c=>setTimeout(c,a.minDuration)),await this.startCapture();return}k.setState({uiState:Le.DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE})}if(s.key==="SIDE_CAPTURED"){this.pauseCapture(),k.setState({uiState:Le.SIDE_CAPTURED}),await new Promise(a=>setTimeout(a,Le.SIDE_CAPTURED.minDuration)),await this.startCapture();return}if(s.key==="DOCUMENT_CAPTURED"){this.pausePlayback(),k.setState({uiState:Le.DOCUMENT_CAPTURED}),await new Promise(c=>setTimeout(c,Le.DOCUMENT_CAPTURED.minDuration));const a=await this.#e.getResult();try{t.callbacks?.onCaptureResult?.(a)}catch(c){console.warn("onCaptureResult callback exception",c)}this.#i();return}k.setState({uiState:s}),this.#t=t.videoElement.requestVideoFrameCallback(()=>void this.#n())}setCallbacks(t){k.setState({callbacks:t})}setMirrorX(t){k.setState({mirrorX:t})}subscribe=k.subscribe;getState=k.getState;async destroy(){ur(),await this.#e.terminateWorker()}}async function ds(e){try{if(!window.isSecureContext)throw new Error(qi`
14
+ `;let c="";if(n.useBlob){const u=new Blob([a+o],{type:is});c=URL.createObjectURL(u)}else c=`data:${is},`+encodeURIComponent(a+o);i(c)}).catch(()=>{r(new Error(`Failed to fetch worker from ${e}`))}))},cl=async(e=window.location.href)=>{const t=await al(e+"/resources/capture-worker.js"),n=new Worker(t);n.onerror=r=>{console.error("Worker error:",r)};const i=Fo(n);return await i.setResourceUrl(e+"/resources"),i};let rs=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");const os="capture-userid";function ul(){if(!ll())return rs();const t=localStorage.getItem(os);if(t)return t;const n=rs();return localStorage.setItem(os,n),n}function ll(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch{return!1}}function fl(e){return{licenseId:e.licenseId,licensee:e.licensee,applicationIds:e.applicationIds,packageName:e.packageName,platform:"Browser",sdkName:e.sdkName,sdkVersion:e.sdkVersion}}async function dl(e){try{return await(await fetch("https://baltazar.microblink.com/api/v2/status/check",{method:"POST",headers:{"Content-Type":"application/json"},cache:"no-cache",body:JSON.stringify(fl(e))})).json()}catch(t){throw console.error(t),t}}class gl{#e;#t;constructor(t,n){this.#e=t,this.#t=n}analyze=async t=>{const n=sl(t);return await this.#e.analyze(Go(n,[n.data.buffer]))};finishSideCapture=async()=>await this.#t.finishSideCapture();getResult=async()=>await this.#t.getResult();getSettings=async()=>await this.#t.getSettings();updateSettings=async t=>{const i={...await this.getSettings(),...t};await this.#t.updateSettings(i)};resetCapture=async()=>{await this.#t.reset()};async terminateWorker(){await this.#e.terminate()}}async function ss(e){const t=await cl(e.resourceUrl),n=ul(),i=await t.loadWasm(),r=await i.initializeWithLicenseKey(e.licenseKey,n,!1);if(r.unlockResult===Vi.RequiresServerPermission){const u=await dl(r),l=await i.submitServerPermission(JSON.stringify(u));if(console.log(l),l.status!==Ki.Ok)throw new Error("Server unlock not ok.")}const o=await t.createAnalyzer();if(!o)throw new Error("Failed to create analyzer");let a={...await o.getSettings(),minimumDocumentDpi:220};return e.analyzerSettings&&Object.assign(a,e.analyzerSettings),await o.updateSettings(a),new gl(t,o)}const De=Symbol.for("@ts-pattern/matcher"),as=Symbol.for("@ts-pattern/isVariadic"),Jn="@ts-pattern/anonymous-select-key",ir=e=>!!(e&&typeof e=="object"),ei=e=>e&&!!e[De],Te=(e,t,n)=>{if(ei(e)){const i=e[De](),{matched:r,selections:o}=i.match(t);return r&&o&&Object.keys(o).forEach(s=>n(s,o[s])),r}if(ir(e)){if(!ir(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let i=[],r=[],o=[];for(const s of e.keys()){const a=e[s];ei(a)&&a[as]?o.push(a):o.length?r.push(a):i.push(a)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<i.length+r.length)return!1;const s=t.slice(0,i.length),a=r.length===0?[]:t.slice(-r.length),c=t.slice(i.length,r.length===0?1/0:-r.length);return i.every((u,l)=>Te(u,s[l],n))&&r.every((u,l)=>Te(u,a[l],n))&&(o.length===0||Te(o[0],c,n))}return e.length===t.length&&e.every((s,a)=>Te(s,t[a],n))}return Object.keys(e).every(i=>{const r=e[i];return(i in t||ei(o=r)&&o[De]().matcherType==="optional")&&Te(r,t[i],n);var o})}return Object.is(t,e)},Oe=e=>{var t,n,i;return ir(e)?ei(e)?(t=(n=(i=e[De]()).getSelectionKeys)==null?void 0:n.call(i))!=null?t:[]:Array.isArray(e)?En(e,Oe):En(Object.values(e),Oe):[]},En=(e,t)=>e.reduce((n,i)=>n.concat(t(i)),[]);function Ml(...e){if(e.length===1){const[t]=e;return n=>Te(t,n,()=>{})}if(e.length===2){const[t,n]=e;return Te(t,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function je(e){return Object.assign(e,{optional:()=>or(e),and:t=>ue(e,t),or:t=>cs(e,t),select:t=>t===void 0?Sn(e):Sn(t,e)})}function rr(e){return Object.assign((t=>Object.assign(t,{*[Symbol.iterator](){yield Object.assign(t,{[as]:!0})}}))(e),{optional:()=>rr(or(e)),select:t=>rr(t===void 0?Sn(e):Sn(t,e))})}function or(e){return je({[De]:()=>({match:t=>{let n={};const i=(r,o)=>{n[r]=o};return t===void 0?(Oe(e).forEach(r=>i(r,void 0)),{matched:!0,selections:n}):{matched:Te(e,t,i),selections:n}},getSelectionKeys:()=>Oe(e),matcherType:"optional"})})}const hl=(e,t)=>{for(const n of e)if(!t(n))return!1;return!0},yl=(e,t)=>{for(const[n,i]of e.entries())if(!t(i,n))return!1;return!0};function ue(...e){return je({[De]:()=>({match:t=>{let n={};const i=(r,o)=>{n[r]=o};return{matched:e.every(r=>Te(r,t,i)),selections:n}},getSelectionKeys:()=>En(e,Oe),matcherType:"and"})})}function cs(...e){return je({[De]:()=>({match:t=>{let n={};const i=(r,o)=>{n[r]=o};return En(e,Oe).forEach(r=>i(r,void 0)),{matched:e.some(r=>Te(r,t,i)),selections:n}},getSelectionKeys:()=>En(e,Oe),matcherType:"or"})})}function J(e){return{[De]:()=>({match:t=>({matched:!!e(t)})})}}function Sn(...e){const t=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return je({[De]:()=>({match:i=>{let r={[t??Jn]:i};return{matched:n===void 0||Te(n,i,(o,s)=>{r[o]=s}),selections:r}},getSelectionKeys:()=>[t??Jn].concat(n===void 0?[]:Oe(n))})})}function nt(e){return typeof e=="number"}function zt(e){return typeof e=="string"}function Nt(e){return typeof e=="bigint"}const us=je(J(function(e){return!0})),ml=us,_t=e=>Object.assign(je(e),{startsWith:t=>{return _t(ue(e,(n=t,J(i=>zt(i)&&i.startsWith(n)))));var n},endsWith:t=>{return _t(ue(e,(n=t,J(i=>zt(i)&&i.endsWith(n)))));var n},minLength:t=>_t(ue(e,(n=>J(i=>zt(i)&&i.length>=n))(t))),maxLength:t=>_t(ue(e,(n=>J(i=>zt(i)&&i.length<=n))(t))),includes:t=>{return _t(ue(e,(n=t,J(i=>zt(i)&&i.includes(n)))));var n},regex:t=>{return _t(ue(e,(n=t,J(i=>zt(i)&&!!i.match(n)))));var n}}),Nl=_t(J(zt)),it=e=>Object.assign(je(e),{between:(t,n)=>it(ue(e,((i,r)=>J(o=>nt(o)&&i<=o&&r>=o))(t,n))),lt:t=>it(ue(e,(n=>J(i=>nt(i)&&i<n))(t))),gt:t=>it(ue(e,(n=>J(i=>nt(i)&&i>n))(t))),lte:t=>it(ue(e,(n=>J(i=>nt(i)&&i<=n))(t))),gte:t=>it(ue(e,(n=>J(i=>nt(i)&&i>=n))(t))),int:()=>it(ue(e,J(t=>nt(t)&&Number.isInteger(t)))),finite:()=>it(ue(e,J(t=>nt(t)&&Number.isFinite(t)))),positive:()=>it(ue(e,J(t=>nt(t)&&t>0))),negative:()=>it(ue(e,J(t=>nt(t)&&t<0)))}),Tl=it(J(nt)),Tt=e=>Object.assign(je(e),{between:(t,n)=>Tt(ue(e,((i,r)=>J(o=>Nt(o)&&i<=o&&r>=o))(t,n))),lt:t=>Tt(ue(e,(n=>J(i=>Nt(i)&&i<n))(t))),gt:t=>Tt(ue(e,(n=>J(i=>Nt(i)&&i>n))(t))),lte:t=>Tt(ue(e,(n=>J(i=>Nt(i)&&i<=n))(t))),gte:t=>Tt(ue(e,(n=>J(i=>Nt(i)&&i>=n))(t))),positive:()=>Tt(ue(e,J(t=>Nt(t)&&t>0))),negative:()=>Tt(ue(e,J(t=>Nt(t)&&t<0)))}),Ll=Tt(J(Nt)),jl=je(J(function(e){return typeof e=="boolean"})),Al=je(J(function(e){return typeof e=="symbol"})),El=je(J(function(e){return e==null}));var Sl={__proto__:null,matcher:De,optional:or,array:function(...e){return rr({[De]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(e.length===0)return{matched:!0};const n=e[0];let i={};if(t.length===0)return Oe(n).forEach(o=>{i[o]=[]}),{matched:!0,selections:i};const r=(o,s)=>{i[o]=(i[o]||[]).concat([s])};return{matched:t.every(o=>Te(n,o,r)),selections:i}},getSelectionKeys:()=>e.length===0?[]:Oe(e[0])})})},set:function(...e){return je({[De]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};const i=(o,s)=>{n[o]=(n[o]||[]).concat([s])},r=e[0];return{matched:hl(t,o=>Te(r,o,i)),selections:n}},getSelectionKeys:()=>e.length===0?[]:Oe(e[0])})})},map:function(...e){return je({[De]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};const i=(a,c)=>{n[a]=(n[a]||[]).concat([c])};if(e.length===0)return{matched:!0};var r;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(r=e[0])==null?void 0:r.toString()}`);const[o,s]=e;return{matched:yl(t,(a,c)=>{const u=Te(o,c,i),l=Te(s,a,i);return u&&l}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...Oe(e[0]),...Oe(e[1])]})})},intersection:ue,union:cs,not:function(e){return je({[De]:()=>({match:t=>({matched:!Te(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:J,select:Sn,any:us,_:ml,string:Nl,number:Tl,bigint:Ll,boolean:jl,symbol:Al,nullish:El,instanceOf:function(e){return je(J(function(t){return n=>n instanceof t}(e)))},shape:function(e){return je(J(Ml(e)))}};const sr={matched:!1,value:void 0};function pl(e){return new ti(e,sr)}class ti{constructor(t,n){this.input=void 0,this.state=void 0,this.input=t,this.state=n}with(...t){if(this.state.matched)return this;const n=t[t.length-1],i=[t[0]];let r;t.length===3&&typeof t[1]=="function"?(i.push(t[0]),r=t[1]):t.length>2&&i.push(...t.slice(1,t.length-1));let o=!1,s={};const a=(u,l)=>{o=!0,s[u]=l},c=!i.some(u=>Te(u,this.input,a))||r&&!r(this.input)?sr:{matched:!0,value:n(o?Jn in s?s[Jn]:s:this.input,this.input)};return new ti(this.input,c)}when(t,n){if(this.state.matched)return this;const i=!!t(this.input);return new ti(this.input,i?{matched:!0,value:n(this.input,this.input)}:sr)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){return this.run()}run(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}returnType(){return this}}const Le={PROCESSING:{key:"PROCESSING",reticleType:"processing",minDuration:1e3},SIDE_CAPTURED:{key:"SIDE_CAPTURED",reticleType:"flip",minDuration:3e3},DOCUMENT_CAPTURED:{key:"DOCUMENT_CAPTURED",reticleType:"done",minDuration:1e3},SENSING_FRONT:{key:"SENSING_FRONT",reticleType:"searching",minDuration:1e3},SENSING_BACK:{key:"SENSING_BACK",reticleType:"searching",minDuration:1e3},DOCUMENT_FRAMING_CAMERA_TOO_FAR:{key:"DOCUMENT_FRAMING_CAMERA_TOO_FAR",reticleType:"error",minDuration:1500},DOCUMENT_FRAMING_CAMERA_TOO_CLOSE:{key:"DOCUMENT_FRAMING_CAMERA_TOO_CLOSE",reticleType:"error",minDuration:1500},DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION:{key:"DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION",reticleType:"rotate",minDuration:3e3},DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE:{key:"DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE",reticleType:"error",minDuration:1500},DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP:{key:"DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP",reticleType:"error",minDuration:1500},DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE:{key:"DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE",reticleType:"error",minDuration:1500},LIGHTING_TOO_DARK:{key:"LIGHTING_TOO_DARK",reticleType:"error",minDuration:1500},LIGHTING_TOO_BRIGHT:{key:"LIGHTING_TOO_BRIGHT",reticleType:"error",minDuration:1500},BLUR_DETECTED:{key:"BLUR_DETECTED",reticleType:"error",minDuration:1500},GLARE_DETECTED:{key:"GLARE_DETECTED",reticleType:"error",minDuration:1500},OCCLUDED:{key:"OCCLUDED",reticleType:"error",minDuration:1500},WRONG_SIDE:{key:"WRONG_SIDE",reticleType:"error",minDuration:1500}};class Il{timeWindow=3e3;decayRate=.95;eventStack=[];currentUiState=Le.SENSING_FRONT;currentStateStartTime=performance.now();reset(){this.eventStack=[]}getUiState(t){const n=performance.now(),i={stateKey:this.getUiStateKeyFromResult(t),timeStamp:n,currentWeight:1};if(i.stateKey==="SIDE_CAPTURED"||i.stateKey==="DOCUMENT_CAPTURED")return this.eventStack=[],Le[i.stateKey];this.eventStack.push(i);const r={};if(this.eventStack.forEach(s=>{if(n-s.timeStamp>this.timeWindow){this.eventStack.shift();return}const a=s.timeStamp/n;s.currentWeight*=this.decayRate*a,r[s.stateKey]||(r[s.stateKey]=[]),r[s.stateKey].push(s.currentWeight)}),n-this.currentStateStartTime<this.currentUiState.minDuration)return this.currentUiState;const o={};for(const s in r){const a=s,c=s.length/this.eventStack.length,u=r[a].reduce((l,g)=>l+g,0);o[a]=u*c}try{const s=Jo(o),a=Le[s];return a!==this.currentUiState&&(this.currentUiState=a,this.currentStateStartTime=n),a}catch{return this.currentUiState}}getUiStateKeyFromResult(t){return pl(t).with({frameCaptured:!0,captureState:Sl.when(n=>n==="first-side-capture-in-progress"||n==="second-side-capture-in-progress")},()=>"PROCESSING").with({captureState:"first-side-capture-in-progress",frameAnalysisStatus:{framingStatus:"no-document"}},()=>"SENSING_FRONT").with({captureState:"second-side-capture-in-progress",frameAnalysisStatus:{framingStatus:"no-document"}},()=>"SENSING_BACK").with({captureState:"document-captured"},()=>"DOCUMENT_CAPTURED").with({captureState:"side-captured"},()=>"SIDE_CAPTURED").with({frameAnalysisStatus:{sideAnalysisStatus:"side-already-captured"}},()=>"WRONG_SIDE").with({frameAnalysisStatus:{framingStatus:"camera-angle-too-steep"}},()=>"DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP").with({frameAnalysisStatus:{framingStatus:"camera-too-close"}},()=>"DOCUMENT_FRAMING_CAMERA_TOO_CLOSE").with({frameAnalysisStatus:{framingStatus:"camera-orientation-unsuitable"}},()=>"DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE").with({frameAnalysisStatus:{framingStatus:"camera-too-far"}},()=>"DOCUMENT_FRAMING_CAMERA_TOO_FAR").with({frameAnalysisStatus:{framingStatus:"document-too-close-to-frame-edge"}},()=>"DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE").with({frameAnalysisStatus:{lightingStatus:"too-bright"}},()=>"LIGHTING_TOO_BRIGHT").with({frameAnalysisStatus:{lightingStatus:"too-dark"}},()=>"LIGHTING_TOO_DARK").with({frameAnalysisStatus:{blurStatus:"blur-detected"}},()=>"BLUR_DETECTED").with({frameAnalysisStatus:{glareStatus:"glare-detected"}},()=>"GLARE_DETECTED").with({frameAnalysisStatus:{occlusionStatus:"occluded"}},()=>"OCCLUDED").otherwise(()=>"SENSING_FRONT")}}const ar=new Il,cr=document.createElement("canvas"),ni=cr.getContext("2d",{willReadFrequently:!0,alpha:!1});function wl(e,t=!1){if(!ni)throw new Error("CanvasRenderingContext2D is missing!");const n=e.videoWidth,i=e.videoHeight;return cr.width=n,cr.height=i,ni.drawImage(e,0,0,n,i),t&&ni.scale(-1,1),ni.getImageData(0,0,n,i)}const xl=e=>(t,n,i)=>{const r=i.subscribe;return i.subscribe=(s,a,c)=>{let u=s;if(a){const l=c?.equalityFn||Object.is;let g=s(i.getState());u=f=>{const h=s(f);if(!l(g,h)){const d=g;a(g=h,d)}},c?.fireImmediately&&a(g,g)}return r(u)},e(t,n,i)},ls=e=>{let t;const n=new Set,i=(c,u)=>{const l=typeof c=="function"?c(t):c;if(!Object.is(l,t)){const g=t;t=u??typeof l!="object"?l:Object.assign({},t,l),n.forEach(f=>f(t,g))}},r=()=>t,a={setState:i,getState:r,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{n.clear()}};return t=e(i,r,a),a},Dl=e=>e?ls(e):ls,fs={cameras:[],videoElement:null,selectedCamera:null,isPlaying:!1,isCapturing:!1,isSwappingCamera:!1,isQueryingCameras:!1,callbacks:{},mirrorX:!1,uiState:structuredClone(Le.SENSING_FRONT),captureRequiresLandscape:!1,initialized:!1,errorState:null,analyzerSettings:{}},k=Dl()(xl(()=>structuredClone(fs))),ds=()=>{console.log("resetting zustand store"),k.getState().cameras.forEach(e=>{e.stopStream()}),k.setState(structuredClone(fs))};let ur,ii;class bl{#e;#t;constructor(t){this.#e=t}setupVideoElement(t){new Ct(i=>{i[0].connected||(k.setState({videoElement:null}),this.cancelCapture())}).observe(t),t.playsInline=!0,t.setAttribute("muted","")}async updateAnalyzerSettings(t){if(k.getState().isCapturing){console.warn("Cancel the capture process using `cancelCapture()` before updating settings");return}try{await this.#e.updateSettings(t)}catch(n){console.error("Error updating analyzer settings",n)}}async selectCamera(t){const n=k.getState();if(n.selectedCamera===t){console.warn("Already selected");return}if(n.isSwappingCamera)return;const i=n.selectedCamera;k.setState({isSwappingCamera:!0}),i&&i.stopStream(),n.videoElement&&(n.videoElement.srcObject=null);try{const r=await t.startStream();n.videoElement&&(n.videoElement.srcObject=r,n.isPlaying&&await n.videoElement.play()),k.setState({selectedCamera:t,isSwappingCamera:!1})}catch(r){console.error(r)}}async updateCameraDevices(){if(k.getState().isQueryingCameras||k.getState().isSwappingCamera)return;k.setState({isQueryingCameras:!0});const t=await ol();if(t.length<1)throw new Error("No capable devices found! Your camera needs to have a minimum resolution of 1920x1080");nl(t);const n=il(t),i=t.find(r=>r.deviceInfo.deviceId===n);k.setState({cameras:t,selectedCamera:i,isQueryingCameras:!1})}async startPlayback(){const t=k.getState();if(!t.isPlaying){if(!t.videoElement){console.warn("No video element present.");return}if(!t.videoElement.srcObject){console.warn("No source present. Start a camera stream first.");return}if(!t.selectedCamera){console.warn("No selected camera");return}await t.selectedCamera.startStream(),await t.videoElement.play(),k.setState({isPlaying:!0}),t.isCapturing===!0&&t.videoElement.requestVideoFrameCallback(()=>void this.#n())}}async startCameraStream(t,n=!0){if(k.getState().isPlaying){console.warn("Already streaming");return}if(k.getState().selectedCamera)console.log("Reusing previous device");else try{await this.updateCameraDevices()}catch(c){k.setState({errorState:Ji(c)});return}const i=k.getState();if(!i.selectedCamera){console.warn("No selected camera!");return}const r=await i.selectedCamera.startStream(),o=r.getVideoTracks()[0],s=o.getSettings();if(!s.width||!s.height)throw new Error("Video doesn't have dimensions!");if(!t.isConnected)throw new Error("Video element needs to be in the document!");k.getState().videoElement||this.setupVideoElement(t),t.srcObject=r,t.width=s.width,t.height=s.height,o.getSettings().facingMode==="environment"?k.setState({mirrorX:!1}):k.setState({mirrorX:!0}),k.setState({videoElement:t}),n&&await this.startPlayback()}async startCapture(){const t=k.getState();if(!t.isCapturing){if(!t.videoElement){console.warn("Missing video element");return}if(!t.selectedCamera){console.warn("No active camera!");return}await this.startPlayback(),k.getState().isPlaying&&(k.setState({isCapturing:!0}),this.#t=t.videoElement.requestVideoFrameCallback(()=>void this.#n()))}}pauseCapture(){const t=k.getState().videoElement;t&&this.#t&&t.cancelVideoFrameCallback(this.#t),k.setState({isCapturing:!1})}async cancelCapture(){await this.resetCapture(),ar.reset(),this.pauseCapture(),k.setState({uiState:Le.SENSING_FRONT})}async resetCapture(){await this.#e.resetCapture(),this.#i()}async stopStream(){console.log("stopStream called");const t=k.getState();if(t.selectedCamera?.stopStream(),await this.cancelCapture(),!t.videoElement){console.log("no video element");return}t.videoElement.srcObject=null,this.pausePlayback()}async finishSideCapture(){return await this.#e.finishSideCapture()}pausePlayback(){console.log("pausePlayback called");const t=k.getState();if(!t.videoElement){k.setState({isPlaying:!1});return}this.pauseCapture(),t.videoElement.pause(),k.setState({isPlaying:!1})}#i(){k.setState({captureRequiresLandscape:!1})}async#n(){const t=k.getState();if(!t.isCapturing||!t.isPlaying)return;if(!t.videoElement){console.error("Missing video element");return}const n=t.callbacks?.onFrameAnalysis,i=typeof n=="function",r=wl(t.videoElement);ur=new ImageData(Uint8ClampedArray.from(r.data),r.width,r.height);const o=await this.#e.analyze(r);if("error"in o){k.setState({errorState:Ji(o.error)});return}const s=ar.getUiState(o);if(i)try{n(o,ur),window.setTimeout(()=>ur=null,0)}catch(a){throw console.warn("onFrameAnalysis callback exception"),a}if(s.key==="DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE"){if(!k.getState().captureRequiresLandscape){this.pauseCapture();const a=Le.DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION;k.setState({uiState:a,captureRequiresLandscape:!0}),await new Promise(c=>setTimeout(c,a.minDuration)),await this.startCapture();return}k.setState({uiState:Le.DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE})}if(s.key==="SIDE_CAPTURED"){this.pauseCapture(),k.setState({uiState:Le.SIDE_CAPTURED}),await new Promise(a=>setTimeout(a,Le.SIDE_CAPTURED.minDuration)),await this.startCapture();return}if(s.key==="DOCUMENT_CAPTURED"){this.pausePlayback(),k.setState({uiState:Le.DOCUMENT_CAPTURED}),await new Promise(c=>setTimeout(c,Le.DOCUMENT_CAPTURED.minDuration));const a=await this.#e.getResult();try{t.callbacks?.onCaptureResult?.(a)}catch(c){console.warn("onCaptureResult callback exception",c)}this.#i();return}k.setState({uiState:s}),this.#t=t.videoElement.requestVideoFrameCallback(()=>void this.#n())}setCallbacks(t){k.setState({callbacks:t})}setMirrorX(t){k.setState({mirrorX:t})}subscribe=k.subscribe;getState=k.getState;async destroy(){console.info("Destroying Capture SDK instance"),ds(),await this.#e.terminateWorker()}}async function gs(e){try{if(!window.isSecureContext)throw new Error(qi`
15
15
  Can't load the SDK outside a secure context:
16
16
  https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
17
- `);if(k.getState().initialized&&ii)return console.warn("Already initialized, reusing previous SDK instance."),ii;const{callbacks:t,...n}=e,i=await ss(n),r=await i.getSettings();return k.setState({analyzerSettings:r}),t&&k.setState({callbacks:t}),k.setState({initialized:!0}),ii=new xl(i),ii}catch(t){throw k.setState({errorState:Ji(t)}),t}}const gs={context:void 0,registry:void 0},Dl=(e,t)=>e===t,Fe=Symbol("solid-proxy"),ri=Symbol("solid-track"),oi={equals:Dl};let Ms=Ts;const lt=1,si=2,hs={owned:null,cleanups:null,context:null,owner:null};var ee=null;let fr=null,oe=null,Ae=null,ft=null,ai=0;const[bl,ky]=P(!1);function kt(e,t){const n=oe,i=ee,r=e.length===0,o=t===void 0?i:t,s=r?hs:{owned:null,cleanups:null,context:o?o.context:null,owner:o},a=r?e:()=>e(()=>ye(()=>di(s)));ee=s,oe=null;try{return jt(a,!0)}finally{oe=n,ee=i}}function P(e,t){t=t?Object.assign({},oi,t):oi;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},i=r=>(typeof r=="function"&&(r=r(n.value)),Ns(n,r));return[ms.bind(n),i]}function ys(e,t,n){const i=ui(e,t,!0,lt);Wt(i)}function Be(e,t,n){const i=ui(e,t,!1,lt);Wt(i)}function H(e,t,n){Ms=Ul;const i=ui(e,t,!1,lt);(!n||!n.render)&&(i.user=!0),ft?ft.push(i):Wt(i)}function Y(e,t,n){n=n?Object.assign({},oi,n):oi;const i=ui(e,t,!0,0);return i.observers=null,i.observerSlots=null,i.comparator=n.equals||void 0,Wt(i),ms.bind(i)}function dr(e){return jt(e,!1)}function ye(e){if(oe===null)return e();const t=oe;oe=null;try{return e()}finally{oe=t}}function Ze(e,t,n){const i=Array.isArray(e);let r,o=n&&n.defer;return s=>{let a;if(i){a=Array(e.length);for(let u=0;u<e.length;u++)a[u]=e[u]()}else a=e();if(o){o=!1;return}const c=ye(()=>t(a,r,s));return r=a,c}}function Lt(e){H(()=>ye(e))}function V(e){return ee===null||(ee.cleanups===null?ee.cleanups=[e]:ee.cleanups.push(e)),e}function gr(){return oe}function vl(){return ee}function Ol(e,t){const n=ee,i=oe;ee=e,oe=null;try{return jt(t,!0)}catch(r){Mr(r)}finally{ee=n,oe=i}}function Cl(e){const t=oe,n=ee;return Promise.resolve().then(()=>{oe=t,ee=n;let i;return jt(e,!1),oe=ee=null,i?i.done:void 0})}function zl(){return[bl,Cl]}function Ce(e,t){const n=Symbol("context");return{id:n,Provider:Pl(n),defaultValue:e}}function ze(e){return ee&&ee.context&&ee.context[e.id]!==void 0?ee.context[e.id]:e.defaultValue}function ci(e){const t=Y(e),n=Y(()=>hr(t()));return n.toArray=()=>{const i=n();return Array.isArray(i)?i:i!=null?[i]:[]},n}function ms(){if(this.sources&&this.state)if(this.state===lt)Wt(this);else{const e=Ae;Ae=null,jt(()=>fi(this),!1),Ae=e}if(oe){const e=this.observers?this.observers.length:0;oe.sources?(oe.sources.push(this),oe.sourceSlots.push(e)):(oe.sources=[this],oe.sourceSlots=[e]),this.observers?(this.observers.push(oe),this.observerSlots.push(oe.sources.length-1)):(this.observers=[oe],this.observerSlots=[oe.sources.length-1])}return this.value}function Ns(e,t,n){let i=e.value;return(!e.comparator||!e.comparator(i,t))&&(e.value=t,e.observers&&e.observers.length&&jt(()=>{for(let r=0;r<e.observers.length;r+=1){const o=e.observers[r],s=fr&&fr.running;s&&fr.disposed.has(o),(s?!o.tState:!o.state)&&(o.pure?Ae.push(o):ft.push(o),o.observers&&Ls(o)),s||(o.state=lt)}if(Ae.length>1e6)throw Ae=[],new Error},!1)),t}function Wt(e){if(!e.fn)return;di(e);const t=ee,n=oe,i=ai;oe=ee=e,_l(e,e.value,i),oe=n,ee=t}function _l(e,t,n){let i;try{i=e.fn(t)}catch(r){return e.pure&&(e.state=lt,e.owned&&e.owned.forEach(di),e.owned=null),e.updatedAt=n+1,Mr(r)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Ns(e,i):e.value=i,e.updatedAt=n)}function ui(e,t,n,i=lt,r){const o={fn:e,state:i,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ee,context:ee?ee.context:null,pure:n};return ee===null||ee!==hs&&(ee.owned?ee.owned.push(o):ee.owned=[o]),o}function li(e){if(e.state===0)return;if(e.state===si)return fi(e);if(e.suspense&&ye(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ai);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===lt)Wt(e);else if(e.state===si){const i=Ae;Ae=null,jt(()=>fi(e,t[0]),!1),Ae=i}}function jt(e,t){if(Ae)return e();let n=!1;t||(Ae=[]),ft?n=!0:ft=[],ai++;try{const i=e();return kl(n),i}catch(i){n||(ft=null),Ae=null,Mr(i)}}function kl(e){if(Ae&&(Ts(Ae),Ae=null),e)return;const t=ft;ft=null,t.length&&jt(()=>Ms(t),!1)}function Ts(e){for(let t=0;t<e.length;t++)li(e[t])}function Ul(e){let t,n=0;for(t=0;t<e.length;t++){const i=e[t];i.user?e[n++]=i:li(i)}for(t=0;t<n;t++)li(e[t])}function fi(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const i=e.sources[n];if(i.sources){const r=i.state;r===lt?i!==t&&(!i.updatedAt||i.updatedAt<ai)&&li(i):r===si&&fi(i,t)}}}function Ls(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=si,n.pure?Ae.push(n):ft.push(n),n.observers&&Ls(n))}}function di(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),i=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){const o=r.pop(),s=n.observerSlots.pop();i<r.length&&(o.sourceSlots[s]=i,r[i]=o,n.observerSlots[i]=s)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)di(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Yl(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Mr(e,t=ee){throw Yl(e)}function hr(e){if(typeof e=="function"&&!e.length)return hr(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const i=hr(e[n]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return t}return e}function Pl(e,t){return function(i){let r;return Be(()=>r=ye(()=>(ee.context={...ee.context,[e]:i.value},ci(()=>i.children))),void 0),r}}const Rl=Symbol("fallback");function js(e){for(let t=0;t<e.length;t++)e[t]()}function Fl(e,t,n={}){let i=[],r=[],o=[],s=0,a=t.length>1?[]:null;return V(()=>js(o)),()=>{let c=e()||[],u,l;return c[ri],ye(()=>{let f=c.length,h,d,M,y,m,T,N,j,A;if(f===0)s!==0&&(js(o),o=[],i=[],r=[],s=0,a&&(a=[])),n.fallback&&(i=[Rl],r[0]=kt(E=>(o[0]=E,n.fallback())),s=1);else if(s===0){for(r=new Array(f),l=0;l<f;l++)i[l]=c[l],r[l]=kt(g);s=f}else{for(M=new Array(f),y=new Array(f),a&&(m=new Array(f)),T=0,N=Math.min(s,f);T<N&&i[T]===c[T];T++);for(N=s-1,j=f-1;N>=T&&j>=T&&i[N]===c[j];N--,j--)M[j]=r[N],y[j]=o[N],a&&(m[j]=a[N]);for(h=new Map,d=new Array(j+1),l=j;l>=T;l--)A=c[l],u=h.get(A),d[l]=u===void 0?-1:u,h.set(A,l);for(u=T;u<=N;u++)A=i[u],l=h.get(A),l!==void 0&&l!==-1?(M[l]=r[u],y[l]=o[u],a&&(m[l]=a[u]),l=d[l],h.set(A,l)):o[u]();for(l=T;l<f;l++)l in M?(r[l]=M[l],o[l]=y[l],a&&(a[l]=m[l],a[l](l))):r[l]=kt(g);r=r.slice(0,s=f),i=c.slice(0)}return r});function g(f){if(o[l]=f,a){const[h,d]=P(l);return a[l]=d,t(c[l],h)}return t(c[l])}}}function L(e,t){return ye(()=>e(t||{}))}function gi(){return!0}const yr={get(e,t,n){return t===Fe?n:e.get(t)},has(e,t){return t===Fe?!0:e.has(t)},set:gi,deleteProperty:gi,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:gi,deleteProperty:gi}},ownKeys(e){return e.keys()}};function mr(e){return(e=typeof e=="function"?e():e)?e:{}}function Bl(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function q(...e){let t=!1;for(let o=0;o<e.length;o++){const s=e[o];t=t||!!s&&Fe in s,e[o]=typeof s=="function"?(t=!0,Y(s)):s}if(t)return new Proxy({get(o){for(let s=e.length-1;s>=0;s--){const a=mr(e[s])[o];if(a!==void 0)return a}},has(o){for(let s=e.length-1;s>=0;s--)if(o in mr(e[s]))return!0;return!1},keys(){const o=[];for(let s=0;s<e.length;s++)o.push(...Object.keys(mr(e[s])));return[...new Set(o)]}},yr);const n={},i={},r=new Set;for(let o=e.length-1;o>=0;o--){const s=e[o];if(!s)continue;const a=Object.getOwnPropertyNames(s);for(let c=0,u=a.length;c<u;c++){const l=a[c];if(l==="__proto__"||l==="constructor")continue;const g=Object.getOwnPropertyDescriptor(s,l);if(!r.has(l))g.get?(r.add(l),Object.defineProperty(n,l,{enumerable:!0,configurable:!0,get:Bl.bind(i[l]=[g.get.bind(s)])})):(g.value!==void 0&&r.add(l),n[l]=g.value);else{const f=i[l];f?g.get?f.push(g.get.bind(s)):g.value!==void 0&&f.push(()=>g.value):n[l]===void 0&&(n[l]=g.value)}}}return n}function ae(e,...t){if(Fe in e){const r=new Set(t.length>1?t.flat():t[0]),o=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},yr));return o.push(new Proxy({get(s){return r.has(s)?void 0:e[s]},has(s){return r.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!r.has(s))}},yr)),o}const n={},i=t.map(()=>({}));for(const r of Object.getOwnPropertyNames(e)){const o=Object.getOwnPropertyDescriptor(e,r),s=!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable;let a=!1,c=0;for(const u of t)u.includes(r)&&(a=!0,s?i[c][r]=o.value:Object.defineProperty(i[c],r,o)),++c;a||(s?n[r]=o.value:Object.defineProperty(n,r,o))}return[...i,n]}let Hl=0;function Zt(){const e=gs.context;return e?`${e.id}${e.count++}`:`cl-${Hl++}`}const As=e=>`Stale read from <${e}>.`;function Es(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Y(Fl(()=>e.each,e.children,t||void 0))}function he(e){const t=e.keyed,n=Y(()=>e.when,void 0,{equals:(i,r)=>t?i===r:!i==!r});return Y(()=>{const i=n();if(i){const r=e.children;return typeof r=="function"&&r.length>0?ye(()=>r(t?i:()=>{if(!ye(n))throw As("Show");return e.when})):r}return e.fallback},void 0,void 0)}function Nr(e){let t=!1;const n=(o,s)=>o[0]===s[0]&&(t?o[1]===s[1]:!o[1]==!s[1])&&o[2]===s[2],i=ci(()=>e.children),r=Y(()=>{let o=i();Array.isArray(o)||(o=[o]);for(let s=0;s<o.length;s++){const a=o[s].when;if(a)return t=!!o[s].keyed,[s,a,o[s]]}return[-1]},void 0,{equals:n});return Y(()=>{const[o,s,a]=r();if(o<0)return e.fallback;const c=a.children;return typeof c=="function"&&c.length>0?ye(()=>c(t?s:()=>{if(ye(r)[0]!==o)throw As("Match");return a.when})):c},void 0,void 0)}function rt(e){return e}const Ql=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Gl=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Ql]),Vl=new Set(["innerHTML","textContent","innerText","children"]),Kl=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),$l=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function Wl(e,t){const n=$l[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Zl=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),ql=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Xl={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Jl(e,t,n){let i=n.length,r=t.length,o=i,s=0,a=0,c=t[r-1].nextSibling,u=null;for(;s<r||a<o;){if(t[s]===n[a]){s++,a++;continue}for(;t[r-1]===n[o-1];)r--,o--;if(r===s){const l=o<i?a?n[a-1].nextSibling:n[o-a]:c;for(;a<o;)e.insertBefore(n[a++],l)}else if(o===a)for(;s<r;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[o-1]&&n[a]===t[r-1]){const l=t[--r].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--o],l),t[r]=n[o]}else{if(!u){u=new Map;let g=a;for(;g<o;)u.set(n[g],g++)}const l=u.get(t[s]);if(l!=null)if(a<l&&l<o){let g=s,f=1,h;for(;++g<r&&g<o&&!((h=u.get(t[g]))==null||h!==l+f);)f++;if(f>l-a){const d=t[s];for(;a<l;)e.insertBefore(n[a++],d)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const Ss="_$DX_DELEGATE";function ef(e,t,n,i={}){let r;return kt(o=>{r=o,t===document?e():G(t,e(),t.firstChild?null:void 0,n)},i.owner),()=>{r(),t.textContent=""}}function ne(e,t,n){let i;const r=()=>{const s=document.createElement("template");return s.innerHTML=e,n?s.content.firstChild.firstChild:s.content.firstChild},o=t?()=>ye(()=>document.importNode(i||(i=r()),!0)):()=>(i||(i=r())).cloneNode(!0);return o.cloneNode=o,o}function tf(e,t=window.document){const n=t[Ss]||(t[Ss]=new Set);for(let i=0,r=e.length;i<r;i++){const o=e[i];n.has(o)||(n.add(o),t.addEventListener(o,uf))}}function At(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function nf(e,t,n,i){i==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,i)}function ge(e,t){t==null?e.removeAttribute("class"):e.className=t}function rf(e,t,n,i){if(i)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=o=>r.call(e,n[1],o))}else e.addEventListener(t,n)}function of(e,t,n={}){const i=Object.keys(t||{}),r=Object.keys(n);let o,s;for(o=0,s=r.length;o<s;o++){const a=r[o];!a||a==="undefined"||t[a]||(Is(e,a,!1),delete n[a])}for(o=0,s=i.length;o<s;o++){const a=i[o],c=!!t[a];!a||a==="undefined"||n[a]===c||!c||(Is(e,a,!0),n[a]=c)}return n}function sf(e,t,n){if(!t)return n?At(e,"style"):t;const i=e.style;if(typeof t=="string")return i.cssText=t;typeof n=="string"&&(i.cssText=n=void 0),n||(n={}),t||(t={});let r,o;for(o in n)t[o]==null&&i.removeProperty(o),delete n[o];for(o in t)r=t[o],r!==n[o]&&(i.setProperty(o,r),n[o]=r);return n}function be(e,t={},n,i){const r={};return i||Be(()=>r.children=qt(e,t.children,r.children)),Be(()=>t.ref&&t.ref(e)),Be(()=>af(e,t,n,!0,r,!0)),r}function ps(e,t,n){return ye(()=>e(t,n))}function G(e,t,n,i){if(n!==void 0&&!i&&(i=[]),typeof t!="function")return qt(e,t,i,n);Be(r=>qt(e,t(),r,n),i)}function af(e,t,n,i,r={},o=!1){t||(t={});for(const s in r)if(!(s in t)){if(s==="children")continue;r[s]=ws(e,s,null,r[s],n,o)}for(const s in t){if(s==="children"){i||qt(e,t.children);continue}const a=t[s];r[s]=ws(e,s,a,r[s],n,o)}}function cf(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Is(e,t,n){const i=t.trim().split(/\s+/);for(let r=0,o=i.length;r<o;r++)e.classList.toggle(i[r],n)}function ws(e,t,n,i,r,o){let s,a,c,u,l;if(t==="style")return sf(e,n,i);if(t==="classList")return of(e,n,i);if(n===i)return i;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const g=t.slice(3);i&&e.removeEventListener(g,i),n&&e.addEventListener(g,n)}else if(t.slice(0,10)==="oncapture:"){const g=t.slice(10);i&&e.removeEventListener(g,i,!0),n&&e.addEventListener(g,n,!0)}else if(t.slice(0,2)==="on"){const g=t.slice(2).toLowerCase(),f=Zl.has(g);if(!f&&i){const h=Array.isArray(i)?i[0]:i;e.removeEventListener(g,h)}(f||n)&&(rf(e,g,n,f),f&&tf([g]))}else if(t.slice(0,5)==="attr:")At(e,t.slice(5),n);else if((l=t.slice(0,5)==="prop:")||(c=Vl.has(t))||!r&&((u=Wl(t,e.tagName))||(a=Gl.has(t)))||(s=e.nodeName.includes("-")))l&&(t=t.slice(5),a=!0),t==="class"||t==="className"?ge(e,n):s&&!a&&!c?e[cf(t)]=n:e[u||t]=n;else{const g=r&&t.indexOf(":")>-1&&Xl[t.split(":")[0]];g?nf(e,g,t,n):At(e,Kl[t]||t,n)}return n}function uf(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}});n;){const i=n[t];if(i&&!n.disabled){const r=n[`${t}Data`];if(r!==void 0?i.call(n,r,e):i.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function qt(e,t,n,i,r){for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,s=i!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o==="string"||o==="number")if(o==="number"&&(t=t.toString()),s){let a=n[0];a&&a.nodeType===3?a.data=t:a=document.createTextNode(t),n=Xt(e,n,i,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;else if(t==null||o==="boolean")n=Xt(e,n,i);else{if(o==="function")return Be(()=>{let a=t();for(;typeof a=="function";)a=a();n=qt(e,a,n,i)}),()=>n;if(Array.isArray(t)){const a=[],c=n&&Array.isArray(n);if(Tr(a,t,n,r))return Be(()=>n=qt(e,a,n,i,!0)),()=>n;if(a.length===0){if(n=Xt(e,n,i),s)return n}else c?n.length===0?xs(e,a,i):Jl(e,n,a):(n&&Xt(e),xs(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=Xt(e,n,i,t);Xt(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Tr(e,t,n,i){let r=!1;for(let o=0,s=t.length;o<s;o++){let a=t[o],c=n&&n[o],u;if(!(a==null||a===!0||a===!1))if((u=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))r=Tr(e,a,c)||r;else if(u==="function")if(i){for(;typeof a=="function";)a=a();r=Tr(e,Array.isArray(a)?a:[a],Array.isArray(c)?c:[c])||r}else e.push(a),r=!0;else{const l=String(a);c&&c.nodeType===3&&c.data===l?e.push(c):e.push(document.createTextNode(l))}}return r}function xs(e,t,n=null){for(let i=0,r=t.length;i<r;i++)e.insertBefore(t[i],n)}function Xt(e,t,n,i){if(n===void 0)return e.textContent="";const r=i||document.createTextNode("");if(t.length){let o=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(r!==a){const c=a.parentNode===e;!o&&!s?c?e.replaceChild(r,a):e.insertBefore(r,n):c&&a.remove()}else o=!0}}else e.insertBefore(r,n);return[r]}const lf="http://www.w3.org/2000/svg";function Ds(e,t=!1){return t?document.createElementNS(lf,e):document.createElement(e)}function Lr(e){const{useShadow:t}=e,n=document.createTextNode(""),i=()=>e.mount||document.body,r=vl();let o,s=!!gs.context;return H(()=>{o||(o=Ol(r,()=>Y(()=>e.children)));const a=i();if(a instanceof HTMLHeadElement){const[c,u]=P(!1),l=()=>u(!0);kt(g=>G(a,()=>c()?g():o(),null)),V(l)}else{const c=Ds(e.isSVG?"g":"div",e.isSVG),u=t&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return n.parentNode},configurable:!0}),G(u,o),a.appendChild(c),e.ref&&e.ref(c),V(()=>a.removeChild(c))}},void 0,{render:!s}),n}function pn(e){const[t,n]=ae(e,["component"]),i=Y(()=>t.component);return Y(()=>{const r=i();switch(typeof r){case"function":return ye(()=>r(n));case"string":const o=ql.has(r),s=Ds(r,o);return be(s,n,o),s}})}var ff=function(t){return df(t)&&!gf(t)};function df(e){return!!e&&typeof e=="object"}function gf(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||yf(e)}var Mf=typeof Symbol=="function"&&Symbol.for,hf=Mf?Symbol.for("react.element"):60103;function yf(e){return e.$$typeof===hf}function mf(e){return Array.isArray(e)?[]:{}}function In(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Jt(mf(e),e,t):e}function Nf(e,t,n){return e.concat(t).map(function(i){return In(i,n)})}function Tf(e,t){if(!t.customMerge)return Jt;var n=t.customMerge(e);return typeof n=="function"?n:Jt}function Lf(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function bs(e){return Object.keys(e).concat(Lf(e))}function vs(e,t){try{return t in e}catch{return!1}}function jf(e,t){return vs(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Af(e,t,n){var i={};return n.isMergeableObject(e)&&bs(e).forEach(function(r){i[r]=In(e[r],n)}),bs(t).forEach(function(r){jf(e,r)||(vs(e,r)&&n.isMergeableObject(t[r])?i[r]=Tf(r,n)(e[r],t[r],n):i[r]=In(t[r],n))}),i}function Jt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Nf,n.isMergeableObject=n.isMergeableObject||ff,n.cloneUnlessOtherwiseSpecified=In;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):Af(e,t,n):In(t,n)}Jt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Jt(i,r,n)},{})};var Ef=Jt,Sf=Ef;const pf=Jo(Sf),jr=Symbol("store-raw"),en=Symbol("store-node"),dt=Symbol("store-has"),Os=Symbol("store-self");function Cs(e){let t=e[Fe];if(!t&&(Object.defineProperty(e,Fe,{value:t=new Proxy(e,xf)}),!Array.isArray(e))){const n=Object.keys(e),i=Object.getOwnPropertyDescriptors(e);for(let r=0,o=n.length;r<o;r++){const s=n[r];i[s].get&&Object.defineProperty(e,s,{enumerable:i[s].enumerable,get:i[s].get.bind(t)})}}return t}function Et(e){let t;return e!=null&&typeof e=="object"&&(e[Fe]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function tn(e,t=new Set){let n,i,r,o;if(n=e!=null&&e[jr])return n;if(!Et(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let s=0,a=e.length;s<a;s++)r=e[s],(i=tn(r,t))!==r&&(e[s]=i)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const s=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let c=0,u=s.length;c<u;c++)o=s[c],!a[o].get&&(r=e[o],(i=tn(r,t))!==r&&(e[o]=i))}return e}function Mi(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function wn(e,t,n){if(e[t])return e[t];const[i,r]=P(n,{equals:!1,internal:!0});return i.$=r,e[t]=i}function If(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===Fe||t===en||(delete n.value,delete n.writable,n.get=()=>e[Fe][t]),n}function zs(e){gr()&&wn(Mi(e,en),Os)()}function wf(e){return zs(e),Reflect.ownKeys(e)}const xf={get(e,t,n){if(t===jr)return e;if(t===Fe)return n;if(t===ri)return zs(e),n;const i=Mi(e,en),r=i[t];let o=r?r():e[t];if(t===en||t===dt||t==="__proto__")return o;if(!r){const s=Object.getOwnPropertyDescriptor(e,t);gr()&&(typeof o!="function"||e.hasOwnProperty(t))&&!(s&&s.get)&&(o=wn(i,t,o)())}return Et(o)?Cs(o):o},has(e,t){return t===jr||t===Fe||t===ri||t===en||t===dt||t==="__proto__"?!0:(gr()&&wn(Mi(e,dt),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:wf,getOwnPropertyDescriptor:If};function He(e,t,n,i=!1){if(!i&&e[t]===n)return;const r=e[t],o=e.length;n===void 0?(delete e[t],e[dt]&&e[dt][t]&&r!==void 0&&e[dt][t].$()):(e[t]=n,e[dt]&&e[dt][t]&&r===void 0&&e[dt][t].$());let s=Mi(e,en),a;if((a=wn(s,t,r))&&a.$(()=>n),Array.isArray(e)&&e.length!==o){for(let c=e.length;c<o;c++)(a=s[c])&&a.$();(a=wn(s,"length",o))&&a.$(e.length)}(a=s[Os])&&a.$()}function _s(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i+=1){const r=n[i];He(e,r,t[r])}}function Df(e,t){if(typeof t=="function"&&(t=t(e)),t=tn(t),Array.isArray(t)){if(e===t)return;let n=0,i=t.length;for(;n<i;n++){const r=t[n];e[n]!==r&&He(e,n,r)}He(e,"length",i)}else _s(e,t)}function xn(e,t,n=[]){let i,r=e;if(t.length>1){i=t.shift();const s=typeof i,a=Array.isArray(e);if(Array.isArray(i)){for(let c=0;c<i.length;c++)xn(e,[i[c]].concat(t),n);return}else if(a&&s==="function"){for(let c=0;c<e.length;c++)i(e[c],c)&&xn(e,[c].concat(t),n);return}else if(a&&s==="object"){const{from:c=0,to:u=e.length-1,by:l=1}=i;for(let g=c;g<=u;g+=l)xn(e,[g].concat(t),n);return}else if(t.length>1){xn(e[i],t,[i].concat(n));return}r=e[i],n=[i].concat(n)}let o=t[0];typeof o=="function"&&(o=o(r,n),o===r)||i===void 0&&o==null||(o=tn(o),i===void 0||Et(r)&&Et(o)&&!Array.isArray(o)?_s(r,o):He(e,i,o))}function Ar(...[e,t]){const n=tn(e||{}),i=Array.isArray(n),r=Cs(n);function o(...s){dr(()=>{i&&s.length===1?Df(n,s[0]):xn(n,s)})}return[r,o]}const Er=Symbol("store-root");function nn(e,t,n,i,r){const o=t[n];if(e===o)return;if(n!==Er&&(!Et(e)||!Et(o)||r&&e[r]!==o[r])){He(t,n,e);return}if(Array.isArray(e)){if(e.length&&o.length&&(!i||r&&e[0]&&e[0][r]!=null)){let c,u,l,g,f,h,d,M;for(l=0,g=Math.min(o.length,e.length);l<g&&(o[l]===e[l]||r&&o[l]&&e[l]&&o[l][r]===e[l][r]);l++)nn(e[l],o,l,i,r);const y=new Array(e.length),m=new Map;for(g=o.length-1,f=e.length-1;g>=l&&f>=l&&(o[g]===e[f]||r&&o[l]&&e[l]&&o[g][r]===e[f][r]);g--,f--)y[f]=o[g];if(l>f||l>g){for(u=l;u<=f;u++)He(o,u,e[u]);for(;u<e.length;u++)He(o,u,y[u]),nn(e[u],o,u,i,r);o.length>e.length&&He(o,"length",e.length);return}for(d=new Array(f+1),u=f;u>=l;u--)h=e[u],M=r&&h?h[r]:h,c=m.get(M),d[u]=c===void 0?-1:c,m.set(M,u);for(c=l;c<=g;c++)h=o[c],M=r&&h?h[r]:h,u=m.get(M),u!==void 0&&u!==-1&&(y[u]=o[c],u=d[u],m.set(M,u));for(u=l;u<e.length;u++)u in y?(He(o,u,y[u]),nn(e[u],o,u,i,r)):He(o,u,e[u])}else for(let c=0,u=e.length;c<u;c++)nn(e[c],o,c,i,r);o.length>e.length&&He(o,"length",e.length);return}const s=Object.keys(e);for(let c=0,u=s.length;c<u;c++)nn(e[s[c]],o,s[c],i,r);const a=Object.keys(o);for(let c=0,u=a.length;c<u;c++)e[a[c]]===void 0&&He(o,a[c],void 0)}function ks(e,t={}){const{merge:n,key:i="id"}=t,r=tn(e);return o=>{if(!Et(o)||!Et(r))return r;const s=nn(r,{[Er]:o},Er,n,i);return s===void 0?o:s}}const bf={scan_the_front_side:"Scan the front side of the document",flip_document:"Flip the document",scan_the_back_side:"Scan the back side of the document",scanning_wrong_side:"Scanning wrong side",move_closer:"Move closer",move_farther:"Move farther",camera_angle_too_steep:"Keep document parallel to phone",document_too_close_to_edge:"Move farther",rotate_phone_animation:"Rotate card or turn phone to landscape",rotate_phone:"Rotate phone or card",lightning_too_bright:"Move to spot with less lighting",lightning_too_dark:"Move to brighter spot",blur_detected:"Keep document and phone still",glare_detected:"Tilt or move document to remove reflection",occluded:"Keep the document fully visible",need_help_tooltip:"Need help?",onboarding_field_visible_title:"Keep all the details visible",onboarding_field_visible_details:"Make sure you keep the document well lit. All document fields should be visible on the camera screen.",tutorial_fields_visible_title:"Keep all the fields visible",tutorial_fields_visible_start:"Start scanning",tutorial_fields_visible_details:"Make sure you aren’t covering parts of the document with a finger, including the bottom lines. Also, watch out for hologram reflections that go over the document fields.",tutorial_harsh_light_title:"Watch out for harsh light",tutorial_harsh_light_details:"Avoid direct harsh light because it reflects from the document and can make parts of the document unreadable. If you can’t read data on the document, it won’t be visible to the camera either.",tutorial_keep_still_title:"Keep still while scanning",tutorial_keep_still_details:"Try to keep the phone and document still while scanning. Moving either can blur the image and make data on the document unreadable.",camera_unavailable:"Camera Unavailable",camera_permission_error:"App doesn't have permission to use the camera, please change privacy settings",settings:"Settings",camera_media_capture_error:"Unable to capture media",camera_unable_to_resume_session:"Unable to resume",camera_query_in_progress:"Selecting best camera, please wait",done:"Done",cancel:"Cancel",back:"Back",next:"Next",ok:"OK",dismiss:"Dismiss"},Us=Ce(),vf=e=>{const[t,n]=Ar(structuredClone({...bf,...e.userStrings})),i={t,updateLocalization:n};return L(Us.Provider,{value:i,get children(){return e.children}})};function Ut(){const e=ze(Us);if(!e)throw new Error("LocalizationProvider not in scope.");return e}function Sr(e){return(...t)=>{for(const n of e)n&&n(...t)}}function Of(e){return(...t)=>{for(let n=e.length-1;n>=0;n--){const i=e[n];i&&i(...t)}}}var p=e=>typeof e=="function"&&!e.length?e():e,Ys=e=>Array.isArray(e)?e:e?[e]:[];function Cf(e,...t){return typeof e=="function"?e(...t):e}var zf=V;function _f(e,t,n,i){return e.addEventListener(t,n,i),zf(e.removeEventListener.bind(e,t,n,i))}function kf(e,t,n,i){const r=()=>{Ys(p(e)).forEach(o=>{o&&Ys(p(t)).forEach(s=>_f(o,s,n,i))})};typeof e=="function"?H(r):Be(r)}var pr=Symbol("fallback");function Ps(e){for(const t of e)t.dispose()}function Uf(e,t,n,i={}){const r=new Map;return V(()=>Ps(r.values())),()=>{const s=e()||[];return s[ri],ye(()=>{if(!s.length)return Ps(r.values()),r.clear(),i.fallback?[kt(g=>(r.set(pr,{dispose:g}),i.fallback()))]:[];const a=new Array(s.length),c=r.get(pr);if(!r.size||c){c?.dispose(),r.delete(pr);for(let l=0;l<s.length;l++){const g=s[l],f=t(g,l);o(a,g,l,f)}return a}const u=new Set(r.keys());for(let l=0;l<s.length;l++){const g=s[l],f=t(g,l);u.delete(f);const h=r.get(f);h?(a[l]=h.mapped,h.setIndex?.(l),h.setItem(()=>g)):o(a,g,l,f)}for(const l of u)r.get(l)?.dispose(),r.delete(l);return a})};function o(s,a,c,u){kt(l=>{const[g,f]=P(a),h={setItem:f,dispose:l};if(n.length>1){const[d,M]=P(c);h.setIndex=M,h.mapped=n(g,d)}else h.mapped=n(g);r.set(u,h),s[c]=h.mapped})}}function Yf(e){const{by:t}=e;return Y(Uf(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Pf(e){const t=typeof e.on=="function"||Array.isArray(e.on)?e.on:()=>e.on;return Y(Ze(t,(n,i)=>{const r=e.children;return typeof r=="function"&&r.length>0?r(n,i):r}))}function hi(){return!0}var Rf={get(e,t,n){return t===Fe?n:e.get(t)},has(e,t){return e.has(t)},set:hi,deleteProperty:hi,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:hi,deleteProperty:hi}},ownKeys(e){return e.keys()}},Ff=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Rs(e){const t={};let n;for(;n=Ff.exec(e);)t[n[1]]=n[2];return t}function Fs(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Rs(e)}else typeof t=="string"&&(t=Rs(t));return{...e,...t}}var Ir=(e,t,n)=>{let i;for(const r of e){const o=p(r)[t];i?o&&(i=n(i,o)):i=o}return i};function Bf(...e){const t=Array.isArray(e[0]),n=t?e[0]:e;if(n.length===1)return n[0];const i=t&&e[1]?.reverseEventHandlers?Of:Sr,r={};for(const s of n){const a=p(s);for(const c in a)if(c[0]==="o"&&c[1]==="n"&&c[2]){const u=a[c],l=c.toLowerCase(),g=typeof u=="function"?u:Array.isArray(u)?u.length===1?u[0]:u[0].bind(void 0,u[1]):void 0;g?r[l]?r[l].push(g):r[l]=[g]:delete r[l]}}const o=q(...n);return new Proxy({get(s){if(typeof s!="string")return Reflect.get(o,s);if(s==="style")return Ir(n,"style",Fs);if(s==="ref"){const a=[];for(const c of n){const u=p(c)[s];typeof u=="function"&&a.push(u)}return i(a)}if(s[0]==="o"&&s[1]==="n"&&s[2]){const a=r[s.toLowerCase()];return a?i(a):Reflect.get(o,s)}return s==="class"||s==="className"?Ir(n,s,(a,c)=>`${a} ${c}`):s==="classList"?Ir(n,s,(a,c)=>({...a,...c})):Reflect.get(o,s)},has(s){return Reflect.has(o,s)},keys(){return Object.keys(o)}},Rf)}function _e(...e){return Sr(e)}var Bs=e=>e instanceof Element;function wr(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return wr(e(),t);if(Array.isArray(e))for(const n of e){const i=wr(n,t);if(i)return i}return null}function Hf(e,t=Bs,n=Bs){const i=Y(e);return Y(()=>wr(i(),t))}function Hs(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function Qf(e){return typeof e=="number"}function Gf(e){return Array.isArray(e)}function rn(e){return Object.prototype.toString.call(e)==="[object String]"}function xr(e){return typeof e=="function"}function on(e){return t=>`${e()}-${t}`}function Qe(e,t){return e?e===t||e.contains(t):!1}function Dn(e,t=!1){const{activeElement:n}=ke(e);if(!n?.nodeName)return null;if(Qs(n)&&n.contentDocument)return Dn(n.contentDocument.body,t);if(t){const i=n.getAttribute("aria-activedescendant");if(i){const r=ke(n).getElementById(i);if(r)return r}}return n}function Dr(e){return ke(e).defaultView||window}function ke(e){return e?e.ownerDocument||e:document}function Qs(e){return e.tagName==="IFRAME"}var Gs=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(Gs||{});function Vs(e){return typeof window>"u"||window.navigator==null?!1:window.navigator.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function br(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function bn(){return br(/^Mac/i)}function Vf(){return br(/^iPhone/i)}function Kf(){return br(/^iPad/i)||bn()&&navigator.maxTouchPoints>1}function Ks(){return Vf()||Kf()}function $f(){return bn()||Ks()}function Wf(){return Vs(/AppleWebKit/i)&&!Zf()}function Zf(){return Vs(/Chrome/i)}function me(e,t){return t&&(xr(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Ge(e){return t=>{for(const n of e)me(t,n)}}function qf(e){return bn()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Ee(e){if(e)if(Xf())e.focus({preventScroll:!0});else{const t=Jf(e);e.focus(),ed(t)}}var yi=null;function Xf(){if(yi==null){yi=!1;try{document.createElement("div").focus({get preventScroll(){return yi=!0,!0}})}catch{}}return yi}function Jf(e){let t=e.parentNode;const n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function ed(e){for(const{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}var $s=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],td=[...$s,'[tabindex]:not([tabindex="-1"]):not([disabled])'],vr=$s.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",nd=td.join(':not([hidden]):not([tabindex="-1"]),');function Ws(e,t){const i=Array.from(e.querySelectorAll(vr)).filter(Zs);return t&&Zs(e)&&i.unshift(e),i.forEach((r,o)=>{if(Qs(r)&&r.contentDocument){const s=r.contentDocument.body,a=Ws(s,!1);i.splice(o,1,...a)}}),i}function Zs(e){return qs(e)&&!id(e)}function qs(e){return e.matches(vr)&&Or(e)}function id(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function Or(e,t){return e.nodeName!=="#comment"&&rd(e)&&od(e,t)&&(!e.parentElement||Or(e.parentElement,e))}function rd(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:n}=e.style;let i=t!=="none"&&n!=="hidden"&&n!=="collapse";if(i){if(!e.ownerDocument.defaultView)return i;const{getComputedStyle:r}=e.ownerDocument.defaultView,{display:o,visibility:s}=r(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function od(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function sd(e,t){return t.some(n=>n.contains(e))}function ad(e,t,n){const i=t?.tabbable?nd:vr,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){return t?.from?.contains(o)?NodeFilter.FILTER_REJECT:o.matches(i)&&Or(o)&&(!n||sd(o,n))&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function cd(){}function ud(e){return[e.clientX,e.clientY]}function ld(e,t){const[n,i]=e;let r=!1;const o=t.length;for(let s=o,a=0,c=s-1;a<s;c=a++){const[u,l]=t[a],[g,f]=t[c],[,h]=t[c===0?s-1:c-1]||[0,0],d=(l-f)*(n-u)-(u-g)*(i-l);if(f<l){if(i>=f&&i<l){if(d===0)return!0;d>0&&(i===f?i>h&&(r=!r):r=!r)}}else if(l<f){if(i>l&&i<=f){if(d===0)return!0;d<0&&(i===f?i<h&&(r=!r):r=!r)}}else if(i==l&&(n>=g&&n<=u||n>=u&&n<=g))return!0}return r}function Me(e,t){return q(e,t)}var vn=new Map,Xs=new Set;function Js(){if(typeof window>"u")return;const e=n=>{if(!n.target)return;let i=vn.get(n.target);i||(i=new Set,vn.set(n.target,i),n.target.addEventListener("transitioncancel",t)),i.add(n.propertyName)},t=n=>{if(!n.target)return;const i=vn.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",t),vn.delete(n.target)),vn.size===0)){for(const r of Xs)r();Xs.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Js():document.addEventListener("DOMContentLoaded",Js));function ea(e,t){const n=ta(e,t,"left"),i=ta(e,t,"top"),r=t.offsetWidth,o=t.offsetHeight;let s=e.scrollLeft,a=e.scrollTop;const c=s+e.offsetWidth,u=a+e.offsetHeight;n<=s?s=n:n+r>c&&(s+=n+r-c),i<=a?a=i:i+o>u&&(a+=i+o-u),e.scrollLeft=s,e.scrollTop=a}function ta(e,t,n){const i=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[i],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[i];break}t=t.offsetParent}return r}var fd={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};function Cr(e){let t=e.startIndex??0;const n=e.startLevel??0,i=[],r=c=>{if(c==null)return"";const u=e.getKey??"key",l=rn(u)?c[u]:u(c);return l!=null?String(l):""},o=c=>{if(c==null)return"";const u=e.getTextValue??"textValue",l=rn(u)?c[u]:u(c);return l!=null?String(l):""},s=c=>{if(c==null)return!1;const u=e.getDisabled??"disabled";return(rn(u)?c[u]:u(c))??!1},a=c=>{if(c!=null)return rn(e.getSectionChildren)?c[e.getSectionChildren]:e.getSectionChildren?.(c)};for(const c of e.dataSource){if(rn(c)||Qf(c)){i.push({type:"item",rawValue:c,key:String(c),textValue:String(c),disabled:s(c),level:n,index:t}),t++;continue}if(a(c)!=null){i.push({type:"section",rawValue:c,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;const u=a(c)??[];if(u.length>0){const l=Cr({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});i.push(...l),t+=l.length}}else i.push({type:"item",rawValue:c,key:r(c),textValue:o(c),disabled:s(c),level:n,index:t}),t++}return i}/*!
17
+ `);if(k.getState().initialized&&ii)return console.warn("Already initialized, reusing previous SDK instance."),ii;const{callbacks:t,...n}=e,i=await ss(n),r=await i.getSettings();return k.setState({analyzerSettings:r}),t&&k.setState({callbacks:t}),k.setState({initialized:!0}),ii=new bl(i),ii}catch(t){throw k.setState({errorState:Ji(t)}),t}}const Ms={context:void 0,registry:void 0},vl=(e,t)=>e===t,Fe=Symbol("solid-proxy"),ri=Symbol("solid-track"),oi={equals:vl};let hs=Ls;const lt=1,si=2,ys={owned:null,cleanups:null,context:null,owner:null};var ee=null;let lr=null,oe=null,Ae=null,ft=null,ai=0;const[Ol,Yy]=P(!1);function kt(e,t){const n=oe,i=ee,r=e.length===0,o=t===void 0?i:t,s=r?ys:{owned:null,cleanups:null,context:o?o.context:null,owner:o},a=r?e:()=>e(()=>ye(()=>di(s)));ee=s,oe=null;try{return jt(a,!0)}finally{oe=n,ee=i}}function P(e,t){t=t?Object.assign({},oi,t):oi;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},i=r=>(typeof r=="function"&&(r=r(n.value)),Ts(n,r));return[Ns.bind(n),i]}function ms(e,t,n){const i=ui(e,t,!0,lt);$t(i)}function Be(e,t,n){const i=ui(e,t,!1,lt);$t(i)}function H(e,t,n){hs=Pl;const i=ui(e,t,!1,lt);(!n||!n.render)&&(i.user=!0),ft?ft.push(i):$t(i)}function Y(e,t,n){n=n?Object.assign({},oi,n):oi;const i=ui(e,t,!0,0);return i.observers=null,i.observerSlots=null,i.comparator=n.equals||void 0,$t(i),Ns.bind(i)}function fr(e){return jt(e,!1)}function ye(e){if(oe===null)return e();const t=oe;oe=null;try{return e()}finally{oe=t}}function Ze(e,t,n){const i=Array.isArray(e);let r,o=n&&n.defer;return s=>{let a;if(i){a=Array(e.length);for(let u=0;u<e.length;u++)a[u]=e[u]()}else a=e();if(o){o=!1;return}const c=ye(()=>t(a,r,s));return r=a,c}}function Lt(e){H(()=>ye(e))}function V(e){return ee===null||(ee.cleanups===null?ee.cleanups=[e]:ee.cleanups.push(e)),e}function dr(){return oe}function Cl(){return ee}function zl(e,t){const n=ee,i=oe;ee=e,oe=null;try{return jt(t,!0)}catch(r){gr(r)}finally{ee=n,oe=i}}function _l(e){const t=oe,n=ee;return Promise.resolve().then(()=>{oe=t,ee=n;let i;return jt(e,!1),oe=ee=null,i?i.done:void 0})}function kl(){return[Ol,_l]}function Ce(e,t){const n=Symbol("context");return{id:n,Provider:Fl(n),defaultValue:e}}function ze(e){return ee&&ee.context&&ee.context[e.id]!==void 0?ee.context[e.id]:e.defaultValue}function ci(e){const t=Y(e),n=Y(()=>Mr(t()));return n.toArray=()=>{const i=n();return Array.isArray(i)?i:i!=null?[i]:[]},n}function Ns(){if(this.sources&&this.state)if(this.state===lt)$t(this);else{const e=Ae;Ae=null,jt(()=>fi(this),!1),Ae=e}if(oe){const e=this.observers?this.observers.length:0;oe.sources?(oe.sources.push(this),oe.sourceSlots.push(e)):(oe.sources=[this],oe.sourceSlots=[e]),this.observers?(this.observers.push(oe),this.observerSlots.push(oe.sources.length-1)):(this.observers=[oe],this.observerSlots=[oe.sources.length-1])}return this.value}function Ts(e,t,n){let i=e.value;return(!e.comparator||!e.comparator(i,t))&&(e.value=t,e.observers&&e.observers.length&&jt(()=>{for(let r=0;r<e.observers.length;r+=1){const o=e.observers[r],s=lr&&lr.running;s&&lr.disposed.has(o),(s?!o.tState:!o.state)&&(o.pure?Ae.push(o):ft.push(o),o.observers&&js(o)),s||(o.state=lt)}if(Ae.length>1e6)throw Ae=[],new Error},!1)),t}function $t(e){if(!e.fn)return;di(e);const t=ee,n=oe,i=ai;oe=ee=e,Ul(e,e.value,i),oe=n,ee=t}function Ul(e,t,n){let i;try{i=e.fn(t)}catch(r){return e.pure&&(e.state=lt,e.owned&&e.owned.forEach(di),e.owned=null),e.updatedAt=n+1,gr(r)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Ts(e,i):e.value=i,e.updatedAt=n)}function ui(e,t,n,i=lt,r){const o={fn:e,state:i,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ee,context:ee?ee.context:null,pure:n};return ee===null||ee!==ys&&(ee.owned?ee.owned.push(o):ee.owned=[o]),o}function li(e){if(e.state===0)return;if(e.state===si)return fi(e);if(e.suspense&&ye(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ai);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===lt)$t(e);else if(e.state===si){const i=Ae;Ae=null,jt(()=>fi(e,t[0]),!1),Ae=i}}function jt(e,t){if(Ae)return e();let n=!1;t||(Ae=[]),ft?n=!0:ft=[],ai++;try{const i=e();return Yl(n),i}catch(i){n||(ft=null),Ae=null,gr(i)}}function Yl(e){if(Ae&&(Ls(Ae),Ae=null),e)return;const t=ft;ft=null,t.length&&jt(()=>hs(t),!1)}function Ls(e){for(let t=0;t<e.length;t++)li(e[t])}function Pl(e){let t,n=0;for(t=0;t<e.length;t++){const i=e[t];i.user?e[n++]=i:li(i)}for(t=0;t<n;t++)li(e[t])}function fi(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const i=e.sources[n];if(i.sources){const r=i.state;r===lt?i!==t&&(!i.updatedAt||i.updatedAt<ai)&&li(i):r===si&&fi(i,t)}}}function js(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=si,n.pure?Ae.push(n):ft.push(n),n.observers&&js(n))}}function di(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),i=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){const o=r.pop(),s=n.observerSlots.pop();i<r.length&&(o.sourceSlots[s]=i,r[i]=o,n.observerSlots[i]=s)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)di(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Rl(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function gr(e,t=ee){throw Rl(e)}function Mr(e){if(typeof e=="function"&&!e.length)return Mr(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const i=Mr(e[n]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return t}return e}function Fl(e,t){return function(i){let r;return Be(()=>r=ye(()=>(ee.context={...ee.context,[e]:i.value},ci(()=>i.children))),void 0),r}}const Bl=Symbol("fallback");function As(e){for(let t=0;t<e.length;t++)e[t]()}function Hl(e,t,n={}){let i=[],r=[],o=[],s=0,a=t.length>1?[]:null;return V(()=>As(o)),()=>{let c=e()||[],u,l;return c[ri],ye(()=>{let f=c.length,h,d,M,y,m,T,N,j,A;if(f===0)s!==0&&(As(o),o=[],i=[],r=[],s=0,a&&(a=[])),n.fallback&&(i=[Bl],r[0]=kt(E=>(o[0]=E,n.fallback())),s=1);else if(s===0){for(r=new Array(f),l=0;l<f;l++)i[l]=c[l],r[l]=kt(g);s=f}else{for(M=new Array(f),y=new Array(f),a&&(m=new Array(f)),T=0,N=Math.min(s,f);T<N&&i[T]===c[T];T++);for(N=s-1,j=f-1;N>=T&&j>=T&&i[N]===c[j];N--,j--)M[j]=r[N],y[j]=o[N],a&&(m[j]=a[N]);for(h=new Map,d=new Array(j+1),l=j;l>=T;l--)A=c[l],u=h.get(A),d[l]=u===void 0?-1:u,h.set(A,l);for(u=T;u<=N;u++)A=i[u],l=h.get(A),l!==void 0&&l!==-1?(M[l]=r[u],y[l]=o[u],a&&(m[l]=a[u]),l=d[l],h.set(A,l)):o[u]();for(l=T;l<f;l++)l in M?(r[l]=M[l],o[l]=y[l],a&&(a[l]=m[l],a[l](l))):r[l]=kt(g);r=r.slice(0,s=f),i=c.slice(0)}return r});function g(f){if(o[l]=f,a){const[h,d]=P(l);return a[l]=d,t(c[l],h)}return t(c[l])}}}function L(e,t){return ye(()=>e(t||{}))}function gi(){return!0}const hr={get(e,t,n){return t===Fe?n:e.get(t)},has(e,t){return t===Fe?!0:e.has(t)},set:gi,deleteProperty:gi,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:gi,deleteProperty:gi}},ownKeys(e){return e.keys()}};function yr(e){return(e=typeof e=="function"?e():e)?e:{}}function Ql(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function q(...e){let t=!1;for(let o=0;o<e.length;o++){const s=e[o];t=t||!!s&&Fe in s,e[o]=typeof s=="function"?(t=!0,Y(s)):s}if(t)return new Proxy({get(o){for(let s=e.length-1;s>=0;s--){const a=yr(e[s])[o];if(a!==void 0)return a}},has(o){for(let s=e.length-1;s>=0;s--)if(o in yr(e[s]))return!0;return!1},keys(){const o=[];for(let s=0;s<e.length;s++)o.push(...Object.keys(yr(e[s])));return[...new Set(o)]}},hr);const n={},i={},r=new Set;for(let o=e.length-1;o>=0;o--){const s=e[o];if(!s)continue;const a=Object.getOwnPropertyNames(s);for(let c=0,u=a.length;c<u;c++){const l=a[c];if(l==="__proto__"||l==="constructor")continue;const g=Object.getOwnPropertyDescriptor(s,l);if(!r.has(l))g.get?(r.add(l),Object.defineProperty(n,l,{enumerable:!0,configurable:!0,get:Ql.bind(i[l]=[g.get.bind(s)])})):(g.value!==void 0&&r.add(l),n[l]=g.value);else{const f=i[l];f?g.get?f.push(g.get.bind(s)):g.value!==void 0&&f.push(()=>g.value):n[l]===void 0&&(n[l]=g.value)}}}return n}function ae(e,...t){if(Fe in e){const r=new Set(t.length>1?t.flat():t[0]),o=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},hr));return o.push(new Proxy({get(s){return r.has(s)?void 0:e[s]},has(s){return r.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!r.has(s))}},hr)),o}const n={},i=t.map(()=>({}));for(const r of Object.getOwnPropertyNames(e)){const o=Object.getOwnPropertyDescriptor(e,r),s=!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable;let a=!1,c=0;for(const u of t)u.includes(r)&&(a=!0,s?i[c][r]=o.value:Object.defineProperty(i[c],r,o)),++c;a||(s?n[r]=o.value:Object.defineProperty(n,r,o))}return[...i,n]}let Gl=0;function Wt(){const e=Ms.context;return e?`${e.id}${e.count++}`:`cl-${Gl++}`}const Es=e=>`Stale read from <${e}>.`;function Ss(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Y(Hl(()=>e.each,e.children,t||void 0))}function he(e){const t=e.keyed,n=Y(()=>e.when,void 0,{equals:(i,r)=>t?i===r:!i==!r});return Y(()=>{const i=n();if(i){const r=e.children;return typeof r=="function"&&r.length>0?ye(()=>r(t?i:()=>{if(!ye(n))throw Es("Show");return e.when})):r}return e.fallback},void 0,void 0)}function mr(e){let t=!1;const n=(o,s)=>o[0]===s[0]&&(t?o[1]===s[1]:!o[1]==!s[1])&&o[2]===s[2],i=ci(()=>e.children),r=Y(()=>{let o=i();Array.isArray(o)||(o=[o]);for(let s=0;s<o.length;s++){const a=o[s].when;if(a)return t=!!o[s].keyed,[s,a,o[s]]}return[-1]},void 0,{equals:n});return Y(()=>{const[o,s,a]=r();if(o<0)return e.fallback;const c=a.children;return typeof c=="function"&&c.length>0?ye(()=>c(t?s:()=>{if(ye(r)[0]!==o)throw Es("Match");return a.when})):c},void 0,void 0)}function rt(e){return e}const Vl=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Kl=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Vl]),$l=new Set(["innerHTML","textContent","innerText","children"]),Wl=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Zl=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function ql(e,t){const n=Zl[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Xl=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Jl=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),ef={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function tf(e,t,n){let i=n.length,r=t.length,o=i,s=0,a=0,c=t[r-1].nextSibling,u=null;for(;s<r||a<o;){if(t[s]===n[a]){s++,a++;continue}for(;t[r-1]===n[o-1];)r--,o--;if(r===s){const l=o<i?a?n[a-1].nextSibling:n[o-a]:c;for(;a<o;)e.insertBefore(n[a++],l)}else if(o===a)for(;s<r;)(!u||!u.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[o-1]&&n[a]===t[r-1]){const l=t[--r].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--o],l),t[r]=n[o]}else{if(!u){u=new Map;let g=a;for(;g<o;)u.set(n[g],g++)}const l=u.get(t[s]);if(l!=null)if(a<l&&l<o){let g=s,f=1,h;for(;++g<r&&g<o&&!((h=u.get(t[g]))==null||h!==l+f);)f++;if(f>l-a){const d=t[s];for(;a<l;)e.insertBefore(n[a++],d)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const ps="_$DX_DELEGATE";function nf(e,t,n,i={}){let r;return kt(o=>{r=o,t===document?e():G(t,e(),t.firstChild?null:void 0,n)},i.owner),()=>{r(),t.textContent=""}}function ne(e,t,n){let i;const r=()=>{const s=document.createElement("template");return s.innerHTML=e,n?s.content.firstChild.firstChild:s.content.firstChild},o=t?()=>ye(()=>document.importNode(i||(i=r()),!0)):()=>(i||(i=r())).cloneNode(!0);return o.cloneNode=o,o}function rf(e,t=window.document){const n=t[ps]||(t[ps]=new Set);for(let i=0,r=e.length;i<r;i++){const o=e[i];n.has(o)||(n.add(o),t.addEventListener(o,ff))}}function At(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function of(e,t,n,i){i==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,i)}function ge(e,t){t==null?e.removeAttribute("class"):e.className=t}function sf(e,t,n,i){if(i)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=o=>r.call(e,n[1],o))}else e.addEventListener(t,n)}function af(e,t,n={}){const i=Object.keys(t||{}),r=Object.keys(n);let o,s;for(o=0,s=r.length;o<s;o++){const a=r[o];!a||a==="undefined"||t[a]||(ws(e,a,!1),delete n[a])}for(o=0,s=i.length;o<s;o++){const a=i[o],c=!!t[a];!a||a==="undefined"||n[a]===c||!c||(ws(e,a,!0),n[a]=c)}return n}function cf(e,t,n){if(!t)return n?At(e,"style"):t;const i=e.style;if(typeof t=="string")return i.cssText=t;typeof n=="string"&&(i.cssText=n=void 0),n||(n={}),t||(t={});let r,o;for(o in n)t[o]==null&&i.removeProperty(o),delete n[o];for(o in t)r=t[o],r!==n[o]&&(i.setProperty(o,r),n[o]=r);return n}function be(e,t={},n,i){const r={};return i||Be(()=>r.children=Zt(e,t.children,r.children)),Be(()=>t.ref&&t.ref(e)),Be(()=>uf(e,t,n,!0,r,!0)),r}function Is(e,t,n){return ye(()=>e(t,n))}function G(e,t,n,i){if(n!==void 0&&!i&&(i=[]),typeof t!="function")return Zt(e,t,i,n);Be(r=>Zt(e,t(),r,n),i)}function uf(e,t,n,i,r={},o=!1){t||(t={});for(const s in r)if(!(s in t)){if(s==="children")continue;r[s]=xs(e,s,null,r[s],n,o)}for(const s in t){if(s==="children"){i||Zt(e,t.children);continue}const a=t[s];r[s]=xs(e,s,a,r[s],n,o)}}function lf(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function ws(e,t,n){const i=t.trim().split(/\s+/);for(let r=0,o=i.length;r<o;r++)e.classList.toggle(i[r],n)}function xs(e,t,n,i,r,o){let s,a,c,u,l;if(t==="style")return cf(e,n,i);if(t==="classList")return af(e,n,i);if(n===i)return i;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const g=t.slice(3);i&&e.removeEventListener(g,i),n&&e.addEventListener(g,n)}else if(t.slice(0,10)==="oncapture:"){const g=t.slice(10);i&&e.removeEventListener(g,i,!0),n&&e.addEventListener(g,n,!0)}else if(t.slice(0,2)==="on"){const g=t.slice(2).toLowerCase(),f=Xl.has(g);if(!f&&i){const h=Array.isArray(i)?i[0]:i;e.removeEventListener(g,h)}(f||n)&&(sf(e,g,n,f),f&&rf([g]))}else if(t.slice(0,5)==="attr:")At(e,t.slice(5),n);else if((l=t.slice(0,5)==="prop:")||(c=$l.has(t))||!r&&((u=ql(t,e.tagName))||(a=Kl.has(t)))||(s=e.nodeName.includes("-")))l&&(t=t.slice(5),a=!0),t==="class"||t==="className"?ge(e,n):s&&!a&&!c?e[lf(t)]=n:e[u||t]=n;else{const g=r&&t.indexOf(":")>-1&&ef[t.split(":")[0]];g?of(e,g,t,n):At(e,Wl[t]||t,n)}return n}function ff(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}});n;){const i=n[t];if(i&&!n.disabled){const r=n[`${t}Data`];if(r!==void 0?i.call(n,r,e):i.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Zt(e,t,n,i,r){for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,s=i!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o==="string"||o==="number")if(o==="number"&&(t=t.toString()),s){let a=n[0];a&&a.nodeType===3?a.data=t:a=document.createTextNode(t),n=qt(e,n,i,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;else if(t==null||o==="boolean")n=qt(e,n,i);else{if(o==="function")return Be(()=>{let a=t();for(;typeof a=="function";)a=a();n=Zt(e,a,n,i)}),()=>n;if(Array.isArray(t)){const a=[],c=n&&Array.isArray(n);if(Nr(a,t,n,r))return Be(()=>n=Zt(e,a,n,i,!0)),()=>n;if(a.length===0){if(n=qt(e,n,i),s)return n}else c?n.length===0?Ds(e,a,i):tf(e,n,a):(n&&qt(e),Ds(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=qt(e,n,i,t);qt(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Nr(e,t,n,i){let r=!1;for(let o=0,s=t.length;o<s;o++){let a=t[o],c=n&&n[o],u;if(!(a==null||a===!0||a===!1))if((u=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))r=Nr(e,a,c)||r;else if(u==="function")if(i){for(;typeof a=="function";)a=a();r=Nr(e,Array.isArray(a)?a:[a],Array.isArray(c)?c:[c])||r}else e.push(a),r=!0;else{const l=String(a);c&&c.nodeType===3&&c.data===l?e.push(c):e.push(document.createTextNode(l))}}return r}function Ds(e,t,n=null){for(let i=0,r=t.length;i<r;i++)e.insertBefore(t[i],n)}function qt(e,t,n,i){if(n===void 0)return e.textContent="";const r=i||document.createTextNode("");if(t.length){let o=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(r!==a){const c=a.parentNode===e;!o&&!s?c?e.replaceChild(r,a):e.insertBefore(r,n):c&&a.remove()}else o=!0}}else e.insertBefore(r,n);return[r]}const df="http://www.w3.org/2000/svg";function bs(e,t=!1){return t?document.createElementNS(df,e):document.createElement(e)}function Tr(e){const{useShadow:t}=e,n=document.createTextNode(""),i=()=>e.mount||document.body,r=Cl();let o,s=!!Ms.context;return H(()=>{o||(o=zl(r,()=>Y(()=>e.children)));const a=i();if(a instanceof HTMLHeadElement){const[c,u]=P(!1),l=()=>u(!0);kt(g=>G(a,()=>c()?g():o(),null)),V(l)}else{const c=bs(e.isSVG?"g":"div",e.isSVG),u=t&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return n.parentNode},configurable:!0}),G(u,o),a.appendChild(c),e.ref&&e.ref(c),V(()=>a.removeChild(c))}},void 0,{render:!s}),n}function pn(e){const[t,n]=ae(e,["component"]),i=Y(()=>t.component);return Y(()=>{const r=i();switch(typeof r){case"function":return ye(()=>r(n));case"string":const o=Jl.has(r),s=bs(r,o);return be(s,n,o),s}})}var gf=function(t){return Mf(t)&&!hf(t)};function Mf(e){return!!e&&typeof e=="object"}function hf(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Nf(e)}var yf=typeof Symbol=="function"&&Symbol.for,mf=yf?Symbol.for("react.element"):60103;function Nf(e){return e.$$typeof===mf}function Tf(e){return Array.isArray(e)?[]:{}}function In(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xt(Tf(e),e,t):e}function Lf(e,t,n){return e.concat(t).map(function(i){return In(i,n)})}function jf(e,t){if(!t.customMerge)return Xt;var n=t.customMerge(e);return typeof n=="function"?n:Xt}function Af(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function vs(e){return Object.keys(e).concat(Af(e))}function Os(e,t){try{return t in e}catch{return!1}}function Ef(e,t){return Os(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Sf(e,t,n){var i={};return n.isMergeableObject(e)&&vs(e).forEach(function(r){i[r]=In(e[r],n)}),vs(t).forEach(function(r){Ef(e,r)||(Os(e,r)&&n.isMergeableObject(t[r])?i[r]=jf(r,n)(e[r],t[r],n):i[r]=In(t[r],n))}),i}function Xt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Lf,n.isMergeableObject=n.isMergeableObject||gf,n.cloneUnlessOtherwiseSpecified=In;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):Sf(e,t,n):In(t,n)}Xt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Xt(i,r,n)},{})};var pf=Xt,If=pf;const wf=Xo(If);function xf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const Lr=Symbol("store-raw"),Jt=Symbol("store-node"),dt=Symbol("store-has"),Cs=Symbol("store-self");function zs(e){let t=e[Fe];if(!t&&(Object.defineProperty(e,Fe,{value:t=new Proxy(e,vf)}),!Array.isArray(e))){const n=Object.keys(e),i=Object.getOwnPropertyDescriptors(e);for(let r=0,o=n.length;r<o;r++){const s=n[r];i[s].get&&Object.defineProperty(e,s,{enumerable:i[s].enumerable,get:i[s].get.bind(t)})}}return t}function Et(e){let t;return e!=null&&typeof e=="object"&&(e[Fe]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function en(e,t=new Set){let n,i,r,o;if(n=e!=null&&e[Lr])return n;if(!Et(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let s=0,a=e.length;s<a;s++)r=e[s],(i=en(r,t))!==r&&(e[s]=i)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const s=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let c=0,u=s.length;c<u;c++)o=s[c],!a[o].get&&(r=e[o],(i=en(r,t))!==r&&(e[o]=i))}return e}function Mi(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function wn(e,t,n){if(e[t])return e[t];const[i,r]=P(n,{equals:!1,internal:!0});return i.$=r,e[t]=i}function Df(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===Fe||t===Jt||(delete n.value,delete n.writable,n.get=()=>e[Fe][t]),n}function _s(e){dr()&&wn(Mi(e,Jt),Cs)()}function bf(e){return _s(e),Reflect.ownKeys(e)}const vf={get(e,t,n){if(t===Lr)return e;if(t===Fe)return n;if(t===ri)return _s(e),n;const i=Mi(e,Jt),r=i[t];let o=r?r():e[t];if(t===Jt||t===dt||t==="__proto__")return o;if(!r){const s=Object.getOwnPropertyDescriptor(e,t);dr()&&(typeof o!="function"||e.hasOwnProperty(t))&&!(s&&s.get)&&(o=wn(i,t,o)())}return Et(o)?zs(o):o},has(e,t){return t===Lr||t===Fe||t===ri||t===Jt||t===dt||t==="__proto__"?!0:(dr()&&wn(Mi(e,dt),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:bf,getOwnPropertyDescriptor:Df};function He(e,t,n,i=!1){if(!i&&e[t]===n)return;const r=e[t],o=e.length;n===void 0?(delete e[t],e[dt]&&e[dt][t]&&r!==void 0&&e[dt][t].$()):(e[t]=n,e[dt]&&e[dt][t]&&r===void 0&&e[dt][t].$());let s=Mi(e,Jt),a;if((a=wn(s,t,r))&&a.$(()=>n),Array.isArray(e)&&e.length!==o){for(let c=e.length;c<o;c++)(a=s[c])&&a.$();(a=wn(s,"length",o))&&a.$(e.length)}(a=s[Cs])&&a.$()}function ks(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i+=1){const r=n[i];He(e,r,t[r])}}function Of(e,t){if(typeof t=="function"&&(t=t(e)),t=en(t),Array.isArray(t)){if(e===t)return;let n=0,i=t.length;for(;n<i;n++){const r=t[n];e[n]!==r&&He(e,n,r)}He(e,"length",i)}else ks(e,t)}function xn(e,t,n=[]){let i,r=e;if(t.length>1){i=t.shift();const s=typeof i,a=Array.isArray(e);if(Array.isArray(i)){for(let c=0;c<i.length;c++)xn(e,[i[c]].concat(t),n);return}else if(a&&s==="function"){for(let c=0;c<e.length;c++)i(e[c],c)&&xn(e,[c].concat(t),n);return}else if(a&&s==="object"){const{from:c=0,to:u=e.length-1,by:l=1}=i;for(let g=c;g<=u;g+=l)xn(e,[g].concat(t),n);return}else if(t.length>1){xn(e[i],t,[i].concat(n));return}r=e[i],n=[i].concat(n)}let o=t[0];typeof o=="function"&&(o=o(r,n),o===r)||i===void 0&&o==null||(o=en(o),i===void 0||Et(r)&&Et(o)&&!Array.isArray(o)?ks(r,o):He(e,i,o))}function jr(...[e,t]){const n=en(e||{}),i=Array.isArray(n),r=zs(n);function o(...s){fr(()=>{i&&s.length===1?Of(n,s[0]):xn(n,s)})}return[r,o]}const Ar=Symbol("store-root");function tn(e,t,n,i,r){const o=t[n];if(e===o)return;if(n!==Ar&&(!Et(e)||!Et(o)||r&&e[r]!==o[r])){He(t,n,e);return}if(Array.isArray(e)){if(e.length&&o.length&&(!i||r&&e[0]&&e[0][r]!=null)){let c,u,l,g,f,h,d,M;for(l=0,g=Math.min(o.length,e.length);l<g&&(o[l]===e[l]||r&&o[l]&&e[l]&&o[l][r]===e[l][r]);l++)tn(e[l],o,l,i,r);const y=new Array(e.length),m=new Map;for(g=o.length-1,f=e.length-1;g>=l&&f>=l&&(o[g]===e[f]||r&&o[l]&&e[l]&&o[g][r]===e[f][r]);g--,f--)y[f]=o[g];if(l>f||l>g){for(u=l;u<=f;u++)He(o,u,e[u]);for(;u<e.length;u++)He(o,u,y[u]),tn(e[u],o,u,i,r);o.length>e.length&&He(o,"length",e.length);return}for(d=new Array(f+1),u=f;u>=l;u--)h=e[u],M=r&&h?h[r]:h,c=m.get(M),d[u]=c===void 0?-1:c,m.set(M,u);for(c=l;c<=g;c++)h=o[c],M=r&&h?h[r]:h,u=m.get(M),u!==void 0&&u!==-1&&(y[u]=o[c],u=d[u],m.set(M,u));for(u=l;u<e.length;u++)u in y?(He(o,u,y[u]),tn(e[u],o,u,i,r)):He(o,u,e[u])}else for(let c=0,u=e.length;c<u;c++)tn(e[c],o,c,i,r);o.length>e.length&&He(o,"length",e.length);return}const s=Object.keys(e);for(let c=0,u=s.length;c<u;c++)tn(e[s[c]],o,s[c],i,r);const a=Object.keys(o);for(let c=0,u=a.length;c<u;c++)e[a[c]]===void 0&&He(o,a[c],void 0)}function Us(e,t={}){const{merge:n,key:i="id"}=t,r=en(e);return o=>{if(!Et(o)||!Et(r))return r;const s=tn(r,{[Ar]:o},Ar,n,i);return s===void 0?o:s}}const Cf={scan_the_front_side:"Scan the front side of the document",flip_document:"Flip the document",scan_the_back_side:"Scan the back side of the document",scanning_wrong_side:"Scanning wrong side",move_closer:"Move closer",move_farther:"Move farther",camera_angle_too_steep:"Keep document parallel to phone",document_too_close_to_edge:"Move farther",rotate_phone_animation:"Rotate card or turn phone to landscape",rotate_phone:"Rotate phone or card",lightning_too_bright:"Move to spot with less lighting",lightning_too_dark:"Move to brighter spot",blur_detected:"Keep document and phone still",glare_detected:"Tilt or move document to remove reflection",occluded:"Keep the document fully visible",need_help_tooltip:"Need help?",onboarding_field_visible_title:"Keep all the details visible",onboarding_field_visible_details:"Make sure you keep the document well lit. All document fields should be visible on the camera screen.",tutorial_fields_visible_title:"Keep all the fields visible",tutorial_fields_visible_start:"Start scanning",tutorial_fields_visible_details:"Make sure you aren’t covering parts of the document with a finger, including the bottom lines. Also, watch out for hologram reflections that go over the document fields.",tutorial_harsh_light_title:"Watch out for harsh light",tutorial_harsh_light_details:"Avoid direct harsh light because it reflects from the document and can make parts of the document unreadable. If you can’t read data on the document, it won’t be visible to the camera either.",tutorial_keep_still_title:"Keep still while scanning",tutorial_keep_still_details:"Try to keep the phone and document still while scanning. Moving either can blur the image and make data on the document unreadable.",camera_unavailable:"Camera Unavailable",camera_permission_error:"App doesn't have permission to use the camera, please change privacy settings",settings:"Settings",camera_media_capture_error:"Unable to capture media",camera_unable_to_resume_session:"Unable to resume",camera_query_in_progress:"Selecting best camera, please wait",done:"Done",cancel:"Cancel",back:"Back",next:"Next",ok:"OK",dismiss:"Dismiss"},Ys=Ce(),zf=e=>{const[t,n]=jr(structuredClone({...Cf,...e.userStrings}));Lt(()=>{e.setLocalizationRef(n)});const i={t,updateLocalization:n};return L(Ys.Provider,{value:i,get children(){return e.children}})};function nn(){const e=ze(Ys);if(!e)throw new Error("LocalizationContext.Provider not in scope.");return e}function Er(e){return(...t)=>{for(const n of e)n&&n(...t)}}function _f(e){return(...t)=>{for(let n=e.length-1;n>=0;n--){const i=e[n];i&&i(...t)}}}var p=e=>typeof e=="function"&&!e.length?e():e,Ps=e=>Array.isArray(e)?e:e?[e]:[];function kf(e,...t){return typeof e=="function"?e(...t):e}var Uf=V;function Yf(e,t,n,i){return e.addEventListener(t,n,i),Uf(e.removeEventListener.bind(e,t,n,i))}function Pf(e,t,n,i){const r=()=>{Ps(p(e)).forEach(o=>{o&&Ps(p(t)).forEach(s=>Yf(o,s,n,i))})};typeof e=="function"?H(r):Be(r)}var Sr=Symbol("fallback");function Rs(e){for(const t of e)t.dispose()}function Rf(e,t,n,i={}){const r=new Map;return V(()=>Rs(r.values())),()=>{const s=e()||[];return s[ri],ye(()=>{if(!s.length)return Rs(r.values()),r.clear(),i.fallback?[kt(g=>(r.set(Sr,{dispose:g}),i.fallback()))]:[];const a=new Array(s.length),c=r.get(Sr);if(!r.size||c){c?.dispose(),r.delete(Sr);for(let l=0;l<s.length;l++){const g=s[l],f=t(g,l);o(a,g,l,f)}return a}const u=new Set(r.keys());for(let l=0;l<s.length;l++){const g=s[l],f=t(g,l);u.delete(f);const h=r.get(f);h?(a[l]=h.mapped,h.setIndex?.(l),h.setItem(()=>g)):o(a,g,l,f)}for(const l of u)r.get(l)?.dispose(),r.delete(l);return a})};function o(s,a,c,u){kt(l=>{const[g,f]=P(a),h={setItem:f,dispose:l};if(n.length>1){const[d,M]=P(c);h.setIndex=M,h.mapped=n(g,d)}else h.mapped=n(g);r.set(u,h),s[c]=h.mapped})}}function Ff(e){const{by:t}=e;return Y(Rf(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function Bf(e){const t=typeof e.on=="function"||Array.isArray(e.on)?e.on:()=>e.on;return Y(Ze(t,(n,i)=>{const r=e.children;return typeof r=="function"&&r.length>0?r(n,i):r}))}function hi(){return!0}var Hf={get(e,t,n){return t===Fe?n:e.get(t)},has(e,t){return e.has(t)},set:hi,deleteProperty:hi,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:hi,deleteProperty:hi}},ownKeys(e){return e.keys()}},Qf=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Fs(e){const t={};let n;for(;n=Qf.exec(e);)t[n[1]]=n[2];return t}function Bs(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Fs(e)}else typeof t=="string"&&(t=Fs(t));return{...e,...t}}var pr=(e,t,n)=>{let i;for(const r of e){const o=p(r)[t];i?o&&(i=n(i,o)):i=o}return i};function Gf(...e){const t=Array.isArray(e[0]),n=t?e[0]:e;if(n.length===1)return n[0];const i=t&&e[1]?.reverseEventHandlers?_f:Er,r={};for(const s of n){const a=p(s);for(const c in a)if(c[0]==="o"&&c[1]==="n"&&c[2]){const u=a[c],l=c.toLowerCase(),g=typeof u=="function"?u:Array.isArray(u)?u.length===1?u[0]:u[0].bind(void 0,u[1]):void 0;g?r[l]?r[l].push(g):r[l]=[g]:delete r[l]}}const o=q(...n);return new Proxy({get(s){if(typeof s!="string")return Reflect.get(o,s);if(s==="style")return pr(n,"style",Bs);if(s==="ref"){const a=[];for(const c of n){const u=p(c)[s];typeof u=="function"&&a.push(u)}return i(a)}if(s[0]==="o"&&s[1]==="n"&&s[2]){const a=r[s.toLowerCase()];return a?i(a):Reflect.get(o,s)}return s==="class"||s==="className"?pr(n,s,(a,c)=>`${a} ${c}`):s==="classList"?pr(n,s,(a,c)=>({...a,...c})):Reflect.get(o,s)},has(s){return Reflect.has(o,s)},keys(){return Object.keys(o)}},Hf)}function _e(...e){return Er(e)}var Hs=e=>e instanceof Element;function Ir(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return Ir(e(),t);if(Array.isArray(e))for(const n of e){const i=Ir(n,t);if(i)return i}return null}function Vf(e,t=Hs,n=Hs){const i=Y(e);return Y(()=>Ir(i(),t))}function Qs(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function Kf(e){return typeof e=="number"}function $f(e){return Array.isArray(e)}function rn(e){return Object.prototype.toString.call(e)==="[object String]"}function wr(e){return typeof e=="function"}function on(e){return t=>`${e()}-${t}`}function Qe(e,t){return e?e===t||e.contains(t):!1}function Dn(e,t=!1){const{activeElement:n}=ke(e);if(!n?.nodeName)return null;if(Gs(n)&&n.contentDocument)return Dn(n.contentDocument.body,t);if(t){const i=n.getAttribute("aria-activedescendant");if(i){const r=ke(n).getElementById(i);if(r)return r}}return n}function xr(e){return ke(e).defaultView||window}function ke(e){return e?e.ownerDocument||e:document}function Gs(e){return e.tagName==="IFRAME"}var Vs=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(Vs||{});function Ks(e){return typeof window>"u"||window.navigator==null?!1:window.navigator.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function Dr(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function bn(){return Dr(/^Mac/i)}function Wf(){return Dr(/^iPhone/i)}function Zf(){return Dr(/^iPad/i)||bn()&&navigator.maxTouchPoints>1}function $s(){return Wf()||Zf()}function qf(){return bn()||$s()}function Xf(){return Ks(/AppleWebKit/i)&&!Jf()}function Jf(){return Ks(/Chrome/i)}function Ne(e,t){return t&&(wr(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function Ge(e){return t=>{for(const n of e)Ne(t,n)}}function ed(e){return bn()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Ee(e){if(e)if(td())e.focus({preventScroll:!0});else{const t=nd(e);e.focus(),id(t)}}var yi=null;function td(){if(yi==null){yi=!1;try{document.createElement("div").focus({get preventScroll(){return yi=!0,!0}})}catch{}}return yi}function nd(e){let t=e.parentNode;const n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function id(e){for(const{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}var Ws=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],rd=[...Ws,'[tabindex]:not([tabindex="-1"]):not([disabled])'],br=Ws.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",od=rd.join(':not([hidden]):not([tabindex="-1"]),');function Zs(e,t){const i=Array.from(e.querySelectorAll(br)).filter(qs);return t&&qs(e)&&i.unshift(e),i.forEach((r,o)=>{if(Gs(r)&&r.contentDocument){const s=r.contentDocument.body,a=Zs(s,!1);i.splice(o,1,...a)}}),i}function qs(e){return Xs(e)&&!sd(e)}function Xs(e){return e.matches(br)&&vr(e)}function sd(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function vr(e,t){return e.nodeName!=="#comment"&&ad(e)&&cd(e,t)&&(!e.parentElement||vr(e.parentElement,e))}function ad(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:n}=e.style;let i=t!=="none"&&n!=="hidden"&&n!=="collapse";if(i){if(!e.ownerDocument.defaultView)return i;const{getComputedStyle:r}=e.ownerDocument.defaultView,{display:o,visibility:s}=r(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function cd(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ud(e,t){return t.some(n=>n.contains(e))}function ld(e,t,n){const i=t?.tabbable?od:br,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){return t?.from?.contains(o)?NodeFilter.FILTER_REJECT:o.matches(i)&&vr(o)&&(!n||ud(o,n))&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(r.currentNode=t.from),r}function fd(){}function dd(e){return[e.clientX,e.clientY]}function gd(e,t){const[n,i]=e;let r=!1;const o=t.length;for(let s=o,a=0,c=s-1;a<s;c=a++){const[u,l]=t[a],[g,f]=t[c],[,h]=t[c===0?s-1:c-1]||[0,0],d=(l-f)*(n-u)-(u-g)*(i-l);if(f<l){if(i>=f&&i<l){if(d===0)return!0;d>0&&(i===f?i>h&&(r=!r):r=!r)}}else if(l<f){if(i>l&&i<=f){if(d===0)return!0;d<0&&(i===f?i<h&&(r=!r):r=!r)}}else if(i==l&&(n>=g&&n<=u||n>=u&&n<=g))return!0}return r}function Me(e,t){return q(e,t)}var vn=new Map,Js=new Set;function ea(){if(typeof window>"u")return;const e=n=>{if(!n.target)return;let i=vn.get(n.target);i||(i=new Set,vn.set(n.target,i),n.target.addEventListener("transitioncancel",t)),i.add(n.propertyName)},t=n=>{if(!n.target)return;const i=vn.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",t),vn.delete(n.target)),vn.size===0)){for(const r of Js)r();Js.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?ea():document.addEventListener("DOMContentLoaded",ea));function ta(e,t){const n=na(e,t,"left"),i=na(e,t,"top"),r=t.offsetWidth,o=t.offsetHeight;let s=e.scrollLeft,a=e.scrollTop;const c=s+e.offsetWidth,u=a+e.offsetHeight;n<=s?s=n:n+r>c&&(s+=n+r-c),i<=a?a=i:i+o>u&&(a+=i+o-u),e.scrollLeft=s,e.scrollTop=a}function na(e,t,n){const i=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[i],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[i];break}t=t.offsetParent}return r}var Md={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};function Or(e){let t=e.startIndex??0;const n=e.startLevel??0,i=[],r=c=>{if(c==null)return"";const u=e.getKey??"key",l=rn(u)?c[u]:u(c);return l!=null?String(l):""},o=c=>{if(c==null)return"";const u=e.getTextValue??"textValue",l=rn(u)?c[u]:u(c);return l!=null?String(l):""},s=c=>{if(c==null)return!1;const u=e.getDisabled??"disabled";return(rn(u)?c[u]:u(c))??!1},a=c=>{if(c!=null)return rn(e.getSectionChildren)?c[e.getSectionChildren]:e.getSectionChildren?.(c)};for(const c of e.dataSource){if(rn(c)||Kf(c)){i.push({type:"item",rawValue:c,key:String(c),textValue:String(c),disabled:s(c),level:n,index:t}),t++;continue}if(a(c)!=null){i.push({type:"section",rawValue:c,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;const u=a(c)??[];if(u.length>0){const l=Or({dataSource:u,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});i.push(...l),t+=l.length}}else i.push({type:"item",rawValue:c,key:r(c),textValue:o(c),disabled:s(c),level:n,index:t}),t++}return i}/*!
18
18
  * Portions of this file are based on code from react-spectrum.
19
19
  * Apache License Version 2.0, Copyright 2020 Adobe.
20
20
  *
21
21
  * Credits to the React Spectrum team:
22
22
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/collections/src/useCollection.ts
23
- */function dd(e,t=[]){const n=Cr({dataSource:p(e.dataSource),getKey:p(e.getKey),getTextValue:p(e.getTextValue),getDisabled:p(e.getDisabled),getSectionChildren:p(e.getSectionChildren)}),[i,r]=P(e.factory(n));return H(Ze([()=>p(e.dataSource),()=>p(e.getKey),()=>p(e.getTextValue),()=>p(e.getDisabled),()=>p(e.getSectionChildren),()=>e.factory,...t],([o,s,a,c,u,l])=>{const g=Cr({dataSource:o,getKey:s,getTextValue:a,getDisabled:c,getSectionChildren:u});r(()=>l(g))},{defer:!0})),i}/*!
23
+ */function hd(e,t=[]){const n=Or({dataSource:p(e.dataSource),getKey:p(e.getKey),getTextValue:p(e.getTextValue),getDisabled:p(e.getDisabled),getSectionChildren:p(e.getSectionChildren)}),[i,r]=P(e.factory(n));return H(Ze([()=>p(e.dataSource),()=>p(e.getKey),()=>p(e.getTextValue),()=>p(e.getDisabled),()=>p(e.getSectionChildren),()=>e.factory,...t],([o,s,a,c,u,l])=>{const g=Or({dataSource:o,getKey:s,getTextValue:a,getDisabled:c,getSectionChildren:u});r(()=>l(g))},{defer:!0})),i}/*!
24
24
  * Portions of this file are based on code from react-spectrum.
25
25
  * Apache License Version 2.0, Copyright 2020 Adobe.
26
26
  *
27
27
  * Credits to the React Spectrum team:
28
28
  * https://github.com/adobe/react-spectrum/blob/22cb32d329e66c60f55d4fc4025d1d44bb015d71/packages/@react-stately/collections/src/getItemCount.ts
29
- */const na=new WeakMap;function gd(e){let t=na.get(e);if(t!=null)return t;t=0;for(const n of e)n.type==="item"&&t++;return na.set(e,t),t}function ia(e){const[t,n]=P(e.defaultValue?.()),i=Y(()=>e.value?.()!==void 0),r=Y(()=>i()?e.value?.():t());return[r,s=>{ye(()=>{const a=Cf(s,r());return Object.is(a,r())||(i()||n(a),e.onChange?.(a)),a})}]}function Md(e){const[t,n]=ia(e);return[()=>t()??!1,n]}function zr(e={}){const[t,n]=Md({value:()=>p(e.open),defaultValue:()=>!!p(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),i=()=>{n(!0)},r=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:i,close:r,toggle:()=>{t()?r():i()}}}function hd(e){const t=n=>{n.key===Gs.Escape&&e.onEscapeKeyDown?.(n)};H(()=>{if(p(e.isDisabled))return;const n=e.ownerDocument?.()??ke();n.addEventListener("keydown",t),V(()=>{n.removeEventListener("keydown",t)})})}/*!
29
+ */const ia=new WeakMap;function yd(e){let t=ia.get(e);if(t!=null)return t;t=0;for(const n of e)n.type==="item"&&t++;return ia.set(e,t),t}function ra(e){const[t,n]=P(e.defaultValue?.()),i=Y(()=>e.value?.()!==void 0),r=Y(()=>i()?e.value?.():t());return[r,s=>{ye(()=>{const a=kf(s,r());return Object.is(a,r())||(i()||n(a),e.onChange?.(a)),a})}]}function md(e){const[t,n]=ra(e);return[()=>t()??!1,n]}function Cr(e={}){const[t,n]=md({value:()=>p(e.open),defaultValue:()=>!!p(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),i=()=>{n(!0)},r=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:i,close:r,toggle:()=>{t()?r():i()}}}function Nd(e){const t=n=>{n.key===Vs.Escape&&e.onEscapeKeyDown?.(n)};H(()=>{if(p(e.isDisabled))return;const n=e.ownerDocument?.()??ke();n.addEventListener("keydown",t),V(()=>{n.removeEventListener("keydown",t)})})}/*!
30
30
  * Portions of this file are based on code from radix-ui-primitives.
31
31
  * MIT Licensed, Copyright (c) 2022 WorkOS.
32
32
  *
@@ -38,7 +38,7 @@
38
38
  *
39
39
  * Credits to the Chakra UI team:
40
40
  * https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/dismissable/src/layer-stack.ts
41
- */const mi="data-kb-top-layer";let ra,_r=!1;const gt=[];function On(e){return gt.findIndex(t=>t.node===e)}function yd(e){return gt[On(e)]}function md(e){return gt[gt.length-1].node===e}function oa(){return gt.filter(e=>e.isPointerBlocking)}function Nd(){return[...oa()].slice(-1)[0]}function kr(){return oa().length>0}function sa(e){const t=On(Nd()?.node);return On(e)<t}function Td(e){gt.push(e)}function Ld(e){const t=On(e);t<0||gt.splice(t,1)}function jd(){gt.forEach(({node:e})=>{e.style.pointerEvents=sa(e)?"none":"auto"})}function Ad(e){if(kr()&&!_r){const t=ke(e);ra=document.body.style.pointerEvents,t.body.style.pointerEvents="none",_r=!0}}function Ed(e){if(kr())return;const t=ke(e);t.body.style.pointerEvents=ra,t.body.style.length===0&&t.body.removeAttribute("style"),_r=!1}const Ue={layers:gt,isTopMostLayer:md,hasPointerBlockingLayer:kr,isBelowPointerBlockingLayer:sa,addLayer:Td,removeLayer:Ld,indexOf:On,find:yd,assignPointerEventToLayers:jd,disableBodyPointerEvents:Ad,restoreBodyPointerEvents:Ed};/*!
41
+ */const mi="data-kb-top-layer";let oa,zr=!1;const gt=[];function On(e){return gt.findIndex(t=>t.node===e)}function Td(e){return gt[On(e)]}function Ld(e){return gt[gt.length-1].node===e}function sa(){return gt.filter(e=>e.isPointerBlocking)}function jd(){return[...sa()].slice(-1)[0]}function _r(){return sa().length>0}function aa(e){const t=On(jd()?.node);return On(e)<t}function Ad(e){gt.push(e)}function Ed(e){const t=On(e);t<0||gt.splice(t,1)}function Sd(){gt.forEach(({node:e})=>{e.style.pointerEvents=aa(e)?"none":"auto"})}function pd(e){if(_r()&&!zr){const t=ke(e);oa=document.body.style.pointerEvents,t.body.style.pointerEvents="none",zr=!0}}function Id(e){if(_r())return;const t=ke(e);t.body.style.pointerEvents=oa,t.body.style.length===0&&t.body.removeAttribute("style"),zr=!1}const Ue={layers:gt,isTopMostLayer:Ld,hasPointerBlockingLayer:_r,isBelowPointerBlockingLayer:aa,addLayer:Ad,removeLayer:Ed,indexOf:On,find:Td,assignPointerEventToLayers:Sd,disableBodyPointerEvents:pd,restoreBodyPointerEvents:Id};/*!
42
42
  * Portions of this file are based on code from radix-ui-primitives.
43
43
  * MIT Licensed, Copyright (c) 2022 WorkOS.
44
44
  *
@@ -51,25 +51,25 @@
51
51
  * Credits to the Chakra UI team:
52
52
  * https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-on-child-unmount.ts
53
53
  * https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-containment.ts
54
- */const Ur="focusScope.autoFocusOnMount",Yr="focusScope.autoFocusOnUnmount",aa={bubbles:!1,cancelable:!0},ca={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Hs(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Hs(this.stack,e),this.active()?.resume()}};function ua(e,t){const[n,i]=P(!1),r={pause(){i(!0)},resume(){i(!1)}};let o=null;const s=d=>e.onMountAutoFocus?.(d),a=d=>e.onUnmountAutoFocus?.(d),c=()=>ke(t()),u=()=>{const d=c().createElement("span");return d.setAttribute("data-focus-trap",""),d.tabIndex=0,Object.assign(d.style,fd),d},l=()=>{const d=t();return d?Ws(d,!0).filter(M=>!M.hasAttribute("data-focus-trap")):[]},g=()=>{const d=l();return d.length>0?d[0]:null},f=()=>{const d=l();return d.length>0?d[d.length-1]:null},h=()=>{const d=t();if(!d)return!1;const M=Dn(d);return!M||Qe(d,M)?!1:qs(M)};H(()=>{const d=t();if(!d)return;ca.add(r);const M=Dn(d);if(!Qe(d,M)){const m=new CustomEvent(Ur,aa);d.addEventListener(Ur,s),d.dispatchEvent(m),m.defaultPrevented||setTimeout(()=>{Ee(g()),Dn(d)===M&&Ee(d)},0)}V(()=>{d.removeEventListener(Ur,s),setTimeout(()=>{const m=new CustomEvent(Yr,aa);h()&&m.preventDefault(),d.addEventListener(Yr,a),d.dispatchEvent(m),m.defaultPrevented||Ee(M??c().body),d.removeEventListener(Yr,a),ca.remove(r)},0)})}),H(()=>{const d=t();if(!d||!p(e.trapFocus)||n())return;const M=m=>{const T=m.target;T?.closest(`[${mi}]`)||(Qe(d,T)?o=T:Ee(o))},y=m=>{const N=m.relatedTarget??Dn(d);N?.closest(`[${mi}]`)||Qe(d,N)||Ee(o)};c().addEventListener("focusin",M),c().addEventListener("focusout",y),V(()=>{c().removeEventListener("focusin",M),c().removeEventListener("focusout",y)})}),H(()=>{const d=t();if(!d||!p(e.trapFocus)||n())return;const M=u();d.insertAdjacentElement("afterbegin",M);const y=u();d.insertAdjacentElement("beforeend",y);function m(N){const j=g(),A=f();N.relatedTarget===j?Ee(A):Ee(j)}M.addEventListener("focusin",m),y.addEventListener("focusin",m);const T=new MutationObserver(N=>{for(const j of N)j.previousSibling===y&&(y.remove(),d.insertAdjacentElement("beforeend",y)),j.nextSibling===M&&(M.remove(),d.insertAdjacentElement("afterbegin",M))});T.observe(d,{childList:!0,subtree:!1}),V(()=>{M.removeEventListener("focusin",m),y.removeEventListener("focusin",m),M.remove(),y.remove(),T.disconnect()})})}/*!
54
+ */const kr="focusScope.autoFocusOnMount",Ur="focusScope.autoFocusOnUnmount",ca={bubbles:!1,cancelable:!0},ua={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Qs(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Qs(this.stack,e),this.active()?.resume()}};function la(e,t){const[n,i]=P(!1),r={pause(){i(!0)},resume(){i(!1)}};let o=null;const s=d=>e.onMountAutoFocus?.(d),a=d=>e.onUnmountAutoFocus?.(d),c=()=>ke(t()),u=()=>{const d=c().createElement("span");return d.setAttribute("data-focus-trap",""),d.tabIndex=0,Object.assign(d.style,Md),d},l=()=>{const d=t();return d?Zs(d,!0).filter(M=>!M.hasAttribute("data-focus-trap")):[]},g=()=>{const d=l();return d.length>0?d[0]:null},f=()=>{const d=l();return d.length>0?d[d.length-1]:null},h=()=>{const d=t();if(!d)return!1;const M=Dn(d);return!M||Qe(d,M)?!1:Xs(M)};H(()=>{const d=t();if(!d)return;ua.add(r);const M=Dn(d);if(!Qe(d,M)){const m=new CustomEvent(kr,ca);d.addEventListener(kr,s),d.dispatchEvent(m),m.defaultPrevented||setTimeout(()=>{Ee(g()),Dn(d)===M&&Ee(d)},0)}V(()=>{d.removeEventListener(kr,s),setTimeout(()=>{const m=new CustomEvent(Ur,ca);h()&&m.preventDefault(),d.addEventListener(Ur,a),d.dispatchEvent(m),m.defaultPrevented||Ee(M??c().body),d.removeEventListener(Ur,a),ua.remove(r)},0)})}),H(()=>{const d=t();if(!d||!p(e.trapFocus)||n())return;const M=m=>{const T=m.target;T?.closest(`[${mi}]`)||(Qe(d,T)?o=T:Ee(o))},y=m=>{const N=m.relatedTarget??Dn(d);N?.closest(`[${mi}]`)||Qe(d,N)||Ee(o)};c().addEventListener("focusin",M),c().addEventListener("focusout",y),V(()=>{c().removeEventListener("focusin",M),c().removeEventListener("focusout",y)})}),H(()=>{const d=t();if(!d||!p(e.trapFocus)||n())return;const M=u();d.insertAdjacentElement("afterbegin",M);const y=u();d.insertAdjacentElement("beforeend",y);function m(N){const j=g(),A=f();N.relatedTarget===j?Ee(A):Ee(j)}M.addEventListener("focusin",m),y.addEventListener("focusin",m);const T=new MutationObserver(N=>{for(const j of N)j.previousSibling===y&&(y.remove(),d.insertAdjacentElement("beforeend",y)),j.nextSibling===M&&(M.remove(),d.insertAdjacentElement("afterbegin",M))});T.observe(d,{childList:!0,subtree:!1}),V(()=>{M.removeEventListener("focusin",m),y.removeEventListener("focusin",m),M.remove(),y.remove(),T.disconnect()})})}/*!
55
55
  * Portions of this file are based on code from zag.
56
56
  * MIT Licensed, Copyright (c) 2021 Chakra UI.
57
57
  *
58
58
  * Credits to the zag team:
59
59
  * https://github.com/chakra-ui/zag/blob/c1e6c7689b22bf58741ded7cf224dd9baec2a046/packages/utilities/form-utils/src/form.ts
60
- */function Sd(e,t){H(Ze(e,n=>{if(n==null)return;const i=pd(n);i!=null&&(i.addEventListener("reset",t,{passive:!0}),V(()=>{i.removeEventListener("reset",t)}))}))}function pd(e){return Id(e)?e.form:e.closest("form")}function Id(e){return e.matches("textarea, input, select, button")}/*!
60
+ */function wd(e,t){H(Ze(e,n=>{if(n==null)return;const i=xd(n);i!=null&&(i.addEventListener("reset",t,{passive:!0}),V(()=>{i.removeEventListener("reset",t)}))}))}function xd(e){return Dd(e)?e.form:e.closest("form")}function Dd(e){return e.matches("textarea, input, select, button")}/*!
61
61
  * Portions of this file are based on code from react-spectrum.
62
62
  * Apache License Version 2.0, Copyright 2020 Adobe.
63
63
  *
64
64
  * Credits to the React Spectrum team:
65
65
  * https://github.com/adobe/react-spectrum/blob/15e101b74966bd5eb719c6529ce71ce57eaed430/packages/@react-aria/live-announcer/src/LiveAnnouncer.tsx
66
- */const wd="data-live-announcer";/*!
66
+ */const bd="data-live-announcer";/*!
67
67
  * This file is based on code from react-spectrum.
68
68
  * Apache License Version 2.0, Copyright 2020 Adobe.
69
69
  *
70
70
  * Credits to the React Spectrum team:
71
71
  * https://github.com/adobe/react-spectrum/blob/810579b671791f1593108f62cdc1893de3a220e3/packages/@react-aria/overlays/src/ariaHideOutside.ts
72
- */function la(e){H(()=>{p(e.isDisabled)||V(xd(p(e.targets),p(e.root)))})}const Cn=new WeakMap,Ve=[];function xd(e,t=document.body){const n=new Set(e),i=new Set,r=c=>{for(const f of c.querySelectorAll(`[${wd}], [${mi}]`))n.add(f);const u=f=>{if(n.has(f)||f.parentElement&&i.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const h of n)if(f.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},l=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),g=u(c);if(g===NodeFilter.FILTER_ACCEPT&&o(c),g!==NodeFilter.FILTER_REJECT){let f=l.nextNode();for(;f!=null;)o(f),f=l.nextNode()}},o=c=>{const u=Cn.get(c)??0;c.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&c.setAttribute("aria-hidden","true"),i.add(c),Cn.set(c,u+1))};Ve.length&&Ve[Ve.length-1].disconnect(),r(t);const s=new MutationObserver(c=>{for(const u of c)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...i].some(l=>l.contains(u.target))){for(const l of u.removedNodes)l instanceof Element&&(n.delete(l),i.delete(l));for(const l of u.addedNodes)(l instanceof HTMLElement||l instanceof SVGElement)&&(l.dataset.liveAnnouncer==="true"||l.dataset.reactAriaTopLayer==="true")?n.add(l):l instanceof Element&&r(l)}});s.observe(t,{childList:!0,subtree:!0});const a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Ve.push(a),()=>{s.disconnect();for(const c of i){const u=Cn.get(c);if(u==null)return;u===1?(c.removeAttribute("aria-hidden"),Cn.delete(c)):Cn.set(c,u-1)}a===Ve[Ve.length-1]?(Ve.pop(),Ve.length&&Ve[Ve.length-1].observe()):Ve.splice(Ve.indexOf(a),1)}}/*!
72
+ */function fa(e){H(()=>{p(e.isDisabled)||V(vd(p(e.targets),p(e.root)))})}const Cn=new WeakMap,Ve=[];function vd(e,t=document.body){const n=new Set(e),i=new Set,r=c=>{for(const f of c.querySelectorAll(`[${bd}], [${mi}]`))n.add(f);const u=f=>{if(n.has(f)||f.parentElement&&i.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const h of n)if(f.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},l=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),g=u(c);if(g===NodeFilter.FILTER_ACCEPT&&o(c),g!==NodeFilter.FILTER_REJECT){let f=l.nextNode();for(;f!=null;)o(f),f=l.nextNode()}},o=c=>{const u=Cn.get(c)??0;c.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&c.setAttribute("aria-hidden","true"),i.add(c),Cn.set(c,u+1))};Ve.length&&Ve[Ve.length-1].disconnect(),r(t);const s=new MutationObserver(c=>{for(const u of c)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...i].some(l=>l.contains(u.target))){for(const l of u.removedNodes)l instanceof Element&&(n.delete(l),i.delete(l));for(const l of u.addedNodes)(l instanceof HTMLElement||l instanceof SVGElement)&&(l.dataset.liveAnnouncer==="true"||l.dataset.reactAriaTopLayer==="true")?n.add(l):l instanceof Element&&r(l)}});s.observe(t,{childList:!0,subtree:!0});const a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Ve.push(a),()=>{s.disconnect();for(const c of i){const u=Cn.get(c);if(u==null)return;u===1?(c.removeAttribute("aria-hidden"),Cn.delete(c)):Cn.set(c,u-1)}a===Ve[Ve.length-1]?(Ve.pop(),Ve.length&&Ve[Ve.length-1].observe()):Ve.splice(Ve.indexOf(a),1)}}/*!
73
73
  * Portions of this file are based on code from radix-ui-primitives.
74
74
  * MIT Licensed, Copyright (c) 2022 WorkOS.
75
75
  *
@@ -81,14 +81,14 @@
81
81
  *
82
82
  * Credits to the Chakra UI team:
83
83
  * https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/interact-outside/src/index.ts
84
- */const fa="interactOutside.pointerDownOutside",da="interactOutside.focusOutside";function Dd(e,t){let n,i=cd;const r=()=>ke(t()),o=g=>e.onPointerDownOutside?.(g),s=g=>e.onFocusOutside?.(g),a=g=>e.onInteractOutside?.(g),c=g=>{const f=g.target;return!(f instanceof HTMLElement)||f.closest(`[${mi}]`)||!Qe(r(),f)||Qe(t(),f)?!1:!e.shouldExcludeElement?.(f)},u=g=>{function f(){const h=t(),d=g.target;if(!h||!d||!c(g))return;const M=Ge([o,a]);d.addEventListener(fa,M,{once:!0});const y=new CustomEvent(fa,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,isContextMenu:g.button===2||qf(g)&&g.button===0}});d.dispatchEvent(y)}g.pointerType==="touch"?(r().removeEventListener("click",f),i=f,r().addEventListener("click",f,{once:!0})):f()},l=g=>{const f=t(),h=g.target;if(!f||!h||!c(g))return;const d=Ge([s,a]);h.addEventListener(da,d,{once:!0});const M=new CustomEvent(da,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,isContextMenu:!1}});h.dispatchEvent(M)};H(()=>{p(e.isDisabled)||(n=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",l,!0),V(()=>{window.clearTimeout(n),r().removeEventListener("click",i),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",l,!0)}))})}/*!
84
+ */const da="interactOutside.pointerDownOutside",ga="interactOutside.focusOutside";function Od(e,t){let n,i=fd;const r=()=>ke(t()),o=g=>e.onPointerDownOutside?.(g),s=g=>e.onFocusOutside?.(g),a=g=>e.onInteractOutside?.(g),c=g=>{const f=g.target;return!(f instanceof HTMLElement)||f.closest(`[${mi}]`)||!Qe(r(),f)||Qe(t(),f)?!1:!e.shouldExcludeElement?.(f)},u=g=>{function f(){const h=t(),d=g.target;if(!h||!d||!c(g))return;const M=Ge([o,a]);d.addEventListener(da,M,{once:!0});const y=new CustomEvent(da,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,isContextMenu:g.button===2||ed(g)&&g.button===0}});d.dispatchEvent(y)}g.pointerType==="touch"?(r().removeEventListener("click",f),i=f,r().addEventListener("click",f,{once:!0})):f()},l=g=>{const f=t(),h=g.target;if(!f||!h||!c(g))return;const d=Ge([s,a]);h.addEventListener(ga,d,{once:!0});const M=new CustomEvent(ga,{bubbles:!1,cancelable:!0,detail:{originalEvent:g,isContextMenu:!1}});h.dispatchEvent(M)};H(()=>{p(e.isDisabled)||(n=window.setTimeout(()=>{r().addEventListener("pointerdown",u,!0)},0),r().addEventListener("focusin",l,!0),V(()=>{window.clearTimeout(n),r().removeEventListener("click",i),r().removeEventListener("pointerdown",u,!0),r().removeEventListener("focusin",l,!0)}))})}/*!
85
85
  * Portions of this file are based on code from radix-ui-primitives.
86
86
  * MIT Licensed, Copyright (c) 2022 WorkOS.
87
87
  *
88
88
  * Credits to the Radix UI team:
89
89
  * https://github.com/radix-ui/primitives/blob/21a7c97dc8efa79fecca36428eec49f187294085/packages/react/presence/src/Presence.tsx
90
90
  * https://github.com/radix-ui/primitives/blob/21a7c97dc8efa79fecca36428eec49f187294085/packages/react/presence/src/useStateMachine.tsx
91
- */function Ni(e){const[t,n]=P();let i={},r=e(),o="none";const[s,a]=bd(e()?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return H(Ze(s,c=>{const u=Ti(i);o=c==="mounted"?u:"none"})),H(Ze(e,c=>{if(r===c)return;const u=Ti(i);c?a("MOUNT"):i?.display==="none"?a("UNMOUNT"):a(r&&o!==u?"ANIMATION_OUT":"UNMOUNT"),r=c})),H(Ze(t,c=>{if(c){const u=g=>{const h=Ti(i).includes(g.animationName);g.target===c&&h&&a("ANIMATION_END")},l=g=>{g.target===c&&(o=Ti(i))};c.addEventListener("animationstart",l),c.addEventListener("animationcancel",u),c.addEventListener("animationend",u),V(()=>{c.removeEventListener("animationstart",l),c.removeEventListener("animationcancel",u),c.removeEventListener("animationend",u)})}else a("ANIMATION_END")})),{isPresent:()=>["mounted","unmountSuspended"].includes(s()),setRef:c=>{c&&(i=getComputedStyle(c)),n(c)}}}function Ti(e){return e?.animationName||"none"}function bd(e,t){const n=(s,a)=>t[s][a]??s,[i,r]=P(e);return[i,s=>{r(a=>n(a,s))}]}/*!
91
+ */function Ni(e){const[t,n]=P();let i={},r=e(),o="none";const[s,a]=Cd(e()?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return H(Ze(s,c=>{const u=Ti(i);o=c==="mounted"?u:"none"})),H(Ze(e,c=>{if(r===c)return;const u=Ti(i);c?a("MOUNT"):i?.display==="none"?a("UNMOUNT"):a(r&&o!==u?"ANIMATION_OUT":"UNMOUNT"),r=c})),H(Ze(t,c=>{if(c){const u=g=>{const h=Ti(i).includes(g.animationName);g.target===c&&h&&a("ANIMATION_END")},l=g=>{g.target===c&&(o=Ti(i))};c.addEventListener("animationstart",l),c.addEventListener("animationcancel",u),c.addEventListener("animationend",u),V(()=>{c.removeEventListener("animationstart",l),c.removeEventListener("animationcancel",u),c.removeEventListener("animationend",u)})}else a("ANIMATION_END")})),{isPresent:()=>["mounted","unmountSuspended"].includes(s()),setRef:c=>{c&&(i=getComputedStyle(c)),n(c)}}}function Ti(e){return e?.animationName||"none"}function Cd(e,t){const n=(s,a)=>t[s][a]??s,[i,r]=P(e);return[i,s=>{r(a=>n(a,s))}]}/*!
92
92
  * Portions of this file are based on code from floating-ui.
93
93
  * MIT Licensed, Copyright (c) 2021 Floating UI contributors.
94
94
  *
@@ -100,45 +100,45 @@
100
100
  *
101
101
  * Credits to the Ariakit team:
102
102
  * https://github.com/ariakit/ariakit/blob/5d8a1f047fcadcf117073c70359663a3946b73bf/packages/ariakit/src/dialog/__utils/use-prevent-body-scroll.ts
103
- */const Pr="data-kb-scroll-lock";function ga(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function vd(e,t,n){if(!e)return()=>{};const i=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{i?e.style.setProperty(t,i):e.style.removeProperty(t)}}function Od(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Ma(e){H(()=>{if(!p(e.ownerRef)||p(e.isDisabled))return;const t=ke(p(e.ownerRef)),n=Dr(p(e.ownerRef)),{documentElement:i,body:r}=t;if(r.hasAttribute(Pr))return;r.setAttribute(Pr,"");const s=n.innerWidth-i.clientWidth,a=()=>vd(i,"--scrollbar-width",`${s}px`),c=Od(i),u=()=>ga(r,{overflow:"hidden",[c]:`${s}px`}),l=()=>{const{scrollX:f,scrollY:h,visualViewport:d}=n,M=d?.offsetLeft??0,y=d?.offsetTop??0,m=ga(r,{position:"fixed",overflow:"hidden",top:`${-(h-Math.floor(y))}px`,left:`${-(f-Math.floor(M))}px`,right:"0",[c]:`${s}px`});return()=>{m(),n.scrollTo(f,h)}},g=Sr([a(),Ks()?l():u()]);V(()=>{g(),r.removeAttribute(Pr)})})}function Ye(e){return t=>(e(t),()=>e(void 0))}/*!
103
+ */const Yr="data-kb-scroll-lock";function Ma(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function zd(e,t,n){if(!e)return()=>{};const i=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{i?e.style.setProperty(t,i):e.style.removeProperty(t)}}function _d(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function ha(e){H(()=>{if(!p(e.ownerRef)||p(e.isDisabled))return;const t=ke(p(e.ownerRef)),n=xr(p(e.ownerRef)),{documentElement:i,body:r}=t;if(r.hasAttribute(Yr))return;r.setAttribute(Yr,"");const s=n.innerWidth-i.clientWidth,a=()=>zd(i,"--scrollbar-width",`${s}px`),c=_d(i),u=()=>Ma(r,{overflow:"hidden",[c]:`${s}px`}),l=()=>{const{scrollX:f,scrollY:h,visualViewport:d}=n,M=d?.offsetLeft??0,y=d?.offsetTop??0,m=Ma(r,{position:"fixed",overflow:"hidden",top:`${-(h-Math.floor(y))}px`,left:`${-(f-Math.floor(M))}px`,right:"0",[c]:`${s}px`});return()=>{m(),n.scrollTo(f,h)}},g=Er([a(),$s()?l():u()]);V(()=>{g(),r.removeAttribute(Yr)})})}function Ye(e){return t=>(e(t),()=>e(void 0))}/*!
104
104
  * Portions of this file are based on code from ariakit.
105
105
  * MIT Licensed, Copyright (c) Diego Haz.
106
106
  *
107
107
  * Credits to the ariakit team:
108
108
  * https://github.com/ariakit/ariakit/blob/8a13899ff807bbf39f3d89d2d5964042ba4d5287/packages/ariakit-react-utils/src/hooks.ts
109
- */function Cd(e,t){const[n,i]=P(ha(t?.()));return H(()=>{i(e()?.tagName.toLowerCase()||ha(t?.()))}),n}function ha(e){return rn(e)?e:void 0}/*!
109
+ */function kd(e,t){const[n,i]=P(ya(t?.()));return H(()=>{i(e()?.tagName.toLowerCase()||ya(t?.()))}),n}function ya(e){return rn(e)?e:void 0}/*!
110
110
  * Portions of this file are based on code from react-spectrum.
111
111
  * Apache License Version 2.0, Copyright 2020 Adobe.
112
112
  *
113
113
  * Credits to the React Spectrum team:
114
114
  * https://github.com/adobe/react-spectrum/blob/70e7caf1946c423bc9aa9cb0e50dbdbe953d239b/packages/@react-aria/label/src/useField.ts
115
- */const zd=["id","name","validationState","required","disabled","readOnly"];function _d(e){const t=`form-control-${Zt()}`;e=Me({id:t},e);const[n,i]=P(),[r,o]=P(),[s,a]=P(),[c,u]=P(),l=(d,M,y)=>{const m=y!=null||n()!=null;return[y,n(),m&&M!=null?d:void 0].filter(Boolean).join(" ")||void 0},g=d=>[s(),c(),d].filter(Boolean).join(" ")||void 0,f=Y(()=>({"data-valid":p(e.validationState)==="valid"?"":void 0,"data-invalid":p(e.validationState)==="invalid"?"":void 0,"data-required":p(e.required)?"":void 0,"data-disabled":p(e.disabled)?"":void 0,"data-readonly":p(e.readOnly)?"":void 0}));return{formControlContext:{name:()=>p(e.name)??p(e.id),dataset:f,validationState:()=>p(e.validationState),isRequired:()=>p(e.required),isDisabled:()=>p(e.disabled),isReadOnly:()=>p(e.readOnly),labelId:n,fieldId:r,descriptionId:s,errorMessageId:c,getAriaLabelledBy:l,getAriaDescribedBy:g,generateId:on(()=>p(e.id)),registerLabel:Ye(i),registerField:Ye(o),registerDescription:Ye(a),registerErrorMessage:Ye(u)}}}const ya=Ce();function Rr(){const e=ze(ya);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}const kd=["id","aria-label","aria-labelledby","aria-describedby"];function Ud(e){const t=Rr();return e=Me({id:t.generateId("field")},e),H(()=>V(t.registerField(p(e.id)))),{fieldProps:{id:()=>p(e.id),ariaLabel:()=>p(e["aria-label"]),ariaLabelledBy:()=>t.getAriaLabelledBy(p(e.id),p(e["aria-label"]),p(e["aria-labelledby"])),ariaDescribedBy:()=>t.getAriaDescribedBy(p(e["aria-describedby"]))}}}function ve(e){const[t,n]=ae(e,["asChild","as","children"]);if(!t.asChild)return L(pn,q({get component(){return t.as}},n,{get children(){return t.children}}));const i=ci(()=>t.children);if(ma(i())){const r=Na(n,i()?.props??{});return L(pn,r)}if(Gf(i())){const r=i().find(ma);if(r){const o=()=>L(Es,{get each(){return i()},children:a=>L(he,{when:a===r,fallback:a,get children(){return r.props.children}})}),s=Na(n,r?.props??{});return L(pn,q(s,{children:o}))}}throw new Error("[kobalte]: Component is expected to render `asChild` but no children `As` component was found.")}const Yd=Symbol("$$KobalteAsComponent");function ma(e){return e?.[Yd]===!0}function Na(e,t){return Bf([e,t],{reverseEventHandlers:!0})}const Pd={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};/*!
115
+ */const Ud=["id","name","validationState","required","disabled","readOnly"];function Yd(e){const t=`form-control-${Wt()}`;e=Me({id:t},e);const[n,i]=P(),[r,o]=P(),[s,a]=P(),[c,u]=P(),l=(d,M,y)=>{const m=y!=null||n()!=null;return[y,n(),m&&M!=null?d:void 0].filter(Boolean).join(" ")||void 0},g=d=>[s(),c(),d].filter(Boolean).join(" ")||void 0,f=Y(()=>({"data-valid":p(e.validationState)==="valid"?"":void 0,"data-invalid":p(e.validationState)==="invalid"?"":void 0,"data-required":p(e.required)?"":void 0,"data-disabled":p(e.disabled)?"":void 0,"data-readonly":p(e.readOnly)?"":void 0}));return{formControlContext:{name:()=>p(e.name)??p(e.id),dataset:f,validationState:()=>p(e.validationState),isRequired:()=>p(e.required),isDisabled:()=>p(e.disabled),isReadOnly:()=>p(e.readOnly),labelId:n,fieldId:r,descriptionId:s,errorMessageId:c,getAriaLabelledBy:l,getAriaDescribedBy:g,generateId:on(()=>p(e.id)),registerLabel:Ye(i),registerField:Ye(o),registerDescription:Ye(a),registerErrorMessage:Ye(u)}}}const ma=Ce();function Pr(){const e=ze(ma);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}const Pd=["id","aria-label","aria-labelledby","aria-describedby"];function Rd(e){const t=Pr();return e=Me({id:t.generateId("field")},e),H(()=>V(t.registerField(p(e.id)))),{fieldProps:{id:()=>p(e.id),ariaLabel:()=>p(e["aria-label"]),ariaLabelledBy:()=>t.getAriaLabelledBy(p(e.id),p(e["aria-label"]),p(e["aria-labelledby"])),ariaDescribedBy:()=>t.getAriaDescribedBy(p(e["aria-describedby"]))}}}function ve(e){const[t,n]=ae(e,["asChild","as","children"]);if(!t.asChild)return L(pn,q({get component(){return t.as}},n,{get children(){return t.children}}));const i=ci(()=>t.children);if(Na(i())){const r=Ta(n,i()?.props??{});return L(pn,r)}if($f(i())){const r=i().find(Na);if(r){const o=()=>L(Ss,{get each(){return i()},children:a=>L(he,{when:a===r,fallback:a,get children(){return r.props.children}})}),s=Ta(n,r?.props??{});return L(pn,q(s,{children:o}))}}throw new Error("[kobalte]: Component is expected to render `asChild` but no children `As` component was found.")}const Fd=Symbol("$$KobalteAsComponent");function Na(e){return e?.[Fd]===!0}function Ta(e,t){return Gf([e,t],{reverseEventHandlers:!0})}const Bd={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};/*!
116
116
  * Portions of this file are based on code from react-spectrum.
117
117
  * Apache License Version 2.0, Copyright 2020 Adobe.
118
118
  *
119
119
  * Credits to the React Spectrum team:
120
120
  * https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/utils.ts
121
- */const Rd=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Fd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Bd(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return Rd.has(n)}const t=e.split("-")[0];return Fd.has(t)}function Hd(e){return Bd(e)?"rtl":"ltr"}/*!
121
+ */const Hd=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Qd=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Gd(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return Hd.has(n)}const t=e.split("-")[0];return Qd.has(t)}function Vd(e){return Gd(e)?"rtl":"ltr"}/*!
122
122
  * Portions of this file are based on code from react-spectrum.
123
123
  * Apache License Version 2.0, Copyright 2020 Adobe.
124
124
  *
125
125
  * Credits to the React Spectrum team:
126
126
  * https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/useDefaultLocale.ts
127
- */function Ta(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Hd(e)}}let Fr=Ta();const zn=new Set;function La(){Fr=Ta();for(const e of zn)e(Fr)}function Qd(){const[e,t]=P(Fr),n=Y(()=>e());return Lt(()=>{zn.size===0&&window.addEventListener("languagechange",La),zn.add(t),V(()=>{zn.delete(t),zn.size===0&&window.removeEventListener("languagechange",La)})}),{locale:()=>n().locale,direction:()=>n().direction}}const Gd=Ce();function Li(){const e=Qd();return ze(Gd)||e}/*!
127
+ */function La(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Vd(e)}}let Rr=La();const zn=new Set;function ja(){Rr=La();for(const e of zn)e(Rr)}function Kd(){const[e,t]=P(Rr),n=Y(()=>e());return Lt(()=>{zn.size===0&&window.addEventListener("languagechange",ja),zn.add(t),V(()=>{zn.delete(t),zn.size===0&&window.removeEventListener("languagechange",ja)})}),{locale:()=>n().locale,direction:()=>n().direction}}const $d=Ce();function Li(){const e=Kd();return ze($d)||e}/*!
128
128
  * Portions of this file are based on code from react-spectrum.
129
129
  * Apache License Version 2.0, Copyright 2020 Adobe.
130
130
  *
131
131
  * Credits to the React Spectrum team:
132
132
  * https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/useCollator.ts
133
- */const Br=new Map;function ja(e){const{locale:t}=Li(),n=Y(()=>t()+(e?Object.entries(e).sort((i,r)=>i[0]<r[0]?-1:1).join():""));return Y(()=>{const i=n();let r;return Br.has(i)&&(r=Br.get(i)),r||(r=new Intl.Collator(t(),e),Br.set(i,r)),r})}var Hr=function(e,t){return Hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Hr(e,t)};function ji(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Hr(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var te=function(){return te=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},te.apply(this,arguments)};function Qr(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function Gr(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var K;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(K||(K={}));var le;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(le||(le={}));var sn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(sn||(sn={}));function Aa(e){return e.type===le.literal}function Vd(e){return e.type===le.argument}function Ea(e){return e.type===le.number}function Sa(e){return e.type===le.date}function pa(e){return e.type===le.time}function Ia(e){return e.type===le.select}function wa(e){return e.type===le.plural}function Kd(e){return e.type===le.pound}function xa(e){return e.type===le.tag}function Da(e){return!!(e&&typeof e=="object"&&e.type===sn.number)}function Vr(e){return!!(e&&typeof e=="object"&&e.type===sn.dateTime)}var ba=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$d=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Wd(e){var t={};return e.replace($d,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"short":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Zd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function qd(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Zd).filter(function(f){return f.length>0}),n=[],i=0,r=t;i<r.length;i++){var o=r[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,l=c;u<l.length;u++){var g=l[u];if(g.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function Xd(e){return e.replace(/^(.*?)-/,"")}var va=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Oa=/^(@+)?(\+|#+)?[rs]?$/g,Jd=/(\*)(0+)|(#+)(0+)|(0+)/g,Ca=/^(0+)$/;function za(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Oa,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function _a(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function eg(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ca.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ka(e){var t={},n=_a(e);return n||t}function tg(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Xd(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=te(te(te({},t),{notation:"scientific"}),r.options.reduce(function(c,u){return te(te({},c),ka(u))},{}));continue;case"engineering":t=te(te(te({},t),{notation:"engineering"}),r.options.reduce(function(c,u){return te(te({},c),ka(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Jd,function(c,u,l,g,f,h){if(u)t.minimumIntegerDigits=l.length;else{if(g&&f)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ca.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(va.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(va,function(c,u,l,g,f,h){return l==="*"?t.minimumFractionDigits=u.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:f&&h?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=r.options[0];o==="w"?t=te(te({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=te(te({},t),za(o)));continue}if(Oa.test(r.stem)){t=te(te({},t),za(r.stem));continue}var s=_a(r.stem);s&&(t=te(te({},t),s));var a=eg(r.stem);a&&(t=te(te({},t),a))}return t}var Ai={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ng(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=ig(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;s-- >0;)n=u+n}else r==="J"?n+="H":n+=r}return n}function ig(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=Ai[i||""]||Ai[n||""]||Ai["".concat(n,"-001")]||Ai["001"];return r[0]}var Kr,rg=new RegExp("^".concat(ba.source,"*")),og=new RegExp("".concat(ba.source,"*$"));function Z(e,t){return{start:e,end:t}}var sg=!!String.prototype.startsWith&&"_a".startsWith("a",1),ag=!!String.fromCodePoint,cg=!!Object.fromEntries,ug=!!String.prototype.codePointAt,lg=!!String.prototype.trimStart,fg=!!String.prototype.trimEnd,dg=!!Number.isSafeInteger,gg=dg?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$r=!0;try{var Mg=Ra("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$r=((Kr=Mg.exec("a"))===null||Kr===void 0?void 0:Kr[0])==="a"}catch{$r=!1}var Ua=sg?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},Wr=ag?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,o=0,s;r>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},Ya=cg?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var o=r[i],s=o[0],a=o[1];n[s]=a}return n},Pa=ug?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),o;return r<55296||r>56319||n+1===i||(o=t.charCodeAt(n+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},hg=lg?function(t){return t.trimStart()}:function(t){return t.replace(rg,"")},yg=fg?function(t){return t.trimEnd()}:function(t){return t.replace(og,"")};function Ra(e,t){return new RegExp(e,t)}var Zr;if($r){var Fa=Ra("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Zr=function(t,n){var i;Fa.lastIndex=n;var r=Fa.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else Zr=function(t,n){for(var i=[];;){var r=Pa(t,n);if(r===void 0||Ba(r)||Lg(r))break;i.push(r),n+=r>=65536?2:1}return Wr.apply(void 0,i)};var mg=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;r.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),r.push({type:le.pound,location:Z(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(K.UNMATCHED_CLOSING_TAG,Z(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&qr(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;r.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;r.push(s.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:le.literal,value:"<".concat(r,"/>"),location:Z(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!qr(this.char()))return this.error(K.INVALID_TAG,Z(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return r!==u?this.error(K.UNMATCHED_CLOSING_TAG,Z(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:le.tag,value:r,children:s,location:Z(i,this.clonePosition())},err:null}:this.error(K.INVALID_TAG,Z(a,this.clonePosition())))}else return this.error(K.UNCLOSED_TAG,Z(i,this.clonePosition()))}else return this.error(K.INVALID_TAG,Z(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Tg(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(n);if(o){r+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){r+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var c=Z(i,this.clonePosition());return{val:{type:le.literal,value:r,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ng(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return Wr.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),Wr(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(K.EMPTY_ARGUMENT,Z(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(K.MALFORMED_ARGUMENT,Z(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:le.argument,value:r,location:Z(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(K.MALFORMED_ARGUMENT,Z(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=Zr(this.message,n),r=n+i.length;this.bumpTo(r);var o=this.clonePosition(),s=Z(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,n,i,r){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(K.EXPECT_ARGUMENT_TYPE,Z(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var f=yg(g.val);if(f.length===0)return this.error(K.EXPECT_ARGUMENT_STYLE,Z(this.clonePosition(),this.clonePosition()));var h=Z(l,this.clonePosition());u={style:f,styleLocation:h}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var M=Z(r,this.clonePosition());if(u&&Ua(u?.style,"::",0)){var y=hg(u.style.slice(2));if(a==="number"){var g=this.parseNumberSkeletonFromString(y,u.styleLocation);return g.err?g:{val:{type:le.number,value:i,location:M,style:g.val},err:null}}else{if(y.length===0)return this.error(K.EXPECT_DATE_TIME_SKELETON,M);var m=y;this.locale&&(m=ng(y,this.locale));var f={type:sn.dateTime,pattern:m,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Wd(m):{}},T=a==="date"?le.date:le.time;return{val:{type:T,value:i,location:M,style:f},err:null}}}return{val:{type:a==="number"?le.number:a==="date"?le.date:le.time,value:i,location:M,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var N=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(K.EXPECT_SELECT_ARGUMENT_OPTIONS,Z(N,te({},N)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),A=0;if(a!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),j=this.parseIdentifierIfPossible(),A=g.val}var E=this.tryParsePluralOrSelectOptions(t,a,n,j);if(E.err)return E;var d=this.tryParseArgumentClose(r);if(d.err)return d;var S=Z(r,this.clonePosition());return a==="select"?{val:{type:le.select,value:i,options:Ya(E.val),location:S},err:null}:{val:{type:le.plural,value:i,options:Ya(E.val),offset:A,pluralType:a==="plural"?"cardinal":"ordinal",location:S},err:null}}default:return this.error(K.INVALID_ARGUMENT_TYPE,Z(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Z(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(K.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Z(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=qd(t)}catch{return this.error(K.INVALID_NUMBER_SKELETON,n)}return{val:{type:sn.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?tg(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var o,s=!1,a=[],c=new Set,u=r.value,l=r.location;;){if(u.length===0){var g=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_SELECTOR,K.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=Z(g,this.clonePosition()),u=this.message.slice(g.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?K.DUPLICATE_SELECT_ARGUMENT_SELECTOR:K.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);u==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?K.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:K.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Z(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,n,i);if(d.err)return d;var M=this.tryParseArgumentClose(h);if(M.err)return M;a.push([u,{value:d.val,location:Z(h,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,l=o.location}return a.length===0?this.error(n==="select"?K.EXPECT_SELECT_ARGUMENT_SELECTOR:K.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(K.MISSING_OTHER_CLAUSE,Z(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=Z(r,this.clonePosition());return o?(s*=i,gg(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Pa(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ua(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ba(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i??null},e}();function qr(e){return e>=97&&e<=122||e>=65&&e<=90}function Ng(e){return qr(e)||e===47}function Tg(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ba(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Lg(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Xr(e){e.forEach(function(t){if(delete t.location,Ia(t)||wa(t))for(var n in t.options)delete t.options[n].location,Xr(t.options[n].value);else Ea(t)&&Da(t.style)||(Sa(t)||pa(t))&&Vr(t.style)?delete t.style.location:xa(t)&&Xr(t.children)})}function jg(e,t){t===void 0&&(t={}),t=te({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new mg(e,t).parse();if(n.err){var i=SyntaxError(K[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t?.captureLocation||Xr(n.val),n.val}function Jr(e,t){var n=t&&t.cache?t.cache:wg,i=t&&t.serializer?t.serializer:Ig,r=t&&t.strategy?t.strategy:Eg;return r(e,{cache:n,serializer:i})}function Ag(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ha(e,t,n,i){var r=Ag(i)?i:n(i),o=t.get(r);return typeof o>"u"&&(o=e.call(this,i),t.set(r,o)),o}function Qa(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=t.get(r);return typeof o>"u"&&(o=e.apply(this,i),t.set(r,o)),o}function eo(e,t,n,i,r){return n.bind(t,e,i,r)}function Eg(e,t){var n=e.length===1?Ha:Qa;return eo(e,this,n,t.cache.create(),t.serializer)}function Sg(e,t){return eo(e,this,Qa,t.cache.create(),t.serializer)}function pg(e,t){return eo(e,this,Ha,t.cache.create(),t.serializer)}var Ig=function(){return JSON.stringify(arguments)};function to(){this.cache=Object.create(null)}to.prototype.get=function(e){return this.cache[e]},to.prototype.set=function(e,t){this.cache[e]=t};var wg={create:function(){return new to}},no={variadic:Sg,monadic:pg},an;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(an||(an={}));var Ei=function(e){ji(t,e);function t(n,i,r){var o=e.call(this,n)||this;return o.code=i,o.originalMessage=r,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ga=function(e){ji(t,e);function t(n,i,r,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),an.INVALID_VALUE,o)||this}return t}(Ei),xg=function(e){ji(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),an.INVALID_VALUE,r)||this}return t}(Ei),Dg=function(e){ji(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),an.MISSING_VALUE,i)||this}return t}(Ei),pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(pe||(pe={}));function bg(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==pe.literal||n.type!==pe.literal?t.push(n):i.value+=n.value,t},[])}function vg(e){return typeof e=="function"}function Si(e,t,n,i,r,o,s){if(e.length===1&&Aa(e[0]))return[{type:pe.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var l=u[c];if(Aa(l)){a.push({type:pe.literal,value:l.value});continue}if(Kd(l)){typeof o=="number"&&a.push({type:pe.literal,value:n.getNumberFormat(t).format(o)});continue}var g=l.value;if(!(r&&g in r))throw new Dg(g,s);var f=r[g];if(Vd(l)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?pe.literal:pe.object,value:f});continue}if(Sa(l)){var h=typeof l.style=="string"?i.date[l.style]:Vr(l.style)?l.style.parsedOptions:void 0;a.push({type:pe.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(pa(l)){var h=typeof l.style=="string"?i.time[l.style]:Vr(l.style)?l.style.parsedOptions:i.time.medium;a.push({type:pe.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(Ea(l)){var h=typeof l.style=="string"?i.number[l.style]:Da(l.style)?l.style.parsedOptions:void 0;h&&h.scale&&(f=f*(h.scale||1)),a.push({type:pe.literal,value:n.getNumberFormat(t,h).format(f)});continue}if(xa(l)){var d=l.children,M=l.value,y=r[M];if(!vg(y))throw new xg(M,"function",s);var m=Si(d,t,n,i,r,o),T=y(m.map(function(A){return A.value}));Array.isArray(T)||(T=[T]),a.push.apply(a,T.map(function(A){return{type:typeof A=="string"?pe.literal:pe.object,value:A}}))}if(Ia(l)){var N=l.options[f]||l.options.other;if(!N)throw new Ga(l.value,f,Object.keys(l.options),s);a.push.apply(a,Si(N.value,t,n,i,r));continue}if(wa(l)){var N=l.options["=".concat(f)];if(!N){if(!Intl.PluralRules)throw new Ei(`Intl.PluralRules is not available in this environment.
133
+ */const Fr=new Map;function Aa(e){const{locale:t}=Li(),n=Y(()=>t()+(e?Object.entries(e).sort((i,r)=>i[0]<r[0]?-1:1).join():""));return Y(()=>{const i=n();let r;return Fr.has(i)&&(r=Fr.get(i)),r||(r=new Intl.Collator(t(),e),Fr.set(i,r)),r})}var Br=function(e,t){return Br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Br(e,t)};function ji(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Br(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var te=function(){return te=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},te.apply(this,arguments)};function Hr(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function Qr(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var K;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(K||(K={}));var le;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(le||(le={}));var sn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(sn||(sn={}));function Ea(e){return e.type===le.literal}function Wd(e){return e.type===le.argument}function Sa(e){return e.type===le.number}function pa(e){return e.type===le.date}function Ia(e){return e.type===le.time}function wa(e){return e.type===le.select}function xa(e){return e.type===le.plural}function Zd(e){return e.type===le.pound}function Da(e){return e.type===le.tag}function ba(e){return!!(e&&typeof e=="object"&&e.type===sn.number)}function Gr(e){return!!(e&&typeof e=="object"&&e.type===sn.dateTime)}var va=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,qd=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Xd(e){var t={};return e.replace(qd,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"short":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Jd=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function eg(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Jd).filter(function(f){return f.length>0}),n=[],i=0,r=t;i<r.length;i++){var o=r[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),u=0,l=c;u<l.length;u++){var g=l[u];if(g.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:c})}return n}function tg(e){return e.replace(/^(.*?)-/,"")}var Oa=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ca=/^(@+)?(\+|#+)?[rs]?$/g,ng=/(\*)(0+)|(#+)(0+)|(0+)/g,za=/^(0+)$/;function _a(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ca,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function ka(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ig(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!za.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ua(e){var t={},n=ka(e);return n||t}function rg(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=tg(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=te(te(te({},t),{notation:"scientific"}),r.options.reduce(function(c,u){return te(te({},c),Ua(u))},{}));continue;case"engineering":t=te(te(te({},t),{notation:"engineering"}),r.options.reduce(function(c,u){return te(te({},c),Ua(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(ng,function(c,u,l,g,f,h){if(u)t.minimumIntegerDigits=l.length;else{if(g&&f)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(za.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(Oa.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Oa,function(c,u,l,g,f,h){return l==="*"?t.minimumFractionDigits=u.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:f&&h?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=r.options[0];o==="w"?t=te(te({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=te(te({},t),_a(o)));continue}if(Ca.test(r.stem)){t=te(te({},t),_a(r.stem));continue}var s=ka(r.stem);s&&(t=te(te({},t),s));var a=ig(r.stem);a&&(t=te(te({},t),a))}return t}var Ai={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function og(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",u=sg(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=c;for(;s-- >0;)n=u+n}else r==="J"?n+="H":n+=r}return n}function sg(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=Ai[i||""]||Ai[n||""]||Ai["".concat(n,"-001")]||Ai["001"];return r[0]}var Vr,ag=new RegExp("^".concat(va.source,"*")),cg=new RegExp("".concat(va.source,"*$"));function Z(e,t){return{start:e,end:t}}var ug=!!String.prototype.startsWith&&"_a".startsWith("a",1),lg=!!String.fromCodePoint,fg=!!Object.fromEntries,dg=!!String.prototype.codePointAt,gg=!!String.prototype.trimStart,Mg=!!String.prototype.trimEnd,hg=!!Number.isSafeInteger,yg=hg?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Kr=!0;try{var mg=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Kr=((Vr=mg.exec("a"))===null||Vr===void 0?void 0:Vr[0])==="a"}catch{Kr=!1}var Ya=ug?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},$r=lg?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,o=0,s;r>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},Pa=fg?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var o=r[i],s=o[0],a=o[1];n[s]=a}return n},Ra=dg?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),o;return r<55296||r>56319||n+1===i||(o=t.charCodeAt(n+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},Ng=gg?function(t){return t.trimStart()}:function(t){return t.replace(ag,"")},Tg=Mg?function(t){return t.trimEnd()}:function(t){return t.replace(cg,"")};function Fa(e,t){return new RegExp(e,t)}var Wr;if(Kr){var Ba=Fa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wr=function(t,n){var i;Ba.lastIndex=n;var r=Ba.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else Wr=function(t,n){for(var i=[];;){var r=Ra(t,n);if(r===void 0||Ha(r)||Eg(r))break;i.push(r),n+=r>=65536?2:1}return $r.apply(void 0,i)};var Lg=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;r.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),r.push({type:le.pound,location:Z(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(K.UNMATCHED_CLOSING_TAG,Z(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Zr(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;r.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;r.push(s.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:le.literal,value:"<".concat(r,"/>"),location:Z(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Zr(this.char()))return this.error(K.INVALID_TAG,Z(a,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return r!==u?this.error(K.UNMATCHED_CLOSING_TAG,Z(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:le.tag,value:r,children:s,location:Z(i,this.clonePosition())},err:null}:this.error(K.INVALID_TAG,Z(a,this.clonePosition())))}else return this.error(K.UNCLOSED_TAG,Z(i,this.clonePosition()))}else return this.error(K.INVALID_TAG,Z(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ag(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(n);if(o){r+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){r+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var c=Z(i,this.clonePosition());return{val:{type:le.literal,value:r,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!jg(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return $r.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),$r(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(K.EMPTY_ARGUMENT,Z(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(K.MALFORMED_ARGUMENT,Z(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:le.argument,value:r,location:Z(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(K.MALFORMED_ARGUMENT,Z(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=Wr(this.message,n),r=n+i.length;this.bumpTo(r);var o=this.clonePosition(),s=Z(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,n,i,r){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(K.EXPECT_ARGUMENT_TYPE,Z(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var f=Tg(g.val);if(f.length===0)return this.error(K.EXPECT_ARGUMENT_STYLE,Z(this.clonePosition(),this.clonePosition()));var h=Z(l,this.clonePosition());u={style:f,styleLocation:h}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var M=Z(r,this.clonePosition());if(u&&Ya(u?.style,"::",0)){var y=Ng(u.style.slice(2));if(a==="number"){var g=this.parseNumberSkeletonFromString(y,u.styleLocation);return g.err?g:{val:{type:le.number,value:i,location:M,style:g.val},err:null}}else{if(y.length===0)return this.error(K.EXPECT_DATE_TIME_SKELETON,M);var m=y;this.locale&&(m=og(y,this.locale));var f={type:sn.dateTime,pattern:m,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Xd(m):{}},T=a==="date"?le.date:le.time;return{val:{type:T,value:i,location:M,style:f},err:null}}}return{val:{type:a==="number"?le.number:a==="date"?le.date:le.time,value:i,location:M,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var N=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(K.EXPECT_SELECT_ARGUMENT_OPTIONS,Z(N,te({},N)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),A=0;if(a!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),j=this.parseIdentifierIfPossible(),A=g.val}var E=this.tryParsePluralOrSelectOptions(t,a,n,j);if(E.err)return E;var d=this.tryParseArgumentClose(r);if(d.err)return d;var S=Z(r,this.clonePosition());return a==="select"?{val:{type:le.select,value:i,options:Pa(E.val),location:S},err:null}:{val:{type:le.plural,value:i,options:Pa(E.val),offset:A,pluralType:a==="plural"?"cardinal":"ordinal",location:S},err:null}}default:return this.error(K.INVALID_ARGUMENT_TYPE,Z(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(K.EXPECT_ARGUMENT_CLOSING_BRACE,Z(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(K.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Z(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=eg(t)}catch{return this.error(K.INVALID_NUMBER_SKELETON,n)}return{val:{type:sn.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?rg(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var o,s=!1,a=[],c=new Set,u=r.value,l=r.location;;){if(u.length===0){var g=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(K.EXPECT_PLURAL_ARGUMENT_SELECTOR,K.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=Z(g,this.clonePosition()),u=this.message.slice(g.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?K.DUPLICATE_SELECT_ARGUMENT_SELECTOR:K.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);u==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?K.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:K.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Z(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(t+1,n,i);if(d.err)return d;var M=this.tryParseArgumentClose(h);if(M.err)return M;a.push([u,{value:d.val,location:Z(h,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,l=o.location}return a.length===0?this.error(n==="select"?K.EXPECT_SELECT_ARGUMENT_SELECTOR:K.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(K.MISSING_OTHER_CLAUSE,Z(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=Z(r,this.clonePosition());return o?(s*=i,yg(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Ra(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ya(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ha(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i??null},e}();function Zr(e){return e>=97&&e<=122||e>=65&&e<=90}function jg(e){return Zr(e)||e===47}function Ag(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ha(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Eg(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function qr(e){e.forEach(function(t){if(delete t.location,wa(t)||xa(t))for(var n in t.options)delete t.options[n].location,qr(t.options[n].value);else Sa(t)&&ba(t.style)||(pa(t)||Ia(t))&&Gr(t.style)?delete t.style.location:Da(t)&&qr(t.children)})}function Sg(e,t){t===void 0&&(t={}),t=te({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Lg(e,t).parse();if(n.err){var i=SyntaxError(K[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t?.captureLocation||qr(n.val),n.val}function Xr(e,t){var n=t&&t.cache?t.cache:bg,i=t&&t.serializer?t.serializer:Dg,r=t&&t.strategy?t.strategy:Ig;return r(e,{cache:n,serializer:i})}function pg(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Qa(e,t,n,i){var r=pg(i)?i:n(i),o=t.get(r);return typeof o>"u"&&(o=e.call(this,i),t.set(r,o)),o}function Ga(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=t.get(r);return typeof o>"u"&&(o=e.apply(this,i),t.set(r,o)),o}function Jr(e,t,n,i,r){return n.bind(t,e,i,r)}function Ig(e,t){var n=e.length===1?Qa:Ga;return Jr(e,this,n,t.cache.create(),t.serializer)}function wg(e,t){return Jr(e,this,Ga,t.cache.create(),t.serializer)}function xg(e,t){return Jr(e,this,Qa,t.cache.create(),t.serializer)}var Dg=function(){return JSON.stringify(arguments)};function eo(){this.cache=Object.create(null)}eo.prototype.get=function(e){return this.cache[e]},eo.prototype.set=function(e,t){this.cache[e]=t};var bg={create:function(){return new eo}},to={variadic:wg,monadic:xg},an;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(an||(an={}));var Ei=function(e){ji(t,e);function t(n,i,r){var o=e.call(this,n)||this;return o.code=i,o.originalMessage=r,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Va=function(e){ji(t,e);function t(n,i,r,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),an.INVALID_VALUE,o)||this}return t}(Ei),vg=function(e){ji(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),an.INVALID_VALUE,r)||this}return t}(Ei),Og=function(e){ji(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),an.MISSING_VALUE,i)||this}return t}(Ei),pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(pe||(pe={}));function Cg(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==pe.literal||n.type!==pe.literal?t.push(n):i.value+=n.value,t},[])}function zg(e){return typeof e=="function"}function Si(e,t,n,i,r,o,s){if(e.length===1&&Ea(e[0]))return[{type:pe.literal,value:e[0].value}];for(var a=[],c=0,u=e;c<u.length;c++){var l=u[c];if(Ea(l)){a.push({type:pe.literal,value:l.value});continue}if(Zd(l)){typeof o=="number"&&a.push({type:pe.literal,value:n.getNumberFormat(t).format(o)});continue}var g=l.value;if(!(r&&g in r))throw new Og(g,s);var f=r[g];if(Wd(l)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?pe.literal:pe.object,value:f});continue}if(pa(l)){var h=typeof l.style=="string"?i.date[l.style]:Gr(l.style)?l.style.parsedOptions:void 0;a.push({type:pe.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(Ia(l)){var h=typeof l.style=="string"?i.time[l.style]:Gr(l.style)?l.style.parsedOptions:i.time.medium;a.push({type:pe.literal,value:n.getDateTimeFormat(t,h).format(f)});continue}if(Sa(l)){var h=typeof l.style=="string"?i.number[l.style]:ba(l.style)?l.style.parsedOptions:void 0;h&&h.scale&&(f=f*(h.scale||1)),a.push({type:pe.literal,value:n.getNumberFormat(t,h).format(f)});continue}if(Da(l)){var d=l.children,M=l.value,y=r[M];if(!zg(y))throw new vg(M,"function",s);var m=Si(d,t,n,i,r,o),T=y(m.map(function(A){return A.value}));Array.isArray(T)||(T=[T]),a.push.apply(a,T.map(function(A){return{type:typeof A=="string"?pe.literal:pe.object,value:A}}))}if(wa(l)){var N=l.options[f]||l.options.other;if(!N)throw new Va(l.value,f,Object.keys(l.options),s);a.push.apply(a,Si(N.value,t,n,i,r));continue}if(xa(l)){var N=l.options["=".concat(f)];if(!N){if(!Intl.PluralRules)throw new Ei(`Intl.PluralRules is not available in this environment.
134
134
  Try polyfilling it using "@formatjs/intl-pluralrules"
135
- `,an.MISSING_INTL_API,s);var j=n.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));N=l.options[j]||l.options.other}if(!N)throw new Ga(l.value,f,Object.keys(l.options),s);a.push.apply(a,Si(N.value,t,n,i,r,f-(l.offset||0)));continue}}return bg(a)}function Og(e,t){return t?te(te(te({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=te(te({},e[i]),t[i]||{}),n},{})):e}function Cg(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=Og(e[i],t[i]),n},te({},e)):e}function io(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function zg(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Jr(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Gr([void 0],n,!1)))},{cache:io(e.number),strategy:no.variadic}),getDateTimeFormat:Jr(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Gr([void 0],n,!1)))},{cache:io(e.dateTime),strategy:no.variadic}),getPluralRules:Jr(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Gr([void 0],n,!1)))},{cache:io(e.pluralRules),strategy:no.variadic})}}var _g=function(){function e(t,n,i,r){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var l=u.reduce(function(g,f){return!g.length||f.type!==pe.literal||typeof g[g.length-1]!="string"?g.push(f.value):g[g.length-1]+=f.value,g},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(c){return Si(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=r||{};s.formatters;var a=Qr(s,["formatters"]);this.ast=e.__parse(t,te(te({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Cg(e.formats,i),this.formatters=r&&r.formatters||zg(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=jg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();class kg{getStringForLocale(t,n){let i=this.messages[n];i||(i=Ug(n,this.messages,this.defaultLocale),this.messages[n]=i);let r=i[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}constructor(t,n="en-US"){this.messages={...t},this.defaultLocale=n}}function Ug(e,t,n="en-US"){if(t[e])return t[e];let i=Yg(e);if(t[i])return t[i];for(let r in t)if(r.startsWith(i+"-"))return t[r];return t[n]}function Yg(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}class Pg{format(t,n){let i=this.cache[t];if(!i){let o=this.messages.getStringForLocale(t,this.locale);if(!o)throw new Error(`Could not find intl message ${t} in ${this.locale} locale`);i=new _g(o,this.locale),this.cache[t]=i}let r;return n&&(r=Object.keys(n).reduce((o,s)=>(o[s]=n[s]==null?!1:n[s],o),{})),i.format(r)}constructor(t,n){this.locale=t,this.messages=n,this.cache={}}}/*!
135
+ `,an.MISSING_INTL_API,s);var j=n.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));N=l.options[j]||l.options.other}if(!N)throw new Va(l.value,f,Object.keys(l.options),s);a.push.apply(a,Si(N.value,t,n,i,r,f-(l.offset||0)));continue}}return Cg(a)}function _g(e,t){return t?te(te(te({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=te(te({},e[i]),t[i]||{}),n},{})):e}function kg(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=_g(e[i],t[i]),n},te({},e)):e}function no(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Ug(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Xr(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Qr([void 0],n,!1)))},{cache:no(e.number),strategy:to.variadic}),getDateTimeFormat:Xr(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Qr([void 0],n,!1)))},{cache:no(e.dateTime),strategy:to.variadic}),getPluralRules:Xr(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Qr([void 0],n,!1)))},{cache:no(e.pluralRules),strategy:to.variadic})}}var Yg=function(){function e(t,n,i,r){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var l=u.reduce(function(g,f){return!g.length||f.type!==pe.literal||typeof g[g.length-1]!="string"?g.push(f.value):g[g.length-1]+=f.value,g},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(c){return Si(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=r||{};s.formatters;var a=Hr(s,["formatters"]);this.ast=e.__parse(t,te(te({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=kg(e.formats,i),this.formatters=r&&r.formatters||Ug(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Sg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();class Pg{getStringForLocale(t,n){let i=this.messages[n];i||(i=Rg(n,this.messages,this.defaultLocale),this.messages[n]=i);let r=i[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}constructor(t,n="en-US"){this.messages={...t},this.defaultLocale=n}}function Rg(e,t,n="en-US"){if(t[e])return t[e];let i=Fg(e);if(t[i])return t[i];for(let r in t)if(r.startsWith(i+"-"))return t[r];return t[n]}function Fg(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}class Bg{format(t,n){let i=this.cache[t];if(!i){let o=this.messages.getStringForLocale(t,this.locale);if(!o)throw new Error(`Could not find intl message ${t} in ${this.locale} locale`);i=new Yg(o,this.locale),this.cache[t]=i}let r;return n&&(r=Object.keys(n).reduce((o,s)=>(o[s]=n[s]==null?!1:n[s],o),{})),i.format(r)}constructor(t,n){this.locale=t,this.messages=n,this.cache={}}}/*!
136
136
  * Portions of this file are based on code from react-spectrum.
137
137
  * Apache License Version 2.0, Copyright 2020 Adobe.
138
138
  *
139
139
  * Credits to the React Spectrum team:
140
140
  * https://github.com/adobe/react-spectrum/blob/23c3a91e7b87952f07da9da115188bd2abd99d77/packages/@react-aria/i18n/src/useMessageFormatter.ts
141
- */const Va=new WeakMap;function Rg(e){let t=Va.get(e);return t||(t=new kg(e),Va.set(e,t)),t}function Fg(e){const{locale:t}=Li(),n=Y(()=>new Pg(t(),Rg(p(e))));return Y(()=>({format:(i,r)=>n().format(i,r)}))}/*!
141
+ */const Ka=new WeakMap;function Hg(e){let t=Ka.get(e);return t||(t=new Pg(e),Ka.set(e,t)),t}function Qg(e){const{locale:t}=Li(),n=Y(()=>new Bg(t(),Hg(p(e))));return Y(()=>({format:(i,r)=>n().format(i,r)}))}/*!
142
142
  * Portions of this file are based on code from react-spectrum.
143
143
  * Apache License Version 2.0, Copyright 2020 Adobe.
144
144
  *
@@ -146,77 +146,77 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
146
146
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/selection/src/Selection.ts
147
147
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/selection/src/types.ts
148
148
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-types/shared/src/selection.d.ts
149
- */class Ke extends Set{anchorKey;currentKey;constructor(t,n,i){super(t),t instanceof Ke?(this.anchorKey=n||t.anchorKey,this.currentKey=i||t.currentKey):(this.anchorKey=n,this.currentKey=i)}}function Bg(e){const[t,n]=ia(e);return[()=>t()??new Ke,n]}/*!
149
+ */class Ke extends Set{anchorKey;currentKey;constructor(t,n,i){super(t),t instanceof Ke?(this.anchorKey=n||t.anchorKey,this.currentKey=i||t.currentKey):(this.anchorKey=n,this.currentKey=i)}}function Gg(e){const[t,n]=ra(e);return[()=>t()??new Ke,n]}/*!
150
150
  * Portions of this file are based on code from react-spectrum.
151
151
  * Apache License Version 2.0, Copyright 2020 Adobe.
152
152
  *
153
153
  * Credits to the React Spectrum team:
154
154
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/utils.ts
155
- */function Ka(e){return $f()?e.altKey:e.ctrlKey}function cn(e){return bn()?e.metaKey:e.ctrlKey}function $a(e){return new Ke(e)}function Hg(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}/*!
155
+ */function $a(e){return qf()?e.altKey:e.ctrlKey}function cn(e){return bn()?e.metaKey:e.ctrlKey}function Wa(e){return new Ke(e)}function Vg(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}/*!
156
156
  * Portions of this file are based on code from react-spectrum.
157
157
  * Apache License Version 2.0, Copyright 2020 Adobe.
158
158
  *
159
159
  * Credits to the React Spectrum team:
160
160
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/selection/src/useMultipleSelectionState.ts
161
- */function Qg(e){e=Me({selectionMode:"none",selectionBehavior:"toggle"},e);const[t,n]=P(!1),[i,r]=P(),o=Y(()=>{const d=p(e.selectedKeys);return d!=null?$a(d):d}),s=Y(()=>{const d=p(e.defaultSelectedKeys);return d!=null?$a(d):new Ke}),[a,c]=Bg({value:o,defaultValue:s,onChange:d=>e.onSelectionChange?.(d)}),[u,l]=P(p(e.selectionBehavior)),g=()=>p(e.selectionMode),f=()=>p(e.disallowEmptySelection)??!1,h=d=>{(p(e.allowDuplicateSelectionEvents)||!Hg(d,a()))&&c(d)};return H(()=>{const d=a();p(e.selectionBehavior)==="replace"&&u()==="toggle"&&typeof d=="object"&&d.size===0&&l("replace")}),H(()=>{l(p(e.selectionBehavior)??"toggle")}),{selectionMode:g,disallowEmptySelection:f,selectionBehavior:u,setSelectionBehavior:l,isFocused:t,setFocused:n,focusedKey:i,setFocusedKey:r,selectedKeys:a,setSelectedKeys:h}}/*!
161
+ */function Kg(e){e=Me({selectionMode:"none",selectionBehavior:"toggle"},e);const[t,n]=P(!1),[i,r]=P(),o=Y(()=>{const d=p(e.selectedKeys);return d!=null?Wa(d):d}),s=Y(()=>{const d=p(e.defaultSelectedKeys);return d!=null?Wa(d):new Ke}),[a,c]=Gg({value:o,defaultValue:s,onChange:d=>e.onSelectionChange?.(d)}),[u,l]=P(p(e.selectionBehavior)),g=()=>p(e.selectionMode),f=()=>p(e.disallowEmptySelection)??!1,h=d=>{(p(e.allowDuplicateSelectionEvents)||!Vg(d,a()))&&c(d)};return H(()=>{const d=a();p(e.selectionBehavior)==="replace"&&u()==="toggle"&&typeof d=="object"&&d.size===0&&l("replace")}),H(()=>{l(p(e.selectionBehavior)??"toggle")}),{selectionMode:g,disallowEmptySelection:f,selectionBehavior:u,setSelectionBehavior:l,isFocused:t,setFocused:n,focusedKey:i,setFocusedKey:r,selectedKeys:a,setSelectedKeys:h}}/*!
162
162
  * Portions of this file are based on code from react-spectrum.
163
163
  * Apache License Version 2.0, Copyright 2020 Adobe.
164
164
  *
165
165
  * Credits to the React Spectrum team:
166
166
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useTypeSelect.ts
167
- */function Wa(e){const[t,n]=P(""),[i,r]=P(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(p(e.isDisabled))return;const a=p(e.keyboardDelegate),c=p(e.selectionManager);if(!a.getKeyForSearch)return;const u=Gg(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let l=n(f=>f+=u),g=a.getKeyForSearch(l,c.focusedKey())??a.getKeyForSearch(l);g==null&&Vg(l)&&(l=l[0],g=a.getKeyForSearch(l,c.focusedKey())??a.getKeyForSearch(l)),g!=null&&(c.setFocusedKey(g),e.onTypeSelect?.(g)),clearTimeout(i()),r(window.setTimeout(()=>n(""),500))}}}}function Gg(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Vg(e){return e.split("").every(t=>t===e[0])}/*!
167
+ */function Za(e){const[t,n]=P(""),[i,r]=P(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(p(e.isDisabled))return;const a=p(e.keyboardDelegate),c=p(e.selectionManager);if(!a.getKeyForSearch)return;const u=$g(s.key);if(!u||s.ctrlKey||s.metaKey)return;u===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let l=n(f=>f+=u),g=a.getKeyForSearch(l,c.focusedKey())??a.getKeyForSearch(l);g==null&&Wg(l)&&(l=l[0],g=a.getKeyForSearch(l,c.focusedKey())??a.getKeyForSearch(l)),g!=null&&(c.setFocusedKey(g),e.onTypeSelect?.(g)),clearTimeout(i()),r(window.setTimeout(()=>n(""),500))}}}}function $g(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Wg(e){return e.split("").every(t=>t===e[0])}/*!
168
168
  * Portions of this file are based on code from react-spectrum.
169
169
  * Apache License Version 2.0, Copyright 2020 Adobe.
170
170
  *
171
171
  * Credits to the React Spectrum team:
172
172
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableCollection.ts
173
- */function Kg(e,t,n){e=q({selectOnFocus:()=>p(e.selectionManager).selectionBehavior()==="replace"},e);const r=()=>n?.()??t(),{direction:o}=Li();let s={top:0,left:0};kf(()=>p(e.isVirtualized)?void 0:r(),"scroll",()=>{const d=r();d&&(s={top:d.scrollTop,left:d.scrollLeft})});const{typeSelectHandlers:a}=Wa({isDisabled:()=>p(e.disallowTypeAhead),keyboardDelegate:()=>p(e.keyboardDelegate),selectionManager:()=>p(e.selectionManager)}),c=d=>{me(d,a.onKeyDown),d.altKey&&d.key==="Tab"&&d.preventDefault();const M=t();if(!M?.contains(d.target))return;const y=p(e.selectionManager),m=p(e.selectOnFocus),T=E=>{E!=null&&(y.setFocusedKey(E),d.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):m&&!Ka(d)&&y.replaceSelection(E))},N=p(e.keyboardDelegate),j=p(e.shouldFocusWrap),A=y.focusedKey();switch(d.key){case"ArrowDown":{if(N.getKeyBelow){d.preventDefault();let E;A!=null?E=N.getKeyBelow(A):E=N.getFirstKey?.(),E==null&&j&&(E=N.getFirstKey?.(A)),T(E)}break}case"ArrowUp":{if(N.getKeyAbove){d.preventDefault();let E;A!=null?E=N.getKeyAbove(A):E=N.getLastKey?.(),E==null&&j&&(E=N.getLastKey?.(A)),T(E)}break}case"ArrowLeft":{if(N.getKeyLeftOf){d.preventDefault();const E=o()==="rtl";let S;A!=null?S=N.getKeyLeftOf(A):S=E?N.getFirstKey?.():N.getLastKey?.(),T(S)}break}case"ArrowRight":{if(N.getKeyRightOf){d.preventDefault();const E=o()==="rtl";let S;A!=null?S=N.getKeyRightOf(A):S=E?N.getLastKey?.():N.getFirstKey?.(),T(S)}break}case"Home":if(N.getFirstKey){d.preventDefault();const E=N.getFirstKey(A,cn(d));E!=null&&(y.setFocusedKey(E),cn(d)&&d.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):m&&y.replaceSelection(E))}break;case"End":if(N.getLastKey){d.preventDefault();const E=N.getLastKey(A,cn(d));E!=null&&(y.setFocusedKey(E),cn(d)&&d.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):m&&y.replaceSelection(E))}break;case"PageDown":if(N.getKeyPageBelow&&A!=null){d.preventDefault();const E=N.getKeyPageBelow(A);T(E)}break;case"PageUp":if(N.getKeyPageAbove&&A!=null){d.preventDefault();const E=N.getKeyPageAbove(A);T(E)}break;case"a":cn(d)&&y.selectionMode()==="multiple"&&p(e.disallowSelectAll)!==!0&&(d.preventDefault(),y.selectAll());break;case"Escape":d.defaultPrevented||(d.preventDefault(),p(e.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!p(e.allowsTabNavigation)){if(d.shiftKey)M.focus();else{const E=ad(M,{tabbable:!0});let S,I;do I=E.lastChild(),I&&(S=I);while(I);S&&!S.contains(document.activeElement)&&Ee(S)}break}}},u=d=>{const M=p(e.selectionManager),y=p(e.keyboardDelegate),m=p(e.selectOnFocus);if(M.isFocused()){d.currentTarget.contains(d.target)||M.setFocused(!1);return}if(d.currentTarget.contains(d.target)){if(M.setFocused(!0),M.focusedKey()==null){const T=j=>{j!=null&&(M.setFocusedKey(j),m&&M.replaceSelection(j))},N=d.relatedTarget;N&&d.currentTarget.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_FOLLOWING?T(M.lastSelectedKey()??y.getLastKey?.()):T(M.firstSelectedKey()??y.getFirstKey?.())}else if(!p(e.isVirtualized)){const T=r();if(T){T.scrollTop=s.top,T.scrollLeft=s.left;const N=T.querySelector(`[data-key="${M.focusedKey()}"]`);N&&(Ee(N),ea(T,N))}}}},l=d=>{const M=p(e.selectionManager);d.currentTarget.contains(d.relatedTarget)||M.setFocused(!1)},g=d=>{r()===d.target&&d.preventDefault()},f=()=>{const d=p(e.autoFocus);if(!d)return;const M=p(e.selectionManager),y=p(e.keyboardDelegate);let m;d==="first"&&(m=y.getFirstKey?.()),d==="last"&&(m=y.getLastKey?.());const T=M.selectedKeys();T.size&&(m=T.values().next().value),M.setFocused(!0),M.setFocusedKey(m);const N=t();N&&m==null&&!p(e.shouldUseVirtualFocus)&&Ee(N)};return Lt(()=>{e.deferAutoFocus?setTimeout(f,0):f()}),H(Ze([r,()=>p(e.isVirtualized),()=>p(e.selectionManager).focusedKey()],d=>{const[M,y,m]=d;if(y)m&&e.scrollToKey?.(m);else if(m&&M){const T=M.querySelector(`[data-key="${m}"]`);T&&ea(M,T)}})),{tabIndex:Y(()=>{if(!p(e.shouldUseVirtualFocus))return p(e.selectionManager).focusedKey()==null?0:-1}),onKeyDown:c,onMouseDown:g,onFocusIn:u,onFocusOut:l}}/*!
173
+ */function Zg(e,t,n){e=q({selectOnFocus:()=>p(e.selectionManager).selectionBehavior()==="replace"},e);const r=()=>n?.()??t(),{direction:o}=Li();let s={top:0,left:0};Pf(()=>p(e.isVirtualized)?void 0:r(),"scroll",()=>{const d=r();d&&(s={top:d.scrollTop,left:d.scrollLeft})});const{typeSelectHandlers:a}=Za({isDisabled:()=>p(e.disallowTypeAhead),keyboardDelegate:()=>p(e.keyboardDelegate),selectionManager:()=>p(e.selectionManager)}),c=d=>{Ne(d,a.onKeyDown),d.altKey&&d.key==="Tab"&&d.preventDefault();const M=t();if(!M?.contains(d.target))return;const y=p(e.selectionManager),m=p(e.selectOnFocus),T=E=>{E!=null&&(y.setFocusedKey(E),d.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):m&&!$a(d)&&y.replaceSelection(E))},N=p(e.keyboardDelegate),j=p(e.shouldFocusWrap),A=y.focusedKey();switch(d.key){case"ArrowDown":{if(N.getKeyBelow){d.preventDefault();let E;A!=null?E=N.getKeyBelow(A):E=N.getFirstKey?.(),E==null&&j&&(E=N.getFirstKey?.(A)),T(E)}break}case"ArrowUp":{if(N.getKeyAbove){d.preventDefault();let E;A!=null?E=N.getKeyAbove(A):E=N.getLastKey?.(),E==null&&j&&(E=N.getLastKey?.(A)),T(E)}break}case"ArrowLeft":{if(N.getKeyLeftOf){d.preventDefault();const E=o()==="rtl";let S;A!=null?S=N.getKeyLeftOf(A):S=E?N.getFirstKey?.():N.getLastKey?.(),T(S)}break}case"ArrowRight":{if(N.getKeyRightOf){d.preventDefault();const E=o()==="rtl";let S;A!=null?S=N.getKeyRightOf(A):S=E?N.getLastKey?.():N.getFirstKey?.(),T(S)}break}case"Home":if(N.getFirstKey){d.preventDefault();const E=N.getFirstKey(A,cn(d));E!=null&&(y.setFocusedKey(E),cn(d)&&d.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):m&&y.replaceSelection(E))}break;case"End":if(N.getLastKey){d.preventDefault();const E=N.getLastKey(A,cn(d));E!=null&&(y.setFocusedKey(E),cn(d)&&d.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(E):m&&y.replaceSelection(E))}break;case"PageDown":if(N.getKeyPageBelow&&A!=null){d.preventDefault();const E=N.getKeyPageBelow(A);T(E)}break;case"PageUp":if(N.getKeyPageAbove&&A!=null){d.preventDefault();const E=N.getKeyPageAbove(A);T(E)}break;case"a":cn(d)&&y.selectionMode()==="multiple"&&p(e.disallowSelectAll)!==!0&&(d.preventDefault(),y.selectAll());break;case"Escape":d.defaultPrevented||(d.preventDefault(),p(e.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!p(e.allowsTabNavigation)){if(d.shiftKey)M.focus();else{const E=ld(M,{tabbable:!0});let S,I;do I=E.lastChild(),I&&(S=I);while(I);S&&!S.contains(document.activeElement)&&Ee(S)}break}}},u=d=>{const M=p(e.selectionManager),y=p(e.keyboardDelegate),m=p(e.selectOnFocus);if(M.isFocused()){d.currentTarget.contains(d.target)||M.setFocused(!1);return}if(d.currentTarget.contains(d.target)){if(M.setFocused(!0),M.focusedKey()==null){const T=j=>{j!=null&&(M.setFocusedKey(j),m&&M.replaceSelection(j))},N=d.relatedTarget;N&&d.currentTarget.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_FOLLOWING?T(M.lastSelectedKey()??y.getLastKey?.()):T(M.firstSelectedKey()??y.getFirstKey?.())}else if(!p(e.isVirtualized)){const T=r();if(T){T.scrollTop=s.top,T.scrollLeft=s.left;const N=T.querySelector(`[data-key="${M.focusedKey()}"]`);N&&(Ee(N),ta(T,N))}}}},l=d=>{const M=p(e.selectionManager);d.currentTarget.contains(d.relatedTarget)||M.setFocused(!1)},g=d=>{r()===d.target&&d.preventDefault()},f=()=>{const d=p(e.autoFocus);if(!d)return;const M=p(e.selectionManager),y=p(e.keyboardDelegate);let m;d==="first"&&(m=y.getFirstKey?.()),d==="last"&&(m=y.getLastKey?.());const T=M.selectedKeys();T.size&&(m=T.values().next().value),M.setFocused(!0),M.setFocusedKey(m);const N=t();N&&m==null&&!p(e.shouldUseVirtualFocus)&&Ee(N)};return Lt(()=>{e.deferAutoFocus?setTimeout(f,0):f()}),H(Ze([r,()=>p(e.isVirtualized),()=>p(e.selectionManager).focusedKey()],d=>{const[M,y,m]=d;if(y)m&&e.scrollToKey?.(m);else if(m&&M){const T=M.querySelector(`[data-key="${m}"]`);T&&ta(M,T)}})),{tabIndex:Y(()=>{if(!p(e.shouldUseVirtualFocus))return p(e.selectionManager).focusedKey()==null?0:-1}),onKeyDown:c,onMouseDown:g,onFocusIn:u,onFocusOut:l}}/*!
174
174
  * Portions of this file are based on code from react-spectrum.
175
175
  * Apache License Version 2.0, Copyright 2020 Adobe.
176
176
  *
177
177
  * Credits to the React Spectrum team:
178
178
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableItem.ts
179
- */function $g(e,t){const n=()=>p(e.selectionManager),i=()=>p(e.key),r=()=>p(e.shouldUseVirtualFocus),o=T=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(i())&&!n().disallowEmptySelection()?n().toggleSelection(i()):n().replaceSelection(i()):T&&T.shiftKey?n().extendSelection(i()):n().selectionBehavior()==="toggle"||cn(T)||"pointerType"in T&&T.pointerType==="touch"?n().toggleSelection(i()):n().replaceSelection(i()))},s=()=>n().isSelected(i()),a=()=>p(e.disabled)||n().isDisabled(i()),c=()=>!a()&&n().canSelectItem(i());let u=null;const l=T=>{c()&&(u=T.pointerType,T.pointerType==="mouse"&&T.button===0&&!p(e.shouldSelectOnPressUp)&&o(T))},g=T=>{c()&&T.pointerType==="mouse"&&T.button===0&&p(e.shouldSelectOnPressUp)&&p(e.allowsDifferentPressOrigin)&&o(T)},f=T=>{c()&&(p(e.shouldSelectOnPressUp)&&!p(e.allowsDifferentPressOrigin)||u!=="mouse")&&o(T)},h=T=>{!c()||!["Enter"," "].includes(T.key)||(Ka(T)?n().toggleSelection(i()):o(T))},d=T=>{a()&&T.preventDefault()},M=T=>{const N=t();r()||a()||!N||T.target===N&&n().setFocusedKey(i())},y=Y(()=>{if(!(r()||a()))return i()===n().focusedKey()?0:-1}),m=Y(()=>p(e.virtualized)?void 0:i());return H(Ze([t,i,r,()=>n().focusedKey(),()=>n().isFocused()],([T,N,j,A,E])=>{T&&N===A&&E&&!j&&document.activeElement!==T&&(e.focus?e.focus():Ee(T))})),{isSelected:s,isDisabled:a,allowsSelection:c,tabIndex:y,dataKey:m,onPointerDown:l,onPointerUp:g,onClick:f,onKeyDown:h,onMouseDown:d,onFocus:M}}/*!
179
+ */function qg(e,t){const n=()=>p(e.selectionManager),i=()=>p(e.key),r=()=>p(e.shouldUseVirtualFocus),o=T=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(i())&&!n().disallowEmptySelection()?n().toggleSelection(i()):n().replaceSelection(i()):T&&T.shiftKey?n().extendSelection(i()):n().selectionBehavior()==="toggle"||cn(T)||"pointerType"in T&&T.pointerType==="touch"?n().toggleSelection(i()):n().replaceSelection(i()))},s=()=>n().isSelected(i()),a=()=>p(e.disabled)||n().isDisabled(i()),c=()=>!a()&&n().canSelectItem(i());let u=null;const l=T=>{c()&&(u=T.pointerType,T.pointerType==="mouse"&&T.button===0&&!p(e.shouldSelectOnPressUp)&&o(T))},g=T=>{c()&&T.pointerType==="mouse"&&T.button===0&&p(e.shouldSelectOnPressUp)&&p(e.allowsDifferentPressOrigin)&&o(T)},f=T=>{c()&&(p(e.shouldSelectOnPressUp)&&!p(e.allowsDifferentPressOrigin)||u!=="mouse")&&o(T)},h=T=>{!c()||!["Enter"," "].includes(T.key)||($a(T)?n().toggleSelection(i()):o(T))},d=T=>{a()&&T.preventDefault()},M=T=>{const N=t();r()||a()||!N||T.target===N&&n().setFocusedKey(i())},y=Y(()=>{if(!(r()||a()))return i()===n().focusedKey()?0:-1}),m=Y(()=>p(e.virtualized)?void 0:i());return H(Ze([t,i,r,()=>n().focusedKey(),()=>n().isFocused()],([T,N,j,A,E])=>{T&&N===A&&E&&!j&&document.activeElement!==T&&(e.focus?e.focus():Ee(T))})),{isSelected:s,isDisabled:a,allowsSelection:c,tabIndex:y,dataKey:m,onPointerDown:l,onPointerUp:g,onClick:f,onKeyDown:h,onMouseDown:d,onFocus:M}}/*!
180
180
  * Portions of this file are based on code from react-spectrum.
181
181
  * Apache License Version 2.0, Copyright 2020 Adobe.
182
182
  *
183
183
  * Credits to the React Spectrum team:
184
184
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/selection/src/SelectionManager.ts
185
- */class Wg{collection;state;constructor(t,n){this.collection=t,this.state=n}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}isFocused(){return this.state.isFocused()}setFocused(t){this.state.setFocused(t)}focusedKey(){return this.state.focusedKey()}setFocusedKey(t){(t==null||this.collection().getItem(t))&&this.state.setFocusedKey(t)}selectedKeys(){return this.state.selectedKeys()}isSelected(t){if(this.state.selectionMode()==="none")return!1;const n=this.getKey(t);return n==null?!1:this.state.selectedKeys().has(n)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const t=this.state.selectedKeys();return this.getAllSelectableKeys().every(n=>t.has(n))}firstSelectedKey(){let t;for(const n of this.state.selectedKeys()){const i=this.collection().getItem(n),r=i?.index!=null&&t?.index!=null&&i.index<t.index;(!t||r)&&(t=i)}return t?.key}lastSelectedKey(){let t;for(const n of this.state.selectedKeys()){const i=this.collection().getItem(n),r=i?.index!=null&&t?.index!=null&&i.index>t.index;(!t||r)&&(t=i)}return t?.key}extendSelection(t){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(t);return}const n=this.getKey(t);if(n==null)return;const i=this.state.selectedKeys(),r=i.anchorKey||n,o=new Ke(i,r,n);for(const s of this.getKeyRange(r,i.currentKey||n))o.delete(s);for(const s of this.getKeyRange(n,r))this.canSelectItem(s)&&o.add(s);this.state.setSelectedKeys(o)}getKeyRange(t,n){const i=this.collection().getItem(t),r=this.collection().getItem(n);return i&&r?i.index!=null&&r.index!=null&&i.index<=r.index?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){const i=[];let r=t;for(;r!=null;){const o=this.collection().getItem(r);if(o&&o.type==="item"&&i.push(r),r===n)return i;r=this.collection().getKeyAfter(r)}return[]}getKey(t){const n=this.collection().getItem(t);return n?!n||n.type!=="item"?null:n.key:t}toggleSelection(t){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}const n=this.getKey(t);if(n==null)return;const i=new Ke(this.state.selectedKeys());i.has(n)?i.delete(n):this.canSelectItem(n)&&(i.add(n),i.anchorKey=n,i.currentKey=n),!(this.disallowEmptySelection()&&i.size===0)&&this.state.setSelectedKeys(i)}replaceSelection(t){if(this.selectionMode()==="none")return;const n=this.getKey(t);if(n==null)return;const i=this.canSelectItem(n)?new Ke([n],n,n):new Ke;this.state.setSelectedKeys(i)}setSelectedKeys(t){if(this.selectionMode()==="none")return;const n=new Ke;for(const i of t){const r=this.getKey(i);if(r!=null&&(n.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(n)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const t=this.state.selectedKeys();!this.disallowEmptySelection()&&t.size>0&&this.state.setSelectedKeys(new Ke)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(t)&&!this.disallowEmptySelection()?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior()==="toggle"||n&&n.pointerType==="touch"?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys())return!0;const n=this.selectedKeys();if(t.size!==n.size)return!1;for(const i of t)if(!n.has(i))return!1;for(const i of n)if(!t.has(i))return!1;return!0}canSelectItem(t){if(this.state.selectionMode()==="none")return!1;const n=this.collection().getItem(t);return n!=null&&!n.disabled}isDisabled(t){const n=this.collection().getItem(t);return!n||n.disabled}getAllSelectableKeys(){const t=[];return(i=>{for(;i!=null;){if(this.canSelectItem(i)){const r=this.collection().getItem(i);if(!r)continue;r.type==="item"&&t.push(i)}i=this.collection().getKeyAfter(i)}})(this.collection().getFirstKey()),t}}/*!
185
+ */class Xg{collection;state;constructor(t,n){this.collection=t,this.state=n}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}isFocused(){return this.state.isFocused()}setFocused(t){this.state.setFocused(t)}focusedKey(){return this.state.focusedKey()}setFocusedKey(t){(t==null||this.collection().getItem(t))&&this.state.setFocusedKey(t)}selectedKeys(){return this.state.selectedKeys()}isSelected(t){if(this.state.selectionMode()==="none")return!1;const n=this.getKey(t);return n==null?!1:this.state.selectedKeys().has(n)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const t=this.state.selectedKeys();return this.getAllSelectableKeys().every(n=>t.has(n))}firstSelectedKey(){let t;for(const n of this.state.selectedKeys()){const i=this.collection().getItem(n),r=i?.index!=null&&t?.index!=null&&i.index<t.index;(!t||r)&&(t=i)}return t?.key}lastSelectedKey(){let t;for(const n of this.state.selectedKeys()){const i=this.collection().getItem(n),r=i?.index!=null&&t?.index!=null&&i.index>t.index;(!t||r)&&(t=i)}return t?.key}extendSelection(t){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(t);return}const n=this.getKey(t);if(n==null)return;const i=this.state.selectedKeys(),r=i.anchorKey||n,o=new Ke(i,r,n);for(const s of this.getKeyRange(r,i.currentKey||n))o.delete(s);for(const s of this.getKeyRange(n,r))this.canSelectItem(s)&&o.add(s);this.state.setSelectedKeys(o)}getKeyRange(t,n){const i=this.collection().getItem(t),r=this.collection().getItem(n);return i&&r?i.index!=null&&r.index!=null&&i.index<=r.index?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){const i=[];let r=t;for(;r!=null;){const o=this.collection().getItem(r);if(o&&o.type==="item"&&i.push(r),r===n)return i;r=this.collection().getKeyAfter(r)}return[]}getKey(t){const n=this.collection().getItem(t);return n?!n||n.type!=="item"?null:n.key:t}toggleSelection(t){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}const n=this.getKey(t);if(n==null)return;const i=new Ke(this.state.selectedKeys());i.has(n)?i.delete(n):this.canSelectItem(n)&&(i.add(n),i.anchorKey=n,i.currentKey=n),!(this.disallowEmptySelection()&&i.size===0)&&this.state.setSelectedKeys(i)}replaceSelection(t){if(this.selectionMode()==="none")return;const n=this.getKey(t);if(n==null)return;const i=this.canSelectItem(n)?new Ke([n],n,n):new Ke;this.state.setSelectedKeys(i)}setSelectedKeys(t){if(this.selectionMode()==="none")return;const n=new Ke;for(const i of t){const r=this.getKey(i);if(r!=null&&(n.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(n)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const t=this.state.selectedKeys();!this.disallowEmptySelection()&&t.size>0&&this.state.setSelectedKeys(new Ke)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(t)&&!this.disallowEmptySelection()?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior()==="toggle"||n&&n.pointerType==="touch"?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys())return!0;const n=this.selectedKeys();if(t.size!==n.size)return!1;for(const i of t)if(!n.has(i))return!1;for(const i of n)if(!t.has(i))return!1;return!0}canSelectItem(t){if(this.state.selectionMode()==="none")return!1;const n=this.collection().getItem(t);return n!=null&&!n.disabled}isDisabled(t){const n=this.collection().getItem(t);return!n||n.disabled}getAllSelectableKeys(){const t=[];return(i=>{for(;i!=null;){if(this.canSelectItem(i)){const r=this.collection().getItem(i);if(!r)continue;r.type==="item"&&t.push(i)}i=this.collection().getKeyAfter(i)}})(this.collection().getFirstKey()),t}}/*!
186
186
  * Portions of this file are based on code from react-spectrum.
187
187
  * Apache License Version 2.0, Copyright 2020 Adobe.
188
188
  *
189
189
  * Credits to the React Spectrum team:
190
190
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/list/src/ListCollection.ts
191
- */class Za{keyMap=new Map;iterable;firstKey;lastKey;constructor(t){this.iterable=t;for(const r of t)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let n,i=0;for(const[r,o]of this.keyMap)n?(n.nextKey=r,o.prevKey=n.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=i++),n=o,n.nextKey=void 0;this.lastKey=n.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey}getKeyAfter(t){return this.keyMap.get(t)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}}/*!
191
+ */class qa{keyMap=new Map;iterable;firstKey;lastKey;constructor(t){this.iterable=t;for(const r of t)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let n,i=0;for(const[r,o]of this.keyMap)n?(n.nextKey=r,o.prevKey=n.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=i++),n=o,n.nextKey=void 0;this.lastKey=n.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){return this.keyMap.get(t)?.prevKey}getKeyAfter(t){return this.keyMap.get(t)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}}/*!
192
192
  * Portions of this file are based on code from react-spectrum.
193
193
  * Apache License Version 2.0, Copyright 2020 Adobe.
194
194
  *
195
195
  * Credits to the React Spectrum team:
196
196
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/list/src/useListState.ts
197
- */function qa(e){const t=Qg(e),i=dd({dataSource:()=>p(e.dataSource),getKey:()=>p(e.getKey),getTextValue:()=>p(e.getTextValue),getDisabled:()=>p(e.getDisabled),getSectionChildren:()=>p(e.getSectionChildren),factory:o=>e.filter?new Za(e.filter(o)):new Za(o)},[()=>e.filter]),r=new Wg(i,t);return ys(()=>{const o=t.focusedKey();o!=null&&!i().getItem(o)&&t.setFocusedKey(void 0)}),{collection:i,selectionManager:()=>r}}/*!
197
+ */function Xa(e){const t=Kg(e),i=hd({dataSource:()=>p(e.dataSource),getKey:()=>p(e.getKey),getTextValue:()=>p(e.getTextValue),getDisabled:()=>p(e.getDisabled),getSectionChildren:()=>p(e.getSectionChildren),factory:o=>e.filter?new qa(e.filter(o)):new qa(o)},[()=>e.filter]),r=new Xg(i,t);return ms(()=>{const o=t.focusedKey();o!=null&&!i().getItem(o)&&t.setFocusedKey(void 0)}),{collection:i,selectionManager:()=>r}}/*!
198
198
  * Portions of this file are based on code from react-spectrum.
199
199
  * Apache License Version 2.0, Copyright 2020 Adobe.
200
200
  *
201
201
  * Credits to the React Spectrum team:
202
202
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/ListKeyboardDelegate.ts
203
- */class Xa{collection;ref;collator;constructor(t,n,i){this.collection=t,this.ref=n,this.collator=i}getKeyBelow(t){let n=this.collection().getKeyAfter(t);for(;n!=null;){const i=this.collection().getItem(n);if(i&&i.type==="item"&&!i.disabled)return n;n=this.collection().getKeyAfter(n)}}getKeyAbove(t){let n=this.collection().getKeyBefore(t);for(;n!=null;){const i=this.collection().getItem(n);if(i&&i.type==="item"&&!i.disabled)return n;n=this.collection().getKeyBefore(n)}}getFirstKey(){let t=this.collection().getFirstKey();for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getLastKey(){let t=this.collection().getLastKey();for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getItem(t){return this.ref?.()?.querySelector(`[data-key="${t}"]`)??null}getKeyPageAbove(t){const n=this.ref?.();let i=this.getItem(t);if(!n||!i)return;const r=Math.max(0,i.offsetTop+i.offsetHeight-n.offsetHeight);let o=t;for(;o&&i&&i.offsetTop>r;)o=this.getKeyAbove(o),i=o!=null?this.getItem(o):null;return o}getKeyPageBelow(t){const n=this.ref?.();let i=this.getItem(t);if(!n||!i)return;const r=Math.min(n.scrollHeight,i.offsetTop-i.offsetHeight+n.offsetHeight);let o=t;for(;o&&i&&i.offsetTop<r;)o=this.getKeyBelow(o),i=o!=null?this.getItem(o):null;return o}getKeyForSearch(t,n){const i=this.collator?.();if(!i)return;let r=n!=null?this.getKeyBelow(n):this.getFirstKey();for(;r!=null;){const o=this.collection().getItem(r);if(o){const s=o.textValue.slice(0,t.length);if(o.textValue&&i.compare(s,t)===0)return r}r=this.getKeyBelow(r)}}}/*!
203
+ */class Ja{collection;ref;collator;constructor(t,n,i){this.collection=t,this.ref=n,this.collator=i}getKeyBelow(t){let n=this.collection().getKeyAfter(t);for(;n!=null;){const i=this.collection().getItem(n);if(i&&i.type==="item"&&!i.disabled)return n;n=this.collection().getKeyAfter(n)}}getKeyAbove(t){let n=this.collection().getKeyBefore(t);for(;n!=null;){const i=this.collection().getItem(n);if(i&&i.type==="item"&&!i.disabled)return n;n=this.collection().getKeyBefore(n)}}getFirstKey(){let t=this.collection().getFirstKey();for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getLastKey(){let t=this.collection().getLastKey();for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getItem(t){return this.ref?.()?.querySelector(`[data-key="${t}"]`)??null}getKeyPageAbove(t){const n=this.ref?.();let i=this.getItem(t);if(!n||!i)return;const r=Math.max(0,i.offsetTop+i.offsetHeight-n.offsetHeight);let o=t;for(;o&&i&&i.offsetTop>r;)o=this.getKeyAbove(o),i=o!=null?this.getItem(o):null;return o}getKeyPageBelow(t){const n=this.ref?.();let i=this.getItem(t);if(!n||!i)return;const r=Math.min(n.scrollHeight,i.offsetTop-i.offsetHeight+n.offsetHeight);let o=t;for(;o&&i&&i.offsetTop<r;)o=this.getKeyBelow(o),i=o!=null?this.getItem(o):null;return o}getKeyForSearch(t,n){const i=this.collator?.();if(!i)return;let r=n!=null?this.getKeyBelow(n):this.getFirstKey();for(;r!=null;){const o=this.collection().getItem(r);if(o){const s=o.textValue.slice(0,t.length);if(o.textValue&&i.compare(s,t)===0)return r}r=this.getKeyBelow(r)}}}/*!
204
204
  * Portions of this file are based on code from react-spectrum.
205
205
  * Apache License Version 2.0, Copyright 2020 Adobe.
206
206
  *
207
207
  * Credits to the React Spectrum team:
208
208
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableList.ts
209
- */function Zg(e,t,n){const i=ja({usage:"search",sensitivity:"base"}),r=Y(()=>{const o=p(e.keyboardDelegate);return o||new Xa(e.collection,t,i)});return Kg({selectionManager:()=>p(e.selectionManager),keyboardDelegate:r,autoFocus:()=>p(e.autoFocus),deferAutoFocus:()=>p(e.deferAutoFocus),shouldFocusWrap:()=>p(e.shouldFocusWrap),disallowEmptySelection:()=>p(e.disallowEmptySelection),selectOnFocus:()=>p(e.selectOnFocus),disallowTypeAhead:()=>p(e.disallowTypeAhead),shouldUseVirtualFocus:()=>p(e.shouldUseVirtualFocus),allowsTabNavigation:()=>p(e.allowsTabNavigation),isVirtualized:()=>p(e.isVirtualized),scrollToKey:o=>p(e.scrollToKey)?.(o)},t,n)}/*!
209
+ */function Jg(e,t,n){const i=Aa({usage:"search",sensitivity:"base"}),r=Y(()=>{const o=p(e.keyboardDelegate);return o||new Ja(e.collection,t,i)});return Zg({selectionManager:()=>p(e.selectionManager),keyboardDelegate:r,autoFocus:()=>p(e.autoFocus),deferAutoFocus:()=>p(e.deferAutoFocus),shouldFocusWrap:()=>p(e.shouldFocusWrap),disallowEmptySelection:()=>p(e.disallowEmptySelection),selectOnFocus:()=>p(e.selectOnFocus),disallowTypeAhead:()=>p(e.disallowTypeAhead),shouldUseVirtualFocus:()=>p(e.shouldUseVirtualFocus),allowsTabNavigation:()=>p(e.allowsTabNavigation),isVirtualized:()=>p(e.isVirtualized),scrollToKey:o=>p(e.scrollToKey)?.(o)},t,n)}/*!
210
210
  * Portions of this file are based on code from ariakit
211
211
  * MIT Licensed, Copyright (c) Diego Haz.
212
212
  *
213
213
  * Credits to the ariakit team:
214
214
  * https://github.com/hope-ui/hope-ui/blob/54125b130195f37161dbeeea0c21dc3b198bc3ac/packages/core/src/button/is-button.ts
215
- */const qg=["button","color","file","image","reset","submit"];function Xg(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?qg.indexOf(e.type)!==-1:!1}function pi(e){let t;e=Me({type:"button"},e);const[n,i]=ae(e,["ref","type","disabled"]),r=Cd(()=>t,()=>"button"),o=Y(()=>{const c=r();return c==null?!1:Xg({tagName:c,type:n.type})}),s=Y(()=>r()==="input"),a=Y(()=>r()==="a"&&t?.getAttribute("href")!=null);return L(ve,q({as:"button",ref(c){const u=_e(l=>t=l,n.ref);typeof u=="function"&&u(c)},get type(){return o()||s()?n.type:void 0},get role(){return!o()&&!a()?"button":void 0},get tabIndex(){return!o()&&!a()&&!n.disabled?0:void 0},get disabled(){return o()||s()?n.disabled:void 0},get"aria-disabled"(){return!o()&&!s()&&n.disabled?!0:void 0},get"data-disabled"(){return n.disabled?"":void 0}},i))}const Ja=Ce();function un(){const e=ze(Ja);if(e===void 0)throw new Error("[kobalte]: `useDialogContext` must be used within a `Dialog` component");return e}function ro(e){const t=un(),[n,i]=ae(e,["aria-label","onClick"]),r=Fg(()=>Pd);return L(pi,q({get"aria-label"(){return n["aria-label"]||r().format("dismiss")},onClick:s=>{me(s,n.onClick),t.close()}},i))}const ec=Ce();function Jg(){return ze(ec)}function oo(e){let t;const n=Jg(),[i,r]=ae(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),o=new Set([]),s=g=>{o.add(g);const f=n?.registerNestedLayer(g);return()=>{o.delete(g),f?.()}};Dd({shouldExcludeElement:g=>t?i.excludedElements?.some(f=>Qe(f(),g))||[...o].some(f=>Qe(f,g)):!1,onPointerDownOutside:g=>{!t||Ue.isBelowPointerBlockingLayer(t)||!i.bypassTopMostLayerCheck&&!Ue.isTopMostLayer(t)||(i.onPointerDownOutside?.(g),i.onInteractOutside?.(g),g.defaultPrevented||i.onDismiss?.())},onFocusOutside:g=>{i.onFocusOutside?.(g),i.onInteractOutside?.(g),g.defaultPrevented||i.onDismiss?.()}},()=>t),hd({ownerDocument:()=>ke(t),onEscapeKeyDown:g=>{!t||!Ue.isTopMostLayer(t)||(i.onEscapeKeyDown?.(g),!g.defaultPrevented&&i.onDismiss&&(g.preventDefault(),i.onDismiss()))}}),Lt(()=>{if(!t)return;Ue.addLayer({node:t,isPointerBlocking:i.disableOutsidePointerEvents,dismiss:i.onDismiss});const g=n?.registerNestedLayer(t);Ue.assignPointerEventToLayers(),Ue.disableBodyPointerEvents(t),V(()=>{t&&(Ue.removeLayer(t),g?.(),Ue.assignPointerEventToLayers(),Ue.restoreBodyPointerEvents(t))})}),H(Ze([()=>t,()=>i.disableOutsidePointerEvents],([g,f])=>{if(!g)return;const h=Ue.find(g);h&&h.isPointerBlocking!==f&&(h.isPointerBlocking=f,Ue.assignPointerEventToLayers()),f&&Ue.disableBodyPointerEvents(g),V(()=>{Ue.restoreBodyPointerEvents(g)})},{defer:!0}));const l={registerNestedLayer:s};return L(ec.Provider,{value:l,get children(){return L(ve,q({as:"div",ref(g){const f=_e(h=>t=h,i.ref);typeof f=="function"&&f(g)}},r))}})}function Ii(e){let t;const n=un();e=Me({id:n.generateId("content")},e);const[i,r]=ae(e,["ref","onOpenAutoFocus","onCloseAutoFocus","onPointerDownOutside","onFocusOutside","onInteractOutside"]);let o=!1,s=!1;const a=g=>{i.onPointerDownOutside?.(g),n.modal()&&g.detail.isContextMenu&&g.preventDefault()},c=g=>{i.onFocusOutside?.(g),n.modal()&&g.preventDefault()},u=g=>{i.onInteractOutside?.(g),!n.modal()&&(g.defaultPrevented||(o=!0,g.detail.originalEvent.type==="pointerdown"&&(s=!0)),Qe(n.triggerRef(),g.target)&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&s&&g.preventDefault())},l=g=>{i.onCloseAutoFocus?.(g),n.modal()?(g.preventDefault(),Ee(n.triggerRef())):(g.defaultPrevented||(o||Ee(n.triggerRef()),g.preventDefault()),o=!1,s=!1)};return la({isDisabled:()=>!(n.isOpen()&&n.modal()),targets:()=>t?[t]:[]}),Ma({ownerRef:()=>t,isDisabled:()=>!(n.isOpen()&&(n.modal()||n.preventScroll()))}),ua({trapFocus:()=>n.isOpen()&&n.modal(),onMountAutoFocus:i.onOpenAutoFocus,onUnmountAutoFocus:l},()=>t),H(()=>V(n.registerContentId(r.id))),L(he,{get when(){return n.contentPresence.isPresent()},get children(){return L(oo,q({ref(g){const f=_e(h=>{n.contentPresence.setRef(h),t=h},i.ref);typeof f=="function"&&f(g)},role:"dialog",tabIndex:-1,get disableOutsidePointerEvents(){return Y(()=>!!n.modal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get"aria-labelledby"(){return n.titleId()},get"aria-describedby"(){return n.descriptionId()},get"data-expanded"(){return n.isOpen()?"":void 0},get"data-closed"(){return n.isOpen()?void 0:""},onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:u,get onDismiss(){return n.close}},r))}})}function eM(e){const t=un();e=Me({id:t.generateId("description")},e);const[n,i]=ae(e,["id"]);return H(()=>V(t.registerDescriptionId(n.id))),L(ve,q({as:"p",get id(){return n.id}},i))}function so(e){const t=un(),[n,i]=ae(e,["ref","style","onPointerDown"]),r=o=>{me(o,n.onPointerDown),o.target===o.currentTarget&&o.preventDefault()};return L(he,{get when(){return t.overlayPresence.isPresent()},get children(){return L(ve,q({as:"div",ref(o){const s=_e(t.overlayPresence.setRef,n.ref);typeof s=="function"&&s(o)},get style(){return{"pointer-events":"auto",...n.style}},get"data-expanded"(){return t.isOpen()?"":void 0},get"data-closed"(){return t.isOpen()?void 0:""},onPointerDown:r},i))}})}function wi(e){const t=un();return L(he,{get when(){return t.contentPresence.isPresent()||t.overlayPresence.isPresent()},get children(){return L(Lr,e)}})}function xi(e){const t=`dialog-${Zt()}`;e=Me({id:t,modal:!0,preventScroll:!1},e);const[n,i]=P(),[r,o]=P(),[s,a]=P(),[c,u]=P(),l=zr({open:()=>e.open,defaultOpen:()=>e.defaultOpen,onOpenChange:M=>e.onOpenChange?.(M)}),g=()=>e.forceMount||l.isOpen(),f=Ni(g),h=Ni(g),d={isOpen:l.isOpen,modal:()=>e.modal??!0,preventScroll:()=>e.preventScroll??!1,contentId:n,titleId:r,descriptionId:s,triggerRef:c,overlayPresence:f,contentPresence:h,close:l.close,toggle:l.toggle,setTriggerRef:u,generateId:on(()=>e.id),registerContentId:Ye(i),registerTitleId:Ye(o),registerDescriptionId:Ye(a)};return L(Ja.Provider,{value:d,get children(){return e.children}})}function tM(e){const t=un();e=Me({id:t.generateId("title")},e);const[n,i]=ae(e,["id"]);return H(()=>V(t.registerTitleId(n.id))),L(ve,q({as:"h2",get id(){return n.id}},i))}function nM(e){return L(Ii,q({role:"alertdialog"},e))}const tc=Ce();function nc(){const e=ze(tc);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}const iM=ne('<svg display=block viewBox="0 0 30 30"><g><path fill=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z></path><path stroke=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z>'),ao=30,ic=ao/2,rM={top:180,right:-90,bottom:0,left:90};function oM(e){const t=nc();e=Me({size:ao},e);const[n,i]=ae(e,["ref","style","children","size"]),r=()=>t.currentPlacement().split("-")[0],o=sM(t.contentRef),s=()=>o()?.getPropertyValue("background-color")||"none",a=()=>o()?.getPropertyValue(`border-${r()}-color`)||"none",c=()=>o()?.getPropertyValue(`border-${r()}-width`)||"0px",u=()=>parseInt(c())*2*(ao/n.size),l=()=>`rotate(${rM[r()]} ${ic} ${ic})`;return L(ve,q({as:"div",ref(g){const f=_e(t.setArrowRef,n.ref);typeof f=="function"&&f(g)},"aria-hidden":"true",get style(){return{position:"absolute","font-size":`${n.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:s(),stroke:a(),"stroke-width":u(),...n.style}}},i,{get children(){const g=iM(),f=g.firstChild;return f.firstChild.nextSibling,Be(()=>At(f,"transform",l())),g}}))}function sM(e){const[t,n]=P();return H(()=>{const i=e();i&&n(Dr(i).getComputedStyle(i))}),t}function rc(e){const t=nc(),[n,i]=ae(e,["ref","style"]);return L(ve,q({as:"div",ref(r){const o=_e(t.setPositionerRef,n.ref);typeof o=="function"&&o(r)},"data-popper-positioner":"",get style(){return{position:"absolute",top:0,left:0,"min-width":"max-content",...n.style}}},i))}const aM=["top","right","bottom","left"],St=Math.min,Pe=Math.max,Di=Math.round,bi=Math.floor,pt=e=>({x:e,y:e}),cM={left:"right",right:"left",bottom:"top",top:"bottom"},uM={start:"end",end:"start"};function co(e,t,n){return Pe(e,St(t,n))}function Yt(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function ln(e){return e.split("-")[1]}function oc(e){return e==="x"?"y":"x"}function uo(e){return e==="y"?"height":"width"}function _n(e){return["top","bottom"].includes(It(e))?"y":"x"}function lo(e){return oc(_n(e))}function lM(e,t,n){n===void 0&&(n=!1);const i=ln(e),r=lo(e),o=uo(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=vi(s)),[s,vi(s)]}function fM(e){const t=vi(e);return[fo(e),t,fo(t)]}function fo(e){return e.replace(/start|end/g,t=>uM[t])}function dM(e,t,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?o:s;default:return[]}}function gM(e,t,n,i){const r=ln(e);let o=dM(It(e),n==="start",i);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(fo)))),o}function vi(e){return e.replace(/left|right|bottom|top/g,t=>cM[t])}function MM(e){return{top:0,right:0,bottom:0,left:0,...e}}function sc(e){return typeof e!="number"?MM(e):{top:e,right:e,bottom:e,left:e}}function Oi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ac(e,t,n){let{reference:i,floating:r}=e;const o=_n(t),s=lo(t),a=uo(s),c=It(t),u=o==="y",l=i.x+i.width/2-r.width/2,g=i.y+i.height/2-r.height/2,f=i[a]/2-r[a]/2;let h;switch(c){case"top":h={x:l,y:i.y-r.height};break;case"bottom":h={x:l,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:g};break;case"left":h={x:i.x-r.width,y:g};break;default:h={x:i.x,y:i.y}}switch(ln(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const hM=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:l,y:g}=ac(u,i,c),f=i,h={},d=0;for(let M=0;M<a.length;M++){const{name:y,fn:m}=a[M],{x:T,y:N,data:j,reset:A}=await m({x:l,y:g,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});if(l=T??l,g=N??g,h={...h,[y]:{...h[y],...j}},A&&d<=50){d++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):A.rects),{x:l,y:g}=ac(u,f,c)),M=-1;continue}}return{x:l,y:g,placement:f,strategy:r,middlewareData:h}};async function kn(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:g="floating",altBoundary:f=!1,padding:h=0}=Yt(t,e),d=sc(h),y=a[f?g==="floating"?"reference":"floating":g],m=Oi(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),T=g==="floating"?{...s.floating,x:i,y:r}:s.reference,N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),j=await(o.isElement==null?void 0:o.isElement(N))?await(o.getScale==null?void 0:o.getScale(N))||{x:1,y:1}:{x:1,y:1},A=Oi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:N,strategy:c}):T);return{top:(m.top-A.top+d.top)/j.y,bottom:(A.bottom-m.bottom+d.bottom)/j.y,left:(m.left-A.left+d.left)/j.x,right:(A.right-m.right+d.right)/j.x}}const yM=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:l=0}=Yt(e,t)||{};if(u==null)return{};const g=sc(l),f={x:n,y:i},h=lo(r),d=uo(h),M=await s.getDimensions(u),y=h==="y",m=y?"top":"left",T=y?"bottom":"right",N=y?"clientHeight":"clientWidth",j=o.reference[d]+o.reference[h]-f[h]-o.floating[d],A=f[h]-o.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=E?E[N]:0;(!S||!await(s.isElement==null?void 0:s.isElement(E)))&&(S=a.floating[N]||o.floating[d]);const I=j/2-A/2,z=S/2-M[d]/2-1,C=St(g[m],z),R=St(g[T],z),F=C,x=S-M[d]-R,D=S/2-M[d]/2+I,b=co(F,D,x),w=!c.arrow&&ln(r)!=null&&D!=b&&o.reference[d]/2-(D<F?C:R)-M[d]/2<0,v=w?D<F?D-F:D-x:0;return{[h]:f[h]+v,data:{[h]:b,centerOffset:D-b-v,...w&&{alignmentOffset:v}},reset:w}}}),mM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:M=!0,...y}=Yt(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const m=It(r),T=It(a)===a,N=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=f||(T||!M?[vi(a)]:fM(a));!f&&d!=="none"&&j.push(...gM(a,M,d,N));const A=[a,...j],E=await kn(t,y),S=[];let I=((i=o.flip)==null?void 0:i.overflows)||[];if(l&&S.push(E[m]),g){const F=lM(r,s,N);S.push(E[F[0]],E[F[1]])}if(I=[...I,{placement:r,overflows:S}],!S.every(F=>F<=0)){var z,C;const F=(((z=o.flip)==null?void 0:z.index)||0)+1,x=A[F];if(x)return{data:{index:F,overflows:I},reset:{placement:x}};let D=(C=I.filter(b=>b.overflows[0]<=0).sort((b,w)=>b.overflows[1]-w.overflows[1])[0])==null?void 0:C.placement;if(!D)switch(h){case"bestFit":{var R;const b=(R=I.map(w=>[w.placement,w.overflows.filter(v=>v>0).reduce((v,O)=>v+O,0)]).sort((w,v)=>w[1]-v[1])[0])==null?void 0:R[0];b&&(D=b);break}case"initialPlacement":D=a;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function cc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uc(e){return aM.some(t=>e[t]>=0)}const NM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=Yt(e,t);switch(i){case"referenceHidden":{const o=await kn(t,{...r,elementContext:"reference"}),s=cc(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:uc(s)}}}case"escaped":{const o=await kn(t,{...r,altBoundary:!0}),s=cc(o,n.floating);return{data:{escapedOffsets:s,escaped:uc(s)}}}default:return{}}}}};async function TM(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=It(n),a=ln(n),c=_n(n)==="y",u=["left","top"].includes(s)?-1:1,l=o&&c?-1:1,g=Yt(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:d}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return a&&typeof d=="number"&&(h=a==="end"?d*-1:d),c?{x:h*l,y:f*u}:{x:f*u,y:h*l}}const LM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,r=await TM(t,e);return{x:n+r.x,y:i+r.y,data:r}}}},jM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:T}=y;return{x:m,y:T}}},...c}=Yt(e,t),u={x:n,y:i},l=await kn(t,c),g=_n(It(r)),f=oc(g);let h=u[f],d=u[g];if(o){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",T=h+l[y],N=h-l[m];h=co(T,h,N)}if(s){const y=g==="y"?"top":"left",m=g==="y"?"bottom":"right",T=d+l[y],N=d-l[m];d=co(T,d,N)}const M=a.fn({...t,[f]:h,[g]:d});return{...M,data:{x:M.x-n,y:M.y-i}}}}},AM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:r,elements:o}=t,{apply:s=()=>{},...a}=Yt(e,t),c=await kn(t,a),u=It(n),l=ln(n),g=_n(n)==="y",{width:f,height:h}=i.floating;let d,M;u==="top"||u==="bottom"?(d=u,M=l===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(M=u,d=l==="end"?"top":"bottom");const y=h-c[d],m=f-c[M],T=!t.middlewareData.shift;let N=y,j=m;if(g){const E=f-c.left-c.right;j=l||T?St(m,E):E}else{const E=h-c.top-c.bottom;N=l||T?St(y,E):E}if(T&&!l){const E=Pe(c.left,0),S=Pe(c.right,0),I=Pe(c.top,0),z=Pe(c.bottom,0);g?j=f-2*(E!==0||S!==0?E+S:Pe(c.left,c.right)):N=h-2*(I!==0||z!==0?I+z:Pe(c.top,c.bottom))}await s({...t,availableWidth:j,availableHeight:N});const A=await r.getDimensions(o.floating);return f!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function wt(e){return lc(e)?(e.nodeName||"").toLowerCase():"#document"}function Re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mt(e){var t;return(t=(lc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lc(e){return e instanceof Node||e instanceof Re(e).Node}function ht(e){return e instanceof Element||e instanceof Re(e).Element}function ot(e){return e instanceof HTMLElement||e instanceof Re(e).HTMLElement}function fc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Re(e).ShadowRoot}function Un(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function EM(e){return["table","td","th"].includes(wt(e))}function go(e){const t=Mo(),n=$e(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(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function SM(e){let t=fn(e);for(;ot(t)&&!Ci(t);){if(go(t))return t;t=fn(t)}return null}function Mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ci(e){return["html","body","#document"].includes(wt(e))}function $e(e){return Re(e).getComputedStyle(e)}function zi(e){return ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fn(e){if(wt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fc(e)&&e.host||Mt(e);return fc(t)?t.host:t}function dc(e){const t=fn(e);return Ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:ot(t)&&Un(t)?t:dc(t)}function Yn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=dc(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=Re(r);return o?t.concat(s,s.visualViewport||[],Un(r)?r:[],s.frameElement&&n?Yn(s.frameElement):[]):t.concat(r,Yn(r,[],n))}function gc(e){const t=$e(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=ot(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,a=Di(n)!==o||Di(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function ho(e){return ht(e)?e:e.contextElement}function dn(e){const t=ho(e);if(!ot(t))return pt(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=gc(t);let s=(o?Di(n.width):n.width)/i,a=(o?Di(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const pM=pt(0);function Mc(e){const t=Re(e);return!Mo()||!t.visualViewport?pM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function IM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Re(e)?!1:t}function Pt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=ho(e);let s=pt(1);t&&(i?ht(i)&&(s=dn(i)):s=dn(e));const a=IM(o,n,i)?Mc(o):pt(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,l=r.width/s.x,g=r.height/s.y;if(o){const f=Re(o),h=i&&ht(i)?Re(i):i;let d=f.frameElement;for(;d&&i&&h!==f;){const M=dn(d),y=d.getBoundingClientRect(),m=$e(d),T=y.left+(d.clientLeft+parseFloat(m.paddingLeft))*M.x,N=y.top+(d.clientTop+parseFloat(m.paddingTop))*M.y;c*=M.x,u*=M.y,l*=M.x,g*=M.y,c+=T,u+=N,d=Re(d).frameElement}}return Oi({width:l,height:g,x:c,y:u})}function wM(e){let{rect:t,offsetParent:n,strategy:i}=e;const r=ot(n),o=Mt(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0},a=pt(1);const c=pt(0);if((r||!r&&i!=="fixed")&&((wt(n)!=="body"||Un(o))&&(s=zi(n)),ot(n))){const u=Pt(n);a=dn(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function xM(e){return Array.from(e.getClientRects())}function hc(e){return Pt(Mt(e)).left+zi(e).scrollLeft}function DM(e){const t=Mt(e),n=zi(e),i=e.ownerDocument.body,r=Pe(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Pe(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+hc(e);const a=-n.scrollTop;return $e(i).direction==="rtl"&&(s+=Pe(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}function bM(e,t){const n=Re(e),i=Mt(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,c=0;if(r){o=r.width,s=r.height;const u=Mo();(!u||u&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:o,height:s,x:a,y:c}}function vM(e,t){const n=Pt(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=ot(e)?dn(e):pt(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,c=r*o.x,u=i*o.y;return{width:s,height:a,x:c,y:u}}function yc(e,t,n){let i;if(t==="viewport")i=bM(e,n);else if(t==="document")i=DM(Mt(e));else if(ht(t))i=vM(t,n);else{const r=Mc(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return Oi(i)}function mc(e,t){const n=fn(e);return n===t||!ht(n)||Ci(n)?!1:$e(n).position==="fixed"||mc(n,t)}function OM(e,t){const n=t.get(e);if(n)return n;let i=Yn(e,[],!1).filter(a=>ht(a)&&wt(a)!=="body"),r=null;const o=$e(e).position==="fixed";let s=o?fn(e):e;for(;ht(s)&&!Ci(s);){const a=$e(s),c=go(s);!c&&a.position==="fixed"&&(r=null),(o?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Un(s)&&!c&&mc(e,s))?i=i.filter(l=>l!==s):r=a,s=fn(s)}return t.set(e,i),i}function CM(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?OM(t,this._c):[].concat(n),i],a=s[0],c=s.reduce((u,l)=>{const g=yc(t,l,r);return u.top=Pe(g.top,u.top),u.right=St(g.right,u.right),u.bottom=St(g.bottom,u.bottom),u.left=Pe(g.left,u.left),u},yc(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zM(e){return gc(e)}function _M(e,t,n){const i=ot(t),r=Mt(t),o=n==="fixed",s=Pt(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=pt(0);if(i||!i&&!o)if((wt(t)!=="body"||Un(r))&&(a=zi(t)),i){const u=Pt(t,!0,o,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else r&&(c.x=hc(r));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Nc(e,t){return!ot(e)||$e(e).position==="fixed"?null:t?t(e):e.offsetParent}function Tc(e,t){const n=Re(e);if(!ot(e))return n;let i=Nc(e,t);for(;i&&EM(i)&&$e(i).position==="static";)i=Nc(i,t);return i&&(wt(i)==="html"||wt(i)==="body"&&$e(i).position==="static"&&!go(i))?n:i||SM(e)||n}const kM=async function(e){let{reference:t,floating:n,strategy:i}=e;const r=this.getOffsetParent||Tc,o=this.getDimensions;return{reference:_M(t,await r(n),i),floating:{x:0,y:0,...await o(n)}}};function UM(e){return $e(e).direction==="rtl"}const Lc={convertOffsetParentRelativeRectToViewportRelativeRect:wM,getDocumentElement:Mt,getClippingRect:CM,getOffsetParent:Tc,getElementRects:kM,getClientRects:xM,getDimensions:zM,getScale:dn,isElement:ht,isRTL:UM};function YM(e,t){let n=null,i;const r=Mt(e);function o(){clearTimeout(i),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const{left:u,top:l,width:g,height:f}=e.getBoundingClientRect();if(a||t(),!g||!f)return;const h=bi(l),d=bi(r.clientWidth-(u+g)),M=bi(r.clientHeight-(l+f)),y=bi(u),T={rootMargin:-h+"px "+-d+"px "+-M+"px "+-y+"px",threshold:Pe(0,St(1,c))||1};let N=!0;function j(A){const E=A[0].intersectionRatio;if(E!==c){if(!N)return s();E?s(!1,E):i=setTimeout(()=>{s(!1,1e-7)},100)}N=!1}try{n=new IntersectionObserver(j,{...T,root:r.ownerDocument})}catch{n=new IntersectionObserver(j,T)}n.observe(e)}return s(!0),o}function PM(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,u=ho(e),l=r||o?[...u?Yn(u):[],...Yn(t)]:[];l.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const g=u&&a?YM(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[T]=m;T&&T.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let d,M=c?Pt(e):null;c&&y();function y(){const m=Pt(e);M&&(m.x!==M.x||m.y!==M.y||m.width!==M.width||m.height!==M.height)&&n(),M=m,d=requestAnimationFrame(y)}return n(),()=>{l.forEach(m=>{r&&m.removeEventListener("scroll",n),o&&m.removeEventListener("resize",n)}),g&&g(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(d)}}const RM=(e,t,n)=>{const i=new Map,r={platform:Lc,...n},o={...r.platform,_c:i};return hM(e,t,{...r,platform:o})};function jc(e){const{x:t=0,y:n=0,width:i=0,height:r=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,i,r);const o={x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:n+r,left:t};return{...o,toJSON:()=>o}}function FM(e,t){return{contextElement:e,getBoundingClientRect:()=>{const i=t(e);return i?jc(i):e?e.getBoundingClientRect():jc()}}}function BM(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}const HM={top:"bottom",right:"left",bottom:"top",left:"right"};function QM(e,t){const[n,i]=e.split("-"),r=HM[n];return i?n==="left"||n==="right"?`${r} ${i==="start"?"top":"bottom"}`:i==="start"?`${r} ${t==="rtl"?"right":"left"}`:`${r} ${t==="rtl"?"left":"right"}`:`${r} center`}function Ac(e){e=Me({getAnchorRect:g=>g?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e);const[t,n]=P(),[i,r]=P(),[o,s]=P(e.placement),a=()=>FM(e.anchorRef(),e.getAnchorRect),{direction:c}=Li();async function u(){const g=a(),f=t(),h=i();if(!g||!f)return;const d=(h?.clientHeight||0)/2,M=typeof e.gutter=="number"?e.gutter+d:e.gutter??d;f.style.setProperty("--kb-popper-content-overflow-padding",`${e.overflowPadding}px`),g.getBoundingClientRect();const y=[LM(({placement:A})=>{const E=!!A.split("-")[1];return{mainAxis:M,crossAxis:E?void 0:e.shift,alignmentAxis:e.shift}})];if(e.flip!==!1){const A=typeof e.flip=="string"?e.flip.split(" "):void 0;if(A!==void 0&&!A.every(BM))throw new Error("`flip` expects a spaced-delimited list of placements");y.push(mM({padding:e.overflowPadding,fallbackPlacements:A}))}(e.slide||e.overlap)&&y.push(jM({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding})),y.push(AM({padding:e.overflowPadding,apply({availableWidth:A,availableHeight:E,rects:S}){const I=Math.round(S.reference.width);A=Math.floor(A),E=Math.floor(E),f.style.setProperty("--kb-popper-anchor-width",`${I}px`),f.style.setProperty("--kb-popper-content-available-width",`${A}px`),f.style.setProperty("--kb-popper-content-available-height",`${E}px`),e.sameWidth&&(f.style.width=`${I}px`),e.fitViewport&&(f.style.maxWidth=`${A}px`,f.style.maxHeight=`${E}px`)}})),e.hideWhenDetached&&y.push(NM({padding:e.detachedPadding})),h&&y.push(yM({element:h,padding:e.arrowPadding}));const m=await RM(g,f,{placement:e.placement,strategy:"absolute",middleware:y,platform:{...Lc,isRTL:()=>c()==="rtl"}});if(s(m.placement),e.onCurrentPlacementChange?.(m.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",QM(m.placement,c()));const T=Math.round(m.x),N=Math.round(m.y);let j;if(e.hideWhenDetached&&(j=m.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${T}px, ${N}px, 0)`,visibility:j}),h&&m.middlewareData.arrow){const{x:A,y:E}=m.middlewareData.arrow,S=m.placement.split("-")[0];Object.assign(h.style,{left:A!=null?`${A}px`:"",top:E!=null?`${E}px`:"",[S]:"100%"})}}H(()=>{const g=a(),f=t();if(!g||!f)return;const h=PM(g,f,u,{elementResize:typeof ResizeObserver=="function"});V(h)}),H(()=>{const g=t(),f=e.contentRef();!g||!f||queueMicrotask(()=>{g.style.zIndex=getComputedStyle(f).zIndex})});const l={currentPlacement:o,contentRef:()=>e.contentRef(),setPositionerRef:n,setArrowRef:r};return L(tc.Provider,{value:l,get children(){return e.children}})}const Ec=Ce();function GM(){const e=ze(Ec);if(e===void 0)throw new Error("[kobalte]: `useListboxContext` must be used within a `Listbox` component");return e}const Sc=Ce();function pc(){const e=ze(Sc);if(e===void 0)throw new Error("[kobalte]: `useListboxItemContext` must be used within a `Listbox.Item` component");return e}function VM(e){let t;const n=GM(),i=`${n.generateId("item")}-${Zt()}`;e=Me({id:i},e);const[r,o]=ae(e,["ref","item","aria-label","aria-labelledby","aria-describedby","onPointerMove","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[s,a]=P(),[c,u]=P(),l=()=>n.listState().selectionManager(),g=()=>l().focusedKey()===r.item.key,f=$g({key:()=>r.item.key,selectionManager:l,shouldSelectOnPressUp:n.shouldSelectOnPressUp,allowsDifferentPressOrigin:()=>n.shouldSelectOnPressUp()&&n.shouldFocusOnHover(),shouldUseVirtualFocus:n.shouldUseVirtualFocus,disabled:()=>r.item.disabled},()=>t),h=()=>{if(l().selectionMode()!=="none")return f.isSelected()},d=Y(()=>!(bn()&&Wf())),M=()=>d()?r["aria-label"]:void 0,y=()=>d()?s():void 0,m=()=>d()?c():void 0,T=()=>{if(!n.isVirtualized())return;const S=n.listState().collection().getItem(r.item.key)?.index;return S!=null?S+1:void 0},N=()=>{if(n.isVirtualized())return gd(n.listState().collection())},j=S=>{me(S,r.onPointerMove),S.pointerType==="mouse"&&!f.isDisabled()&&n.shouldFocusOnHover()&&(Ee(S.currentTarget),l().setFocused(!0),l().setFocusedKey(r.item.key))},A=Y(()=>({"data-disabled":f.isDisabled()?"":void 0,"data-selected":f.isSelected()?"":void 0,"data-highlighted":g()?"":void 0})),E={isSelected:f.isSelected,dataset:A,generateId:on(()=>o.id),registerLabelId:Ye(a),registerDescriptionId:Ye(u)};return L(Sc.Provider,{value:E,get children(){return L(ve,q({as:"li",ref(S){const I=_e(z=>t=z,r.ref);typeof I=="function"&&I(S)},role:"option",get tabIndex(){return f.tabIndex()},get"aria-disabled"(){return f.isDisabled()},get"aria-selected"(){return h()},get"aria-label"(){return M()},get"aria-labelledby"(){return y()},get"aria-describedby"(){return m()},get"aria-posinset"(){return T()},get"aria-setsize"(){return N()},get"data-key"(){return f.dataKey()},get onPointerDown(){return Ge([r.onPointerDown,f.onPointerDown])},get onPointerUp(){return Ge([r.onPointerUp,f.onPointerUp])},get onClick(){return Ge([r.onClick,f.onClick])},get onKeyDown(){return Ge([r.onKeyDown,f.onKeyDown])},get onMouseDown(){return Ge([r.onMouseDown,f.onMouseDown])},get onFocus(){return Ge([r.onFocus,f.onFocus])},onPointerMove:j},A,o))}})}function KM(e){const t=pc();e=Me({id:t.generateId("indicator")},e);const[n,i]=ae(e,["forceMount"]);return L(he,{get when(){return n.forceMount||t.isSelected()},get children(){return L(ve,q({as:"div","aria-hidden":"true"},()=>t.dataset(),i))}})}function $M(e){const t=pc();e=Me({id:t.generateId("label")},e);const[n,i]=ae(e,["id"]);return H(()=>V(t.registerLabelId(n.id))),L(ve,q({as:"div",get id(){return n.id}},()=>t.dataset(),i))}function WM(e){let t;const n=`listbox-${Zt()}`;e=Me({id:n,selectionMode:"single",virtualized:!1},e);const[i,r]=ae(e,["ref","children","renderItem","renderSection","value","defaultValue","onChange","options","optionValue","optionTextValue","optionDisabled","optionGroupChildren","state","keyboardDelegate","autoFocus","selectionMode","shouldFocusWrap","shouldUseVirtualFocus","shouldSelectOnPressUp","shouldFocusOnHover","allowDuplicateSelectionEvents","disallowEmptySelection","selectionBehavior","selectOnFocus","disallowTypeAhead","allowsTabNavigation","virtualized","scrollToItem","scrollRef","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),o=Y(()=>i.state?i.state:qa({selectedKeys:()=>i.value,defaultSelectedKeys:()=>i.defaultValue,onSelectionChange:i.onChange,allowDuplicateSelectionEvents:()=>p(i.allowDuplicateSelectionEvents),disallowEmptySelection:()=>p(i.disallowEmptySelection),selectionBehavior:()=>p(i.selectionBehavior),selectionMode:()=>p(i.selectionMode),dataSource:()=>i.options??[],getKey:()=>i.optionValue,getTextValue:()=>i.optionTextValue,getDisabled:()=>i.optionDisabled,getSectionChildren:()=>i.optionGroupChildren})),s=Zg({selectionManager:()=>o().selectionManager(),collection:()=>o().collection(),autoFocus:()=>p(i.autoFocus),shouldFocusWrap:()=>p(i.shouldFocusWrap),keyboardDelegate:()=>i.keyboardDelegate,disallowEmptySelection:()=>p(i.disallowEmptySelection),selectOnFocus:()=>p(i.selectOnFocus),disallowTypeAhead:()=>p(i.disallowTypeAhead),shouldUseVirtualFocus:()=>p(i.shouldUseVirtualFocus),allowsTabNavigation:()=>p(i.allowsTabNavigation),isVirtualized:()=>i.virtualized,scrollToKey:()=>i.scrollToItem},()=>t,()=>i.scrollRef?.()),a={listState:o,generateId:on(()=>r.id),shouldUseVirtualFocus:()=>e.shouldUseVirtualFocus,shouldSelectOnPressUp:()=>e.shouldSelectOnPressUp,shouldFocusOnHover:()=>e.shouldFocusOnHover,isVirtualized:()=>i.virtualized};return L(Ec.Provider,{value:a,get children(){return L(ve,q({as:"ul",ref(c){const u=_e(l=>t=l,i.ref);typeof u=="function"&&u(c)},role:"listbox",get tabIndex(){return s.tabIndex()},get"aria-multiselectable"(){return o().selectionManager().selectionMode()==="multiple"?!0:void 0},get onKeyDown(){return Ge([i.onKeyDown,s.onKeyDown])},get onMouseDown(){return Ge([i.onMouseDown,s.onMouseDown])},get onFocusIn(){return Ge([i.onFocusIn,s.onFocusIn])},get onFocusOut(){return Ge([i.onFocusOut,s.onFocusOut])}},r,{get children(){return L(he,{get when(){return!i.virtualized},get fallback(){return i.children?.(o().collection)},get children(){return L(Yf,{get each(){return[...o().collection()]},by:"key",children:c=>L(Nr,{get children(){return[L(rt,{get when(){return c().type==="section"},get children(){return i.renderSection?.(c())}}),L(rt,{get when(){return c().type==="item"},get children(){return i.renderItem?.(c())}})]}})})}})}}))}})}const Ic=Ce();function gn(){const e=ze(Ic);if(e===void 0)throw new Error("[kobalte]: `useSelectContext` must be used within a `Select` component");return e}function ZM(e){let t;const n=gn(),[i,r]=ae(e,["ref","id","style","onCloseAutoFocus","onFocusOutside"]),o=a=>{n.close()},s=a=>{i.onFocusOutside?.(a),n.isOpen()&&n.isModal()&&a.preventDefault()};return la({isDisabled:()=>!(n.isOpen()&&n.isModal()),targets:()=>t?[t]:[]}),Ma({ownerRef:()=>t,isDisabled:()=>!(n.isOpen()&&(n.isModal()||n.preventScroll()))}),ua({trapFocus:()=>n.isOpen()&&n.isModal(),onMountAutoFocus:a=>{a.preventDefault()},onUnmountAutoFocus:a=>{i.onCloseAutoFocus?.(a),a.defaultPrevented||(Ee(n.triggerRef()),a.preventDefault())}},()=>t),L(he,{get when(){return n.contentPresence.isPresent()},get children(){return L(rc,{get children(){return L(oo,q({ref(a){const c=_e(u=>{n.setContentRef(u),n.contentPresence.setRef(u),t=u},i.ref);typeof c=="function"&&c(a)},get disableOutsidePointerEvents(){return Y(()=>!!n.isModal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get style(){return{"--kb-select-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative",...i.style}},onEscapeKeyDown:o,onFocusOutside:s,get onDismiss(){return n.close}},()=>n.dataset(),r))}})}})}function qM(e){const t=gn();return e=Me({children:"▼"},e),L(ve,q({as:"span","aria-hidden":"true"},()=>t.dataset(),e))}function XM(e){const t=gn();e=Me({id:t.generateId("listbox")},e);const[n,i]=ae(e,["ref","id","onKeyDown"]);return H(()=>V(t.registerListboxId(n.id))),L(WM,q({ref(o){const s=_e(t.setListboxRef,n.ref);typeof s=="function"&&s(o)},get id(){return n.id},get state(){return t.listState()},get virtualized(){return t.isVirtualized()},get autoFocus(){return t.autoFocus()},shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,get shouldFocusWrap(){return t.shouldFocusWrap()},get disallowTypeAhead(){return t.disallowTypeAhead()},get"aria-labelledby"(){return t.listboxAriaLabelledBy()},get renderItem(){return t.renderItem},get renderSection(){return t.renderSection},onKeyDown:o=>{me(o,n.onKeyDown),o.key==="Escape"&&o.preventDefault()}},i))}function JM(e){const t=gn();return L(he,{get when(){return t.contentPresence.isPresent()},get children(){return L(Lr,e)}})}function eh(e){const t=`select-${Zt()}`;e=Me({id:t,selectionMode:"single",disallowEmptySelection:!1,allowDuplicateSelectionEvents:!0,gutter:8,sameWidth:!0,modal:!1,preventScroll:!1},e);const[n,i,r,o]=ae(e,["itemComponent","sectionComponent","open","defaultOpen","onOpenChange","value","defaultValue","onChange","placeholder","options","optionValue","optionTextValue","optionDisabled","optionGroupChildren","keyboardDelegate","allowDuplicateSelectionEvents","disallowEmptySelection","disallowTypeAhead","shouldFocusWrap","selectionBehavior","selectionMode","virtualized","modal","preventScroll","forceMount"],["getAnchorRect","placement","gutter","shift","flip","slide","overlap","sameWidth","fitViewport","hideWhenDetached","detachedPadding","arrowPadding","overflowPadding"],zd),[s,a]=P(),[c,u]=P(),[l,g]=P(),[f,h]=P(),[d,M]=P(),[y,m]=P(),[T,N]=P(),[j,A]=P(!0),E=U=>{const de=n.optionValue;return de==null?String(U):String(xr(de)?de(U):U[de])},S=Y(()=>{const U=n.optionGroupChildren;return U==null?n.options:n.options.flatMap(de=>de[U]??de)}),I=Y(()=>S().map(U=>E(U))),z=U=>[...U].map(de=>S().find(fe=>E(fe)===de)).filter(de=>de!=null),C=zr({open:()=>n.open,defaultOpen:()=>n.defaultOpen,onOpenChange:U=>n.onOpenChange?.(U)}),R=qa({selectedKeys:()=>n.value!=null?n.value.map(E):n.value,defaultSelectedKeys:()=>n.defaultValue!=null?n.defaultValue.map(E):n.defaultValue,onSelectionChange:U=>{n.onChange?.(z(U)),n.selectionMode==="single"&&v()},allowDuplicateSelectionEvents:()=>p(n.allowDuplicateSelectionEvents),disallowEmptySelection:()=>p(n.disallowEmptySelection),selectionBehavior:()=>p(n.selectionBehavior),selectionMode:()=>n.selectionMode,dataSource:()=>n.options??[],getKey:()=>n.optionValue,getTextValue:()=>n.optionTextValue,getDisabled:()=>n.optionDisabled,getSectionChildren:()=>n.optionGroupChildren}),F=Y(()=>z(R.selectionManager().selectedKeys())),x=U=>{R.selectionManager().toggleSelection(E(U))},D=Ni(()=>n.forceMount||C.isOpen()),b=()=>{const U=y();U&&Ee(U)},w=U=>{if(n.options.length<=0)return;A(U),C.open();let de=R.selectionManager().firstSelectedKey();de==null&&(U==="first"?de=R.collection().getFirstKey():U==="last"&&(de=R.collection().getLastKey())),b(),R.selectionManager().setFocused(!0),R.selectionManager().setFocusedKey(de)},v=()=>{C.close(),R.selectionManager().setFocused(!1),R.selectionManager().setFocusedKey(void 0)},O=U=>{C.isOpen()?v():w(U)},{formControlContext:_}=_d(r);Sd(f,()=>{const U=n.defaultValue?[...n.defaultValue].map(E):new Ke;R.selectionManager().setSelectedKeys(U)});const $=ja({usage:"search",sensitivity:"base"}),X=Y(()=>{const U=p(n.keyboardDelegate);return U||new Xa(R.collection,void 0,$)}),se=U=>n.itemComponent?.({item:U}),Se=U=>n.sectionComponent?.({section:U});H(Ze([I],([U])=>{const fe=[...R.selectionManager().selectedKeys()].filter(Bt=>U.includes(Bt));R.selectionManager().setSelectedKeys(fe)},{defer:!0}));const at=Y(()=>({"data-expanded":C.isOpen()?"":void 0,"data-closed":C.isOpen()?void 0:""})),Je={dataset:at,isOpen:C.isOpen,isDisabled:()=>_.isDisabled()??!1,isMultiple:()=>p(n.selectionMode)==="multiple",isVirtualized:()=>n.virtualized??!1,isModal:()=>n.modal??!1,preventScroll:()=>n.preventScroll??!1,disallowTypeAhead:()=>n.disallowTypeAhead??!1,shouldFocusWrap:()=>n.shouldFocusWrap??!1,selectedOptions:F,contentPresence:D,autoFocus:j,triggerRef:f,listState:()=>R,keyboardDelegate:X,triggerId:s,valueId:c,listboxId:l,listboxAriaLabelledBy:T,setListboxAriaLabelledBy:N,setTriggerRef:h,setContentRef:M,setListboxRef:m,open:w,close:v,toggle:O,placeholder:()=>n.placeholder,renderItem:se,renderSection:Se,removeOptionFromSelection:x,generateId:on(()=>p(r.id)),registerTriggerId:Ye(a),registerValueId:Ye(u),registerListboxId:Ye(g)};return L(ya.Provider,{value:_,get children(){return L(Ic.Provider,{value:Je,get children(){return L(Ac,q({anchorRef:f,contentRef:d},i,{get children(){return L(ve,q({as:"div",role:"group",get id(){return p(r.id)}},()=>_.dataset(),at,o))}}))}})}})}function th(e){const[t,n]=ae(e,["value","defaultValue","onChange","multiple"]),i=Y(()=>t.value!=null?t.multiple?t.value:[t.value]:t.value),r=Y(()=>t.defaultValue!=null?t.multiple?t.defaultValue:[t.defaultValue]:t.defaultValue);return L(eh,q({get value(){return i()},get defaultValue(){return r()},onChange:s=>{t.multiple?t.onChange?.(s):t.onChange?.(s[0]??null)},get selectionMode(){return t.multiple?"multiple":"single"}},n))}function nh(e){const t=Rr(),n=gn();e=Me({id:n.generateId("trigger")},e);const[i,r,o]=ae(e,["ref","disabled","onPointerDown","onClick","onKeyDown","onFocus","onBlur"],kd),s=()=>n.listState().selectionManager(),a=()=>n.keyboardDelegate(),c=()=>i.disabled||n.isDisabled(),{fieldProps:u}=Ud(r),{typeSelectHandlers:l}=Wa({keyboardDelegate:a,selectionManager:s,onTypeSelect:m=>s().select(m)}),g=()=>[n.listboxAriaLabelledBy(),n.valueId()].filter(Boolean).join(" ")||void 0,f=m=>{me(m,i.onPointerDown),m.currentTarget.dataset.pointerType=m.pointerType,!c()&&m.pointerType!=="touch"&&m.button===0&&(m.preventDefault(),n.toggle(!0))},h=m=>{me(m,i.onClick),!c()&&m.currentTarget.dataset.pointerType==="touch"&&n.toggle(!0)},d=m=>{if(me(m,i.onKeyDown),!c())switch(me(m,l.onKeyDown),m.key){case"Enter":case" ":case"ArrowDown":m.stopPropagation(),m.preventDefault(),n.toggle("first");break;case"ArrowUp":m.stopPropagation(),m.preventDefault(),n.toggle("last");break;case"ArrowLeft":{if(m.preventDefault(),n.isMultiple())return;const T=s().firstSelectedKey(),N=T!=null?a().getKeyAbove?.(T):a().getFirstKey?.();N!=null&&s().select(N);break}case"ArrowRight":{if(m.preventDefault(),n.isMultiple())return;const T=s().firstSelectedKey(),N=T!=null?a().getKeyBelow?.(T):a().getFirstKey?.();N!=null&&s().select(N);break}}},M=m=>{me(m,i.onFocus),!s().isFocused()&&s().setFocused(!0)},y=m=>{me(m,i.onBlur),!n.isOpen()&&s().setFocused(!1)};return H(()=>V(n.registerTriggerId(u.id()))),H(()=>{n.setListboxAriaLabelledBy([u.ariaLabelledBy(),u.ariaLabel()&&!u.ariaLabelledBy()?u.id():null].filter(Boolean).join(" ")||void 0)}),L(pi,q({ref(m){const T=_e(n.setTriggerRef,i.ref);typeof T=="function"&&T(m)},get id(){return u.id()},get disabled(){return c()},"aria-haspopup":"listbox",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return Y(()=>!!n.isOpen())()?n.listboxId():void 0},get"aria-label"(){return u.ariaLabel()},get"aria-labelledby"(){return g()},get"aria-describedby"(){return u.ariaDescribedBy()},onPointerDown:f,onClick:h,onKeyDown:d,onFocus:M,onBlur:y},()=>n.dataset(),()=>t.dataset(),o))}const ih=ne("<span>");function rh(e){const t=Rr(),n=gn();e=Me({id:n.generateId("value")},e);const[i,r]=ae(e,["id","children"]),o=()=>n.listState().selectionManager(),s=()=>{const a=o().selectedKeys();return a.size===1&&a.has("")?!0:o().isEmpty()};return H(()=>V(n.registerValueId(i.id))),(()=>{const a=ih();return be(a,q({get id(){return i.id},get"data-placeholder-shown"(){return s()?"":void 0}},()=>t.dataset(),r),!1,!0),G(a,L(he,{get when(){return!s()},get fallback(){return n.placeholder()},get children(){return L(oh,{state:{selectedOption:()=>n.selectedOptions()[0],selectedOptions:()=>n.selectedOptions(),remove:c=>n.removeOptionFromSelection(c),clear:()=>o().clearSelection()},get children(){return i.children}})}})),a})()}function oh(e){const t=ci(()=>{const n=e.children;return xr(n)?n(e.state):n});return Y(t)}const wc=Ce();function yo(){const e=ze(wc);if(e===void 0)throw new Error("[kobalte]: `useTooltipContext` must be used within a `Tooltip` component");return e}function sh(e){const t=yo();e=Me({id:t.generateId("content")},e);const[n,i]=ae(e,["ref","style"]);return H(()=>V(t.registerContentId(i.id))),L(he,{get when(){return t.contentPresence.isPresent()},get children(){return L(rc,{get children(){return L(oo,q({ref(r){const o=_e(s=>{t.setContentRef(s),t.contentPresence.setRef(s)},n.ref);typeof o=="function"&&o(r)},role:"tooltip",disableOutsidePointerEvents:!1,get style(){return{"--kb-tooltip-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative",...n.style}},onFocusOutside:r=>r.preventDefault(),onDismiss:()=>t.hideTooltip(!0)},()=>t.dataset(),i))}})}})}function ah(e){const t=yo();return L(he,{get when(){return t.contentPresence.isPresent()},get children(){return L(Lr,e)}})}/*!
215
+ */const eM=["button","color","file","image","reset","submit"];function tM(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?eM.indexOf(e.type)!==-1:!1}function pi(e){let t;e=Me({type:"button"},e);const[n,i]=ae(e,["ref","type","disabled"]),r=kd(()=>t,()=>"button"),o=Y(()=>{const c=r();return c==null?!1:tM({tagName:c,type:n.type})}),s=Y(()=>r()==="input"),a=Y(()=>r()==="a"&&t?.getAttribute("href")!=null);return L(ve,q({as:"button",ref(c){const u=_e(l=>t=l,n.ref);typeof u=="function"&&u(c)},get type(){return o()||s()?n.type:void 0},get role(){return!o()&&!a()?"button":void 0},get tabIndex(){return!o()&&!a()&&!n.disabled?0:void 0},get disabled(){return o()||s()?n.disabled:void 0},get"aria-disabled"(){return!o()&&!s()&&n.disabled?!0:void 0},get"data-disabled"(){return n.disabled?"":void 0}},i))}const ec=Ce();function un(){const e=ze(ec);if(e===void 0)throw new Error("[kobalte]: `useDialogContext` must be used within a `Dialog` component");return e}function io(e){const t=un(),[n,i]=ae(e,["aria-label","onClick"]),r=Qg(()=>Bd);return L(pi,q({get"aria-label"(){return n["aria-label"]||r().format("dismiss")},onClick:s=>{Ne(s,n.onClick),t.close()}},i))}const tc=Ce();function nM(){return ze(tc)}function ro(e){let t;const n=nM(),[i,r]=ae(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),o=new Set([]),s=g=>{o.add(g);const f=n?.registerNestedLayer(g);return()=>{o.delete(g),f?.()}};Od({shouldExcludeElement:g=>t?i.excludedElements?.some(f=>Qe(f(),g))||[...o].some(f=>Qe(f,g)):!1,onPointerDownOutside:g=>{!t||Ue.isBelowPointerBlockingLayer(t)||!i.bypassTopMostLayerCheck&&!Ue.isTopMostLayer(t)||(i.onPointerDownOutside?.(g),i.onInteractOutside?.(g),g.defaultPrevented||i.onDismiss?.())},onFocusOutside:g=>{i.onFocusOutside?.(g),i.onInteractOutside?.(g),g.defaultPrevented||i.onDismiss?.()}},()=>t),Nd({ownerDocument:()=>ke(t),onEscapeKeyDown:g=>{!t||!Ue.isTopMostLayer(t)||(i.onEscapeKeyDown?.(g),!g.defaultPrevented&&i.onDismiss&&(g.preventDefault(),i.onDismiss()))}}),Lt(()=>{if(!t)return;Ue.addLayer({node:t,isPointerBlocking:i.disableOutsidePointerEvents,dismiss:i.onDismiss});const g=n?.registerNestedLayer(t);Ue.assignPointerEventToLayers(),Ue.disableBodyPointerEvents(t),V(()=>{t&&(Ue.removeLayer(t),g?.(),Ue.assignPointerEventToLayers(),Ue.restoreBodyPointerEvents(t))})}),H(Ze([()=>t,()=>i.disableOutsidePointerEvents],([g,f])=>{if(!g)return;const h=Ue.find(g);h&&h.isPointerBlocking!==f&&(h.isPointerBlocking=f,Ue.assignPointerEventToLayers()),f&&Ue.disableBodyPointerEvents(g),V(()=>{Ue.restoreBodyPointerEvents(g)})},{defer:!0}));const l={registerNestedLayer:s};return L(tc.Provider,{value:l,get children(){return L(ve,q({as:"div",ref(g){const f=_e(h=>t=h,i.ref);typeof f=="function"&&f(g)}},r))}})}function Ii(e){let t;const n=un();e=Me({id:n.generateId("content")},e);const[i,r]=ae(e,["ref","onOpenAutoFocus","onCloseAutoFocus","onPointerDownOutside","onFocusOutside","onInteractOutside"]);let o=!1,s=!1;const a=g=>{i.onPointerDownOutside?.(g),n.modal()&&g.detail.isContextMenu&&g.preventDefault()},c=g=>{i.onFocusOutside?.(g),n.modal()&&g.preventDefault()},u=g=>{i.onInteractOutside?.(g),!n.modal()&&(g.defaultPrevented||(o=!0,g.detail.originalEvent.type==="pointerdown"&&(s=!0)),Qe(n.triggerRef(),g.target)&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&s&&g.preventDefault())},l=g=>{i.onCloseAutoFocus?.(g),n.modal()?(g.preventDefault(),Ee(n.triggerRef())):(g.defaultPrevented||(o||Ee(n.triggerRef()),g.preventDefault()),o=!1,s=!1)};return fa({isDisabled:()=>!(n.isOpen()&&n.modal()),targets:()=>t?[t]:[]}),ha({ownerRef:()=>t,isDisabled:()=>!(n.isOpen()&&(n.modal()||n.preventScroll()))}),la({trapFocus:()=>n.isOpen()&&n.modal(),onMountAutoFocus:i.onOpenAutoFocus,onUnmountAutoFocus:l},()=>t),H(()=>V(n.registerContentId(r.id))),L(he,{get when(){return n.contentPresence.isPresent()},get children(){return L(ro,q({ref(g){const f=_e(h=>{n.contentPresence.setRef(h),t=h},i.ref);typeof f=="function"&&f(g)},role:"dialog",tabIndex:-1,get disableOutsidePointerEvents(){return Y(()=>!!n.modal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get"aria-labelledby"(){return n.titleId()},get"aria-describedby"(){return n.descriptionId()},get"data-expanded"(){return n.isOpen()?"":void 0},get"data-closed"(){return n.isOpen()?void 0:""},onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:u,get onDismiss(){return n.close}},r))}})}function iM(e){const t=un();e=Me({id:t.generateId("description")},e);const[n,i]=ae(e,["id"]);return H(()=>V(t.registerDescriptionId(n.id))),L(ve,q({as:"p",get id(){return n.id}},i))}function oo(e){const t=un(),[n,i]=ae(e,["ref","style","onPointerDown"]),r=o=>{Ne(o,n.onPointerDown),o.target===o.currentTarget&&o.preventDefault()};return L(he,{get when(){return t.overlayPresence.isPresent()},get children(){return L(ve,q({as:"div",ref(o){const s=_e(t.overlayPresence.setRef,n.ref);typeof s=="function"&&s(o)},get style(){return{"pointer-events":"auto",...n.style}},get"data-expanded"(){return t.isOpen()?"":void 0},get"data-closed"(){return t.isOpen()?void 0:""},onPointerDown:r},i))}})}function wi(e){const t=un();return L(he,{get when(){return t.contentPresence.isPresent()||t.overlayPresence.isPresent()},get children(){return L(Tr,e)}})}function xi(e){const t=`dialog-${Wt()}`;e=Me({id:t,modal:!0,preventScroll:!1},e);const[n,i]=P(),[r,o]=P(),[s,a]=P(),[c,u]=P(),l=Cr({open:()=>e.open,defaultOpen:()=>e.defaultOpen,onOpenChange:M=>e.onOpenChange?.(M)}),g=()=>e.forceMount||l.isOpen(),f=Ni(g),h=Ni(g),d={isOpen:l.isOpen,modal:()=>e.modal??!0,preventScroll:()=>e.preventScroll??!1,contentId:n,titleId:r,descriptionId:s,triggerRef:c,overlayPresence:f,contentPresence:h,close:l.close,toggle:l.toggle,setTriggerRef:u,generateId:on(()=>e.id),registerContentId:Ye(i),registerTitleId:Ye(o),registerDescriptionId:Ye(a)};return L(ec.Provider,{value:d,get children(){return e.children}})}function rM(e){const t=un();e=Me({id:t.generateId("title")},e);const[n,i]=ae(e,["id"]);return H(()=>V(t.registerTitleId(n.id))),L(ve,q({as:"h2",get id(){return n.id}},i))}function oM(e){return L(Ii,q({role:"alertdialog"},e))}const nc=Ce();function ic(){const e=ze(nc);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}const sM=ne('<svg display=block viewBox="0 0 30 30"><g><path fill=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z></path><path stroke=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z>'),so=30,rc=so/2,aM={top:180,right:-90,bottom:0,left:90};function cM(e){const t=ic();e=Me({size:so},e);const[n,i]=ae(e,["ref","style","children","size"]),r=()=>t.currentPlacement().split("-")[0],o=uM(t.contentRef),s=()=>o()?.getPropertyValue("background-color")||"none",a=()=>o()?.getPropertyValue(`border-${r()}-color`)||"none",c=()=>o()?.getPropertyValue(`border-${r()}-width`)||"0px",u=()=>parseInt(c())*2*(so/n.size),l=()=>`rotate(${aM[r()]} ${rc} ${rc})`;return L(ve,q({as:"div",ref(g){const f=_e(t.setArrowRef,n.ref);typeof f=="function"&&f(g)},"aria-hidden":"true",get style(){return{position:"absolute","font-size":`${n.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:s(),stroke:a(),"stroke-width":u(),...n.style}}},i,{get children(){const g=sM(),f=g.firstChild;return f.firstChild.nextSibling,Be(()=>At(f,"transform",l())),g}}))}function uM(e){const[t,n]=P();return H(()=>{const i=e();i&&n(xr(i).getComputedStyle(i))}),t}function oc(e){const t=ic(),[n,i]=ae(e,["ref","style"]);return L(ve,q({as:"div",ref(r){const o=_e(t.setPositionerRef,n.ref);typeof o=="function"&&o(r)},"data-popper-positioner":"",get style(){return{position:"absolute",top:0,left:0,"min-width":"max-content",...n.style}}},i))}const lM=["top","right","bottom","left"],St=Math.min,Pe=Math.max,Di=Math.round,bi=Math.floor,pt=e=>({x:e,y:e}),fM={left:"right",right:"left",bottom:"top",top:"bottom"},dM={start:"end",end:"start"};function ao(e,t,n){return Pe(e,St(t,n))}function Ut(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function ln(e){return e.split("-")[1]}function sc(e){return e==="x"?"y":"x"}function co(e){return e==="y"?"height":"width"}function _n(e){return["top","bottom"].includes(It(e))?"y":"x"}function uo(e){return sc(_n(e))}function gM(e,t,n){n===void 0&&(n=!1);const i=ln(e),r=uo(e),o=co(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=vi(s)),[s,vi(s)]}function MM(e){const t=vi(e);return[lo(e),t,lo(t)]}function lo(e){return e.replace(/start|end/g,t=>dM[t])}function hM(e,t,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?o:s;default:return[]}}function yM(e,t,n,i){const r=ln(e);let o=hM(It(e),n==="start",i);return r&&(o=o.map(s=>s+"-"+r),t&&(o=o.concat(o.map(lo)))),o}function vi(e){return e.replace(/left|right|bottom|top/g,t=>fM[t])}function mM(e){return{top:0,right:0,bottom:0,left:0,...e}}function ac(e){return typeof e!="number"?mM(e):{top:e,right:e,bottom:e,left:e}}function Oi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function cc(e,t,n){let{reference:i,floating:r}=e;const o=_n(t),s=uo(t),a=co(s),c=It(t),u=o==="y",l=i.x+i.width/2-r.width/2,g=i.y+i.height/2-r.height/2,f=i[a]/2-r[a]/2;let h;switch(c){case"top":h={x:l,y:i.y-r.height};break;case"bottom":h={x:l,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:g};break;case"left":h={x:i.x-r.width,y:g};break;default:h={x:i.x,y:i.y}}switch(ln(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const NM=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:l,y:g}=cc(u,i,c),f=i,h={},d=0;for(let M=0;M<a.length;M++){const{name:y,fn:m}=a[M],{x:T,y:N,data:j,reset:A}=await m({x:l,y:g,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});if(l=T??l,g=N??g,h={...h,[y]:{...h[y],...j}},A&&d<=50){d++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(u=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):A.rects),{x:l,y:g}=cc(u,f,c)),M=-1;continue}}return{x:l,y:g,placement:f,strategy:r,middlewareData:h}};async function kn(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:o,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:g="floating",altBoundary:f=!1,padding:h=0}=Ut(t,e),d=ac(h),y=a[f?g==="floating"?"reference":"floating":g],m=Oi(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),T=g==="floating"?{...s.floating,x:i,y:r}:s.reference,N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),j=await(o.isElement==null?void 0:o.isElement(N))?await(o.getScale==null?void 0:o.getScale(N))||{x:1,y:1}:{x:1,y:1},A=Oi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:N,strategy:c}):T);return{top:(m.top-A.top+d.top)/j.y,bottom:(A.bottom-m.bottom+d.bottom)/j.y,left:(m.left-A.left+d.left)/j.x,right:(A.right-m.right+d.right)/j.x}}const TM=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:l=0}=Ut(e,t)||{};if(u==null)return{};const g=ac(l),f={x:n,y:i},h=uo(r),d=co(h),M=await s.getDimensions(u),y=h==="y",m=y?"top":"left",T=y?"bottom":"right",N=y?"clientHeight":"clientWidth",j=o.reference[d]+o.reference[h]-f[h]-o.floating[d],A=f[h]-o.reference[h],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let S=E?E[N]:0;(!S||!await(s.isElement==null?void 0:s.isElement(E)))&&(S=a.floating[N]||o.floating[d]);const I=j/2-A/2,z=S/2-M[d]/2-1,C=St(g[m],z),R=St(g[T],z),F=C,x=S-M[d]-R,D=S/2-M[d]/2+I,b=ao(F,D,x),w=!c.arrow&&ln(r)!=null&&D!=b&&o.reference[d]/2-(D<F?C:R)-M[d]/2<0,v=w?D<F?D-F:D-x:0;return{[h]:f[h]+v,data:{[h]:b,centerOffset:D-b-v,...w&&{alignmentOffset:v}},reset:w}}}),LM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:M=!0,...y}=Ut(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const m=It(r),T=It(a)===a,N=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=f||(T||!M?[vi(a)]:MM(a));!f&&d!=="none"&&j.push(...yM(a,M,d,N));const A=[a,...j],E=await kn(t,y),S=[];let I=((i=o.flip)==null?void 0:i.overflows)||[];if(l&&S.push(E[m]),g){const F=gM(r,s,N);S.push(E[F[0]],E[F[1]])}if(I=[...I,{placement:r,overflows:S}],!S.every(F=>F<=0)){var z,C;const F=(((z=o.flip)==null?void 0:z.index)||0)+1,x=A[F];if(x)return{data:{index:F,overflows:I},reset:{placement:x}};let D=(C=I.filter(b=>b.overflows[0]<=0).sort((b,w)=>b.overflows[1]-w.overflows[1])[0])==null?void 0:C.placement;if(!D)switch(h){case"bestFit":{var R;const b=(R=I.map(w=>[w.placement,w.overflows.filter(v=>v>0).reduce((v,O)=>v+O,0)]).sort((w,v)=>w[1]-v[1])[0])==null?void 0:R[0];b&&(D=b);break}case"initialPlacement":D=a;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function uc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lc(e){return lM.some(t=>e[t]>=0)}const jM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=Ut(e,t);switch(i){case"referenceHidden":{const o=await kn(t,{...r,elementContext:"reference"}),s=uc(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:lc(s)}}}case"escaped":{const o=await kn(t,{...r,altBoundary:!0}),s=uc(o,n.floating);return{data:{escapedOffsets:s,escaped:lc(s)}}}default:return{}}}}};async function AM(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=It(n),a=ln(n),c=_n(n)==="y",u=["left","top"].includes(s)?-1:1,l=o&&c?-1:1,g=Ut(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:d}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return a&&typeof d=="number"&&(h=a==="end"?d*-1:d),c?{x:h*l,y:f*u}:{x:f*u,y:h*l}}const EM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,r=await AM(t,e);return{x:n+r.x,y:i+r.y,data:r}}}},SM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:T}=y;return{x:m,y:T}}},...c}=Ut(e,t),u={x:n,y:i},l=await kn(t,c),g=_n(It(r)),f=sc(g);let h=u[f],d=u[g];if(o){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",T=h+l[y],N=h-l[m];h=ao(T,h,N)}if(s){const y=g==="y"?"top":"left",m=g==="y"?"bottom":"right",T=d+l[y],N=d-l[m];d=ao(T,d,N)}const M=a.fn({...t,[f]:h,[g]:d});return{...M,data:{x:M.x-n,y:M.y-i}}}}},pM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:r,elements:o}=t,{apply:s=()=>{},...a}=Ut(e,t),c=await kn(t,a),u=It(n),l=ln(n),g=_n(n)==="y",{width:f,height:h}=i.floating;let d,M;u==="top"||u==="bottom"?(d=u,M=l===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(M=u,d=l==="end"?"top":"bottom");const y=h-c[d],m=f-c[M],T=!t.middlewareData.shift;let N=y,j=m;if(g){const E=f-c.left-c.right;j=l||T?St(m,E):E}else{const E=h-c.top-c.bottom;N=l||T?St(y,E):E}if(T&&!l){const E=Pe(c.left,0),S=Pe(c.right,0),I=Pe(c.top,0),z=Pe(c.bottom,0);g?j=f-2*(E!==0||S!==0?E+S:Pe(c.left,c.right)):N=h-2*(I!==0||z!==0?I+z:Pe(c.top,c.bottom))}await s({...t,availableWidth:j,availableHeight:N});const A=await r.getDimensions(o.floating);return f!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function wt(e){return fc(e)?(e.nodeName||"").toLowerCase():"#document"}function Re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mt(e){var t;return(t=(fc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fc(e){return e instanceof Node||e instanceof Re(e).Node}function ht(e){return e instanceof Element||e instanceof Re(e).Element}function ot(e){return e instanceof HTMLElement||e instanceof Re(e).HTMLElement}function dc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Re(e).ShadowRoot}function Un(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function IM(e){return["table","td","th"].includes(wt(e))}function fo(e){const t=go(),n=$e(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(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function wM(e){let t=fn(e);for(;ot(t)&&!Ci(t);){if(fo(t))return t;t=fn(t)}return null}function go(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ci(e){return["html","body","#document"].includes(wt(e))}function $e(e){return Re(e).getComputedStyle(e)}function zi(e){return ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fn(e){if(wt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dc(e)&&e.host||Mt(e);return dc(t)?t.host:t}function gc(e){const t=fn(e);return Ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:ot(t)&&Un(t)?t:gc(t)}function Yn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=gc(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),s=Re(r);return o?t.concat(s,s.visualViewport||[],Un(r)?r:[],s.frameElement&&n?Yn(s.frameElement):[]):t.concat(r,Yn(r,[],n))}function Mc(e){const t=$e(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=ot(e),o=r?e.offsetWidth:n,s=r?e.offsetHeight:i,a=Di(n)!==o||Di(i)!==s;return a&&(n=o,i=s),{width:n,height:i,$:a}}function Mo(e){return ht(e)?e:e.contextElement}function dn(e){const t=Mo(e);if(!ot(t))return pt(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=Mc(t);let s=(o?Di(n.width):n.width)/i,a=(o?Di(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const xM=pt(0);function hc(e){const t=Re(e);return!go()||!t.visualViewport?xM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Re(e)?!1:t}function Yt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=Mo(e);let s=pt(1);t&&(i?ht(i)&&(s=dn(i)):s=dn(e));const a=DM(o,n,i)?hc(o):pt(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,l=r.width/s.x,g=r.height/s.y;if(o){const f=Re(o),h=i&&ht(i)?Re(i):i;let d=f.frameElement;for(;d&&i&&h!==f;){const M=dn(d),y=d.getBoundingClientRect(),m=$e(d),T=y.left+(d.clientLeft+parseFloat(m.paddingLeft))*M.x,N=y.top+(d.clientTop+parseFloat(m.paddingTop))*M.y;c*=M.x,u*=M.y,l*=M.x,g*=M.y,c+=T,u+=N,d=Re(d).frameElement}}return Oi({width:l,height:g,x:c,y:u})}function bM(e){let{rect:t,offsetParent:n,strategy:i}=e;const r=ot(n),o=Mt(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0},a=pt(1);const c=pt(0);if((r||!r&&i!=="fixed")&&((wt(n)!=="body"||Un(o))&&(s=zi(n)),ot(n))){const u=Yt(n);a=dn(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function vM(e){return Array.from(e.getClientRects())}function yc(e){return Yt(Mt(e)).left+zi(e).scrollLeft}function OM(e){const t=Mt(e),n=zi(e),i=e.ownerDocument.body,r=Pe(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=Pe(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+yc(e);const a=-n.scrollTop;return $e(i).direction==="rtl"&&(s+=Pe(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:s,y:a}}function CM(e,t){const n=Re(e),i=Mt(e),r=n.visualViewport;let o=i.clientWidth,s=i.clientHeight,a=0,c=0;if(r){o=r.width,s=r.height;const u=go();(!u||u&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:o,height:s,x:a,y:c}}function zM(e,t){const n=Yt(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=ot(e)?dn(e):pt(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,c=r*o.x,u=i*o.y;return{width:s,height:a,x:c,y:u}}function mc(e,t,n){let i;if(t==="viewport")i=CM(e,n);else if(t==="document")i=OM(Mt(e));else if(ht(t))i=zM(t,n);else{const r=hc(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return Oi(i)}function Nc(e,t){const n=fn(e);return n===t||!ht(n)||Ci(n)?!1:$e(n).position==="fixed"||Nc(n,t)}function _M(e,t){const n=t.get(e);if(n)return n;let i=Yn(e,[],!1).filter(a=>ht(a)&&wt(a)!=="body"),r=null;const o=$e(e).position==="fixed";let s=o?fn(e):e;for(;ht(s)&&!Ci(s);){const a=$e(s),c=fo(s);!c&&a.position==="fixed"&&(r=null),(o?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Un(s)&&!c&&Nc(e,s))?i=i.filter(l=>l!==s):r=a,s=fn(s)}return t.set(e,i),i}function kM(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?_M(t,this._c):[].concat(n),i],a=s[0],c=s.reduce((u,l)=>{const g=mc(t,l,r);return u.top=Pe(g.top,u.top),u.right=St(g.right,u.right),u.bottom=St(g.bottom,u.bottom),u.left=Pe(g.left,u.left),u},mc(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function UM(e){return Mc(e)}function YM(e,t,n){const i=ot(t),r=Mt(t),o=n==="fixed",s=Yt(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=pt(0);if(i||!i&&!o)if((wt(t)!=="body"||Un(r))&&(a=zi(t)),i){const u=Yt(t,!0,o,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else r&&(c.x=yc(r));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Tc(e,t){return!ot(e)||$e(e).position==="fixed"?null:t?t(e):e.offsetParent}function Lc(e,t){const n=Re(e);if(!ot(e))return n;let i=Tc(e,t);for(;i&&IM(i)&&$e(i).position==="static";)i=Tc(i,t);return i&&(wt(i)==="html"||wt(i)==="body"&&$e(i).position==="static"&&!fo(i))?n:i||wM(e)||n}const PM=async function(e){let{reference:t,floating:n,strategy:i}=e;const r=this.getOffsetParent||Lc,o=this.getDimensions;return{reference:YM(t,await r(n),i),floating:{x:0,y:0,...await o(n)}}};function RM(e){return $e(e).direction==="rtl"}const jc={convertOffsetParentRelativeRectToViewportRelativeRect:bM,getDocumentElement:Mt,getClippingRect:kM,getOffsetParent:Lc,getElementRects:PM,getClientRects:vM,getDimensions:UM,getScale:dn,isElement:ht,isRTL:RM};function FM(e,t){let n=null,i;const r=Mt(e);function o(){clearTimeout(i),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const{left:u,top:l,width:g,height:f}=e.getBoundingClientRect();if(a||t(),!g||!f)return;const h=bi(l),d=bi(r.clientWidth-(u+g)),M=bi(r.clientHeight-(l+f)),y=bi(u),T={rootMargin:-h+"px "+-d+"px "+-M+"px "+-y+"px",threshold:Pe(0,St(1,c))||1};let N=!0;function j(A){const E=A[0].intersectionRatio;if(E!==c){if(!N)return s();E?s(!1,E):i=setTimeout(()=>{s(!1,1e-7)},100)}N=!1}try{n=new IntersectionObserver(j,{...T,root:r.ownerDocument})}catch{n=new IntersectionObserver(j,T)}n.observe(e)}return s(!0),o}function BM(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,u=Mo(e),l=r||o?[...u?Yn(u):[],...Yn(t)]:[];l.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const g=u&&a?FM(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[T]=m;T&&T.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let d,M=c?Yt(e):null;c&&y();function y(){const m=Yt(e);M&&(m.x!==M.x||m.y!==M.y||m.width!==M.width||m.height!==M.height)&&n(),M=m,d=requestAnimationFrame(y)}return n(),()=>{l.forEach(m=>{r&&m.removeEventListener("scroll",n),o&&m.removeEventListener("resize",n)}),g&&g(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(d)}}const HM=(e,t,n)=>{const i=new Map,r={platform:jc,...n},o={...r.platform,_c:i};return NM(e,t,{...r,platform:o})};function Ac(e){const{x:t=0,y:n=0,width:i=0,height:r=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,i,r);const o={x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:n+r,left:t};return{...o,toJSON:()=>o}}function QM(e,t){return{contextElement:e,getBoundingClientRect:()=>{const i=t(e);return i?Ac(i):e?e.getBoundingClientRect():Ac()}}}function GM(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}const VM={top:"bottom",right:"left",bottom:"top",left:"right"};function KM(e,t){const[n,i]=e.split("-"),r=VM[n];return i?n==="left"||n==="right"?`${r} ${i==="start"?"top":"bottom"}`:i==="start"?`${r} ${t==="rtl"?"right":"left"}`:`${r} ${t==="rtl"?"left":"right"}`:`${r} center`}function Ec(e){e=Me({getAnchorRect:g=>g?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e);const[t,n]=P(),[i,r]=P(),[o,s]=P(e.placement),a=()=>QM(e.anchorRef(),e.getAnchorRect),{direction:c}=Li();async function u(){const g=a(),f=t(),h=i();if(!g||!f)return;const d=(h?.clientHeight||0)/2,M=typeof e.gutter=="number"?e.gutter+d:e.gutter??d;f.style.setProperty("--kb-popper-content-overflow-padding",`${e.overflowPadding}px`),g.getBoundingClientRect();const y=[EM(({placement:A})=>{const E=!!A.split("-")[1];return{mainAxis:M,crossAxis:E?void 0:e.shift,alignmentAxis:e.shift}})];if(e.flip!==!1){const A=typeof e.flip=="string"?e.flip.split(" "):void 0;if(A!==void 0&&!A.every(GM))throw new Error("`flip` expects a spaced-delimited list of placements");y.push(LM({padding:e.overflowPadding,fallbackPlacements:A}))}(e.slide||e.overlap)&&y.push(SM({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding})),y.push(pM({padding:e.overflowPadding,apply({availableWidth:A,availableHeight:E,rects:S}){const I=Math.round(S.reference.width);A=Math.floor(A),E=Math.floor(E),f.style.setProperty("--kb-popper-anchor-width",`${I}px`),f.style.setProperty("--kb-popper-content-available-width",`${A}px`),f.style.setProperty("--kb-popper-content-available-height",`${E}px`),e.sameWidth&&(f.style.width=`${I}px`),e.fitViewport&&(f.style.maxWidth=`${A}px`,f.style.maxHeight=`${E}px`)}})),e.hideWhenDetached&&y.push(jM({padding:e.detachedPadding})),h&&y.push(TM({element:h,padding:e.arrowPadding}));const m=await HM(g,f,{placement:e.placement,strategy:"absolute",middleware:y,platform:{...jc,isRTL:()=>c()==="rtl"}});if(s(m.placement),e.onCurrentPlacementChange?.(m.placement),!f)return;f.style.setProperty("--kb-popper-content-transform-origin",KM(m.placement,c()));const T=Math.round(m.x),N=Math.round(m.y);let j;if(e.hideWhenDetached&&(j=m.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(f.style,{top:"0",left:"0",transform:`translate3d(${T}px, ${N}px, 0)`,visibility:j}),h&&m.middlewareData.arrow){const{x:A,y:E}=m.middlewareData.arrow,S=m.placement.split("-")[0];Object.assign(h.style,{left:A!=null?`${A}px`:"",top:E!=null?`${E}px`:"",[S]:"100%"})}}H(()=>{const g=a(),f=t();if(!g||!f)return;const h=BM(g,f,u,{elementResize:typeof ResizeObserver=="function"});V(h)}),H(()=>{const g=t(),f=e.contentRef();!g||!f||queueMicrotask(()=>{g.style.zIndex=getComputedStyle(f).zIndex})});const l={currentPlacement:o,contentRef:()=>e.contentRef(),setPositionerRef:n,setArrowRef:r};return L(nc.Provider,{value:l,get children(){return e.children}})}const Sc=Ce();function $M(){const e=ze(Sc);if(e===void 0)throw new Error("[kobalte]: `useListboxContext` must be used within a `Listbox` component");return e}const pc=Ce();function Ic(){const e=ze(pc);if(e===void 0)throw new Error("[kobalte]: `useListboxItemContext` must be used within a `Listbox.Item` component");return e}function WM(e){let t;const n=$M(),i=`${n.generateId("item")}-${Wt()}`;e=Me({id:i},e);const[r,o]=ae(e,["ref","item","aria-label","aria-labelledby","aria-describedby","onPointerMove","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[s,a]=P(),[c,u]=P(),l=()=>n.listState().selectionManager(),g=()=>l().focusedKey()===r.item.key,f=qg({key:()=>r.item.key,selectionManager:l,shouldSelectOnPressUp:n.shouldSelectOnPressUp,allowsDifferentPressOrigin:()=>n.shouldSelectOnPressUp()&&n.shouldFocusOnHover(),shouldUseVirtualFocus:n.shouldUseVirtualFocus,disabled:()=>r.item.disabled},()=>t),h=()=>{if(l().selectionMode()!=="none")return f.isSelected()},d=Y(()=>!(bn()&&Xf())),M=()=>d()?r["aria-label"]:void 0,y=()=>d()?s():void 0,m=()=>d()?c():void 0,T=()=>{if(!n.isVirtualized())return;const S=n.listState().collection().getItem(r.item.key)?.index;return S!=null?S+1:void 0},N=()=>{if(n.isVirtualized())return yd(n.listState().collection())},j=S=>{Ne(S,r.onPointerMove),S.pointerType==="mouse"&&!f.isDisabled()&&n.shouldFocusOnHover()&&(Ee(S.currentTarget),l().setFocused(!0),l().setFocusedKey(r.item.key))},A=Y(()=>({"data-disabled":f.isDisabled()?"":void 0,"data-selected":f.isSelected()?"":void 0,"data-highlighted":g()?"":void 0})),E={isSelected:f.isSelected,dataset:A,generateId:on(()=>o.id),registerLabelId:Ye(a),registerDescriptionId:Ye(u)};return L(pc.Provider,{value:E,get children(){return L(ve,q({as:"li",ref(S){const I=_e(z=>t=z,r.ref);typeof I=="function"&&I(S)},role:"option",get tabIndex(){return f.tabIndex()},get"aria-disabled"(){return f.isDisabled()},get"aria-selected"(){return h()},get"aria-label"(){return M()},get"aria-labelledby"(){return y()},get"aria-describedby"(){return m()},get"aria-posinset"(){return T()},get"aria-setsize"(){return N()},get"data-key"(){return f.dataKey()},get onPointerDown(){return Ge([r.onPointerDown,f.onPointerDown])},get onPointerUp(){return Ge([r.onPointerUp,f.onPointerUp])},get onClick(){return Ge([r.onClick,f.onClick])},get onKeyDown(){return Ge([r.onKeyDown,f.onKeyDown])},get onMouseDown(){return Ge([r.onMouseDown,f.onMouseDown])},get onFocus(){return Ge([r.onFocus,f.onFocus])},onPointerMove:j},A,o))}})}function ZM(e){const t=Ic();e=Me({id:t.generateId("indicator")},e);const[n,i]=ae(e,["forceMount"]);return L(he,{get when(){return n.forceMount||t.isSelected()},get children(){return L(ve,q({as:"div","aria-hidden":"true"},()=>t.dataset(),i))}})}function qM(e){const t=Ic();e=Me({id:t.generateId("label")},e);const[n,i]=ae(e,["id"]);return H(()=>V(t.registerLabelId(n.id))),L(ve,q({as:"div",get id(){return n.id}},()=>t.dataset(),i))}function XM(e){let t;const n=`listbox-${Wt()}`;e=Me({id:n,selectionMode:"single",virtualized:!1},e);const[i,r]=ae(e,["ref","children","renderItem","renderSection","value","defaultValue","onChange","options","optionValue","optionTextValue","optionDisabled","optionGroupChildren","state","keyboardDelegate","autoFocus","selectionMode","shouldFocusWrap","shouldUseVirtualFocus","shouldSelectOnPressUp","shouldFocusOnHover","allowDuplicateSelectionEvents","disallowEmptySelection","selectionBehavior","selectOnFocus","disallowTypeAhead","allowsTabNavigation","virtualized","scrollToItem","scrollRef","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),o=Y(()=>i.state?i.state:Xa({selectedKeys:()=>i.value,defaultSelectedKeys:()=>i.defaultValue,onSelectionChange:i.onChange,allowDuplicateSelectionEvents:()=>p(i.allowDuplicateSelectionEvents),disallowEmptySelection:()=>p(i.disallowEmptySelection),selectionBehavior:()=>p(i.selectionBehavior),selectionMode:()=>p(i.selectionMode),dataSource:()=>i.options??[],getKey:()=>i.optionValue,getTextValue:()=>i.optionTextValue,getDisabled:()=>i.optionDisabled,getSectionChildren:()=>i.optionGroupChildren})),s=Jg({selectionManager:()=>o().selectionManager(),collection:()=>o().collection(),autoFocus:()=>p(i.autoFocus),shouldFocusWrap:()=>p(i.shouldFocusWrap),keyboardDelegate:()=>i.keyboardDelegate,disallowEmptySelection:()=>p(i.disallowEmptySelection),selectOnFocus:()=>p(i.selectOnFocus),disallowTypeAhead:()=>p(i.disallowTypeAhead),shouldUseVirtualFocus:()=>p(i.shouldUseVirtualFocus),allowsTabNavigation:()=>p(i.allowsTabNavigation),isVirtualized:()=>i.virtualized,scrollToKey:()=>i.scrollToItem},()=>t,()=>i.scrollRef?.()),a={listState:o,generateId:on(()=>r.id),shouldUseVirtualFocus:()=>e.shouldUseVirtualFocus,shouldSelectOnPressUp:()=>e.shouldSelectOnPressUp,shouldFocusOnHover:()=>e.shouldFocusOnHover,isVirtualized:()=>i.virtualized};return L(Sc.Provider,{value:a,get children(){return L(ve,q({as:"ul",ref(c){const u=_e(l=>t=l,i.ref);typeof u=="function"&&u(c)},role:"listbox",get tabIndex(){return s.tabIndex()},get"aria-multiselectable"(){return o().selectionManager().selectionMode()==="multiple"?!0:void 0},get onKeyDown(){return Ge([i.onKeyDown,s.onKeyDown])},get onMouseDown(){return Ge([i.onMouseDown,s.onMouseDown])},get onFocusIn(){return Ge([i.onFocusIn,s.onFocusIn])},get onFocusOut(){return Ge([i.onFocusOut,s.onFocusOut])}},r,{get children(){return L(he,{get when(){return!i.virtualized},get fallback(){return i.children?.(o().collection)},get children(){return L(Ff,{get each(){return[...o().collection()]},by:"key",children:c=>L(mr,{get children(){return[L(rt,{get when(){return c().type==="section"},get children(){return i.renderSection?.(c())}}),L(rt,{get when(){return c().type==="item"},get children(){return i.renderItem?.(c())}})]}})})}})}}))}})}const wc=Ce();function gn(){const e=ze(wc);if(e===void 0)throw new Error("[kobalte]: `useSelectContext` must be used within a `Select` component");return e}function JM(e){let t;const n=gn(),[i,r]=ae(e,["ref","id","style","onCloseAutoFocus","onFocusOutside"]),o=a=>{n.close()},s=a=>{i.onFocusOutside?.(a),n.isOpen()&&n.isModal()&&a.preventDefault()};return fa({isDisabled:()=>!(n.isOpen()&&n.isModal()),targets:()=>t?[t]:[]}),ha({ownerRef:()=>t,isDisabled:()=>!(n.isOpen()&&(n.isModal()||n.preventScroll()))}),la({trapFocus:()=>n.isOpen()&&n.isModal(),onMountAutoFocus:a=>{a.preventDefault()},onUnmountAutoFocus:a=>{i.onCloseAutoFocus?.(a),a.defaultPrevented||(Ee(n.triggerRef()),a.preventDefault())}},()=>t),L(he,{get when(){return n.contentPresence.isPresent()},get children(){return L(oc,{get children(){return L(ro,q({ref(a){const c=_e(u=>{n.setContentRef(u),n.contentPresence.setRef(u),t=u},i.ref);typeof c=="function"&&c(a)},get disableOutsidePointerEvents(){return Y(()=>!!n.isModal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get style(){return{"--kb-select-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative",...i.style}},onEscapeKeyDown:o,onFocusOutside:s,get onDismiss(){return n.close}},()=>n.dataset(),r))}})}})}function eh(e){const t=gn();return e=Me({children:"▼"},e),L(ve,q({as:"span","aria-hidden":"true"},()=>t.dataset(),e))}function th(e){const t=gn();e=Me({id:t.generateId("listbox")},e);const[n,i]=ae(e,["ref","id","onKeyDown"]);return H(()=>V(t.registerListboxId(n.id))),L(XM,q({ref(o){const s=_e(t.setListboxRef,n.ref);typeof s=="function"&&s(o)},get id(){return n.id},get state(){return t.listState()},get virtualized(){return t.isVirtualized()},get autoFocus(){return t.autoFocus()},shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,get shouldFocusWrap(){return t.shouldFocusWrap()},get disallowTypeAhead(){return t.disallowTypeAhead()},get"aria-labelledby"(){return t.listboxAriaLabelledBy()},get renderItem(){return t.renderItem},get renderSection(){return t.renderSection},onKeyDown:o=>{Ne(o,n.onKeyDown),o.key==="Escape"&&o.preventDefault()}},i))}function nh(e){const t=gn();return L(he,{get when(){return t.contentPresence.isPresent()},get children(){return L(Tr,e)}})}function ih(e){const t=`select-${Wt()}`;e=Me({id:t,selectionMode:"single",disallowEmptySelection:!1,allowDuplicateSelectionEvents:!0,gutter:8,sameWidth:!0,modal:!1,preventScroll:!1},e);const[n,i,r,o]=ae(e,["itemComponent","sectionComponent","open","defaultOpen","onOpenChange","value","defaultValue","onChange","placeholder","options","optionValue","optionTextValue","optionDisabled","optionGroupChildren","keyboardDelegate","allowDuplicateSelectionEvents","disallowEmptySelection","disallowTypeAhead","shouldFocusWrap","selectionBehavior","selectionMode","virtualized","modal","preventScroll","forceMount"],["getAnchorRect","placement","gutter","shift","flip","slide","overlap","sameWidth","fitViewport","hideWhenDetached","detachedPadding","arrowPadding","overflowPadding"],Ud),[s,a]=P(),[c,u]=P(),[l,g]=P(),[f,h]=P(),[d,M]=P(),[y,m]=P(),[T,N]=P(),[j,A]=P(!0),E=U=>{const de=n.optionValue;return de==null?String(U):String(wr(de)?de(U):U[de])},S=Y(()=>{const U=n.optionGroupChildren;return U==null?n.options:n.options.flatMap(de=>de[U]??de)}),I=Y(()=>S().map(U=>E(U))),z=U=>[...U].map(de=>S().find(fe=>E(fe)===de)).filter(de=>de!=null),C=Cr({open:()=>n.open,defaultOpen:()=>n.defaultOpen,onOpenChange:U=>n.onOpenChange?.(U)}),R=Xa({selectedKeys:()=>n.value!=null?n.value.map(E):n.value,defaultSelectedKeys:()=>n.defaultValue!=null?n.defaultValue.map(E):n.defaultValue,onSelectionChange:U=>{n.onChange?.(z(U)),n.selectionMode==="single"&&v()},allowDuplicateSelectionEvents:()=>p(n.allowDuplicateSelectionEvents),disallowEmptySelection:()=>p(n.disallowEmptySelection),selectionBehavior:()=>p(n.selectionBehavior),selectionMode:()=>n.selectionMode,dataSource:()=>n.options??[],getKey:()=>n.optionValue,getTextValue:()=>n.optionTextValue,getDisabled:()=>n.optionDisabled,getSectionChildren:()=>n.optionGroupChildren}),F=Y(()=>z(R.selectionManager().selectedKeys())),x=U=>{R.selectionManager().toggleSelection(E(U))},D=Ni(()=>n.forceMount||C.isOpen()),b=()=>{const U=y();U&&Ee(U)},w=U=>{if(n.options.length<=0)return;A(U),C.open();let de=R.selectionManager().firstSelectedKey();de==null&&(U==="first"?de=R.collection().getFirstKey():U==="last"&&(de=R.collection().getLastKey())),b(),R.selectionManager().setFocused(!0),R.selectionManager().setFocusedKey(de)},v=()=>{C.close(),R.selectionManager().setFocused(!1),R.selectionManager().setFocusedKey(void 0)},O=U=>{C.isOpen()?v():w(U)},{formControlContext:_}=Yd(r);wd(f,()=>{const U=n.defaultValue?[...n.defaultValue].map(E):new Ke;R.selectionManager().setSelectedKeys(U)});const $=Aa({usage:"search",sensitivity:"base"}),X=Y(()=>{const U=p(n.keyboardDelegate);return U||new Ja(R.collection,void 0,$)}),se=U=>n.itemComponent?.({item:U}),Se=U=>n.sectionComponent?.({section:U});H(Ze([I],([U])=>{const fe=[...R.selectionManager().selectedKeys()].filter(Ft=>U.includes(Ft));R.selectionManager().setSelectedKeys(fe)},{defer:!0}));const at=Y(()=>({"data-expanded":C.isOpen()?"":void 0,"data-closed":C.isOpen()?void 0:""})),Je={dataset:at,isOpen:C.isOpen,isDisabled:()=>_.isDisabled()??!1,isMultiple:()=>p(n.selectionMode)==="multiple",isVirtualized:()=>n.virtualized??!1,isModal:()=>n.modal??!1,preventScroll:()=>n.preventScroll??!1,disallowTypeAhead:()=>n.disallowTypeAhead??!1,shouldFocusWrap:()=>n.shouldFocusWrap??!1,selectedOptions:F,contentPresence:D,autoFocus:j,triggerRef:f,listState:()=>R,keyboardDelegate:X,triggerId:s,valueId:c,listboxId:l,listboxAriaLabelledBy:T,setListboxAriaLabelledBy:N,setTriggerRef:h,setContentRef:M,setListboxRef:m,open:w,close:v,toggle:O,placeholder:()=>n.placeholder,renderItem:se,renderSection:Se,removeOptionFromSelection:x,generateId:on(()=>p(r.id)),registerTriggerId:Ye(a),registerValueId:Ye(u),registerListboxId:Ye(g)};return L(ma.Provider,{value:_,get children(){return L(wc.Provider,{value:Je,get children(){return L(Ec,q({anchorRef:f,contentRef:d},i,{get children(){return L(ve,q({as:"div",role:"group",get id(){return p(r.id)}},()=>_.dataset(),at,o))}}))}})}})}function rh(e){const[t,n]=ae(e,["value","defaultValue","onChange","multiple"]),i=Y(()=>t.value!=null?t.multiple?t.value:[t.value]:t.value),r=Y(()=>t.defaultValue!=null?t.multiple?t.defaultValue:[t.defaultValue]:t.defaultValue);return L(ih,q({get value(){return i()},get defaultValue(){return r()},onChange:s=>{t.multiple?t.onChange?.(s):t.onChange?.(s[0]??null)},get selectionMode(){return t.multiple?"multiple":"single"}},n))}function oh(e){const t=Pr(),n=gn();e=Me({id:n.generateId("trigger")},e);const[i,r,o]=ae(e,["ref","disabled","onPointerDown","onClick","onKeyDown","onFocus","onBlur"],Pd),s=()=>n.listState().selectionManager(),a=()=>n.keyboardDelegate(),c=()=>i.disabled||n.isDisabled(),{fieldProps:u}=Rd(r),{typeSelectHandlers:l}=Za({keyboardDelegate:a,selectionManager:s,onTypeSelect:m=>s().select(m)}),g=()=>[n.listboxAriaLabelledBy(),n.valueId()].filter(Boolean).join(" ")||void 0,f=m=>{Ne(m,i.onPointerDown),m.currentTarget.dataset.pointerType=m.pointerType,!c()&&m.pointerType!=="touch"&&m.button===0&&(m.preventDefault(),n.toggle(!0))},h=m=>{Ne(m,i.onClick),!c()&&m.currentTarget.dataset.pointerType==="touch"&&n.toggle(!0)},d=m=>{if(Ne(m,i.onKeyDown),!c())switch(Ne(m,l.onKeyDown),m.key){case"Enter":case" ":case"ArrowDown":m.stopPropagation(),m.preventDefault(),n.toggle("first");break;case"ArrowUp":m.stopPropagation(),m.preventDefault(),n.toggle("last");break;case"ArrowLeft":{if(m.preventDefault(),n.isMultiple())return;const T=s().firstSelectedKey(),N=T!=null?a().getKeyAbove?.(T):a().getFirstKey?.();N!=null&&s().select(N);break}case"ArrowRight":{if(m.preventDefault(),n.isMultiple())return;const T=s().firstSelectedKey(),N=T!=null?a().getKeyBelow?.(T):a().getFirstKey?.();N!=null&&s().select(N);break}}},M=m=>{Ne(m,i.onFocus),!s().isFocused()&&s().setFocused(!0)},y=m=>{Ne(m,i.onBlur),!n.isOpen()&&s().setFocused(!1)};return H(()=>V(n.registerTriggerId(u.id()))),H(()=>{n.setListboxAriaLabelledBy([u.ariaLabelledBy(),u.ariaLabel()&&!u.ariaLabelledBy()?u.id():null].filter(Boolean).join(" ")||void 0)}),L(pi,q({ref(m){const T=_e(n.setTriggerRef,i.ref);typeof T=="function"&&T(m)},get id(){return u.id()},get disabled(){return c()},"aria-haspopup":"listbox",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return Y(()=>!!n.isOpen())()?n.listboxId():void 0},get"aria-label"(){return u.ariaLabel()},get"aria-labelledby"(){return g()},get"aria-describedby"(){return u.ariaDescribedBy()},onPointerDown:f,onClick:h,onKeyDown:d,onFocus:M,onBlur:y},()=>n.dataset(),()=>t.dataset(),o))}const sh=ne("<span>");function ah(e){const t=Pr(),n=gn();e=Me({id:n.generateId("value")},e);const[i,r]=ae(e,["id","children"]),o=()=>n.listState().selectionManager(),s=()=>{const a=o().selectedKeys();return a.size===1&&a.has("")?!0:o().isEmpty()};return H(()=>V(n.registerValueId(i.id))),(()=>{const a=sh();return be(a,q({get id(){return i.id},get"data-placeholder-shown"(){return s()?"":void 0}},()=>t.dataset(),r),!1,!0),G(a,L(he,{get when(){return!s()},get fallback(){return n.placeholder()},get children(){return L(ch,{state:{selectedOption:()=>n.selectedOptions()[0],selectedOptions:()=>n.selectedOptions(),remove:c=>n.removeOptionFromSelection(c),clear:()=>o().clearSelection()},get children(){return i.children}})}})),a})()}function ch(e){const t=ci(()=>{const n=e.children;return wr(n)?n(e.state):n});return Y(t)}const xc=Ce();function ho(){const e=ze(xc);if(e===void 0)throw new Error("[kobalte]: `useTooltipContext` must be used within a `Tooltip` component");return e}function uh(e){const t=ho();e=Me({id:t.generateId("content")},e);const[n,i]=ae(e,["ref","style"]);return H(()=>V(t.registerContentId(i.id))),L(he,{get when(){return t.contentPresence.isPresent()},get children(){return L(oc,{get children(){return L(ro,q({ref(r){const o=_e(s=>{t.setContentRef(s),t.contentPresence.setRef(s)},n.ref);typeof o=="function"&&o(r)},role:"tooltip",disableOutsidePointerEvents:!1,get style(){return{"--kb-tooltip-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative",...n.style}},onFocusOutside:r=>r.preventDefault(),onDismiss:()=>t.hideTooltip(!0)},()=>t.dataset(),i))}})}})}function lh(e){const t=ho();return L(he,{get when(){return t.contentPresence.isPresent()},get children(){return L(Tr,e)}})}/*!
216
216
  * Portions of this file are based on code from ariakit.
217
217
  * MIT Licensed, Copyright (c) Diego Haz.
218
218
  *
219
219
  * Credits to the Ariakit team:
220
220
  * https://github.com/ariakit/ariakit/blob/84e97943ad637a582c01c9b56d880cd95f595737/packages/ariakit/src/hovercard/__utils/polygon.ts
221
221
  * https://github.com/ariakit/ariakit/blob/f2a96973de523d67e41eec983263936c489ef3e2/packages/ariakit/src/hovercard/__utils/debug-polygon.ts
222
- */function ch(e,t,n){const i=e.split("-")[0],r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=[],a=r.left+r.width/2,c=r.top+r.height/2;switch(i){case"top":s.push([r.left,c]),s.push([o.left,o.bottom]),s.push([o.left,o.top]),s.push([o.right,o.top]),s.push([o.right,o.bottom]),s.push([r.right,c]);break;case"right":s.push([a,r.top]),s.push([o.left,o.top]),s.push([o.right,o.top]),s.push([o.right,o.bottom]),s.push([o.left,o.bottom]),s.push([a,r.bottom]);break;case"bottom":s.push([r.left,c]),s.push([o.left,o.top]),s.push([o.left,o.bottom]),s.push([o.right,o.bottom]),s.push([o.right,o.top]),s.push([r.right,c]);break;case"left":s.push([a,r.top]),s.push([o.right,o.top]),s.push([o.left,o.top]),s.push([o.left,o.bottom]),s.push([o.right,o.bottom]),s.push([a,r.bottom]);break}return s}const Rt={};let uh=0,Mn=!1,yt,Pn;function lh(e){const t=`tooltip-${Zt()}`,n=`${++uh}`;e=Me({id:t,openDelay:700,closeDelay:300},e);const[i,r]=ae(e,["id","open","defaultOpen","onOpenChange","disabled","triggerOnFocusOnly","openDelay","closeDelay","ignoreSafeArea","forceMount"]);let o;const[s,a]=P(),[c,u]=P(),[l,g]=P(),[f,h]=P(r.placement),d=zr({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:x=>i.onOpenChange?.(x)}),M=Ni(()=>i.forceMount||d.isOpen()),y=()=>{Rt[n]=T},m=()=>{for(const x in Rt)x!==n&&(Rt[x](!0),delete Rt[x])},T=(x=!1)=>{x||i.closeDelay&&i.closeDelay<=0?(window.clearTimeout(o),o=void 0,d.close()):o||(o=window.setTimeout(()=>{o=void 0,d.close()},i.closeDelay)),window.clearTimeout(yt),yt=void 0,Mn&&(window.clearTimeout(Pn),Pn=window.setTimeout(()=>{delete Rt[n],Pn=void 0,Mn=!1},i.closeDelay))},N=()=>{clearTimeout(o),o=void 0,m(),y(),Mn=!0,d.open(),window.clearTimeout(yt),yt=void 0,window.clearTimeout(Pn),Pn=void 0},j=()=>{m(),y(),!d.isOpen()&&!yt&&!Mn?yt=window.setTimeout(()=>{yt=void 0,Mn=!0,N()},i.openDelay):d.isOpen()||N()},A=(x=!1)=>{!x&&i.openDelay&&i.openDelay>0&&!o?j():N()},E=()=>{window.clearTimeout(yt),yt=void 0,Mn=!1},S=()=>{window.clearTimeout(o),o=void 0},I=x=>Qe(c(),x)||Qe(l(),x),z=x=>{const D=c(),b=l();if(!(!D||!b))return ch(x,D,b)},C=x=>{const D=x.target;if(I(D)){S();return}if(!i.ignoreSafeArea){const b=z(f());if(b&&ld(ud(x),b)){S();return}}o||T()};H(()=>{if(!d.isOpen())return;const x=ke();x.addEventListener("pointermove",C,!0),V(()=>{x.removeEventListener("pointermove",C,!0)})}),H(()=>{const x=c();if(!x||!d.isOpen())return;const D=w=>{const v=w.target;Qe(v,x)&&T(!0)},b=Dr();b.addEventListener("scroll",D,{capture:!0}),V(()=>{b.removeEventListener("scroll",D,{capture:!0})})}),V(()=>{clearTimeout(o),Rt[n]&&delete Rt[n]});const F={dataset:Y(()=>({"data-expanded":d.isOpen()?"":void 0,"data-closed":d.isOpen()?void 0:""})),isOpen:d.isOpen,isDisabled:()=>i.disabled??!1,triggerOnFocusOnly:()=>i.triggerOnFocusOnly??!1,contentId:s,contentPresence:M,openTooltip:A,hideTooltip:T,cancelOpening:E,generateId:on(()=>e.id),registerContentId:Ye(a),isTargetOnTooltip:I,setTriggerRef:u,setContentRef:g};return L(wc.Provider,{value:F,get children(){return L(Ac,q({anchorRef:c,contentRef:l,onCurrentPlacementChange:h},r))}})}function fh(e){let t;const n=yo(),[i,r]=ae(e,["ref","onPointerEnter","onPointerLeave","onPointerDown","onClick","onFocus","onBlur","onTouchStart"]);let o=!1,s=!1,a=!1;const c=()=>{o=!1},u=()=>{!n.isOpen()&&(s||a)&&n.openTooltip(a)},l=m=>{n.isOpen()&&!s&&!a&&n.hideTooltip(m)},g=m=>{me(m,i.onPointerEnter),!(m.pointerType==="touch"||n.triggerOnFocusOnly()||n.isDisabled()||m.defaultPrevented)&&(s=!0,u())},f=m=>{me(m,i.onPointerLeave),m.pointerType!=="touch"&&(s=!1,a=!1,n.isOpen()?l():n.cancelOpening())},h=m=>{me(m,i.onPointerDown),o=!0,ke(t).addEventListener("pointerup",c,{once:!0})},d=m=>{me(m,i.onClick),s=!1,a=!1,l(!0)},M=m=>{me(m,i.onFocus),!(n.isDisabled()||m.defaultPrevented||o)&&(a=!0,u())},y=m=>{me(m,i.onBlur);const T=m.relatedTarget;n.isTargetOnTooltip(T)||(s=!1,a=!1,l(!0))};return V(()=>{ke(t).removeEventListener("pointerup",c)}),L(ve,q({as:"button",ref(m){const T=_e(N=>{n.setTriggerRef(N),t=N},i.ref);typeof T=="function"&&T(m)},get"aria-describedby"(){return Y(()=>!!n.isOpen())()?n.contentId():void 0},onPointerEnter:g,onPointerLeave:f,onPointerDown:h,onClick:d,onFocus:M,onBlur:y},()=>n.dataset(),r))}function xc(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=xc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function st(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=xc(e))&&(i&&(i+=" "),i+=t);return i}const dh=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 20 20"><path fill=#fff fill-rule=evenodd d="M4.41 6.91a.833.833 0 0 1 1.18 0L10 11.323l4.41-4.411a.833.833 0 1 1 1.18 1.178l-5 5a.833.833 0 0 1-1.18 0l-5-5a.833.833 0 0 1 0-1.178Z"clip-rule=evenodd>'),gh=(e={})=>(()=>{const t=dh();return be(t,e,!0,!0),t})(),Mh=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 20 20"><g fill=#fff fill-rule=evenodd clip-rule=evenodd><path d="M6.322 2.988A1.667 1.667 0 0 1 7.5 2.5h5a1.667 1.667 0 0 1 1.667 1.667A.833.833 0 0 0 15 5h.833a2.5 2.5 0 0 1 2.5 2.5V15a2.5 2.5 0 0 1-2.5 2.5H4.167a2.5 2.5 0 0 1-2.5-2.5V7.5a2.5 2.5 0 0 1 2.5-2.5H5a.833.833 0 0 0 .833-.833c0-.442.176-.866.489-1.179ZM4.167 6.667a.833.833 0 0 0-.834.833V15a.833.833 0 0 0 .834.833h11.666a.834.834 0 0 0 .834-.833V7.5a.833.833 0 0 0-.834-.833H15a2.5 2.5 0 0 1-2.5-2.5h-5a2.5 2.5 0 0 1-2.5 2.5h-.833Z"></path><path d="M10 9.167a1.667 1.667 0 1 0 0 3.333 1.667 1.667 0 0 0 0-3.333Zm-3.333 1.666a3.333 3.333 0 1 1 6.666 0 3.333 3.333 0 0 1-6.666 0Z">'),hh=(e={})=>(()=>{const t=Mh();return be(t,e,!0,!0),t})(),yh=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 20 20"><path stroke=#fff stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M4.167 10.833 7.5 14.167l8.333-8.334">'),mh=(e={})=>(()=>{const t=yh();return be(t,e,!0,!0),t})();function Nh(e,t=e.getState,n){const i=t(e.getState()),[r,o]=Ar(i),s=(c,u)=>{const l=t(u),g=t(c);n!==void 0&&n(l,g)||o(ks(g))},a=e.subscribe(s);return V(()=>a()),r}const Dc=Ce(),Th=e=>{const[t,n]=Ar(e.mergedDefaults),i=Nh(k);Lt(()=>{(async()=>{const o=await ds(e.sdkSettings);n({captureSdk:o})})()}),H(()=>{const o=e.mergedDefaults.dismountFn;if(t.captureSdk){const s=t.captureSdk.subscribe(a=>a.videoElement,(a,c)=>{!a&&c&&o()});V(()=>s())}});const r={solidStore:t,updateSolidStore:n,sdkStore:i};return L(Dc.Provider,{value:r,get children(){return e.children}})};function xt(){const e=ze(Dc);if(!e)throw new Error("StoreContext.Provider not in scope");return e}const Uy="",Yy="",Py="",Ry="",Fy="",By="",Hy="",Qy="",Gy="",Vy="",Ky="",Lh=()=>{const{solidStore:e,sdkStore:t}=xt(),n=()=>[...t.cameras.map(a=>({value:a.deviceInfo.deviceId,label:a.name,disabled:!1}))],i=()=>n().find(a=>a.value===t.selectedCamera?.deviceInfo.deviceId),r=async a=>{if(!e.captureSdk)return;s(!0);const c=t.cameras.find(u=>u.deviceInfo.deviceId===a);if(!c){console.warn("No camera");return}await e.captureSdk.selectCamera(c),s(!1)},[o,s]=P(!1);return L(th,{get options(){return n()},get value(){return i()},optionValue:"value",optionTextValue:"label",optionDisabled:"disabled",placeholder:"Select a camera...",get disabled(){return o()},onChange:a=>void r(a.value),itemComponent:a=>L(VM,{get item(){return a.item},class:"mb-19vyq8p",get children(){return[L($M,{class:"mb-1v5y2d4",get children(){return a.item.textValue}}),L(KM,{class:"mb-1my8n64",get children(){return L(mh,{class:"mb-gliefk"})}})]}}),get children(){return[L(nh,{"aria-label":"Camera",class:"mb-16knymi",get children(){return[L(hh,{class:"mb-1v0j9xg"}),L(rh,{class:"mb-1vhx4rq",children:a=>a.selectedOption().label}),L(qM,{class:"mb-16n64rq",get children(){return L(gh,{class:"mb-1pgdg8r"})}})]}}),L(JM,{get children(){return L(ZM,{get class(){return st("mb-style-scope","mb-qbe87e")},get children(){return L(XM,{class:"mb-1woc7wg"})}})}})]}})},jh=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 18 18"><path fill=#fff d="M17.623 2.195A1.286 1.286 0 1 0 15.805.377L9 7.182 2.195.377A1.286 1.286 0 1 0 .377 2.195L7.182 9 .377 15.805a1.286 1.286 0 0 0 1.818 1.818L9 10.818l6.805 6.805a1.286 1.286 0 0 0 1.818-1.818L10.818 9l6.805-6.805Z">'),mo=(e={})=>(()=>{const t=jh();return be(t,e,!0,!0),t})(),$y="",Wy="",Zy="",qy="",Xy="",Ah=ne("<div>"),Eh=ne("<div><div>"),Sh=()=>{const{sdkStore:e,solidStore:t}=xt(),{t:n}=Ut();return(()=>{const i=Eh(),r=i.firstChild;return G(i,L(he,{get when(){return e.cameras.length>1},get children(){const o=Ah();return ge(o,"mb-15a7aro"),G(o,L(Lh,{})),o}}),r),ge(r,"mb-1fovbrr"),G(r,L(pi,{get"aria-label"(){return n.dismiss},onclick:()=>t.dismountFn(),class:"mb-1kkaye",get children(){return L(mo,{width:16})}})),Be(()=>ge(i,st("mb-sihyjw",ph))),i})()},ph="mb-1pqj4ih";function bc(e,t){e.indexOf(t)===-1&&e.push(t)}function Ih(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const vc=(e,t,n)=>Math.min(Math.max(n,e),t),qe={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Rn=e=>typeof e=="number",hn=e=>Array.isArray(e)&&!Rn(e[0]),wh=(e,t,n)=>{const i=t-e;return((n-e)%i+i)%i+e};function xh(e,t){return hn(e)?e[wh(0,e.length,t)]:e}const Oc=(e,t,n)=>-n*e+n*t+e,Cc=()=>{},Dt=e=>e,No=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function zc(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=No(0,t,i);e.push(Oc(n,1,r))}}function Dh(e){const t=[0];return zc(t,e-1),t}function bh(e,t=Dh(e.length),n=Dt){const i=e.length,r=i-t.length;return r>0&&zc(t,r),o=>{let s=0;for(;s<i-2&&!(o<t[s+1]);s++);let a=vc(0,1,No(t[s],t[s+1],o));return a=xh(n,s)(a),Oc(e[s],e[s+1],a)}}const _c=e=>Array.isArray(e)&&Rn(e[0]),To=e=>typeof e=="object"&&!!e.createAnimation,yn=e=>typeof e=="function",vh=e=>typeof e=="string",Lo={ms:e=>e*1e3,s:e=>e/1e3},kc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Oh=1e-7,Ch=12;function zh(e,t,n,i,r){let o,s,a=0;do s=t+(n-t)/2,o=kc(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>Oh&&++a<Ch);return s}function Fn(e,t,n,i){if(e===t&&n===i)return Dt;const r=o=>zh(o,0,1,e,n);return o=>o===0||o===1?o:kc(r(o),t,i)}const _h=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const i=n*e,r=t==="end"?Math.floor(i):Math.ceil(i);return vc(0,1,r/e)},Uc={ease:Fn(.25,.1,.25,1),"ease-in":Fn(.42,0,1,1),"ease-in-out":Fn(.42,0,.58,1),"ease-out":Fn(0,0,.58,1)},kh=/\((.*?)\)/;function Yc(e){if(yn(e))return e;if(_c(e))return Fn(...e);if(Uc[e])return Uc[e];if(e.startsWith("steps")){const t=kh.exec(e);if(t){const n=t[1].split(",");return _h(parseFloat(n[0]),n[1].trim())}}return Dt}class Uh{constructor(t,n=[0,1],{easing:i,duration:r=qe.duration,delay:o=qe.delay,endDelay:s=qe.endDelay,repeat:a=qe.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Dt,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((g,f)=>{this.resolve=g,this.reject=f}),i=i||qe.easing,To(i)){const g=i.createAnimation(n);i=g.easing,n=g.keyframes||n,r=g.duration||r}this.repeat=a,this.easing=hn(i)?Dt:Yc(i),this.updateDuration(r);const l=bh(n,c,hn(i)?i.map(Yc):Dt);this.tick=g=>{var f;o=o;let h=0;this.pauseTime!==void 0?h=this.pauseTime:h=(g-this.startTime)*this.rate,this.t=h,h/=1e3,h=Math.max(h-o,0),this.playState==="finished"&&this.pauseTime===void 0&&(h=this.totalDuration);const d=h/this.duration;let M=Math.floor(d),y=d%1;!y&&d>=1&&(y=1),y===1&&M--;const m=M%2;(u==="reverse"||u==="alternate"&&m||u==="alternate-reverse"&&!m)&&(y=1-y);const T=h>=this.totalDuration?1:Math.min(y,1),N=l(this.easing(T));t(N),this.pauseTime===void 0&&(this.playState==="finished"||h>=this.totalDuration+s)?(this.playState="finished",(f=this.resolve)===null||f===void 0||f.call(this,N)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}var Pc=function(){};process.env.NODE_ENV!=="production"&&(Pc=function(e,t){if(!e)throw new Error(t)});class Yh{setAnimation(t){this.animation=t,t?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const jo=new WeakMap;function Rc(e){return jo.has(e)||jo.set(e,{transforms:[],values:new Map}),jo.get(e)}function Ph(e,t){return e.has(t)||e.set(t,new Yh),e.get(t)}const Rh=["","X","Y","Z"],Fh=["translate","scale","rotate","skew"],mn={x:"translateX",y:"translateY",z:"translateZ"},Fc={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},Bh={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Fc,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Dt},skew:Fc},Nn=new Map,_i=e=>`--motion-${e}`,ki=["x","y","z"];Fh.forEach(e=>{Rh.forEach(t=>{ki.push(e+t),Nn.set(_i(e+t),Bh[e])})});const Hh=(e,t)=>ki.indexOf(e)-ki.indexOf(t),Qh=new Set(ki),Ao=e=>Qh.has(e),Gh=(e,t)=>{mn[t]&&(t=mn[t]);const{transforms:n}=Rc(e);bc(n,t),e.style.transform=Bc(n)},Bc=e=>e.sort(Hh).reduce(Vh,"").trim(),Vh=(e,t)=>`${e} ${t}(var(${_i(t)}))`,Eo=e=>e.startsWith("--"),Hc=new Set;function Kh(e){if(!Hc.has(e)){Hc.add(e);try{const{syntax:t,initialValue:n}=Nn.has(e)?Nn.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:n})}catch{}}}const So=(e,t)=>document.createElement("div").animate(e,t),Qc={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{So({opacity:[1]})}catch{return!1}return!0},finished:()=>!!So({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{So({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},po={},Tn={};for(const e in Qc)Tn[e]=()=>(po[e]===void 0&&(po[e]=Qc[e]()),po[e]);const $h=.015,Wh=(e,t)=>{let n="";const i=Math.round(t/$h);for(let r=0;r<i;r++)n+=e(No(0,i-1,r))+", ";return n.substring(0,n.length-2)},Gc=(e,t)=>yn(e)?Tn.linearEasing()?`linear(${Wh(e,t)})`:qe.easing:_c(e)?Zh(e):e,Zh=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`;function qh(e,t){for(let n=0;n<e.length;n++)e[n]===null&&(e[n]=n?e[n-1]:t());return e}const Xh=e=>Array.isArray(e)?e:[e];function Io(e){return mn[e]&&(e=mn[e]),Ao(e)?_i(e):e}const Bn={get:(e,t)=>{t=Io(t);let n=Eo(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!==0){const i=Nn.get(t);i&&(n=i.initialValue)}return n},set:(e,t,n)=>{t=Io(t),Eo(t)?e.style.setProperty(t,n):e.style[t]=n}};function Jh(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function e0(e,t){var n;let i=t?.toDefaultUnit||Dt;const r=e[e.length-1];if(vh(r)){const o=((n=r.match(/(-?[\d.]+)([a-z%]*)/))===null||n===void 0?void 0:n[2])||"";o&&(i=s=>s+o)}return i}function t0(){return window.__MOTION_DEV_TOOLS_RECORD}function n0(e,t,n,i={},r){const o=t0(),s=i.record!==!1&&o;let a,{duration:c=qe.duration,delay:u=qe.delay,endDelay:l=qe.endDelay,repeat:g=qe.repeat,easing:f=qe.easing,persist:h=!1,direction:d,offset:M,allowWebkitAcceleration:y=!1}=i;const m=Rc(e),T=Ao(t);let N=Tn.waapi();T&&Gh(e,t);const j=Io(t),A=Ph(m.values,j),E=Nn.get(j);return Jh(A.animation,!(To(f)&&A.generator)&&i.record!==!1),()=>{const S=()=>{var C,R;return(R=(C=Bn.get(e,j))!==null&&C!==void 0?C:E?.initialValue)!==null&&R!==void 0?R:0};let I=qh(Xh(n),S);const z=e0(I,E);if(To(f)){const C=f.createAnimation(I,t!=="opacity",S,j,A);f=C.easing,I=C.keyframes||I,c=C.duration||c}if(Eo(j)&&(Tn.cssRegisterProperty()?Kh(j):N=!1),T&&!Tn.linearEasing()&&(yn(f)||hn(f)&&f.some(yn))&&(N=!1),N){E&&(I=I.map(F=>Rn(F)?E.toDefaultUnit(F):F)),I.length===1&&(!Tn.partialKeyframes()||s)&&I.unshift(S());const C={delay:Lo.ms(u),duration:Lo.ms(c),endDelay:Lo.ms(l),easing:hn(f)?void 0:Gc(f,c),direction:d,iterations:g+1,fill:"both"};a=e.animate({[j]:I,offset:M,easing:hn(f)?f.map(F=>Gc(F,c)):void 0},C),a.finished||(a.finished=new Promise((F,x)=>{a.onfinish=F,a.oncancel=x}));const R=I[I.length-1];a.finished.then(()=>{h||(Bn.set(e,j,R),a.cancel())}).catch(Cc),y||(a.playbackRate=1.000001)}else if(r&&T)I=I.map(C=>typeof C=="string"?parseFloat(C):C),I.length===1&&I.unshift(parseFloat(S())),a=new r(C=>{Bn.set(e,j,z?z(C):C)},I,Object.assign(Object.assign({},i),{duration:c,easing:f}));else{const C=I[I.length-1];Bn.set(e,j,E&&Rn(C)?E.toDefaultUnit(C):C)}return s&&o(e,t,I,{duration:c,delay:u,easing:f,repeat:g,offset:M},"motion-one"),A.setAnimation(a),a}}const i0=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function r0(e,t){var n;return typeof e=="string"?t?((n=t[e])!==null&&n!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const o0={any:0,all:1};function s0(e,t,{root:n,margin:i,amount:r="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const o=r0(e),s=new WeakMap,a=u=>{u.forEach(l=>{const g=s.get(l.target);if(l.isIntersecting!==!!g)if(l.isIntersecting){const f=t(l);yn(f)?s.set(l.target,f):c.unobserve(l.target)}else g&&(g(l),s.delete(l.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof r=="number"?r:o0[r]});return o.forEach(u=>c.observe(u)),()=>c.disconnect()}function a0(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!c0(e,t):e!==t}function c0(e,t){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function u0(e){return typeof e=="object"}function Vc(e,t){if(u0(e))return e;if(e&&t)return t[e]}let bt;function l0(){if(!bt)return;const e=bt.sort(d0).map(g0);e.forEach(Kc),e.forEach(Kc),bt=void 0}function wo(e){bt?bc(bt,e):(bt=[e],requestAnimationFrame(l0))}function f0(e){bt&&Ih(bt,e)}const d0=(e,t)=>e.getDepth()-t.getDepth(),g0=e=>e.animateUpdates(),Kc=e=>e.next(),$c=(e,t)=>new CustomEvent(e,{detail:{target:t}});function xo(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}function Wc(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:n}}))}const M0={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:n},{inViewOptions:i={}})=>{const{once:r}=i,o=Qr(i,["once"]);return s0(e,s=>{if(t(),Wc(e,"viewenter",s),!r)return a=>{n(),Wc(e,"viewleave",a)}},o)}},Zc=(e,t,n)=>i=>{i.pointerType&&i.pointerType!=="mouse"||(n(),xo(e,t,i))},Ui={inView:M0,hover:{isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:n})=>{const i=Zc(e,"hoverstart",t),r=Zc(e,"hoverend",n);return e.addEventListener("pointerenter",i),e.addEventListener("pointerleave",r),()=>{e.removeEventListener("pointerenter",i),e.removeEventListener("pointerleave",r)}}},press:{isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:n})=>{const i=o=>{n(),xo(e,"pressend",o),window.removeEventListener("pointerup",i)},r=o=>{t(),xo(e,"pressstart",o),window.addEventListener("pointerup",i)};return e.addEventListener("pointerdown",r),()=>{e.removeEventListener("pointerdown",r),window.removeEventListener("pointerup",i)}}}},qc=["initial","animate",...Object.keys(Ui),"exit"],Do=new WeakMap;function h0(e={},t){let n,i=t?t.getDepth()+1:0;const r={initial:!0,animate:!0},o={},s={};for(const M of qc)s[M]=typeof e[M]=="string"?e[M]:t?.getContext()[M];const a=e.initial===!1?"animate":"initial";let c=Vc(e[a]||s[a],e.variants)||{},u=Qr(c,["transition"]);const l=Object.assign({},u);function*g(){var M,y;const m=u;u={};const T={};for(const S of qc){if(!r[S])continue;const I=Vc(e[S]);if(I)for(const z in I)z!=="transition"&&(u[z]=I[z],T[z]=i0((y=(M=I.transition)!==null&&M!==void 0?M:e.transition)!==null&&y!==void 0?y:{},z))}const N=new Set([...Object.keys(u),...Object.keys(m)]),j=[];N.forEach(S=>{var I;u[S]===void 0&&(u[S]=l[S]),a0(m[S],u[S])&&((I=l[S])!==null&&I!==void 0||(l[S]=Bn.get(n,S)),j.push(n0(n,S,u[S],T[S],Uh)))}),yield;const A=j.map(S=>S()).filter(Boolean);if(!A.length)return;const E=u;n.dispatchEvent($c("motionstart",E)),Promise.all(A.map(S=>S.finished)).then(()=>{n.dispatchEvent($c("motioncomplete",E))}).catch(Cc)}const f=(M,y)=>()=>{r[M]=y,wo(d)},h=()=>{for(const M in Ui){const y=Ui[M].isActive(e),m=o[M];y&&!m?o[M]=Ui[M].subscribe(n,{enable:f(M,!0),disable:f(M,!1)},e):!y&&m&&(m(),delete o[M])}},d={update:M=>{n&&(e=M,h(),wo(d))},setActive:(M,y)=>{n&&(r[M]=y,wo(d))},animateUpdates:g,getDepth:()=>i,getTarget:()=>u,getOptions:()=>e,getContext:()=>s,mount:M=>(Pc(!!M,"Animation state must be mounted with valid Element"),n=M,Do.set(n,d),h(),()=>{Do.delete(n),f0(d);for(const y in o)o[y]()}),isMounted:()=>!!n};return d}function y0(e){const t={},n=[];for(let i in e){const r=e[i];Ao(i)&&(mn[i]&&(i=mn[i]),n.push(i),i=_i(i));let o=Array.isArray(r)?r[0]:r;const s=Nn.get(i);s&&(o=Rn(r)?s.toDefaultUnit(r):r),t[i]=o}return n.length&&(t.transform=Bc(n)),t}var m0=()=>{},Xc=(e,t)=>t();function N0(e,t){const n=ye(e),i=n?[n]:[],{onEnter:r=Xc,onExit:o=Xc}=t,[s,a]=P(t.appear?[]:i),[c]=zl();let u,l=!1;function g(d,M){if(!d)return M&&M();l=!0,o(d,()=>{dr(()=>{l=!1,a(y=>y.filter(m=>m!==d)),M&&M()})})}function f(d){const M=u;if(!M)return d&&d();u=void 0,a(y=>[M,...y]),r(M,d??m0)}const h=t.mode==="out-in"?d=>l||g(d,f):t.mode==="in-out"?d=>f(()=>g(d)):d=>{g(d),f()};return ys(d=>{const M=e();return ye(c)?(c(),d):(M!==d&&(u=M,dr(()=>ye(()=>h(d)))),M)},t.appear?void 0:n),s}const Jc=Ce(),T0=e=>{let t=e.initial!==!1;const n=L(Jc.Provider,{value:()=>t,get children(){return L(bo.Provider,{value:void 0,get children(){return N0(Hf(()=>e.children),{appear:t,mode:e.exitBeforeEnter?"out-in":"parallel",onExit(i,r){const o=Do.get(i);o&&o.getOptions().exit?eu(i,r):r()}})}})}});return t=!0,n},eu=(e,t)=>e.addEventListener("motioncomplete",t);function L0(e,t,n,i){const r=h0(n?.()===!1?{...t(),initial:!1}:t(),i);return Lt(()=>{const o=r.mount(e());V(()=>{n&&t().exit?(r.setActive("exit",!0),eu(e(),o)):o()}),yn(t)&&H(()=>r.update(t()))}),[r,y0(r.getTarget())]}const j0=["initial","animate","inView","inViewOptions","hover","press","variants","transition","exit"],A0=["tag","ref","style","onMotionStart","onMotionComplete","onHoverStart","onHoverEnd","onPressStart","onPressEnd","onViewEnter","onViewLeave"],bo=Ce(),tu=e=>{const[t,,n]=ae(e,j0,A0),[i,r]=L0(()=>o,()=>({...t}),ze(Jc),ze(bo));let o;return L(bo.Provider,{value:i,get children(){return L(pn,q({ref:s=>{o=s,e.ref?.(s)},get component(){return e.tag||"div"},get style(){return Y(()=>!!e.style)()?Fs(e.style,r):r},get"on:motionstart"(){return e.onMotionStart},get"on:motioncomplete"(){return e.onMotionComplete},get"on:hoverstart"(){return e.onHoverStart},get"on:hoverend"(){return e.onHoverEnd},get"on:pressstart"(){return e.onPressStart},get"on:pressend"(){return e.onPressEnd},get"on:viewenter"(){return e.onViewEnter},get"on:viewleave"(){return e.onViewLeave}},n))}})},Ft=new Proxy(tu,{get:(e,t)=>n=>L(tu,q(n,{tag:t}))}),E0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 96 60"><path fill=#fff fill-rule=evenodd d="M0 6a6 6 0 0 1 6-6h84a6 6 0 0 1 6 6v48a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6V6Zm10.2 7.8c0-1.325 1.11-2.4 2.48-2.4h69.44c1.37 0 2.48 1.075 2.48 2.4s-1.11 2.4-2.48 2.4H12.68c-1.37 0-2.48-1.074-2.48-2.4Zm70.5 35.4a3.9 3.9 0 1 0 0-7.8 3.9 3.9 0 0 0 0 7.8Zm-70.5-3c0-1.326 1.098-2.4 2.451-2.4H34.15c1.353 0 2.451 1.075 2.451 2.4s-1.098 2.4-2.451 2.4h-21.5c-1.354 0-2.451-1.075-2.451-2.4Zm2.474-13.8c-1.366 0-2.474 1.075-2.474 2.4 0 1.326 1.108 2.4 2.474 2.4h30.452c1.366 0 2.474-1.075 2.474-2.4s-1.108-2.4-2.474-2.4H12.674Z"clip-rule=evenodd>'),nu=(e={})=>(()=>{const t=E0();return be(t,e,!0,!0),t})(),S0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 96 60"><path fill=#fff fill-rule=evenodd d="M6 0a6 6 0 0 0-6 6v48a6 6 0 0 0 6 6h84a6 6 0 0 0 6-6V6a6 6 0 0 0-6-6H6Zm42.671 10.8c-1.365 0-2.471 1.074-2.471 2.4 0 1.325 1.106 2.4 2.471 2.4H82.13c1.365 0 2.471-1.075 2.471-2.4s-1.106-2.4-2.471-2.4H48.67ZM72 49.2c0-1.326 1.058-2.4 2.364-2.4h7.272c1.306 0 2.364 1.075 2.364 2.4s-1.058 2.4-2.364 2.4h-7.272C73.058 51.6 72 50.525 72 49.2ZM48.702 33.6c-1.382 0-2.502 1.075-2.502 2.4s1.12 2.4 2.502 2.4h15.396c1.382 0 2.502-1.075 2.502-2.4s-1.12-2.4-2.502-2.4H48.702Zm-2.502-9c0-1.326 1.106-2.4 2.471-2.4H82.13c1.365 0 2.471 1.075 2.471 2.4S83.494 27 82.129 27H48.67c-1.365 0-2.471-1.075-2.471-2.4ZM13.265 10.8c-1.693 0-3.065 1.407-3.065 3.144v24.024c0 1.117.569 2.097 1.42 2.653.266.174.59.224.894.138a1.12 1.12 0 0 0 .698-.587c1.385-2.82 3.678-5.021 6.438-6.162.373-.154.637-.504.688-.915.05-.41-.119-.816-.443-1.062a7.227 7.227 0 0 1-2.84-5.78c0-3.962 3.115-7.164 6.945-7.164s6.944 3.203 6.944 7.165a7.227 7.227 0 0 1-2.839 5.78 1.155 1.155 0 0 0-.442 1.061c.05.41.314.76.688.915 2.76 1.14 5.052 3.343 6.437 6.162.142.288.395.501.698.587.304.086.628.036.893-.138a3.162 3.162 0 0 0 1.421-2.653V13.944c0-1.737-1.372-3.144-3.065-3.144h-21.47Z"clip-rule=evenodd>'),iu=(e={})=>(()=>{const t=S0();return be(t,e,!0,!0),t})(),p0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 96 96"><rect width=96 height=96 fill=#fff rx=48></rect><path fill=#000 d="M44.972 57.46a1.995 1.995 0 0 1-1.414-.584l-8.484-8.486a2 2 0 1 1 2.826-2.83l7.07 7.07L57.7 39.904a2 2 0 1 1 2.83 2.828L46.386 56.876a1.995 1.995 0 0 1-1.414.584Z">'),I0=(e={})=>(()=>{const t=p0();return be(t,e,!0,!0),t})(),w0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 100 100"><path fill=#fff fill-rule=evenodd d="M50 7.692C26.634 7.692 7.692 26.634 7.692 50S26.634 92.308 50 92.308 92.308 73.366 92.308 50 73.366 7.692 50 7.692ZM0 50C0 22.386 22.386 0 50 0s50 22.386 50 50-22.386 50-50 50S0 77.614 0 50Z"clip-rule=evenodd opacity=.75></path><circle cx=50 cy=50 r=4 fill=#fff>'),x0=(e={})=>(()=>{const t=w0();return be(t,e,!0,!0),t})(),D0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 100 100"><path fill=#fff fill-rule=evenodd d="M67.122 11.998a42.158 42.158 0 0 0-34.244 0l-3.397-7.644a50.523 50.523 0 0 1 41.038 0l-3.397 7.644Zm-55.124 20.88a42.158 42.158 0 0 0 0 34.244l-7.644 3.397a50.523 50.523 0 0 1 0-41.038l7.644 3.397Zm76.004 34.244a42.157 42.157 0 0 0 0-34.244l7.644-3.397a50.519 50.519 0 0 1 0 41.038l-7.644-3.397Zm-55.124 20.88a42.157 42.157 0 0 0 34.244 0l3.397 7.644a50.519 50.519 0 0 1-41.038 0l3.397-7.644Z"clip-rule=evenodd opacity=.75></path><circle cx=50 cy=50 r=4 fill=#fff>'),b0=(e={})=>(()=>{const t=D0();return be(t,e,!0,!0),t})(),v0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 101 100"><path fill=#fff fill-rule=evenodd d="M50.301 7.692C26.935 7.692 7.994 26.634 7.994 50S26.935 92.308 50.3 92.308C73.667 92.308 92.61 73.366 92.61 50S73.667 7.692 50.301 7.692ZM.301 50c0-27.614 22.386-50 50-50s50 22.386 50 50-22.386 50-50 50-50-22.386-50-50Z"clip-rule=evenodd opacity=.3></path><circle cx=50.3 cy=50 r=4 fill=#fff></circle><path fill=#fff fill-rule=evenodd d="M29.148 13.36C8.912 25.043 1.977 50.918 13.662 71.154L7 75C-6.807 51.085 1.387 20.506 25.301 6.699l3.847 6.661Z"clip-rule=evenodd>'),O0=(e={})=>(()=>{const t=v0();return be(t,e,!0,!0),t})(),ru={SENSING_FRONT:"scan_the_front_side",SENSING_BACK:"scan_the_back_side",SIDE_CAPTURED:"flip_document",WRONG_SIDE:"scanning_wrong_side",BLUR_DETECTED:"blur_detected",GLARE_DETECTED:"glare_detected",OCCLUDED:"occluded",DOCUMENT_FRAMING_CAMERA_TOO_CLOSE:"move_farther",DOCUMENT_FRAMING_CAMERA_TOO_FAR:"move_closer",DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE:"document_too_close_to_edge",DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP:"camera_angle_too_steep",DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE:"rotate_phone",DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION:"rotate_phone_animation",LIGHTING_TOO_DARK:"lightning_too_dark",LIGHTING_TOO_BRIGHT:"lightning_too_bright"},tm="",nm="",im="",rm="",om="",sm="",am="",cm="",um="",lm="",fm="",dm="",gm="",Mm="",hm="",ym="",mm="",Nm="",C0=ne("<div><div><div><div>"),Yi=ne("<div>"),z0=()=>{const{sdkStore:e}=xt(),t=()=>{const n=e.videoElement.videoWidth,i=e.videoElement.videoHeight;return n>i?"landscape":"portrait"};return(()=>{const n=C0(),i=n.firstChild,r=i.firstChild,o=r.firstChild;return ge(n,"mb-79tnxm"),ge(r,"mb-1kst2vr"),ge(o,"mb-qaqzbh"),G(o,L(Nr,{get children(){return[L(rt,{get when(){return e.uiState.reticleType==="searching"},get children(){return L(Y0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="processing"},get children(){return L(R0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="error"},get children(){return L(P0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="done"},get children(){return L(_0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="flip"},get children(){return L(U0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="rotate"},get children(){return L(k0,{get videoOrientation(){return t()}})}})]}})),G(i,L(F0,{get uiState(){return e.uiState}}),null),n})()},_0=()=>L(Ft,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1,transition:{easing:"ease-in-out",duration:.3}},exit:{opacity:0,scale:5},get children(){return L(I0,{class:"mb-oegy9h"})}}),k0=e=>(()=>{const t=Yi();return ge(t,"mb-72esi9"),G(t,L(Ft,{class:"mb-pcpdyq",get initial(){return{opacity:0,rotateZ:e.videoOrientation==="landscape"?"90deg":"0deg"}},get animate(){return{opacity:1,rotateZ:[e.videoOrientation==="landscape"?"0deg":"90deg"],transition:{rotateZ:{duration:(Le.DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION.minDuration-1500)/1e3},opacity:{duration:.5}}}},exit:{opacity:0},get children(){return[L(iu,{class:Pi}),L(nu,{get class(){return st(Pi,"mb-12tdqjq")}})]}})),t})(),U0=()=>(()=>{const e=Yi();return ge(e,"mb-ah9it3"),G(e,L(Ft,{class:"mb-pcpdyq",initial:{opacity:0},get animate(){return{opacity:1,rotateY:["180deg"],transition:{rotateY:{duration:(Le.SIDE_CAPTURED.minDuration-1500)/1e3},opacity:{duration:.5}}}},exit:{opacity:0},get children(){return[L(iu,{class:Pi}),L(nu,{get class(){return st(Pi,"mb-12tdqjq")}})]}})),e})(),Pi="mb-3q2rd5",vo=e=>L(Ft.div,{class:"mb-1v17koz",initial:{opacity:0},get animate(){return{opacity:1,background:e.type==="error"?"var(--mb-reticle-error)":"var(--mb-reticle-ok)",transition:{delay:.05}}},transition:{duration:.05},get children(){return e.children}}),Y0=()=>L(vo,{type:"searching",get children(){return L(Ft,{class:"mb-5pevkr",animate:{opacity:1,transform:"rotate(360deg)"},transition:{transform:{duration:1,easing:"ease-in-out",repeat:1/0}},get children(){return L(b0,{class:"mb-1i7l9ps"})}})}}),P0=()=>L(vo,{type:"error",get children(){return L(x0,{class:"mb-1omzjeg"})}}),R0=()=>L(vo,{type:"processing",get children(){return L(Ft,{animate:{opacity:1,rotate:"360deg"},transition:{rotate:{duration:.8,easing:[.23,.58,.58,.23],repeat:1/0}},get children(){return L(O0,{class:"mb-1i7l9ps"})}})}}),F0=e=>{const{t}=Ut(),n=()=>{if(e.uiState.key in ru)return ru[e.uiState.key]};return(()=>{const i=Yi();return ge(i,"mb-dcm5x3"),G(i,L(T0,{exitBeforeEnter:!0,get children(){return L(Pf,{on:()=>e.uiState.key,get children(){return L(he,{get when(){return n()},get children(){return L(Ft.div,{initial:{opacity:0,transform:"translateY(30px)"},animate:{opacity:1,transform:"translateY(0)",transition:{delay:.05}},transition:{duration:.05},exit:{opacity:0,transform:"translateY(-30px)"},class:"mb-j1awg8",get children(){const r=Yi();return G(r,()=>t[n()]),r}})}})}})}})),i})()},B0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 36 36"><path fill=#0062F2 fill-rule=evenodd d="M12 15c0-3.315 2.685-6 6-6s6 2.685 6 6c0 1.924-1.185 2.96-2.339 3.968-1.095.957-2.161 1.889-2.161 3.532h-3c0-2.732 1.413-3.815 2.656-4.767C20.13 16.985 21 16.319 21 15c0-1.65-1.35-3-3-3s-3 1.35-3 3h-3Zm7.5 9v3h-3v-3h3Z"clip-rule=evenodd>'),H0=(e={})=>(()=>{const t=B0();return be(t,e,!0,!0),t})(),Tm="",Lm="",jm="",Q0=ne("<p>"),G0=ne("<div>"),V0=()=>{const{updateSolidStore:e}=xt(),{t}=Ut();return(()=>{const n=G0();return G(n,L(lh,{overflowPadding:32,get children(){return[L(fh,{onclick:()=>e({helpVisible:!0}),class:K0,get children(){return L(H0,{class:"mb-1slvbtw"})}}),L(ah,{get children(){return L(sh,{get class(){return st($0,"mb-style-scope")},get children(){return[L(oM,{}),(()=>{const i=Q0();return G(i,()=>t.need_help_tooltip),i})()]}})}})]}})),n})()},K0="mb-posxld",$0="mb-1yc0yna";var W0=e=>typeof e=="function"&&!e.length?e():e,Ln=function(){return Ln=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ln.apply(this,arguments)};function ou(e,t,n){if(n||arguments.length===2)for(var i,r=0,o=t.length;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))}function su(e){return Array.prototype.slice.call(e)}function au(e,t){var n=Math.floor(e);return n===t||n+1===t?e:t}function cu(){return Date.now()}function Oo(e,t,n){if(t="data-keen-slider-"+t,n===null)return e.removeAttribute(t);e.setAttribute(t,n||"")}function Ri(e,t){return t=t||document,typeof e=="function"&&(e=e(t)),Array.isArray(e)?e:typeof e=="string"?su(t.querySelectorAll(e)):e instanceof HTMLElement?[e]:e instanceof NodeList?su(e):[]}function Hn(e){e.raw&&(e=e.raw),e.cancelable&&!e.defaultPrevented&&e.preventDefault()}function Qn(e){e.raw&&(e=e.raw),e.stopPropagation&&e.stopPropagation()}function uu(){var e=[];return{add:function(t,n,i,r){t.addListener?t.addListener(i):t.addEventListener(n,i,r),e.push([t,n,i,r])},input:function(t,n,i,r){this.add(t,n,function(o){return function(s){s.nativeEvent&&(s=s.nativeEvent);var a=s.changedTouches||[],c=s.targetTouches||[],u=s.detail&&s.detail.x?s.detail:null;return o({id:u?u.identifier?u.identifier:"i":c[0]?c[0]?c[0].identifier:"e":"d",idChanged:u?u.identifier?u.identifier:"i":a[0]?a[0]?a[0].identifier:"e":"d",raw:s,x:u&&u.x?u.x:c[0]?c[0].screenX:u?u.x:s.pageX,y:u&&u.y?u.y:c[0]?c[0].screenY:u?u.y:s.pageY})}}(i),r)},purge:function(){e.forEach(function(t){t[0].removeListener?t[0].removeListener(t[2]):t[0].removeEventListener(t[1],t[2],t[3])}),e=[]}}}function Co(e,t,n){return Math.min(Math.max(e,t),n)}function Xe(e){return(e>0?1:0)-(e<0?1:0)||+e}function lu(e){var t=e.getBoundingClientRect();return{height:au(t.height,e.offsetHeight),width:au(t.width,e.offsetWidth)}}function Ie(e,t,n,i){var r=e&&e[t];return r==null?n:i&&typeof r=="function"?r():r}function We(e){return Math.round(1e6*e)/1e6}function Z0(e){var t,n,i,r,o,s;function a(f){s||(s=f),c(!0);var h=f-s;h>i&&(h=i);var d=r[n];if(d[3]<h)return n++,a(f);var M=d[2],y=d[4],m=d[0],T=d[1]*(0,d[5])(y===0?1:(h-M)/y);if(T&&e.track.to(m+T),h<i)return l();s=null,c(!1),u(null),e.emit("animationEnded")}function c(f){t.active=f}function u(f){t.targetIdx=f}function l(){var f;f=a,o=window.requestAnimationFrame(f)}function g(){var f;f=o,window.cancelAnimationFrame(f),c(!1),u(null),s&&e.emit("animationStopped"),s=null}return t={active:!1,start:function(f){if(g(),e.track.details){var h=0,d=e.track.details.position;n=0,i=0,r=f.map(function(M){var y,m=Number(d),T=(y=M.earlyExit)!==null&&y!==void 0?y:M.duration,N=M.easing,j=M.distance*N(T/M.duration)||0;d+=j;var A=i;return i+=T,h+=j,[m,M.distance,A,i,M.duration,N]}),u(e.track.distToIdx(h)),l(),e.emit("animationStarted")}},stop:g,targetIdx:null}}function q0(e){var t,n,i,r,o,s,a,c,u,l,g,f,h,d,M=1/0,y=[],m=null,T=0;function N(D){F(T+D)}function j(D){var b=A(T+D).abs;return I(b)?b:null}function A(D){var b=Math.floor(Math.abs(We(D/n))),w=We((D%n+n)%n);w===n&&(w=0);var v=Xe(D),O=a.indexOf(ou([],a,!0).reduce(function($,X){return Math.abs(X-w)<Math.abs($-w)?X:$})),_=O;return v<0&&b++,O===s&&(_=0,b+=v>0?1:-1),{abs:_+b*s*v,origin:O,rel:_}}function E(D,b,w){var v;if(b||!C())return S(D,w);if(!I(D))return null;var O=A(w??T),_=O.abs,$=D-O.rel,X=_+$;v=S(X);var se=S(X-s*Xe($));return(se!==null&&Math.abs(se)<Math.abs(v)||v===null)&&(v=se),We(v)}function S(D,b){if(b==null&&(b=We(T)),!I(D)||D===null)return null;D=Math.round(D);var w=A(b),v=w.abs,O=w.rel,_=w.origin,$=R(D),X=(b%n+n)%n,se=a[_],Se=Math.floor((D-(v-O))/s)*n;return We(se-X-se+a[$]+Se+(_===s?n:0))}function I(D){return z(D)===D}function z(D){return Co(D,u,l)}function C(){return r.loop}function R(D){return(D%s+s)%s}function F(D){var b;b=D-T,y.push({distance:b,timestamp:cu()}),y.length>6&&(y=y.slice(-6)),T=We(D);var w=x().abs;if(w!==m){var v=m!==null;m=w,v&&e.emit("slideChanged")}}function x(D){var b=D?null:function(){if(s){var w=C(),v=w?(T%n+n)%n:T,O=(w?T%n:T)-o[0][2],_=0-(O<0&&w?n-Math.abs(O):O),$=0,X=A(T),se=X.abs,Se=X.rel,at=o[Se][2],Je=o.map(function(U,de){var fe=_+$;(fe<0-U[0]||fe>1)&&(fe+=(Math.abs(fe)>n-1&&w?n:0)*Xe(-fe));var Bt=de-Se,Gn=Xe(Bt),Ht=Bt+se;w&&(Gn===-1&&fe>at&&(Ht+=s),Gn===1&&fe<at&&(Ht-=s),g!==null&&Ht<g&&(fe+=n),f!==null&&Ht>f&&(fe-=n));var Qt=fe+U[0]+U[1],Bi=Math.max(fe>=0&&Qt<=1?1:Qt<0||fe>1?0:fe<0?Math.min(1,(U[0]+fe)/U[0]):(1-fe)/U[0],0);return $+=U[0]+U[1],{abs:Ht,distance:r.rtl?-1*fe+1-U[0]:fe,portion:Bi,size:U[0]}});return se=z(se),Se=R(se),{abs:z(se),length:i,max:d,maxIdx:l,min:h,minIdx:u,position:T,progress:w?v/n:T/i,rel:Se,slides:Je,slidesLength:n}}}();return t.details=b,e.emit("detailsChanged"),b}return t={absToRel:R,add:N,details:null,distToIdx:j,idxToDist:E,init:function(D){if(function(){if(r=e.options,o=(r.trackConfig||[]).map(function(O){return[Ie(O,"size",1),Ie(O,"spacing",0),Ie(O,"origin",0)]}),s=o.length){n=We(o.reduce(function(O,_){return O+_[0]+_[1]},0));var w,v=s-1;i=We(n+o[0][2]-o[v][0]-o[v][2]-o[v][1]),a=o.reduce(function(O,_){if(!O)return[0];var $=o[O.length-1],X=O[O.length-1]+($[0]+$[2])+$[1];return X-=_[2],O[O.length-1]>X&&(X=O[O.length-1]),X=We(X),O.push(X),(!w||w<X)&&(c=O.length-1),w=X,O},null),i===0&&(c=0),a.push(We(n))}}(),!s)return x(!0);var b;(function(){var w=e.options.range,v=e.options.loop;g=u=v?Ie(v,"min",-1/0):0,f=l=v?Ie(v,"max",M):c;var O=Ie(w,"min",null),_=Ie(w,"max",null);O!==null&&(u=O),_!==null&&(l=_),h=u===-1/0?u:e.track.idxToDist(u||0,!0,0),d=l===M?l:E(l,!0,0),_===null&&(f=l),Ie(w,"align",!1)&&l!==M&&o[R(l)][2]===0&&(d-=1-o[R(l)][0],l=j(d-T)),h=We(h),d=We(d)})(),b=D,Number(b)===b?N(S(z(D))):x()},to:F,velocity:function(){var D=cu(),b=y.reduce(function(w,v){var O=v.distance,_=v.timestamp;return D-_>200||(Xe(O)!==Xe(w.distance)&&w.distance&&(w={distance:0,lastTimestamp:0,time:0}),w.time&&(w.distance+=O),w.lastTimestamp&&(w.time+=_-w.lastTimestamp),w.lastTimestamp=_),w},{distance:0,lastTimestamp:0,time:0});return b.distance/b.time||0}}}function X0(e){var t,n,i,r,o,s,a,c;function u(m){return 2*m}function l(m){return Co(m,a,c)}function g(m){return 1-Math.pow(1-m,3)}function f(){return i?e.track.velocity():0}function h(){y();var m=e.options.mode==="free-snap",T=e.track,N=f();r=Xe(N);var j=e.track.details,A=[];if(N||!m){var E=d(N),S=E.dist,I=E.dur;if(I=u(I),S*=r,m){var z=T.idxToDist(T.distToIdx(S),!0);z&&(S=z)}A.push({distance:S,duration:I,easing:g});var C=j.position,R=C+S;if(R<o||R>s){var F=R<o?o-C:s-C,x=0,D=N;if(Xe(F)===r){var b=Math.min(Math.abs(F)/Math.abs(S),1),w=function(_){return 1-Math.pow(1-_,1/3)}(b)*I;A[0].earlyExit=w,D=N*(1-b)}else A[0].earlyExit=0,x+=F;var v=d(D,100),O=v.dist*r;e.options.rubberband&&(A.push({distance:O,duration:u(v.dur),easing:g}),A.push({distance:-O+x,duration:500,easing:g}))}e.animator.start(A)}else e.moveToIdx(l(j.abs),!0,{duration:500,easing:function(_){return 1+--_*_*_*_*_}})}function d(m,T){T===void 0&&(T=1e3);var N=147e-9+(m=Math.abs(m))/T;return{dist:Math.pow(m,2)/N,dur:m/N}}function M(){var m=e.track.details;m&&(o=m.min,s=m.max,a=m.minIdx,c=m.maxIdx)}function y(){e.animator.stop()}e.on("updated",M),e.on("optionsChanged",M),e.on("created",M),e.on("dragStarted",function(){i=!1,y(),t=n=e.track.details.abs}),e.on("dragChecked",function(){i=!0}),e.on("dragEnded",function(){var m=e.options.mode;m==="snap"&&function(){var T=e.track,N=e.track.details,j=N.position,A=Xe(f());(j>s||j<o)&&(A=0);var E=t+A;N.slides[T.absToRel(E)].portion===0&&(E-=A),t!==n&&(E=n),Xe(T.idxToDist(E,!0))!==A&&(E+=A),E=l(E);var S=T.idxToDist(E,!0);e.animator.start([{distance:S,duration:500,easing:function(I){return 1+--I*I*I*I*I}}])}(),m!=="free"&&m!=="free-snap"||h()}),e.on("dragged",function(){n=e.track.details.abs})}function J0(e){var t,n,i,r,o,s,a,c,u,l,g,f,h,d,M,y,m,T,N=uu();function j(x){if(s&&c===x.id){var D=I(x);if(u){if(!S(x))return E(x);l=D,u=!1,e.emit("dragChecked")}if(y)return l=D;Hn(x);var b=function(v){if(m===-1/0&&T===1/0)return v;var O=e.track.details,_=O.length,$=O.position,X=Co(v,m-$,T-$);if(_===0)return 0;if(!e.options.rubberband)return X;if($<=T&&$>=m||$<m&&n>0||$>T&&n<0)return v;var se=($<m?$-m:$-T)/_,Se=r*_,at=Math.abs(se*Se),Je=Math.max(0,1-at/o*2);return Je*Je*v}(a(l-D)/r*i);n=Xe(b);var w=e.track.details.position;(w>m&&w<T||w===m&&n>0||w===T&&n<0)&&Qn(x),g+=b,!f&&Math.abs(g*r)>5&&(f=!0),e.track.add(b),l=D,e.emit("dragged")}}function A(x){!s&&e.track.details&&e.track.details.length&&(g=0,s=!0,f=!1,u=!0,c=x.id,S(x),l=I(x),e.emit("dragStarted"))}function E(x){s&&c===x.idChanged&&(s=!1,e.emit("dragEnded"))}function S(x){var D=z(),b=D?x.y:x.x,w=D?x.x:x.y,v=h!==void 0&&d!==void 0&&Math.abs(d-w)<=Math.abs(h-b);return h=b,d=w,v}function I(x){return z()?x.y:x.x}function z(){return e.options.vertical}function C(){r=e.size,o=z()?window.innerHeight:window.innerWidth;var x=e.track.details;x&&(m=x.min,T=x.max)}function R(x){f&&(Qn(x),Hn(x))}function F(){if(N.purge(),e.options.drag&&!e.options.disabled){var x;x=e.options.dragSpeed||1,a=typeof x=="function"?x:function(b){return b*x},i=e.options.rtl?-1:1,C(),t=e.container,function(){var b="data-keen-slider-clickable";Ri("[".concat(b,"]:not([").concat(b,"=false])"),t).map(function(w){N.add(w,"dragstart",Qn),N.add(w,"mousedown",Qn),N.add(w,"touchstart",Qn)})}(),N.add(t,"dragstart",function(b){Hn(b)}),N.add(t,"click",R,{capture:!0}),N.input(t,"ksDragStart",A),N.input(t,"ksDrag",j),N.input(t,"ksDragEnd",E),N.input(t,"mousedown",A),N.input(t,"mousemove",j),N.input(t,"mouseleave",E),N.input(t,"mouseup",E),N.input(t,"touchstart",A,{passive:!0}),N.input(t,"touchmove",j,{passive:!1}),N.input(t,"touchend",E),N.input(t,"touchcancel",E),N.add(window,"wheel",function(b){s&&Hn(b)});var D="data-keen-slider-scrollable";Ri("[".concat(D,"]:not([").concat(D,"=false])"),e.container).map(function(b){return function(w){var v;N.input(w,"touchstart",function(O){v=I(O),y=!0,M=!0},{passive:!0}),N.input(w,"touchmove",function(O){var _=z(),$=_?w.scrollHeight-w.clientHeight:w.scrollWidth-w.clientWidth,X=v-I(O),se=_?w.scrollTop:w.scrollLeft,Se=_&&w.style.overflowY==="scroll"||!_&&w.style.overflowX==="scroll";if(v=I(O),(X<0&&se>0||X>0&&se<$)&&M&&Se)return y=!0;M=!1,Hn(O),y=!1}),N.input(w,"touchend",function(){y=!1})}(b)})}}e.on("updated",C),e.on("optionsChanged",F),e.on("created",F),e.on("destroyed",N.purge)}function ey(e){var t,n,i=null;function r(h,d,M){e.animator.active?s(h,d,M):requestAnimationFrame(function(){return s(h,d,M)})}function o(){r(!1,!1,n)}function s(h,d,M){var y=0,m=e.size,T=e.track.details;if(T&&t){var N=T.slides;t.forEach(function(j,A){if(h)!i&&d&&c(j,null,M),u(j,null,M);else{if(!N[A])return;var E=N[A].size*m;!i&&d&&c(j,E,M),u(j,N[A].distance*m-y,M),y+=E}})}}function a(h){return e.options.renderMode==="performance"?Math.round(h):h}function c(h,d,M){var y=M?"height":"width";d!==null&&(d=a(d)+"px"),h.style["min-"+y]=d,h.style["max-"+y]=d}function u(h,d,M){if(d!==null){d=a(d);var y=M?d:0;d="translate3d(".concat(M?0:d,"px, ").concat(y,"px, 0)")}h.style.transform=d,h.style["-webkit-transform"]=d}function l(){t&&(s(!0,!0,n),t=null),e.on("detailsChanged",o,!0)}function g(){r(!1,!0,n)}function f(){l(),n=e.options.vertical,e.options.disabled||e.options.renderMode==="custom"||(i=Ie(e.options.slides,"perView",null)==="auto",e.on("detailsChanged",o),(t=e.slides).length&&g())}e.on("created",f),e.on("optionsChanged",f),e.on("beforeOptionsChanged",function(){l()}),e.on("updated",g),e.on("destroyed",l)}function ty(e,t){return function(n){var i,r,o,s,a,c=uu();function u(S){var I;Oo(n.container,"reverse",(I=n.container,window.getComputedStyle(I,null).getPropertyValue("direction")!=="rtl"||S?null:"")),Oo(n.container,"v",n.options.vertical&&!S?"":null),Oo(n.container,"disabled",n.options.disabled&&!S?"":null)}function l(){g()&&y()}function g(){var S=null;if(s.forEach(function(z){z.matches&&(S=z.__media)}),S===i)return!1;i||n.emit("beforeOptionsChanged"),i=S;var I=S?o.breakpoints[S]:o;return n.options=Ln(Ln({},o),I),u(),A(),E(),T(),!0}function f(S){var I=lu(S);return(n.options.vertical?I.height:I.width)/n.size||1}function h(){return n.options.trackConfig.length}function d(S){for(var I in i=!1,o=Ln(Ln({},t),S),c.purge(),r=n.size,s=[],o.breakpoints||[]){var z=window.matchMedia(I);z.__media=I,s.push(z),c.add(z,"change",l)}c.add(window,"orientationchange",j),c.add(window,"resize",N),g()}function M(S){n.animator.stop();var I=n.track.details;n.track.init(S??(I?I.abs:0))}function y(S){M(S),n.emit("optionsChanged")}function m(S,I){if(S)return d(S),void y(I);A(),E();var z=h();T(),h()!==z?y(I):M(I),n.emit("updated")}function T(){var S=n.options.slides;if(typeof S=="function")return n.options.trackConfig=S(n.size,n.slides);for(var I=n.slides,z=I.length,C=typeof S=="number"?S:Ie(S,"number",z,!0),R=[],F=Ie(S,"perView",1,!0),x=Ie(S,"spacing",0,!0)/n.size||0,D=F==="auto"?x:x/F,b=Ie(S,"origin","auto"),w=0,v=0;v<C;v++){var O=F==="auto"?f(I[v]):1/F-x+D,_=b==="center"?.5-O/2:b==="auto"?0:b;R.push({origin:_,size:O,spacing:x}),w+=O}if(w+=x*(C-1),b==="auto"&&!n.options.loop&&F!==1){var $=0;R.map(function(X){var se=w-$;return $+=X.size+x,se>=1||(X.origin=1-se-(w>1?0:1-w)),X})}n.options.trackConfig=R}function N(){A();var S=n.size;n.options.disabled||S===r||(r=S,m())}function j(){N(),setTimeout(N,500),setTimeout(N,2e3)}function A(){var S=lu(n.container);n.size=(n.options.vertical?S.height:S.width)||1}function E(){n.slides=Ri(n.options.selector,n.container)}n.container=(a=Ri(e,document)).length?a[0]:null,n.destroy=function(){c.purge(),n.emit("destroyed"),u(!0)},n.prev=function(){n.moveToIdx(n.track.details.abs-1,!0)},n.next=function(){n.moveToIdx(n.track.details.abs+1,!0)},n.update=m,d(n.options)}}var ny=function(e,t,n){try{return function(i,r){var o,s={};return o={emit:function(a){s[a]&&s[a].forEach(function(u){u(o)});var c=o.options&&o.options[a];c&&c(o)},moveToIdx:function(a,c,u){var l=o.track.idxToDist(a,c);if(l){var g=o.options.defaultAnimation;o.animator.start([{distance:l,duration:Ie(u||g,"duration",500),easing:Ie(u||g,"easing",function(f){return 1+--f*f*f*f*f})}])}},on:function(a,c,u){u===void 0&&(u=!1),s[a]||(s[a]=[]);var l=s[a].indexOf(c);l>-1?u&&delete s[a][l]:u||s[a].push(c)},options:i},function(){if(o.track=q0(o),o.animator=Z0(o),r)for(var a=0,c=r;a<c.length;a++)(0,c[a])(o);o.track.init(o.options.initial||0),o.emit("created")}(),o}(t,ou([ty(e,{drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"}),ey,J0,X0],n||[],!0))}catch(i){console.error(i)}};const iy=(e,...t)=>{let n,i;const r=()=>W0(e),[o,s]=P(r()?.initial||0),a=()=>n&&n.destroy(),c=(g={})=>({selector:i.childNodes,...r(),...g}),u=()=>n?.update(c());return[g=>{i=g,i.classList.add("keen-slider"),Lt(()=>{n=new ny(i,c(),t),n.on("slideChanged",()=>s(n.track.details.rel))}),V(a),typeof e=="function"&&H(Ze(()=>e,u))},{current:o,next:()=>n&&n.next(),prev:()=>n&&n.prev(),details:()=>n?n.track.details:{},slider:()=>n,moveTo:(g,f=250,h=!1,d)=>n?.moveToIdx(g,h,{duration:f,easing:d}),destroy:a,update:u}]},Am="",Em="",Sm="",Fi=e=>{const[t]=ae(e,["class"]);return L(pi,q(e,{get class(){return st(t.class,"mb-1epo54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gLjgyNi0xLjk5MmwtMi42NDEtMi42NDJaIi8+Cjwvc3ZnPg==",pm="",Im="",wm="",fu="mb-zjxyoc",du="mb-1mieit8",gu=st("mb-style-scope","mb-1ogpkgw"),xm="",Dm="",bm="",vm="",Om="",Cm="",zm="",ay=ne('<div><div><div><div><img alt=""srcset=""></div><div><h2></h2><p></p></div></div><div><div><img alt=""srcset=""></div><div><h2></h2><p></p></div></div><div><div><img alt=""srcset=""></div><div><h2></h2><p></p></div></div></div><div></div><div>'),Mu=ne("<div>"),cy=()=>{let e;const{solidStore:t,updateSolidStore:n}=xt(),[i,{current:r,next:o,prev:s}]=iy(),a=()=>{n({helpVisible:!1}),t.captureSdk?.startCapture()};Lt(()=>{i(e),t.captureSdk?.pauseCapture()});const{t:c}=Ut();return L(xi,{open:!0,get children(){return L(wi,{get children(){return[L(so,{class:du}),(()=>{const u=Mu();return ge(u,fu),G(u,L(Ii,{onEscapeKeyDown:a,onPointerDownOutside:a,onOpenAutoFocus:l=>l.preventDefault(),class:gu,get children(){return[L(ro,{onClick:a,class:"mb-8u3v3h",get children(){return L(mo,{class:"mb-h83tsy"})}}),(()=>{const l=ay(),g=l.firstChild,f=g.firstChild,h=f.firstChild,d=h.firstChild,M=h.nextSibling,y=M.firstChild,m=y.nextSibling,T=f.nextSibling,N=T.firstChild,j=N.firstChild,A=N.nextSibling,E=A.firstChild,S=E.nextSibling,I=T.nextSibling,z=I.firstChild,C=z.firstChild,R=z.nextSibling,F=R.firstChild,x=F.nextSibling,D=g.nextSibling,b=D.nextSibling;ge(l,"mb-d1kpoi");const w=e;return typeof w=="function"?ps(w,g):e=g,At(d,"src",ry),G(y,()=>c.tutorial_fields_visible_title),G(m,()=>c.tutorial_fields_visible_details),At(j,"src",oy),G(E,()=>c.tutorial_harsh_light_title),G(S,()=>c.tutorial_harsh_light_details),At(C,"src",sy),G(F,()=>c.tutorial_keep_still_title),G(x,()=>c.tutorial_keep_still_details),ge(D,"mb-slxsc0"),G(D,L(Es,{get each(){return new Array(3).fill(null)},children:(v,O)=>(()=>{const _=Mu();return Be(()=>ge(_,st("mb-1777uja",O()===r()&&"mb-rp0tll"))),_})()})),ge(b,"mb-4sy7j9"),G(b,L(Fi,{get disabled(){return r()===0},onClick:()=>s(),variant:"secondary",get children(){return c.back}}),null),G(b,L(Nr,{get children(){return[L(rt,{get when(){return r()!==2},get children(){return L(Fi,{onClick:()=>o(),get children(){return c.next}})}}),L(rt,{get when(){return r()===2},get children(){return L(Fi,{onClick:a,get children(){return c.done}})}})]}}),null),l})()]}})),u})()]}})}})},uy="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyODAiIGhlaWdodD0iMjA2IiBmaWxsPSJub25lIj4KICA8cGF0aCBmaWxsPSIjMTQyNjQxIiBkPSJNMjI3LjA4NCAzNC4zNjlINDcuNTQ4Yy01LjAyMyAwLTkuMDk1IDQuMDU4LTkuMDk1IDkuMDYzdjk1LjY1OGMwIDUuMDA1IDQuMDcyIDkuMDYzIDkuMDk1IDkuMDYzaDE3OS41MzZjNS4wMjQgMCA5LjA5Ni00LjA1OCA5LjA5Ni05LjA2M1Y0My40MzJjMC01LjAwNS00LjA3Mi05LjA2My05LjA5Ni05LjA2M1oiIG9wYWNpdHk9Ii4zIi8+CiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIzMS4yODUgMjguNzg5SDUxLjc0OWMtNS4wMjQgMC05LjA5NiA0LjA1Ny05LjA5NiA5LjA2M3Y5NS42NTdjMCA1LjAwNiA0LjA3MiA5LjA2MyA5LjA5NiA5LjA2M2gxNzkuNTM2YzUuMDIzIDAgOS4wOTUtNC4wNTcgOS4wOTUtOS4wNjNWMzcuODUyYzAtNS4wMDUtNC4wNzItOS4wNjMtOS4wOTUtOS4wNjNaIi8+CiAgPHBhdGggZmlsbD0iIzE0MjY0MSIgZD0iTTIzMS4yODUgMTQzLjczSDUxLjc0OWMtNS42NTYgMC0x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NSAxOS4wNDJjLTQuMzcyIDAtNy45MjggMy41NDQtNy45MjggNy45djEyMS44OTRjMCA0LjM1NyAzLjU1NiA3LjkwMSA3LjkyOCA3LjkwMUgyNDEuNTFjNC4zNzMgMCA3LjkyOS0zLjU0NCA3LjkyOS03LjkwMVYyNi45MzhjMC00LjM1Ny0zLjU1Ni03LjktNy45MjktNy45SDM4LjQ5NXYuMDA0Wk0xMzguNiAxOTQuODRjNy42MDMgMCAxMy43NjYtNi4xNDIgMTMuNzY2LTEzLjcxOHMtNi4xNjMtMTMuNzE4LTEzLjc2Ni0xMy43MTgtMTMuNzY3IDYuMTQyLTEzLjc2NyAxMy43MTggNi4xNjQgMTMuNzE4IDEzLjc2NyAxMy43MThaIi8+CiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE0NC43NTUgMTc3LjA4MWExLjE2OCAxLjE2OCAwIDAgMC0xLjY1MiAwbC02LjE0MSA2LjExOS0yLjY3NC0yLjY2NGExLjE2OCAxLjE2OCAwIDAgMC0xLjY1MiAwIDEuMTYgMS4xNiAwIDAgMCAwIDEuNjQ2bDMuNDYzIDMuNDU1Yy4yMjguMjI4LjUyNy4zNC44MjYuMzRoLjA3NGMuMjk5IDAgLjU5OC0uMTEyLjgyNi0uMzRsNi45My02LjkwNWExLjE1OCAxLjE1OCAwIDAgMCAwLTEuNjQ2di0uMDA1WiIvPgo8L3N2Zz4=",_m="",km="",Um="",Ym="",Pm="",ly=ne('<div><img alt=""srcset=""><h2></h2><p>'),fy=ne("<div>"),dy=()=>{const[e,t]=P(!0),{solidStore:n}=xt(),i=()=>{t(!1),n.captureSdk?.startCapture()};Lt(()=>{n.captureSdk?.pauseCapture()});const{t:r}=Ut();return L(xi,{get open(){return e()},get children(){return L(wi,{get children(){return[L(so,{class:du}),(()=>{const o=fy();return ge(o,fu),G(o,L(Ii,{onEscapeKeyDown:i,onPointerDownOutside:i,class:gu,get children(){return[L(ro,{onClick:i,class:"mb-8u3v3h",get children(){return L(mo,{class:"mb-h83tsy"})}}),(()=>{const s=ly(),a=s.firstChild,c=a.nextSibling,u=c.nextSibling;return ge(s,"mb-zjp32o"),At(a,"src",uy),ge(a,"mb-zgw7tn"),G(c,()=>r.tutorial_fields_visible_title),G(u,()=>r.tutorial_fields_visible_details),G(s,L(Fi,{onClick:i,class:"mb-1r8ti85",get children(){return r.tutorial_fields_visible_start}}),null),s})()]}})),o})()]}})}})},gy=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 115 53"><path fill=#fff d="M35.088 19.572c1.314 0 2.178-.891 2.178-2.16 0-1.287-.855-2.151-2.178-2.151h-2.601v6.579h1.152v-2.268h1.449Zm-.225-3.285c.765 0 1.197.396 1.197 1.116 0 .72-.423 1.143-1.215 1.143h-1.206v-2.259h1.224Zm2.909 3.321c0 1.386 1 2.34 2.376 2.34 1.377 0 2.376-.954 2.376-2.34s-.999-2.34-2.376-2.34c-1.377 0-2.376.954-2.376 2.34Zm1.098 0c0-.81.522-1.359 1.278-1.359s1.278.549 1.278 1.359c0 .81-.522 1.359-1.278 1.359s-1.278-.549-1.278-1.359Zm5.466 2.232h1.07l.613-1.908c.225-.729.306-1.044.35-1.251.037.225.136.648.316 1.233l.612 1.926h1.026l1.539-4.446H48.7l-.594 1.908c-.081.279-.225.81-.297 1.143a16.122 16.122 0 0 0-.288-1.143l-.594-1.908h-1.116l-.612 1.908c-.144.441-.225.72-.306 1.152a14.615 14.615 0 0 0-.27-1.152l-.585-1.908h-1.143l1.44 4.446Zm8.14.117c1.16 0 1.97-.585 2.16-1.557h-1.017c-.126.423-.522.657-1.125.657-.73 0-1.143-.396-1.224-1.179l3.348-.009v-.333c0-1.386-.846-2.277-2.178-2.277-1.305 0-2.214.963-2.214 2.358 0 1.377.927 2.34 2.25 2.34Zm-.027-3.798c.657 0 1.08.405 1.08 1.017h-2.232c.108-.666.504-1.017 1.152-1.017Zm6.018-.783a1.948 1.948 0 0 0-.486-.063c-.594 0-1.017.297-1.206.738l-.063-.648h-1.035v4.437h1.098v-2.16c0-.864.495-1.287 1.287-1.287h.405v-1.017Zm2.763 4.581c1.16 0 1.97-.585 2.16-1.557h-1.018c-.126.423-.522.657-1.125.657-.729 0-1.143-.396-1.224-1.179l3.348-.009v-.333c0-1.386-.846-2.277-2.178-2.277-1.305 0-2.214.963-2.214 2.358 0 1.377.927 2.34 2.25 2.34Zm-.028-3.798c.657 0 1.08.405 1.08 1.017H60.05c.108-.666.504-1.017 1.152-1.017Zm5.055 3.798c.675 0 1.251-.297 1.521-.81l.072.693h1.008v-6.696H67.77v2.817c-.279-.441-.828-.702-1.449-.702-1.34 0-2.15.99-2.15 2.376 0 1.377.8 2.322 2.087 2.322Zm.243-1.008c-.765 0-1.233-.558-1.233-1.35s.468-1.359 1.233-1.359c.765 0 1.26.558 1.26 1.359 0 .801-.495 1.35-1.26 1.35Zm7.305.891.072-.693c.261.513.828.81 1.494.81 1.278 0 2.115-.945 2.115-2.313 0-1.404-.774-2.394-2.043-2.394-.675 0-1.269.297-1.557.792v-2.898h-1.098v6.696h1.017Zm.09-2.241c0-.801.495-1.359 1.251-1.359.774 0 1.233.567 1.233 1.359s-.459 1.35-1.233 1.35c-.756 0-1.25-.549-1.25-1.35Zm4.092 4.302c.243.063.513.099.819.099.728 0 1.197-.342 1.53-1.17l2.177-5.436H81.38l-1.206 3.24-1.142-3.24H77.87l1.791 4.635-.126.333c-.189.522-.459.621-.89.621h-.657v.918ZM19.816 35.596l-2.89-7.432H15v9.672h1.314V30.23l2.996 7.648h.959l3.022-7.716v7.675h1.355v-9.672h-1.939l-2.89 7.432Zm8.837-7.433h-1.422v9.673h1.422v-9.672Zm19.01 4.828a3.188 3.188 0 0 0 .59-1.87c0-.791-.34-1.53-.958-2.08-.637-.566-1.523-.876-2.497-.876h-3.925v9.673h1.422v-3.46h2.303l2.008 3.459h1.688l-2.15-3.696a3.277 3.277 0 0 0 1.519-1.15Zm-.86-1.856a1.925 1.925 0 0 1-.548 1.369c-.362.362-.87.561-1.43.561h-2.532v-3.573h2.532c1.128 0 1.979.706 1.979 1.643ZM54.28 28c-1.334 0-2.537.525-3.392 1.477-.822.918-1.276 2.169-1.276 3.523s.453 2.612 1.276 3.529c.852.948 2.057 1.47 3.392 1.47 1.341 0 2.55-.523 3.404-1.47.824-.916 1.278-2.17 1.278-3.53 0-1.36-.454-2.605-1.278-3.522C56.83 28.523 55.62 28 54.28 28Zm0 8.645a2.997 2.997 0 0 1-1.27-.278 3.047 3.047 0 0 1-1.04-.79c-.586-.678-.909-1.593-.909-2.577s.323-1.892.91-2.572a3.017 3.017 0 0 1 2.31-1.073c.892 0 1.715.381 2.316 1.074.59.68.916 1.593.916 2.57 0 .979-.325 1.899-.916 2.578a3.064 3.064 0 0 1-1.044.79c-.4.184-.834.28-1.273.278Zm12.474-3.883c.83-.466 1.322-1.283 1.322-2.199 0-1.413-1.233-2.4-2.995-2.4h-4.17v9.673h4.37c1.736 0 2.996-1.175 2.996-2.794.001-.972-.58-1.839-1.523-2.28Zm-1.431 3.747h-2.99v-3.002h2.786c1.022 0 1.71.557 1.71 1.386 0 .981-.591 1.616-1.506 1.616Zm-.364-4.303h-2.627v-2.714h2.787c.917 0 1.507.484 1.507 1.235.001.737-.515 1.48-1.667 1.48v-.001Zm6.787-4.043h-1.422v9.673h6.222v-1.355h-4.8v-8.318Zm7.808 0h-1.422v9.673h1.422v-9.672Zm8.93 7.157-4.954-7.126-.021-.03h-1.375v9.672h1.341v-7.51l5.219 7.51h1.131v-9.672h-1.34v7.156Zm7.694-2.9 3.72-4.257H98.16l-4.333 4.948v-4.947h-1.422v9.672h1.422V35.03l1.38-1.56 3.07 4.367H100l-3.822-5.417Zm-58.265 2.144c-.634 1.468-1.448 2.094-2.726 2.094-.874 0-1.674-.38-2.253-1.069-.571-.678-.885-1.598-.885-2.59 0-.983.307-1.896.864-2.572.571-.691 1.364-1.072 2.234-1.072 1.177 0 2.039.597 2.633 1.825l.025.052h1.488l-.007-.042c-.035-.204-.109-.394-.18-.581l-.023-.06a3.979 3.979 0 0 0-1.522-1.872c-.685-.45-1.511-.677-2.455-.677-1.29 0-2.453.525-3.277 1.478-.793.917-1.23 2.168-1.23 3.522 0 1.372.44 2.629 1.237 3.538.839.956 1.988 1.462 3.324 1.462.936 0 1.758-.247 2.445-.733.115-.082.226-.17.332-.264.696-.615 1.223-1.491 1.41-2.343l.004-.022c.007-.03.012-.06.017-.088l.007-.042h-1.439l-.023.056Z">'),My=(e={})=>(()=>{const t=gy();return be(t,e,!0,!0),t})(),Rm="",Fm="",Bm="",Hm="",Qm="",hy=ne('<div><div></div><video src="">'),yy=ne("<div>"),hu=()=>{let e;const{solidStore:t,sdkStore:n}=xt(),{t:i}=Ut();return H(()=>{const r=t.captureSdk;!n||!r||r.startCameraStream(e).then(async()=>{t.uiSettings.showTutorial||await r.startCapture()})}),(()=>{const r=hy(),o=r.firstChild,s=o.nextSibling;G(r,L(he,{get when(){return!n.isQueryingCameras},get fallback(){return(()=>{const c=yy();return G(c,()=>i.camera_query_in_progress),c})()},get children(){return L(Sh,{})}}),o),G(r,L(he,{get when(){return n.isPlaying&&t.uiSettings.showTutorial},get children(){return L(dy,{})}}),o),G(r,L(he,{get when(){return t.helpVisible},get children(){return L(cy,{})}}),o),G(r,L(he,{get when(){return n.isCapturing||n.uiState.key===Le.SIDE_CAPTURED.key||n.uiState.key===Le.DOCUMENT_CAPTURED.key||n.uiState.key===Le.DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION.key},get children(){return L(z0,{})}}),o),G(o,L(My,{class:Ly})),G(r,L(V0,{}),s);const a=e;return typeof a=="function"?ps(a,s):e=s,ge(s,Ay),Be(c=>{const u=st("mb-style-scope",Ny,"mb-video-screen"),l=st(jy,"mb-logo"),g=`scaleX(${n.mirrorX?-1:1})`;return u!==c._v$&&ge(r,c._v$=u),l!==c._v$2&&ge(o,c._v$2=l),g!==c._v$3&&((c._v$3=g)!=null?s.style.setProperty("transform",g):s.style.removeProperty("transform")),c},{_v$:void 0,_v$2:void 0,_v$3:void 0}),r})()},my=()=>L(xi,{defaultOpen:!0,get children(){return L(wi,{get children(){return L(Ii,{onEscapeKeyDown:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),class:Ty,get children(){return L(hu,{})}})}})}}),Ny="mb-1lz2sq8",Ty="mb-1v96fqo",Ly="mb-191sfs5",jy="mb-o9aq4l",Ay="mb-1f2d6cn",Gm="",Vm="",Ey=ne("<div class=alert-dialog__header>"),Sy=ne("<p>"),py=ne("<div class=alert-dialog__positioner>"),Iy=ne("<pre>"),wy=e=>L(xi,{defaultOpen:!0,get children(){return L(wi,{get children(){return[L(so,{class:"alert-dialog__overlay"}),(()=>{const t=py();return G(t,L(nM,{class:"alert-dialog__content",get children(){return[(()=>{const n=Ey();return G(n,L(tM,{class:"alert-dialog__title",get children(){return["Caught error: ",Y(()=>e.error.name)]}}),null),G(n,L(ro,{class:"alert-dialog__close-button",children:"Close"}),null),n})(),L(eM,{class:"alert-dialog__description",get children(){return[(()=>{const n=Sy();return G(n,()=>e.error.message),n})(),L(he,{get when(){return e.error.stack},children:n=>(()=>{const i=Iy();return ge(i,"mb-rjcpop"),G(i,n),i})()})]}})]}})),t})()]}})}}),Km="",xy=e=>{const{solidStore:t,sdkStore:n}=xt(),{updateLocalization:i}=Ut();return H(()=>{t.captureSdk&&e.exposeApiOnLoad({updateLocalization:i,captureSdk:t.captureSdk})}),[L(he,{get when(){return t.uiSettings.showErrorDialog&&n.errorState},children:r=>L(wy,{get error(){return r()}})}),L(he,{get when(){return t.captureSdk},get children(){return L(pn,{get component(){return t.uiSettings.target.id===zo?my:hu}})}})]};function Dy(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const zo="mount-point";function by(e){return new Promise(t=>{const n=()=>{a(),document.getElementById(zo)?.remove()},i={captureSdk:void 0,helpVisible:!1,uiSettings:{target:null,showTutorial:!0,showErrorDialog:!0},dismountFn:n},r=e.uiSettings?.target??document.createElement("div");!r.isConnected&&r instanceof HTMLDivElement&&(r.setAttribute("id",zo),document.body.appendChild(r));const o=pf(i,e,{isMergeableObject:Dy});o.uiSettings.target=r;const s=c=>{t({dismount:n,...c})},a=ef(()=>L(vf,{get userStrings(){return e.uiSettings?.localization},get children(){return L(Th,{get sdkSettings(){return e.sdkSettings},mergedDefaults:o,get children(){return L(xy,{exposeApiOnLoad:s})}})}}),o.uiSettings.target)})}const vy=e=>{const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");if(!n)throw new Error("missing canvas");return n.putImageData(e,0,0),t.toDataURL()},Oy=e=>e.replace("data:","").replace(/^.+,/,"");Ne.ConfiguredCamera=ts,Ne.LicenseTokenState=Vi,Ne.ServerPermissionSubmitResultStatus=Ki,Ne.createCaptureSdk=ds,Ne.createCaptureUi=by,Ne.createDirectApi=ss,Ne.feedbackParser=ar,Ne.getBase64StringFromDataURL=Oy,Ne.imageDataToUrl=vy,Ne.resetCoreStore=ur,Ne.uiStateMap=Le,Ne.zustandStore=k,Object.defineProperty(Ne,Symbol.toStringTag,{value:"Module"})});
222
+ */function fh(e,t,n){const i=e.split("-")[0],r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=[],a=r.left+r.width/2,c=r.top+r.height/2;switch(i){case"top":s.push([r.left,c]),s.push([o.left,o.bottom]),s.push([o.left,o.top]),s.push([o.right,o.top]),s.push([o.right,o.bottom]),s.push([r.right,c]);break;case"right":s.push([a,r.top]),s.push([o.left,o.top]),s.push([o.right,o.top]),s.push([o.right,o.bottom]),s.push([o.left,o.bottom]),s.push([a,r.bottom]);break;case"bottom":s.push([r.left,c]),s.push([o.left,o.top]),s.push([o.left,o.bottom]),s.push([o.right,o.bottom]),s.push([o.right,o.top]),s.push([r.right,c]);break;case"left":s.push([a,r.top]),s.push([o.right,o.top]),s.push([o.left,o.top]),s.push([o.left,o.bottom]),s.push([o.right,o.bottom]),s.push([a,r.bottom]);break}return s}const Pt={};let dh=0,Mn=!1,yt,Pn;function gh(e){const t=`tooltip-${Wt()}`,n=`${++dh}`;e=Me({id:t,openDelay:700,closeDelay:300},e);const[i,r]=ae(e,["id","open","defaultOpen","onOpenChange","disabled","triggerOnFocusOnly","openDelay","closeDelay","ignoreSafeArea","forceMount"]);let o;const[s,a]=P(),[c,u]=P(),[l,g]=P(),[f,h]=P(r.placement),d=Cr({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:x=>i.onOpenChange?.(x)}),M=Ni(()=>i.forceMount||d.isOpen()),y=()=>{Pt[n]=T},m=()=>{for(const x in Pt)x!==n&&(Pt[x](!0),delete Pt[x])},T=(x=!1)=>{x||i.closeDelay&&i.closeDelay<=0?(window.clearTimeout(o),o=void 0,d.close()):o||(o=window.setTimeout(()=>{o=void 0,d.close()},i.closeDelay)),window.clearTimeout(yt),yt=void 0,Mn&&(window.clearTimeout(Pn),Pn=window.setTimeout(()=>{delete Pt[n],Pn=void 0,Mn=!1},i.closeDelay))},N=()=>{clearTimeout(o),o=void 0,m(),y(),Mn=!0,d.open(),window.clearTimeout(yt),yt=void 0,window.clearTimeout(Pn),Pn=void 0},j=()=>{m(),y(),!d.isOpen()&&!yt&&!Mn?yt=window.setTimeout(()=>{yt=void 0,Mn=!0,N()},i.openDelay):d.isOpen()||N()},A=(x=!1)=>{!x&&i.openDelay&&i.openDelay>0&&!o?j():N()},E=()=>{window.clearTimeout(yt),yt=void 0,Mn=!1},S=()=>{window.clearTimeout(o),o=void 0},I=x=>Qe(c(),x)||Qe(l(),x),z=x=>{const D=c(),b=l();if(!(!D||!b))return fh(x,D,b)},C=x=>{const D=x.target;if(I(D)){S();return}if(!i.ignoreSafeArea){const b=z(f());if(b&&gd(dd(x),b)){S();return}}o||T()};H(()=>{if(!d.isOpen())return;const x=ke();x.addEventListener("pointermove",C,!0),V(()=>{x.removeEventListener("pointermove",C,!0)})}),H(()=>{const x=c();if(!x||!d.isOpen())return;const D=w=>{const v=w.target;Qe(v,x)&&T(!0)},b=xr();b.addEventListener("scroll",D,{capture:!0}),V(()=>{b.removeEventListener("scroll",D,{capture:!0})})}),V(()=>{clearTimeout(o),Pt[n]&&delete Pt[n]});const F={dataset:Y(()=>({"data-expanded":d.isOpen()?"":void 0,"data-closed":d.isOpen()?void 0:""})),isOpen:d.isOpen,isDisabled:()=>i.disabled??!1,triggerOnFocusOnly:()=>i.triggerOnFocusOnly??!1,contentId:s,contentPresence:M,openTooltip:A,hideTooltip:T,cancelOpening:E,generateId:on(()=>e.id),registerContentId:Ye(a),isTargetOnTooltip:I,setTriggerRef:u,setContentRef:g};return L(xc.Provider,{value:F,get children(){return L(Ec,q({anchorRef:c,contentRef:l,onCurrentPlacementChange:h},r))}})}function Mh(e){let t;const n=ho(),[i,r]=ae(e,["ref","onPointerEnter","onPointerLeave","onPointerDown","onClick","onFocus","onBlur","onTouchStart"]);let o=!1,s=!1,a=!1;const c=()=>{o=!1},u=()=>{!n.isOpen()&&(s||a)&&n.openTooltip(a)},l=m=>{n.isOpen()&&!s&&!a&&n.hideTooltip(m)},g=m=>{Ne(m,i.onPointerEnter),!(m.pointerType==="touch"||n.triggerOnFocusOnly()||n.isDisabled()||m.defaultPrevented)&&(s=!0,u())},f=m=>{Ne(m,i.onPointerLeave),m.pointerType!=="touch"&&(s=!1,a=!1,n.isOpen()?l():n.cancelOpening())},h=m=>{Ne(m,i.onPointerDown),o=!0,ke(t).addEventListener("pointerup",c,{once:!0})},d=m=>{Ne(m,i.onClick),s=!1,a=!1,l(!0)},M=m=>{Ne(m,i.onFocus),!(n.isDisabled()||m.defaultPrevented||o)&&(a=!0,u())},y=m=>{Ne(m,i.onBlur);const T=m.relatedTarget;n.isTargetOnTooltip(T)||(s=!1,a=!1,l(!0))};return V(()=>{ke(t).removeEventListener("pointerup",c)}),L(ve,q({as:"button",ref(m){const T=_e(N=>{n.setTriggerRef(N),t=N},i.ref);typeof T=="function"&&T(m)},get"aria-describedby"(){return Y(()=>!!n.isOpen())()?n.contentId():void 0},onPointerEnter:g,onPointerLeave:f,onPointerDown:h,onClick:d,onFocus:M,onBlur:y},()=>n.dataset(),r))}function Dc(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Dc(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function st(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Dc(e))&&(i&&(i+=" "),i+=t);return i}const hh=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 20 20"><path fill=#fff fill-rule=evenodd d="M4.41 6.91a.833.833 0 0 1 1.18 0L10 11.323l4.41-4.411a.833.833 0 1 1 1.18 1.178l-5 5a.833.833 0 0 1-1.18 0l-5-5a.833.833 0 0 1 0-1.178Z"clip-rule=evenodd>'),yh=(e={})=>(()=>{const t=hh();return be(t,e,!0,!0),t})(),mh=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 20 20"><g fill=#fff fill-rule=evenodd clip-rule=evenodd><path d="M6.322 2.988A1.667 1.667 0 0 1 7.5 2.5h5a1.667 1.667 0 0 1 1.667 1.667A.833.833 0 0 0 15 5h.833a2.5 2.5 0 0 1 2.5 2.5V15a2.5 2.5 0 0 1-2.5 2.5H4.167a2.5 2.5 0 0 1-2.5-2.5V7.5a2.5 2.5 0 0 1 2.5-2.5H5a.833.833 0 0 0 .833-.833c0-.442.176-.866.489-1.179ZM4.167 6.667a.833.833 0 0 0-.834.833V15a.833.833 0 0 0 .834.833h11.666a.834.834 0 0 0 .834-.833V7.5a.833.833 0 0 0-.834-.833H15a2.5 2.5 0 0 1-2.5-2.5h-5a2.5 2.5 0 0 1-2.5 2.5h-.833Z"></path><path d="M10 9.167a1.667 1.667 0 1 0 0 3.333 1.667 1.667 0 0 0 0-3.333Zm-3.333 1.666a3.333 3.333 0 1 1 6.666 0 3.333 3.333 0 0 1-6.666 0Z">'),Nh=(e={})=>(()=>{const t=mh();return be(t,e,!0,!0),t})(),Th=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 20 20"><path stroke=#fff stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M4.167 10.833 7.5 14.167l8.333-8.334">'),Lh=(e={})=>(()=>{const t=Th();return be(t,e,!0,!0),t})();function jh(e,t=e.getState,n){const i=t(e.getState()),[r,o]=jr(i),s=(c,u)=>{const l=t(u),g=t(c);n!==void 0&&n(l,g)||o(Us(g))},a=e.subscribe(s);return V(()=>a()),r}const bc=Ce(),Ah=e=>{const[t,n]=jr(e.solidStoreDefaults),i=jh(k);H(()=>{n({captureSdk:e.captureSdk})});const r={solidStore:t,updateSolidStore:n,sdkStore:i};return L(bc.Provider,{value:r,get children(){return e.children}})};function xt(){const e=ze(bc);if(!e)throw new Error("StoreContext.Provider not in scope");return e}const Py="",Ry="",Fy="",By="",Hy="",Qy="",Gy="",Vy="",Ky="",$y="",Wy="",Eh=()=>{const{solidStore:e,sdkStore:t}=xt(),n=()=>[...t.cameras.map(a=>({value:a.deviceInfo.deviceId,label:a.name,disabled:!1}))],i=()=>n().find(a=>a.value===t.selectedCamera?.deviceInfo.deviceId),r=async a=>{if(!e.captureSdk)return;s(!0);const c=t.cameras.find(u=>u.deviceInfo.deviceId===a);if(!c){console.warn("No camera");return}await e.captureSdk.selectCamera(c),s(!1)},[o,s]=P(!1);return L(rh,{get options(){return n()},get value(){return i()},optionValue:"value",optionTextValue:"label",optionDisabled:"disabled",placeholder:"Select a camera...",get disabled(){return o()},onChange:a=>void r(a.value),itemComponent:a=>L(WM,{get item(){return a.item},class:"mb-19vyq8p",get children(){return[L(qM,{class:"mb-1v5y2d4",get children(){return a.item.textValue}}),L(ZM,{class:"mb-1my8n64",get children(){return L(Lh,{class:"mb-gliefk"})}})]}}),get children(){return[L(oh,{"aria-label":"Camera",class:"mb-16knymi",get children(){return[L(Nh,{class:"mb-1v0j9xg"}),L(ah,{class:"mb-1vhx4rq",children:a=>a.selectedOption().label}),L(eh,{class:"mb-16n64rq",get children(){return L(yh,{class:"mb-1pgdg8r"})}})]}}),L(nh,{get children(){return L(JM,{get class(){return st("mb-style-scope","mb-1hockg5")},get children(){return L(th,{class:"mb-1woc7wg"})}})}})]}})},Sh=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 18 18"><path fill=#fff d="M17.623 2.195A1.286 1.286 0 1 0 15.805.377L9 7.182 2.195.377A1.286 1.286 0 1 0 .377 2.195L7.182 9 .377 15.805a1.286 1.286 0 0 0 1.818 1.818L9 10.818l6.805 6.805a1.286 1.286 0 0 0 1.818-1.818L10.818 9l6.805-6.805Z">'),yo=(e={})=>(()=>{const t=Sh();return be(t,e,!0,!0),t})(),Zy="",qy="",Xy="",Jy="",em="",ph=ne("<div>"),Ih=ne("<div><div>"),wh=()=>{const{sdkStore:e,solidStore:t}=xt(),{t:n}=nn();return(()=>{const i=Ih(),r=i.firstChild;return G(i,L(he,{get when(){return e.cameras.length>1},get children(){const o=ph();return ge(o,"mb-15a7aro"),G(o,L(Eh,{})),o}}),r),ge(r,"mb-1fovbrr"),G(r,L(pi,{get"aria-label"(){return n.dismiss},onclick:()=>t.dismountFn(),class:"mb-1kkaye",get children(){return L(yo,{width:16})}})),Be(()=>ge(i,st("mb-sihyjw",xh))),i})()},xh="mb-1pqj4ih";function vc(e,t){e.indexOf(t)===-1&&e.push(t)}function Dh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Oc=(e,t,n)=>Math.min(Math.max(n,e),t),qe={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Rn=e=>typeof e=="number",hn=e=>Array.isArray(e)&&!Rn(e[0]),bh=(e,t,n)=>{const i=t-e;return((n-e)%i+i)%i+e};function vh(e,t){return hn(e)?e[bh(0,e.length,t)]:e}const Cc=(e,t,n)=>-n*e+n*t+e,zc=()=>{},Dt=e=>e,mo=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function _c(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=mo(0,t,i);e.push(Cc(n,1,r))}}function Oh(e){const t=[0];return _c(t,e-1),t}function Ch(e,t=Oh(e.length),n=Dt){const i=e.length,r=i-t.length;return r>0&&_c(t,r),o=>{let s=0;for(;s<i-2&&!(o<t[s+1]);s++);let a=Oc(0,1,mo(t[s],t[s+1],o));return a=vh(n,s)(a),Cc(e[s],e[s+1],a)}}const kc=e=>Array.isArray(e)&&Rn(e[0]),No=e=>typeof e=="object"&&!!e.createAnimation,yn=e=>typeof e=="function",zh=e=>typeof e=="string",To={ms:e=>e*1e3,s:e=>e/1e3},Uc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_h=1e-7,kh=12;function Uh(e,t,n,i,r){let o,s,a=0;do s=t+(n-t)/2,o=Uc(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>_h&&++a<kh);return s}function Fn(e,t,n,i){if(e===t&&n===i)return Dt;const r=o=>Uh(o,0,1,e,n);return o=>o===0||o===1?o:Uc(r(o),t,i)}const Yh=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const i=n*e,r=t==="end"?Math.floor(i):Math.ceil(i);return Oc(0,1,r/e)},Yc={ease:Fn(.25,.1,.25,1),"ease-in":Fn(.42,0,1,1),"ease-in-out":Fn(.42,0,.58,1),"ease-out":Fn(0,0,.58,1)},Ph=/\((.*?)\)/;function Pc(e){if(yn(e))return e;if(kc(e))return Fn(...e);if(Yc[e])return Yc[e];if(e.startsWith("steps")){const t=Ph.exec(e);if(t){const n=t[1].split(",");return Yh(parseFloat(n[0]),n[1].trim())}}return Dt}class Rh{constructor(t,n=[0,1],{easing:i,duration:r=qe.duration,delay:o=qe.delay,endDelay:s=qe.endDelay,repeat:a=qe.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Dt,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((g,f)=>{this.resolve=g,this.reject=f}),i=i||qe.easing,No(i)){const g=i.createAnimation(n);i=g.easing,n=g.keyframes||n,r=g.duration||r}this.repeat=a,this.easing=hn(i)?Dt:Pc(i),this.updateDuration(r);const l=Ch(n,c,hn(i)?i.map(Pc):Dt);this.tick=g=>{var f;o=o;let h=0;this.pauseTime!==void 0?h=this.pauseTime:h=(g-this.startTime)*this.rate,this.t=h,h/=1e3,h=Math.max(h-o,0),this.playState==="finished"&&this.pauseTime===void 0&&(h=this.totalDuration);const d=h/this.duration;let M=Math.floor(d),y=d%1;!y&&d>=1&&(y=1),y===1&&M--;const m=M%2;(u==="reverse"||u==="alternate"&&m||u==="alternate-reverse"&&!m)&&(y=1-y);const T=h>=this.totalDuration?1:Math.min(y,1),N=l(this.easing(T));t(N),this.pauseTime===void 0&&(this.playState==="finished"||h>=this.totalDuration+s)?(this.playState="finished",(f=this.resolve)===null||f===void 0||f.call(this,N)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}var Rc=function(){};process.env.NODE_ENV!=="production"&&(Rc=function(e,t){if(!e)throw new Error(t)});class Fh{setAnimation(t){this.animation=t,t?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const Lo=new WeakMap;function Fc(e){return Lo.has(e)||Lo.set(e,{transforms:[],values:new Map}),Lo.get(e)}function Bh(e,t){return e.has(t)||e.set(t,new Fh),e.get(t)}const Hh=["","X","Y","Z"],Qh=["translate","scale","rotate","skew"],mn={x:"translateX",y:"translateY",z:"translateZ"},Bc={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},Gh={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Bc,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Dt},skew:Bc},Nn=new Map,_i=e=>`--motion-${e}`,ki=["x","y","z"];Qh.forEach(e=>{Hh.forEach(t=>{ki.push(e+t),Nn.set(_i(e+t),Gh[e])})});const Vh=(e,t)=>ki.indexOf(e)-ki.indexOf(t),Kh=new Set(ki),jo=e=>Kh.has(e),$h=(e,t)=>{mn[t]&&(t=mn[t]);const{transforms:n}=Fc(e);vc(n,t),e.style.transform=Hc(n)},Hc=e=>e.sort(Vh).reduce(Wh,"").trim(),Wh=(e,t)=>`${e} ${t}(var(${_i(t)}))`,Ao=e=>e.startsWith("--"),Qc=new Set;function Zh(e){if(!Qc.has(e)){Qc.add(e);try{const{syntax:t,initialValue:n}=Nn.has(e)?Nn.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:n})}catch{}}}const Eo=(e,t)=>document.createElement("div").animate(e,t),Gc={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Eo({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Eo({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Eo({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},So={},Tn={};for(const e in Gc)Tn[e]=()=>(So[e]===void 0&&(So[e]=Gc[e]()),So[e]);const qh=.015,Xh=(e,t)=>{let n="";const i=Math.round(t/qh);for(let r=0;r<i;r++)n+=e(mo(0,i-1,r))+", ";return n.substring(0,n.length-2)},Vc=(e,t)=>yn(e)?Tn.linearEasing()?`linear(${Xh(e,t)})`:qe.easing:kc(e)?Jh(e):e,Jh=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`;function e0(e,t){for(let n=0;n<e.length;n++)e[n]===null&&(e[n]=n?e[n-1]:t());return e}const t0=e=>Array.isArray(e)?e:[e];function po(e){return mn[e]&&(e=mn[e]),jo(e)?_i(e):e}const Bn={get:(e,t)=>{t=po(t);let n=Ao(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!==0){const i=Nn.get(t);i&&(n=i.initialValue)}return n},set:(e,t,n)=>{t=po(t),Ao(t)?e.style.setProperty(t,n):e.style[t]=n}};function n0(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function i0(e,t){var n;let i=t?.toDefaultUnit||Dt;const r=e[e.length-1];if(zh(r)){const o=((n=r.match(/(-?[\d.]+)([a-z%]*)/))===null||n===void 0?void 0:n[2])||"";o&&(i=s=>s+o)}return i}function r0(){return window.__MOTION_DEV_TOOLS_RECORD}function o0(e,t,n,i={},r){const o=r0(),s=i.record!==!1&&o;let a,{duration:c=qe.duration,delay:u=qe.delay,endDelay:l=qe.endDelay,repeat:g=qe.repeat,easing:f=qe.easing,persist:h=!1,direction:d,offset:M,allowWebkitAcceleration:y=!1}=i;const m=Fc(e),T=jo(t);let N=Tn.waapi();T&&$h(e,t);const j=po(t),A=Bh(m.values,j),E=Nn.get(j);return n0(A.animation,!(No(f)&&A.generator)&&i.record!==!1),()=>{const S=()=>{var C,R;return(R=(C=Bn.get(e,j))!==null&&C!==void 0?C:E?.initialValue)!==null&&R!==void 0?R:0};let I=e0(t0(n),S);const z=i0(I,E);if(No(f)){const C=f.createAnimation(I,t!=="opacity",S,j,A);f=C.easing,I=C.keyframes||I,c=C.duration||c}if(Ao(j)&&(Tn.cssRegisterProperty()?Zh(j):N=!1),T&&!Tn.linearEasing()&&(yn(f)||hn(f)&&f.some(yn))&&(N=!1),N){E&&(I=I.map(F=>Rn(F)?E.toDefaultUnit(F):F)),I.length===1&&(!Tn.partialKeyframes()||s)&&I.unshift(S());const C={delay:To.ms(u),duration:To.ms(c),endDelay:To.ms(l),easing:hn(f)?void 0:Vc(f,c),direction:d,iterations:g+1,fill:"both"};a=e.animate({[j]:I,offset:M,easing:hn(f)?f.map(F=>Vc(F,c)):void 0},C),a.finished||(a.finished=new Promise((F,x)=>{a.onfinish=F,a.oncancel=x}));const R=I[I.length-1];a.finished.then(()=>{h||(Bn.set(e,j,R),a.cancel())}).catch(zc),y||(a.playbackRate=1.000001)}else if(r&&T)I=I.map(C=>typeof C=="string"?parseFloat(C):C),I.length===1&&I.unshift(parseFloat(S())),a=new r(C=>{Bn.set(e,j,z?z(C):C)},I,Object.assign(Object.assign({},i),{duration:c,easing:f}));else{const C=I[I.length-1];Bn.set(e,j,E&&Rn(C)?E.toDefaultUnit(C):C)}return s&&o(e,t,I,{duration:c,delay:u,easing:f,repeat:g,offset:M},"motion-one"),A.setAnimation(a),a}}const s0=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function a0(e,t){var n;return typeof e=="string"?t?((n=t[e])!==null&&n!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const c0={any:0,all:1};function u0(e,t,{root:n,margin:i,amount:r="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const o=a0(e),s=new WeakMap,a=u=>{u.forEach(l=>{const g=s.get(l.target);if(l.isIntersecting!==!!g)if(l.isIntersecting){const f=t(l);yn(f)?s.set(l.target,f):c.unobserve(l.target)}else g&&(g(l),s.delete(l.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof r=="number"?r:c0[r]});return o.forEach(u=>c.observe(u)),()=>c.disconnect()}function l0(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!f0(e,t):e!==t}function f0(e,t){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function d0(e){return typeof e=="object"}function Kc(e,t){if(d0(e))return e;if(e&&t)return t[e]}let bt;function g0(){if(!bt)return;const e=bt.sort(h0).map(y0);e.forEach($c),e.forEach($c),bt=void 0}function Io(e){bt?vc(bt,e):(bt=[e],requestAnimationFrame(g0))}function M0(e){bt&&Dh(bt,e)}const h0=(e,t)=>e.getDepth()-t.getDepth(),y0=e=>e.animateUpdates(),$c=e=>e.next(),Wc=(e,t)=>new CustomEvent(e,{detail:{target:t}});function wo(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}function Zc(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:n}}))}const m0={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:n},{inViewOptions:i={}})=>{const{once:r}=i,o=Hr(i,["once"]);return u0(e,s=>{if(t(),Zc(e,"viewenter",s),!r)return a=>{n(),Zc(e,"viewleave",a)}},o)}},qc=(e,t,n)=>i=>{i.pointerType&&i.pointerType!=="mouse"||(n(),wo(e,t,i))},Ui={inView:m0,hover:{isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:n})=>{const i=qc(e,"hoverstart",t),r=qc(e,"hoverend",n);return e.addEventListener("pointerenter",i),e.addEventListener("pointerleave",r),()=>{e.removeEventListener("pointerenter",i),e.removeEventListener("pointerleave",r)}}},press:{isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:n})=>{const i=o=>{n(),wo(e,"pressend",o),window.removeEventListener("pointerup",i)},r=o=>{t(),wo(e,"pressstart",o),window.addEventListener("pointerup",i)};return e.addEventListener("pointerdown",r),()=>{e.removeEventListener("pointerdown",r),window.removeEventListener("pointerup",i)}}}},Xc=["initial","animate",...Object.keys(Ui),"exit"],xo=new WeakMap;function N0(e={},t){let n,i=t?t.getDepth()+1:0;const r={initial:!0,animate:!0},o={},s={};for(const M of Xc)s[M]=typeof e[M]=="string"?e[M]:t?.getContext()[M];const a=e.initial===!1?"animate":"initial";let c=Kc(e[a]||s[a],e.variants)||{},u=Hr(c,["transition"]);const l=Object.assign({},u);function*g(){var M,y;const m=u;u={};const T={};for(const S of Xc){if(!r[S])continue;const I=Kc(e[S]);if(I)for(const z in I)z!=="transition"&&(u[z]=I[z],T[z]=s0((y=(M=I.transition)!==null&&M!==void 0?M:e.transition)!==null&&y!==void 0?y:{},z))}const N=new Set([...Object.keys(u),...Object.keys(m)]),j=[];N.forEach(S=>{var I;u[S]===void 0&&(u[S]=l[S]),l0(m[S],u[S])&&((I=l[S])!==null&&I!==void 0||(l[S]=Bn.get(n,S)),j.push(o0(n,S,u[S],T[S],Rh)))}),yield;const A=j.map(S=>S()).filter(Boolean);if(!A.length)return;const E=u;n.dispatchEvent(Wc("motionstart",E)),Promise.all(A.map(S=>S.finished)).then(()=>{n.dispatchEvent(Wc("motioncomplete",E))}).catch(zc)}const f=(M,y)=>()=>{r[M]=y,Io(d)},h=()=>{for(const M in Ui){const y=Ui[M].isActive(e),m=o[M];y&&!m?o[M]=Ui[M].subscribe(n,{enable:f(M,!0),disable:f(M,!1)},e):!y&&m&&(m(),delete o[M])}},d={update:M=>{n&&(e=M,h(),Io(d))},setActive:(M,y)=>{n&&(r[M]=y,Io(d))},animateUpdates:g,getDepth:()=>i,getTarget:()=>u,getOptions:()=>e,getContext:()=>s,mount:M=>(Rc(!!M,"Animation state must be mounted with valid Element"),n=M,xo.set(n,d),h(),()=>{xo.delete(n),M0(d);for(const y in o)o[y]()}),isMounted:()=>!!n};return d}function T0(e){const t={},n=[];for(let i in e){const r=e[i];jo(i)&&(mn[i]&&(i=mn[i]),n.push(i),i=_i(i));let o=Array.isArray(r)?r[0]:r;const s=Nn.get(i);s&&(o=Rn(r)?s.toDefaultUnit(r):r),t[i]=o}return n.length&&(t.transform=Hc(n)),t}var L0=()=>{},Jc=(e,t)=>t();function j0(e,t){const n=ye(e),i=n?[n]:[],{onEnter:r=Jc,onExit:o=Jc}=t,[s,a]=P(t.appear?[]:i),[c]=kl();let u,l=!1;function g(d,M){if(!d)return M&&M();l=!0,o(d,()=>{fr(()=>{l=!1,a(y=>y.filter(m=>m!==d)),M&&M()})})}function f(d){const M=u;if(!M)return d&&d();u=void 0,a(y=>[M,...y]),r(M,d??L0)}const h=t.mode==="out-in"?d=>l||g(d,f):t.mode==="in-out"?d=>f(()=>g(d)):d=>{g(d),f()};return ms(d=>{const M=e();return ye(c)?(c(),d):(M!==d&&(u=M,fr(()=>ye(()=>h(d)))),M)},t.appear?void 0:n),s}const eu=Ce(),A0=e=>{let t=e.initial!==!1;const n=L(eu.Provider,{value:()=>t,get children(){return L(Do.Provider,{value:void 0,get children(){return j0(Vf(()=>e.children),{appear:t,mode:e.exitBeforeEnter?"out-in":"parallel",onExit(i,r){const o=xo.get(i);o&&o.getOptions().exit?tu(i,r):r()}})}})}});return t=!0,n},tu=(e,t)=>e.addEventListener("motioncomplete",t);function E0(e,t,n,i){const r=N0(n?.()===!1?{...t(),initial:!1}:t(),i);return Lt(()=>{const o=r.mount(e());V(()=>{n&&t().exit?(r.setActive("exit",!0),tu(e(),o)):o()}),yn(t)&&H(()=>r.update(t()))}),[r,T0(r.getTarget())]}const S0=["initial","animate","inView","inViewOptions","hover","press","variants","transition","exit"],p0=["tag","ref","style","onMotionStart","onMotionComplete","onHoverStart","onHoverEnd","onPressStart","onPressEnd","onViewEnter","onViewLeave"],Do=Ce(),nu=e=>{const[t,,n]=ae(e,S0,p0),[i,r]=E0(()=>o,()=>({...t}),ze(eu),ze(Do));let o;return L(Do.Provider,{value:i,get children(){return L(pn,q({ref:s=>{o=s,e.ref?.(s)},get component(){return e.tag||"div"},get style(){return Y(()=>!!e.style)()?Bs(e.style,r):r},get"on:motionstart"(){return e.onMotionStart},get"on:motioncomplete"(){return e.onMotionComplete},get"on:hoverstart"(){return e.onHoverStart},get"on:hoverend"(){return e.onHoverEnd},get"on:pressstart"(){return e.onPressStart},get"on:pressend"(){return e.onPressEnd},get"on:viewenter"(){return e.onViewEnter},get"on:viewleave"(){return e.onViewLeave}},n))}})},Rt=new Proxy(nu,{get:(e,t)=>n=>L(nu,q(n,{tag:t}))}),I0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 96 60"><path fill=#fff fill-rule=evenodd d="M0 6a6 6 0 0 1 6-6h84a6 6 0 0 1 6 6v48a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6V6Zm10.2 7.8c0-1.325 1.11-2.4 2.48-2.4h69.44c1.37 0 2.48 1.075 2.48 2.4s-1.11 2.4-2.48 2.4H12.68c-1.37 0-2.48-1.074-2.48-2.4Zm70.5 35.4a3.9 3.9 0 1 0 0-7.8 3.9 3.9 0 0 0 0 7.8Zm-70.5-3c0-1.326 1.098-2.4 2.451-2.4H34.15c1.353 0 2.451 1.075 2.451 2.4s-1.098 2.4-2.451 2.4h-21.5c-1.354 0-2.451-1.075-2.451-2.4Zm2.474-13.8c-1.366 0-2.474 1.075-2.474 2.4 0 1.326 1.108 2.4 2.474 2.4h30.452c1.366 0 2.474-1.075 2.474-2.4s-1.108-2.4-2.474-2.4H12.674Z"clip-rule=evenodd>'),iu=(e={})=>(()=>{const t=I0();return be(t,e,!0,!0),t})(),w0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 96 60"><path fill=#fff fill-rule=evenodd d="M6 0a6 6 0 0 0-6 6v48a6 6 0 0 0 6 6h84a6 6 0 0 0 6-6V6a6 6 0 0 0-6-6H6Zm42.671 10.8c-1.365 0-2.471 1.074-2.471 2.4 0 1.325 1.106 2.4 2.471 2.4H82.13c1.365 0 2.471-1.075 2.471-2.4s-1.106-2.4-2.471-2.4H48.67ZM72 49.2c0-1.326 1.058-2.4 2.364-2.4h7.272c1.306 0 2.364 1.075 2.364 2.4s-1.058 2.4-2.364 2.4h-7.272C73.058 51.6 72 50.525 72 49.2ZM48.702 33.6c-1.382 0-2.502 1.075-2.502 2.4s1.12 2.4 2.502 2.4h15.396c1.382 0 2.502-1.075 2.502-2.4s-1.12-2.4-2.502-2.4H48.702Zm-2.502-9c0-1.326 1.106-2.4 2.471-2.4H82.13c1.365 0 2.471 1.075 2.471 2.4S83.494 27 82.129 27H48.67c-1.365 0-2.471-1.075-2.471-2.4ZM13.265 10.8c-1.693 0-3.065 1.407-3.065 3.144v24.024c0 1.117.569 2.097 1.42 2.653.266.174.59.224.894.138a1.12 1.12 0 0 0 .698-.587c1.385-2.82 3.678-5.021 6.438-6.162.373-.154.637-.504.688-.915.05-.41-.119-.816-.443-1.062a7.227 7.227 0 0 1-2.84-5.78c0-3.962 3.115-7.164 6.945-7.164s6.944 3.203 6.944 7.165a7.227 7.227 0 0 1-2.839 5.78 1.155 1.155 0 0 0-.442 1.061c.05.41.314.76.688.915 2.76 1.14 5.052 3.343 6.437 6.162.142.288.395.501.698.587.304.086.628.036.893-.138a3.162 3.162 0 0 0 1.421-2.653V13.944c0-1.737-1.372-3.144-3.065-3.144h-21.47Z"clip-rule=evenodd>'),ru=(e={})=>(()=>{const t=w0();return be(t,e,!0,!0),t})(),x0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 96 96"><rect width=96 height=96 fill=#fff rx=48></rect><path fill=#000 d="M44.972 57.46a1.995 1.995 0 0 1-1.414-.584l-8.484-8.486a2 2 0 1 1 2.826-2.83l7.07 7.07L57.7 39.904a2 2 0 1 1 2.83 2.828L46.386 56.876a1.995 1.995 0 0 1-1.414.584Z">'),D0=(e={})=>(()=>{const t=x0();return be(t,e,!0,!0),t})(),b0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 100 100"><path fill=#fff fill-rule=evenodd d="M50 7.692C26.634 7.692 7.692 26.634 7.692 50S26.634 92.308 50 92.308 92.308 73.366 92.308 50 73.366 7.692 50 7.692ZM0 50C0 22.386 22.386 0 50 0s50 22.386 50 50-22.386 50-50 50S0 77.614 0 50Z"clip-rule=evenodd opacity=.75></path><circle cx=50 cy=50 r=4 fill=#fff>'),v0=(e={})=>(()=>{const t=b0();return be(t,e,!0,!0),t})(),O0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 100 100"><path fill=#fff fill-rule=evenodd d="M67.122 11.998a42.158 42.158 0 0 0-34.244 0l-3.397-7.644a50.523 50.523 0 0 1 41.038 0l-3.397 7.644Zm-55.124 20.88a42.158 42.158 0 0 0 0 34.244l-7.644 3.397a50.523 50.523 0 0 1 0-41.038l7.644 3.397Zm76.004 34.244a42.157 42.157 0 0 0 0-34.244l7.644-3.397a50.519 50.519 0 0 1 0 41.038l-7.644-3.397Zm-55.124 20.88a42.157 42.157 0 0 0 34.244 0l3.397 7.644a50.519 50.519 0 0 1-41.038 0l3.397-7.644Z"clip-rule=evenodd opacity=.75></path><circle cx=50 cy=50 r=4 fill=#fff>'),C0=(e={})=>(()=>{const t=O0();return be(t,e,!0,!0),t})(),z0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 101 100"><path fill=#fff fill-rule=evenodd d="M50.301 7.692C26.935 7.692 7.994 26.634 7.994 50S26.935 92.308 50.3 92.308C73.667 92.308 92.61 73.366 92.61 50S73.667 7.692 50.301 7.692ZM.301 50c0-27.614 22.386-50 50-50s50 22.386 50 50-22.386 50-50 50-50-22.386-50-50Z"clip-rule=evenodd opacity=.3></path><circle cx=50.3 cy=50 r=4 fill=#fff></circle><path fill=#fff fill-rule=evenodd d="M29.148 13.36C8.912 25.043 1.977 50.918 13.662 71.154L7 75C-6.807 51.085 1.387 20.506 25.301 6.699l3.847 6.661Z"clip-rule=evenodd>'),_0=(e={})=>(()=>{const t=z0();return be(t,e,!0,!0),t})(),ou={SENSING_FRONT:"scan_the_front_side",SENSING_BACK:"scan_the_back_side",SIDE_CAPTURED:"flip_document",WRONG_SIDE:"scanning_wrong_side",BLUR_DETECTED:"blur_detected",GLARE_DETECTED:"glare_detected",OCCLUDED:"occluded",DOCUMENT_FRAMING_CAMERA_TOO_CLOSE:"move_farther",DOCUMENT_FRAMING_CAMERA_TOO_FAR:"move_closer",DOCUMENT_TOO_CLOSE_TO_FRAME_EDGE:"document_too_close_to_edge",DOCUMENT_FRAMING_CAMERA_ANGLE_TOO_STEEP:"camera_angle_too_steep",DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE:"rotate_phone",DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION:"rotate_phone_animation",LIGHTING_TOO_DARK:"lightning_too_dark",LIGHTING_TOO_BRIGHT:"lightning_too_bright"},im="",rm="",om="",sm="",am="",cm="",um="",lm="",fm="",dm="",gm="",Mm="",hm="",ym="",mm="",Nm="",Tm="",Lm="",k0=ne("<div><div><div><div>"),Yi=ne("<div>"),U0=()=>{const{sdkStore:e}=xt(),t=()=>{const n=e.videoElement.videoWidth,i=e.videoElement.videoHeight;return n>i?"landscape":"portrait"};return(()=>{const n=k0(),i=n.firstChild,r=i.firstChild,o=r.firstChild;return ge(n,"mb-79tnxm"),ge(r,"mb-1kst2vr"),ge(o,"mb-qaqzbh"),G(o,L(mr,{get children(){return[L(rt,{get when(){return e.uiState.reticleType==="searching"},get children(){return L(F0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="processing"},get children(){return L(H0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="error"},get children(){return L(B0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="done"},get children(){return L(Y0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="flip"},get children(){return L(R0,{})}}),L(rt,{get when(){return e.uiState.reticleType==="rotate"},get children(){return L(P0,{get videoOrientation(){return t()}})}})]}})),G(i,L(Q0,{get uiState(){return e.uiState}}),null),n})()},Y0=()=>L(Rt,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1,transition:{easing:"ease-in-out",duration:.3}},exit:{opacity:0,scale:5},get children(){return L(D0,{class:"mb-oegy9h"})}}),P0=e=>(()=>{const t=Yi();return ge(t,"mb-72esi9"),G(t,L(Rt,{class:"mb-pcpdyq",get initial(){return{opacity:0,rotateZ:e.videoOrientation==="landscape"?"90deg":"0deg"}},get animate(){return{opacity:1,rotateZ:[e.videoOrientation==="landscape"?"0deg":"90deg"],transition:{rotateZ:{duration:(Le.DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION.minDuration-1500)/1e3},opacity:{duration:.5}}}},exit:{opacity:0},get children(){return[L(ru,{class:Pi}),L(iu,{get class(){return st(Pi,"mb-12tdqjq")}})]}})),t})(),R0=()=>(()=>{const e=Yi();return ge(e,"mb-ah9it3"),G(e,L(Rt,{class:"mb-pcpdyq",initial:{opacity:0},get animate(){return{opacity:1,rotateY:["180deg"],transition:{rotateY:{duration:(Le.SIDE_CAPTURED.minDuration-1500)/1e3},opacity:{duration:.5}}}},exit:{opacity:0},get children(){return[L(ru,{class:Pi}),L(iu,{get class(){return st(Pi,"mb-12tdqjq")}})]}})),e})(),Pi="mb-3q2rd5",bo=e=>L(Rt.div,{class:"mb-1v17koz",initial:{opacity:0},get animate(){return{opacity:1,background:e.type==="error"?"var(--mb-reticle-error)":"var(--mb-reticle-ok)",transition:{delay:.05}}},transition:{duration:.05},get children(){return e.children}}),F0=()=>L(bo,{type:"searching",get children(){return L(Rt,{class:"mb-5pevkr",animate:{opacity:1,transform:"rotate(360deg)"},transition:{transform:{duration:1,easing:"ease-in-out",repeat:1/0}},get children(){return L(C0,{class:"mb-1i7l9ps"})}})}}),B0=()=>L(bo,{type:"error",get children(){return L(v0,{class:"mb-1omzjeg"})}}),H0=()=>L(bo,{type:"processing",get children(){return L(Rt,{animate:{opacity:1,rotate:"360deg"},transition:{rotate:{duration:.8,easing:[.23,.58,.58,.23],repeat:1/0}},get children(){return L(_0,{class:"mb-1i7l9ps"})}})}}),Q0=e=>{const{t}=nn(),n=()=>{if(e.uiState.key in ou)return ou[e.uiState.key]};return(()=>{const i=Yi();return ge(i,"mb-dcm5x3"),G(i,L(A0,{exitBeforeEnter:!0,get children(){return L(Bf,{on:()=>e.uiState.key,get children(){return L(he,{get when(){return n()},get children(){return L(Rt.div,{initial:{opacity:0,transform:"translateY(30px)"},animate:{opacity:1,transform:"translateY(0)",transition:{delay:.05}},transition:{duration:.05},exit:{opacity:0,transform:"translateY(-30px)"},class:"mb-j1awg8",get children(){const r=Yi();return G(r,()=>t[n()]),r}})}})}})}})),i})()},G0=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 36 36"><path fill=#0062F2 fill-rule=evenodd d="M12 15c0-3.315 2.685-6 6-6s6 2.685 6 6c0 1.924-1.185 2.96-2.339 3.968-1.095.957-2.161 1.889-2.161 3.532h-3c0-2.732 1.413-3.815 2.656-4.767C20.13 16.985 21 16.319 21 15c0-1.65-1.35-3-3-3s-3 1.35-3 3h-3Zm7.5 9v3h-3v-3h3Z"clip-rule=evenodd>'),V0=(e={})=>(()=>{const t=G0();return be(t,e,!0,!0),t})(),jm="",Am="",Em="",K0=ne("<p>"),$0=ne("<div>"),W0=()=>{const{updateSolidStore:e}=xt(),{t}=nn();return(()=>{const n=$0();return G(n,L(gh,{overflowPadding:32,get children(){return[L(Mh,{onclick:()=>e({helpVisible:!0}),class:Z0,get children(){return L(V0,{class:"mb-1slvbtw"})}}),L(lh,{get children(){return L(uh,{get class(){return st(q0,"mb-style-scope")},get children(){return[L(cM,{}),(()=>{const i=K0();return G(i,()=>t.need_help_tooltip),i})()]}})}})]}})),n})()},Z0="mb-posxld",q0="mb-1yc0yna";var X0=e=>typeof e=="function"&&!e.length?e():e,Ln=function(){return Ln=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ln.apply(this,arguments)};function su(e,t,n){if(n||arguments.length===2)for(var i,r=0,o=t.length;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))}function au(e){return Array.prototype.slice.call(e)}function cu(e,t){var n=Math.floor(e);return n===t||n+1===t?e:t}function uu(){return Date.now()}function vo(e,t,n){if(t="data-keen-slider-"+t,n===null)return e.removeAttribute(t);e.setAttribute(t,n||"")}function Ri(e,t){return t=t||document,typeof e=="function"&&(e=e(t)),Array.isArray(e)?e:typeof e=="string"?au(t.querySelectorAll(e)):e instanceof HTMLElement?[e]:e instanceof NodeList?au(e):[]}function Hn(e){e.raw&&(e=e.raw),e.cancelable&&!e.defaultPrevented&&e.preventDefault()}function Qn(e){e.raw&&(e=e.raw),e.stopPropagation&&e.stopPropagation()}function lu(){var e=[];return{add:function(t,n,i,r){t.addListener?t.addListener(i):t.addEventListener(n,i,r),e.push([t,n,i,r])},input:function(t,n,i,r){this.add(t,n,function(o){return function(s){s.nativeEvent&&(s=s.nativeEvent);var a=s.changedTouches||[],c=s.targetTouches||[],u=s.detail&&s.detail.x?s.detail:null;return o({id:u?u.identifier?u.identifier:"i":c[0]?c[0]?c[0].identifier:"e":"d",idChanged:u?u.identifier?u.identifier:"i":a[0]?a[0]?a[0].identifier:"e":"d",raw:s,x:u&&u.x?u.x:c[0]?c[0].screenX:u?u.x:s.pageX,y:u&&u.y?u.y:c[0]?c[0].screenY:u?u.y:s.pageY})}}(i),r)},purge:function(){e.forEach(function(t){t[0].removeListener?t[0].removeListener(t[2]):t[0].removeEventListener(t[1],t[2],t[3])}),e=[]}}}function Oo(e,t,n){return Math.min(Math.max(e,t),n)}function Xe(e){return(e>0?1:0)-(e<0?1:0)||+e}function fu(e){var t=e.getBoundingClientRect();return{height:cu(t.height,e.offsetHeight),width:cu(t.width,e.offsetWidth)}}function Ie(e,t,n,i){var r=e&&e[t];return r==null?n:i&&typeof r=="function"?r():r}function We(e){return Math.round(1e6*e)/1e6}function J0(e){var t,n,i,r,o,s;function a(f){s||(s=f),c(!0);var h=f-s;h>i&&(h=i);var d=r[n];if(d[3]<h)return n++,a(f);var M=d[2],y=d[4],m=d[0],T=d[1]*(0,d[5])(y===0?1:(h-M)/y);if(T&&e.track.to(m+T),h<i)return l();s=null,c(!1),u(null),e.emit("animationEnded")}function c(f){t.active=f}function u(f){t.targetIdx=f}function l(){var f;f=a,o=window.requestAnimationFrame(f)}function g(){var f;f=o,window.cancelAnimationFrame(f),c(!1),u(null),s&&e.emit("animationStopped"),s=null}return t={active:!1,start:function(f){if(g(),e.track.details){var h=0,d=e.track.details.position;n=0,i=0,r=f.map(function(M){var y,m=Number(d),T=(y=M.earlyExit)!==null&&y!==void 0?y:M.duration,N=M.easing,j=M.distance*N(T/M.duration)||0;d+=j;var A=i;return i+=T,h+=j,[m,M.distance,A,i,M.duration,N]}),u(e.track.distToIdx(h)),l(),e.emit("animationStarted")}},stop:g,targetIdx:null}}function ey(e){var t,n,i,r,o,s,a,c,u,l,g,f,h,d,M=1/0,y=[],m=null,T=0;function N(D){F(T+D)}function j(D){var b=A(T+D).abs;return I(b)?b:null}function A(D){var b=Math.floor(Math.abs(We(D/n))),w=We((D%n+n)%n);w===n&&(w=0);var v=Xe(D),O=a.indexOf(su([],a,!0).reduce(function($,X){return Math.abs(X-w)<Math.abs($-w)?X:$})),_=O;return v<0&&b++,O===s&&(_=0,b+=v>0?1:-1),{abs:_+b*s*v,origin:O,rel:_}}function E(D,b,w){var v;if(b||!C())return S(D,w);if(!I(D))return null;var O=A(w??T),_=O.abs,$=D-O.rel,X=_+$;v=S(X);var se=S(X-s*Xe($));return(se!==null&&Math.abs(se)<Math.abs(v)||v===null)&&(v=se),We(v)}function S(D,b){if(b==null&&(b=We(T)),!I(D)||D===null)return null;D=Math.round(D);var w=A(b),v=w.abs,O=w.rel,_=w.origin,$=R(D),X=(b%n+n)%n,se=a[_],Se=Math.floor((D-(v-O))/s)*n;return We(se-X-se+a[$]+Se+(_===s?n:0))}function I(D){return z(D)===D}function z(D){return Oo(D,u,l)}function C(){return r.loop}function R(D){return(D%s+s)%s}function F(D){var b;b=D-T,y.push({distance:b,timestamp:uu()}),y.length>6&&(y=y.slice(-6)),T=We(D);var w=x().abs;if(w!==m){var v=m!==null;m=w,v&&e.emit("slideChanged")}}function x(D){var b=D?null:function(){if(s){var w=C(),v=w?(T%n+n)%n:T,O=(w?T%n:T)-o[0][2],_=0-(O<0&&w?n-Math.abs(O):O),$=0,X=A(T),se=X.abs,Se=X.rel,at=o[Se][2],Je=o.map(function(U,de){var fe=_+$;(fe<0-U[0]||fe>1)&&(fe+=(Math.abs(fe)>n-1&&w?n:0)*Xe(-fe));var Ft=de-Se,Gn=Xe(Ft),Bt=Ft+se;w&&(Gn===-1&&fe>at&&(Bt+=s),Gn===1&&fe<at&&(Bt-=s),g!==null&&Bt<g&&(fe+=n),f!==null&&Bt>f&&(fe-=n));var Ht=fe+U[0]+U[1],Bi=Math.max(fe>=0&&Ht<=1?1:Ht<0||fe>1?0:fe<0?Math.min(1,(U[0]+fe)/U[0]):(1-fe)/U[0],0);return $+=U[0]+U[1],{abs:Bt,distance:r.rtl?-1*fe+1-U[0]:fe,portion:Bi,size:U[0]}});return se=z(se),Se=R(se),{abs:z(se),length:i,max:d,maxIdx:l,min:h,minIdx:u,position:T,progress:w?v/n:T/i,rel:Se,slides:Je,slidesLength:n}}}();return t.details=b,e.emit("detailsChanged"),b}return t={absToRel:R,add:N,details:null,distToIdx:j,idxToDist:E,init:function(D){if(function(){if(r=e.options,o=(r.trackConfig||[]).map(function(O){return[Ie(O,"size",1),Ie(O,"spacing",0),Ie(O,"origin",0)]}),s=o.length){n=We(o.reduce(function(O,_){return O+_[0]+_[1]},0));var w,v=s-1;i=We(n+o[0][2]-o[v][0]-o[v][2]-o[v][1]),a=o.reduce(function(O,_){if(!O)return[0];var $=o[O.length-1],X=O[O.length-1]+($[0]+$[2])+$[1];return X-=_[2],O[O.length-1]>X&&(X=O[O.length-1]),X=We(X),O.push(X),(!w||w<X)&&(c=O.length-1),w=X,O},null),i===0&&(c=0),a.push(We(n))}}(),!s)return x(!0);var b;(function(){var w=e.options.range,v=e.options.loop;g=u=v?Ie(v,"min",-1/0):0,f=l=v?Ie(v,"max",M):c;var O=Ie(w,"min",null),_=Ie(w,"max",null);O!==null&&(u=O),_!==null&&(l=_),h=u===-1/0?u:e.track.idxToDist(u||0,!0,0),d=l===M?l:E(l,!0,0),_===null&&(f=l),Ie(w,"align",!1)&&l!==M&&o[R(l)][2]===0&&(d-=1-o[R(l)][0],l=j(d-T)),h=We(h),d=We(d)})(),b=D,Number(b)===b?N(S(z(D))):x()},to:F,velocity:function(){var D=uu(),b=y.reduce(function(w,v){var O=v.distance,_=v.timestamp;return D-_>200||(Xe(O)!==Xe(w.distance)&&w.distance&&(w={distance:0,lastTimestamp:0,time:0}),w.time&&(w.distance+=O),w.lastTimestamp&&(w.time+=_-w.lastTimestamp),w.lastTimestamp=_),w},{distance:0,lastTimestamp:0,time:0});return b.distance/b.time||0}}}function ty(e){var t,n,i,r,o,s,a,c;function u(m){return 2*m}function l(m){return Oo(m,a,c)}function g(m){return 1-Math.pow(1-m,3)}function f(){return i?e.track.velocity():0}function h(){y();var m=e.options.mode==="free-snap",T=e.track,N=f();r=Xe(N);var j=e.track.details,A=[];if(N||!m){var E=d(N),S=E.dist,I=E.dur;if(I=u(I),S*=r,m){var z=T.idxToDist(T.distToIdx(S),!0);z&&(S=z)}A.push({distance:S,duration:I,easing:g});var C=j.position,R=C+S;if(R<o||R>s){var F=R<o?o-C:s-C,x=0,D=N;if(Xe(F)===r){var b=Math.min(Math.abs(F)/Math.abs(S),1),w=function(_){return 1-Math.pow(1-_,1/3)}(b)*I;A[0].earlyExit=w,D=N*(1-b)}else A[0].earlyExit=0,x+=F;var v=d(D,100),O=v.dist*r;e.options.rubberband&&(A.push({distance:O,duration:u(v.dur),easing:g}),A.push({distance:-O+x,duration:500,easing:g}))}e.animator.start(A)}else e.moveToIdx(l(j.abs),!0,{duration:500,easing:function(_){return 1+--_*_*_*_*_}})}function d(m,T){T===void 0&&(T=1e3);var N=147e-9+(m=Math.abs(m))/T;return{dist:Math.pow(m,2)/N,dur:m/N}}function M(){var m=e.track.details;m&&(o=m.min,s=m.max,a=m.minIdx,c=m.maxIdx)}function y(){e.animator.stop()}e.on("updated",M),e.on("optionsChanged",M),e.on("created",M),e.on("dragStarted",function(){i=!1,y(),t=n=e.track.details.abs}),e.on("dragChecked",function(){i=!0}),e.on("dragEnded",function(){var m=e.options.mode;m==="snap"&&function(){var T=e.track,N=e.track.details,j=N.position,A=Xe(f());(j>s||j<o)&&(A=0);var E=t+A;N.slides[T.absToRel(E)].portion===0&&(E-=A),t!==n&&(E=n),Xe(T.idxToDist(E,!0))!==A&&(E+=A),E=l(E);var S=T.idxToDist(E,!0);e.animator.start([{distance:S,duration:500,easing:function(I){return 1+--I*I*I*I*I}}])}(),m!=="free"&&m!=="free-snap"||h()}),e.on("dragged",function(){n=e.track.details.abs})}function ny(e){var t,n,i,r,o,s,a,c,u,l,g,f,h,d,M,y,m,T,N=lu();function j(x){if(s&&c===x.id){var D=I(x);if(u){if(!S(x))return E(x);l=D,u=!1,e.emit("dragChecked")}if(y)return l=D;Hn(x);var b=function(v){if(m===-1/0&&T===1/0)return v;var O=e.track.details,_=O.length,$=O.position,X=Oo(v,m-$,T-$);if(_===0)return 0;if(!e.options.rubberband)return X;if($<=T&&$>=m||$<m&&n>0||$>T&&n<0)return v;var se=($<m?$-m:$-T)/_,Se=r*_,at=Math.abs(se*Se),Je=Math.max(0,1-at/o*2);return Je*Je*v}(a(l-D)/r*i);n=Xe(b);var w=e.track.details.position;(w>m&&w<T||w===m&&n>0||w===T&&n<0)&&Qn(x),g+=b,!f&&Math.abs(g*r)>5&&(f=!0),e.track.add(b),l=D,e.emit("dragged")}}function A(x){!s&&e.track.details&&e.track.details.length&&(g=0,s=!0,f=!1,u=!0,c=x.id,S(x),l=I(x),e.emit("dragStarted"))}function E(x){s&&c===x.idChanged&&(s=!1,e.emit("dragEnded"))}function S(x){var D=z(),b=D?x.y:x.x,w=D?x.x:x.y,v=h!==void 0&&d!==void 0&&Math.abs(d-w)<=Math.abs(h-b);return h=b,d=w,v}function I(x){return z()?x.y:x.x}function z(){return e.options.vertical}function C(){r=e.size,o=z()?window.innerHeight:window.innerWidth;var x=e.track.details;x&&(m=x.min,T=x.max)}function R(x){f&&(Qn(x),Hn(x))}function F(){if(N.purge(),e.options.drag&&!e.options.disabled){var x;x=e.options.dragSpeed||1,a=typeof x=="function"?x:function(b){return b*x},i=e.options.rtl?-1:1,C(),t=e.container,function(){var b="data-keen-slider-clickable";Ri("[".concat(b,"]:not([").concat(b,"=false])"),t).map(function(w){N.add(w,"dragstart",Qn),N.add(w,"mousedown",Qn),N.add(w,"touchstart",Qn)})}(),N.add(t,"dragstart",function(b){Hn(b)}),N.add(t,"click",R,{capture:!0}),N.input(t,"ksDragStart",A),N.input(t,"ksDrag",j),N.input(t,"ksDragEnd",E),N.input(t,"mousedown",A),N.input(t,"mousemove",j),N.input(t,"mouseleave",E),N.input(t,"mouseup",E),N.input(t,"touchstart",A,{passive:!0}),N.input(t,"touchmove",j,{passive:!1}),N.input(t,"touchend",E),N.input(t,"touchcancel",E),N.add(window,"wheel",function(b){s&&Hn(b)});var D="data-keen-slider-scrollable";Ri("[".concat(D,"]:not([").concat(D,"=false])"),e.container).map(function(b){return function(w){var v;N.input(w,"touchstart",function(O){v=I(O),y=!0,M=!0},{passive:!0}),N.input(w,"touchmove",function(O){var _=z(),$=_?w.scrollHeight-w.clientHeight:w.scrollWidth-w.clientWidth,X=v-I(O),se=_?w.scrollTop:w.scrollLeft,Se=_&&w.style.overflowY==="scroll"||!_&&w.style.overflowX==="scroll";if(v=I(O),(X<0&&se>0||X>0&&se<$)&&M&&Se)return y=!0;M=!1,Hn(O),y=!1}),N.input(w,"touchend",function(){y=!1})}(b)})}}e.on("updated",C),e.on("optionsChanged",F),e.on("created",F),e.on("destroyed",N.purge)}function iy(e){var t,n,i=null;function r(h,d,M){e.animator.active?s(h,d,M):requestAnimationFrame(function(){return s(h,d,M)})}function o(){r(!1,!1,n)}function s(h,d,M){var y=0,m=e.size,T=e.track.details;if(T&&t){var N=T.slides;t.forEach(function(j,A){if(h)!i&&d&&c(j,null,M),u(j,null,M);else{if(!N[A])return;var E=N[A].size*m;!i&&d&&c(j,E,M),u(j,N[A].distance*m-y,M),y+=E}})}}function a(h){return e.options.renderMode==="performance"?Math.round(h):h}function c(h,d,M){var y=M?"height":"width";d!==null&&(d=a(d)+"px"),h.style["min-"+y]=d,h.style["max-"+y]=d}function u(h,d,M){if(d!==null){d=a(d);var y=M?d:0;d="translate3d(".concat(M?0:d,"px, ").concat(y,"px, 0)")}h.style.transform=d,h.style["-webkit-transform"]=d}function l(){t&&(s(!0,!0,n),t=null),e.on("detailsChanged",o,!0)}function g(){r(!1,!0,n)}function f(){l(),n=e.options.vertical,e.options.disabled||e.options.renderMode==="custom"||(i=Ie(e.options.slides,"perView",null)==="auto",e.on("detailsChanged",o),(t=e.slides).length&&g())}e.on("created",f),e.on("optionsChanged",f),e.on("beforeOptionsChanged",function(){l()}),e.on("updated",g),e.on("destroyed",l)}function ry(e,t){return function(n){var i,r,o,s,a,c=lu();function u(S){var I;vo(n.container,"reverse",(I=n.container,window.getComputedStyle(I,null).getPropertyValue("direction")!=="rtl"||S?null:"")),vo(n.container,"v",n.options.vertical&&!S?"":null),vo(n.container,"disabled",n.options.disabled&&!S?"":null)}function l(){g()&&y()}function g(){var S=null;if(s.forEach(function(z){z.matches&&(S=z.__media)}),S===i)return!1;i||n.emit("beforeOptionsChanged"),i=S;var I=S?o.breakpoints[S]:o;return n.options=Ln(Ln({},o),I),u(),A(),E(),T(),!0}function f(S){var I=fu(S);return(n.options.vertical?I.height:I.width)/n.size||1}function h(){return n.options.trackConfig.length}function d(S){for(var I in i=!1,o=Ln(Ln({},t),S),c.purge(),r=n.size,s=[],o.breakpoints||[]){var z=window.matchMedia(I);z.__media=I,s.push(z),c.add(z,"change",l)}c.add(window,"orientationchange",j),c.add(window,"resize",N),g()}function M(S){n.animator.stop();var I=n.track.details;n.track.init(S??(I?I.abs:0))}function y(S){M(S),n.emit("optionsChanged")}function m(S,I){if(S)return d(S),void y(I);A(),E();var z=h();T(),h()!==z?y(I):M(I),n.emit("updated")}function T(){var S=n.options.slides;if(typeof S=="function")return n.options.trackConfig=S(n.size,n.slides);for(var I=n.slides,z=I.length,C=typeof S=="number"?S:Ie(S,"number",z,!0),R=[],F=Ie(S,"perView",1,!0),x=Ie(S,"spacing",0,!0)/n.size||0,D=F==="auto"?x:x/F,b=Ie(S,"origin","auto"),w=0,v=0;v<C;v++){var O=F==="auto"?f(I[v]):1/F-x+D,_=b==="center"?.5-O/2:b==="auto"?0:b;R.push({origin:_,size:O,spacing:x}),w+=O}if(w+=x*(C-1),b==="auto"&&!n.options.loop&&F!==1){var $=0;R.map(function(X){var se=w-$;return $+=X.size+x,se>=1||(X.origin=1-se-(w>1?0:1-w)),X})}n.options.trackConfig=R}function N(){A();var S=n.size;n.options.disabled||S===r||(r=S,m())}function j(){N(),setTimeout(N,500),setTimeout(N,2e3)}function A(){var S=fu(n.container);n.size=(n.options.vertical?S.height:S.width)||1}function E(){n.slides=Ri(n.options.selector,n.container)}n.container=(a=Ri(e,document)).length?a[0]:null,n.destroy=function(){c.purge(),n.emit("destroyed"),u(!0)},n.prev=function(){n.moveToIdx(n.track.details.abs-1,!0)},n.next=function(){n.moveToIdx(n.track.details.abs+1,!0)},n.update=m,d(n.options)}}var oy=function(e,t,n){try{return function(i,r){var o,s={};return o={emit:function(a){s[a]&&s[a].forEach(function(u){u(o)});var c=o.options&&o.options[a];c&&c(o)},moveToIdx:function(a,c,u){var l=o.track.idxToDist(a,c);if(l){var g=o.options.defaultAnimation;o.animator.start([{distance:l,duration:Ie(u||g,"duration",500),easing:Ie(u||g,"easing",function(f){return 1+--f*f*f*f*f})}])}},on:function(a,c,u){u===void 0&&(u=!1),s[a]||(s[a]=[]);var l=s[a].indexOf(c);l>-1?u&&delete s[a][l]:u||s[a].push(c)},options:i},function(){if(o.track=ey(o),o.animator=J0(o),r)for(var a=0,c=r;a<c.length;a++)(0,c[a])(o);o.track.init(o.options.initial||0),o.emit("created")}(),o}(t,su([ry(e,{drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"}),iy,ny,ty],n||[],!0))}catch(i){console.error(i)}};const sy=(e,...t)=>{let n,i;const r=()=>X0(e),[o,s]=P(r()?.initial||0),a=()=>n&&n.destroy(),c=(g={})=>({selector:i.childNodes,...r(),...g}),u=()=>n?.update(c());return[g=>{i=g,i.classList.add("keen-slider"),Lt(()=>{n=new oy(i,c(),t),n.on("slideChanged",()=>s(n.track.details.rel))}),V(a),typeof e=="function"&&H(Ze(()=>e,u))},{current:o,next:()=>n&&n.next(),prev:()=>n&&n.prev(),details:()=>n?n.track.details:{},slider:()=>n,moveTo:(g,f=250,h=!1,d)=>n?.moveToIdx(g,h,{duration:f,easing:d}),destroy:a,update:u}]},Sm="",pm="",Im="",Fi=e=>{const[t]=ae(e,["class"]);return L(pi,q(e,{get class(){return st(t.class,"mb-1epo54l",e.variant==="secondary"&&"mb-1ohbwoy")},get children(){return e.children}}))},ay="data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjgwIiBoZWlnaHQ9IjE5NyIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDI4MCAxOTciPgogIDxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0yNDEuMjY3IDEzLjQyNkgzOC43MjlhOS4wOTUgOS4wOTUgMCAwIDAtOS4wOTUgOS4wOTVWMTQ0LjU1YTkuMDk1IDkuMDk1IDAgMCAwIDkuMDk1IDkuMDk1aDIwMi41MzhhOS4wOT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LTcuOTI5VjIxLjY5NWMwLTQuMzcyLTMuNTU2LTcuOTI4LTcuOTI4LTcuOTI4SDM2LjU2M3YuMDA0Wm0xMDEuNTA5IDE3Ni40MjRjNy42MDMgMCAxMy43NjctNi4xNjQgMTMuNzY3LTEzLjc2N3MtNi4xNjQtMTMuNzY3LTEzLjc2Ny0xMy43NjctMTMuNzY2IDYuMTY0LTEzLjc2NiAxMy43NjcgNi4xNjMgMTMuNzY3IDEzLjc2NiAxMy43NjdaIi8+CiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0ibTEzOS43MiAxNzYuNjYxIDIuNjQxLTIuNjQxYTEuMTY1IDEuMTY1IDAgMCAwIDAtMS42NTIgMS4xNjcgMS4xNjcgMCAwIDAtMS42NTIgMGwtMi42NDEgMi42NDEtMi42NDEtMi42NDFhMS4xNjcgMS4xNjcgMCAwIDAtMS42NTIgMCAxLjE2NSAxLjE2NSAwIDAgMCAwIDEuNjUybDIuNjQxIDIuNjQxLTIuNjQxIDIuNjQyYTEuMTY1IDEuMTY1IDAgMCAwIC44MjYgMS45OTJjLjI5OCAwIC41OTctLjExMi44MjYtLjM0bDIuNjQxLTIuNjQyIDIuNjQxIDIuNjQyYy4yMjkuMjI4LjUyOC4zNC44MjYuMzRhMS4xNjUgMS4xNjUgMCAwIDAgLjgyNi0xLjk5MmwtMi42NDEtMi42NDJaIi8+Cjwvc3ZnPg==",wm="",xm="",Dm="",du="mb-zjxyoc",gu="mb-1mieit8",Mu=st("mb-style-scope","mb-1ogpkgw"),bm="",vm="",Om="",Cm="",zm="",_m="",km="",ly=ne('<div><div><div><div><img alt=""srcset=""></div><div><h2></h2><p></p></div></div><div><div><img alt=""srcset=""></div><div><h2></h2><p></p></div></div><div><div><img alt=""srcset=""></div><div><h2></h2><p></p></div></div></div><div></div><div>'),hu=ne("<div>"),fy=()=>{let e;const{solidStore:t,updateSolidStore:n}=xt(),[i,{current:r,next:o,prev:s}]=sy(),a=()=>{n({helpVisible:!1}),t.captureSdk?.startCapture()};Lt(()=>{i(e),t.captureSdk?.pauseCapture()});const{t:c}=nn();return L(xi,{open:!0,get children(){return L(wi,{get children(){return[L(oo,{class:gu}),(()=>{const u=hu();return ge(u,du),G(u,L(Ii,{onEscapeKeyDown:a,onPointerDownOutside:a,onOpenAutoFocus:l=>l.preventDefault(),class:Mu,get children(){return[L(io,{onClick:a,class:"mb-8u3v3h",get children(){return L(yo,{class:"mb-h83tsy"})}}),(()=>{const l=ly(),g=l.firstChild,f=g.firstChild,h=f.firstChild,d=h.firstChild,M=h.nextSibling,y=M.firstChild,m=y.nextSibling,T=f.nextSibling,N=T.firstChild,j=N.firstChild,A=N.nextSibling,E=A.firstChild,S=E.nextSibling,I=T.nextSibling,z=I.firstChild,C=z.firstChild,R=z.nextSibling,F=R.firstChild,x=F.nextSibling,D=g.nextSibling,b=D.nextSibling;ge(l,"mb-d1kpoi");const w=e;return typeof w=="function"?Is(w,g):e=g,At(d,"src",ay),G(y,()=>c.tutorial_fields_visible_title),G(m,()=>c.tutorial_fields_visible_details),At(j,"src",cy),G(E,()=>c.tutorial_harsh_light_title),G(S,()=>c.tutorial_harsh_light_details),At(C,"src",uy),G(F,()=>c.tutorial_keep_still_title),G(x,()=>c.tutorial_keep_still_details),ge(D,"mb-slxsc0"),G(D,L(Ss,{get each(){return new Array(3).fill(null)},children:(v,O)=>(()=>{const _=hu();return Be(()=>ge(_,st("mb-1777uja",O()===r()&&"mb-rp0tll"))),_})()})),ge(b,"mb-4sy7j9"),G(b,L(Fi,{get disabled(){return r()===0},onClick:()=>s(),variant:"secondary",get children(){return c.back}}),null),G(b,L(mr,{get children(){return[L(rt,{get when(){return r()!==2},get children(){return L(Fi,{onClick:()=>o(),get children(){return c.next}})}}),L(rt,{get when(){return r()===2},get children(){return L(Fi,{onClick:a,get children(){return c.done}})}})]}}),null),l})()]}})),u})()]}})}})},dy="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIH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4IDEzLjc2NyAxMy43MThaIi8+CiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE0NC43NTUgMTc3LjA4MWExLjE2OCAxLjE2OCAwIDAgMC0xLjY1MiAwbC02LjE0MSA2LjExOS0yLjY3NC0yLjY2NGExLjE2OCAxLjE2OCAwIDAgMC0xLjY1MiAwIDEuMTYgMS4xNiAwIDAgMCAwIDEuNjQ2bDMuNDYzIDMuNDU1Yy4yMjguMjI4LjUyNy4zNC44MjYuMzRoLjA3NGMuMjk5IDAgLjU5OC0uMTEyLjgyNi0uMzRsNi45My02LjkwNWExLjE1OCAxLjE1OCAwIDAgMCAwLTEuNjQ2di0uMDA1WiIvPgo8L3N2Zz4=",Um="",Ym="",Pm="",Rm="",Fm="",gy=ne('<div><img alt=""srcset=""><h2></h2><p>'),My=ne("<div>"),hy=()=>{const[e,t]=P(!0),{solidStore:n}=xt(),i=()=>{t(!1),n.captureSdk?.startCapture()};Lt(()=>{n.captureSdk?.pauseCapture()});const{t:r}=nn();return L(xi,{get open(){return e()},get children(){return L(wi,{get children(){return[L(oo,{class:gu}),(()=>{const o=My();return ge(o,du),G(o,L(Ii,{onEscapeKeyDown:i,onPointerDownOutside:i,class:Mu,get children(){return[L(io,{onClick:i,class:"mb-8u3v3h",get children(){return L(yo,{class:"mb-h83tsy"})}}),(()=>{const s=gy(),a=s.firstChild,c=a.nextSibling,u=c.nextSibling;return ge(s,"mb-zjp32o"),At(a,"src",dy),ge(a,"mb-zgw7tn"),G(c,()=>r.tutorial_fields_visible_title),G(u,()=>r.tutorial_fields_visible_details),G(s,L(Fi,{onClick:i,class:"mb-1r8ti85",get children(){return r.tutorial_fields_visible_start}}),null),s})()]}})),o})()]}})}})},yy=ne('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 115 53"><path fill=#fff d="M35.088 19.572c1.314 0 2.178-.891 2.178-2.16 0-1.287-.855-2.151-2.178-2.151h-2.601v6.579h1.152v-2.268h1.449Zm-.225-3.285c.765 0 1.197.396 1.197 1.116 0 .72-.423 1.143-1.215 1.143h-1.206v-2.259h1.224Zm2.909 3.321c0 1.386 1 2.34 2.376 2.34 1.377 0 2.376-.954 2.376-2.34s-.999-2.34-2.376-2.34c-1.377 0-2.376.954-2.376 2.34Zm1.098 0c0-.81.522-1.359 1.278-1.359s1.278.549 1.278 1.359c0 .81-.522 1.359-1.278 1.359s-1.278-.549-1.278-1.359Zm5.466 2.232h1.07l.613-1.908c.225-.729.306-1.044.35-1.251.037.225.136.648.316 1.233l.612 1.926h1.026l1.539-4.446H48.7l-.594 1.908c-.081.279-.225.81-.297 1.143a16.122 16.122 0 0 0-.288-1.143l-.594-1.908h-1.116l-.612 1.908c-.144.441-.225.72-.306 1.152a14.615 14.615 0 0 0-.27-1.152l-.585-1.908h-1.143l1.44 4.446Zm8.14.117c1.16 0 1.97-.585 2.16-1.557h-1.017c-.126.423-.522.657-1.125.657-.73 0-1.143-.396-1.224-1.179l3.348-.009v-.333c0-1.386-.846-2.277-2.178-2.277-1.305 0-2.214.963-2.214 2.358 0 1.377.927 2.34 2.25 2.34Zm-.027-3.798c.657 0 1.08.405 1.08 1.017h-2.232c.108-.666.504-1.017 1.152-1.017Zm6.018-.783a1.948 1.948 0 0 0-.486-.063c-.594 0-1.017.297-1.206.738l-.063-.648h-1.035v4.437h1.098v-2.16c0-.864.495-1.287 1.287-1.287h.405v-1.017Zm2.763 4.581c1.16 0 1.97-.585 2.16-1.557h-1.018c-.126.423-.522.657-1.125.657-.729 0-1.143-.396-1.224-1.179l3.348-.009v-.333c0-1.386-.846-2.277-2.178-2.277-1.305 0-2.214.963-2.214 2.358 0 1.377.927 2.34 2.25 2.34Zm-.028-3.798c.657 0 1.08.405 1.08 1.017H60.05c.108-.666.504-1.017 1.152-1.017Zm5.055 3.798c.675 0 1.251-.297 1.521-.81l.072.693h1.008v-6.696H67.77v2.817c-.279-.441-.828-.702-1.449-.702-1.34 0-2.15.99-2.15 2.376 0 1.377.8 2.322 2.087 2.322Zm.243-1.008c-.765 0-1.233-.558-1.233-1.35s.468-1.359 1.233-1.359c.765 0 1.26.558 1.26 1.359 0 .801-.495 1.35-1.26 1.35Zm7.305.891.072-.693c.261.513.828.81 1.494.81 1.278 0 2.115-.945 2.115-2.313 0-1.404-.774-2.394-2.043-2.394-.675 0-1.269.297-1.557.792v-2.898h-1.098v6.696h1.017Zm.09-2.241c0-.801.495-1.359 1.251-1.359.774 0 1.233.567 1.233 1.359s-.459 1.35-1.233 1.35c-.756 0-1.25-.549-1.25-1.35Zm4.092 4.302c.243.063.513.099.819.099.728 0 1.197-.342 1.53-1.17l2.177-5.436H81.38l-1.206 3.24-1.142-3.24H77.87l1.791 4.635-.126.333c-.189.522-.459.621-.89.621h-.657v.918ZM19.816 35.596l-2.89-7.432H15v9.672h1.314V30.23l2.996 7.648h.959l3.022-7.716v7.675h1.355v-9.672h-1.939l-2.89 7.432Zm8.837-7.433h-1.422v9.673h1.422v-9.672Zm19.01 4.828a3.188 3.188 0 0 0 .59-1.87c0-.791-.34-1.53-.958-2.08-.637-.566-1.523-.876-2.497-.876h-3.925v9.673h1.422v-3.46h2.303l2.008 3.459h1.688l-2.15-3.696a3.277 3.277 0 0 0 1.519-1.15Zm-.86-1.856a1.925 1.925 0 0 1-.548 1.369c-.362.362-.87.561-1.43.561h-2.532v-3.573h2.532c1.128 0 1.979.706 1.979 1.643ZM54.28 28c-1.334 0-2.537.525-3.392 1.477-.822.918-1.276 2.169-1.276 3.523s.453 2.612 1.276 3.529c.852.948 2.057 1.47 3.392 1.47 1.341 0 2.55-.523 3.404-1.47.824-.916 1.278-2.17 1.278-3.53 0-1.36-.454-2.605-1.278-3.522C56.83 28.523 55.62 28 54.28 28Zm0 8.645a2.997 2.997 0 0 1-1.27-.278 3.047 3.047 0 0 1-1.04-.79c-.586-.678-.909-1.593-.909-2.577s.323-1.892.91-2.572a3.017 3.017 0 0 1 2.31-1.073c.892 0 1.715.381 2.316 1.074.59.68.916 1.593.916 2.57 0 .979-.325 1.899-.916 2.578a3.064 3.064 0 0 1-1.044.79c-.4.184-.834.28-1.273.278Zm12.474-3.883c.83-.466 1.322-1.283 1.322-2.199 0-1.413-1.233-2.4-2.995-2.4h-4.17v9.673h4.37c1.736 0 2.996-1.175 2.996-2.794.001-.972-.58-1.839-1.523-2.28Zm-1.431 3.747h-2.99v-3.002h2.786c1.022 0 1.71.557 1.71 1.386 0 .981-.591 1.616-1.506 1.616Zm-.364-4.303h-2.627v-2.714h2.787c.917 0 1.507.484 1.507 1.235.001.737-.515 1.48-1.667 1.48v-.001Zm6.787-4.043h-1.422v9.673h6.222v-1.355h-4.8v-8.318Zm7.808 0h-1.422v9.673h1.422v-9.672Zm8.93 7.157-4.954-7.126-.021-.03h-1.375v9.672h1.341v-7.51l5.219 7.51h1.131v-9.672h-1.34v7.156Zm7.694-2.9 3.72-4.257H98.16l-4.333 4.948v-4.947h-1.422v9.672h1.422V35.03l1.38-1.56 3.07 4.367H100l-3.822-5.417Zm-58.265 2.144c-.634 1.468-1.448 2.094-2.726 2.094-.874 0-1.674-.38-2.253-1.069-.571-.678-.885-1.598-.885-2.59 0-.983.307-1.896.864-2.572.571-.691 1.364-1.072 2.234-1.072 1.177 0 2.039.597 2.633 1.825l.025.052h1.488l-.007-.042c-.035-.204-.109-.394-.18-.581l-.023-.06a3.979 3.979 0 0 0-1.522-1.872c-.685-.45-1.511-.677-2.455-.677-1.29 0-2.453.525-3.277 1.478-.793.917-1.23 2.168-1.23 3.522 0 1.372.44 2.629 1.237 3.538.839.956 1.988 1.462 3.324 1.462.936 0 1.758-.247 2.445-.733.115-.082.226-.17.332-.264.696-.615 1.223-1.491 1.41-2.343l.004-.022c.007-.03.012-.06.017-.088l.007-.042h-1.439l-.023.056Z">'),my=(e={})=>(()=>{const t=yy();return be(t,e,!0,!0),t})(),Bm="",Hm="",Qm="",Gm="",Vm="",Ny=ne('<div><div></div><video src="">'),Ty=ne("<div>"),yu=()=>{let e;const{solidStore:t,sdkStore:n}=xt(),{t:i}=nn();return H(()=>{const r=t.captureSdk;!n||!r||r.startCameraStream(e).then(async()=>{t.uiSettings.showTutorial||await r.startCapture()})}),(()=>{const r=Ny(),o=r.firstChild,s=o.nextSibling;G(r,L(he,{get when(){return!n.isQueryingCameras},get fallback(){return(()=>{const c=Ty();return G(c,()=>i.camera_query_in_progress),c})()},get children(){return L(wh,{})}}),o),G(r,L(he,{get when(){return n.isPlaying&&t.uiSettings.showTutorial},get children(){return L(hy,{})}}),o),G(r,L(he,{get when(){return t.helpVisible},get children(){return L(fy,{})}}),o),G(r,L(he,{get when(){return n.isCapturing||n.uiState.key===Le.SIDE_CAPTURED.key||n.uiState.key===Le.DOCUMENT_CAPTURED.key||n.uiState.key===Le.DOCUMENT_FRAMING_CAMERA_ORIENTATION_UNSUITABLE_ANIMATION.key},get children(){return L(U0,{})}}),o),G(o,L(my,{class:Ey})),G(r,L(W0,{}),s);const a=e;return typeof a=="function"?Is(a,s):e=s,ge(s,py),Be(c=>{const u=st("mb-style-scope",jy,"mb-video-screen"),l=st(Sy,"mb-logo"),g=`scaleX(${n.mirrorX?-1:1})`;return u!==c._v$&&ge(r,c._v$=u),l!==c._v$2&&ge(o,c._v$2=l),g!==c._v$3&&((c._v$3=g)!=null?s.style.setProperty("transform",g):s.style.removeProperty("transform")),c},{_v$:void 0,_v$2:void 0,_v$3:void 0}),r})()},Ly=()=>L(xi,{defaultOpen:!0,get children(){return L(wi,{get children(){return L(Ii,{onEscapeKeyDown:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),onOpenAutoFocus:e=>e.preventDefault(),class:Ay,get children(){return L(yu,{})}})}})}}),jy="mb-1lz2sq8",Ay="mb-1v96fqo",Ey="mb-191sfs5",Sy="mb-o9aq4l",py="mb-1f2d6cn",Km="",$m="",Iy=ne("<div class=alert-dialog__header>"),wy=ne("<p>"),xy=ne("<div class=alert-dialog__positioner>"),Dy=ne("<pre>"),by=e=>L(xi,{defaultOpen:!0,get children(){return L(wi,{get children(){return[L(oo,{class:"alert-dialog__overlay"}),(()=>{const t=xy();return G(t,L(oM,{class:"alert-dialog__content",get children(){return[(()=>{const n=Iy();return G(n,L(rM,{class:"alert-dialog__title",get children(){return["Caught error: ",Y(()=>e.error.name)]}}),null),G(n,L(io,{class:"alert-dialog__close-button",children:"Close"}),null),n})(),L(iM,{class:"alert-dialog__description",get children(){return[(()=>{const n=wy();return G(n,()=>e.error.message),n})(),L(he,{get when(){return e.error.stack},children:n=>(()=>{const i=Dy();return ge(i,"mb-rjcpop"),G(i,n),i})()})]}})]}})),t})()]}})}}),Wm="",vy=()=>{const{solidStore:e,sdkStore:t}=xt();function n(){e.captureSdk&&e.uiSettings.destroyInstanceOnDismount&&e.captureSdk.destroy()}return H(()=>{if(e.captureSdk){const i=e.captureSdk.subscribe(r=>r.videoElement,(r,o)=>{k.getState().initialized&&!r&&o&&(console.info("Video element disconnected, dismounting"),e.dismountFn(),n())});V(()=>i())}}),V(()=>{n()}),[L(he,{get when(){return e.uiSettings.showErrorDialog&&t.errorState},children:i=>L(by,{get error(){return i()}})}),L(he,{get when(){return e.captureSdk},get children(){return L(pn,{get component(){return e.uiSettings.target.id===Co?Ly:yu}})}})]},Co="mount-point";async function Oy(e){const t=await gs(e.sdkSettings),n=e.uiSettings??{};return n.destroyInstanceOnDismount=!0,mu(t,n)}function mu(e,t={}){const n=()=>{try{document.getElementById(Co)?.remove(),u()}catch{}},i={captureSdk:e,helpVisible:!1,uiSettings:{target:null,showTutorial:!0,showErrorDialog:!0,destroyInstanceOnDismount:!1},dismountFn:n},r=t?.target??document.createElement("div");!r.isConnected&&r instanceof HTMLDivElement&&(r.setAttribute("id",Co),document.body.appendChild(r));const o=wf(i.uiSettings,t,{isMergeableObject:xf});o.target=r;const s={...i,uiSettings:o};let a;const c=g=>{a=g},u=nf(()=>L(zf,{get userStrings(){return t?.localization},setLocalizationRef:c,get children(){return L(Ah,{captureSdk:e,solidStoreDefaults:s,get children(){return L(vy,{})}})}}),s.uiSettings.target);return{captureSdk:e,updateLocalization:a,dismount:n}}const Cy=e=>{const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");if(!n)throw new Error("missing canvas");return n.putImageData(e,0,0),t.toDataURL()},zy=e=>e.replace("data:","").replace(/^.+,/,"");me.ConfiguredCamera=es,me.LicenseTokenState=Vi,me.ServerPermissionSubmitResultStatus=Ki,me.createCaptureSdk=gs,me.createCaptureUi=Oy,me.createCaptureUiWithInstance=mu,me.createDirectApi=ss,me.feedbackParser=ar,me.getBase64StringFromDataURL=zy,me.imageDataToUrl=Cy,me.resetCoreStore=ds,me.uiStateMap=Le,me.zustandStore=k,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});