@forgerock/login-widget 1.3.0 → 2.0.0

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.
@@ -0,0 +1,94 @@
1
+ var ForgeRockLoginWidget=function(Bt){"use strict";"use strict";var I4=Object.defineProperty;var n1=Bt=>{throw TypeError(Bt)};var A4=(Bt,Qt,Lt)=>Qt in Bt?I4(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Bt[Qt]=Lt;var Je=(Bt,Qt,Lt)=>A4(Bt,typeof Qt!="symbol"?Qt+"":Qt,Lt),ph=(Bt,Qt,Lt)=>Qt.has(Bt)||n1("Cannot "+Lt);var ue=(Bt,Qt,Lt)=>(ph(Bt,Qt,"read from private field"),Lt?Lt.call(Bt):Qt.get(Bt)),At=(Bt,Qt,Lt)=>Qt.has(Bt)?n1("Cannot add the same private member more than once"):Qt instanceof WeakSet?Qt.add(Bt):Qt.set(Bt,Lt),bt=(Bt,Qt,Lt,bi)=>(ph(Bt,Qt,"write to private field"),bi?bi.call(Bt,Lt):Qt.set(Bt,Lt),Lt),pn=(Bt,Qt,Lt)=>(ph(Bt,Qt,"access private method"),Lt);var B_,Ca,$s,ls,Zs,Ys,Js,Ia,mi,Xs,nr,mh,vh,yh,_h,mr,hl,vi,cs,rr,yi,vr,$r,zi,us,Aa,Qs,eo,to,Vi,gu,hn,r1,i1,a1,wh,bu,Su,bh,z_,Hi,Dr,V_,Zr,_i,yr,ds,gl,pl,pu,ml,H_,j_;function Qt(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Lt=2,bi=4,Pa=8,Eu=1<<24,Wi=16,xr=32,Ra=64,ku=128,br=512,En=1024,Tn=2048,Sr=4096,zn=8192,ai=16384,Ma=32768,La=65536,Sh=1<<17,s1=1<<18,gs=1<<19,Eh=1<<20,si=1<<25,Da=65536,Cu=1<<21,Iu=1<<22,Ki=1<<23,$i=Symbol("$state"),Au=Symbol("legacy props"),o1=Symbol(""),Na=new class extends Error{constructor(){super(...arguments);Je(this,"name","StaleReactionError");Je(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},kh=!!((B_=globalThis.document)!=null&&B_.contentType)&&globalThis.document.contentType.includes("xml"),co=3,ps=8,Tu=!1;var Ch=Array.isArray,l1=Array.prototype.indexOf,ms=Array.prototype.includes,Sl=Array.from,Ou=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,Ih=Object.getOwnPropertyDescriptors,c1=Object.prototype,u1=Array.prototype,Pu=Object.getPrototypeOf,Ah=Object.isExtensible;function uo(e){return typeof e=="function"}const oi=()=>{};function d1(e){return e()}function El(e){for(var t=0;t<e.length;t++)e[t]()}function Th(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function Oh(e){return e===this.v}function Ph(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Rh(e){return!Ph(e,this.v)}function Ru(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function f1(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function h1(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function g1(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function p1(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function m1(e){throw new Error("https://svelte.dev/e/effect_orphan")}function v1(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function y1(){throw new Error("https://svelte.dev/e/hydration_failed")}function _1(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function w1(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function b1(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function S1(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function E1(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function k1(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let vs=!1,C1=!1;function I1(){vs=!0}const A1=1,T1=2,Mh=4,O1=8,P1=16,R1=1,M1=2,L1=4,D1=8,N1=16,x1=1,U1=2,Mu="[",Lu="[!",Lh="[?",Du="]",xa={},On=Symbol(),Dh="http://www.w3.org/1999/xhtml",F1="http://www.w3.org/2000/svg",B1="http://www.w3.org/1998/Math/MathML";let Kt=null;function ys(e){Kt=e}function He(e,t=!1,n){Kt={p:Kt,i:!1,c:null,e:null,s:e,x:null,l:vs&&!t?{s:null,u:null,$:[]}:null}}function je(e){var t=Kt,n=t.e;if(n!==null){t.e=null;for(var r of n)hg(r)}return e!==void 0&&(t.x=e),t.i=!0,Kt=t.p,e??{}}function _s(){return!vs||Kt!==null&&Kt.l===null}let Ua=[];function Nh(){var e=Ua;Ua=[],El(e)}function li(e){if(Ua.length===0&&!go){var t=Ua;queueMicrotask(()=>{t===Ua&&Nh()})}Ua.push(e)}function z1(){for(;Ua.length>0;)Nh()}function fo(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function V1(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let St=!1;function Ur(e){St=e}let _t;function Pn(e){if(e===null)throw fo(),xa;return _t=e}function Ei(){return Pn(Fr(_t))}function ce(e){if(St){if(Fr(_t)!==null)throw fo(),xa;_t=e}}function Wt(e=1){if(St){for(var t=e,n=_t;t--;)n=Fr(n);_t=n}}function ho(e=!0){for(var t=0,n=_t;;){if(n.nodeType===ps){var r=n.data;if(r===Du){if(t===0)return n;t-=1}else(r===Mu||r===Lu||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Fr(n);e&&n.remove(),n=i}}function Nu(e){if(!e||e.nodeType!==ps)throw fo(),xa;return e.data}function ws(e){if(typeof e!="object"||e===null||$i in e)return e;const t=Pu(e);if(t!==c1&&t!==u1)return e;var n=new Map,r=Ch(e),i=Qi(0),l=za,d=g=>{if(za===l)return g();var p=Rt,_=za;kr(null),sg(l);var S=g();return kr(p),sg(_),S};return r&&n.set("length",Qi(e.length)),new Proxy(e,{defineProperty(g,p,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&b1();var S=n.get(p);return S===void 0?d(()=>{var k=Qi(_.value);return n.set(p,k),k}):Y(S,_.value,!0),!0},deleteProperty(g,p){var _=n.get(p);if(_===void 0){if(p in g){const S=d(()=>Qi(On));n.set(p,S),mo(i)}}else Y(_,On),mo(i);return!0},get(g,p,_){var y;if(p===$i)return e;var S=n.get(p),k=p in g;if(S===void 0&&(!k||(y=Si(g,p))!=null&&y.writable)&&(S=d(()=>{var b=ws(k?g[p]:On),c=Qi(b);return c}),n.set(p,S)),S!==void 0){var h=C(S);return h===On?void 0:h}return Reflect.get(g,p,_)},getOwnPropertyDescriptor(g,p){var _=Reflect.getOwnPropertyDescriptor(g,p);if(_&&"value"in _){var S=n.get(p);S&&(_.value=C(S))}else if(_===void 0){var k=n.get(p),h=k==null?void 0:k.v;if(k!==void 0&&h!==On)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return _},has(g,p){var h;if(p===$i)return!0;var _=n.get(p),S=_!==void 0&&_.v!==On||Reflect.has(g,p);if(_!==void 0||Dt!==null&&(!S||(h=Si(g,p))!=null&&h.writable)){_===void 0&&(_=d(()=>{var y=S?ws(g[p]):On,b=Qi(y);return b}),n.set(p,_));var k=C(_);if(k===On)return!1}return S},set(g,p,_,S){var o;var k=n.get(p),h=p in g;if(r&&p==="length")for(var y=_;y<k.v;y+=1){var b=n.get(y+"");b!==void 0?Y(b,On):y in g&&(b=d(()=>Qi(On)),n.set(y+"",b))}if(k===void 0)(!h||(o=Si(g,p))!=null&&o.writable)&&(k=d(()=>Qi(void 0)),Y(k,ws(_)),n.set(p,k));else{h=k.v!==On;var c=d(()=>ws(_));Y(k,c)}var u=Reflect.getOwnPropertyDescriptor(g,p);if(u!=null&&u.set&&u.set.call(S,_),!h){if(r&&typeof p=="string"){var f=n.get("length"),s=Number(p);Number.isInteger(s)&&s>=f.v&&Y(f,s+1)}mo(i)}return!0},ownKeys(g){C(i);var p=Reflect.ownKeys(g).filter(k=>{var h=n.get(k);return h===void 0||h.v!==On});for(var[_,S]of n)S.v!==On&&!(_ in g)&&p.push(_);return p},setPrototypeOf(){S1()}})}var xh,Uh,Fh,Bh;function xu(){if(xh===void 0){xh=window,Uh=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Fh=Si(t,"firstChild").get,Bh=Si(t,"nextSibling").get,Ah(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ah(n)&&(n.__t=void 0)}}function Wn(e=""){return document.createTextNode(e)}function Er(e){return Fh.call(e)}function Fr(e){return Bh.call(e)}function de(e,t){if(!St)return Er(e);var n=Er(_t);if(n===null)n=_t.appendChild(Wn());else if(t&&n.nodeType!==co){var r=Wn();return n==null||n.before(r),Pn(r),r}return t&&kl(n),Pn(n),n}function qe(e,t=!1){if(!St){var n=Er(e);return n instanceof Comment&&n.data===""?Fr(n):n}if(t){if((_t==null?void 0:_t.nodeType)!==co){var r=Wn();return _t==null||_t.before(r),Pn(r),r}kl(_t)}return _t}function pe(e,t=1,n=!1){let r=St?_t:e;for(var i;t--;)i=r,r=Fr(r);if(!St)return r;if(n){if((r==null?void 0:r.nodeType)!==co){var l=Wn();return r===null?i==null||i.after(l):r.before(l),Pn(l),l}kl(r)}return Pn(r),r}function zh(e){e.textContent=""}function Vh(){return!1}function Hh(e,t,n){return document.createElementNS(t??Dh,e,void 0)}function kl(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===co;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function jh(e){var t=Dt;if(t===null)return Rt.f|=Ki,e;if(!(t.f&Ma)&&!(t.f&bi))throw e;Zi(e,t)}function Zi(e,t){for(;t!==null;){if(t.f&ku){if(!(t.f&Ma))throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const H1=-7169;function dn(e,t){e.f=e.f&H1|t}function Uu(e){e.f&br||e.deps===null?dn(e,En):dn(e,Sr)}function qh(e){if(e!==null)for(const t of e)!(t.f&Lt)||!(t.f&Da)||(t.f^=Da,qh(t.deps))}function Gh(e,t,n){e.f&Tn?t.add(e):e.f&Sr&&n.add(e),qh(e.deps),dn(e,En)}const Cl=new Set;let It=null,Fu=null,Rn=null,Kn=[],Il=null,go=!1,bs=null,j1=1;const lh=class lh{constructor(){At(this,nr);Je(this,"id",j1++);Je(this,"current",new Map);Je(this,"previous",new Map);At(this,Ca,new Set);At(this,$s,new Set);At(this,ls,0);At(this,Zs,0);At(this,Ys,null);At(this,Js,new Set);At(this,Ia,new Set);At(this,mi,new Map);Je(this,"is_fork",!1);At(this,Xs,!1)}skip_effect(t){ue(this,mi).has(t)||ue(this,mi).set(t,{d:[],m:[]})}unskip_effect(t){var n=ue(this,mi).get(t);if(n){ue(this,mi).delete(t);for(var r of n.d)dn(r,Tn),ci(r);for(r of n.m)dn(r,Sr),ci(r)}}process(t){var i;Kn=[],this.apply();var n=bs=[],r=[];for(const l of t)pn(this,nr,vh).call(this,l,n,r);if(bs=null,pn(this,nr,mh).call(this)){pn(this,nr,yh).call(this,r),pn(this,nr,yh).call(this,n);for(const[l,d]of ue(this,mi))Yh(l,d)}else{Fu=this,It=null;for(const l of ue(this,Ca))l(this);ue(this,Ca).clear(),ue(this,ls)===0&&pn(this,nr,_h).call(this),Kh(r),Kh(n),ue(this,Js).clear(),ue(this,Ia).clear(),Fu=null,(i=ue(this,Ys))==null||i.resolve()}Rn=null}capture(t,n){n!==On&&!this.previous.has(t)&&this.previous.set(t,n),t.f&Ki||(this.current.set(t,t.v),Rn==null||Rn.set(t,t.v))}activate(){It=this,this.apply()}deactivate(){It===this&&(It=null,Rn=null)}flush(){var t;if(Kn.length>0)It=this,Wh();else if(ue(this,ls)===0&&!this.is_fork){for(const n of ue(this,Ca))n(this);ue(this,Ca).clear(),pn(this,nr,_h).call(this),(t=ue(this,Ys))==null||t.resolve()}this.deactivate()}discard(){for(const t of ue(this,$s))t(this);ue(this,$s).clear()}increment(t){bt(this,ls,ue(this,ls)+1),t&&bt(this,Zs,ue(this,Zs)+1)}decrement(t){bt(this,ls,ue(this,ls)-1),t&&bt(this,Zs,ue(this,Zs)-1),!ue(this,Xs)&&(bt(this,Xs,!0),li(()=>{bt(this,Xs,!1),pn(this,nr,mh).call(this)?Kn.length>0&&this.flush():this.revive()}))}revive(){for(const t of ue(this,Js))ue(this,Ia).delete(t),dn(t,Tn),ci(t);for(const t of ue(this,Ia))dn(t,Sr),ci(t);this.flush()}oncommit(t){ue(this,Ca).add(t)}ondiscard(t){ue(this,$s).add(t)}settled(){return(ue(this,Ys)??bt(this,Ys,Th())).promise}static ensure(){if(It===null){const t=It=new lh;Cl.add(It),go||li(()=>{It===t&&t.flush()})}return It}apply(){}};Ca=new WeakMap,$s=new WeakMap,ls=new WeakMap,Zs=new WeakMap,Ys=new WeakMap,Js=new WeakMap,Ia=new WeakMap,mi=new WeakMap,Xs=new WeakMap,nr=new WeakSet,mh=function(){return this.is_fork||ue(this,Zs)>0},vh=function(t,n,r){t.f^=En;for(var i=t.first;i!==null;){var l=i.f,d=(l&(xr|Ra))!==0,g=d&&(l&En)!==0,p=(l&zn)!==0,_=g||ue(this,mi).has(i);if(!_&&i.fn!==null){d?p||(i.f^=En):l&bi?n.push(i):l&(Pa|Eu)&&p?r.push(i):Es(i)&&(Va(i),l&Wi&&(ue(this,Ia).add(i),p&&dn(i,Tn)));var S=i.first;if(S!==null){i=S;continue}}for(;i!==null;){var k=i.next;if(k!==null){i=k;break}i=i.parent}}},yh=function(t){for(var n=0;n<t.length;n+=1)Gh(t[n],ue(this,Js),ue(this,Ia))},_h=function(){var l;if(Cl.size>1){this.previous.clear();var t=It,n=Rn,r=!0;for(const d of Cl){if(d===this){r=!1;continue}const g=[];for(const[_,S]of this.current){if(d.current.has(_))if(r&&S!==d.current.get(_))d.current.set(_,S);else continue;g.push(_)}if(g.length===0)continue;const p=[...d.current.keys()].filter(_=>!this.current.has(_));if(p.length>0){var i=Kn;Kn=[];const _=new Set,S=new Map;for(const k of g)$h(k,p,_,S);if(Kn.length>0){It=d,d.apply();for(const k of Kn)pn(l=d,nr,vh).call(l,k,[],[]);d.deactivate()}Kn=i}}It=t,Rn=n}ue(this,mi).clear(),Cl.delete(this)};let Yi=lh;function B(e){var t=go;go=!0;try{for(var n;;){if(z1(),Kn.length===0&&(It==null||It.flush(),Kn.length===0))return Il=null,n;Wh()}}finally{go=t}}function Wh(){var e=null;try{for(var t=0;Kn.length>0;){var n=Yi.ensure();if(t++>1e3){var r,i;q1()}n.process(Kn),Xi.clear()}}finally{Kn=[],Il=null,bs=null}}function q1(){try{v1()}catch(e){Zi(e,Il)}}let Br=null;function Kh(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(ai|zn))&&Es(r)&&(Br=new Set,Va(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&mg(r),(Br==null?void 0:Br.size)>0)){Xi.clear();for(const i of Br){if(i.f&(ai|zn))continue;const l=[i];let d=i.parent;for(;d!==null;)Br.has(d)&&(Br.delete(d),l.push(d)),d=d.parent;for(let g=l.length-1;g>=0;g--){const p=l[g];p.f&(ai|zn)||Va(p)}}Br.clear()}}Br=null}}function $h(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const l=i.f;l&Lt?$h(i,t,n,r):l&(Iu|Wi)&&!(l&Tn)&&Zh(i,t,r)&&(dn(i,Tn),ci(i))}}function Zh(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(ms.call(t,i))return!0;if(i.f&Lt&&Zh(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ci(e){var t=Il=e,n=t.b;if(n!=null&&n.is_pending&&e.f&(bi|Pa|Eu)&&!(e.f&Ma)){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(bs!==null&&t===Dt&&!(e.f&Pa))return;if(r&(Ra|xr)){if(!(r&En))return;t.f^=En}}Kn.push(t)}function Yh(e,t){if(!(e.f&xr&&e.f&En)){e.f&Tn?t.d.push(e):e.f&Sr&&t.m.push(e),dn(e,En);for(var n=e.first;n!==null;)Yh(n,t),n=n.next}}function G1(e){let t=0,n=Fa(0),r;return()=>{ju()&&(C(n),yo(()=>(t===0&&(r=Z(()=>e(()=>mo(n)))),t+=1,()=>{li(()=>{t-=1,t===0&&(r==null||r(),r=void 0,mo(n))})})))}}var W1=La|gs;function K1(e,t,n,r){new $1(e,t,n,r)}class $1{constructor(t,n,r,i){At(this,hn);Je(this,"parent");Je(this,"is_pending",!1);Je(this,"transform_error");At(this,mr);At(this,hl,St?_t:null);At(this,vi);At(this,cs);At(this,rr);At(this,yi,null);At(this,vr,null);At(this,$r,null);At(this,zi,null);At(this,us,0);At(this,Aa,0);At(this,Qs,!1);At(this,eo,new Set);At(this,to,new Set);At(this,Vi,null);At(this,gu,G1(()=>(bt(this,Vi,Fa(ue(this,us))),()=>{bt(this,Vi,null)})));var l;bt(this,mr,t),bt(this,vi,n),bt(this,cs,d=>{var g=Dt;g.b=this,g.f|=ku,r(d)}),this.parent=Dt.b,this.transform_error=i??((l=this.parent)==null?void 0:l.transform_error)??(d=>d),bt(this,rr,_o(()=>{if(St){const d=ue(this,hl);Ei();const g=d.data===Lu;if(d.data.startsWith(Lh)){const _=JSON.parse(d.data.slice(Lh.length));pn(this,hn,i1).call(this,_)}else g?pn(this,hn,a1).call(this):pn(this,hn,r1).call(this)}else pn(this,hn,wh).call(this)},W1)),St&&bt(this,mr,_t)}defer_effect(t){Gh(t,ue(this,eo),ue(this,to))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!ue(this,vi).pending}update_pending_count(t){pn(this,hn,bh).call(this,t),bt(this,us,ue(this,us)+t),!(!ue(this,Vi)||ue(this,Qs))&&(bt(this,Qs,!0),li(()=>{bt(this,Qs,!1),ue(this,Vi)&&Ss(ue(this,Vi),ue(this,us))}))}get_effect_pending(){return ue(this,gu).call(this),C(ue(this,Vi))}error(t){var n=ue(this,vi).onerror;let r=ue(this,vi).failed;if(!n&&!r)throw t;ue(this,yi)&&(Zn(ue(this,yi)),bt(this,yi,null)),ue(this,vr)&&(Zn(ue(this,vr)),bt(this,vr,null)),ue(this,$r)&&(Zn(ue(this,$r)),bt(this,$r,null)),St&&(Pn(ue(this,hl)),Wt(),Pn(ho()));var i=!1,l=!1;const d=()=>{if(i){V1();return}i=!0,l&&k1(),ue(this,$r)!==null&&Ha(ue(this,$r),()=>{bt(this,$r,null)}),pn(this,hn,Su).call(this,()=>{Yi.ensure(),pn(this,hn,wh).call(this)})},g=p=>{try{l=!0,n==null||n(p,d),l=!1}catch(_){Zi(_,ue(this,rr)&&ue(this,rr).parent)}r&&bt(this,$r,pn(this,hn,Su).call(this,()=>{Yi.ensure();try{return Ar(()=>{var _=Dt;_.b=this,_.f|=ku,r(ue(this,mr),()=>p,()=>d)})}catch(_){return Zi(_,ue(this,rr).parent),null}}))};li(()=>{var p;try{p=this.transform_error(t)}catch(_){Zi(_,ue(this,rr)&&ue(this,rr).parent);return}p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(g,_=>Zi(_,ue(this,rr)&&ue(this,rr).parent)):g(p)})}}mr=new WeakMap,hl=new WeakMap,vi=new WeakMap,cs=new WeakMap,rr=new WeakMap,yi=new WeakMap,vr=new WeakMap,$r=new WeakMap,zi=new WeakMap,us=new WeakMap,Aa=new WeakMap,Qs=new WeakMap,eo=new WeakMap,to=new WeakMap,Vi=new WeakMap,gu=new WeakMap,hn=new WeakSet,r1=function(){try{bt(this,yi,Ar(()=>ue(this,cs).call(this,ue(this,mr))))}catch(t){this.error(t)}},i1=function(t){const n=ue(this,vi).failed;n&&bt(this,$r,Ar(()=>{n(ue(this,mr),()=>t,()=>()=>{})}))},a1=function(){const t=ue(this,vi).pending;t&&(this.is_pending=!0,bt(this,vr,Ar(()=>t(ue(this,mr)))),li(()=>{var n=bt(this,zi,document.createDocumentFragment()),r=Wn();n.append(r),bt(this,yi,pn(this,hn,Su).call(this,()=>(Yi.ensure(),Ar(()=>ue(this,cs).call(this,r))))),ue(this,Aa)===0&&(ue(this,mr).before(n),bt(this,zi,null),Ha(ue(this,vr),()=>{bt(this,vr,null)}),pn(this,hn,bu).call(this))}))},wh=function(){try{if(this.is_pending=this.has_pending_snippet(),bt(this,Aa,0),bt(this,us,0),bt(this,yi,Ar(()=>{ue(this,cs).call(this,ue(this,mr))})),ue(this,Aa)>0){var t=bt(this,zi,document.createDocumentFragment());Ku(ue(this,yi),t);const n=ue(this,vi).pending;bt(this,vr,Ar(()=>n(ue(this,mr))))}else pn(this,hn,bu).call(this)}catch(n){this.error(n)}},bu=function(){this.is_pending=!1;for(const t of ue(this,eo))dn(t,Tn),ci(t);for(const t of ue(this,to))dn(t,Sr),ci(t);ue(this,eo).clear(),ue(this,to).clear()},Su=function(t){var n=Dt,r=Rt,i=Kt;ui(ue(this,rr)),kr(ue(this,rr)),ys(ue(this,rr).ctx);try{return t()}catch(l){return jh(l),null}finally{ui(n),kr(r),ys(i)}},bh=function(t){var n;if(!this.has_pending_snippet()){this.parent&&pn(n=this.parent,hn,bh).call(n,t);return}bt(this,Aa,ue(this,Aa)+t),ue(this,Aa)===0&&(pn(this,hn,bu).call(this),ue(this,vr)&&Ha(ue(this,vr),()=>{bt(this,vr,null)}),ue(this,zi)&&(ue(this,mr).before(ue(this,zi)),bt(this,zi,null)))};function Z1(e,t,n,r){const i=_s()?po:me;var l=e.filter(k=>!k.settled);if(n.length===0&&l.length===0){r(t.map(i));return}var d=Dt,g=Y1(),p=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(k=>k.promise)):null;function _(k){g();try{r(k)}catch(h){d.f&ai||Zi(h,d)}Bu()}if(n.length===0){p.then(()=>_(t.map(i)));return}function S(){g(),Promise.all(n.map(k=>X1(k))).then(k=>_([...t.map(i),...k])).catch(k=>Zi(k,d))}p?p.then(S):S()}function Y1(){var e=Dt,t=Rt,n=Kt,r=It;return function(l=!0){ui(e),kr(t),ys(n),l&&(r==null||r.activate())}}function Bu(e=!0){ui(null),kr(null),ys(null),e&&(It==null||It.deactivate())}function J1(){var e=Dt.b,t=It,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function po(e){var t=Lt|Tn,n=Rt!==null&&Rt.f&Lt?Rt:null;return Dt!==null&&(Dt.f|=gs),{ctx:Kt,deps:null,effects:null,equals:Oh,f:t,fn:e,reactions:null,rv:0,v:On,wv:0,parent:n??Dt,ac:null}}function X1(e,t,n){Dt===null&&f1();var i=void 0,l=Fa(On),d=!Rt,g=new Map;return dw(()=>{var h;var p=Th();i=p.promise;try{Promise.resolve(e()).then(p.resolve,p.reject).finally(Bu)}catch(y){p.reject(y),Bu()}var _=It;if(d){var S=J1();(h=g.get(_))==null||h.reject(Na),g.delete(_),g.set(_,p)}const k=(y,b=void 0)=>{if(_.activate(),b)b!==Na&&(l.f|=Ki,Ss(l,b));else{l.f&Ki&&(l.f^=Ki),Ss(l,y);for(const[c,u]of g){if(g.delete(c),c===_)break;u.reject(Na)}}S&&S()};p.promise.then(k,y=>k(null,y||"unknown"))}),Ol(()=>{for(const p of g.values())p.reject(Na)}),new Promise(p=>{function _(S){function k(){S===i?p(l):_(i)}S.then(k,k)}_(i)})}function Ji(e){const t=po(e);return ig(t),t}function me(e){const t=po(e);return t.equals=Rh,t}function Q1(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Zn(t[n])}}function ew(e){for(var t=e.parent;t!==null;){if(!(t.f&Lt))return t.f&ai?null:t;t=t.parent}return null}function zu(e){var t,n=Dt;ui(ew(e));try{e.f&=~Da,Q1(e),t=cg(e)}finally{ui(n)}return t}function Jh(e){var t=zu(e);if(!e.equals(t)&&(e.wv=og(),(!(It!=null&&It.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){dn(e,En);return}ea||(Rn!==null?(ju()||It!=null&&It.is_fork)&&Rn.set(e,t):Uu(e))}function tw(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(Na),r.teardown=oi,r.ac=null,vo(r,0),Gu(r))}function Xh(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Va(t)}let Vu=new Set;const Xi=new Map;let Qh=!1;function Fa(e,t){var n={f:0,v:e,reactions:null,equals:Oh,rv:0,wv:0};return n}function Qi(e,t){const n=Fa(e);return ig(n),n}function re(e,t=!1,n=!0){var i;const r=Fa(e);return t||(r.equals=Rh),vs&&n&&Kt!==null&&Kt.l!==null&&((i=Kt.l).s??(i.s=[])).push(r),r}function Y(e,t,n=!1){Rt!==null&&(!zr||Rt.f&Sh)&&_s()&&Rt.f&(Lt|Wi|Iu|Sh)&&(Cr===null||!ms.call(Cr,e))&&E1();let r=n?ws(t):t;return Ss(e,r)}function Ss(e,t){if(!e.equals(t)){var n=e.v;ea?Xi.set(e,t):Xi.set(e,n),e.v=t;var r=Yi.ensure();if(r.capture(e,n),e.f&Lt){const i=e;e.f&Tn&&zu(i),Uu(i)}e.wv=og(),eg(e,Tn),_s()&&Dt!==null&&Dt.f&En&&!(Dt.f&(xr|Ra))&&(Ir===null?iw([e]):Ir.push(e)),!r.is_fork&&Vu.size>0&&!Qh&&nw()}return t}function nw(){Qh=!1;for(const e of Vu)e.f&En&&dn(e,Sr),Es(e)&&Va(e);Vu.clear()}function mo(e){Y(e,e.v+1)}function eg(e,t){var n=e.reactions;if(n!==null)for(var r=_s(),i=n.length,l=0;l<i;l++){var d=n[l],g=d.f;if(!(!r&&d===Dt)){var p=(g&Tn)===0;if(p&&dn(d,t),g&Lt){var _=d;Rn==null||Rn.delete(_),g&Da||(g&br&&(d.f|=Da),eg(_,Sr))}else p&&(g&Wi&&Br!==null&&Br.add(d),ci(d))}}}let tg=!1;function ng(){tg||(tg=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Al(e){var t=Rt,n=Dt;kr(null),ui(null);try{return e()}finally{kr(t),ui(n)}}function rw(e,t,n,r=n){e.addEventListener(t,()=>Al(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),ng()}let Tl=!1,ea=!1;function rg(e){ea=e}let Rt=null,zr=!1;function kr(e){Rt=e}let Dt=null;function ui(e){Dt=e}let Cr=null;function ig(e){Rt!==null&&(Cr===null?Cr=[e]:Cr.push(e))}let $n=null,ar=0,Ir=null;function iw(e){Ir=e}let ag=1,Ba=0,za=Ba;function sg(e){za=e}function og(){return++ag}function Es(e){var t=e.f;if(t&Tn)return!0;if(t&Lt&&(e.f&=~Da),t&Sr){for(var n=e.deps,r=n.length,i=0;i<r;i++){var l=n[i];if(Es(l)&&Jh(l),l.wv>e.wv)return!0}t&br&&Rn===null&&dn(e,En)}return!1}function lg(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Cr!==null&&ms.call(Cr,e)))for(var i=0;i<r.length;i++){var l=r[i];l.f&Lt?lg(l,t,!1):t===l&&(n?dn(l,Tn):l.f&En&&dn(l,Sr),ci(l))}}function cg(e){var c;var t=$n,n=ar,r=Ir,i=Rt,l=Cr,d=Kt,g=zr,p=za,_=e.f;$n=null,ar=0,Ir=null,Rt=_&(xr|Ra)?null:e,Cr=null,ys(e.ctx),zr=!1,za=++Ba,e.ac!==null&&(Al(()=>{e.ac.abort(Na)}),e.ac=null);try{e.f|=Cu;var S=e.fn,k=S();e.f|=Ma;var h=e.deps,y=It==null?void 0:It.is_fork;if($n!==null){var b;if(y||vo(e,ar),h!==null&&ar>0)for(h.length=ar+$n.length,b=0;b<$n.length;b++)h[ar+b]=$n[b];else e.deps=h=$n;if(ju()&&e.f&br)for(b=ar;b<h.length;b++)((c=h[b]).reactions??(c.reactions=[])).push(e)}else!y&&h!==null&&ar<h.length&&(vo(e,ar),h.length=ar);if(_s()&&Ir!==null&&!zr&&h!==null&&!(e.f&(Lt|Sr|Tn)))for(b=0;b<Ir.length;b++)lg(Ir[b],e);if(i!==null&&i!==e){if(Ba++,i.deps!==null)for(let u=0;u<n;u+=1)i.deps[u].rv=Ba;if(t!==null)for(const u of t)u.rv=Ba;Ir!==null&&(r===null?r=Ir:r.push(...Ir))}return e.f&Ki&&(e.f^=Ki),k}catch(u){return jh(u)}finally{e.f^=Cu,$n=t,ar=n,Ir=r,Rt=i,Cr=l,ys(d),zr=g,za=p}}function aw(e,t){let n=t.reactions;if(n!==null){var r=l1.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&Lt&&($n===null||!ms.call($n,t))){var l=t;l.f&br&&(l.f^=br,l.f&=~Da),Uu(l),tw(l),vo(l,0)}}function vo(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)aw(e,n[r])}function Va(e){var t=e.f;if(!(t&ai)){dn(e,En);var n=Dt,r=Tl;Dt=e,Tl=!0;try{t&(Wi|Eu)?fw(e):Gu(e),gg(e);var i=cg(e);e.teardown=typeof i=="function"?i:null,e.wv=ag;var l;Tu&&C1&&e.f&Tn&&e.deps}finally{Tl=r,Dt=n}}}async function sw(){await Promise.resolve(),B()}function C(e){var t=e.f,n=(t&Lt)!==0;if(Rt!==null&&!zr){var r=Dt!==null&&(Dt.f&ai)!==0;if(!r&&(Cr===null||!ms.call(Cr,e))){var i=Rt.deps;if(Rt.f&Cu)e.rv<Ba&&(e.rv=Ba,$n===null&&i!==null&&i[ar]===e?ar++:$n===null?$n=[e]:$n.push(e));else{(Rt.deps??(Rt.deps=[])).push(e);var l=e.reactions;l===null?e.reactions=[Rt]:ms.call(l,Rt)||l.push(Rt)}}}if(ea&&Xi.has(e))return Xi.get(e);if(n){var d=e;if(ea){var g=d.v;return(!(d.f&En)&&d.reactions!==null||dg(d))&&(g=zu(d)),Xi.set(d,g),g}var p=(d.f&br)===0&&!zr&&Rt!==null&&(Tl||(Rt.f&br)!==0),_=(d.f&Ma)===0;Es(d)&&(p&&(d.f|=br),Jh(d)),p&&!_&&(Xh(d),ug(d))}if(Rn!=null&&Rn.has(e))return Rn.get(e);if(e.f&Ki)throw e.v;return e.v}function ug(e){if(e.f|=br,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&Lt&&!(t.f&br)&&(Xh(t),ug(t))}function dg(e){if(e.v===On)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Xi.has(t)||t.f&Lt&&dg(t))return!0;return!1}function Z(e){var t=zr;try{return zr=!0,e()}finally{zr=t}}function G(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if($i in e)Hu(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&$i in n&&Hu(n)}}}function Hu(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Hu(e[r],t)}catch{}const n=Pu(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Ih(n);for(let i in r){const l=r[i].get;if(l)try{l.call(e)}catch{}}}}}function fg(e){Dt===null&&(Rt===null&&m1(),p1()),ea&&g1()}function ow(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function di(e,t){var n=Dt;n!==null&&n.f&zn&&(e|=zn);var r={ctx:Kt,deps:null,nodes:null,f:e|Tn|br,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&bi)bs!==null?bs.push(r):ci(r);else if(t!==null){try{Va(r)}catch(d){throw Zn(r),d}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&gs)&&(i=i.first,e&Wi&&e&La&&i!==null&&(i.f|=La))}if(i!==null&&(i.parent=n,n!==null&&ow(i,n),Rt!==null&&Rt.f&Lt&&!(e&Ra))){var l=Rt;(l.effects??(l.effects=[])).push(i)}return r}function ju(){return Rt!==null&&!zr}function Ol(e){const t=di(Pa,null);return dn(t,En),t.teardown=e,t}function qu(e){fg();var t=Dt.f,n=!Rt&&(t&xr)!==0&&(t&Ma)===0;if(n){var r=Kt;(r.e??(r.e=[])).push(e)}else return hg(e)}function hg(e){return di(bi|Eh,e)}function lw(e){return fg(),di(Pa|Eh,e)}function cw(e){Yi.ensure();const t=di(Ra|gs,e);return(n={})=>new Promise(r=>{n.outro?Ha(t,()=>{Zn(t),r(void 0)}):(Zn(t),r(void 0))})}function uw(e){return di(bi,e)}function vt(e,t){var n=Kt,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=yo(()=>{e(),!r.ran&&(r.ran=!0,Z(t))})}function Tt(){var e=Kt;yo(()=>{for(var t of e.l.$){t.deps();var n=t.effect;n.f&En&&n.deps!==null&&dn(n,Sr),Es(n)&&Va(n),t.ran=!1}})}function dw(e){return di(Iu|gs,e)}function yo(e,t=0){return di(Pa|t,e)}function Pe(e,t=[],n=[],r=[]){Z1(r,t,n,i=>{di(Pa,()=>e(...i.map(C)))})}function _o(e,t=0){var n=di(Wi|t,e);return n}function Ar(e){return di(xr|gs,e)}function gg(e){var t=e.teardown;if(t!==null){const n=ea,r=Rt;rg(!0),kr(null);try{t.call(null)}finally{rg(n),kr(r)}}}function Gu(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Al(()=>{i.abort(Na)});var r=n.next;n.f&Ra?n.parent=null:Zn(n,t),n=r}}function fw(e){for(var t=e.first;t!==null;){var n=t.next;t.f&xr||Zn(t),t=n}}function Zn(e,t=!0){var n=!1;(t||e.f&s1)&&e.nodes!==null&&e.nodes.end!==null&&(pg(e.nodes.start,e.nodes.end),n=!0),Gu(e,t&&!n),vo(e,0),dn(e,ai);var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)l.stop();gg(e);var i=e.parent;i!==null&&i.first!==null&&mg(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function pg(e,t){for(;e!==null;){var n=e===t?null:Fr(e);e.remove(),e=n}}function mg(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ha(e,t,n=!0){var r=[];vg(e,r,!0);var i=()=>{n&&Zn(e),t&&t()},l=r.length;if(l>0){var d=()=>--l||i();for(var g of r)g.out(d)}else i()}function vg(e,t,n){if(!(e.f&zn)){e.f^=zn;var r=e.nodes&&e.nodes.t;if(r!==null)for(const g of r)(g.is_global||n)&&t.push(g);for(var i=e.first;i!==null;){var l=i.next,d=(i.f&La)!==0||(i.f&xr)!==0&&(e.f&Wi)!==0;vg(i,t,d?n:!1),i=l}}}function Wu(e){yg(e,!0)}function yg(e,t){if(e.f&zn){e.f^=zn;for(var n=e.first;n!==null;){var r=n.next,i=(n.f&La)!==0||(n.f&xr)!==0;yg(n,i?t:!1),n=r}var l=e.nodes&&e.nodes.t;if(l!==null)for(const d of l)(d.is_global||t)&&d.in()}}function Ku(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Fr(n);t.append(n),n=i}}const Pl=Symbol("events"),hw=new Set,_g=new Set;function gw(e,t,n,r={}){function i(l){if(r.capture||$u.call(t,l),!l.cancelBubble)return Al(()=>n==null?void 0:n.call(this,l))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?li(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function mn(e,t,n,r,i){var l={capture:r,passive:i},d=gw(e,t,n,l);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ol(()=>{t.removeEventListener(e,d,l)})}let wg=null;function $u(e){var u,f;var t=this,n=t.ownerDocument,r=e.type,i=((u=e.composedPath)==null?void 0:u.call(e))||[],l=i[0]||e.target;wg=e;var d=0,g=wg===e&&e[Pl];if(g){var p=i.indexOf(g);if(p!==-1&&(t===document||t===window)){e[Pl]=t;return}var _=i.indexOf(t);if(_===-1)return;p<=_&&(d=p)}if(l=i[d]||e.target,l!==t){Ou(e,"currentTarget",{configurable:!0,get(){return l||n}});var S=Rt,k=Dt;kr(null),ui(null);try{for(var h,y=[];l!==null;){var b=l.assignedSlot||l.parentNode||l.host||null;try{var c=(f=l[Pl])==null?void 0:f[r];c!=null&&(!l.disabled||e.target===l)&&c.call(l,e)}catch(s){h?y.push(s):h=s}if(e.cancelBubble||b===t||b===null)break;l=b}if(h){for(let s of y)queueMicrotask(()=>{throw s});throw h}}finally{e[Pl]=t,delete e.currentTarget,kr(S),ui(k)}}}const Zu=((z_=globalThis==null?void 0:globalThis.window)==null?void 0:z_.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function pw(e){return(Zu==null?void 0:Zu.createHTML(e))??e}function bg(e){var t=Hh("template");return t.innerHTML=pw(e.replaceAll("<!>","<!---->")),t.content}function Tr(e,t){var n=Dt;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ce(e,t){var n=(t&x1)!==0,r=(t&U1)!==0,i,l=!e.startsWith("<!>");return()=>{if(St)return Tr(_t,null),_t;i===void 0&&(i=bg(l?e:"<!>"+e),n||(i=Er(i)));var d=r||Uh?document.importNode(i,!0):i.cloneNode(!0);if(n){var g=Er(d),p=d.lastChild;Tr(g,p)}else Tr(d,d);return d}}function mw(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,l;return()=>{if(St)return Tr(_t,null),_t;if(!l){var d=bg(i),g=Er(d);l=Er(g)}var p=l.cloneNode(!0);return Tr(p,p),p}}function kn(e,t){return mw(e,t,"svg")}function Vt(e=""){if(!St){var t=Wn(e+"");return Tr(t,t),t}var n=_t;return n.nodeType!==co?(n.before(n=Wn()),Pn(n)):kl(n),Tr(n,n),n}function mt(){if(St)return Tr(_t,null),_t;var e=document.createDocumentFragment(),t=document.createComment(""),n=Wn();return e.append(t,n),Tr(t,n),e}function Q(e,t){if(St){var n=Dt;(!(n.f&Ma)||n.nodes.end===null)&&(n.nodes.end=_t),Ei();return}e!==null&&e.before(t)}const vw=["touchstart","touchmove"];function yw(e){return vw.includes(e)}function wt(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=`${n}`)}function Sg(e,t){return Eg(e,t)}function _w(e,t){xu(),t.intro=t.intro??!1;const n=t.target,r=St,i=_t;try{for(var l=Er(n);l&&(l.nodeType!==ps||l.data!==Mu);)l=Fr(l);if(!l)throw xa;Ur(!0),Pn(l);const d=Eg(e,{...t,anchor:l});return Ur(!1),d}catch(d){if(d instanceof Error&&d.message.split(`
2
+ `).some(g=>g.startsWith("https://svelte.dev/e/")))throw d;return d!==xa&&console.warn("Failed to hydrate: ",d),t.recover===!1&&y1(),xu(),zh(n),Ur(!1),Sg(e,t)}finally{Ur(r),Pn(i)}}const Rl=new Map;function Eg(e,{target:t,anchor:n,props:r={},events:i,context:l,intro:d=!0,transformError:g}){xu();var p=void 0,_=cw(()=>{var S=n??t.appendChild(Wn());K1(S,{pending:()=>{}},y=>{He({});var b=Kt;if(l&&(b.c=l),i&&(r.$$events=i),St&&Tr(y,null),p=e(y,r)||{},St&&(Dt.nodes.end=_t,_t===null||_t.nodeType!==ps||_t.data!==Du))throw fo(),xa;je()},g);var k=new Set,h=y=>{for(var b=0;b<y.length;b++){var c=y[b];if(!k.has(c)){k.add(c);var u=yw(c);for(const o of[t,document]){var f=Rl.get(o);f===void 0&&(f=new Map,Rl.set(o,f));var s=f.get(c);s===void 0?(o.addEventListener(c,$u,{passive:u}),f.set(c,1)):f.set(c,s+1)}}}};return h(Sl(hw)),_g.add(h),()=>{var u;for(var y of k)for(const f of[t,document]){var b=Rl.get(f),c=b.get(y);--c==0?(f.removeEventListener(y,$u),b.delete(y),b.size===0&&Rl.delete(f)):b.set(y,c)}_g.delete(h),S!==n&&((u=S.parentNode)==null||u.removeChild(S))}});return Yu.set(p,_),p}let Yu=new WeakMap;function ww(e,t){const n=Yu.get(e);return n?(Yu.delete(e),n(t)):Promise.resolve()}function Ml(e){return function(...t){var n=t[0];return n.preventDefault(),e==null?void 0:e.apply(this,t)}}function Ge(e){return new bw(e)}class bw{constructor(t){At(this,Hi);At(this,Dr);var l;var n=new Map,r=(d,g)=>{var p=re(g,!1,!1);return n.set(d,p),p};const i=new Proxy({...t.props||{},$$events:{}},{get(d,g){return C(n.get(g)??r(g,Reflect.get(d,g)))},has(d,g){return g===Au?!0:(C(n.get(g)??r(g,Reflect.get(d,g))),Reflect.has(d,g))},set(d,g,p){return Y(n.get(g)??r(g,p),p),Reflect.set(d,g,p)}});bt(this,Dr,(t.hydrate?_w:Sg)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&B(),bt(this,Hi,i.$$events);for(const d of Object.keys(ue(this,Dr)))d==="$set"||d==="$destroy"||d==="$on"||Ou(this,d,{get(){return ue(this,Dr)[d]},set(g){ue(this,Dr)[d]=g},enumerable:!0});ue(this,Dr).$set=d=>{Object.assign(i,d)},ue(this,Dr).$destroy=()=>{ww(ue(this,Dr))}}$set(t){ue(this,Dr).$set(t)}$on(t,n){ue(this,Hi)[t]=ue(this,Hi)[t]||[];const r=(...i)=>n.call(this,...i);return ue(this,Hi)[t].push(r),()=>{ue(this,Hi)[t]=ue(this,Hi)[t].filter(i=>i!==r)}}$destroy(){ue(this,Dr).$destroy()}}Hi=new WeakMap,Dr=new WeakMap;const Sw="5";typeof window<"u"&&((V_=window.__svelte??(window.__svelte={})).v??(V_.v=new Set)).add(Sw),I1();class Ju{constructor(t,n=!0){Je(this,"anchor");At(this,Zr,new Map);At(this,_i,new Map);At(this,yr,new Map);At(this,ds,new Set);At(this,gl,!0);At(this,pl,t=>{if(ue(this,Zr).has(t)){var n=ue(this,Zr).get(t),r=ue(this,_i).get(n);if(r)Wu(r),ue(this,ds).delete(n);else{var i=ue(this,yr).get(n);i&&!(i.effect.f&zn)&&(ue(this,_i).set(n,i.effect),ue(this,yr).delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[l,d]of ue(this,Zr)){if(ue(this,Zr).delete(l),l===t)break;const g=ue(this,yr).get(d);g&&(Zn(g.effect),ue(this,yr).delete(d))}for(const[l,d]of ue(this,_i)){if(l===n||ue(this,ds).has(l)||d.f&zn)continue;const g=()=>{if(Array.from(ue(this,Zr).values()).includes(l)){var _=document.createDocumentFragment();Ku(d,_),_.append(Wn()),ue(this,yr).set(l,{effect:d,fragment:_})}else Zn(d);ue(this,ds).delete(l),ue(this,_i).delete(l)};ue(this,gl)||!r?(ue(this,ds).add(l),Ha(d,g,!1)):g()}}});At(this,pu,t=>{ue(this,Zr).delete(t);const n=Array.from(ue(this,Zr).values());for(const[r,i]of ue(this,yr))n.includes(r)||(Zn(i.effect),ue(this,yr).delete(r))});this.anchor=t,bt(this,gl,n)}ensure(t,n){var r=It,i=Vh();if(n&&!ue(this,_i).has(t)&&!ue(this,yr).has(t))if(i){var l=document.createDocumentFragment(),d=Wn();l.append(d),ue(this,yr).set(t,{effect:Ar(()=>n(d)),fragment:l})}else ue(this,_i).set(t,Ar(()=>n(this.anchor)));if(ue(this,Zr).set(r,t),i){for(const[g,p]of ue(this,_i))g===t?r.unskip_effect(p):r.skip_effect(p);for(const[g,p]of ue(this,yr))g===t?r.unskip_effect(p.effect):r.skip_effect(p.effect);r.oncommit(ue(this,pl)),r.ondiscard(ue(this,pu))}else St&&(this.anchor=_t),ue(this,pl).call(this,r)}}Zr=new WeakMap,_i=new WeakMap,yr=new WeakMap,ds=new WeakMap,gl=new WeakMap,pl=new WeakMap,pu=new WeakMap;function Ze(e,t,n=!1){var r;St&&(r=_t,Ei());var i=new Ju(e),l=n?La:0;function d(g,p){if(St){var _=Nu(r);if(g!==parseInt(_.substring(1))){var S=ho();Pn(S),i.anchor=S,Ur(!1),i.ensure(g,p),Ur(!0);return}}i.ensure(g,p)}_o(()=>{var g=!1;t((p,_=0)=>{g=!0,d(_,p)}),g||d(-1,null)},l)}const Ew=Symbol("NaN");function ja(e,t,n){St&&Ei();var r=new Ju(e),i=!_s();_o(()=>{var l=t();l!==l&&(l=Ew),i&&l!==null&&typeof l=="object"&&(l={}),r.ensure(l,n)})}function Yn(e,t){return t}function kw(e,t,n){for(var r=[],i=t.length,l,d=t.length,g=0;g<i;g++){let k=t[g];Ha(k,()=>{if(l){if(l.pending.delete(k),l.done.add(k),l.pending.size===0){var h=e.outrogroups;Xu(e,Sl(l.done)),h.delete(l),h.size===0&&(e.outrogroups=null)}}else d-=1},!1)}if(d===0){var p=r.length===0&&n!==null;if(p){var _=n,S=_.parentNode;zh(S),S.append(_),e.items.clear()}Xu(e,t,!p)}else l={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(l)}function Xu(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const d of e.pending.values())for(const g of d)r.add(e.items.get(g).e)}for(var i=0;i<t.length;i++){var l=t[i];if(r!=null&&r.has(l)){l.f|=si;const d=document.createDocumentFragment();Ku(l,d)}else Zn(t[i],n)}}var kg;function Jn(e,t,n,r,i,l=null){var d=e,g=new Map,p=(t&Mh)!==0;if(p){var _=e;d=St?Pn(Er(_)):_.appendChild(Wn())}St&&Ei();var S=null,k=me(()=>{var o=n();return Ch(o)?o:o==null?[]:Sl(o)}),h,y=new Map,b=!0;function c(o){s.effect.f&ai||(s.pending.delete(o),s.fallback=S,Cw(s,h,d,t,r),S!==null&&(h.length===0?S.f&si?(S.f^=si,bo(S,null,d)):Wu(S):Ha(S,()=>{S=null})))}function u(o){s.pending.delete(o)}var f=_o(()=>{h=C(k);var o=h.length;let a=!1;if(St){var m=Nu(d)===Lu;m!==(o===0)&&(d=ho(),Pn(d),Ur(!1),a=!0)}for(var v=new Set,w=It,A=Vh(),E=0;E<o;E+=1){St&&_t.nodeType===ps&&_t.data===Du&&(d=_t,a=!0,Ur(!1));var O=h[E],T=r(O,E),M=b?null:g.get(T);M?(M.v&&Ss(M.v,O),M.i&&Ss(M.i,E),A&&w.unskip_effect(M.e)):(M=Iw(g,b?d:kg??(kg=Wn()),O,T,E,i,t,n),b||(M.e.f|=si),g.set(T,M)),v.add(T)}if(o===0&&l&&!S&&(b?S=Ar(()=>l(d)):(S=Ar(()=>l(kg??(kg=Wn()))),S.f|=si)),o>v.size&&h1(),St&&o>0&&Pn(ho()),!b)if(y.set(w,v),A){for(const[P,x]of g)v.has(P)||w.skip_effect(x.e);w.oncommit(c),w.ondiscard(u)}else c(w);a&&Ur(!0),C(k)}),s={effect:f,items:g,pending:y,outrogroups:null,fallback:S};b=!1,St&&(d=_t)}function wo(e){for(;e!==null&&!(e.f&xr);)e=e.next;return e}function Cw(e,t,n,r,i){var O,T,M,P,x,I,D,V,j;var l=(r&O1)!==0,d=t.length,g=e.items,p=wo(e.effect.first),_,S=null,k,h=[],y=[],b,c,u,f;if(l)for(f=0;f<d;f+=1)b=t[f],c=i(b,f),u=g.get(c).e,u.f&si||((T=(O=u.nodes)==null?void 0:O.a)==null||T.measure(),(k??(k=new Set)).add(u));for(f=0;f<d;f+=1){if(b=t[f],c=i(b,f),u=g.get(c).e,e.outrogroups!==null)for(const L of e.outrogroups)L.pending.delete(u),L.done.delete(u);if(u.f&si)if(u.f^=si,u===p)bo(u,null,n);else{var s=S?S.next:p;u===e.effect.last&&(e.effect.last=u.prev),u.prev&&(u.prev.next=u.next),u.next&&(u.next.prev=u.prev),ta(e,S,u),ta(e,u,s),bo(u,s,n),S=u,h=[],y=[],p=wo(S.next);continue}if(u.f&zn&&(Wu(u),l&&((P=(M=u.nodes)==null?void 0:M.a)==null||P.unfix(),(k??(k=new Set)).delete(u))),u!==p){if(_!==void 0&&_.has(u)){if(h.length<y.length){var o=y[0],a;S=o.prev;var m=h[0],v=h[h.length-1];for(a=0;a<h.length;a+=1)bo(h[a],o,n);for(a=0;a<y.length;a+=1)_.delete(y[a]);ta(e,m.prev,v.next),ta(e,S,m),ta(e,v,o),p=o,S=v,f-=1,h=[],y=[]}else _.delete(u),bo(u,p,n),ta(e,u.prev,u.next),ta(e,u,S===null?e.effect.first:S.next),ta(e,S,u),S=u;continue}for(h=[],y=[];p!==null&&p!==u;)(_??(_=new Set)).add(p),y.push(p),p=wo(p.next);if(p===null)continue}u.f&si||h.push(u),S=u,p=wo(u.next)}if(e.outrogroups!==null){for(const L of e.outrogroups)L.pending.size===0&&(Xu(e,Sl(L.done)),(x=e.outrogroups)==null||x.delete(L));e.outrogroups.size===0&&(e.outrogroups=null)}if(p!==null||_!==void 0){var w=[];if(_!==void 0)for(u of _)u.f&zn||w.push(u);for(;p!==null;)!(p.f&zn)&&p!==e.fallback&&w.push(p),p=wo(p.next);var A=w.length;if(A>0){var E=r&Mh&&d===0?n:null;if(l){for(f=0;f<A;f+=1)(D=(I=w[f].nodes)==null?void 0:I.a)==null||D.measure();for(f=0;f<A;f+=1)(j=(V=w[f].nodes)==null?void 0:V.a)==null||j.fix()}kw(e,w,E)}}l&&li(()=>{var L,U;if(k!==void 0)for(u of k)(U=(L=u.nodes)==null?void 0:L.a)==null||U.apply()})}function Iw(e,t,n,r,i,l,d,g){var p=d&A1?d&P1?Fa(n):re(n,!1,!1):null,_=d&T1?Fa(i):null;return{v:p,i:_,e:Ar(()=>(l(t,p??n,_??i,g),()=>{e.delete(r)}))}}function bo(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,l=t&&!(t.f&si)?t.nodes.start:n;r!==null;){var d=Fr(r);if(l.before(r),r===i)return;r=d}}function ta(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ll(e,t,n=!1,r=!1,i=!1){var l=e,d="";Pe(()=>{var g=Dt;if(d===(d=t()??"")){St&&Ei();return}if(g.nodes!==null&&(pg(g.nodes.start,g.nodes.end),g.nodes=null),d!==""){if(St){_t.data;for(var p=Ei(),_=p;p!==null&&(p.nodeType!==ps||p.data!=="");)_=p,p=Fr(p);if(p===null)throw fo(),xa;Tr(_t,_),l=Pn(p);return}var S=n?F1:r?B1:void 0,k=Hh(n?"svg":r?"math":"template",S);k.innerHTML=d;var h=n||r?k:k.content;if(Tr(Er(h),h.lastChild),n||r)for(;Er(h);)l.before(Er(h));else l.before(h)}})}function xt(e,t,n,r,i){var g;St&&Ei();var l=(g=t.$$slots)==null?void 0:g[n],d=!1;l===!0&&(l=t[n==="default"?"children":n],d=!0),l===void 0?i!==null&&i(e):l(e,d?()=>r:r)}function Cg(e,t,n){var r;St&&(r=_t,Ei());var i=new Ju(e);_o(()=>{var l=t()??null;if(St){var d=Nu(r),g=d===Mu,p=l!==null;if(g!==p){var _=ho();Pn(_),i.anchor=_,Ur(!1),i.ensure(l,l&&(S=>n(S,l))),Ur(!0);return}}i.ensure(l,l&&(S=>n(S,l)))},La)}function Ig(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ig(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Aw(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ig(e))&&(r&&(r+=" "),r+=t);return r}function Cn(e){return typeof e=="object"?Aw(e):e??""}function Tw(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function Ow(e,t){return e==null?null:String(e)}function Ot(e,t,n,r,i,l){var d=e.__className;if(St||d!==n||d===void 0){var g=Tw(n);(!St||g!==e.getAttribute("class"))&&(g==null?e.removeAttribute("class"):t?e.className=g:e.setAttribute("class",g)),e.__className=n}return l}function Dl(e,t,n,r){var i=e.__style;if(St||i!==t){var l=Ow(t);(!St||l!==e.getAttribute("style"))&&(l==null?e.removeAttribute("style"):e.style.cssText=l),e.__style=t}return r}const Pw=Symbol("is custom element"),Rw=Symbol("is html"),Mw=kh?"link":"LINK",Lw=kh?"progress":"PROGRESS";function Vr(e){if(St){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;be(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;be(e,"checked",null),e.checked=i}}};e.__on_r=n,li(n),ng()}}function Qu(e,t){var n=ed(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Lw)||(e.value=t??"")}function Nl(e,t){var n=ed(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Dw(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function be(e,t,n,r){var i=ed(e);St&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Mw)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[o1]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Nw(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ed(e){return e.__attributes??(e.__attributes={[Pw]:e.nodeName.includes("-"),[Rw]:e.namespaceURI===Dh})}var Ag=new Map;function Nw(e){var t=e.getAttribute("is")||e.nodeName,n=Ag.get(t);if(n)return n;Ag.set(t,n=[]);for(var r,i=e,l=Element.prototype;l!==i;){r=Ih(i);for(var d in r)r[d].set&&n.push(d);i=Pu(i)}return n}function ks(e,t,n=t){var r=new WeakSet;rw(e,"input",async i=>{var l=i?e.defaultValue:e.value;if(l=td(e)?nd(l):l,n(l),It!==null&&r.add(It),await sw(),l!==(l=t())){var d=e.selectionStart,g=e.selectionEnd,p=e.value.length;if(e.value=l??"",g!==null){var _=e.value.length;d===g&&g===p&&_>p?(e.selectionStart=_,e.selectionEnd=_):(e.selectionStart=d,e.selectionEnd=Math.min(g,_))}}}),(St&&e.defaultValue!==e.value||Z(t)==null&&e.value)&&(n(td(e)?nd(e.value):e.value),It!==null&&r.add(It)),yo(()=>{var i=t();if(e===document.activeElement){var l=Fu??It;if(r.has(l))return}td(e)&&i===nd(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function td(e){var t=e.type;return t==="number"||t==="range"}function nd(e){return e===""?null:+e}function lt(e,t,n){var r=Si(e,t);r&&r.set&&(e[t]=n,Ol(()=>{e[t]=null}))}function Tg(e,t){return e===t||(e==null?void 0:e[$i])===t}function an(e={},t,n,r){return uw(()=>{var i,l;return yo(()=>{i=l,l=[],Z(()=>{e!==n(...l)&&(t(e,...l),i&&Tg(n(...i),e)&&t(null,...i))})}),()=>{li(()=>{l&&Tg(n(...l),e)&&t(null,...l)})}}),e}function ut(e=!1){const t=Kt,n=t.l.u;if(!n)return;let r=()=>G(t.s);if(e){let i=0,l={};const d=po(()=>{let g=!1;const p=t.s;for(const _ in p)p[_]!==l[_]&&(l[_]=p[_],g=!0);return g&&i++,i});r=()=>C(d)}n.b.length&&lw(()=>{Og(t,r),El(n.b)}),qu(()=>{const i=Z(()=>n.m.map(d1));return()=>{for(const l of i)typeof l=="function"&&l()}}),n.a.length&&qu(()=>{Og(t,r),El(n.a)})}function Og(e,t){if(e.l.s)for(const n of e.l.s)C(n);t()}function We(e,t,n){var r;e.$$events||(e.$$events={}),(r=e.$$events)[t]||(r[t]=[]),e.$$events[t].push(n)}function Ke(e){for(var t in e)t in this&&(this[t]=e[t])}let So=!1,rd=Symbol();function sr(e,t,n){const r=n[t]??(n[t]={store:null,source:re(void 0),unsubscribe:oi});if(r.store!==e&&!(rd in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=oi;else{var i=!0;r.unsubscribe=id(e,l=>{i?r.source.v=l:Y(r.source,l)}),i=!1}return e&&rd in n?sn(e):C(r.source)}function xw(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=oi),e}function Uw(e,t){return e.set(t),t}function Or(){const e={};function t(){Ol(()=>{for(var n in e)e[n].unsubscribe();Ou(e,rd,{enumerable:!1,value:!0})})}return[e,t]}function Fw(){So=!0}function Bw(e){var t=So;try{return So=!1,[e(),So]}finally{So=t}}const zw={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(uo(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];uo(i)&&(i=i());const l=Si(i,t);if(l&&l.set)return l.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(uo(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r){const i=Si(r,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===$i||t===Au)return!1;for(let n of e.props)if(uo(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props)if(uo(n)&&(n=n()),!!n){for(const r in n)t.includes(r)||t.push(r);for(const r of Object.getOwnPropertySymbols(n))t.includes(r)||t.push(r)}return t}};function Zt(...e){return new Proxy({props:e},zw)}function z(e,t,n,r){var o;var i=!vs||(n&M1)!==0,l=(n&D1)!==0,d=(n&N1)!==0,g=r,p=!0,_=()=>(p&&(p=!1,g=d?Z(r):r),g),S;if(l){var k=$i in e||Au in e;S=((o=Si(e,t))==null?void 0:o.set)??(k&&t in e?a=>e[t]=a:void 0)}var h,y=!1;l?[h,y]=Bw(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=_(),S&&(i&&w1(),S(h)));var b;if(i?b=()=>{var a=e[t];return a===void 0?_():(p=!0,a)}:b=()=>{var a=e[t];return a!==void 0&&(g=void 0),a===void 0?g:a},i&&!(n&L1))return b;if(S){var c=e.$$legacy;return function(a,m){return arguments.length>0?((!i||!m||c||y)&&S(m?b():a),a):b()}}var u=!1,f=(n&R1?po:me)(()=>(u=!1,b()));l&&C(f);var s=Dt;return function(a,m){if(arguments.length>0){const v=m?C(f):i&&l?ws(a):a;return Y(f,v),u=!0,g!==void 0&&(g=v),a}return ea&&u||s.f&ai?f.v:C(f)}}function Hr(e){Kt===null&&Ru(),vs&&Kt.l!==null?Pg(Kt).m.push(e):qu(()=>{const t=Z(e);if(typeof t=="function")return t})}function Vw(e){Kt===null&&Ru(),Hr(()=>()=>Z(e))}function Vn(e){Kt===null&&Ru(),Kt.l===null&&_1(),Pg(Kt).a.push(e)}function Pg(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function id(e,t,n){if(e==null)return t(void 0),n&&n(void 0),oi;const r=Z(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const Cs=[];function Hw(e,t){return{subscribe:or(e,t).subscribe}}function or(e,t=oi){let n=null;const r=new Set;function i(g){if(Ph(e,g)&&(e=g,n)){const p=!Cs.length;for(const _ of r)_[1](),Cs.push(_,e);if(p){for(let _=0;_<Cs.length;_+=2)Cs[_][0](Cs[_+1]);Cs.length=0}}}function l(g){i(g(e))}function d(g,p=oi){const _=[g,p];return r.add(_),r.size===1&&(n=t(i,l)||oi),g(e),()=>{r.delete(_),r.size===0&&n&&(n(),n=null)}}return{set:i,update:l,subscribe:d}}function Rg(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=t.length<2;return Hw(n,(d,g)=>{let p=!1;const _=[];let S=0,k=oi;const h=()=>{if(S)return;k();const b=t(r?_[0]:_,d,g);l?d(b):k=typeof b=="function"?b:oi},y=i.map((b,c)=>id(b,u=>{_[c]=u,S&=~(1<<c),p&&h()},()=>{S|=1<<c}));return p=!0,h(),function(){El(y),k(),p=!1}})}function sn(e){let t;return id(e,n=>t=n)(),t}const Eo=or({lastAction:null,error:null,modal:null,mounted:!1,open:null,reason:null,type:null});function Mg(e,t){Eo.update(n=>{var r;return n.type==="inline"?(console.warn('Component type of "inline" has no `close` method'),n):(r=n.modal)!=null&&r.component?(t&&n.modal.component.closeDialog(),{...n,lastAction:"close",open:!1,reason:(e==null?void 0:e.reason)||null}):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),n)})}function jw(e,t){Eo.update(n=>({...n,lastAction:"mount",modal:{...e&&{component:e,element:t}},mounted:!0,type:e?"modal":"inline",reason:null}))}const Lg=()=>{const{update:e}=Eo,{subscribe:t}=Rg([Eo],([n],r)=>{r({error:n.error,lastAction:n.lastAction,mounted:n.mounted,open:n.open,reason:n.reason})});return{close:n=>{Mg(n,!0)},open:()=>{e(n=>{var r;return n.type==="inline"?(console.warn('Component type of "inline" has no `open` method'),n):(r=n.modal)!=null&&r.component?(n.modal.element.showModal(),{...n,lastAction:"open",open:!0,reason:null}):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),n)})},subscribe:t}};function xl(e){{const t="Error: missing configuration.";throw console.error(t),console.error(`Import \`configure\` and \`await\` it before using the journey, user, or protect APIs. Example:
3
+ import { configure } from '@forgerock/login-widget';
4
+ await configure({
5
+ wellknown: 'https://<tenant>/am/oauth2/<realm>/.well-known/openid-configuration',
6
+ oidcClient: { clientId: '<client-id>', redirectUri: '<your-app-origin>/callback', scope: 'openid profile email' },
7
+ });`),new Error(t)}}function ye(e,t,n){function r(g,p){if(g._zod||Object.defineProperty(g,"_zod",{value:{def:p,constr:d,traits:new Set},enumerable:!1}),g._zod.traits.has(e))return;g._zod.traits.add(e),t(g,p);const _=d.prototype,S=Object.keys(_);for(let k=0;k<S.length;k++){const h=S[k];h in g||(g[h]=_[h].bind(g))}}const i=(n==null?void 0:n.Parent)??Object;class l extends i{}Object.defineProperty(l,"name",{value:e});function d(g){var p;const _=n!=null&&n.Parent?new l:this;r(_,g),(p=_._zod).deferred??(p.deferred=[]);for(const S of _._zod.deferred)S();return _}return Object.defineProperty(d,"init",{value:r}),Object.defineProperty(d,Symbol.hasInstance,{value:g=>{var p,_;return n!=null&&n.Parent&&g instanceof n.Parent?!0:(_=(p=g==null?void 0:g._zod)==null?void 0:p.traits)==null?void 0:_.has(e)}}),Object.defineProperty(d,"name",{value:e}),d}class Is extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Dg extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Ng={};function na(e){return Ng}function xg(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function ad(e,t){return typeof t=="bigint"?t.toString():t}function sd(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function od(e){return e==null}function ld(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function qw(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const p=r.match(/\d?e-(\d?)/);p!=null&&p[1]&&(i=Number.parseInt(p[1]))}const l=n>i?n:i,d=Number.parseInt(e.toFixed(l).replace(".","")),g=Number.parseInt(t.toFixed(l).replace(".",""));return d%g/10**l}const Ug=Symbol("evaluating");function qt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ug)return r===void 0&&(r=Ug,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function qa(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ra(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Fg(e){return JSON.stringify(e)}function Gw(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Bg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ul(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ww=sd(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function As(e){if(Ul(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ul(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function zg(e){return As(e)?{...e}:Array.isArray(e)?[...e]:e}const Kw=new Set(["string","number","symbol"]);function Ts(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ia(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function st(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function $w(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Zw={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Yw(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=ra(e._zod.def,{get shape(){const d={};for(const g in t){if(!(g in n.shape))throw new Error(`Unrecognized key: "${g}"`);t[g]&&(d[g]=n.shape[g])}return qa(this,"shape",d),d},checks:[]});return ia(e,l)}function Jw(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=ra(e._zod.def,{get shape(){const d={...e._zod.def.shape};for(const g in t){if(!(g in n.shape))throw new Error(`Unrecognized key: "${g}"`);t[g]&&delete d[g]}return qa(this,"shape",d),d},checks:[]});return ia(e,l)}function Xw(e,t){if(!As(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const d in t)if(Object.getOwnPropertyDescriptor(l,d)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=ra(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return qa(this,"shape",l),l}});return ia(e,i)}function Qw(e,t){if(!As(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ra(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return qa(this,"shape",r),r}});return ia(e,n)}function eb(e,t){const n=ra(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return qa(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return ia(e,n)}function tb(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const d=ra(t._zod.def,{get shape(){const g=t._zod.def.shape,p={...g};if(n)for(const _ in n){if(!(_ in g))throw new Error(`Unrecognized key: "${_}"`);n[_]&&(p[_]=e?new e({type:"optional",innerType:g[_]}):g[_])}else for(const _ in g)p[_]=e?new e({type:"optional",innerType:g[_]}):g[_];return qa(this,"shape",p),p},checks:[]});return ia(t,d)}function nb(e,t,n){const r=ra(t._zod.def,{get shape(){const i=t._zod.def.shape,l={...i};if(n)for(const d in n){if(!(d in l))throw new Error(`Unrecognized key: "${d}"`);n[d]&&(l[d]=new e({type:"nonoptional",innerType:i[d]}))}else for(const d in i)l[d]=new e({type:"nonoptional",innerType:i[d]});return qa(this,"shape",l),l}});return ia(t,r)}function Os(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Ps(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Fl(e){return typeof e=="string"?e:e==null?void 0:e.message}function aa(e,t,n){var i,l,d,g,p,_;const r={...e,path:e.path??[]};if(!e.message){const S=Fl((d=(l=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:l.error)==null?void 0:d.call(l,e))??Fl((g=t==null?void 0:t.error)==null?void 0:g.call(t,e))??Fl((p=n.customError)==null?void 0:p.call(n,e))??Fl((_=n.localeError)==null?void 0:_.call(n,e))??"Invalid input";r.message=S}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function cd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ko(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Vg=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ad,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Hg=ye("$ZodError",Vg),jg=ye("$ZodError",Vg,{Parent:Error});function rb(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ib(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(d=>r({issues:d}));else if(l.code==="invalid_key")r({issues:l.issues});else if(l.code==="invalid_element")r({issues:l.issues});else if(l.path.length===0)n._errors.push(t(l));else{let d=n,g=0;for(;g<l.path.length;){const p=l.path[g];g===l.path.length-1?(d[p]=d[p]||{_errors:[]},d[p]._errors.push(t(l))):d[p]=d[p]||{_errors:[]},d=d[p],g++}}};return r(e),n}const ud=e=>(t,n,r,i)=>{const l=r?Object.assign(r,{async:!1}):{async:!1},d=t._zod.run({value:n,issues:[]},l);if(d instanceof Promise)throw new Is;if(d.issues.length){const g=new((i==null?void 0:i.Err)??e)(d.issues.map(p=>aa(p,l,na())));throw Bg(g,i==null?void 0:i.callee),g}return d.value},dd=e=>async(t,n,r,i)=>{const l=r?Object.assign(r,{async:!0}):{async:!0};let d=t._zod.run({value:n,issues:[]},l);if(d instanceof Promise&&(d=await d),d.issues.length){const g=new((i==null?void 0:i.Err)??e)(d.issues.map(p=>aa(p,l,na())));throw Bg(g,i==null?void 0:i.callee),g}return d.value},Bl=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Is;return l.issues.length?{success:!1,error:new(e??Hg)(l.issues.map(d=>aa(d,i,na())))}:{success:!0,data:l.value}},ab=Bl(jg),zl=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},i);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(d=>aa(d,i,na())))}:{success:!0,data:l.value}},sb=zl(jg),ob=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ud(e)(t,n,i)},lb=e=>(t,n,r)=>ud(e)(t,n,r),cb=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return dd(e)(t,n,i)},ub=e=>async(t,n,r)=>dd(e)(t,n,r),db=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Bl(e)(t,n,i)},fb=e=>(t,n,r)=>Bl(e)(t,n,r),hb=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return zl(e)(t,n,i)},gb=e=>async(t,n,r)=>zl(e)(t,n,r),pb=/^[cC][^\s-]{8,}$/,mb=/^[0-9a-z]+$/,vb=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,yb=/^[0-9a-vA-V]{20}$/,_b=/^[A-Za-z0-9]{27}$/,wb=/^[a-zA-Z0-9_-]{21}$/,bb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Sb=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qg=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Eb=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Cb(){return new RegExp(kb,"u")}const Ib=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ab=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Tb=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ob=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Pb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Gg=/^[A-Za-z0-9_-]*$/,Rb=/^\+[1-9]\d{6,14}$/,Wg="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Mb=new RegExp(`^${Wg}$`);function Kg(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Lb(e){return new RegExp(`^${Kg(e)}$`)}function Db(e){const t=Kg({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Wg}T(?:${r})$`)}const Nb=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},xb=/^-?\d+$/,$g=/^-?\d+(?:\.\d+)?$/,Ub=/^(?:true|false)$/i,Fb=/^[^A-Z]*$/,Bb=/^[^a-z]*$/,Xn=ye("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Zg={number:"number",bigint:"bigint",object:"date"},Yg=ye("$ZodCheckLessThan",(e,t)=>{Xn.init(e,t);const n=Zg[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,l=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<l&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Jg=ye("$ZodCheckGreaterThan",(e,t)=>{Xn.init(e,t);const n=Zg[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,l=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>l&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zb=ye("$ZodCheckMultipleOf",(e,t)=>{Xn.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):qw(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Vb=ye("$ZodCheckNumberFormat",(e,t)=>{var d;Xn.init(e,t),t.format=t.format||"float64";const n=(d=t.format)==null?void 0:d.includes("int"),r=n?"int":"number",[i,l]=Zw[t.format];e._zod.onattach.push(g=>{const p=g._zod.bag;p.format=t.format,p.minimum=i,p.maximum=l,n&&(p.pattern=xb)}),e._zod.check=g=>{const p=g.value;if(n){if(!Number.isInteger(p)){g.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:p,inst:e});return}if(!Number.isSafeInteger(p)){p>0?g.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):g.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}p<i&&g.issues.push({origin:"number",input:p,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),p>l&&g.issues.push({origin:"number",input:p,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),Hb=ye("$ZodCheckMaxLength",(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!od(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const d=cd(i);r.issues.push({origin:d,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),jb=ye("$ZodCheckMinLength",(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!od(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const d=cd(i);r.issues.push({origin:d,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),qb=ye("$ZodCheckLengthEquals",(e,t)=>{var n;Xn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!od(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,l=i.length;if(l===t.length)return;const d=cd(i),g=l>t.length;r.issues.push({origin:d,...g?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Vl=ye("$ZodCheckStringFormat",(e,t)=>{var n,r;Xn.init(e,t),e._zod.onattach.push(i=>{const l=i._zod.bag;l.format=t.format,t.pattern&&(l.patterns??(l.patterns=new Set),l.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Gb=ye("$ZodCheckRegex",(e,t)=>{Vl.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Wb=ye("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Fb),Vl.init(e,t)}),Kb=ye("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Bb),Vl.init(e,t)}),$b=ye("$ZodCheckIncludes",(e,t)=>{Xn.init(e,t);const n=Ts(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const l=i._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Zb=ye("$ZodCheckStartsWith",(e,t)=>{Xn.init(e,t);const n=new RegExp(`^${Ts(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Yb=ye("$ZodCheckEndsWith",(e,t)=>{Xn.init(e,t);const n=new RegExp(`.*${Ts(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Jb=ye("$ZodCheckOverwrite",(e,t)=>{Xn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Xb{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
8
+ `).filter(d=>d),i=Math.min(...r.map(d=>d.length-d.trimStart().length)),l=r.map(d=>d.slice(i)).map(d=>" ".repeat(this.indent*2)+d);for(const d of l)this.content.push(d)}compile(){const t=Function,n=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(l=>` ${l}`)];return new t(...n,i.join(`
9
+ `))}}const Qb={major:4,minor:3,patch:6},on=ye("$ZodType",(e,t)=>{var i;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Qb;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const l of r)for(const d of l._zod.onattach)d(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const l=(g,p,_)=>{let S=Os(g),k;for(const h of p){if(h._zod.def.when){if(!h._zod.def.when(g))continue}else if(S)continue;const y=g.issues.length,b=h._zod.check(g);if(b instanceof Promise&&(_==null?void 0:_.async)===!1)throw new Is;if(k||b instanceof Promise)k=(k??Promise.resolve()).then(async()=>{await b,g.issues.length!==y&&(S||(S=Os(g,y)))});else{if(g.issues.length===y)continue;S||(S=Os(g,y))}}return k?k.then(()=>g):g},d=(g,p,_)=>{if(Os(g))return g.aborted=!0,g;const S=l(p,r,_);if(S instanceof Promise){if(_.async===!1)throw new Is;return S.then(k=>e._zod.parse(k,_))}return e._zod.parse(S,_)};e._zod.run=(g,p)=>{if(p.skipChecks)return e._zod.parse(g,p);if(p.direction==="backward"){const S=e._zod.parse({value:g.value,issues:[]},{...p,skipChecks:!0});return S instanceof Promise?S.then(k=>d(k,g,p)):d(S,g,p)}const _=e._zod.parse(g,p);if(_ instanceof Promise){if(p.async===!1)throw new Is;return _.then(S=>l(S,r,p))}return l(_,r,p)}}qt(e,"~standard",()=>({validate:l=>{var d;try{const g=ab(e,l);return g.success?{value:g.data}:{issues:(d=g.error)==null?void 0:d.issues}}catch{return sb(e,l).then(p=>{var _;return p.success?{value:p.data}:{issues:(_=p.error)==null?void 0:_.issues}})}},vendor:"zod",version:1}))}),fd=ye("$ZodString",(e,t)=>{var n;on.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Nb(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),en=ye("$ZodStringFormat",(e,t)=>{Vl.init(e,t),fd.init(e,t)}),e0=ye("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Sb),en.init(e,t)}),t0=ye("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qg(r))}else t.pattern??(t.pattern=qg());en.init(e,t)}),n0=ye("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Eb),en.init(e,t)}),r0=ye("$ZodURL",(e,t)=>{en.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),i0=ye("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Cb()),en.init(e,t)}),a0=ye("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=wb),en.init(e,t)}),s0=ye("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=pb),en.init(e,t)}),o0=ye("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=mb),en.init(e,t)}),l0=ye("$ZodULID",(e,t)=>{t.pattern??(t.pattern=vb),en.init(e,t)}),c0=ye("$ZodXID",(e,t)=>{t.pattern??(t.pattern=yb),en.init(e,t)}),u0=ye("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=_b),en.init(e,t)}),d0=ye("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Db(t)),en.init(e,t)}),f0=ye("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Mb),en.init(e,t)}),h0=ye("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Lb(t)),en.init(e,t)}),g0=ye("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=bb),en.init(e,t)}),p0=ye("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ib),en.init(e,t),e._zod.bag.format="ipv4"}),m0=ye("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ab),en.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),v0=ye("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Tb),en.init(e,t)}),y0=ye("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ob),en.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,l]=r;if(!l)throw new Error;const d=Number(l);if(`${d}`!==l)throw new Error;if(d<0||d>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Xg(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const _0=ye("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Pb),en.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Xg(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function w0(e){if(!Gg.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xg(n)}const b0=ye("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Gg),en.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{w0(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),S0=ye("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Rb),en.init(e,t)});function E0(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const k0=ye("$ZodJWT",(e,t)=>{en.init(e,t),e._zod.check=n=>{E0(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Qg=ye("$ZodNumber",(e,t)=>{on.init(e,t),e._zod.pattern=e._zod.bag.pattern??$g,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const l=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...l?{received:l}:{}}),n}}),C0=ye("$ZodNumberFormat",(e,t)=>{Vb.init(e,t),Qg.init(e,t)}),I0=ye("$ZodBoolean",(e,t)=>{on.init(e,t),e._zod.pattern=Ub,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),A0=ye("$ZodUnknown",(e,t)=>{on.init(e,t),e._zod.parse=n=>n}),T0=ye("$ZodNever",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function ep(e,t,n){e.issues.length&&t.issues.push(...Ps(n,e.issues)),t.value[n]=e.value}const O0=ye("$ZodArray",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const l=[];for(let d=0;d<i.length;d++){const g=i[d],p=t.element._zod.run({value:g,issues:[]},r);p instanceof Promise?l.push(p.then(_=>ep(_,n,d))):ep(p,n,d)}return l.length?Promise.all(l).then(()=>n):n}});function Hl(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Ps(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function tp(e){var r,i,l,d;const t=Object.keys(e.shape);for(const g of t)if(!((d=(l=(i=(r=e.shape)==null?void 0:r[g])==null?void 0:i._zod)==null?void 0:l.traits)!=null&&d.has("$ZodType")))throw new Error(`Invalid element at key "${g}": expected a Zod schema`);const n=$w(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function np(e,t,n,r,i,l){const d=[],g=i.keySet,p=i.catchall._zod,_=p.def.type,S=p.optout==="optional";for(const k in t){if(g.has(k))continue;if(_==="never"){d.push(k);continue}const h=p.run({value:t[k],issues:[]},r);h instanceof Promise?e.push(h.then(y=>Hl(y,n,k,t,S))):Hl(h,n,k,t,S)}return d.length&&n.issues.push({code:"unrecognized_keys",keys:d,input:t,inst:l}),e.length?Promise.all(e).then(()=>n):n}const P0=ye("$ZodObject",(e,t)=>{on.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const g=t.shape;Object.defineProperty(t,"shape",{get:()=>{const p={...g};return Object.defineProperty(t,"shape",{value:p}),p}})}const r=sd(()=>tp(t));qt(e._zod,"propValues",()=>{const g=t.shape,p={};for(const _ in g){const S=g[_]._zod;if(S.values){p[_]??(p[_]=new Set);for(const k of S.values)p[_].add(k)}}return p});const i=Ul,l=t.catchall;let d;e._zod.parse=(g,p)=>{d??(d=r.value);const _=g.value;if(!i(_))return g.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),g;g.value={};const S=[],k=d.shape;for(const h of d.keys){const y=k[h],b=y._zod.optout==="optional",c=y._zod.run({value:_[h],issues:[]},p);c instanceof Promise?S.push(c.then(u=>Hl(u,g,h,_,b))):Hl(c,g,h,_,b)}return l?np(S,_,g,p,r.value,e):S.length?Promise.all(S).then(()=>g):g}}),R0=ye("$ZodObjectJIT",(e,t)=>{P0.init(e,t);const n=e._zod.parse,r=sd(()=>tp(t)),i=h=>{var o;const y=new Xb(["shape","payload","ctx"]),b=r.value,c=a=>{const m=Fg(a);return`shape[${m}]._zod.run({ value: input[${m}], issues: [] }, ctx)`};y.write("const input = payload.value;");const u=Object.create(null);let f=0;for(const a of b.keys)u[a]=`key_${f++}`;y.write("const newResult = {};");for(const a of b.keys){const m=u[a],v=Fg(a),w=h[a],A=((o=w==null?void 0:w._zod)==null?void 0:o.optout)==="optional";y.write(`const ${m} = ${c(a)};`),A?y.write(`
10
+ if (${m}.issues.length) {
11
+ if (${v} in input) {
12
+ payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
13
+ ...iss,
14
+ path: iss.path ? [${v}, ...iss.path] : [${v}]
15
+ })));
16
+ }
17
+ }
18
+
19
+ if (${m}.value === undefined) {
20
+ if (${v} in input) {
21
+ newResult[${v}] = undefined;
22
+ }
23
+ } else {
24
+ newResult[${v}] = ${m}.value;
25
+ }
26
+
27
+ `):y.write(`
28
+ if (${m}.issues.length) {
29
+ payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
30
+ ...iss,
31
+ path: iss.path ? [${v}, ...iss.path] : [${v}]
32
+ })));
33
+ }
34
+
35
+ if (${m}.value === undefined) {
36
+ if (${v} in input) {
37
+ newResult[${v}] = undefined;
38
+ }
39
+ } else {
40
+ newResult[${v}] = ${m}.value;
41
+ }
42
+
43
+ `)}y.write("payload.value = newResult;"),y.write("return payload;");const s=y.compile();return(a,m)=>s(h,a,m)};let l;const d=Ul,g=!Ng.jitless,_=g&&Ww.value,S=t.catchall;let k;e._zod.parse=(h,y)=>{k??(k=r.value);const b=h.value;return d(b)?g&&_&&(y==null?void 0:y.async)===!1&&y.jitless!==!0?(l||(l=i(t.shape)),h=l(h,y),S?np([],b,h,y,k,e):h):n(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),h)}});function rp(e,t,n,r){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const i=e.filter(l=>!Os(l));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(d=>aa(d,r,na())))}),t)}const M0=ye("$ZodUnion",(e,t)=>{on.init(e,t),qt(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),qt(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),qt(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),qt(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(l=>l._zod.pattern);return new RegExp(`^(${i.map(l=>ld(l.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,l)=>{if(n)return r(i,l);let d=!1;const g=[];for(const p of t.options){const _=p._zod.run({value:i.value,issues:[]},l);if(_ instanceof Promise)g.push(_),d=!0;else{if(_.issues.length===0)return _;g.push(_)}}return d?Promise.all(g).then(p=>rp(p,i,e,l)):rp(g,i,e,l)}}),L0=ye("$ZodIntersection",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,l=t.left._zod.run({value:i,issues:[]},r),d=t.right._zod.run({value:i,issues:[]},r);return l instanceof Promise||d instanceof Promise?Promise.all([l,d]).then(([p,_])=>ip(n,p,_)):ip(n,l,d)}});function hd(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(As(e)&&As(t)){const n=Object.keys(t),r=Object.keys(e).filter(l=>n.indexOf(l)!==-1),i={...e,...t};for(const l of r){const d=hd(e[l],t[l]);if(!d.valid)return{valid:!1,mergeErrorPath:[l,...d.mergeErrorPath]};i[l]=d.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],l=t[r],d=hd(i,l);if(!d.valid)return{valid:!1,mergeErrorPath:[r,...d.mergeErrorPath]};n.push(d.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ip(e,t,n){const r=new Map;let i;for(const g of t.issues)if(g.code==="unrecognized_keys"){i??(i=g);for(const p of g.keys)r.has(p)||r.set(p,{}),r.get(p).l=!0}else e.issues.push(g);for(const g of n.issues)if(g.code==="unrecognized_keys")for(const p of g.keys)r.has(p)||r.set(p,{}),r.get(p).r=!0;else e.issues.push(g);const l=[...r].filter(([,g])=>g.l&&g.r).map(([g])=>g);if(l.length&&i&&e.issues.push({...i,keys:l}),Os(e))return e;const d=hd(t.value,n.value);if(!d.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`);return e.value=d.data,e}const D0=ye("$ZodRecord",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!As(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const l=[],d=t.keyType._zod.values;if(d){n.value={};const g=new Set;for(const _ of d)if(typeof _=="string"||typeof _=="number"||typeof _=="symbol"){g.add(typeof _=="number"?_.toString():_);const S=t.valueType._zod.run({value:i[_],issues:[]},r);S instanceof Promise?l.push(S.then(k=>{k.issues.length&&n.issues.push(...Ps(_,k.issues)),n.value[_]=k.value})):(S.issues.length&&n.issues.push(...Ps(_,S.issues)),n.value[_]=S.value)}let p;for(const _ in i)g.has(_)||(p=p??[],p.push(_));p&&p.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:p})}else{n.value={};for(const g of Reflect.ownKeys(i)){if(g==="__proto__")continue;let p=t.keyType._zod.run({value:g,issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof g=="string"&&$g.test(g)&&p.issues.length){const k=t.keyType._zod.run({value:Number(g),issues:[]},r);if(k instanceof Promise)throw new Error("Async schemas not supported in object keys currently");k.issues.length===0&&(p=k)}if(p.issues.length){t.mode==="loose"?n.value[g]=i[g]:n.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(k=>aa(k,r,na())),input:g,path:[g],inst:e});continue}const S=t.valueType._zod.run({value:i[g],issues:[]},r);S instanceof Promise?l.push(S.then(k=>{k.issues.length&&n.issues.push(...Ps(g,k.issues)),n.value[p.value]=k.value})):(S.issues.length&&n.issues.push(...Ps(g,S.issues)),n.value[p.value]=S.value)}}return l.length?Promise.all(l).then(()=>n):n}}),N0=ye("$ZodEnum",(e,t)=>{on.init(e,t);const n=xg(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>Kw.has(typeof i)).map(i=>typeof i=="string"?Ts(i):i.toString()).join("|")})$`),e._zod.parse=(i,l)=>{const d=i.value;return r.has(d)||i.issues.push({code:"invalid_value",values:n,input:d,inst:e}),i}}),x0=ye("$ZodLiteral",(e,t)=>{if(on.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Ts(r):r?Ts(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const l=r.value;return n.has(l)||r.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),r}}),U0=ye("$ZodTransform",(e,t)=>{on.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Dg(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(d=>(n.value=d,n));if(i instanceof Promise)throw new Is;return n.value=i,n}});function ap(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const sp=ye("$ZodOptional",(e,t)=>{on.init(e,t),e._zod.optin="optional",e._zod.optout="optional",qt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),qt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ld(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>ap(l,n.value)):ap(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),F0=ye("$ZodExactOptional",(e,t)=>{sp.init(e,t),qt(e._zod,"values",()=>t.innerType._zod.values),qt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),B0=ye("$ZodNullable",(e,t)=>{on.init(e,t),qt(e._zod,"optin",()=>t.innerType._zod.optin),qt(e._zod,"optout",()=>t.innerType._zod.optout),qt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ld(n.source)}|null)$`):void 0}),qt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),z0=ye("$ZodDefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>op(l,t)):op(i,t)}});function op(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const V0=ye("$ZodPrefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),H0=ye("$ZodNonOptional",(e,t)=>{on.init(e,t),qt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>lp(l,e)):lp(i,e)}});function lp(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const j0=ye("$ZodCatch",(e,t)=>{on.init(e,t),qt(e._zod,"optin",()=>t.innerType._zod.optin),qt(e._zod,"optout",()=>t.innerType._zod.optout),qt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(l=>(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(d=>aa(d,r,na()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(l=>aa(l,r,na()))},input:n.value}),n.issues=[]),n)}}),q0=ye("$ZodPipe",(e,t)=>{on.init(e,t),qt(e._zod,"values",()=>t.in._zod.values),qt(e._zod,"optin",()=>t.in._zod.optin),qt(e._zod,"optout",()=>t.out._zod.optout),qt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const l=t.out._zod.run(n,r);return l instanceof Promise?l.then(d=>jl(d,t.in,r)):jl(l,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(l=>jl(l,t.out,r)):jl(i,t.out,r)}});function jl(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const G0=ye("$ZodReadonly",(e,t)=>{on.init(e,t),qt(e._zod,"propValues",()=>t.innerType._zod.propValues),qt(e._zod,"values",()=>t.innerType._zod.values),qt(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),qt(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(cp):cp(i)}});function cp(e){return e.value=Object.freeze(e.value),e}const W0=ye("$ZodCustom",(e,t)=>{Xn.init(e,t),on.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(l=>up(l,n,r,e));up(i,n,r,e)}});function up(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(ko(i))}}var dp;class K0{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function $0(){return new K0}(dp=globalThis).__zod_globalRegistry??(dp.__zod_globalRegistry=$0());const Co=globalThis.__zod_globalRegistry;function Z0(e,t){return new e({type:"string",...st(t)})}function Y0(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...st(t)})}function fp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...st(t)})}function J0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...st(t)})}function X0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...st(t)})}function Q0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...st(t)})}function e2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...st(t)})}function t2(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...st(t)})}function n2(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...st(t)})}function r2(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...st(t)})}function i2(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...st(t)})}function a2(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...st(t)})}function s2(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...st(t)})}function o2(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...st(t)})}function l2(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...st(t)})}function c2(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...st(t)})}function u2(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...st(t)})}function d2(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...st(t)})}function f2(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...st(t)})}function h2(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...st(t)})}function g2(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...st(t)})}function p2(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...st(t)})}function m2(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...st(t)})}function v2(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...st(t)})}function y2(e,t){return new e({type:"string",format:"date",check:"string_format",...st(t)})}function _2(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...st(t)})}function w2(e,t){return new e({type:"string",format:"duration",check:"string_format",...st(t)})}function b2(e,t){return new e({type:"number",checks:[],...st(t)})}function S2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...st(t)})}function E2(e,t){return new e({type:"boolean",...st(t)})}function k2(e){return new e({type:"unknown"})}function C2(e,t){return new e({type:"never",...st(t)})}function hp(e,t){return new Yg({check:"less_than",...st(t),value:e,inclusive:!1})}function gd(e,t){return new Yg({check:"less_than",...st(t),value:e,inclusive:!0})}function gp(e,t){return new Jg({check:"greater_than",...st(t),value:e,inclusive:!1})}function pd(e,t){return new Jg({check:"greater_than",...st(t),value:e,inclusive:!0})}function pp(e,t){return new zb({check:"multiple_of",...st(t),value:e})}function mp(e,t){return new Hb({check:"max_length",...st(t),maximum:e})}function ql(e,t){return new jb({check:"min_length",...st(t),minimum:e})}function vp(e,t){return new qb({check:"length_equals",...st(t),length:e})}function I2(e,t){return new Gb({check:"string_format",format:"regex",...st(t),pattern:e})}function A2(e){return new Wb({check:"string_format",format:"lowercase",...st(e)})}function T2(e){return new Kb({check:"string_format",format:"uppercase",...st(e)})}function O2(e,t){return new $b({check:"string_format",format:"includes",...st(t),includes:e})}function P2(e,t){return new Zb({check:"string_format",format:"starts_with",...st(t),prefix:e})}function R2(e,t){return new Yb({check:"string_format",format:"ends_with",...st(t),suffix:e})}function Rs(e){return new Jb({check:"overwrite",tx:e})}function M2(e){return Rs(t=>t.normalize(e))}function L2(){return Rs(e=>e.trim())}function D2(){return Rs(e=>e.toLowerCase())}function N2(){return Rs(e=>e.toUpperCase())}function x2(){return Rs(e=>Gw(e))}function U2(e,t,n){return new e({type:"array",element:t,...st(n)})}function F2(e,t,n){return new e({type:"custom",check:"custom",fn:t,...st(n)})}function B2(e){const t=z2(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ko(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(ko(i))}},e(n.value,n)));return t}function z2(e,t){const n=new Xn({check:"custom",...st(t)});return n._zod.check=e,n}function yp(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Co,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function _n(e,t,n={path:[],schemaPath:[]}){var S,k;var r;const i=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const d={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,d);const g=(k=(S=e._zod).toJSONSchema)==null?void 0:k.call(S);if(g)d.schema=g;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,d.schema,h);else{const b=d.schema,c=t.processors[i.type];if(!c)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);c(e,t,b,h)}const y=e._zod.parent;y&&(d.ref||(d.ref=y),_n(y,t,h),t.seen.get(y).isParent=!0)}const p=t.metadataRegistry.get(e);return p&&Object.assign(d.schema,p),t.io==="input"&&Hn(e)&&(delete d.schema.examples,delete d.schema.default),t.io==="input"&&d.schema._prefault&&((r=d.schema).default??(r.default=d.schema._prefault)),delete d.schema._prefault,t.seen.get(e).schema}function _p(e,t){var d,g,p,_;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const S of e.seen.entries()){const k=(d=e.metadataRegistry.get(S[0]))==null?void 0:d.id;if(k){const h=r.get(k);if(h&&h!==S[0])throw new Error(`Duplicate schema id "${k}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(k,S[0])}}const i=S=>{var c;const k=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const u=(c=e.external.registry.get(S[0]))==null?void 0:c.id,f=e.external.uri??(o=>o);if(u)return{ref:f(u)};const s=S[1].defId??S[1].schema.id??`schema${e.counter++}`;return S[1].defId=s,{defId:s,ref:`${f("__shared")}#/${k}/${s}`}}if(S[1]===n)return{ref:"#"};const y=`#/${k}/`,b=S[1].schema.id??`__schema${e.counter++}`;return{defId:b,ref:y+b}},l=S=>{if(S[1].schema.$ref)return;const k=S[1],{ref:h,defId:y}=i(S);k.def={...k.schema},y&&(k.defId=y);const b=k.schema;for(const c in b)delete b[c];b.$ref=h};if(e.cycles==="throw")for(const S of e.seen.entries()){const k=S[1];if(k.cycle)throw new Error(`Cycle detected: #/${(g=k.cycle)==null?void 0:g.join("/")}/<root>
44
+
45
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const S of e.seen.entries()){const k=S[1];if(t===S[0]){l(S);continue}if(e.external){const y=(p=e.external.registry.get(S[0]))==null?void 0:p.id;if(t!==S[0]&&y){l(S);continue}}if((_=e.metadataRegistry.get(S[0]))==null?void 0:_.id){l(S);continue}if(k.cycle){l(S);continue}if(k.count>1&&e.reused==="ref"){l(S);continue}}}function wp(e,t){var d,g,p;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=_=>{const S=e.seen.get(_);if(S.ref===null)return;const k=S.def??S.schema,h={...k},y=S.ref;if(S.ref=null,y){r(y);const c=e.seen.get(y),u=c.schema;if(u.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(k.allOf=k.allOf??[],k.allOf.push(u)):Object.assign(k,u),Object.assign(k,h),_._zod.parent===y)for(const s in k)s==="$ref"||s==="allOf"||s in h||delete k[s];if(u.$ref&&c.def)for(const s in k)s==="$ref"||s==="allOf"||s in c.def&&JSON.stringify(k[s])===JSON.stringify(c.def[s])&&delete k[s]}const b=_._zod.parent;if(b&&b!==y){r(b);const c=e.seen.get(b);if(c!=null&&c.schema.$ref&&(k.$ref=c.schema.$ref,c.def))for(const u in k)u==="$ref"||u==="allOf"||u in c.def&&JSON.stringify(k[u])===JSON.stringify(c.def[u])&&delete k[u]}e.override({zodSchema:_,jsonSchema:k,path:S.path??[]})};for(const _ of[...e.seen.entries()].reverse())r(_[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(d=e.external)!=null&&d.uri){const _=(g=e.external.registry.get(t))==null?void 0:g.id;if(!_)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(_)}Object.assign(i,n.def??n.schema);const l=((p=e.external)==null?void 0:p.defs)??{};for(const _ of e.seen.entries()){const S=_[1];S.def&&S.defId&&(l[S.defId]=S.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?i.$defs=l:i.definitions=l);try{const _=JSON.parse(JSON.stringify(i));return Object.defineProperty(_,"~standard",{value:{...t["~standard"],jsonSchema:{input:Gl(t,"input",e.processors),output:Gl(t,"output",e.processors)}},enumerable:!1,writable:!1}),_}catch{throw new Error("Error converting schema to JSON.")}}function Hn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Hn(r.element,n);if(r.type==="set")return Hn(r.valueType,n);if(r.type==="lazy")return Hn(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Hn(r.innerType,n);if(r.type==="intersection")return Hn(r.left,n)||Hn(r.right,n);if(r.type==="record"||r.type==="map")return Hn(r.keyType,n)||Hn(r.valueType,n);if(r.type==="pipe")return Hn(r.in,n)||Hn(r.out,n);if(r.type==="object"){for(const i in r.shape)if(Hn(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(Hn(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(Hn(i,n))return!0;return!!(r.rest&&Hn(r.rest,n))}return!1}const V2=(e,t={})=>n=>{const r=yp({...n,processors:t});return _n(e,r),_p(r,e),wp(r,e)},Gl=(e,t,n={})=>r=>{const{libraryOptions:i,target:l}=r??{},d=yp({...i??{},target:l,io:t,processors:n});return _n(e,d),_p(d,e),wp(d,e)},H2={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},j2=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:l,maximum:d,format:g,patterns:p,contentEncoding:_}=e._zod.bag;if(typeof l=="number"&&(i.minLength=l),typeof d=="number"&&(i.maxLength=d),g&&(i.format=H2[g]??g,i.format===""&&delete i.format,g==="time"&&delete i.format),_&&(i.contentEncoding=_),p&&p.size>0){const S=[...p];S.length===1?i.pattern=S[0].source:S.length>1&&(i.allOf=[...S.map(k=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:k.source}))])}},q2=(e,t,n,r)=>{const i=n,{minimum:l,maximum:d,format:g,multipleOf:p,exclusiveMaximum:_,exclusiveMinimum:S}=e._zod.bag;typeof g=="string"&&g.includes("int")?i.type="integer":i.type="number",typeof S=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=S,i.exclusiveMinimum=!0):i.exclusiveMinimum=S),typeof l=="number"&&(i.minimum=l,typeof S=="number"&&t.target!=="draft-04"&&(S>=l?delete i.minimum:delete i.exclusiveMinimum)),typeof _=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=_,i.exclusiveMaximum=!0):i.exclusiveMaximum=_),typeof d=="number"&&(i.maximum=d,typeof _=="number"&&t.target!=="draft-04"&&(_<=d?delete i.maximum:delete i.exclusiveMaximum)),typeof p=="number"&&(i.multipleOf=p)},G2=(e,t,n,r)=>{n.type="boolean"},W2=(e,t,n,r)=>{n.not={}},K2=(e,t,n,r)=>{},$2=(e,t,n,r)=>{const i=e._zod.def,l=xg(i.entries);l.every(d=>typeof d=="number")&&(n.type="number"),l.every(d=>typeof d=="string")&&(n.type="string"),n.enum=l},Z2=(e,t,n,r)=>{const i=e._zod.def,l=[];for(const d of i.values)if(d===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof d=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");l.push(Number(d))}else l.push(d);if(l.length!==0)if(l.length===1){const d=l[0];n.type=d===null?"null":typeof d,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[d]:n.const=d}else l.every(d=>typeof d=="number")&&(n.type="number"),l.every(d=>typeof d=="string")&&(n.type="string"),l.every(d=>typeof d=="boolean")&&(n.type="boolean"),l.every(d=>d===null)&&(n.type="null"),n.enum=l},Y2=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},J2=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},X2=(e,t,n,r)=>{const i=n,l=e._zod.def,{minimum:d,maximum:g}=e._zod.bag;typeof d=="number"&&(i.minItems=d),typeof g=="number"&&(i.maxItems=g),i.type="array",i.items=_n(l.element,t,{...r,path:[...r.path,"items"]})},Q2=(e,t,n,r)=>{var _;const i=n,l=e._zod.def;i.type="object",i.properties={};const d=l.shape;for(const S in d)i.properties[S]=_n(d[S],t,{...r,path:[...r.path,"properties",S]});const g=new Set(Object.keys(d)),p=new Set([...g].filter(S=>{const k=l.shape[S]._zod;return t.io==="input"?k.optin===void 0:k.optout===void 0}));p.size>0&&(i.required=Array.from(p)),((_=l.catchall)==null?void 0:_._zod.def.type)==="never"?i.additionalProperties=!1:l.catchall?l.catchall&&(i.additionalProperties=_n(l.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},eS=(e,t,n,r)=>{const i=e._zod.def,l=i.inclusive===!1,d=i.options.map((g,p)=>_n(g,t,{...r,path:[...r.path,l?"oneOf":"anyOf",p]}));l?n.oneOf=d:n.anyOf=d},tS=(e,t,n,r)=>{const i=e._zod.def,l=_n(i.left,t,{...r,path:[...r.path,"allOf",0]}),d=_n(i.right,t,{...r,path:[...r.path,"allOf",1]}),g=_=>"allOf"in _&&Object.keys(_).length===1,p=[...g(l)?l.allOf:[l],...g(d)?d.allOf:[d]];n.allOf=p},nS=(e,t,n,r)=>{const i=n,l=e._zod.def;i.type="object";const d=l.keyType,g=d._zod.bag,p=g==null?void 0:g.patterns;if(l.mode==="loose"&&p&&p.size>0){const S=_n(l.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(const k of p)i.patternProperties[k.source]=S}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=_n(l.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=_n(l.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const _=d._zod.values;if(_){const S=[..._].filter(k=>typeof k=="string"||typeof k=="number");S.length>0&&(i.required=S)}},rS=(e,t,n,r)=>{const i=e._zod.def,l=_n(i.innerType,t,r),d=t.seen.get(e);t.target==="openapi-3.0"?(d.ref=i.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},iS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType},aS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},sS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},oS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType;let d;try{d=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=d},lS=(e,t,n,r)=>{const i=e._zod.def,l=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;_n(l,t,r);const d=t.seen.get(e);d.ref=l},cS=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType,n.readOnly=!0},bp=(e,t,n,r)=>{const i=e._zod.def;_n(i.innerType,t,r);const l=t.seen.get(e);l.ref=i.innerType},uS=ye("ZodISODateTime",(e,t)=>{d0.init(e,t),cn.init(e,t)});function dS(e){return v2(uS,e)}const fS=ye("ZodISODate",(e,t)=>{f0.init(e,t),cn.init(e,t)});function hS(e){return y2(fS,e)}const gS=ye("ZodISOTime",(e,t)=>{h0.init(e,t),cn.init(e,t)});function pS(e){return _2(gS,e)}const mS=ye("ZodISODuration",(e,t)=>{g0.init(e,t),cn.init(e,t)});function vS(e){return w2(mS,e)}const Pr=ye("ZodError",(e,t)=>{Hg.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ib(e,n)},flatten:{value:n=>rb(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ad,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ad,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),yS=ud(Pr),_S=dd(Pr),wS=Bl(Pr),bS=zl(Pr),SS=ob(Pr),ES=lb(Pr),kS=cb(Pr),CS=ub(Pr),IS=db(Pr),AS=fb(Pr),TS=hb(Pr),OS=gb(Pr),ln=ye("ZodType",(e,t)=>(on.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Gl(e,"input"),output:Gl(e,"output")}}),e.toJSONSchema=V2(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ra(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>ia(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>yS(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>wS(e,n,r),e.parseAsync=async(n,r)=>_S(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>bS(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>SS(e,n,r),e.decode=(n,r)=>ES(e,n,r),e.encodeAsync=async(n,r)=>kS(e,n,r),e.decodeAsync=async(n,r)=>CS(e,n,r),e.safeEncode=(n,r)=>IS(e,n,r),e.safeDecode=(n,r)=>AS(e,n,r),e.safeEncodeAsync=async(n,r)=>TS(e,n,r),e.safeDecodeAsync=async(n,r)=>OS(e,n,r),e.refine=(n,r)=>e.check(SE(n,r)),e.superRefine=n=>e.check(EE(n)),e.overwrite=n=>e.check(Rs(n)),e.optional=()=>Pp(e),e.exactOptional=()=>cE(e),e.nullable=()=>Rp(e),e.nullish=()=>Pp(Rp(e)),e.nonoptional=n=>pE(e,n),e.array=()=>Ip(e),e.or=n=>Io([e,n]),e.and=n=>rE(e,n),e.transform=n=>Lp(e,oE(n)),e.default=n=>fE(e,n),e.prefault=n=>gE(e,n),e.catch=n=>vE(e,n),e.pipe=n=>Lp(e,n),e.readonly=()=>wE(e),e.describe=n=>{const r=e.clone();return Co.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Co.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Co.get(e);const r=e.clone();return Co.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Sp=ye("_ZodString",(e,t)=>{fd.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>j2(e,r,i);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(I2(...r)),e.includes=(...r)=>e.check(O2(...r)),e.startsWith=(...r)=>e.check(P2(...r)),e.endsWith=(...r)=>e.check(R2(...r)),e.min=(...r)=>e.check(ql(...r)),e.max=(...r)=>e.check(mp(...r)),e.length=(...r)=>e.check(vp(...r)),e.nonempty=(...r)=>e.check(ql(1,...r)),e.lowercase=r=>e.check(A2(r)),e.uppercase=r=>e.check(T2(r)),e.trim=()=>e.check(L2()),e.normalize=(...r)=>e.check(M2(...r)),e.toLowerCase=()=>e.check(D2()),e.toUpperCase=()=>e.check(N2()),e.slugify=()=>e.check(x2())}),PS=ye("ZodString",(e,t)=>{fd.init(e,t),Sp.init(e,t),e.email=n=>e.check(Y0(RS,n)),e.url=n=>e.check(t2(MS,n)),e.jwt=n=>e.check(m2(KS,n)),e.emoji=n=>e.check(n2(LS,n)),e.guid=n=>e.check(fp(Ep,n)),e.uuid=n=>e.check(J0(Wl,n)),e.uuidv4=n=>e.check(X0(Wl,n)),e.uuidv6=n=>e.check(Q0(Wl,n)),e.uuidv7=n=>e.check(e2(Wl,n)),e.nanoid=n=>e.check(r2(DS,n)),e.guid=n=>e.check(fp(Ep,n)),e.cuid=n=>e.check(i2(NS,n)),e.cuid2=n=>e.check(a2(xS,n)),e.ulid=n=>e.check(s2(US,n)),e.base64=n=>e.check(h2(qS,n)),e.base64url=n=>e.check(g2(GS,n)),e.xid=n=>e.check(o2(FS,n)),e.ksuid=n=>e.check(l2(BS,n)),e.ipv4=n=>e.check(c2(zS,n)),e.ipv6=n=>e.check(u2(VS,n)),e.cidrv4=n=>e.check(d2(HS,n)),e.cidrv6=n=>e.check(f2(jS,n)),e.e164=n=>e.check(p2(WS,n)),e.datetime=n=>e.check(dS(n)),e.date=n=>e.check(hS(n)),e.time=n=>e.check(pS(n)),e.duration=n=>e.check(vS(n))});function se(e){return Z0(PS,e)}const cn=ye("ZodStringFormat",(e,t)=>{en.init(e,t),Sp.init(e,t)}),RS=ye("ZodEmail",(e,t)=>{n0.init(e,t),cn.init(e,t)}),Ep=ye("ZodGUID",(e,t)=>{e0.init(e,t),cn.init(e,t)}),Wl=ye("ZodUUID",(e,t)=>{t0.init(e,t),cn.init(e,t)}),MS=ye("ZodURL",(e,t)=>{r0.init(e,t),cn.init(e,t)}),LS=ye("ZodEmoji",(e,t)=>{i0.init(e,t),cn.init(e,t)}),DS=ye("ZodNanoID",(e,t)=>{a0.init(e,t),cn.init(e,t)}),NS=ye("ZodCUID",(e,t)=>{s0.init(e,t),cn.init(e,t)}),xS=ye("ZodCUID2",(e,t)=>{o0.init(e,t),cn.init(e,t)}),US=ye("ZodULID",(e,t)=>{l0.init(e,t),cn.init(e,t)}),FS=ye("ZodXID",(e,t)=>{c0.init(e,t),cn.init(e,t)}),BS=ye("ZodKSUID",(e,t)=>{u0.init(e,t),cn.init(e,t)}),zS=ye("ZodIPv4",(e,t)=>{p0.init(e,t),cn.init(e,t)}),VS=ye("ZodIPv6",(e,t)=>{m0.init(e,t),cn.init(e,t)}),HS=ye("ZodCIDRv4",(e,t)=>{v0.init(e,t),cn.init(e,t)}),jS=ye("ZodCIDRv6",(e,t)=>{y0.init(e,t),cn.init(e,t)}),qS=ye("ZodBase64",(e,t)=>{_0.init(e,t),cn.init(e,t)}),GS=ye("ZodBase64URL",(e,t)=>{b0.init(e,t),cn.init(e,t)}),WS=ye("ZodE164",(e,t)=>{S0.init(e,t),cn.init(e,t)}),KS=ye("ZodJWT",(e,t)=>{k0.init(e,t),cn.init(e,t)}),kp=ye("ZodNumber",(e,t)=>{Qg.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>q2(e,r,i),e.gt=(r,i)=>e.check(gp(r,i)),e.gte=(r,i)=>e.check(pd(r,i)),e.min=(r,i)=>e.check(pd(r,i)),e.lt=(r,i)=>e.check(hp(r,i)),e.lte=(r,i)=>e.check(gd(r,i)),e.max=(r,i)=>e.check(gd(r,i)),e.int=r=>e.check(Cp(r)),e.safe=r=>e.check(Cp(r)),e.positive=r=>e.check(gp(0,r)),e.nonnegative=r=>e.check(pd(0,r)),e.negative=r=>e.check(hp(0,r)),e.nonpositive=r=>e.check(gd(0,r)),e.multipleOf=(r,i)=>e.check(pp(r,i)),e.step=(r,i)=>e.check(pp(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Ga(e){return b2(kp,e)}const $S=ye("ZodNumberFormat",(e,t)=>{C0.init(e,t),kp.init(e,t)});function Cp(e){return S2($S,e)}const ZS=ye("ZodBoolean",(e,t)=>{I0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>G2(e,n,r)});function ki(e){return E2(ZS,e)}const YS=ye("ZodUnknown",(e,t)=>{A0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>K2()});function md(){return k2(YS)}const JS=ye("ZodNever",(e,t)=>{T0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>W2(e,n,r)});function XS(e){return C2(JS,e)}const QS=ye("ZodArray",(e,t)=>{O0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>X2(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(ql(n,r)),e.nonempty=n=>e.check(ql(1,n)),e.max=(n,r)=>e.check(mp(n,r)),e.length=(n,r)=>e.check(vp(n,r)),e.unwrap=()=>e.element});function Ip(e,t){return U2(QS,e,t)}const Ap=ye("ZodObject",(e,t)=>{R0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Q2(e,n,r,i),qt(e,"shape",()=>t.shape),e.keyof=()=>Tp(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:md()}),e.loose=()=>e.clone({...e._zod.def,catchall:md()}),e.strict=()=>e.clone({...e._zod.def,catchall:XS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Xw(e,n),e.safeExtend=n=>Qw(e,n),e.merge=n=>eb(e,n),e.pick=n=>Yw(e,n),e.omit=n=>Jw(e,n),e.partial=(...n)=>tb(Op,e,n[0]),e.required=(...n)=>nb(Mp,e,n[0])});function Qn(e,t){const n={type:"object",shape:e??{},...st(t)};return new Ap(n)}function eE(e,t){return new Ap({type:"object",shape:e,catchall:md(),...st(t)})}const tE=ye("ZodUnion",(e,t)=>{M0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>eS(e,n,r,i),e.options=t.options});function Io(e,t){return new tE({type:"union",options:e,...st(t)})}const nE=ye("ZodIntersection",(e,t)=>{L0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tS(e,n,r,i)});function rE(e,t){return new nE({type:"intersection",left:e,right:t})}const iE=ye("ZodRecord",(e,t)=>{D0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>nS(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function vd(e,t,n){return new iE({type:"record",keyType:e,valueType:t,...st(n)})}const yd=ye("ZodEnum",(e,t)=>{N0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(r,i,l)=>$2(e,r,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const l={};for(const d of r)if(n.has(d))l[d]=t.entries[d];else throw new Error(`Key ${d} not found in enum`);return new yd({...t,checks:[],...st(i),entries:l})},e.exclude=(r,i)=>{const l={...t.entries};for(const d of r)if(n.has(d))delete l[d];else throw new Error(`Key ${d} not found in enum`);return new yd({...t,checks:[],...st(i),entries:l})}});function Tp(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new yd({type:"enum",entries:n,...st(t)})}const aE=ye("ZodLiteral",(e,t)=>{x0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Z2(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Wa(e,t){return new aE({type:"literal",values:Array.isArray(e)?e:[e],...st(t)})}const sE=ye("ZodTransform",(e,t)=>{U0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>J2(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Dg(e.constructor.name);n.addIssue=l=>{if(typeof l=="string")n.issues.push(ko(l,n.value,t));else{const d=l;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=n.value),d.inst??(d.inst=e),n.issues.push(ko(d))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(l=>(n.value=l,n)):(n.value=i,n)}});function oE(e){return new sE({type:"transform",transform:e})}const Op=ye("ZodOptional",(e,t)=>{sp.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Pp(e){return new Op({type:"optional",innerType:e})}const lE=ye("ZodExactOptional",(e,t)=>{F0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function cE(e){return new lE({type:"optional",innerType:e})}const uE=ye("ZodNullable",(e,t)=>{B0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Rp(e){return new uE({type:"nullable",innerType:e})}const dE=ye("ZodDefault",(e,t)=>{z0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>aS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fE(e,t){return new dE({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():zg(t)}})}const hE=ye("ZodPrefault",(e,t)=>{V0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>sS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function gE(e,t){return new hE({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():zg(t)}})}const Mp=ye("ZodNonOptional",(e,t)=>{H0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>iS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function pE(e,t){return new Mp({type:"nonoptional",innerType:e,...st(t)})}const mE=ye("ZodCatch",(e,t)=>{j0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>oS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vE(e,t){return new mE({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const yE=ye("ZodPipe",(e,t)=>{q0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lS(e,n,r,i),e.in=t.in,e.out=t.out});function Lp(e,t){return new yE({type:"pipe",in:e,out:t})}const _E=ye("ZodReadonly",(e,t)=>{G0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function wE(e){return new _E({type:"readonly",innerType:e})}const bE=ye("ZodCustom",(e,t)=>{W0.init(e,t),ln.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Y2(e,n)});function SE(e,t={}){return F2(bE,e,t)}function EE(e){return B2(e)}const kE=Qn({mode:Tp(["visible","invisible"]).optional()}).strict(),Dp=Qn({termsAndConditions:se()}).strict();Dp.partial();const Kl=or();function CE(e){return e?(Dp.parse(e),Kl.set(e)):Kl.set(void 0),Kl}const _d={adminRegInvalidInviteHeader:"Invitation not valid",adminRegInvalidInviteDescription:"This invitation can't be used. Please contact your administrator or <a href='https://support.pingidentity.com/' target='_blank' rel='noopener noreferrer'>Ping Support</a> for help.",adminRegOtpDescription:"We've sent a 6-digit code to your email. Enter it below to continue.",adminRegOtpError:"That code isn't correct or may have expired. Please try again.",adminRegOtpHeader:"Admin Invite Code",adminRegOtpResendPrompt:"Didn't get a code?",adminRegOtpResend:"Resend",adminRegPrivacyPolicyAgreement:"I agree to the Ping Identity <a target='_blank' rel='noopener noreferrer' href='https://www.pingidentity.com/en-us/docs/legal/privacy'>privacy policy</a>.",adminRegPrivacyPolicyDescription:"Select your region of residence to review the applicable privacy policy.",adminRegPrivacyPolicyHeader:"Accept Privacy Policy",adminRegPrivacyPolicySelectRegion:"Region of residence",adminRegSendVerificationCode:"Send Verification Code",adminRegWelcomeDescriptionPre:"You've been invited to administer the",adminRegWelcomeDescriptionPost:"tenant in PingOne Advanced Identity Cloud.",adminRegWelcomeVerification:"Before you can begin, we need to verify your email address. Click the button below and we'll send you a one-time verification code.",adminRegWelcomeHeader:"Welcome to PingOne Advanced Identity Cloud",alreadyHaveAnAccount:"Already have an account? <a href='?journey'>Sign in here!</a>",backToDefault:"Back to Sign In",backToLogin:"Back to Sign In",captchaError:"CAPTCHA verification failed. Please try again.",closeModal:"Close",charactersCannotRepeatMoreThan:"A character cannot repeat more than {max} times",charactersCannotRepeatMoreThanCaseInsensitive:"A character cannot repeat more than {max} times (case insensitive)",checkYourEmail:"Check your email",chooseDifferentUsername:"Please choose a different username.",chooseYourDeviceForIdentityVerification:"Choose your device for identity verification.",confirmPassword:"Confirm password",constraintViolationForPassword:"Password does not meet the requirements.",constraintViolationForValue:"Value does not meet the requirements.",continueButton:"Continue",continueWith:"Continue with ",downloadTheApp:"Download the app",getAuthenticatorApp:"Set up the ForgeRock Authenticator",getAuthenticatorAppDescription:"To get started, you need to register your device using the ForgeRock Authenticator app.",getAuthenticatorAppLinks:"Get the app from the <a href='https://itunes.apple.com/app/forgerock-authenticator/id1038442926' target='_blank' rel='noopener noreferrer'>Apple App Store</a> or on <a href='https://play.google.com/store/apps/details?id=com.forgerock.authenticator' target='_blank' rel='noopener noreferrer'>Google Play Store</a>",copyAndPasteUrlBelow:"Or, copy and paste the URL below into your authenticator app.",copyUrl:"Copy URL",customSecurityQuestion:"Custom security question",deviceName:"Device name",doesNotMeetMinimumCharacterLength:"At least {min} character(s)",dontGetLockedOut:"Don't get locked out of your account!",dontHaveAnAccount:"No account? <a href='?journey=Registration'>Register here!</a>",ensurePasswordIsMoreThan:"Password must contain at least {minPasswordLength} character(s).",ensurePasswordHasOne:"Password must contain at least 1 capital letter, 1 number, and 1 special character.",enterVerificationCode:"Enter verification code",exceedsMaximumCharacterLength:"Exceeds maximum of {max} characters",fieldCanNotContainFollowingCharacters:"Cannot contain these character(s): {chars}",fieldCanNotContainFollowingValues:"Cannot contain these value(s): {fields}",forgotPassword:"Forgot password?",forgotUsername:"Forgot username?",givenName:"First name",inputRequiredError:"Value is required",loading:"Loading ...",loginButton:"Sign in",loginFailure:"Sign in failed",loginHeader:"Sign in",loginSuccess:"Sign in successful!",mail:"Email address",minimumNumberOfNumbers:"At least {num} number(s)",minimumNumberOfLowercase:"At least {num} lowercase letter(s)",minimumNumberOfUppercase:"At least {num} uppercase letter(s)",minimumNumberOfSymbols:"At least {num} symbol(s)",nameCallback:"Username",nameYourDevice:"Name your device",next:"Next",nextButton:"Next",notToExceedMaximumCharacterLength:"No more than {max} characters",noLessThanMinimumCharacterLength:"At least {min} character(s)",onMobileOpenInAuthenticator:"On mobile? Open link in Authenticator.",optionallyNameDevice:"Optionally name your device",passwordCallback:"Password",passwordCannotContainCommonPasswords:"Password cannot contain common passwords",passwordCannotContainCommonPasswordsOrBeReversible:"Password cannot contain common passwords or reversible text",passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:"Password cannot contain common passwords or reversible text less than {min} characters",passwordRequirements:"Password requirements:",pleaseCheckValue:"Please check this value",pleaseConfirm:"Please confirm",preferencesMarketing:"Send me special offers and services",preferencesUpdates:"Send me news and updates",provideCustomQuestion:"Provide custom security question",qrCodeNotWorking:"Not working or need an alternative method?",qrCodeFailedToRender:"QR Code failed to render. Please notify your support administrator. You are welcome to use the alternative methods below.",qrCodeImportFailure:"We are unable to render your QR Code. Please use one of the alternative methods below.",redirectingTo:"Redirecting you to",registerButton:"Register",registerHeader:"Register",registerSuccess:"Registration successful!",requiredField:"Value is required",registerYourDevice:"Register {name}",scanQrCodeWithAuthenticator:"Scan the QR code image below with the ForgeRock Authenticator app to register your device with your login.",securityAnswer:"Security answer",setupTwoStepVerification:"Set up 2-step verification",setupTwoStepVerificationButton:"Set up",setupTwoStepVerificationDescription:"To protect your account, add a second authentication method.",setupTwoStepVerificationWarning:"Starting April 2, 2024, you must sign in using 2-step verification. <a class='alert-link' href='https://backstage.forgerock.com/docs/idcloud/latest/product-information/migration-dependent-features/tenant-administrator-mandatory-2-step-verification-faq.html' target='_blank' rel='noopener noreferrer'>Learn more</a>.",skipForNow:"Skip for now",securityQuestions:"Security question(s)",securityQuestionsPrompt:"Provide security question(s) and answer(s):",shouldContainANumber:"Should contain a number",shouldContainAnUppercase:"Should contain an uppercase letter",shouldContainALowercase:"Should contain a lowercase letter",shouldContainASymbol:"Should contain a symbol",showPassword:"Show password",signalsEvaluation:"Evaluating device information.",skipButton:"Skip",sn:"Last name",submit:"Submit",submitButton:"Submit",successMessage:"Success!",termsAndConditions:"Please accept our Terms & Conditions",termsAndConditionsLinkText:"View full Terms & Conditions",tryAgain:"Please try again",twoFactorAuthentication:"Two factor authentication",useThisNewMfaToHelpVerifyYourIdentity:"Use this new device or Multi-Factor Authentication method to help verify your identity.",useValidEmail:"Please use a valid email address.",unrecoverableError:"There was an error in the form submission.",unknownLoginError:"Unknown login failure has occurred.",unknownNetworkError:"Unknown network request failure has occurred.",url:"URL:",useDeviceForIdentityVerification:"Use your device for identity verification.",useOneOfTheseCodes:"Use one of these codes to authenticate if you lose your device, which has been named: <em>{name}</em>",userName:"Username",usernameRequirements:"Username requirements:",useTheAuthenticatorAppOnYourPhone:"Find the verification code using the authenticator app on your phone.",validatedCreatePasswordCallback:"Password",validatedCreateUsernameCallback:"Username",valueRequirements:"Value requirements:",verifyYourIdentity:"Verify your identity",yourDevice:"Your device",yourMultiFactorAuthIsEnabled:"Your new device or MFA is enabled",yourRecoveryCodesToAccessAccountForLostDevice:"If you lose your device, or don’t have it with you, a recovery code is the only way to sign in to your account with 2-step verification enabled. It’s strongly recommended that you print and store these codes in a safe place. <b>Each code can only be used once</b>."},wd=Qn({adminRegInvalidInviteHeader:se(),adminRegInvalidInviteDescription:se(),adminRegOtpDescription:se(),adminRegOtpError:se(),adminRegOtpHeader:se(),adminRegOtpResendPrompt:se(),adminRegOtpResend:se(),adminRegPrivacyPolicyAgreement:se(),adminRegPrivacyPolicyDescription:se(),adminRegPrivacyPolicyHeader:se(),adminRegPrivacyPolicySelectRegion:se(),adminRegSendVerificationCode:se(),adminRegWelcomeDescriptionPre:se(),adminRegWelcomeDescriptionPost:se(),adminRegWelcomeVerification:se(),adminRegWelcomeHeader:se(),alreadyHaveAnAccount:se(),backToDefault:se(),backToLogin:se(),captchaError:se(),dontHaveAnAccount:se(),closeModal:se(),charactersCannotRepeatMoreThan:se(),charactersCannotRepeatMoreThanCaseInsensitive:se(),checkYourEmail:se(),chooseDifferentUsername:se(),chooseYourDeviceForIdentityVerification:se(),confirmPassword:se(),constraintViolationForPassword:se(),constraintViolationForValue:se(),continueButton:se(),continueWith:se(),downloadTheApp:se(),getAuthenticatorApp:se(),getAuthenticatorAppDescription:se(),getAuthenticatorAppLinks:se(),copyUrl:se(),copyAndPasteUrlBelow:se(),customSecurityQuestion:se(),dontGetLockedOut:se(),doesNotMeetMinimumCharacterLength:se(),deviceName:se(),ensurePasswordIsMoreThan:se(),ensurePasswordHasOne:se(),enterVerificationCode:se(),exceedsMaximumCharacterLength:se(),fieldCanNotContainFollowingCharacters:se(),fieldCanNotContainFollowingValues:se(),forgotPassword:se(),forgotUsername:se(),givenName:se(),inputRequiredError:se(),loading:se(),loginButton:se(),loginFailure:se(),loginHeader:se(),loginSuccess:se(),mail:se(),minimumNumberOfNumbers:se(),minimumNumberOfLowercase:se(),minimumNumberOfUppercase:se(),minimumNumberOfSymbols:se(),nameCallback:se(),nameYourDevice:se(),next:se(),nextButton:se(),notToExceedMaximumCharacterLength:se(),noLessThanMinimumCharacterLength:se(),useOneOfTheseCodes:se(),onMobileOpenInAuthenticator:se(),optionallyNameDevice:se(),passwordCallback:se(),passwordCannotContainCommonPasswords:se(),passwordCannotContainCommonPasswordsOrBeReversible:se(),passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:se(),passwordRequirements:se(),pleaseCheckValue:se(),pleaseConfirm:se(),preferencesMarketing:se(),preferencesUpdates:se(),provideCustomQuestion:se(),qrCodeNotWorking:se(),qrCodeFailedToRender:se(),qrCodeImportFailure:se(),redirectingTo:se(),registerButton:se(),registerHeader:se(),registerSuccess:se(),registerYourDevice:se(),requiredField:se(),securityAnswer:se(),setupTwoStepVerification:se(),setupTwoStepVerificationButton:se(),setupTwoStepVerificationDescription:se(),setupTwoStepVerificationWarning:se(),skipForNow:se(),scanQrCodeWithAuthenticator:se(),securityQuestions:se(),securityQuestionsPrompt:se(),shouldContainANumber:se(),shouldContainAnUppercase:se(),shouldContainALowercase:se(),shouldContainASymbol:se(),showPassword:se(),signalsEvaluation:se(),skipButton:se(),sn:se(),submit:se(),submitButton:se(),successMessage:se(),termsAndConditions:se(),termsAndConditionsLinkText:se(),tryAgain:se(),twoFactorAuthentication:se(),useThisNewMfaToHelpVerifyYourIdentity:se(),useValidEmail:se(),unrecoverableError:se(),unknownLoginError:se(),unknownNetworkError:se(),url:se(),useDeviceForIdentityVerification:se(),userName:se(),usernameRequirements:se(),useTheAuthenticatorAppOnYourPhone:se(),validatedCreatePasswordCallback:se(),validatedCreateUsernameCallback:se(),valueRequirements:se(),verifyYourIdentity:se(),yourDevice:se(),yourMultiFactorAuthIsEnabled:se(),yourRecoveryCodesToAccessAccountForLostDevice:se()}).strict();wd.partial(),wd.parse(_d);const bd=or(null);function IE(e){return e?bd.set({..._d,...e}):bd.set(_d),wd}const AE="Authorization timed out",TE="The request requires some interaction that is not allowed.",OE="Timeouts are likely an issue with OAuth client misconfiguration. If you are getting a 4xx error in the network tab, copy the full `/authorize` URL and paste it directly into your browsers URL field to directly visit the page. The error should be displayed on the page.",PE=`The user either doesn't have a valid session, the cookie is not being sent due to third-party cookies being disabled, or the user is needing to provide consent as the OAuth client setting does not have "implied consent" enabled.`;function Np(e){switch(e){case TE:return PE;case AE:return OE;default:return""}}const Sd={completed:!1,error:null,loading:!1,successful:!1,response:null};function RE(e,t){const n=or(Sd);async function r(l){if(!e)return n.set({completed:!0,error:{message:"OIDC client not configured",troubleshoot:null},loading:!1,successful:!1,response:null}),sn(n);const d={backgroundRenew:!0,...t,...l},g=sn(e);if(!g)return n.set({completed:!0,error:{message:"OIDC client not ready",troubleshoot:null},loading:!1,successful:!1,response:null}),sn(n);if("error"in g)return n.set({completed:!0,error:{message:String(g.error),troubleshoot:null},loading:!1,successful:!1,response:null}),sn(n);const p=sn(n);if(p.loading||p.completed)return p;n.set({...Sd,loading:!0});try{const _=await g.token.get(d);if("error"in _){const S="message"in _&&_.message||"error_description"in _&&_.error_description||_.error,k="code"in _&&typeof _.code=="number"?_.code:null;return n.set({completed:!0,error:{code:k,message:S,troubleshoot:Np(S)},loading:!1,successful:!1,response:null}),sn(n)}n.set({completed:!0,error:null,loading:!1,successful:!0,response:_})}catch(_){const S=_ instanceof Error?_.message:"Unknown OAuth error";n.set({completed:!0,error:{message:S,troubleshoot:Np(S)},loading:!1,successful:!1,response:null})}return sn(n)}function i(){n.set(Sd)}return{get:r,reset:i,subscribe:n.subscribe}}function Ed(e){let t=e.level||"info";const n=e.custom,r={error:(...l)=>n!=null&&n.error?n.error(...l):console.error(...l),warn:(...l)=>n!=null&&n.warn?n.warn(...l):console.warn(...l),info:(...l)=>n!=null&&n.info?n.info(...l):console.info(...l),debug:(...l)=>n!=null&&n.debug?n.debug(...l):console.debug(...l)},i=(l,d)=>{const g={error:0,warn:1,info:2,debug:3,none:-1};return g[l]<=g[d]&&g[d]!==-1};return{changeLevel:l=>{t=l},error:(...l)=>{i("error",t)&&r.error(...l)},warn:(...l)=>{i("warn",t)&&r.warn(...l)},info:(...l)=>{i("info",t)&&r.info(...l)},debug:(...l)=>{i("debug",t)&&r.debug(...l)}}}function xp(e){return typeof e=="object"&&e!==null&&"error"in e&&typeof e.error=="string"&&"type"in e&&typeof e.type=="string"}const ME=e=>typeof e=="function",lr=function(e,t){if(typeof e=="function")return function(){return e(arguments)?t.apply(this,arguments):n=>t(n,...arguments)};switch(e){case 0:case 1:throw new RangeError(`Invalid arity ${e}`);case 2:return function(n,r){return arguments.length>=2?t(n,r):function(i){return t(i,n)}};case 3:return function(n,r,i){return arguments.length>=3?t(n,r,i):function(l){return t(l,n,r)}};case 4:return function(n,r,i,l){return arguments.length>=4?t(n,r,i,l):function(d){return t(d,n,r,i)}};case 5:return function(n,r,i,l,d){return arguments.length>=5?t(n,r,i,l,d):function(g){return t(g,n,r,i,l)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);const n=arguments;return function(r){return t(r,...n)}}}},sa=e=>e,LE=(e=>()=>e)(void 0),$l="effect/GlobalValue";let Ao;const To=(e,t)=>(Ao||(globalThis[$l]??(globalThis[$l]=new Map),Ao=globalThis[$l]),Ao.has(e)||Ao.set(e,t()),Ao.get(e)),Up=ME,DE=e=>typeof e=="object"&&e!==null,NE=e=>DE(e)||Up(e),oa=lr(2,(e,t)=>NE(e)&&t in e),xE=e=>typeof e=="string"||oa(e,Symbol.iterator),UE=e=>`BUG: ${e} - please report an issue at https://github.com/Effect-TS/effect/issues`;class Zl{constructor(t){Je(this,"self");Je(this,"called",!1);this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new Zl(this.self)}}const kd=Symbol.for("effect/Utils/YieldWrap");class Fp{constructor(t){At(this,ml);bt(this,ml,t)}[kd](){return ue(this,ml)}}ml=new WeakMap;function FE(e){if(typeof e=="object"&&e!==null&&kd in e)return e[kd]();throw new Error(UE("yieldWrapGet"))}const Rr=To("effect/Utils/isStructuralRegion",()=>({enabled:!1,tester:void 0})),Cd=To(Symbol.for("effect/Hash/randomHashCache"),()=>new WeakMap),Ci=Symbol.for("effect/Hash"),Ii=e=>{if(Rr.enabled===!0)return 0;switch(typeof e){case"number":return Ad(e);case"bigint":return la(e.toString(10));case"boolean":return la(String(e));case"symbol":return la(String(e));case"string":return la(e);case"undefined":return la("undefined");case"function":case"object":return e===null?la("null"):e instanceof Date?Number.isNaN(e.getTime())?la("Invalid Date"):Ii(e.toISOString()):e instanceof URL?Ii(e.href):BE(e)?e[Ci]():Bp(e);default:throw new Error(`BUG: unhandled typeof ${typeof e} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},Bp=e=>(Cd.has(e)||Cd.set(e,Ad(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),Cd.get(e)),Id=e=>t=>t*53^e,zp=e=>e&3221225471|e>>>1&1073741824,BE=e=>oa(e,Ci),Ad=e=>{if(e!==e||e===1/0)return 0;let t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)t^=e/=4294967295;return zp(t)},la=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return zp(t)},Td=function(){if(arguments.length===1){const n=arguments[0];return function(r){return Object.defineProperty(n,Ci,{value(){return r},enumerable:!1}),r}}const e=arguments[0],t=arguments[1];return Object.defineProperty(e,Ci,{value(){return t},enumerable:!1}),t},Ka=Symbol.for("effect/Equal");function Yl(){return arguments.length===1?e=>Jl(e,arguments[0]):Jl(arguments[0],arguments[1])}function Jl(e,t){if(e===t)return!0;const n=typeof e;if(n!==typeof t)return!1;if(n==="object"||n==="function"){if(e!==null&&t!==null){if(Vp(e)&&Vp(t))return Ii(e)===Ii(t)&&e[Ka](t)?!0:Rr.enabled&&Rr.tester?Rr.tester(e,t):!1;if(e instanceof Date&&t instanceof Date){const r=e.getTime(),i=t.getTime();return r===i||Number.isNaN(r)&&Number.isNaN(i)}else if(e instanceof URL&&t instanceof URL)return e.href===t.href}if(Rr.enabled){if(e===null||t===null)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((r,i)=>Jl(r,t[i]));if(Object.getPrototypeOf(e)===Object.prototype&&Object.getPrototypeOf(t)===Object.prototype){const r=Object.keys(e),i=Object.keys(t);if(r.length===i.length){for(const l of r)if(!(l in t&&Jl(e[l],t[l])))return Rr.tester?Rr.tester(e,t):!1;return!0}}return Rr.tester?Rr.tester(e,t):!1}}return Rr.enabled&&Rr.tester?Rr.tester(e,t):!1}const Vp=e=>oa(e,Ka),Oo=Symbol.for("nodejs.util.inspect.custom"),Xl=e=>{try{if(oa(e,"toJSON")&&Up(e.toJSON)&&e.toJSON.length===0)return e.toJSON();if(Array.isArray(e))return e.map(Xl)}catch{return{}}return HE(e)},Po=e=>JSON.stringify(e,null,2),zE=(e,t=2)=>{if(typeof e=="string")return e;try{return typeof e=="object"?VE(e,t):String(e)}catch{return String(e)}},VE=(e,t)=>{let n=[];const r=JSON.stringify(e,(i,l)=>typeof l=="object"&&l!==null?n.includes(l)?void 0:n.push(l)&&(Ql.fiberRefs!==void 0&&Hp(l)?l[Od](Ql.fiberRefs):l):l,t);return n=void 0,r},Od=Symbol.for("effect/Inspectable/Redactable"),Hp=e=>typeof e=="object"&&e!==null&&Od in e,Ql=To("effect/Inspectable/redactableState",()=>({fiberRefs:void 0})),HE=e=>Hp(e)&&Ql.fiberRefs!==void 0?e[Od](Ql.fiberRefs):e,ec=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let r=0,i=t.length;r<i;r++)n=t[r](n);return n}}};let jE="3.21.0";const qE=()=>jE,GE=Symbol.for("effect/Effect"),WE=Symbol.for("effect/Stream"),KE=Symbol.for("effect/Sink"),$E=Symbol.for("effect/Channel"),Pd={_R:e=>e,_E:e=>e,_A:e=>e,_V:qE()},ZE={_A:e=>e,_In:e=>e,_L:e=>e,_E:e=>e,_R:e=>e},YE={_Env:e=>e,_InErr:e=>e,_InElem:e=>e,_InDone:e=>e,_OutErr:e=>e,_OutElem:e=>e,_OutDone:e=>e},Rd={[GE]:Pd,[WE]:Pd,[KE]:ZE,[$E]:YE,[Ka](e){return this===e},[Ci](){return Td(this,Bp(this))},[Symbol.iterator](){return new Zl(new Fp(this))},pipe(){return ec(this,arguments)}},jp=Symbol.for("effect/Either"),qp={...Rd,[jp]:{_R:e=>e},[Oo](){return this.toJSON()},toString(){return Po(this.toJSON())}},JE=Object.assign(Object.create(qp),{_tag:"Right",_op:"Right",[Ka](e){return Gp(e)&&QE(e)&&Yl(this.right,e.right)},[Ci](){return Id(Ii(this._tag))(Ii(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:Xl(this.right)}}}),XE=Object.assign(Object.create(qp),{_tag:"Left",_op:"Left",[Ka](e){return Gp(e)&&Wp(e)&&Yl(this.left,e.left)},[Ci](){return Id(Ii(this._tag))(Ii(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:Xl(this.left)}}}),Gp=e=>oa(e,jp),Wp=e=>e._tag==="Left",QE=e=>e._tag==="Right",ek=e=>{const t=Object.create(XE);return t.left=e,t},tk=e=>{const t=Object.create(JE);return t.right=e,t},tc=ek,nk=Wp,Kp=lr(2,(e,{onLeft:t,onRight:n})=>nk(e)?t(e.left):n(e.right)),rk=e=>Array.isArray(e)?e:Array.from(e),ik=Symbol.for("effect/Context/Tag"),$p=Symbol.for("effect/Context/Reference"),ak={...{...Rd,_op:"Tag",[Symbol.for("effect/STM")]:Pd,[ik]:{_Service:e=>e,_Identifier:e=>e},toString(){return Po(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[Oo](){return this.toJSON()},of(e){return e},context(e){return uk(this,e)}},[$p]:$p},sk=()=>(e,t)=>{const n=Error.stackTraceLimit;Error.stackTraceLimit=2;const r=new Error;Error.stackTraceLimit=n;function i(){}return Object.setPrototypeOf(i,ak),i.key=e,i.defaultValue=t.defaultValue,Object.defineProperty(i,"stack",{get(){return r.stack}}),i},Zp=Symbol.for("effect/Context"),ok={[Zp]:{_Services:e=>e},[Ka](e){if(ck(e)&&this.unsafeMap.size===e.unsafeMap.size){for(const t of this.unsafeMap.keys())if(!e.unsafeMap.has(t)||!Yl(this.unsafeMap.get(t),e.unsafeMap.get(t)))return!1;return!0}return!1},[Ci](){return Td(this,Ad(this.unsafeMap.size))},pipe(){return ec(this,arguments)},toString(){return Po(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(Xl)}},[Oo](){return this.toJSON()}},lk=e=>{const t=Object.create(ok);return t.unsafeMap=e,t},ck=e=>oa(e,Zp),uk=(e,t)=>lk(new Map([[e.key,t]])),Md=To("effect/Context/defaultValueCache",()=>new Map),dk=e=>{if(Md.has(e.key))return Md.get(e.key);const t=e.defaultValue();return Md.set(e.key,t),t},fk=(e,t)=>e.unsafeMap.has(t.key)?e.unsafeMap.get(t.key):dk(t),Ld=sk,hk=Rd,Yp=Symbol.for("effect/Micro"),nc=Symbol.for("effect/Micro/MicroExit"),Ms=e=>typeof e=="object"&&e!==null&&Yp in e,Jp=Symbol.for("effect/Micro/MicroCause"),gk={_E:sa};class Dd extends globalThis.Error{constructor(n,r,i){const l=`MicroCause.${n}`;let d,g,p;if(r instanceof globalThis.Error){d=`(${l}) ${r.name}`,g=r.message;const _=g.split(`
46
+ `).length;p=r.stack?`(${l}) ${r.stack.split(`
47
+ `).slice(0,_+3).join(`
48
+ `)}`:`${d}: ${g}`}else d=l,g=zE(r,0),p=`${d}: ${g}`;i.length>0&&(p+=`
49
+ ${i.join(`
50
+ `)}`);super(g);Je(this,"_tag");Je(this,"traces");Je(this,H_);this._tag=n,this.traces=i,this[Jp]=gk,this.name=d,this.stack=p}pipe(){return ec(this,arguments)}toString(){return this.stack}[(H_=Jp,Oo)](){return this.stack}}class pk extends Dd{constructor(n,r=[]){super("Fail",n,r);Je(this,"error");this.error=n}}const mk=(e,t=[])=>new pk(e,t);class vk extends Dd{constructor(n,r=[]){super("Die",n,r);Je(this,"defect");this.defect=n}}const yk=(e,t=[])=>new vk(e,t);class _k extends Dd{constructor(t=[]){super("Interrupt","interrupted",t)}}const wk=(e=[])=>new _k(e),bk=e=>e._tag==="Fail",rc=e=>e._tag==="Die",Xp=e=>e._tag==="Interrupt",Qp=Symbol.for("effect/Micro/MicroFiber"),Sk={_A:sa,_E:sa};j_=Qp;class em{constructor(t,n=!0){Je(this,"context");Je(this,"interruptible");Je(this,j_);Je(this,"_stack",[]);Je(this,"_observers",[]);Je(this,"_exit");Je(this,"_children");Je(this,"currentOpCount",0);Je(this,"_interrupted",!1);Je(this,"_yielded");this.context=t,this.interruptible=n,this[Qp]=Sk}getRef(t){return fk(this.context,t)}addObserver(t){return this._exit?(t(this._exit),LE):(this._observers.push(t),()=>{const n=this._observers.indexOf(t);n>=0&&this._observers.splice(n,1)})}unsafeInterrupt(){this._exit||(this._interrupted=!0,this.interruptible&&this.evaluate(cm))}unsafePoll(){return this._exit}evaluate(t){if(this._exit)return;if(this._yielded!==void 0){const i=this._yielded;this._yielded=void 0,i()}const n=this.runLoop(t);if(n===Ds)return;const r=tm.interruptChildren&&tm.interruptChildren(this);if(r!==void 0)return this.evaluate(Yt(r,()=>n));this._exit=n;for(let i=0;i<this._observers.length;i++)this._observers[i](n);this._observers.length=0}runLoop(t){let n=!1,r=t;this.currentOpCount=0;try{for(;;){if(this.currentOpCount++,!n&&this.getRef(lc).shouldYield(this)){n=!0;const i=r;r=Yt(Ak,()=>i)}if(r=r[Nd](this),r===Ds){const i=this._yielded;return nc in i?(this._yielded=void 0,i):Ds}}}catch(i){return oa(r,Nd)?Mo(i):Mo(`MicroFiber.runLoop: Not a valid effect: ${String(r)}`)}}getCont(t){for(;;){const n=this._stack.pop();if(!n)return;const r=n[ic]&&n[ic](this);if(r)return{[t]:r};if(n[t])return n}}yieldWith(t){return this._yielded=t,Ds}children(){return this._children??(this._children=new Set)}}const tm=To("effect/Micro/fiberMiddleware",()=>({interruptChildren:void 0})),Ek=e=>xs(()=>{for(const r of e)r.unsafeInterrupt();const t=e[Symbol.iterator](),n=xs(()=>{let r=t.next();for(;!r.done;){if(r.value.unsafePoll()){r=t.next();continue}const i=r.value;return am(l=>{i.addObserver(d=>{l(n)})})}return Lo});return n}),nm=Symbol.for("effect/Micro/identifier"),Ht=Symbol.for("effect/Micro/args"),Nd=Symbol.for("effect/Micro/evaluate"),ca=Symbol.for("effect/Micro/successCont"),Ls=Symbol.for("effect/Micro/failureCont"),ic=Symbol.for("effect/Micro/ensureCont"),Ds=Symbol.for("effect/Micro/Yield"),kk={_A:sa,_E:sa,_R:sa},Ck={...hk,_op:"Micro",[Yp]:kk,pipe(){return ec(this,arguments)},[Symbol.iterator](){return new Zl(new Fp(this))},toJSON(){return{_id:"Micro",op:this[nm],...Ht in this?{args:this[Ht]}:void 0}},toString(){return Po(this)},[Oo](){return Po(this)}};function Ik(e){return Mo("Micro.evaluate: Not implemented")}const ac=e=>({...Ck,[nm]:e.op,[Nd]:e.eval??Ik,[ca]:e.contA,[Ls]:e.contE,[ic]:e.ensure}),Ai=e=>{const t=ac(e);return function(){const n=Object.create(t);return n[Ht]=e.single===!1?arguments:arguments[0],n}},rm=e=>{const t={...ac(e),[nc]:nc,_tag:e.op,get[e.prop](){return this[Ht]},toJSON(){return{_id:"MicroExit",_tag:e.op,[e.prop]:this[Ht]}},[Ka](n){return Dk(n)&&n._tag===e.op&&Yl(this[Ht],n[Ht])},[Ci](){return Td(this,Id(la(e.op))(Ii(this[Ht])))}};return function(n){const r=Object.create(t);return r[Ht]=n,r[ca]=void 0,r[Ls]=void 0,r[ic]=void 0,r}},wn=rm({op:"Success",prop:"value",eval(e){const t=e.getCont(ca);return t?t[ca](this[Ht],e):e.yieldWith(this)}}),Ns=rm({op:"Failure",prop:"cause",eval(e){let t=e.getCont(Ls);for(;Xp(this[Ht])&&t&&e.interruptible;)t=e.getCont(Ls);return t?t[Ls](this[Ht],e):e.yieldWith(this)}}),tn=e=>Ns(mk(e)),Ti=Ai({op:"Sync",eval(e){const t=this[Ht](),n=e.getCont(ca);return n?n[ca](t,e):e.yieldWith(om(t))}}),xs=Ai({op:"Suspend",eval(e){return this[Ht]()}}),Ak=Ai({op:"Yield",eval(e){let t=!1;return e.getRef(lc).scheduleTask(()=>{t||e.evaluate(Lo)},this[Ht]??0),e.yieldWith(()=>{t=!0})}})(0),Tk=e=>Mo(e),im=wn(void 0),Ro=e=>xs(()=>{try{return wn(e.try())}catch(t){return tn(e.catch(t))}}),$a=e=>xd(function(t,n){e(n).then(r=>t(wn(r)),r=>t(Tk(r)))},e.length!==0),Oi=e=>xd(function(t,n){try{e.try(n).then(r=>t(wn(r)),r=>t(tn(e.catch(r))))}catch(r){t(tn(e.catch(r)))}},e.try.length!==0),Ok=Ai({op:"WithMicroFiber",eval(e){return this[Ht](e)}}),xd=Ai({op:"Async",single:!1,eval(e){const t=this[Ht][0];let n=!1,r=!1;const i=this[Ht][1]?new AbortController:void 0,l=t(d=>{n||(n=!0,r?e.evaluate(d):r=d)},i==null?void 0:i.signal);return r!==!1?r:(r=!0,e._yielded=()=>{n=!0},i===void 0&&l===void 0||e._stack.push(Pk(()=>(n=!0,i==null||i.abort(),l??Lo))),Ds)}}),Pk=Ai({op:"AsyncFinalizer",ensure(e){e.interruptible&&(e.interruptible=!1,e._stack.push(Gk(!0)))},contE(e,t){return Xp(e)?Yt(this[Ht](),()=>Ns(e)):Ns(e)}}),am=e=>xd(e,e.length>=2),sm=(...e)=>xs(()=>Rk(e.length===1?e[0]():e[1].call(e[0]))),Rk=Ai({op:"Iterator",contA(e,t){const n=this[Ht].next(e);return n.done?wn(n.value):(t._stack.push(this),FE(n.value))},eval(e){return this[ca](void 0,e)}}),Ud=lr(2,(e,t)=>jr(e,n=>t)),Mk=lr(2,(e,t)=>Yt(e,n=>{const r=Ms(t)?t:typeof t=="function"?t(n):t;return Ms(r)?r:wn(r)})),fi=lr(2,(e,t)=>Yt(e,n=>{const r=Ms(t)?t:typeof t=="function"?t(n):t;return Ms(r)?Ud(r,n):wn(n)})),Yt=lr(2,(e,t)=>{const n=Object.create(Lk);return n[Ht]=e,n[ca]=t,n}),Lk=ac({op:"OnSuccess",eval(e){return e._stack.push(this),this[Ht]}}),jr=lr(2,(e,t)=>Yt(e,n=>wn(t(n)))),Dk=e=>oa(e,nc),om=wn,lm=Ns,cm=lm(wk()),Mo=e=>lm(yk(e)),sc=e=>e._tag==="Success",Nk=e=>e._tag==="Failure",oc=e=>Nk(e)&&e.cause._tag==="Fail",Lo=om(void 0),xk="setImmediate"in globalThis?globalThis.setImmediate:e=>setTimeout(e,0);class um{constructor(){Je(this,"tasks",[]);Je(this,"running",!1);Je(this,"afterScheduled",()=>{this.running=!1,this.runTasks()})}scheduleTask(t,n){this.tasks.push(t),this.running||(this.running=!0,xk(this.afterScheduled))}runTasks(){const t=this.tasks;this.tasks=[];for(let n=0,r=t.length;n<r;n++)t[n]()}shouldYield(t){return t.currentOpCount>=t.getRef(Uk)}flush(){for(;this.tasks.length>0;)this.runTasks()}}class Uk extends Ld()("effect/Micro/currentMaxOpsBeforeYield",{defaultValue:()=>2048}){}class Fk extends Ld()("effect/Micro/currentConcurrency",{defaultValue:()=>"unbounded"}){}class lc extends Ld()("effect/Micro/currentScheduler",{defaultValue:()=>new um}){}const Bk=lr(e=>Ms(e[1]),(e,t,n)=>zk(e,t,(r,i)=>[r,i],n)),zk=lr(e=>Ms(e[1]),(e,t,n,r)=>r!=null&&r.concurrent?jr(Wk([e,t],{concurrency:2}),([i,l])=>n(i,l)):Yt(e,i=>jr(t,l=>n(i,l)))),Vk=lr(2,(e,t)=>{const n=Object.create(Hk);return n[Ht]=e,n[Ls]=t,n}),Hk=ac({op:"OnFailure",eval(e){return e._stack.push(this),this[Ht]}}),jk=lr(3,(e,t,n)=>Vk(e,r=>t(r)?n(r):Ns(r))),qk=lr(3,(e,t,n)=>jk(e,t,r=>Mk(n(r),Ns(r)))),Za=lr(2,(e,t)=>qk(e,bk,n=>t(n.error))),Gk=Ai({op:"SetInterruptible",ensure(e){if(e.interruptible=this[Ht],e._interrupted&&e.interruptible)return()=>cm}}),Wk=(e,t)=>Array.isArray(e)||xE(e)?Fd(e,sa,t):t!=null&&t.discard?Fd(Object.values(e),sa,t):xs(()=>{const n={};return Ud(Fd(Object.entries(e),([r,i])=>jr(i,l=>{n[r]=l}),{discard:!0,concurrency:t==null?void 0:t.concurrency}),n)}),Kk=Ai({op:"While",contA(e,t){return this[Ht].step(e),this[Ht].while()?(t._stack.push(this),this[Ht].body()):Lo},eval(e){return this[Ht].while()?(e._stack.push(this),this[Ht].body()):Lo}}),Fd=(e,t,n)=>Ok(r=>{const i=(n==null?void 0:n.concurrency)==="inherit"?r.getRef(Fk):(n==null?void 0:n.concurrency)??1,l=i==="unbounded"?Number.POSITIVE_INFINITY:Math.max(1,i),d=rk(e);let g=d.length;if(g===0)return n!=null&&n.discard?im:wn([]);const p=n!=null&&n.discard?void 0:new Array(g);let _=0;return l===1?Ud(Kk({while:()=>_<d.length,body:()=>t(d[_],_),step:p?S=>p[_++]=S:S=>_++}),p):am(S=>{const k=new Set;let h,y=0,b=0,c=!1,u=!1;function f(){for(c=!0;y<l&&_<g;){const s=_,o=d[s];_++,y++;try{const a=$k(r,t(o,s),!0,!0);k.add(a),a.addObserver(m=>{k.delete(a),!u&&(m._tag==="Failure"?h===void 0&&(h=m,g=_,k.forEach(v=>v.unsafeInterrupt())):p!==void 0&&(p[s]=m.value),b++,y--,b===g?S(h??wn(p)):!c&&y<l&&f())})}catch(a){h=Mo(a),g=_,k.forEach(m=>m.unsafeInterrupt())}}c=!1}return f(),xs(()=>(u=!0,_=g,Ek(k)))})}),$k=(e,t,n=!1,r=!1)=>{const i=new em(e.context,e.interruptible);return r||(e.children().add(i),i.addObserver(()=>e.children().delete(i))),n?i.evaluate(t):e.getRef(lc).scheduleTask(()=>i.evaluate(t),0),i},Zk=(e,t)=>{const n=new em(lc.context(new um));return n.evaluate(e),n},ua=(e,t)=>new Promise((n,r)=>{Zk(e).addObserver(n)});function Do(e,t,n){if(sc(e))return e.value;if(oc(e))return e.cause.error;const r=rc(e.cause)?e.cause.defect:void 0;return{error:t,message:r instanceof Error?r.message:String(r??"Unknown defect"),type:n}}function Bd(e=32){const t=crypto.getRandomValues(new Uint8Array(e));return btoa(t.join("")).replace(/[^a-zA-Z0-9]+/,"")}function dm(){return Bd(16)}function Yk(){return Bd(32)}async function fm(e){const t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t),r=Array.from(new Uint8Array(n));return btoa(String.fromCharCode(...r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function cc(e,t,n){return e===1?t:n!==void 0?n:t+"s"}function Jk(e){const t=(e||"").split("/").map(r=>r.trim()).filter(r=>r!=="");return t[0]!=="root"&&t.unshift("root"),t.map(r=>`realms/${r}`).join("/")}function hm({endpoint:e,realmPath:t,customPaths:n}){const r=Jk(t),i={authenticate:`json/${r}/authenticate`,authorize:`oauth2/${r}/authorize`,accessToken:`oauth2/${r}/access_token`,endSession:`oauth2/${r}/connect/endSession`,userInfo:`oauth2/${r}/userinfo`,revoke:`oauth2/${r}/token/revoke`,sessions:`json/${r}/sessions/`};return n&&n[e]?n[e]:i[e]}function gm(e){const n=e.protocol==="http:"&&["","80"].indexOf(e.port)===-1||e.protocol==="https:"&&["","443"].indexOf(e.port)===-1?`:${e.port}`:"";let r=e.hostname;return r.includes(":")&&!r.startsWith("[")&&!r.endsWith("]")&&(r=`[${r}]`),`${e.protocol}//${r}${n}`}function pm(e,t){const n=new URL(e);if(t.startsWith("/"))return`${gm(n)}${t}`;const r=n.pathname.split("/"),i=t.split("/").filter(d=>!!d),l=[...r.slice(0,-1),...i].join("/");return`${gm(n)}${l}`}function mm(e){const t=[];for(const n in e)e[n]&&t.push(n+"="+encodeURIComponent(e[n]));return t.join("&")}function Xk(e){if(typeof e=="object"&&e!==null){if("message"in e&&typeof e.message=="string")return e.message;if("error"in e&&typeof e.error=="string")return e.error;if("data"in e&&typeof e.data=="object"&&e.data!==null){const t=e.data;if(typeof t.message=="string")return t.message;if(typeof t.error=="string")return t.error;if(typeof t.error_description=="string")return t.error_description}if("status"in e&&(typeof e.status=="number"||typeof e.status=="string"))return`HTTP error ${String(e.status)}`}return"An unknown error occurred"}const Qk="/.well-known/openid-configuration";function eC(e){try{const t=new URL(e),n=t.hostname==="localhost"||t.hostname==="127.0.0.1",r=t.protocol==="https:",i=t.protocol==="http:"&&n;return!r&&!i?!1:t.pathname.endsWith(Qk)}catch{return!1}}function tC(e){return typeof e=="object"&&e!==null&&"type"in e&&"message"in e&&"error"in e}function nC(e){return e?tC(e)?e:{error:"Well-known configuration fetch failed",message:Xk(e),type:"wellknown_error",status:"unknown"}:{error:"Well-known configuration fetch failed",message:"No response received from well-known endpoint",type:"wellknown_error",status:"unknown"}}function da(e,t,n){return!e||e[t]===void 0?n:e[t]}function uc(e,t){return e.reduce((n,r)=>{var i;if(r.includes(".")){const l=r.split("."),d=l[0],g=l[1],p=(i=t[d])==null?void 0:i[g];n[g]=p??""}else n[r]=t[r]!=null?t[r]:null;return n},{})}function rC(e,t){return e.reduce((n,r)=>(n=`${n}${t[r].filename};`,n),"")}const iC="forgerock-sdk",fe={BooleanAttributeInputCallback:"BooleanAttributeInputCallback",ChoiceCallback:"ChoiceCallback",ConfirmationCallback:"ConfirmationCallback",DeviceProfileCallback:"DeviceProfileCallback",HiddenValueCallback:"HiddenValueCallback",KbaCreateCallback:"KbaCreateCallback",MetadataCallback:"MetadataCallback",NameCallback:"NameCallback",NumberAttributeInputCallback:"NumberAttributeInputCallback",PasswordCallback:"PasswordCallback",PingOneProtectEvaluationCallback:"PingOneProtectEvaluationCallback",PingOneProtectInitializeCallback:"PingOneProtectInitializeCallback",PollingWaitCallback:"PollingWaitCallback",ReCaptchaCallback:"ReCaptchaCallback",ReCaptchaEnterpriseCallback:"ReCaptchaEnterpriseCallback",RedirectCallback:"RedirectCallback",SelectIdPCallback:"SelectIdPCallback",StringAttributeInputCallback:"StringAttributeInputCallback",SuspendedTextOutputCallback:"SuspendedTextOutputCallback",TermsAndConditionsCallback:"TermsAndConditionsCallback",TextInputCallback:"TextInputCallback",TextOutputCallback:"TextOutputCallback",ValidatedCreatePasswordCallback:"ValidatedCreatePasswordCallback",ValidatedCreateUsernameCallback:"ValidatedCreateUsernameCallback"};var qr;(function(e){e.LoginFailure="LoginFailure",e.LoginSuccess="LoginSuccess",e.Step="Step"})(qr||(qr={}));var nn;(function(e){e.CannotContainCharacters="CANNOT_CONTAIN_CHARACTERS",e.CannotContainDuplicates="CANNOT_CONTAIN_DUPLICATES",e.CannotContainOthers="CANNOT_CONTAIN_OTHERS",e.LeastCapitalLetters="AT_LEAST_X_CAPITAL_LETTERS",e.LeastNumbers="AT_LEAST_X_NUMBERS",e.MatchRegexp="MATCH_REGEXP",e.MaximumLength="MAX_LENGTH",e.MaximumNumber="MAXIMUM_NUMBER_VALUE",e.MinimumLength="MIN_LENGTH",e.MinimumNumber="MINIMUM_NUMBER_VALUE",e.Required="REQUIRED",e.Unique="UNIQUE",e.UnknownPolicy="UNKNOWN_POLICY",e.ValidArrayItems="VALID_ARRAY_ITEMS",e.ValidDate="VALID_DATE",e.ValidEmailAddress="VALID_EMAIL_ADDRESS_FORMAT",e.ValidNameFormat="VALID_NAME_FORMAT",e.ValidNumber="VALID_NUMBER",e.ValidPhoneFormat="VALID_PHONE_FORMAT",e.ValidQueryFilter="VALID_QUERY_FILTER",e.ValidType="VALID_TYPE"})(nn||(nn={}));function vm(e,t){return`${t||"FR-SDK"}-authflow-${e}`}function ym(e){const t=Yk(),n=dm(),r=vm(e.clientId,e.prefix),i={...e,state:n,verifier:t};return[i,()=>sessionStorage.setItem(r,JSON.stringify(i))]}function aC(e,t){const n=vm(e,t),r=sessionStorage.getItem(n);sessionStorage.removeItem(n);try{return JSON.parse(r)}catch{throw new Error("Stored values for Auth URL could not be parsed")}}function _m(e){const t=new URLSearchParams(e.query);return t.set("client_id",e.clientId),t.set("response_type",e.responseType),t.set("scope",e.scope),t.set("redirect_uri",e.redirectUri),t.set("code_challenge",e.challenge),t.set("code_challenge_method","S256"),t.set("state",e.state),e.responseMode&&t.set("response_mode",e.responseMode),e.prompt&&t.set("prompt",e.prompt),e.loginHint&&t.set("login_hint",e.loginHint),e.nonce&&t.set("nonce",e.nonce),e.display&&t.set("display",e.display),e.uiLocales&&t.set("ui_locales",e.uiLocales),e.acrValues&&t.set("acr_values",e.acrValues),t}async function zd(e,t){const n=new URL(e).origin,[r,i]=ym({clientId:t.clientId,serverConfig:{baseUrl:n},responseType:t.responseType,redirectUri:t.redirectUri,scope:t.scope}),l=await fm(r.verifier),d=_m({...t,challenge:l,state:r.state}),g=new URL(`${e}?${d.toString()}`);return i(),g.toString()}function wm(e,t="unknown"){return{error:"Well-known configuration fetch failed",message:e,type:"wellknown_error",status:t}}function sC(e){return typeof e=="object"&&e!==null}function oC(e){return sC(e)?typeof e.issuer=="string"&&typeof e.authorization_endpoint=="string"&&typeof e.token_endpoint=="string":!1}function bm(e){const t={url:e,headers:{Accept:"application/json"}};return{async applyQuery(n){let r;try{r=await n(t)}catch(i){const l=i instanceof Error?i.message:"An unknown error occurred during well-known fetch";return{error:{status:"CUSTOM_ERROR",error:l,data:wm(l)}}}return r.error?{error:r.error}:oC(r.data)?{data:r.data}:{error:{status:"CUSTOM_ERROR",error:"Invalid well-known response: missing required fields (issuer, authorization_endpoint, token_endpoint)",data:wm("Invalid well-known response: missing required fields (issuer, authorization_endpoint, token_endpoint)")}}}}}function fa(e,t){let n;switch(e){case"localStorage":n="local";break;case"sessionStorage":n="session";break;case"custom":n="custom";break}return{error:`${t}_error`,message:`Error ${t.toLowerCase()} value from ${n} storage`,type:t==="Parsing"?"parse_error":"unknown_error"}}function Sm(e){const{type:t,prefix:n="pic",name:r}=e,i=`${n}-${r}`,l={sessionStorage,localStorage};if(t==="custom"&&!("custom"in e))throw new Error("Custom storage configuration must include a custom storage object");return{get:async function(){if(t==="custom"){let p;try{p=await e.custom.get(i)}catch{return fa(t,"Retrieving")}if(p===null||typeof p=="object"&&"error"in p)return p;try{return JSON.parse(p)}catch{return fa(t,"Parsing")}}let g;try{if(g=await l[t].getItem(i),g===null)return g}catch{return fa(t,"Retrieving")}try{return JSON.parse(g)}catch{return fa(t,"Parsing")}},set:async function(g){const p=JSON.stringify(g);if(t==="custom")try{return await e.custom.set(i,p)??null}catch{return fa(t,"Storing")}try{return await l[t].setItem(i,p),Promise.resolve(null)}catch{return fa(t,"Storing")}},remove:async function(){if(t==="custom")try{return await e.custom.remove(i)??null}catch{return fa(t,"Removing")}try{return await l[t].removeItem(i),Promise.resolve(null)}catch{return fa(t,"Removing")}}}}function Em(e){return typeof e=="object"&&e!==null}function lC(e){return Em(e)&&typeof e.request_uri=="string"}function cC(e,t,n){var i;const r=(i=e.response_modes_supported)==null?void 0:i.includes("pi.flow");return[e.authorization_endpoint,{clientId:t.clientId,redirectUri:t.redirectUri,scope:t.scope||"openid",responseType:t.responseType||"code",...r&&{responseMode:"pi.flow"},...n}]}function km(e){return"status"in e}const uC=new Set(["auth_error","argument_error","network_error","unknown_error","wellknown_error"]);function dC(e){return typeof e=="string"&&uC.has(e)}function fC(e){return Em(e)&&typeof e.error=="string"?{error:e.error,error_description:typeof e.error_description=="string"?e.error_description:"",type:dC(e.type)?e.type:"unknown_error",...typeof e.redirectUrl=="string"&&{redirectUrl:e.redirectUrl}}:{error:"Unknown_Error",error_description:"Unexpected error response shape",type:"unknown_error"}}function hC({authorizationEndpoint:e,clientId:t,requestUri:n,prompt:r}){const i=new URL(e);return i.searchParams.set("client_id",t),i.searchParams.set("request_uri",n),r&&i.searchParams.set("prompt",r),i.toString()}function Cm(e){return km(e)?fC(e.data):{error:e.code??"Unknown_Error",error_description:e.message??"An unknown error occurred during authorization",type:"unknown_error"}}function Mn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var gC=typeof Symbol=="function"&&Symbol.observable||"@@observable",Im=gC,Vd=()=>Math.random().toString(36).substring(7).split("").join("."),pC={INIT:`@@redux/INIT${Vd()}`,REPLACE:`@@redux/REPLACE${Vd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Vd()}`},dc=pC;function ha(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Am(e,t,n){if(typeof e!="function")throw new Error(Mn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Mn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mn(1));return n(Am)(e,t)}let r=e,i=t,l=new Map,d=l,g=0,p=!1;function _(){d===l&&(d=new Map,l.forEach((u,f)=>{d.set(f,u)}))}function S(){if(p)throw new Error(Mn(3));return i}function k(u){if(typeof u!="function")throw new Error(Mn(4));if(p)throw new Error(Mn(5));let f=!0;_();const s=g++;return d.set(s,u),function(){if(f){if(p)throw new Error(Mn(6));f=!1,_(),d.delete(s),l=null}}}function h(u){if(!ha(u))throw new Error(Mn(7));if(typeof u.type>"u")throw new Error(Mn(8));if(typeof u.type!="string")throw new Error(Mn(17));if(p)throw new Error(Mn(9));try{p=!0,i=r(i,u)}finally{p=!1}return(l=d).forEach(s=>{s()}),u}function y(u){if(typeof u!="function")throw new Error(Mn(10));r=u,h({type:dc.REPLACE})}function b(){const u=k;return{subscribe(f){if(typeof f!="object"||f===null)throw new Error(Mn(11));function s(){const a=f;a.next&&a.next(S())}return s(),{unsubscribe:u(s)}},[Im](){return this}}}return h({type:dc.INIT}),{dispatch:h,subscribe:k,getState:S,replaceReducer:y,[Im]:b}}function mC(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:dc.INIT})>"u")throw new Error(Mn(12));if(typeof n(void 0,{type:dc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mn(13))})}function Hd(e){const t=Object.keys(e),n={};for(let l=0;l<t.length;l++){const d=t[l];typeof e[d]=="function"&&(n[d]=e[d])}const r=Object.keys(n);let i;try{mC(n)}catch(l){i=l}return function(d={},g){if(i)throw i;let p=!1;const _={};for(let S=0;S<r.length;S++){const k=r[S],h=n[k],y=d[k],b=h(y,g);if(typeof b>"u")throw g&&g.type,new Error(Mn(14));_[k]=b,p=p||b!==y}return p=p||r.length!==Object.keys(d).length,p?_:d}}function fc(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function vC(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Mn(15))};const d={getState:i.getState,dispatch:(p,..._)=>l(p,..._)},g=e.map(p=>p(d));return l=fc(...g)(i.dispatch),{...i,dispatch:l}}}function Tm(e){return ha(e)&&"type"in e&&typeof e.type=="string"}var jd=Symbol.for("immer-nothing"),No=Symbol.for("immer-draftable"),In=Symbol.for("immer-state");function Ln(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cr=Object,Ya=cr.getPrototypeOf,xo="constructor",Uo="prototype",qd="configurable",hc="enumerable",gc="writable",Fo="value",ur=e=>!!e&&!!e[In];function dr(e){var t;return e?Pm(e)||Vo(e)||!!e[No]||!!((t=e[xo])!=null&&t[No])||Ho(e)||jo(e):!1}var yC=cr[Uo][xo].toString(),Om=new WeakMap;function Pm(e){if(!e||!Us(e))return!1;const t=Ya(e);if(t===null||t===cr[Uo])return!0;const n=cr.hasOwnProperty.call(t,xo)&&t[xo];if(n===Object)return!0;if(!Xa(n))return!1;let r=Om.get(n);return r===void 0&&(r=Function.toString.call(n),Om.set(n,r)),r===yC}function _C(e){return ur(e)||Ln(15,e),e[In].base_}function Bo(e,t,n=!0){Ja(e)===0?(n?Reflect.ownKeys(e):cr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Ja(e){const t=e[In];return t?t.type_:Vo(e)?1:Ho(e)?2:jo(e)?3:0}var zo=(e,t,n=Ja(e))=>n===2?e.has(t):cr[Uo].hasOwnProperty.call(e,t),Pi=(e,t,n=Ja(e))=>n===2?e.get(t):e[t],pc=(e,t,n,r=Ja(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function wC(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Vo=Array.isArray,Ho=e=>e instanceof Map,jo=e=>e instanceof Set,Us=e=>typeof e=="object",Xa=e=>typeof e=="function",Gd=e=>typeof e=="boolean";function bC(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var SC=e=>Us(e)?e==null?void 0:e[In]:null,Ri=e=>e.copy_||e.base_,Wd=e=>e.modified_?e.copy_:e.base_;function Kd(e,t){if(Ho(e))return new Map(e);if(jo(e))return new Set(e);if(Vo(e))return Array[Uo].slice.call(e);const n=Pm(e);if(t===!0||t==="class_only"&&!n){const r=cr.getOwnPropertyDescriptors(e);delete r[In];let i=Reflect.ownKeys(r);for(let l=0;l<i.length;l++){const d=i[l],g=r[d];g[gc]===!1&&(g[gc]=!0,g[qd]=!0),(g.get||g.set)&&(r[d]={[qd]:!0,[gc]:!0,[hc]:g[hc],[Fo]:e[d]})}return cr.create(Ya(e),r)}else{const r=Ya(e);if(r!==null&&n)return{...e};const i=cr.create(r);return cr.assign(i,e)}}function $d(e,t=!1){return vc(e)||ur(e)||!dr(e)||(Ja(e)>1&&cr.defineProperties(e,{set:mc,add:mc,clear:mc,delete:mc}),cr.freeze(e),t&&Bo(e,(n,r)=>{$d(r,!0)},!1)),e}function EC(){Ln(2)}var mc={[Fo]:EC};function vc(e){return e===null||!Us(e)?!0:cr.isFrozen(e)}var yc="MapSet",_c="Patches",Rm="ArrayMethods",wc={};function Qa(e){const t=wc[e];return t||Ln(0,e),t}var Mm=e=>!!wc[e];function kC(e,t){wc[e]||(wc[e]=t)}var qo,Lm=()=>qo,CC=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Mm(yc)?Qa(yc):void 0,arrayMethodsPlugin_:Mm(Rm)?Qa(Rm):void 0});function Dm(e,t){t&&(e.patchPlugin_=Qa(_c),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Zd(e){Yd(e),e.drafts_.forEach(IC),e.drafts_=null}function Yd(e){e===qo&&(qo=e.parent_)}var Nm=e=>qo=CC(qo,e);function IC(e){const t=e[In];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function xm(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[In].modified_&&(Zd(t),Ln(4)),dr(e)&&(e=Um(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[In].base_,e,t)}else e=Um(t,n);return AC(t,e,!0),Zd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==jd?e:void 0}function Um(e,t){if(vc(t))return t;const n=t[In];if(!n)return Sc(t,e.handledSet_,e);if(!bc(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);zm(n,e)}return n.copy_}function AC(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$d(t,n)}function Fm(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var bc=(e,t)=>e.scope_===t,TC=[];function Bm(e,t,n,r){const i=Ri(e),l=e.type_;if(r!==void 0&&Pi(i,r,l)===t){pc(i,r,n,l);return}if(!e.draftLocations_){const g=e.draftLocations_=new Map;Bo(i,(p,_)=>{if(ur(_)){const S=g.get(_)||[];S.push(p),g.set(_,S)}})}const d=e.draftLocations_.get(t)??TC;for(const g of d)pc(i,g,n,l)}function OC(e,t,n){e.callbacks_.push(function(i){var g;const l=t;if(!l||!bc(l,i))return;(g=i.mapSetPlugin_)==null||g.fixSetContents(l);const d=Wd(l);Bm(e,l.draft_??l,d,n),zm(l,i)})}function zm(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const l=i.getPath(e);l&&i.generatePatches_(e,l,t)}Fm(e)}}function PC(e,t,n){const{scope_:r}=e;if(ur(n)){const i=n[In];bc(i,r)&&i.callbacks_.push(function(){kc(e);const d=Wd(i);Bm(e,n,d,t)})}else dr(n)&&e.callbacks_.push(function(){const l=Ri(e);e.type_===3?l.has(n)&&Sc(n,r.handledSet_,r):Pi(l,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Sc(Pi(e.copy_,t,e.type_),r.handledSet_,r)})}function Sc(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ur(e)||t.has(e)||!dr(e)||vc(e)||(t.add(e),Bo(e,(r,i)=>{if(ur(i)){const l=i[In];if(bc(l,n)){const d=Wd(l);pc(e,r,d,e.type_),Fm(l)}}else dr(i)&&Sc(i,t,n)})),e}function RC(e,t){const n=Vo(e),r={type_:n?1:0,scope_:t?t.scope_:Lm(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,l=Ec;n&&(i=[r],l=Go);const{revoke:d,proxy:g}=Proxy.revocable(i,l);return r.draft_=g,r.revoke_=d,[g,r]}var Ec={get(e,t){if(t===In)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Ri(e);if(!zo(i,t,e.type_))return MC(e,i,t);const l=i[t];if(e.finalized_||!dr(l)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&bC(t))return l;if(l===Jd(e.base_,t)){kc(e);const d=e.type_===1?+t:t,g=Qd(e.scope_,l,e,d);return e.copy_[d]=g}return l},has(e,t){return t in Ri(e)},ownKeys(e){return Reflect.ownKeys(Ri(e))},set(e,t,n){const r=Vm(Ri(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Jd(Ri(e),t),l=i==null?void 0:i[In];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(wC(n,i)&&(n!==void 0||zo(e.base_,t,e.type_)))return!0;kc(e),Xd(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),PC(e,t,n)),!0},deleteProperty(e,t){return kc(e),Jd(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Xd(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ri(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[gc]:!0,[qd]:e.type_!==1||t!=="length",[hc]:r[hc],[Fo]:n[t]}},defineProperty(){Ln(11)},getPrototypeOf(e){return Ya(e.base_)},setPrototypeOf(){Ln(12)}},Go={};for(let e in Ec){let t=Ec[e];Go[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Go.deleteProperty=function(e,t){return Go.set.call(this,e,t,void 0)},Go.set=function(e,t,n){return Ec.set.call(this,e[0],t,n,e[0])};function Jd(e,t){const n=e[In];return(n?Ri(n):e)[t]}function MC(e,t,n){var i;const r=Vm(t,n);return r?Fo in r?r[Fo]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Vm(e,t){if(!(t in e))return;let n=Ya(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ya(n)}}function Xd(e){e.modified_||(e.modified_=!0,e.parent_&&Xd(e.parent_))}function kc(e){e.copy_||(e.assigned_=new Map,e.copy_=Kd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var LC=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(Xa(t)&&!Xa(n)){const l=n;n=t;const d=this;return function(p=l,..._){return d.produce(p,S=>n.call(this,S,..._))}}Xa(n)||Ln(6),r!==void 0&&!Xa(r)&&Ln(7);let i;if(dr(t)){const l=Nm(this),d=Qd(l,t,void 0);let g=!0;try{i=n(d),g=!1}finally{g?Zd(l):Yd(l)}return Dm(l,r),xm(i,l)}else if(!t||!Us(t)){if(i=n(t),i===void 0&&(i=t),i===jd&&(i=void 0),this.autoFreeze_&&$d(i,!0),r){const l=[],d=[];Qa(_c).generateReplacementPatches_(t,i,{patches_:l,inversePatches_:d}),r(l,d)}return i}else Ln(1,t)},this.produceWithPatches=(t,n)=>{if(Xa(t))return(d,...g)=>this.produceWithPatches(d,p=>t(p,...g));let r,i;return[this.produce(t,n,(d,g)=>{r=d,i=g}),r,i]},Gd(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Gd(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Gd(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){dr(e)||Ln(8),ur(e)&&(e=Hm(e));const t=Nm(this),n=Qd(t,e,void 0);return n[In].isManual_=!0,Yd(t),n}finishDraft(e,t){const n=e&&e[In];(!n||!n.isManual_)&&Ln(9);const{scope_:r}=n;return Dm(r,t),xm(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Qa(_c).applyPatches_;return ur(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Qd(e,t,n,r){const[i,l]=Ho(t)?Qa(yc).proxyMap_(t,n):jo(t)?Qa(yc).proxySet_(t,n):RC(t,n);return((n==null?void 0:n.scope_)??Lm()).drafts_.push(i),l.callbacks_=(n==null?void 0:n.callbacks_)??[],l.key_=r,n&&r!==void 0?OC(n,l,r):l.callbacks_.push(function(p){var S;(S=p.mapSetPlugin_)==null||S.fixSetContents(l);const{patchPlugin_:_}=p;l.modified_&&_&&_.generatePatches_(l,[],p)}),i}function Hm(e){return ur(e)||Ln(10,e),jm(e)}function jm(e){if(!dr(e)||vc(e))return e;const t=e[In];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Kd(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Kd(e,!0);return Bo(n,(i,l)=>{pc(n,i,jm(l))},r),t&&(t.finalized_=!1),n}function DC(){function t(b,c=[]){if(b.key_!==void 0){const u=b.parent_.copy_??b.parent_.base_,f=SC(Pi(u,b.key_)),s=Pi(u,b.key_);if(s===void 0||s!==b.draft_&&s!==b.base_&&s!==b.copy_||f!=null&&f.base_!==b.base_)return null;const o=b.parent_.type_===3;let a;if(o){const m=b.parent_;a=Array.from(m.drafts_.keys()).indexOf(b.key_)}else a=b.key_;if(!(o&&u.size>a||zo(u,a)))return null;c.push(a)}if(b.parent_)return t(b.parent_,c);c.reverse();try{n(b.copy_,c)}catch{return null}return c}function n(b,c){let u=b;for(let f=0;f<c.length-1;f++){const s=c[f];if(u=Pi(u,s),!Us(u)||u===null)throw new Error(`Cannot resolve path at '${c.join("/")}'`)}return u}const r="replace",i="add",l="remove";function d(b,c,u){if(b.scope_.processedForPatches_.has(b))return;b.scope_.processedForPatches_.add(b);const{patches_:f,inversePatches_:s}=u;switch(b.type_){case 0:case 2:return p(b,c,f,s);case 1:return g(b,c,f,s);case 3:return _(b,c,f,s)}}function g(b,c,u,f){let{base_:s,assigned_:o}=b,a=b.copy_;a.length<s.length&&([s,a]=[a,s],[u,f]=[f,u]);const m=b.allIndicesReassigned_===!0;for(let v=0;v<s.length;v++){const w=a[v],A=s[v];if((m||(o==null?void 0:o.get(v.toString())))&&w!==A){const O=w==null?void 0:w[In];if(O&&O.modified_)continue;const T=c.concat([v]);u.push({op:r,path:T,value:y(w)}),f.push({op:r,path:T,value:y(A)})}}for(let v=s.length;v<a.length;v++){const w=c.concat([v]);u.push({op:i,path:w,value:y(a[v])})}for(let v=a.length-1;s.length<=v;--v){const w=c.concat([v]);f.push({op:l,path:w})}}function p(b,c,u,f){const{base_:s,copy_:o,type_:a}=b;Bo(b.assigned_,(m,v)=>{const w=Pi(s,m,a),A=Pi(o,m,a),E=v?zo(s,m)?r:i:l;if(w===A&&E===r)return;const O=c.concat(m);u.push(E===l?{op:E,path:O}:{op:E,path:O,value:y(A)}),f.push(E===i?{op:l,path:O}:E===l?{op:i,path:O,value:y(w)}:{op:r,path:O,value:y(w)})})}function _(b,c,u,f){let{base_:s,copy_:o}=b,a=0;s.forEach(m=>{if(!o.has(m)){const v=c.concat([a]);u.push({op:l,path:v,value:m}),f.unshift({op:i,path:v,value:m})}a++}),a=0,o.forEach(m=>{if(!s.has(m)){const v=c.concat([a]);u.push({op:i,path:v,value:m}),f.unshift({op:l,path:v,value:m})}a++})}function S(b,c,u){const{patches_:f,inversePatches_:s}=u;f.push({op:r,path:[],value:c===jd?void 0:c}),s.push({op:r,path:[],value:b})}function k(b,c){return c.forEach(u=>{const{path:f,op:s}=u;let o=b;for(let w=0;w<f.length-1;w++){const A=Ja(o);let E=f[w];typeof E!="string"&&typeof E!="number"&&(E=""+E),(A===0||A===1)&&(E==="__proto__"||E===xo)&&Ln(19),Xa(o)&&E===Uo&&Ln(19),o=Pi(o,E),Us(o)||Ln(18,f.join("/"))}const a=Ja(o),m=h(u.value),v=f[f.length-1];switch(s){case r:switch(a){case 2:return o.set(v,m);case 3:Ln(16);default:return o[v]=m}case i:switch(a){case 1:return v==="-"?o.push(m):o.splice(v,0,m);case 2:return o.set(v,m);case 3:return o.add(m);default:return o[v]=m}case l:switch(a){case 1:return o.splice(v,1);case 2:return o.delete(v);case 3:return o.delete(u.value);default:return delete o[v]}default:Ln(17,s)}}),b}function h(b){if(!dr(b))return b;if(Vo(b))return b.map(h);if(Ho(b))return new Map(Array.from(b.entries()).map(([u,f])=>[u,h(f)]));if(jo(b))return new Set(Array.from(b).map(h));const c=Object.create(Ya(b));for(const u in b)c[u]=h(b[u]);return zo(b,No)&&(c[No]=b[No]),c}function y(b){return ur(b)?h(b):b}kC(_c,{applyPatches_:k,generatePatches_:d,generateReplacementPatches_:S,getPath:t})}var Wo=new LC,Ko=Wo.produce,qm=Wo.produceWithPatches.bind(Wo),Gm=Wo.applyPatches.bind(Wo);function NC(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function xC(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function UC(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Wm=e=>Array.isArray(e)?e:[e];function FC(e){const t=Array.isArray(e[0])?e[0]:e;return UC(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function BC(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var zC=class{constructor(e){this.value=e}deref(){return this.value}},VC=typeof WeakRef<"u"?WeakRef:zC,HC=0,Km=1;function Cc(){return{s:HC,v:void 0,o:null,p:null}}function Ic(e,t={}){let n=Cc();const{resultEqualityCheck:r}=t;let i,l=0;function d(){var k;let g=n;const{length:p}=arguments;for(let h=0,y=p;h<y;h++){const b=arguments[h];if(typeof b=="function"||typeof b=="object"&&b!==null){let c=g.o;c===null&&(g.o=c=new WeakMap);const u=c.get(b);u===void 0?(g=Cc(),c.set(b,g)):g=u}else{let c=g.p;c===null&&(g.p=c=new Map);const u=c.get(b);u===void 0?(g=Cc(),c.set(b,g)):g=u}}const _=g;let S;if(g.s===Km)S=g.v;else if(S=e.apply(null,arguments),l++,r){const h=((k=i==null?void 0:i.deref)==null?void 0:k.call(i))??i;h!=null&&r(h,S)&&(S=h,l!==0&&l--),i=typeof S=="object"&&S!==null||typeof S=="function"?new VC(S):S}return _.s=Km,_.v=S,S}return d.clearCache=()=>{n=Cc(),d.resetResultsCount()},d.resultsCount=()=>l,d.resetResultsCount=()=>{l=0},d}function jC(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let l=0,d=0,g,p={},_=i.pop();typeof _=="object"&&(p=_,_=i.pop()),NC(_,`createSelector expects an output function after the inputs, but received: [${typeof _}]`);const S={...n,...p},{memoize:k,memoizeOptions:h=[],argsMemoize:y=Ic,argsMemoizeOptions:b=[]}=S,c=Wm(h),u=Wm(b),f=FC(i),s=k(function(){return l++,_.apply(null,arguments)},...c),o=y(function(){d++;const m=BC(f,arguments);return g=s.apply(null,m),g},...u);return Object.assign(o,{resultFunc:_,memoizedResultFunc:s,dependencies:f,dependencyRecomputations:()=>d,resetDependencyRecomputations:()=>{d=0},lastResult:()=>g,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:k,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var ef=jC(Ic),qC=Object.assign((e,t=ef)=>{xC(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(l=>e[l]);return t(r,(...l)=>l.reduce((d,g,p)=>(d[n[p]]=g,d),{}))},{withTypes:()=>qC});function $m(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var GC=$m(),WC=$m,KC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fc:fc.apply(null,arguments)},$C=e=>e&&typeof e.match=="function";function Gr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(hi(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Tm(r)&&r.type===e,n}var Zm=class bl extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,bl.prototype)}static get[Symbol.species](){return bl}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new bl(...t[0].concat(this)):new bl(...t.concat(this))}};function Ym(e){return dr(e)?Ko(e,()=>{}):e}function Ac(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function ZC(e){return typeof e=="boolean"}var YC=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let d=new Zm;return n&&(ZC(n)?d.push(GC):d.push(WC(n.extraArgument))),d},Tc="RTK_autoBatch",$o=()=>e=>({payload:e,meta:{[Tc]:!0}}),Jm=e=>t=>{setTimeout(t,e)},JC=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,d=!1;const g=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Jm(10):e.type==="callback"?e.queueNotification:Jm(e.timeout),_=()=>{d=!1,l&&(l=!1,g.forEach(S=>S()))};return Object.assign({},r,{subscribe(S){const k=()=>i&&S(),h=r.subscribe(k);return g.add(S),()=>{h(),g.delete(S)}},dispatch(S){var k;try{return i=!((k=S==null?void 0:S.meta)!=null&&k[Tc]),l=!i,l&&(d||(d=!0,p(_))),r.dispatch(S)}finally{i=!0}}})},XC=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Zm(e);return r&&i.push(JC(typeof r=="object"?r:void 0)),i};function Xm(e){const t=YC(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:l=!0,preloadedState:d=void 0,enhancers:g=void 0}=e||{};let p;if(typeof n=="function")p=n;else if(ha(n))p=Hd(n);else throw new Error(hi(1));let _;typeof r=="function"?_=r(t):_=t();let S=fc;i&&(S=KC({trace:!1,...typeof i=="object"&&i}));const k=vC(..._),h=XC(k);let y=typeof g=="function"?g(h):h();const b=S(...y);return Am(p,d,b)}function Qm(e){const t={},n=[];let r;const i={addCase(l,d){const g=typeof l=="string"?l:l.type;if(!g)throw new Error(hi(28));if(g in t)throw new Error(hi(29));return t[g]=d,i},addAsyncThunk(l,d){return d.pending&&(t[l.pending.type]=d.pending),d.rejected&&(t[l.rejected.type]=d.rejected),d.fulfilled&&(t[l.fulfilled.type]=d.fulfilled),d.settled&&n.push({matcher:l.settled,reducer:d.settled}),i},addMatcher(l,d){return n.push({matcher:l,reducer:d}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function QC(e){return typeof e=="function"}function eI(e,t){let[n,r,i]=Qm(t),l;if(QC(e))l=()=>Ym(e());else{const g=Ym(e);l=()=>g}function d(g=l(),p){let _=[n[p.type],...r.filter(({matcher:S})=>S(p)).map(({reducer:S})=>S)];return _.filter(S=>!!S).length===0&&(_=[i]),_.reduce((S,k)=>{if(k)if(ur(S)){const y=k(S,p);return y===void 0?S:y}else{if(dr(S))return Ko(S,h=>k(h,p));{const h=k(S,p);if(h===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return S},g)}return d.getInitialState=l,d}var ev=(e,t)=>$C(e)?e.match(t):e(t);function Mi(...e){return t=>e.some(n=>ev(n,t))}function Zo(...e){return t=>e.every(n=>ev(n,t))}function Oc(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Yo(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function tf(...e){return e.length===0?t=>Oc(t,["pending"]):Yo(e)?Mi(...e.map(t=>t.pending)):tf()(e[0])}function Fs(...e){return e.length===0?t=>Oc(t,["rejected"]):Yo(e)?Mi(...e.map(t=>t.rejected)):Fs()(e[0])}function Pc(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?Zo(Fs(...e),t):Yo(e)?Zo(Fs(...e),t):Pc()(e[0])}function ga(...e){return e.length===0?t=>Oc(t,["fulfilled"]):Yo(e)?Mi(...e.map(t=>t.fulfilled)):ga()(e[0])}function nf(...e){return e.length===0?t=>Oc(t,["pending","fulfilled","rejected"]):Yo(e)?Mi(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):nf()(e[0])}var tI="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rf=(e=21)=>{let t="",n=e;for(;n--;)t+=tI[Math.random()*64|0];return t},nI=["name","message","stack","code"],af=class{constructor(e,t){Je(this,"_type");this.payload=e,this.meta=t}},tv=class{constructor(e,t){Je(this,"_type");this.payload=e,this.meta=t}},rI=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of nI)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},nv="External signal was aborted",rv=(()=>{function e(t,n,r){const i=Gr(t+"/fulfilled",(p,_,S,k)=>({payload:p,meta:{...k||{},arg:S,requestId:_,requestStatus:"fulfilled"}})),l=Gr(t+"/pending",(p,_,S)=>({payload:void 0,meta:{...S||{},arg:_,requestId:p,requestStatus:"pending"}})),d=Gr(t+"/rejected",(p,_,S,k,h)=>({payload:k,error:(r&&r.serializeError||rI)(p||"Rejected"),meta:{...h||{},arg:S,requestId:_,rejectedWithValue:!!k,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"}}));function g(p,{signal:_}={}){return(S,k,h)=>{const y=r!=null&&r.idGenerator?r.idGenerator(p):rf(),b=new AbortController;let c,u;function f(o){u=o,b.abort()}_&&(_.aborted?f(nv):_.addEventListener("abort",()=>f(nv),{once:!0}));const s=async function(){var m,v;let o;try{let w=(m=r==null?void 0:r.condition)==null?void 0:m.call(r,p,{getState:k,extra:h});if(aI(w)&&(w=await w),w===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((E,O)=>{c=()=>{O({name:"AbortError",message:u||"Aborted"})},b.signal.addEventListener("abort",c,{once:!0})});S(l(y,p,(v=r==null?void 0:r.getPendingMeta)==null?void 0:v.call(r,{requestId:y,arg:p},{getState:k,extra:h}))),o=await Promise.race([A,Promise.resolve(n(p,{dispatch:S,getState:k,extra:h,requestId:y,signal:b.signal,abort:f,rejectWithValue:(E,O)=>new af(E,O),fulfillWithValue:(E,O)=>new tv(E,O)})).then(E=>{if(E instanceof af)throw E;return E instanceof tv?i(E.payload,y,p,E.meta):i(E,y,p)})])}catch(w){o=w instanceof af?d(null,y,p,w.payload,w.meta):d(w,y,p)}finally{c&&b.signal.removeEventListener("abort",c)}return r&&!r.dispatchConditionRejection&&d.match(o)&&o.meta.condition||S(o),o}();return Object.assign(s,{abort:f,requestId:y,arg:p,unwrap(){return s.then(iI)}})}}return Object.assign(g,{pending:l,rejected:d,fulfilled:i,settled:Mi(d,i),typePrefix:t})}return e.withTypes=()=>e,e})();function iI(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function aI(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sI=Symbol.for("rtk-slice-createasyncthunk");function oI(e,t){return`${e}/${t}`}function lI({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[sI];return function(i){const{name:l,reducerPath:d=l}=i;if(!l)throw new Error(hi(11));const g=(typeof i.reducers=="function"?i.reducers(uI()):i.reducers)||{},p=Object.keys(g),_={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},S={addCase(a,m){const v=typeof a=="string"?a:a.type;if(!v)throw new Error(hi(12));if(v in _.sliceCaseReducersByType)throw new Error(hi(13));return _.sliceCaseReducersByType[v]=m,S},addMatcher(a,m){return _.sliceMatchers.push({matcher:a,reducer:m}),S},exposeAction(a,m){return _.actionCreators[a]=m,S},exposeCaseReducer(a,m){return _.sliceCaseReducersByName[a]=m,S}};p.forEach(a=>{const m=g[a],v={reducerName:a,type:oI(l,a),createNotation:typeof i.reducers=="function"};fI(m)?gI(v,m,S,t):dI(v,m,S)});function k(){const[a={},m=[],v=void 0]=typeof i.extraReducers=="function"?Qm(i.extraReducers):[i.extraReducers],w={...a,..._.sliceCaseReducersByType};return eI(i.initialState,A=>{for(let E in w)A.addCase(E,w[E]);for(let E of _.sliceMatchers)A.addMatcher(E.matcher,E.reducer);for(let E of m)A.addMatcher(E.matcher,E.reducer);v&&A.addDefaultCase(v)})}const h=a=>a,y=new Map,b=new WeakMap;let c;function u(a,m){return c||(c=k()),c(a,m)}function f(){return c||(c=k()),c.getInitialState()}function s(a,m=!1){function v(A){let E=A[a];return typeof E>"u"&&m&&(E=Ac(b,v,f)),E}function w(A=h){const E=Ac(y,m,()=>new WeakMap);return Ac(E,A,()=>{const O={};for(const[T,M]of Object.entries(i.selectors??{}))O[T]=cI(M,A,()=>Ac(b,A,f),m);return O})}return{reducerPath:a,getSelectors:w,get selectors(){return w(v)},selectSlice:v}}const o={name:l,reducer:u,actions:_.actionCreators,caseReducers:_.sliceCaseReducersByName,getInitialState:f,...s(d),injectInto(a,{reducerPath:m,...v}={}){const w=m??d;return a.inject({reducerPath:w,reducer:u},v),{...o,...s(w,!0)}}};return o}}function cI(e,t,n,r){function i(l,...d){let g=t(l);return typeof g>"u"&&r&&(g=n()),e(g,...d)}return i.unwrapped=e,i}var es=lI();function uI(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function dI({type:e,reducerName:t,createNotation:n},r,i){let l,d;if("reducer"in r){if(n&&!hI(r))throw new Error(hi(17));l=r.reducer,d=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,d?Gr(e,d):Gr(e))}function fI(e){return e._reducerDefinitionType==="asyncThunk"}function hI(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gI({type:e,reducerName:t},n,r,i){if(!i)throw new Error(hi(18));const{payloadCreator:l,fulfilled:d,pending:g,rejected:p,settled:_,options:S}=n,k=i(e,l,S);r.exposeAction(t,k),d&&r.addCase(k.fulfilled,d),g&&r.addCase(k.pending,g),p&&r.addCase(k.rejected,p),_&&r.addMatcher(k.settled,_),r.exposeCaseReducer(t,{fulfilled:d||Rc,pending:g||Rc,rejected:p||Rc,settled:_||Rc})}function Rc(){}function hi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var pI=class extends Error{constructor(t){super(t[0].message);Je(this,"issues");this.name="SchemaError",this.issues=t}},Li="uninitialized",sf="pending",Jo="fulfilled",Xo="rejected";function iv(e){return{status:e,isUninitialized:e===Li,isLoading:e===sf,isSuccess:e===Jo,isError:e===Xo}}var av=ha;function sv(e,t){if(e===t||!(av(e)&&av(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const l=Array.isArray(t)?[]:{};for(const d of n)l[d]=sv(e[d],t[d]),i&&(i=e[d]===l[d]);return i?e:l}function of(e,t,n){return e.reduce((r,i,l)=>(t(i,l)&&r.push(n(i,l)),r),[]).flat()}function mI(e){return new RegExp("(^|:)//").test(e)}function vI(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function lf(e){return e!=null}function ov(e){return[...(e==null?void 0:e.values())??[]].filter(lf)}function yI(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var _I=e=>e.replace(/\/$/,""),wI=e=>e.replace(/^\//,"");function bI(e,t){if(!e)return t;if(!t)return e;if(mI(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=_I(e),t=wI(t),`${e}${n}${t}`}function Mc(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var cf=()=>new Map,SI=e=>{const t=new AbortController;return setTimeout(()=>{const n="signal timed out",r="TimeoutError";t.abort(typeof DOMException<"u"?new DOMException(n,r):Object.assign(new Error(n),{name:r}))},e),t.signal},EI=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},lv=(...e)=>fetch(...e),kI=e=>e.status>=200&&e.status<=299,CI=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function cv(e){if(!ha(e))return e;const t={...e};for(const[n,r]of Object.entries(t))r===void 0&&delete t[n];return t}var II=e=>typeof e=="object"&&(ha(e)||Array.isArray(e)||typeof e.toJSON=="function");function Lc({baseUrl:e,prepareHeaders:t=k=>k,fetchFn:n=lv,paramsSerializer:r,isJsonContentType:i=CI,jsonContentType:l="application/json",jsonReplacer:d,timeout:g,responseHandler:p,validateStatus:_,...S}={}){return typeof fetch>"u"&&n===lv&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,y,b)=>{const{getState:c,extra:u,endpoint:f,forced:s,type:o}=y;let a,{url:m,headers:v=new Headers(S.headers),params:w=void 0,responseHandler:A=p??"json",validateStatus:E=_??kI,timeout:O=g,...T}=typeof h=="string"?{url:h}:h,M={...S,signal:O?EI(y.signal,SI(O)):y.signal,...T};v=new Headers(cv(v)),M.headers=await t(v,{getState:c,arg:h,extra:u,endpoint:f,forced:s,type:o,extraOptions:b})||v;const P=II(M.body);if(M.body!=null&&!P&&typeof M.body!="string"&&M.headers.delete("content-type"),!M.headers.has("content-type")&&P&&M.headers.set("content-type",l),P&&i(M.headers)&&(M.body=JSON.stringify(M.body,d)),M.headers.has("accept")||(A==="json"?M.headers.set("accept","application/json"):A==="text"&&M.headers.set("accept","text/plain, text/html, */*")),w){const U=~m.indexOf("?")?"&":"?",F=r?r(w):new URLSearchParams(cv(w));m+=U+F}m=bI(e,m);const x=new Request(m,M);a={request:new Request(m,M)};let D;try{D=await n(x)}catch(U){return{error:{status:(U instanceof Error||typeof DOMException<"u"&&U instanceof DOMException)&&U.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(U)},meta:a}}const V=D.clone();a.response=V;let j,L="";try{let U;if(await Promise.all([k(D,A).then(F=>j=F,F=>U=F),V.text().then(F=>L=F,()=>{})]),U)throw U}catch(U){return{error:{status:"PARSING_ERROR",originalStatus:D.status,data:L,error:String(U)},meta:a}}return E(D,j)?{data:j,meta:a}:{error:{status:D.status,data:j},meta:a}};async function k(h,y){if(typeof y=="function")return y(h);if(y==="content-type"&&(y=i(h.headers)?"json":"text"),y==="json"){const b=await h.text();return b.length?JSON.parse(b):null}return h.text()}}var uv=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Dc="__rtkq/",AI="online",TI="offline",dv="focused",uf=Gr(`${Dc}${dv}`),fv=Gr(`${Dc}un${dv}`),df=Gr(`${Dc}${AI}`),hv=Gr(`${Dc}${TI}`),Qo="query",gv="mutation",pv="infinitequery";function Nc(e){return e.type===Qo}function OI(e){return e.type===gv}function xc(e){return e.type===pv}function Uc(e){return Nc(e)||xc(e)}function ff(e,t,n,r,i,l){const d=PI(e)?e(t,n,r,i):e;return d?of(d,lf,g=>l(mv(g))):[]}function PI(e){return typeof e=="function"}function mv(e){return typeof e=="string"?{type:e}:e}function RI(e,t){return e.catch(t)}var Bs=(e,t)=>e.endpointDefinitions[t],el=Symbol("forceQueryFn"),hf=e=>typeof e[el]=="function";function MI({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:l,getInternalState:d}){const g=a=>{var m;return(m=d(a))==null?void 0:m.runningQueries},p=a=>{var m;return(m=d(a))==null?void 0:m.runningMutations},{unsubscribeQueryResult:_,removeMutationResult:S,updateSubscriptionOptions:k}=i.internalActions;return{buildInitiateQuery:f,buildInitiateInfiniteQuery:s,buildInitiateMutation:o,getRunningQueryThunk:h,getRunningMutationThunk:y,getRunningQueriesThunk:b,getRunningMutationsThunk:c};function h(a,m){return v=>{var E;const w=Bs(l,a),A=e({queryArgs:m,endpointDefinition:w,endpointName:a});return(E=g(v))==null?void 0:E.get(A)}}function y(a,m){return v=>{var w;return(w=p(v))==null?void 0:w.get(m)}}function b(){return a=>ov(g(a))}function c(){return a=>ov(p(a))}function u(a,m){const v=(w,{subscribe:A=!0,forceRefetch:E,subscriptionOptions:O,[el]:T,...M}={})=>(P,x)=>{var te;const I=e({queryArgs:w,endpointDefinition:m,endpointName:a});let D;const V={...M,type:Qo,subscribe:A,forceRefetch:E,subscriptionOptions:O,endpointName:a,originalArgs:w,queryCacheKey:I,[el]:T};if(Nc(m))D=t(V);else{const{direction:ie,initialPageParam:Se,refetchCachedPages:_e}=M;D=n({...V,direction:ie,initialPageParam:Se,refetchCachedPages:_e})}const j=i.endpoints[a].select(w),L=P(D),U=j(x()),{requestId:F,abort:W}=L,J=U.requestId!==F,$=(te=g(P))==null?void 0:te.get(I),ne=()=>j(x()),ae=Object.assign(T?L.then(ne):J&&!$?Promise.resolve(U):Promise.all([$,L]).then(ne),{arg:w,requestId:F,subscriptionOptions:O,queryCacheKey:I,abort:W,async unwrap(){const ie=await ae;if(ie.isError)throw ie.error;return ie.data},refetch:ie=>P(v(w,{subscribe:!1,forceRefetch:!0,...ie})),unsubscribe(){A&&P(_({queryCacheKey:I,requestId:F}))},updateSubscriptionOptions(ie){ae.subscriptionOptions=ie,P(k({endpointName:a,requestId:F,queryCacheKey:I,options:ie}))}});if(!$&&!J&&!T){const ie=g(P);ie.set(I,ae),ae.then(()=>{ie.delete(I)})}return ae};return v}function f(a,m){return u(a,m)}function s(a,m){return u(a,m)}function o(a){return(m,{track:v=!0,fixedCacheKey:w}={})=>(A,E)=>{const O=r({type:"mutation",endpointName:a,originalArgs:m,track:v,fixedCacheKey:w}),T=A(O),{requestId:M,abort:P,unwrap:x}=T,I=RI(T.unwrap().then(L=>({data:L})),L=>({error:L})),D=()=>{A(S({requestId:M,fixedCacheKey:w}))},V=Object.assign(I,{arg:T.arg,requestId:M,abort:P,unwrap:x,reset:D}),j=p(A);return j.set(M,V),V.then(()=>{j.delete(M)}),w&&(j.set(w,V),V.then(()=>{j.get(w)===V&&j.delete(w)})),V}}}var vv=class extends pI{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}},ts=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function ns(e,t,n,r){const i=await e["~standard"].validate(t);if(i.issues)throw new vv(i.issues,t,n,r);return i.value}function yv(e){return e}var tl=(e={})=>({...e,[Tc]:!0});function LI({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:l,selectors:d,onSchemaFailure:g,catchSchemaFailure:p,skipSchemaValidation:_}){const S=(T,M,P,x)=>(I,D)=>{const V=n[T],j=r({queryArgs:M,endpointDefinition:V,endpointName:T});if(I(i.internalActions.queryResultPatched({queryCacheKey:j,patches:P})),!x)return;const L=i.endpoints[T].select(M)(D()),U=ff(V.providesTags,L.data,void 0,M,{},l);I(i.internalActions.updateProvidedBy([{queryCacheKey:j,providedTags:U}]))};function k(T,M,P=0){const x=[M,...T];return P&&x.length>P?x.slice(0,-1):x}function h(T,M,P=0){const x=[...T,M];return P&&x.length>P?x.slice(1):x}const y=(T,M,P,x=!0)=>(I,D)=>{const j=i.endpoints[T].select(M)(D()),L={patches:[],inversePatches:[],undo:()=>I(i.util.patchQueryData(T,M,L.inversePatches,x))};if(j.status===Li)return L;let U;if("data"in j)if(dr(j.data)){const[F,W,J]=qm(j.data,P);L.patches.push(...W),L.inversePatches.push(...J),U=F}else U=P(j.data),L.patches.push({op:"replace",path:[],value:U}),L.inversePatches.push({op:"replace",path:[],value:j.data});return L.patches.length===0||I(i.util.patchQueryData(T,M,L.patches,x)),L},b=(T,M,P)=>x=>x(i.endpoints[T].initiate(M,{subscribe:!1,forceRefetch:!0,[el]:()=>({data:P})})),c=(T,M)=>T.query&&T[M]?T[M]:yv,u=async(T,{signal:M,abort:P,rejectWithValue:x,fulfillWithValue:I,dispatch:D,getState:V,extra:j})=>{var J,$;const L=n[T.endpointName],{metaSchema:U,skipSchemaValidation:F=_}=L,W=T.type===Qo;try{let ne=yv;const ae={signal:M,abort:P,dispatch:D,getState:V,extra:j,endpoint:T.endpointName,type:T.type,forced:W?f(T,V()):void 0,queryCacheKey:W?T.queryCacheKey:void 0},te=W?T[el]:void 0;let ie;const Se=async(Ne,et,Nt,oe)=>{if(et==null&&Ne.pages.length)return Promise.resolve({data:Ne});const Ie={queryArg:T.originalArgs,pageParam:et},Be=await _e(Ie),$e=oe?k:h;return{data:{pages:$e(Ne.pages,Be.data,Nt),pageParams:$e(Ne.pageParams,et,Nt)},meta:Be.meta}};async function _e(Ne){let et;const{extraOptions:Nt,argSchema:oe,rawResponseSchema:Ie,responseSchema:Be}=L;if(oe&&!ts(F,"arg")&&(Ne=await ns(oe,Ne,"argSchema",{})),te?et=te():L.query?(ne=c(L,"transformResponse"),et=await t(L.query(Ne),ae,Nt)):et=await L.queryFn(Ne,ae,Nt,Xe=>t(Xe,ae,Nt)),typeof process<"u",et.error)throw new uv(et.error,et.meta);let{data:$e}=et;Ie&&!ts(F,"rawResponse")&&($e=await ns(Ie,et.data,"rawResponseSchema",et.meta));let ke=await ne($e,et.meta,Ne);return Be&&!ts(F,"response")&&(ke=await ns(Be,ke,"responseSchema",et.meta)),{...et,data:ke}}if(W&&"infiniteQueryOptions"in L){const{infiniteQueryOptions:Ne}=L,{maxPages:et=1/0}=Ne,Nt=T.refetchCachedPages??Ne.refetchCachedPages??!0;let oe;const Ie={pages:[],pageParams:[]},Be=(J=d.selectQueryEntry(V(),T.queryCacheKey))==null?void 0:J.data,ke=f(T,V())&&!T.direction||!Be?Ie:Be;if("direction"in T&&T.direction&&ke.pages.length){const Xe=T.direction==="backward",Le=(Xe?_v:gf)(Ne,ke,T.originalArgs);oe=await Se(ke,Le,et,Xe)}else{const{initialPageParam:Xe=Ne.initialPageParam}=T,ge=(Be==null?void 0:Be.pageParams)??[],Le=ge[0]??Xe,Mt=ge.length;if(oe=await Se(ke,Le,et),te&&(oe={data:oe.data.pages[0]}),Nt)for(let Ct=1;Ct<Mt;Ct++){const Ut=gf(Ne,oe.data,T.originalArgs);oe=await Se(oe.data,Ut,et)}}ie=oe}else ie=await _e(T.originalArgs);return U&&!ts(F,"meta")&&ie.meta&&(ie.meta=await ns(U,ie.meta,"metaSchema",ie.meta)),I(ie.data,tl({fulfilledTimeStamp:Date.now(),baseQueryMeta:ie.meta}))}catch(ne){let ae=ne;if(ae instanceof uv){let te=c(L,"transformErrorResponse");const{rawErrorResponseSchema:ie,errorResponseSchema:Se}=L;let{value:_e,meta:Ne}=ae;try{ie&&!ts(F,"rawErrorResponse")&&(_e=await ns(ie,_e,"rawErrorResponseSchema",Ne)),U&&!ts(F,"meta")&&(Ne=await ns(U,Ne,"metaSchema",Ne));let et=await te(_e,Ne,T.originalArgs);return Se&&!ts(F,"errorResponse")&&(et=await ns(Se,et,"errorResponseSchema",Ne)),x(et,tl({baseQueryMeta:Ne}))}catch(et){ae=et}}try{if(ae instanceof vv){const te={endpoint:T.endpointName,arg:T.originalArgs,type:T.type,queryCacheKey:W?T.queryCacheKey:void 0};($=L.onSchemaFailure)==null||$.call(L,ae,te),g==null||g(ae,te);const{catchSchemaFailure:ie=p}=L;if(ie)return x(ie(ae,te),tl({baseQueryMeta:ae._bqMeta}))}}catch(te){ae=te}throw console.error(ae),ae}};function f(T,M){const P=d.selectQueryEntry(M,T.queryCacheKey),x=d.selectConfig(M).refetchOnMountOrArgChange,I=P==null?void 0:P.fulfilledTimeStamp,D=T.forceRefetch??(T.subscribe&&x);return D?D===!0||(Number(new Date)-Number(I))/1e3>=D:!1}const s=()=>rv(`${e}/executeQuery`,u,{getPendingMeta({arg:M}){const P=n[M.endpointName];return tl({startedTimeStamp:Date.now(),...xc(P)?{direction:M.direction}:{}})},condition(M,{getState:P}){var F;const x=P(),I=d.selectQueryEntry(x,M.queryCacheKey),D=I==null?void 0:I.fulfilledTimeStamp,V=M.originalArgs,j=I==null?void 0:I.originalArgs,L=n[M.endpointName],U=M.direction;return hf(M)?!0:(I==null?void 0:I.status)==="pending"?!1:f(M,x)||Nc(L)&&((F=L==null?void 0:L.forceRefetch)!=null&&F.call(L,{currentArg:V,previousArg:j,endpointState:I,state:x}))?!0:!(D&&!U)},dispatchConditionRejection:!0}),o=s(),a=s(),m=rv(`${e}/executeMutation`,u,{getPendingMeta(){return tl({startedTimeStamp:Date.now()})}}),v=T=>"force"in T,w=T=>"ifOlderThan"in T,A=(T,M,P={})=>(x,I)=>{const D=v(P)&&P.force,V=w(P)&&P.ifOlderThan,j=(U=!0)=>{const F={forceRefetch:U,subscribe:!1};return i.endpoints[T].initiate(M,F)},L=i.endpoints[T].select(M)(I());if(D)x(j());else if(V){const U=L==null?void 0:L.fulfilledTimeStamp;if(!U){x(j());return}(Number(new Date)-Number(new Date(U)))/1e3>=V&&x(j())}else x(j(!1))};function E(T){return M=>{var P,x;return((x=(P=M==null?void 0:M.meta)==null?void 0:P.arg)==null?void 0:x.endpointName)===T}}function O(T,M){return{matchPending:Zo(tf(T),E(M)),matchFulfilled:Zo(ga(T),E(M)),matchRejected:Zo(Fs(T),E(M))}}return{queryThunk:o,mutationThunk:m,infiniteQueryThunk:a,prefetch:A,updateQueryData:y,upsertQueryData:b,patchQueryData:S,buildMatchThunkActions:O}}function gf(e,{pages:t,pageParams:n},r){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function _v(e,{pages:t,pageParams:n},r){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n,r)}function wv(e,t,n,r){return ff(n[e.meta.arg.endpointName][t],ga(e)?e.payload:void 0,Pc(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function bv(e){return ur(e)?Hm(e):e}function Fc(e,t,n){const r=e[t];r&&n(r)}function nl(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Sv(e,t,n){const r=e[nl(t)];r&&n(r)}var Bc={};function DI({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:l,extractRehydrationInfo:d,hasRehydrationInfo:g},assertTagType:p,config:_}){const S=Gr(`${e}/resetApiState`);function k(E,O,T,M){var P;E[P=O.queryCacheKey]??(E[P]={status:Li,endpointName:O.endpointName}),Fc(E,O.queryCacheKey,x=>{x.status=sf,x.requestId=T&&x.requestId?x.requestId:M.requestId,O.originalArgs!==void 0&&(x.originalArgs=O.originalArgs),x.startedTimeStamp=M.startedTimeStamp;const I=i[M.arg.endpointName];xc(I)&&"direction"in O&&(x.direction=O.direction)})}function h(E,O,T,M){Fc(E,O.arg.queryCacheKey,P=>{if(P.requestId!==O.requestId&&!M)return;const{merge:x}=i[O.arg.endpointName];if(P.status=Jo,x)if(P.data!==void 0){const{fulfilledTimeStamp:I,arg:D,baseQueryMeta:V,requestId:j}=O;let L=Ko(P.data,U=>x(U,T,{arg:D.originalArgs,baseQueryMeta:V,fulfilledTimeStamp:I,requestId:j}));P.data=L}else P.data=T;else P.data=i[O.arg.endpointName].structuralSharing??!0?sv(ur(P.data)?_C(P.data):P.data,T):T;delete P.error,P.fulfilledTimeStamp=O.fulfilledTimeStamp})}const y=es({name:`${e}/queries`,initialState:Bc,reducers:{removeQueryResult:{reducer(E,{payload:{queryCacheKey:O}}){delete E[O]},prepare:$o()},cacheEntriesUpserted:{reducer(E,O){for(const T of O.payload){const{queryDescription:M,value:P}=T;k(E,M,!0,{arg:M,requestId:O.meta.requestId,startedTimeStamp:O.meta.timestamp}),h(E,{arg:M,requestId:O.meta.requestId,fulfilledTimeStamp:O.meta.timestamp,baseQueryMeta:{}},P,!0)}},prepare:E=>({payload:E.map(M=>{const{endpointName:P,arg:x,value:I}=M,D=i[P];return{queryDescription:{type:Qo,endpointName:P,originalArgs:M.arg,queryCacheKey:r({queryArgs:x,endpointDefinition:D,endpointName:P})},value:I}}),meta:{[Tc]:!0,requestId:rf(),timestamp:Date.now()}})},queryResultPatched:{reducer(E,{payload:{queryCacheKey:O,patches:T}}){Fc(E,O,M=>{M.data=Gm(M.data,T.concat())})},prepare:$o()}},extraReducers(E){E.addCase(t.pending,(O,{meta:T,meta:{arg:M}})=>{const P=hf(M);k(O,M,P,T)}).addCase(t.fulfilled,(O,{meta:T,payload:M})=>{const P=hf(T.arg);h(O,T,M,P)}).addCase(t.rejected,(O,{meta:{condition:T,arg:M,requestId:P},error:x,payload:I})=>{Fc(O,M.queryCacheKey,D=>{if(!T){if(D.requestId!==P)return;D.status=Xo,D.error=I??x}})}).addMatcher(g,(O,T)=>{const{queries:M}=d(T);for(const[P,x]of Object.entries(M))((x==null?void 0:x.status)===Jo||(x==null?void 0:x.status)===Xo)&&(O[P]=x)})}}),b=es({name:`${e}/mutations`,initialState:Bc,reducers:{removeMutationResult:{reducer(E,{payload:O}){const T=nl(O);T in E&&delete E[T]},prepare:$o()}},extraReducers(E){E.addCase(n.pending,(O,{meta:T,meta:{requestId:M,arg:P,startedTimeStamp:x}})=>{P.track&&(O[nl(T)]={requestId:M,status:sf,endpointName:P.endpointName,startedTimeStamp:x})}).addCase(n.fulfilled,(O,{payload:T,meta:M})=>{M.arg.track&&Sv(O,M,P=>{P.requestId===M.requestId&&(P.status=Jo,P.data=T,P.fulfilledTimeStamp=M.fulfilledTimeStamp)})}).addCase(n.rejected,(O,{payload:T,error:M,meta:P})=>{P.arg.track&&Sv(O,P,x=>{x.requestId===P.requestId&&(x.status=Xo,x.error=T??M)})}).addMatcher(g,(O,T)=>{const{mutations:M}=d(T);for(const[P,x]of Object.entries(M))((x==null?void 0:x.status)===Jo||(x==null?void 0:x.status)===Xo)&&P!==(x==null?void 0:x.requestId)&&(O[P]=x)})}}),c={tags:{},keys:{}},u=es({name:`${e}/invalidation`,initialState:c,reducers:{updateProvidedBy:{reducer(E,O){var T,M,P;for(const{queryCacheKey:x,providedTags:I}of O.payload){f(E,x);for(const{type:D,id:V}of I){const j=(M=(T=E.tags)[D]??(T[D]={}))[P=V||"__internal_without_id"]??(M[P]=[]);j.includes(x)||j.push(x)}E.keys[x]=I}},prepare:$o()}},extraReducers(E){E.addCase(y.actions.removeQueryResult,(O,{payload:{queryCacheKey:T}})=>{f(O,T)}).addMatcher(g,(O,T)=>{var P,x,I;const{provided:M}=d(T);for(const[D,V]of Object.entries(M.tags??{}))for(const[j,L]of Object.entries(V)){const U=(x=(P=O.tags)[D]??(P[D]={}))[I=j||"__internal_without_id"]??(x[I]=[]);for(const F of L)U.includes(F)||U.push(F),O.keys[F]=M.keys[F]}}).addMatcher(Mi(ga(t),Pc(t)),(O,T)=>{s(O,[T])}).addMatcher(y.actions.cacheEntriesUpserted.match,(O,T)=>{const M=T.payload.map(({queryDescription:P,value:x})=>({type:"UNKNOWN",payload:x,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:P}}));s(O,M)})}});function f(E,O){var M;const T=bv(E.keys[O]??[]);for(const P of T){const x=P.type,I=P.id??"__internal_without_id",D=(M=E.tags[x])==null?void 0:M[I];D&&(E.tags[x][I]=bv(D).filter(V=>V!==O))}delete E.keys[O]}function s(E,O){const T=O.map(M=>{const P=wv(M,"providesTags",i,p),{queryCacheKey:x}=M.meta.arg;return{queryCacheKey:x,providedTags:P}});u.caseReducers.updateProvidedBy(E,u.actions.updateProvidedBy(T))}const o=es({name:`${e}/subscriptions`,initialState:Bc,reducers:{updateSubscriptionOptions(E,O){},unsubscribeQueryResult(E,O){},internal_getRTKQSubscriptions(){}}}),a=es({name:`${e}/internalSubscriptions`,initialState:Bc,reducers:{subscriptionsUpdated:{reducer(E,O){return Gm(E,O.payload)},prepare:$o()}}}),m=es({name:`${e}/config`,initialState:{online:yI(),focused:vI(),middlewareRegistered:!1,..._},reducers:{middlewareRegistered(E,{payload:O}){E.middlewareRegistered=E.middlewareRegistered==="conflict"||l!==O?"conflict":!0}},extraReducers:E=>{E.addCase(df,O=>{O.online=!0}).addCase(hv,O=>{O.online=!1}).addCase(uf,O=>{O.focused=!0}).addCase(fv,O=>{O.focused=!1}).addMatcher(g,O=>({...O}))}}),v=Hd({queries:y.reducer,mutations:b.reducer,provided:u.reducer,subscriptions:a.reducer,config:m.reducer}),w=(E,O)=>v(S.match(O)?void 0:E,O),A={...m.actions,...y.actions,...o.actions,...a.actions,...b.actions,...u.actions,resetApiState:S};return{reducer:w,actions:A}}var pf=Symbol.for("RTKQ/skipToken"),Ev={status:Li},kv=Ko(Ev,()=>{}),Cv=Ko(Ev,()=>{});function NI({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=o=>kv,i=o=>Cv;return{buildQuerySelector:h,buildInfiniteQuerySelector:y,buildMutationSelector:b,selectInvalidatedBy:c,selectCachedArgsForQuery:u,selectApiState:d,selectQueries:g,selectMutations:_,selectQueryEntry:p,selectConfig:S};function l(o){return{...o,...iv(o.status)}}function d(o){return o[t]}function g(o){var a;return(a=d(o))==null?void 0:a.queries}function p(o,a){var m;return(m=g(o))==null?void 0:m[a]}function _(o){var a;return(a=d(o))==null?void 0:a.mutations}function S(o){var a;return(a=d(o))==null?void 0:a.config}function k(o,a,m){return v=>{if(v===pf)return n(r,m);const w=e({queryArgs:v,endpointDefinition:a,endpointName:o});return n(E=>p(E,w)??kv,m)}}function h(o,a){return k(o,a,l)}function y(o,a){const{infiniteQueryOptions:m}=a;function v(w){const A={...w,...iv(w.status)},{isLoading:E,isError:O,direction:T}=A,M=T==="forward",P=T==="backward";return{...A,hasNextPage:f(m,A.data,A.originalArgs),hasPreviousPage:s(m,A.data,A.originalArgs),isFetchingNextPage:E&&M,isFetchingPreviousPage:E&&P,isFetchNextPageError:O&&M,isFetchPreviousPageError:O&&P}}return k(o,a,v)}function b(){return o=>{let a;return typeof o=="object"?a=nl(o)??pf:a=o,n(a===pf?i:w=>{var A,E;return((E=(A=d(w))==null?void 0:A.mutations)==null?void 0:E[a])??Cv},l)}}function c(o,a){const m=o[t],v=new Set,w=of(a,lf,mv);for(const A of w){const E=m.provided.tags[A.type];if(!E)continue;let O=(A.id!==void 0?E[A.id]:Object.values(E).flat())??[];for(const T of O)v.add(T)}return Array.from(v.values()).flatMap(A=>{const E=m.queries[A];return E?{queryCacheKey:A,endpointName:E.endpointName,originalArgs:E.originalArgs}:[]})}function u(o,a){return of(Object.values(g(o)),m=>(m==null?void 0:m.endpointName)===a&&m.status!==Li,m=>m.originalArgs)}function f(o,a,m){return a?gf(o,a,m)!=null:!1}function s(o,a,m){return!a||!o.getPreviousPageParam?!1:_v(o,a,m)!=null}}var zs=WeakMap?new WeakMap:void 0,Iv=({endpointName:e,queryArgs:t})=>{let n="";const r=zs==null?void 0:zs.get(t);if(typeof r=="string")n=r;else{const i=JSON.stringify(t,(l,d)=>(d=typeof d=="bigint"?{$bigint:d.toString()}:d,d=ha(d)?Object.keys(d).sort().reduce((g,p)=>(g[p]=d[p],g),{}):d,d));ha(t)&&(zs==null||zs.set(t,i)),n=i}return`${e}(${n})`};function xI(...e){return function(n){const r=Ic(_=>{var S;return(S=n.extractRehydrationInfo)==null?void 0:S.call(n,_,{reducerPath:n.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(_){let S=Iv;if("serializeQueryArgs"in _.endpointDefinition){const k=_.endpointDefinition.serializeQueryArgs;S=h=>{const y=k(h);return typeof y=="string"?y:Iv({...h,queryArgs:y})}}else n.serializeQueryArgs&&(S=n.serializeQueryArgs);return S(_)},tagTypes:[...n.tagTypes||[]]},l={endpointDefinitions:{},batch(_){_()},apiUid:rf(),extractRehydrationInfo:r,hasRehydrationInfo:Ic(_=>r(_)!=null)},d={injectEndpoints:p,enhanceEndpoints({addTagTypes:_,endpoints:S}){if(_)for(const k of _)i.tagTypes.includes(k)||i.tagTypes.push(k);if(S)for(const[k,h]of Object.entries(S))typeof h=="function"?h(Bs(l,k)):Object.assign(Bs(l,k)||{},h);return d}},g=e.map(_=>_.init(d,i,l));function p(_){const S=_.endpoints({query:k=>({...k,type:Qo}),mutation:k=>({...k,type:gv}),infiniteQuery:k=>({...k,type:pv})});for(const[k,h]of Object.entries(S)){if(_.overrideExisting!==!0&&k in l.endpointDefinitions){if(_.overrideExisting==="throw")throw new Error(hi(39));continue}l.endpointDefinitions[k]=h;for(const y of g)y.injectEndpoint(k,h)}return d}return d.injectEndpoints({endpoints:n.endpoints})}}function Di(e,...t){return Object.assign(e,...t)}var UI=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const i=`${e.reducerPath}/subscriptions`;let l=null,d=null;const{updateSubscriptionOptions:g,unsubscribeQueryResult:p}=e.internalActions,_=(c,u)=>{if(g.match(u)){const{queryCacheKey:s,requestId:o,options:a}=u.payload,m=c.get(s);return m!=null&&m.has(o)&&m.set(o,a),!0}if(p.match(u)){const{queryCacheKey:s,requestId:o}=u.payload,a=c.get(s);return a&&a.delete(o),!0}if(e.internalActions.removeQueryResult.match(u))return c.delete(u.payload.queryCacheKey),!0;if(t.pending.match(u)){const{meta:{arg:s,requestId:o}}=u,a=Mc(c,s.queryCacheKey,cf);return s.subscribe&&a.set(o,s.subscriptionOptions??a.get(o)??{}),!0}let f=!1;if(t.rejected.match(u)){const{meta:{condition:s,arg:o,requestId:a}}=u;if(s&&o.subscribe){const m=Mc(c,o.queryCacheKey,cf);m.set(a,o.subscriptionOptions??m.get(a)??{}),f=!0}}return f},S=()=>n.currentSubscriptions,y={getSubscriptions:S,getSubscriptionCount:c=>{const f=S().get(c);return(f==null?void 0:f.size)??0},isRequestSubscribed:(c,u)=>{var s;const f=S();return!!((s=f==null?void 0:f.get(c))!=null&&s.get(u))}};function b(c){return JSON.parse(JSON.stringify(Object.fromEntries([...c].map(([u,f])=>[u,Object.fromEntries(f)]))))}return(c,u)=>{if(l||(l=b(n.currentSubscriptions)),e.util.resetApiState.match(c))return l={},n.currentSubscriptions.clear(),d=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,y];const f=_(n.currentSubscriptions,c);let s=!0;if(f){d||(d=setTimeout(()=>{const m=b(n.currentSubscriptions),[,v]=qm(l,()=>m);u.next(e.internalActions.subscriptionsUpdated(v)),l=m,d=null},500));const o=typeof c.type=="string"&&!!c.type.startsWith(i),a=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;s=!o&&!a}return[s,!1]}},FI=2147483647/1e3-1,BI=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:l,selectConfig:d},getRunningQueryThunk:g,mwApi:p})=>{const{removeQueryResult:_,unsubscribeQueryResult:S,cacheEntriesUpserted:k}=t.internalActions,h=Mi(S.match,n.fulfilled,n.rejected,k.match);function y(o){const a=i.currentSubscriptions.get(o);return a?a.size>0:!1}const b={};function c(o){var a;for(const m of o.values())(a=m==null?void 0:m.abort)==null||a.call(m)}const u=(o,a)=>{const m=a.getState(),v=d(m);if(h(o)){let w;if(k.match(o))w=o.payload.map(A=>A.queryDescription.queryCacheKey);else{const{queryCacheKey:A}=S.match(o)?o.payload:o.meta.arg;w=[A]}f(w,a,v)}if(t.util.resetApiState.match(o)){for(const[w,A]of Object.entries(b))A&&clearTimeout(A),delete b[w];c(i.runningQueries),c(i.runningMutations)}if(r.hasRehydrationInfo(o)){const{queries:w}=r.extractRehydrationInfo(o);f(Object.keys(w),a,v)}};function f(o,a,m){const v=a.getState();for(const w of o){const A=l(v,w);A!=null&&A.endpointName&&s(w,A.endpointName,a,m)}}function s(o,a,m,v){const w=Bs(r,a),A=(w==null?void 0:w.keepUnusedDataFor)??v.keepUnusedDataFor;if(A===1/0)return;const E=Math.max(0,Math.min(A,FI));if(!y(o)){const O=b[o];O&&clearTimeout(O),b[o]=setTimeout(()=>{if(!y(o)){const T=l(m.getState(),o);if(T!=null&&T.endpointName){const M=m.dispatch(g(T.endpointName,T.originalArgs));M==null||M.abort()}m.dispatch(_({queryCacheKey:o}))}delete b[o]},E*1e3)}}return u},Av=new Error("Promise never resolved before cacheEntryRemoved."),zI=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:l,selectors:{selectQueryEntry:d,selectApiState:g}})=>{const p=nf(r),_=nf(i),S=ga(r,i),k={},{removeQueryResult:h,removeMutationResult:y,cacheEntriesUpserted:b}=e.internalActions;function c(m,v,w){const A=k[m];A!=null&&A.valueResolved&&(A.valueResolved({data:v,meta:w}),delete A.valueResolved)}function u(m){const v=k[m];v&&(delete k[m],v.cacheEntryRemoved())}function f(m){const{arg:v,requestId:w}=m.meta,{endpointName:A,originalArgs:E}=v;return[A,E,w]}const s=(m,v,w)=>{const A=o(m);function E(O,T,M,P){const x=d(w,T),I=d(v.getState(),T);!x&&I&&a(O,P,T,v,M)}if(r.pending.match(m)){const[O,T,M]=f(m);E(O,A,M,T)}else if(b.match(m))for(const{queryDescription:O,value:T}of m.payload){const{endpointName:M,originalArgs:P,queryCacheKey:x}=O;E(M,x,m.meta.requestId,P),c(x,T,{})}else if(i.pending.match(m)){if(v.getState()[t].mutations[A]){const[T,M,P]=f(m);a(T,M,A,v,P)}}else if(S(m))c(A,m.payload,m.meta.baseQueryMeta);else if(h.match(m)||y.match(m))u(A);else if(e.util.resetApiState.match(m))for(const O of Object.keys(k))u(O)};function o(m){return p(m)?m.meta.arg.queryCacheKey:_(m)?m.meta.arg.fixedCacheKey??m.meta.requestId:h.match(m)?m.payload.queryCacheKey:y.match(m)?nl(m.payload):""}function a(m,v,w,A,E){const O=Bs(n,m),T=O==null?void 0:O.onCacheEntryAdded;if(!T)return;const M={},P=new Promise(L=>{M.cacheEntryRemoved=L}),x=Promise.race([new Promise(L=>{M.valueResolved=L}),P.then(()=>{throw Av})]);x.catch(()=>{}),k[w]=M;const I=e.endpoints[m].select(Uc(O)?v:w),D=A.dispatch((L,U,F)=>F),V={...A,getCacheEntry:()=>I(A.getState()),requestId:E,extra:D,updateCachedData:Uc(O)?L=>A.dispatch(e.util.updateQueryData(m,v,L)):void 0,cacheDataLoaded:x,cacheEntryRemoved:P},j=T(v,V);Promise.resolve(j).catch(L=>{if(L!==Av)throw L})}return s},VI=({api:e,context:{apiUid:t},reducerPath:n})=>(r,i)=>{e.util.resetApiState.match(r)&&i.dispatch(e.internalActions.middlewareRegistered(t))},HI=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:l,assertTagType:d,refetchQuery:g,internalState:p})=>{const{removeQueryResult:_}=l.internalActions,S=Mi(ga(r),Pc(r)),k=Mi(ga(i,r),Fs(i,r));let h=[],y=0;const b=(f,s)=>{(i.pending.match(f)||r.pending.match(f))&&y++,k(f)&&(y=Math.max(0,y-1)),S(f)?u(wv(f,"invalidatesTags",n,d),s):k(f)?u([],s):l.util.invalidateTags.match(f)&&u(ff(f.payload,void 0,void 0,void 0,void 0,d),s)};function c(){return y>0}function u(f,s){const o=s.getState(),a=o[e];if(h.push(...f),a.config.invalidationBehavior==="delayed"&&c())return;const m=h;if(h=[],m.length===0)return;const v=l.util.selectInvalidatedBy(o,m);t.batch(()=>{const w=Array.from(v.values());for(const{queryCacheKey:A}of w){const E=a.queries[A],O=Mc(p.currentSubscriptions,A,cf);E&&(O.size===0?s.dispatch(_({queryCacheKey:A})):E.status!==Li&&s.dispatch(g(E)))}})}return b},jI=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const{currentPolls:l,currentSubscriptions:d}=i,g=new Set;let p=null;const _=(u,f)=>{(n.internalActions.updateSubscriptionOptions.match(u)||n.internalActions.unsubscribeQueryResult.match(u))&&S(u.payload.queryCacheKey,f),(t.pending.match(u)||t.rejected.match(u)&&u.meta.condition)&&S(u.meta.arg.queryCacheKey,f),(t.fulfilled.match(u)||t.rejected.match(u)&&!u.meta.condition)&&k(u.meta.arg,f),n.util.resetApiState.match(u)&&(b(),p&&(clearTimeout(p),p=null),g.clear())};function S(u,f){g.add(u),p||(p=setTimeout(()=>{for(const s of g)h({queryCacheKey:s},f);g.clear(),p=null},0))}function k({queryCacheKey:u},f){const s=f.getState()[e],o=s.queries[u],a=d.get(u);if(!o||o.status===Li)return;const{lowestPollingInterval:m,skipPollingIfUnfocused:v}=c(a);if(!Number.isFinite(m))return;const w=l.get(u);w!=null&&w.timeout&&(clearTimeout(w.timeout),w.timeout=void 0);const A=Date.now()+m;l.set(u,{nextPollTimestamp:A,pollingInterval:m,timeout:setTimeout(()=>{(s.config.focused||!v)&&f.dispatch(r(o)),k({queryCacheKey:u},f)},m)})}function h({queryCacheKey:u},f){const o=f.getState()[e].queries[u],a=d.get(u);if(!o||o.status===Li)return;const{lowestPollingInterval:m}=c(a);if(!Number.isFinite(m)){y(u);return}const v=l.get(u),w=Date.now()+m;(!v||w<v.nextPollTimestamp)&&k({queryCacheKey:u},f)}function y(u){const f=l.get(u);f!=null&&f.timeout&&clearTimeout(f.timeout),l.delete(u)}function b(){for(const u of l.keys())y(u)}function c(u=new Map){let f=!1,s=Number.POSITIVE_INFINITY;for(const o of u.values())o.pollingInterval&&(s=Math.min(o.pollingInterval,s),f=o.skipPollingIfUnfocused||f);return{lowestPollingInterval:s,skipPollingIfUnfocused:f}}return _},qI=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=tf(n,r),l=Fs(n,r),d=ga(n,r),g={};return(_,S)=>{var k,h;if(i(_)){const{requestId:y,arg:{endpointName:b,originalArgs:c}}=_.meta,u=Bs(t,b),f=u==null?void 0:u.onQueryStarted;if(f){const s={},o=new Promise((w,A)=>{s.resolve=w,s.reject=A});o.catch(()=>{}),g[y]=s;const a=e.endpoints[b].select(Uc(u)?c:y),m=S.dispatch((w,A,E)=>E),v={...S,getCacheEntry:()=>a(S.getState()),requestId:y,extra:m,updateCachedData:Uc(u)?w=>S.dispatch(e.util.updateQueryData(b,c,w)):void 0,queryFulfilled:o};f(c,v)}}else if(d(_)){const{requestId:y,baseQueryMeta:b}=_.meta;(k=g[y])==null||k.resolve({data:_.payload,meta:b}),delete g[y]}else if(l(_)){const{requestId:y,rejectedWithValue:b,baseQueryMeta:c}=_.meta;(h=g[y])==null||h.reject({error:_.payload??_.error,isUnhandledError:!b,meta:c}),delete g[y]}}},GI=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:l}=n.internalActions,d=(p,_)=>{uf.match(p)&&g(_,"refetchOnFocus"),df.match(p)&&g(_,"refetchOnReconnect")};function g(p,_){const S=p.getState()[e],k=S.queries,h=i.currentSubscriptions;t.batch(()=>{for(const y of h.keys()){const b=k[y],c=h.get(y);if(!c||!b)continue;const u=[...c.values()];(u.some(s=>s[_]===!0)||u.every(s=>s[_]===void 0)&&S.config[_])&&(c.size===0?p.dispatch(l({queryCacheKey:y})):b.status!==Li&&p.dispatch(r(b)))}})}return d};function WI(e){const{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:l}=e,{apiUid:d}=i,g={invalidateTags:Gr(`${t}/invalidateTags`)},p=h=>h.type.startsWith(`${t}/`),_=[VI,BI,HI,jI,zI,qI];return{middleware:h=>{let y=!1;const b=l(h.dispatch),c={...e,internalState:b,refetchQuery:k,isThisApiSliceAction:p,mwApi:h},u=_.map(o=>o(c)),f=UI(c),s=GI(c);return o=>a=>{if(!Tm(a))return o(a);y||(y=!0,h.dispatch(r.internalActions.middlewareRegistered(d)));const m={...h,next:o},v=h.getState(),[w,A]=f(a,m,v);let E;if(w?E=o(a):E=A,h.getState()[t]&&(s(a,m,v),p(a)||i.hasRehydrationInfo(a)))for(const O of u)O(a,m,v);return E}},actions:g};function k(h){return e.api.endpoints[h.endpointName].initiate(h.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Tv=Symbol(),KI=({createSelector:e=ef}={})=>({name:Tv,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:l,keepUnusedDataFor:d,refetchOnMountOrArgChange:g,refetchOnFocus:p,refetchOnReconnect:_,invalidationBehavior:S,onSchemaFailure:k,catchSchemaFailure:h,skipSchemaValidation:y},b){DC();const c=te=>te;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:df,onOffline:hv,onFocus:uf,onFocusLost:fv},util:{}});const u=NI({serializeQueryArgs:l,reducerPath:i,createSelector:e}),{selectInvalidatedBy:f,selectCachedArgsForQuery:s,buildQuerySelector:o,buildInfiniteQuerySelector:a,buildMutationSelector:m}=u;Di(t.util,{selectInvalidatedBy:f,selectCachedArgsForQuery:s});const{queryThunk:v,infiniteQueryThunk:w,mutationThunk:A,patchQueryData:E,updateQueryData:O,upsertQueryData:T,prefetch:M,buildMatchThunkActions:P}=LI({baseQuery:n,reducerPath:i,context:b,api:t,serializeQueryArgs:l,assertTagType:c,selectors:u,onSchemaFailure:k,catchSchemaFailure:h,skipSchemaValidation:y}),{reducer:x,actions:I}=DI({context:b,queryThunk:v,mutationThunk:A,serializeQueryArgs:l,reducerPath:i,assertTagType:c,config:{refetchOnFocus:p,refetchOnReconnect:_,refetchOnMountOrArgChange:g,keepUnusedDataFor:d,reducerPath:i,invalidationBehavior:S}});Di(t.util,{patchQueryData:E,updateQueryData:O,upsertQueryData:T,prefetch:M,resetApiState:I.resetApiState,upsertQueryEntries:I.cacheEntriesUpserted}),Di(t.internalActions,I);const D=new WeakMap,V=te=>Mc(D,te,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:j,buildInitiateInfiniteQuery:L,buildInitiateMutation:U,getRunningMutationThunk:F,getRunningMutationsThunk:W,getRunningQueriesThunk:J,getRunningQueryThunk:$}=MI({queryThunk:v,mutationThunk:A,infiniteQueryThunk:w,api:t,serializeQueryArgs:l,context:b,getInternalState:V});Di(t.util,{getRunningMutationThunk:F,getRunningMutationsThunk:W,getRunningQueryThunk:$,getRunningQueriesThunk:J});const{middleware:ne,actions:ae}=WI({reducerPath:i,context:b,queryThunk:v,mutationThunk:A,infiniteQueryThunk:w,api:t,assertTagType:c,selectors:u,getRunningQueryThunk:$,getInternalState:V});return Di(t.util,ae),Di(t,{reducer:x,middleware:ne}),{name:Tv,injectEndpoint(te,ie){var Ne;const _e=(Ne=t.endpoints)[te]??(Ne[te]={});Nc(ie)&&Di(_e,{name:te,select:o(te,ie),initiate:j(te,ie)},P(v,te)),OI(ie)&&Di(_e,{name:te,select:m(),initiate:U(te)},P(A,te)),xc(ie)&&Di(_e,{name:te,select:a(te,ie),initiate:L(te,ie)},P(v,te))}}}}),zc=xI(KI());function Vc(e,t,n){return{error:e,message:t,status:n,type:"network_error"}}function $I(e,t){for(const n of t)if(e.has(n))return!0;return!1}function ZI(e,t){return t.some(n=>e.has(n))}function YI(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function JI(e,t){try{const n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname===r.pathname}catch{return!1}}function Ov(){return{getParamsByRedirect:e=>{const{url:t,timeout:n,successParams:r,errorParams:i,includeHashParams:l,resolveOnRedirectUri:d}=e;return!d&&(!(r!=null&&r.length)||!(i!=null&&i.length))?Promise.reject({type:"internal_error",message:"successParams and errorParams must be provided"}):d&&!(i!=null&&i.length)?Promise.reject({type:"internal_error",message:"errorParams must be provided"}):new Promise((g,p)=>{let _=null,S=null,k=()=>{},h=()=>{};h=()=>{!_&&!S||(S&&(clearTimeout(S),S=null),_&&(_.removeEventListener("load",k),_.parentNode&&_.remove(),_=null),k=()=>{},h=()=>{})},k=()=>{try{if(_&&_.contentWindow){const y=_.contentWindow.location.href;if(y==="about:blank"||!y)return;const{searchParams:b,hash:c}=new URL(y),u=l?new URLSearchParams([...b,...new URLSearchParams(c.slice(1))]):b,f=YI(u);if($I(u,i)){h(),g(f);return}if(d&&JI(y,d)){h(),g(f);return}if(ZI(u,r)){h(),g(f);return}}}catch{h(),p({type:"internal_error",message:"unexpected failure"})}};try{_=document.createElement("iframe"),_.style.display="none",_.addEventListener("load",k),document.body.appendChild(_),S=setTimeout(()=>{h(),p({type:"internal_error",message:"iframe timed out"})},n),_.src=t}catch{h(),p({type:"internal_error",message:"error setting up iframe"})}})}}}const XI={begin:"JOURNEY_START",continue:"JOURNEY_NEXT",terminate:"JOURNEY_TERMINATE",start:"DAVINCI_START",next:"DAVINCI_NEXT",flow:"DAVINCI_FLOW",success:"DAVINCI_SUCCESS",error:"DAVINCI_ERROR",failure:"DAVINCI_FAILURE",resume:"DAVINCI_RESUME",poll:"DAVINCI_POLL",authorize:"AUTHORIZE",par:"PAR",tokenExchange:"TOKEN_EXCHANGE",revoke:"REVOKE",userInfo:"USER_INFO",endSession:"END_SESSION"};function QI(e,{type:t,payload:n}){const r=Object.freeze({type:t,payload:n});return i=>{if(!Array.isArray(i))return e;const l=i.map(g=>g);function d(){const g=l.shift();return g&&g(e,r,d),e}return d()}}function Mr(e,t,n){let r={...e,url:new URL(e.url),headers:new Headers(e.headers)};const i={applyMiddleware(l){return r=QI(r,{type:XI[t],payload:n||{}})(l),i},async applyQuery(l){return await l({...r,url:r.url.toString()})}};return i}const eA=3e3,er=zc({reducerPath:"oidc",baseQuery:Lc(),endpoints:e=>({authorizeFetch:e.mutation({queryFn:async({url:t},n,r,i)=>{const{requestMiddleware:l,logger:d}=n.extra,g={url:t,method:"POST",credentials:"include",headers:{Accept:"application/json"}};d.debug("OIDC authorize API request",g);const p=await Mr(g,"authorize").applyMiddleware(l).applyQuery(async _=>await i(_));if(p.error){const _=p.error;if(_.data&&typeof _.data=="object"&&"details"in _.data&&Array.isArray(_.data.details)){d.debug("Error in authorize response",_);const S=_.data.details[0];return p.error={status:_.status,statusText:"AUTHORIZE_ERROR",data:{error:S.code,error_description:S.message,type:"auth_error"}},p}return d.error("Error in OAuth configuration",_),p.error={status:_.status,statusText:"CONFIGURATION_ERROR",data:{error:"CONFIGURATION_ERROR",error_description:"Configuration error. Please check your OAuth configuration, like clientId or allowed redirect URLs.",type:"network_error"}},p}return d.debug("OIDC Authorize fetch API response",p),p}}),par:e.mutation({queryFn:async({endpoint:t,body:n},r,i,l)=>{const{requestMiddleware:d,logger:g}=r.extra,p={url:t,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},credentials:"include",body:n};g.debug("OIDC PAR API raw request",p);const _=await Mr(p,"par").applyMiddleware(d).applyQuery(async k=>await l(k));if(g.debug("OIDC PAR API raw response",_),_.error){const k=_.error;let h;return k.data&&typeof k.data=="object"&&"error_description"in k.data&&typeof k.data.error_description=="string"?h=k.data.error_description:h=`Failed to push authorization request: ${k.status}`,g.error("PAR API error",h),_.error.data={error:"PAR_ERROR",error_description:h,type:"network_error"},_}const S=_.data;return!S||typeof S!="object"||!("request_uri"in S)||typeof S.request_uri!="string"||S.request_uri.length===0?{error:{status:"CUSTOM_ERROR",error:"PAR_ERROR",data:{error:"PAR_ERROR",error_description:"PAR response missing required 'request_uri' field",type:"network_error"}}}:_}}),sessionCheckIframe:e.mutation({queryFn:async({url:t,responseType:n},r)=>{const{requestMiddleware:i,logger:l}=r.extra,d=["error","error_description"],g={url:t};l.debug("OIDC session check iframe request",{responseType:n});const p=await Mr(g,"authorize").applyMiddleware(i).applyQuery(async _=>{try{const S=_.timeout??eA,k=n==="id_token"?{url:_.url,successParams:["id_token"],errorParams:d,includeHashParams:!0,timeout:S}:{url:_.url,resolveOnRedirectUri:new URL(_.url).searchParams.get("redirect_uri"),errorParams:d,successParams:[],timeout:S},h=await Ov().getParamsByRedirect(k);return"error"in h?{error:{status:400,statusText:"SESSION_CHECK_ERROR",data:{error:h.error,message:h.error_description??"An error occurred during session check",type:"auth_error"}}}:{data:{params:h}}}catch(S){const k=S instanceof Object&&"message"in S&&S.message==="iframe timed out";return{error:{status:400,statusText:"SESSION_CHECK_ERROR",data:{error:k?"iframe_timeout":"session_check_error",message:k?"Session check timed out waiting for iframe response":"An unexpected error occurred during session check",type:"network_error"}}}}});return"error"in p?l.error("Error in session check iframe",p):l.debug("OIDC session check iframe response received"),p}}),sessionCheckFetch:e.mutation({queryFn:async({url:t},n,r,i)=>{var S,k,h;const{requestMiddleware:l,logger:d}=n.extra,g={url:t,method:"GET",credentials:"include",headers:{Accept:"application/json"}};d.debug("OIDC session check fetch request");const p=await Mr(g,"authorize").applyMiddleware(l).applyQuery(async y=>await i(y)),_=p.error??(((k=(S=p.meta)==null?void 0:S.response)==null?void 0:k.status)!==204?(h=p.meta)==null?void 0:h.response:void 0);if(_){const y=typeof _.status=="number"&&_.status<500;return d.error("Error in session check fetch",_),{error:{status:_.status??"CUSTOM_ERROR",statusText:"SESSION_CHECK_ERROR",data:{error:y?"login_required":"session_check_error",message:y?"The request requires login.":"Session check failed.",type:y?"auth_error":"network_error"}}}}return d.debug("OIDC session check fetch response received"),{data:{status:204}}}}),authorizeIframe:e.mutation({queryFn:async({url:t},n)=>{const{requestMiddleware:r,logger:i}=n.extra,l={url:t,method:"POST",credentials:"include",headers:{Accept:"application/json"}};i.debug("OIDC authorize API request",l);const d=await Mr(l,"authorize").applyMiddleware(r).applyQuery(async p=>{try{return{data:await Ov().getParamsByRedirect({url:p.url,successParams:["code","state"],errorParams:["error","error_description"],timeout:p.timeout||3e3})}}catch(_){return{error:{status:400,message:"Unknown error occurred calling authorize endpoint",data:_}}}});if("error"in d)return i.error("Error in authorizeIframe response",d),{error:{status:400,statusText:"CONFIGURATION_ERROR",data:{error:"CONFIGURATION_ERROR",error_description:"Configuration error. Please check your OAuth configuration, like clientId or allowed redirect URLs.",type:"network_error"}}};const g=d.data;return"error"in g?(i.debug("Error in authorize response",d),{error:{status:400,statusText:"AUTHORIZE_ERROR",data:{error:g.error||"Unknown_Error",error_description:g.error_description||"An unknown error occurred during authorization",type:"auth_error"}}}):{data:d.data}}}),endSession:e.mutation({queryFn:async({idToken:t,endpoint:n,signOutRedirectUri:r},i,l,d)=>{const{requestMiddleware:g,logger:p}=i.extra,_=new URL(n);_.searchParams.append("id_token_hint",t),r&&_.searchParams.append("post_logout_redirect_uri",r);const S={url:_.toString(),method:"GET",credentials:"include",headers:{Accept:"application/json"}};p.debug("OIDC endSession API request",S);const k=await Mr(S,"endSession").applyMiddleware(g).applyQuery(async h=>await d(h));if(k.error){let h="An error occurred while trying to end the session";return k.error.status===400?h="Bad request to end session endpoint":k.error.status===401?h="Unauthorized request to end session endpoint":k.error.status===403&&(h="Forbidden request to end session endpoint"),p.error("End Session API error",h),k.error.data=Vc("End Session Error",h,k.error.status),k}return p.debug("OIDC endSession API response",k),k}}),exchange:e.mutation({queryFn:async({code:t,config:n,endpoint:r,verifier:i},l,d,g)=>{const{requestMiddleware:p,logger:_}=l.extra,{clientId:S,redirectUri:k}=n,h=new URLSearchParams({grant_type:"authorization_code",code:t,client_id:S,redirect_uri:k});i&&h.append("code_verifier",i);const y={url:r,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:h};_.debug("OIDC tokenExchange API request",y);const b=await Mr(y,"tokenExchange").applyMiddleware(p).applyQuery(async c=>await g(c));if(b.error){let c="An error occurred while exchanging the authorization code";return b.error.status===400?c="Bad request to token exchange endpoint":b.error.status===401?c="Unauthorized request to token exchange endpoint":b.error.status===403&&(c="Forbidden request to token exchange endpoint"),_.error("Token Exchange API error",c),b.error.data=Vc("Token Exchange Error",c,b.error.status),b}return _.debug("OIDC tokenExchange API response",b),b}}),revoke:e.mutation({queryFn:async({accessToken:t,clientId:n,endpoint:r},i,l,d)=>{const{requestMiddleware:g,logger:p}=i.extra,_=new URLSearchParams({...n?{client_id:n}:{},token:t}),S={url:r,method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:_};p.debug("OIDC revoke API request",S);const k=await Mr(S,"revoke").applyMiddleware(g).applyQuery(async h=>await d(h));if(k.error){let h="An error occurred while revoking the token";return k.error.status===400?h="Bad request to revoke endpoint":k.error.status===401?h="Unauthorized request to revoke endpoint":k.error.status===403&&(h="Forbidden request to revoke endpoint"),p.error("Token Revoke API error",h),k.error.data=Vc("Token Revoke Error",h,k.error.status),k}return p.debug("OIDC revoke API response",k),k}}),userInfo:e.mutation({queryFn:async({accessToken:t,endpoint:n},r,i,l)=>{const{requestMiddleware:d,logger:g}=r.extra,p={url:n,method:"GET",credentials:"include",headers:{Accept:"application/json",Authorization:`Bearer ${t}`}};g.debug("OIDC userInfo API request",p);const _=await Mr(p,"userInfo").applyMiddleware(d).applyQuery(async k=>await l(k));let S="An error occurred while fetching user info";return _.error?(_.error.status===400?S="Bad request to user info endpoint":_.error.status===401?S="Unauthorized request to user info endpoint":_.error.status===403&&(S="Forbidden request to user info endpoint"),g.error("User Info API error",S),_.error.data=Vc("User Info Error",S,_.error.status),_):(g.debug("OIDC userInfo API response",_),_)}})})}),tA=(e,t,n)=>Ro({try:()=>ym({clientId:e.clientId,serverConfig:{baseUrl:new URL(t.authorization_endpoint).origin},responseType:e.responseType||"code",redirectUri:e.redirectUri,scope:e.scope||"openid",...n}),catch:r=>({error:"PAR_PARAM_BUILD_ERROR",error_description:r instanceof Error?r.message:"Failed to generate auth URL values",type:"auth_error"})}),nA=e=>Oi({try:()=>fm(e),catch:t=>({error:"PAR_CHALLENGE_ERROR",error_description:t instanceof Error?t.message:"Failed to generate PKCE challenge",type:"auth_error"})}),rA=e=>Ro({try:()=>e(),catch:t=>({error:"PAR_STORAGE_ERROR",error_description:t instanceof Error?t.message:"Failed to store PAR session options",type:"unknown_error"})}),iA=(e,t,n,r,i)=>Ro({try:()=>_m({clientId:e.clientId,redirectUri:e.redirectUri,scope:e.scope||"openid",responseType:e.responseType||"code",...t,challenge:n,state:r,...i&&{prompt:i}}),catch:l=>({error:"PAR_PARAM_BUILD_ERROR",error_description:l instanceof Error?l.message:"Failed to build PAR parameters",type:"auth_error"})}),aA=(e,t)=>Oi({try:async()=>[await zd(e,{...t,prompt:"none"}),t],catch:n=>({error:"AuthorizationUrlError",error_description:n instanceof Error?n.message:"Error creating authorization URL",type:"auth_error"})}),sA=(e,t,n)=>Oi({try:()=>zd(t.authorization_endpoint,{...n}),catch:r=>({error:"AuthorizationUrlError",error_description:r instanceof Error?r.message:"Error creating authorization URL",type:"auth_error"})}).pipe(Yt(r=>tn({error:e.error,error_description:e.error_description,type:"auth_error",redirectUrl:r}))),oA=e=>{if(e.error)return tn(Cm(e.error));if(!lC(e.data))return tn({error:"PAR_ERROR",error_description:"PAR response missing required 'request_uri' field",type:"network_error"});const t=e.data;return wn({request_uri:t.request_uri,expires_in:t.expires_in??60})},Pv=(e,t,n)=>{const r=Cm(e);return km(e)&&"statusText"in e&&e.statusText==="CONFIGURATION_ERROR"?tn(r):sA(r,t,n)},lA=(e,t,n)=>Oi({try:()=>e.dispatch(er.endpoints.par.initiate({endpoint:t,body:n})),catch:r=>({error:"PAR_DISPATCH_ERROR",error_description:r instanceof Error?r.message:"Failed to dispatch PAR request",type:"network_error"})}),cA=(e,t,n,r)=>Ro({try:()=>hC({authorizationEndpoint:e,clientId:t,requestUri:n,prompt:r}),catch:i=>({error:"PAR_URL_BUILD_ERROR",error_description:i instanceof Error?i.message:"Failed to build PAR authorize URL",type:"unknown_error"})}),uA=(e,t,n,r)=>Oi({try:()=>e.dispatch(er.endpoints.authorizeFetch.initiate({url:t})),catch:i=>({error:"AUTHORIZE_DISPATCH_ERROR",error_description:i instanceof Error?i.message:"Failed to dispatch authorize request",type:"network_error"})}).pipe(Yt(({error:i,data:l})=>i?Pv(i,n,r):l!=null&&l.authorizeResponse?wn(l.authorizeResponse):tn({error:"Unknown_Error",error_description:"Response schema was not recognized",type:"unknown_error"}))),dA=(e,t,n,r)=>Oi({try:()=>e.dispatch(er.endpoints.authorizeIframe.initiate({url:t})),catch:i=>({error:"AUTHORIZE_DISPATCH_ERROR",error_description:i instanceof Error?i.message:"Failed to dispatch authorize request",type:"network_error"})}).pipe(Yt(({error:i,data:l})=>{if(i)return Pv(i,n,r);const d=l;return d!==void 0&&typeof d.code=="string"&&typeof d.state=="string"?wn(d):tn({error:"Unknown_Error",error_description:"Response data did not contain expected code and state fields",type:"unknown_error"})}));function Rv(e,t,n,r,i){if(t.responseMode==="pi.flow"){const{responseMode:l,...d}=t;return uA(r,e,n,d).pipe(fi(()=>i.debug("Received success response from authorize fetch endpoint")))}return dA(r,e,n,t).pipe(fi(()=>i.debug("Received success response from authorize iframe endpoint")))}function Mv(e,t,n,r,i){const l=e.pushed_authorization_request_endpoint;if(!l)return tn({error:"PAR_NOT_CONFIGURED",error_description:"PAR endpoint not found in server configuration",type:"wellknown_error"});const{prompt:d,...g}=i??{};return sm(function*(){const[p,_]=yield*tA(t,e,i),S=yield*nA(p.verifier),k=yield*iA(t,g,S,p.state,d),h=yield*lA(r,l,k),{request_uri:y,expires_in:b}=yield*oA(h);return b<30&&(yield*Ti(()=>n.warn(`PAR request_uri expires in ${b}s — authorize must complete before expiry`))),yield*rA(_),yield*cA(e.authorization_endpoint,t.clientId,y,d)})}function Lv(e,t,n,r,i,l){const d={clientId:t.clientId,redirectUri:t.redirectUri,scope:t.scope||"openid",responseType:t.responseType||"code",...i},g=Mv(e,t,n,r,i).pipe(fi(k=>n.debug("PAR authorize URL created",k)),Za(k=>Ti(()=>n.error(`PAR authorize failed [${k.type}]: ${k.error}`,k))),Yt(k=>Rv(k,d,e,r,n).pipe(Za(h=>Ti(()=>n.error("Error dispatching PAR authorize request",h)))))),[p,_]=cC(e,t,i),S=aA(p,_).pipe(fi(([k])=>n.debug("Authorize URL created",k)),Za(k=>Ti(()=>n.error("Error creating authorize URL",k))),Yt(([k,h])=>Rv(k,h,e,r,n)),Za(k=>Ti(()=>n.error("Error dispatching authorize request",k))));return l?g:S}function fA(e,t,n,r,i){return Ti(()=>{const l=aC(t.clientId,i==null?void 0:i.prefix);return{code:e,config:t,state:n,storedValues:l,endpoint:r}})}function hA(e,t){if(t){let n;return"status"in t?n="error"in t?t.error:JSON.stringify(t.data):"message"in t&&(n=t.message),tn({error:"Token Exchange failure",message:n||"Unknown error during token exchange",type:"exchange_error"})}return e?wn(e):tn({error:"Token Exchange failure",message:"No data returned from token exchange",type:"exchange_error"})}function gA({code:e,config:t,state:n,storedValues:r,endpoint:i}){return!r||r.state!==n?tn({error:"State mismatch",message:"The provided state does not match the stored state. This is likely due to passing in used, returned, authorize parameters.",type:"state_error"}):wn({code:e,config:t,endpoint:i,...r.verifier&&{verifier:r.verifier}})}function Dv({code:e,config:t,endpoint:n,log:r,state:i,store:l,options:d}){return fA(e,t,i,n,d).pipe(Yt(g=>gA(g)),fi(g=>r.debug("Token exchange values created",g)),Za(g=>Ti(()=>r.error("Error creating token exchange values",g))),Yt(g=>$a(()=>l.dispatch(er.endpoints.exchange.initiate(g)))),Yt(({data:g,error:p})=>hA(g,p)),fi(g=>r.debug("Token exchange response handled",g)),Za(g=>Ti(()=>r.error("Error handling token exchange response",g))),jr(g=>({accessToken:g.access_token,idToken:g.id_token,...g.refresh_token&&{refreshToken:g.refresh_token},...g.expires_in&&{expiresAt:g.expires_in},...g.expires_in&&{expiryTimestamp:Date.now()+g.expires_in*1e3}})))}const rl=zc({reducerPath:"wellknown",baseQuery:Lc(),endpoints:e=>({configuration:e.query({queryFn:async(t,n,r,i)=>await bm(t).applyQuery(async d=>await i(d))})})});function pa(e,t){return ef(rl.endpoints.configuration.select(e),r=>r==null?void 0:r.data)(t)}function pA({requestMiddleware:e,logger:t}){return Xm({reducer:{[er.reducerPath]:er.reducer,[rl.reducerPath]:rl.reducer},middleware:n=>n({thunk:{extraArgument:{requestMiddleware:e,logger:t}}}).concat(rl.middleware).concat(er.middleware)})}function Nv(e,t){if(t){let n="An error occurred while ending the session",r="unknown";return"message"in t&&t.message&&(n=t.message),"status"in t&&(r=t.status),{error:"End Session failure",message:n,type:"auth_error",status:r}}return null}function mf(e){let t;return e==="no_tokens"?t={error:"Token_Error",message:"Required for ending session and revoking access token",type:"state_error"}:e==="no_access_token"?t={error:"Token_Error",message:"No access token found in storage; required for revoking access token",type:"state_error"}:e==="no_id_token"?t={error:"Token_Error",message:"No ID token found in storage; required for ending session",type:"state_error"}:t={error:"Token_Error",message:"An unknown error occurred while creating the error object",type:"unknown_error"},t}function mA(e,t){return t?t-e<Date.now():!1}function vA({tokens:e,config:t,wellknown:n,store:r,storageClient:i}){return Bk($a(()=>r.dispatch(er.endpoints.endSession.initiate({idToken:e.idToken,endpoint:n.ping_end_idp_session_endpoint||n.end_session_endpoint,signOutRedirectUri:t.signOutRedirectUri}))).pipe(jr(({data:l,error:d})=>Nv(l,d))),$a(()=>r.dispatch(er.endpoints.revoke.initiate({accessToken:e.accessToken,clientId:t.clientId,endpoint:n.revocation_endpoint}))).pipe(jr(({data:l,error:d})=>Nv(l,d)))).pipe(Yt(([l,d])=>$a(()=>i.remove()).pipe(Yt(g=>l&&"error"in l||d&&"error"in d||g&&"error"in g?tn({error:"Inner request error",sessionResponse:l,revokeResponse:d,deleteResponse:g}):wn({sessionResponse:null,revokeResponse:null,deleteResponse:null})))))}new TextEncoder;const vf=new TextDecoder;function yA(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(e);const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function _A(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(typeof e=="string"?e:vf.decode(e),{alphabet:"base64url"});let t=e;t instanceof Uint8Array&&(t=vf.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/");try{return yA(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}const wA=e=>typeof e=="object"&&e!==null;function bA(e){if(!wA(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}class xv extends Error{constructor(n,r){var i;super(n,r);Je(this,"code","ERR_JOSE_GENERIC");this.name=this.constructor.name,(i=Error.captureStackTrace)==null||i.call(Error,this,this.constructor)}}Je(xv,"code","ERR_JOSE_GENERIC");class ma extends xv{constructor(){super(...arguments);Je(this,"code","ERR_JWT_INVALID")}}Je(ma,"code","ERR_JWT_INVALID");function SA(e){if(typeof e!="string")throw new ma("JWTs must use Compact JWS serialization, JWT must be a string");const{1:t,length:n}=e.split(".");if(n===5)throw new ma("Only JWTs using Compact JWS serialization can be decoded");if(n!==3)throw new ma("Invalid JWT");if(!t)throw new ma("JWTs must contain a payload");let r;try{r=_A(t)}catch{throw new ma("Failed to base64url decode the payload")}let i;try{i=JSON.parse(vf.decode(r))}catch{throw new ma("Failed to parse the decoded payload as JSON")}if(!bA(i))throw new ma("Invalid JWT Claims Set");return i}const Uv=e=>Oi({try:()=>e.get(),catch:()=>({error:"storage_error",message:"Failed to read tokens from storage",type:"argument_error"})}).pipe(jr(t=>t&&"idToken"in t?t.idToken:null)),Fv=(e,t,n)=>Oi({try:()=>e.dispatch(er.endpoints.sessionCheckIframe.initiate({url:t,responseType:n})),catch:r=>({error:"dispatch_error",message:r instanceof Error?r.message:"Failed to dispatch session check",type:"network_error"})}).pipe(Yt(r=>{var l,d,g;if("error"in r&&r.error){const p=r.error;return tn({error:((l=p.data)==null?void 0:l.error)??"session_check_error",message:((d=p.data)==null?void 0:d.message)??"An error occurred during session check",type:((g=p.data)==null?void 0:g.type)??"network_error"})}const{params:i}=r.data;return wn(i)})),EA=(e,t)=>Oi({try:()=>e.dispatch(er.endpoints.sessionCheckFetch.initiate({url:t})),catch:n=>({error:"dispatch_error",message:n instanceof Error?n.message:"Failed to dispatch session check",type:"network_error"})}).pipe(Yt(n=>{var r,i,l;if("error"in n&&n.error){const d=n.error;return tn({error:((r=d.data)==null?void 0:r.error)??"login_required",message:((i=d.data)==null?void 0:i.message)??"The request requires login.",type:((l=d.data)==null?void 0:l.type)??"auth_error"})}return im})),kA=(e,t,n,r)=>sm(function*(){if(e.state!==t)return yield*tn({error:"state_mismatch",message:"State parameter in response does not match the expected value",type:"auth_error"});const i=e.id_token;if(!i)return yield*tn({error:"no_id_token",message:"No id_token found in iframe response",type:"auth_error"});const l=yield*Ro({try:()=>SA(i),catch:()=>({error:"invalid_jwt",message:"Failed to decode id_token JWT payload",type:"auth_error"})});return l.nonce!==n?yield*tn({error:"nonce_mismatch",message:"Nonce in id_token does not match the expected value",type:"auth_error"}):r!==void 0&&l.sub!==r?yield*tn({error:"subject_mismatch",message:"Subject claim in id_token does not match the expected value",type:"auth_error"}):l}),CA=(e,t,n,r,i)=>{const l=new URLSearchParams({prompt:"none",response_type:"none",client_id:t.clientId,scope:(i==null?void 0:i.scope)??"openid",...r?{redirect_uri:r}:{},id_token_hint:n});return`${e}?${l.toString()}`},IA=(e,t,n,r,i)=>{const l=Bd(32),d=dm(),g=new URLSearchParams({prompt:"none",response_type:"id_token",client_id:t.clientId,redirect_uri:r,scope:(i==null?void 0:i.scope)??"openid",nonce:l,state:d,...n?{id_token_hint:n}:{}});return{url:`${e}?${g.toString()}`,nonce:l,state:d}},AA=(e,t,n,r,i,l)=>Uv(r).pipe(Yt(d=>{if(!d)return tn({error:"no_id_token_hint",message:"response_type=none requires a stored id_token; authenticate first",type:"argument_error"});const g=(l==null?void 0:l.redirectUri)??t.redirectUri,p=CA(e.authorization_endpoint,t,d,g,l);return g?Fv(n,p,"none"):EA(n,p)}),fi(()=>i.debug("Session check (none) completed successfully")),jr(()=>({responseType:"none"}))),TA=(e,t,n,r,i,l)=>{const d=(l==null?void 0:l.redirectUri)??t.redirectUri;return d?Uv(r).pipe(Yt(g=>{const{url:p,nonce:_,state:S}=IA(e.authorization_endpoint,t,g,d,l);return Fv(n,p,"id_token").pipe(Yt(k=>kA(k,S,_,l==null?void 0:l.subject)))}),fi(()=>i.debug("Session check (id_token) completed successfully")),jr(g=>({responseType:"id_token",claims:g}))):tn({error:"missing_redirect_uri",message:"redirect_uri is required for session check with response_type=id_token",type:"argument_error"})};async function OA({config:e,requestMiddleware:t,logger:n,storage:r}){var h;const i=Ed({level:(n==null?void 0:n.level)??e.log??"error",custom:n==null?void 0:n.custom}),l=e.oauthThreshold||30*1e3,d=Sm({type:(r==null?void 0:r.type)||"localStorage",name:(r==null?void 0:r.name)||e.clientId,prefix:(r==null?void 0:r.prefix)||"pic",...r}),g=pA({requestMiddleware:t,logger:i});if(!((h=e==null?void 0:e.serverConfig)!=null&&h.wellknown))return{error:"Requires a wellknown url initializing this factory.",type:"argument_error"};if(!(e!=null&&e.clientId))return{error:"Requires a clientId.",type:"argument_error"};const p=e.serverConfig.wellknown,{data:_,error:S}=await g.dispatch(rl.endpoints.configuration.initiate(p));if(S||!_)return i.error(`Error fetching wellknown config. Please check the URL: ${p}`),{error:`Failed to fetch well-known configuration from: ${p}`,type:"wellknown_error"};if(_!=null&&_.require_pushed_authorization_requests&&e.par===!1)return{error:"The authorization server requires Pushed Authorization Requests (PAR). Set config.par to true or omit it.",type:"argument_error"};const k=e.par??(_==null?void 0:_.require_pushed_authorization_requests)===!0;return{subscribe:g.subscribe,authorize:{url:async y=>{const b=g.getState(),c=pa(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};if(k){const f=await ua(Mv(c,e,i,g,y).pipe(Za(s=>Ti(()=>i.error(`PAR authorize.url() failed [${s.type}]: ${s.error}`,s)))));if(sc(f))return f.value;if(oc(f)){const s=f.cause.error;return{error:s.error,message:s.error_description,type:s.type}}else{const s=rc(f.cause)?f.cause.defect:void 0;return{error:"PAR authorization failure",message:s instanceof Error?s.message:String(s??"Unknown defect"),type:"auth_error"}}}const u={clientId:e.clientId,redirectUri:e.redirectUri,scope:e.scope||"openid",responseType:e.responseType||"code",...e.loginHint!==void 0&&{loginHint:e.loginHint},...e.nonce!==void 0&&{nonce:e.nonce},...e.display!==void 0&&{display:e.display},...e.prompt!==void 0&&{prompt:e.prompt},...e.uiLocales!==void 0&&{uiLocales:e.uiLocales},...e.acrValues!==void 0&&{acrValues:e.acrValues},...e.query!==void 0&&{query:e.query},...y};return zd(c.authorization_endpoint,u)},background:async y=>{const b=g.getState(),c=pa(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",error_description:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};const u=await ua(Lv(c,e,i,g,y,k));if(sc(u))return u.value;if(oc(u))return u.cause.error;{const f=rc(u.cause)?u.cause.defect:void 0;return{error:"Authorization failure",error_description:f instanceof Error?f.message:String(f??"Unknown defect"),type:"auth_error"}}}},token:{exchange:async(y,b,c)=>{const u=g.getState(),f=pa(p,u);if(!(f!=null&&f.token_endpoint))return{error:"Wellknown missing token endpoint",type:"wellknown_error"};const s=Dv({code:y,config:e,state:b,log:i,endpoint:f.token_endpoint,store:g,options:c}).pipe(fi(async a=>{await d.set(a)})),o=await ua(s);return Do(o,"Token Exchange failure","exchange_error")},get:async y=>{const{authorizeOptions:b,forceRenew:c,backgroundRenew:u,storageOptions:f}=y||{},s=g.getState(),o=pa(p,s);if(!(o!=null&&o.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",type:"wellknown_error"};const a=await d.get();if(a&&"error"in a)return{error:"Error occurred while retrieving tokens",message:"Please log the user out completely and try again",type:"state_error"};if(!c&&a&&!mA(l,a.expiryTimestamp))return a;if(!u&&!c)return a||{error:"No tokens found",type:"state_error"};const m=Lv(o,e,i,g,b,k).pipe(Yt(w=>Dv({code:w.code,config:e,log:i,state:w.state,endpoint:o.token_endpoint,store:g,options:f})),fi(async w=>{a&&"accessToken"in a&&(await g.dispatch(er.endpoints.revoke.initiate({accessToken:a.accessToken,clientId:e.clientId,endpoint:o.revocation_endpoint})),await d.remove()),await d.set(w)})),v=await ua(m);if(sc(v))return v.value;if(oc(v))return v.cause.error;{const w=rc(v.cause)?v.cause.defect:void 0;return{error:"Background token renewal failed",error_description:w instanceof Error?w.message:String(w??"Unknown defect"),type:"auth_error"}}},revoke:async()=>{const y=g.getState(),b=pa(p,y);if(!(b!=null&&b.revocation_endpoint))return{error:"Wellknown missing revocation endpoint",type:"wellknown_error"};const c=await d.get();if(!c||!("accessToken"in c))return{error:"No access token found",type:"state_error"};const u=$a(()=>g.dispatch(er.endpoints.revoke.initiate({accessToken:c.accessToken,clientId:e.clientId,endpoint:b.revocation_endpoint}))).pipe(jr(({error:s})=>{if(s){let o="An error occurred while revoking the token",a="unknown";return"message"in s&&s.message&&(o=s.message),"status"in s&&(a=s.status),{error:"Token revocation failure",message:o,type:"auth_error",status:a}}return null}),Yt(s=>$a(()=>d.remove()).pipe(Yt(o=>s&&"error"in s||o&&"error"in o?tn({error:"Inner request error",revokeResponse:s,deleteResponse:o}):wn({revokeResponse:null,deleteResponse:null}))))),f=await ua(u);return Do(f,"Token revocation failure","auth_error")}},user:{info:async()=>{const y=g.getState(),b=pa(p,y);if(!(b!=null&&b.userinfo_endpoint))return{error:"Wellknown missing userinfo endpoint",type:"wellknown_error"};const c=await d.get();if(!c||!("accessToken"in c))return{error:"No access token found",type:"auth_error"};const u=$a(()=>g.dispatch(er.endpoints.userInfo.initiate({accessToken:c.accessToken,endpoint:b.userinfo_endpoint}))).pipe(Yt(({data:s,error:o})=>{if(o){let a="An error occurred while fetching user info",m="unknown";return"message"in o&&o.message&&(a=o.message),"status"in o&&(m=o.status),tn({error:"User Info retrieval failure",message:a,type:"auth_error",status:m})}return wn(s)})),f=await ua(u);return Do(f,"User Info retrieval failure","auth_error")},logout:async()=>{const y=g.getState(),b=pa(p,y);if(!(b!=null&&b.end_session_endpoint))return{error:"Wellknown missing end session endpoint",type:"wellknown_error"};if(!(b!=null&&b.revocation_endpoint))return{error:"Wellknown missing revocation endpoint",type:"wellknown_error"};const c=await d.get();if(!c)return mf("no_tokens");if(!("accessToken"in c))return mf("no_access_token");if(!("idToken"in c))return mf("no_id_token");const u=await ua(vA({tokens:c,config:e,wellknown:b,store:g,storageClient:d}));return Do(u,"Logout_Failure","auth_error")},session:async y=>{const b=g.getState(),c=pa(p,b);if(!(c!=null&&c.authorization_endpoint))return{error:"Wellknown missing authorization endpoint",message:"Authorization endpoint not found in wellknown configuration",type:"wellknown_error"};const u=(y==null?void 0:y.responseType)==="id_token"?TA(c,e,g,d,i,y):AA(c,e,g,d,i,y),f=await ua(u);return Do(f,"Session check failure","unknown_error")}}}}const PA=Qn({clientId:se(),redirectUri:se().url({message:"`redirectUri` must be a full URL (this is generated by the Zod library)."}),scope:se().default("openid"),serverConfig:Qn({wellknown:se({error:e=>e.input===void 0?"Setting the `serverConfig.wellknown` is required (this is generated by the Zod library).":"`serverConfig.wellknown` must be a URL string (this is generated by the Zod library)."}).url({message:"`serverConfig.wellknown` must be a full URL (this is generated by the Zod library)."})}).strict()}).strict();function RA(e){const t=PA.parse(e),{subscribe:n,set:r}=or(null),i=OA({config:t}).then(l=>(r(l),l)).catch(l=>{const d={error:l instanceof Error?l.message:String(l),type:"unknown_error"};return r(d),d});return{subscribe:n,getClient:()=>i}}function MA(e){let t=!1;return{start:async()=>{try{await Promise.resolve().then(()=>VP),t=!0}catch(n){return console.error("error loading ping signals",n),{error:"Failed to load PingOne Signals SDK"}}try{await window._pingOneSignals.init(e),(e.behavioralDataCollection===!0||e.behavioralDataCollection==="true")&&window._pingOneSignals.resumeBehavioralData()}catch(n){return console.error("error initializing ping protect",n),{error:"Failed to initialize PingOne Signals SDK"}}},getData:async()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{return await window._pingOneSignals.getData()}catch(n){return console.error("error getting data from ping protect",n),{error:"Failed to get data from Protect"}}},pauseBehavioralData:()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{window._pingOneSignals.pauseBehavioralData()}catch(n){return console.error("error pausing behavioral data in ping protect",n),{error:"Failed to pause behavioral data in Protect"}}},resumeBehavioralData:()=>{if(!t)return{error:"PingOne Signals SDK is not initialized"};try{window._pingOneSignals.resumeBehavioralData()}catch(n){return console.error("error resuming behavioral data in ping protect",n),{error:"Failed to resume behavioral data in Protect"}}}}}const LA=eE({envId:se({error:e=>e.input===void 0?"Setting `envId` is required (this is generated by the Zod library).":"`envId` must be a string (this is generated by the Zod library)."}),waitForWindowLoad:ki().optional(),hubUrl:se().optional(),disableHub:ki().optional(),deviceAttributesToIgnore:Ip(se()).optional(),behavioralDataCollection:ki().optional(),disableTags:ki().optional(),externalIdentifiers:vd(se(),se()).optional(),universalDeviceIdentification:ki().optional(),agentIdentification:ki().optional(),agentTimeout:Ga().optional(),agentPort:Ga().optional(),consoleLogEnabled:ki().optional()}),DA=vd(se(),se()),NA=Io([LA,DA]),il=or(null);function xA(e){const t=NA.safeParse(e);if(!t.success)return Promise.resolve({error:t.error.message});const n=t.data,r=MA(n);return il.set(r),r.start()}function UA(){const e=sn(il);return e?e.getData():Promise.resolve({error:"Protect client not initialized"})}function FA(){const e=sn(il);return e?e.pauseBehavioralData():{error:"Protect client not initialized"}}function BA(){const e=sn(il);return e?e.resumeBehavioralData():{error:"Protect client not initialized"}}const va={subscribe:il.subscribe,start:xA,getData:UA,pauseBehavioralData:FA,resumeBehavioralData:BA},zA=/^#[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$/,Bv=/^(https?:\/\/[^\s"'<>{}\\]+|data:image\/[a-zA-Z+]+;base64,[a-zA-Z0-9+/=]+)$/,VA=/^[a-zA-Z0-9\s,'\-."]+$/,An=se().regex(zA).optional().catch(void 0),HA=Qn({primaryColor:An,primaryOffColor:An,secondaryColor:An,backgroundColor:An,linkColor:An,linkActiveColor:An,logo:se().regex(Bv).optional().catch(void 0),favicon:se().regex(Bv).optional().catch(void 0),logoHeight:Ga().optional(),fontFamily:se().regex(VA).optional().catch(void 0),buttonBorderRadius:Ga().optional(),cardBorderRadius:Ga().optional(),cardBgColor:An,inputBgColor:An,inputBorderColor:An,inputLabelColor:An,inputFocusRingColor:An,selectAccentColor:An,selectHoverBgColor:An,buttonFocusRingColor:An,inputTextColor:An,cardTextColor:An,bodyTextColor:An,buttonTextColor:An}).strict(),jA=Qn({dark:se().optional(),height:Ga().optional(),light:se().optional(),width:Ga().optional()}).strict();Qn({checksAndRadios:Io([Wa("animated"),Wa("standard")]).optional(),labels:Io([Wa("floating").optional(),Wa("stacked")]).optional(),showPassword:Io([Wa("none"),Wa("button"),Wa("checkbox")]).optional(),logo:jA.optional(),sections:Qn({header:ki().optional()}).strict().optional(),stage:Qn({icon:ki().optional()}).strict().optional(),theme:HA.optional()}).strict().partial();const yf={checksAndRadios:"animated",labels:"floating",showPassword:"button",logo:void 0,sections:void 0,stage:void 0,theme:void 0},Wr=or(yf);function qA(e){if(e){const t=r=>e[r],n=Object.keys(e).reduce((r,i)=>t(i)===void 0||t(i)===null?r:{...r,[i]:t(i)},yf);Wr.set(n)}else Wr.set(yf);return Wr}const _f={completed:!1,error:null,loading:!1,successful:!1,response:null};function GA(e){const t=or(_f);async function n(){if(!e)return t.set({completed:!0,error:{message:"OIDC client not configured",troubleshoot:null},loading:!1,successful:!1,response:null}),sn(t);const i=sn(e);if(!i)return t.set({completed:!0,error:{message:"OIDC client not ready",troubleshoot:null},loading:!1,successful:!1,response:null}),sn(t);if("error"in i)return t.set({completed:!0,error:{message:String(i.error),troubleshoot:null},loading:!1,successful:!1,response:null}),sn(t);const l=sn(t);if(l.loading||l.completed)return l;t.set({..._f,loading:!0});try{const d=await i.user.info();if("error"in d){const g=typeof d.message=="string"?d.message:String(d.error),p=typeof d.code=="number"?d.code:null;return t.set({completed:!0,error:{code:p,message:g,troubleshoot:null},loading:!1,successful:!1,response:null}),sn(t)}t.set({completed:!0,error:null,loading:!1,successful:!0,response:d})}catch(d){const g=d instanceof Error?d.message:"Unknown user info error";t.set({completed:!0,error:{message:g,troubleshoot:null},loading:!1,successful:!1,response:null})}return sn(t)}function r(){t.set(_f)}return{get:n,reset:r,subscribe:t.subscribe}}const Hc=Qn({journey:se().optional(),match:se().regex(/^(#\/service|\?journey)/,{message:"HREF string must start with `?journey` or `#/service`"}).array()}).optional(),zv=Qn({forgotPassword:Hc,forgotUsername:Hc,login:Hc,register:Hc}),jc={forgotPassword:{journey:"ResetPassword",match:["#/service/ResetPassword","?journey=ResetPassword"]},forgotUsername:{journey:"ForgottenUsername",match:["#/service/ForgottenUsername","?journey=ForgottenUsername"]},login:{journey:"Login",match:["#/service/Login","?journey","?journey=Login"]},register:{journey:"Registration",match:["#/service/Registration","?journey=Registration"]}};zv.parse(jc);const Vv=Object.keys(jc).map(e=>({...jc[e],key:e})),al=or(Vv);function WA(e){if(e){zv.parse(e);const t={...jc,...e},n=Object.keys(t);al.set(n.map(r=>({...t[r],key:r})))}else al.set(Vv);return al}function KA(e){if(!e.authorization_endpoint)return{error:"Well-known configuration conversion failed",message:"Well-known response is missing authorization_endpoint",type:"wellknown_error"};const n=new URL(e.authorization_endpoint).origin,i=new URL(e.issuer).pathname;if(!i.includes("/oauth2"))return{error:"Well-known configuration conversion failed",message:`Journey-client requires a ForgeRock AM issuer containing "/oauth2" in the path. Received issuer: ${e.issuer}. For PingOne or other OIDC providers, use davinci-client or oidc-client instead.`,type:"wellknown_error"};const l=i.replace("/oauth2","/json"),d=`${l}/authenticate`,g=`${l}/sessions/`;return{baseUrl:n,paths:{authenticate:d,sessions:g}}}const wf=es({name:"config",initialState:{serverConfig:{baseUrl:"",paths:{authenticate:"",sessions:""}}},reducers:{set(e,t){const n=KA(t.payload.wellknownResponse);"error"in n?e.error=n:(e.serverConfig=n,e.error=void 0)}}});function Hv(e,t,n){const i={...n,...t?{authIndexType:"service",authIndexValue:t}:void 0},l=Object.keys(i).length>0?`?${mm(i)}`:"",d=hm({endpoint:"authenticate",customPaths:e.paths});return pm(e.baseUrl,`${d}${l}`)}function $A(e,t){const n={...t},r=Object.keys(n).length>0?`?${mm(n)}`:"",i=hm({endpoint:"sessions",customPaths:e.paths});return pm(e.baseUrl,`${i}${r}`)}function jv(e){return{body:e?JSON.stringify(e.payload):void 0,credentials:"include",headers:new Headers({}),method:"POST"}}function ZA(){return{credentials:"include",headers:new Headers({}),method:"POST"}}const Vs=zc({reducerPath:"journeyReducer",baseQuery:Lc({baseUrl:"/",prepareHeaders:e=>(e.set("Accept","application/json"),e.set("Accept-API-Version","protocol=1.0,resource=2.1"),e.set("Content-Type","application/json"),e.set("X-Requested-With",iC),e)}),endpoints:e=>({start:e.mutation({queryFn:async(t,n,r,i)=>{const l=n.getState(),{serverConfig:d}=l.config;if(!d)throw new Error("Server configuration is missing.");const g=(t==null?void 0:t.query)||{},p=Hv(d,t==null?void 0:t.journey,g),_=jv(),{requestMiddleware:S}=n.extra;return await Mr({..._,url:p},"begin",{type:"service",tree:t==null?void 0:t.journey}).applyMiddleware(S).applyQuery(async h=>await i(h,n,n.extra))}}),next:e.mutation({queryFn:async({step:t,options:n},r,i,l)=>{const d=r.getState(),{serverConfig:g}=d.config;if(!g)throw new Error("Server configuration is missing.");const p=(n==null?void 0:n.query)||{},_=Hv(g,void 0,p),S=jv(t),{requestMiddleware:k}=r.extra;return await Mr({...S,url:_},"continue").applyMiddleware(k).applyQuery(async y=>await l(y,r,r.extra))}}),terminate:e.mutation({queryFn:async(t,n,r,i)=>{const l=n.getState(),{serverConfig:d}=l.config;if(!d)throw new Error("Server configuration is missing.");const g={...t==null?void 0:t.query,_action:"logout"},p=$A(d,g),_=ZA(),{requestMiddleware:S}=n.extra;return await Mr({..._,url:p},"terminate").applyMiddleware(S).applyQuery(async h=>await i(h,n,n.extra))}})})}),qc=zc({reducerPath:"wellknown",baseQuery:Lc(),endpoints:e=>({configuration:e.query({queryFn:async(t,n,r,i)=>await bm(t).applyQuery(async d=>await i(d))})})}),YA=Hd({[Vs.reducerPath]:Vs.reducer,[wf.name]:wf.reducer,[qc.reducerPath]:qc.reducer}),JA=({requestMiddleware:e,logger:t})=>Xm({reducer:YA,middleware:n=>n({serializableCheck:!0,thunk:{extraArgument:{requestMiddleware:e,logger:t}}}).concat(Vs.middleware).concat(qc.middleware)});function XA(e){return e.realm}function QA(e){return e.tokenId}function eT(e){return e.successUrl}function tT(e){return{payload:e,type:qr.LoginSuccess,getRealm:()=>XA(e),getSessionToken:()=>QA(e),getSuccessUrl:()=>eT(e)}}const qv={[nn.CannotContainCharacters]:(e,t)=>{const n=da(t,"forbiddenChars","");return`${e} must not contain following characters: "${n}"`},[nn.CannotContainDuplicates]:(e,t)=>{const n=da(t,"duplicateValue","");return`${e} must not contain duplicates: "${n}"`},[nn.CannotContainOthers]:(e,t)=>{const n=da(t,"disallowedFields","");return`${e} must not contain: "${n}"`},[nn.LeastCapitalLetters]:(e,t)=>{const n=da(t,"numCaps",0);return`${e} must contain at least ${n} capital ${cc(n,"letter")}`},[nn.LeastNumbers]:(e,t)=>{const n=da(t,"numNums",0);return`${e} must contain at least ${n} numeric ${cc(n,"value")}`},[nn.MatchRegexp]:e=>`${e} has failed the "MATCH_REGEXP" policy`,[nn.MaximumLength]:(e,t)=>{const n=da(t,"maxLength",0);return`${e} must be at most ${n} ${cc(n,"character")}`},[nn.MaximumNumber]:e=>`${e} has failed the "MAXIMUM_NUMBER_VALUE" policy`,[nn.MinimumLength]:(e,t)=>{const n=da(t,"minLength",0);return`${e} must be at least ${n} ${cc(n,"character")}`},[nn.MinimumNumber]:e=>`${e} has failed the "MINIMUM_NUMBER_VALUE" policy`,[nn.Required]:e=>`${e} is required`,[nn.Unique]:e=>`${e} must be unique`,[nn.UnknownPolicy]:(e,t)=>{const n=da(t,"policyRequirement","Unknown");return`${e}: Unknown policy requirement "${n}"`},[nn.ValidArrayItems]:e=>`${e} has failed the "VALID_ARRAY_ITEMS" policy`,[nn.ValidDate]:e=>`${e} has an invalid date`,[nn.ValidEmailAddress]:e=>`${e} has an invalid email address`,[nn.ValidNameFormat]:e=>`${e} has an invalid name format`,[nn.ValidNumber]:e=>`${e} has an invalid number`,[nn.ValidPhoneFormat]:e=>`${e} has an invalid phone number`,[nn.ValidQueryFilter]:e=>`${e} has failed the "VALID_QUERY_FILTER" policy`,[nn.ValidType]:e=>`${e} has failed the "VALID_TYPE" policy`};class nT{static parseErrors(t,n){const r=[];return t.detail&&t.detail.failedPolicyRequirements&&t.detail.failedPolicyRequirements.map(i=>{r.push.apply(r,[{detail:i,messages:this.parseFailedPolicyRequirement(i,n)}])}),r}static parseFailedPolicyRequirement(t,n){const r=[];return t.policyRequirements.map(i=>{r.push(this.parsePolicyRequirement(t.property,i,n))}),r}static parsePolicyRequirement(t,n,r={}){let i;if(typeof n=="string")try{const _=JSON.parse(n);i=typeof _=="string"?{policyRequirement:_}:_}catch{i={policyRequirement:n}}else i={...n};const l=i.policyRequirement,d=r[l]||qv[l]||qv[nn.UnknownPolicy],g=i.params?{...i.params,policyRequirement:l}:{policyRequirement:l};return d(t,g)}}function rT(e){return Number(e.code)}function iT(e){return e.detail}function aT(e){return e.message}function sT(e,t){return nT.parseErrors(e,t)}function oT(e){return e.reason}function lT(e){return{payload:e,type:qr.LoginFailure,getCode:()=>rT(e),getDetail:()=>iT(e),getMessage:()=>aT(e),getProcessedMessage:t=>sT(e,t),getReason:()=>oT(e)}}class fn{constructor(t){Je(this,"payload");this.payload=t}getType(){return this.payload.type}getInputValue(t=0){return this.getArrayElement(this.payload.input,t).value}setInputValue(t,n=0){this.getArrayElement(this.payload.input,n).value=t}getOutputValue(t=0){return this.getArrayElement(this.payload.output,t).value}getOutputByName(t,n){const r=this.payload.output.find(i=>i.name===t);return r?r.value:n}getArrayElement(t,n=0){if(t===void 0)throw new Error(`No NameValue array was provided to search (selector ${n})`);if(typeof n=="number"){if(n<0||n>t.length-1)throw new Error(`Selector index ${n} is out of range`);return t[n]}if(typeof n=="string"){const r=t.find(i=>i.name===n);if(!r)throw new Error(`Missing callback input entry "${n}"`);return r}if(typeof n=="object"&&n.test&&n.exec){const r=t.find(i=>n.test(i.name));if(!r)throw new Error(`Missing callback input entry "${n}"`);return r}throw new Error("Invalid selector value type")}}class bf extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getName(){return this.getOutputByName("name","")}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `AttributeInputCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}setValue(n){this.setInputValue(n)}}class cT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getDefaultChoice(){return this.getOutputByName("defaultChoice",0)}getChoices(){return this.getOutputByName("choices",[])}setChoiceIndex(n){const r=this.getChoices().length;if(n<0||n>r-1)throw new Error(`${n} is out of bounds`);this.setInputValue(n)}setChoiceValue(n){const r=this.getChoices().indexOf(n);if(r===-1)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r)}}class uT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getDefaultOption(){return Number(this.getOutputByName("defaultOption",0))}getMessageType(){return Number(this.getOutputByName("messageType",0))}getOptions(){return this.getOutputByName("options",[])}getOptionType(){return Number(this.getOutputByName("optionType",0))}getPrompt(){return this.getOutputByName("prompt","")}setOptionIndex(n){const r=this.getOptions();if(!Number.isInteger(n)||n<0||n>=r.length)throw new Error(`"${n}" is not a valid choice (0-${Math.max(0,r.length-1)})`);this.setInputValue(n)}setOptionValue(n){const r=this.getOptions().indexOf(n);if(r===-1)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r)}}class dT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}isMetadataRequired(){return this.getOutputByName("metadata",!1)}isLocationRequired(){return this.getOutputByName("location",!1)}setProfile(n){this.setInputValue(JSON.stringify(n))}}class fT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}}class hT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getPredefinedQuestions(){return this.getOutputByName("predefinedQuestions",[])}isAllowedUserDefinedQuestions(){return this.getOutputByName("allowUserDefinedQuestions",!1)}setQuestion(n){this.setValue("question",n)}setAnswer(n){this.setValue("answer",n)}setValue(n,r){if(!this.payload.input)throw new Error("KBA payload is missing input");const i=this.payload.input.find(l=>l.name.endsWith(n));if(!i)throw new Error(`No input has name ending in "${n}"`);i.value=r}}class gT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getData(){return this.getOutputByName("data",{})}}class pT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}setName(n){this.setInputValue(n)}}class mT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getFailedPolicies(){return this.getOutputByName("failedPolicies",[])}getPolicies(){return this.getOutputByName("policies",[])}getPrompt(){return this.getOutputByName("prompt","")}setPassword(n){this.setInputValue(n)}}class vT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPauseBehavioralData(){return this.getOutputByName("pauseBehavioralData",!1)}setData(n){this.setInputValue(n,/signals/)}setClientError(n){this.setInputValue(n,/clientError/)}}class yT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getConfig(){const n=this.getOutputByName("signalsInitializationOptions",void 0);return n!==null&&typeof n=="object"&&!Array.isArray(n)?n:{envId:this.getOutputByName("envId",""),consoleLogEnabled:this.getOutputByName("consoleLogEnabled",!1),deviceAttributesToIgnore:this.getOutputByName("deviceAttributesToIgnore",[]),customHost:this.getOutputByName("customHost",""),lazyMetadata:this.getOutputByName("lazyMetadata",!1),behavioralDataCollection:this.getOutputByName("behavioralDataCollection",!0),deviceKeyRsyncIntervals:this.getOutputByName("deviceKeyRsyncIntervals",14),enableTrust:this.getOutputByName("enableTrust",!1),disableTags:this.getOutputByName("disableTags",!1),disableHub:this.getOutputByName("disableHub",!1)}}setClientError(n){this.setInputValue(n,/clientError/)}}class _T extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}getWaitTime(){return Number(this.getOutputByName("waitTime",0))}}class wT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}setResult(n){this.setInputValue(n)}}class bT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}getApiUrl(){return this.getOutputByName("captchaApiUri","")}getElementClass(){return this.getOutputByName("captchaDivClass","")}setResult(n){this.setInputValue(n)}setClientError(n){this.setInputValue(n,"IDToken1clientError")}setPayload(n){this.setInputValue(n,"IDToken1payload")}setAction(n){this.setInputValue(n,"IDToken1action")}}class ST extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getRedirectUrl(){return this.getOutputByName("redirectUrl","")}}class ET extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getProviders(){return this.getOutputByName("providers",[])}setProvider(n){const r=this.getProviders().find(i=>i.provider===n);if(!r)throw new Error(`"${n}" is not a valid choice`);this.setInputValue(r.provider)}}class Gv extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getMessage(){return this.getOutputByName("message","")}getMessageType(){return this.getOutputByName("messageType","")}}class kT extends Gv{constructor(n){super(n);Je(this,"payload");this.payload=n}}class CT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getTerms(){return this.getOutputByName("terms","")}getVersion(){return this.getOutputByName("version","")}getCreateDate(){const n=this.getOutputByName("createDate",""),r=new Date(n);return Number.isNaN(r.getTime())?null:r}setAccepted(n=!0){this.setInputValue(n)}}class IT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}setInput(n){this.setInputValue(n)}}class AT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreatePasswordCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}setPassword(n){this.setInputValue(n)}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}}class TT extends fn{constructor(n){super(n);Je(this,"payload");this.payload=n}getPrompt(){return this.getOutputByName("prompt","")}getFailedPolicies(){const n=this.getOutputByName("failedPolicies",[]);try{return n.map(r=>JSON.parse(r))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreateUsernameCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}isRequired(){return this.getOutputByName("required",!1)}setName(n){this.setInputValue(n)}setValidateOnly(n){this.setInputValue(n,/validateOnly/)}}function Wv(e){switch(e.type){case fe.BooleanAttributeInputCallback:return new bf(e);case fe.ChoiceCallback:return new cT(e);case fe.ConfirmationCallback:return new uT(e);case fe.DeviceProfileCallback:return new dT(e);case fe.HiddenValueCallback:return new fT(e);case fe.KbaCreateCallback:return new hT(e);case fe.MetadataCallback:return new gT(e);case fe.NameCallback:return new pT(e);case fe.NumberAttributeInputCallback:return new bf(e);case fe.PasswordCallback:return new mT(e);case fe.PingOneProtectEvaluationCallback:return new vT(e);case fe.PingOneProtectInitializeCallback:return new yT(e);case fe.PollingWaitCallback:return new _T(e);case fe.ReCaptchaCallback:return new wT(e);case fe.ReCaptchaEnterpriseCallback:return new bT(e);case fe.RedirectCallback:return new ST(e);case fe.SelectIdPCallback:return new ET(e);case fe.StringAttributeInputCallback:return new bf(e);case fe.SuspendedTextOutputCallback:return new kT(e);case fe.TermsAndConditionsCallback:return new CT(e);case fe.TextInputCallback:return new IT(e);case fe.TextOutputCallback:return new Gv(e);case fe.ValidatedCreatePasswordCallback:return new AT(e);case fe.ValidatedCreateUsernameCallback:return new TT(e);default:return new fn(e)}}function Sf(e,t){return e.filter(n=>n.getType()===t)}function OT(e,t){const n=Sf(e,t);if(n.length!==1)throw new Error(`Expected 1 callback of type "${t}", but found ${n.length}`);return n[0]}function PT(e,t,n){const r=Sf(e,t);if(r.length!==1)throw new Error(`Expected 1 callback of type "${t}", but found ${r.length}`);r[0].setInputValue(n)}function RT(e){return e.description}function MT(e){return e.header}function LT(e){return e.stage}function DT(e,t){return e.map(r=>Wv(r)||Wv(r))}function NT(e,t){const n=typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e)),r=n.callbacks?DT(n.callbacks):[];return{payload:n,callbacks:r,type:qr.Step,getCallbackOfType:i=>OT(r,i),getCallbacksOfType:i=>Sf(r,i),setCallbackValue:(i,l)=>PT(r,i,l),getDescription:()=>RT(e),getHeader:()=>MT(e),getStage:()=>LT(e)}}function Ef(e){let t;switch(e.authId?t=qr.Step:e.successUrl?t=qr.LoginSuccess:t=qr.LoginFailure,t){case qr.LoginSuccess:return tT(e);case qr.LoginFailure:return lT(e);case qr.Step:return NT(e);default:return{error:"unknown_step_type",message:"Unable to determine step type from server response",type:"unknown_error"}}}function Kv(e){const t=e.data??(e.error&&"status"in e.error&&typeof e.error.status=="number"&&typeof e.error.data=="object"&&e.error.data!==null?e.error.data:void 0);return e.error&&"error"in e.error?tc({error:"request_failed",message:`Request failed: ${e.error.error}`,type:"unknown_error"}):e.error&&"message"in e.error?tc({error:"request_failed",message:`Request failed: ${e.error.message??"Unknown error"}`,type:"unknown_error"}):e.error&&!t?tc({error:"request_failed",message:"Request failed: Unknown error",type:"unknown_error"}):t?tk(t):tc({error:"no_response_data",message:"No data received from server",type:"unknown_error"})}async function xT({config:e,requestMiddleware:t,logger:n}){var y;const r=Ed({level:(n==null?void 0:n.level)??e.log??"error",custom:n==null?void 0:n.custom}),l=["callbackFactory","clientId","middleware","oauthThreshold","platformHeader","prefix","realmPath","redirectUri","scope","tokenStore","tree","type"].filter(b=>e[b]!==void 0);((y=e.serverConfig)==null?void 0:y.timeout)!==void 0&&l.push("serverConfig.timeout"),l.length>0&&r.warn(`The following configuration properties are not used by journey-client and will be ignored: ${l.join(", ")}`);const d=JA({requestMiddleware:t,logger:r}),{wellknown:g}=e.serverConfig;if(!eC(g)){const b=`Invalid wellknown URL: ${g}. URL must use HTTPS (or HTTP for localhost) and end with /.well-known/openid-configuration.`;throw r.error(b),new Error(b)}const{data:p,error:_}=await d.dispatch(qc.endpoints.configuration.initiate(g));if(_||!p){const b=nC(_),c=`${b.error}: ${b.message}`;throw r.error(c),new Error(c)}d.dispatch(wf.actions.set({wellknownResponse:p}));const S=d.getState().config.error;if(S){const b=`${S.error}: ${S.message}`;throw r.error(b),new Error(b)}const k=Sm({type:"sessionStorage",name:"journey-step"}),h={subscribe:d.subscribe,start:async b=>{const c=await d.dispatch(Vs.endpoints.start.initiate(b));return Kp(Kv(c),{onLeft:u=>u,onRight:u=>Ef(u)})},next:async(b,c)=>{const u=await d.dispatch(Vs.endpoints.next.initiate({step:b,options:c}));return Kp(Kv(u),{onLeft:f=>f,onRight:f=>Ef(f)})},redirect:async b=>{const c=b.getCallbackOfType(fe.RedirectCallback);if(!c)throw new Error("RedirectCallback not found on step");const u=c.getRedirectUrl();if(!u||typeof u!="string")throw new Error("Redirect URL not found on RedirectCallback");const f=await k.set({step:b.payload});xp(f)&&r.warn("Failed to persist step before redirect",f),window.location.assign(u)},resume:async(b,c)=>{const u=new URL(b),f=u.searchParams.get("code"),s=u.searchParams.get("error"),o=u.searchParams.get("errorCode"),a=u.searchParams.get("errorMessage"),m=u.searchParams.get("state"),v=u.searchParams.get("form_post_entry"),w=u.searchParams.get("nonce"),A=u.searchParams.get("RelayState"),E=u.searchParams.get("responsekey"),O=u.searchParams.get("scope"),T=u.searchParams.get("suspendedId"),M=u.searchParams.get("authIndexValue")??void 0;let P;function x(){return f&&m||v||E}function I(V){return typeof V=="object"&&V!==null&&"step"in V&&typeof V.step=="object"}if(x()){const V=await k.get();if(V){if(xp(V))throw new Error(`Error retrieving previous step: ${V.message||V.error}`);I(V)&&(P=Ef(V.step))}if(await k.remove(),!P)throw new Error("Error: previous step information not found in storage for resume operation.")}const D={...c,query:{...f&&{code:f},...s&&{error:s},...o&&{errorCode:o},...a&&{errorMessage:a},...v&&{form_post_entry:v},...w&&{nonce:w},...A&&{RelayState:A},...E&&{responsekey:E},...O&&{scope:O},...m&&{state:m},...T&&{suspendedId:T},...c&&c.query},...((c==null?void 0:c.journey)??M)&&{journey:(c==null?void 0:c.journey)??M}};if(P)return await h.next(P,D);{const V=D;return await h.start(V)}},terminate:async b=>{const{error:c}=await d.dispatch(Vs.endpoints.terminate.initiate(b));if(c)return{error:"terminate_failed",message:"status"in c?`Failed to terminate session: ${c.status}`:"Failed to terminate session",type:"unknown_error"}}};return h}function UT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kf={exports:{}},rn={},Cf={exports:{}},rs={};function $v(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function FT(e,t,n){}function BT(e,t,n){}var zT=/javascript\s*\:/img;function VT(e,t){return zT.test(t)?"":t}rs.whiteList=$v(),rs.getDefaultWhiteList=$v,rs.onAttr=FT,rs.onIgnoreAttr=BT,rs.safeAttrValue=VT;var HT={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},sl=HT;function jT(e,t){e=sl.trimRight(e),e[e.length-1]!==";"&&(e+=";");var n=e.length,r=!1,i=0,l=0,d="";function g(){if(!r){var S=sl.trim(e.slice(i,l)),k=S.indexOf(":");if(k!==-1){var h=sl.trim(S.slice(0,k)),y=sl.trim(S.slice(k+1));if(h){var b=t(i,d.length,h,y,S);b&&(d+=b+"; ")}}}i=l+1}for(;l<n;l++){var p=e[l];if(p==="/"&&e[l+1]==="*"){var _=e.indexOf("*/",l+2);if(_===-1)break;l=_+1,i=l+1,r=!1}else p==="("?r=!0:p===")"?r=!1:p===";"?r||g():p===`
51
+ `&&g()}return sl.trim(d)}var qT=jT,Gc=rs,GT=qT;function Zv(e){return e==null}function WT(e){var t={};for(var n in e)t[n]=e[n];return t}function Yv(e){e=WT(e||{}),e.whiteList=e.whiteList||Gc.whiteList,e.onAttr=e.onAttr||Gc.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Gc.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Gc.safeAttrValue,this.options=e}Yv.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onAttr,l=n.onIgnoreAttr,d=n.safeAttrValue,g=GT(e,function(p,_,S,k,h){var y=r[S],b=!1;if(y===!0?b=y:typeof y=="function"?b=y(k):y instanceof RegExp&&(b=y.test(k)),b!==!0&&(b=!1),k=d(S,k),!!k){var c={position:_,sourcePosition:p,source:h,isWhite:b};if(b){var u=i(S,k,c);return Zv(u)?S+":"+k:u}else{var u=l(S,k,c);if(!Zv(u))return u}}});return g};var KT=Yv;(function(e,t){var n=rs,r=KT;function i(d,g){var p=new r(g);return p.process(d)}t=e.exports=i,t.FilterCSS=r;for(var l in n)t[l]=n[l];typeof window<"u"&&(window.filterCSS=e.exports)})(Cf,Cf.exports);var If=Cf.exports,Af={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}},$T=If.FilterCSS,ZT=If.getDefaultWhiteList,Wc=Af;function Jv(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Xv=new $T;function YT(e,t,n){}function JT(e,t,n){}function XT(e,t,n){}function QT(e,t,n){}function Qv(e){return e.replace(t5,"&lt;").replace(n5,"&gt;")}function e5(e,t,n,r){if(n=oy(n),t==="href"||t==="src"){if(n=Wc.trim(n),n==="#")return"#";if(!(n.substr(0,7)==="http://"||n.substr(0,8)==="https://"||n.substr(0,7)==="mailto:"||n.substr(0,4)==="tel:"||n.substr(0,11)==="data:image/"||n.substr(0,6)==="ftp://"||n.substr(0,2)==="./"||n.substr(0,3)==="../"||n[0]==="#"||n[0]==="/"))return""}else if(t==="background"){if(Kc.lastIndex=0,Kc.test(n))return""}else if(t==="style"){if(ey.lastIndex=0,ey.test(n)||(ty.lastIndex=0,ty.test(n)&&(Kc.lastIndex=0,Kc.test(n))))return"";r!==!1&&(r=r||Xv,n=r.process(n))}return n=ly(n),n}var t5=/</g,n5=/>/g,r5=/"/g,i5=/&quot;/g,a5=/&#([a-zA-Z0-9]*);?/gim,s5=/&colon;?/gim,o5=/&newline;?/gim,Kc=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ey=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ty=/u\s*r\s*l\s*\(.*/gi;function ny(e){return e.replace(r5,"&quot;")}function ry(e){return e.replace(i5,'"')}function iy(e){return e.replace(a5,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function ay(e){return e.replace(s5,":").replace(o5," ")}function sy(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Wc.trim(t)}function oy(e){return e=ry(e),e=iy(e),e=ay(e),e=sy(e),e}function ly(e){return e=ny(e),e=Qv(e),e}function l5(){return""}function c5(e,t){typeof t!="function"&&(t=function(){});var n=!Array.isArray(e);function r(d){return n?!0:Wc.indexOf(e,d)!==-1}var i=[],l=!1;return{onIgnoreTag:function(d,g,p){if(r(d))if(p.isClosing){var _="[/removed]",S=p.position+_.length;return i.push([l!==!1?l:p.position,S]),l=!1,_}else return l||(l=p.position),"[removed]";else return t(d,g,p)},remove:function(d){var g="",p=0;return Wc.forEach(i,function(_){g+=d.slice(p,_[0]),p=_[1]}),g+=d.slice(p),g}}}function u5(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("<!--",n);if(r===-1){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("-->",r);if(i===-1)break;n=i+3}return t}function d5(e){var t=e.split("");return t=t.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),t.join("")}rn.whiteList=Jv(),rn.getDefaultWhiteList=Jv,rn.onTag=YT,rn.onIgnoreTag=JT,rn.onTagAttr=XT,rn.onIgnoreTagAttr=QT,rn.safeAttrValue=e5,rn.escapeHtml=Qv,rn.escapeQuote=ny,rn.unescapeQuote=ry,rn.escapeHtmlEntities=iy,rn.escapeDangerHtml5Entities=ay,rn.clearNonPrintableCharacter=sy,rn.friendlyAttrValue=oy,rn.escapeAttrValue=ly,rn.onIgnoreTagStripAll=l5,rn.StripTagBody=c5,rn.stripCommentTag=u5,rn.stripBlankChar=d5,rn.attributeWrapSign='"',rn.cssFilter=Xv,rn.getDefaultCSSWhiteList=ZT;var $c={},ya=Af;function f5(e){var t=ya.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=ya.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function h5(e){return e.slice(0,2)==="</"}function g5(e,t,n){var r="",i=0,l=!1,d=!1,g=0,p=e.length,_="",S="";e:for(g=0;g<p;g++){var k=e.charAt(g);if(l===!1){if(k==="<"){l=g;continue}}else if(d===!1){if(k==="<"){r+=n(e.slice(i,g)),l=g,i=g;continue}if(k===">"||g===p-1){r+=n(e.slice(i,l)),S=e.slice(l,g+1),_=f5(S),r+=t(l,r.length,_,S,h5(S)),i=g+1,l=!1;continue}if(k==='"'||k==="'")for(var h=1,y=e.charAt(g-h);y.trim()===""||y==="=";){if(y==="="){d=k;continue e}y=e.charAt(g-++h)}}else if(k===d){d=!1;continue}}return i<p&&(r+=n(e.substr(i))),r}var p5=/[^a-zA-Z0-9\\_:.-]/gim;function m5(e,t){var n=0,r=0,i=[],l=!1,d=e.length;function g(h,y){if(h=ya.trim(h),h=h.replace(p5,"").toLowerCase(),!(h.length<1)){var b=t(h,y||"");b&&i.push(b)}}for(var p=0;p<d;p++){var _=e.charAt(p),S,k;if(l===!1&&_==="="){l=e.slice(n,p),n=p+1,r=e.charAt(n)==='"'||e.charAt(n)==="'"?n:y5(e,p+1);continue}if(l!==!1&&p===r){if(k=e.indexOf(_,p+1),k===-1)break;S=ya.trim(e.slice(r+1,k)),g(l,S),l=!1,p=k,n=p+1;continue}if(/\s|\n|\t/.test(_))if(e=e.replace(/\s|\n|\t/g," "),l===!1)if(k=v5(e,p),k===-1){S=ya.trim(e.slice(n,p)),g(S),l=!1,n=p+1;continue}else{p=k-1;continue}else if(k=_5(e,p-1),k===-1){S=ya.trim(e.slice(n,p)),S=cy(S),g(l,S),l=!1,n=p+1;continue}else continue}return n<e.length&&(l===!1?g(e.slice(n)):g(l,cy(ya.trim(e.slice(n))))),ya.trim(i.join(" "))}function v5(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="="?t:-1}}function y5(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="'"||n==='"'?t:-1}}function _5(e,t){for(;t>0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function w5(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function cy(e){return w5(e)?e.substr(1,e.length-2):e}$c.parseTag=g5,$c.parseAttr=m5;var b5=If.FilterCSS,Lr=rn,uy=$c,S5=uy.parseTag,E5=uy.parseAttr,Zc=Af;function Yc(e){return e==null}function k5(e){var t=Zc.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Zc.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=Zc.trim(e.slice(0,-1))),{html:e,closing:n}}function C5(e){var t={};for(var n in e)t[n]=e[n];return t}function I5(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(r){return r.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function dy(e){e=C5(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Lr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=I5(e.whiteList||e.allowList):e.whiteList=Lr.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":Lr.attributeWrapSign,e.onTag=e.onTag||Lr.onTag,e.onTagAttr=e.onTagAttr||Lr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Lr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Lr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Lr.safeAttrValue,e.escapeHtml=e.escapeHtml||Lr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new b5(e.css))}dy.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,l=n.onIgnoreTag,d=n.onTagAttr,g=n.onIgnoreTagAttr,p=n.safeAttrValue,_=n.escapeHtml,S=t.attributeWrapSign,k=t.cssFilter;n.stripBlankChar&&(e=Lr.stripBlankChar(e)),n.allowCommentTag||(e=Lr.stripCommentTag(e));var h=!1;n.stripIgnoreTagBody&&(h=Lr.StripTagBody(n.stripIgnoreTagBody,l),l=h.onIgnoreTag);var y=S5(e,function(b,c,u,f,s){var o={sourcePosition:b,position:c,isClosing:s,isWhite:Object.prototype.hasOwnProperty.call(r,u)},a=i(u,f,o);if(!Yc(a))return a;if(o.isWhite){if(o.isClosing)return"</"+u+">";var m=k5(f),v=r[u],w=E5(m.html,function(A,E){var O=Zc.indexOf(v,A)!==-1,T=d(u,A,E,O);return Yc(T)?O?(E=p(u,A,E,k),E?A+"="+S+E+S:A):(T=g(u,A,E,O),Yc(T)?void 0:T):T});return f="<"+u,w&&(f+=" "+w),m.closing&&(f+=" /"),f+=">",f}else return a=l(u,f,o),Yc(a)?_(f):a},_);return h&&(y=h.remove(y)),y};var A5=dy;(function(e,t){var n=rn,r=$c,i=A5;function l(g,p){var _=new i(p);return _.process(g)}t=e.exports=l,t.filterXSS=l,t.FilterXSS=i,function(){for(var g in n)t[g]=n[g];for(var p in r)t[p]=r[p]}(),typeof window<"u"&&(window.filterXSS=e.exports);function d(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}d()&&(self.filterXSS=e.exports)})(kf,kf.exports);var T5=kf.exports;const is=UT(T5),O5=vd(se(),se().regex(/^[^<>]*$/)).optional();function Ee(e,t,n){if(!e)throw new Error("No key provided to t()");const r=sn(bd),i=r&&r[e]||"";let l="";if(t?(O5.parse(t),Object.keys(t).map(g=>{const p=new RegExp(`{${g}}`,"g");l=i.replace(p,t[g])})):l=i,!l&&!n){const g=e.replace(/([A-Z])/g," $1");l=g.charAt(0).toUpperCase()+g.slice(1)}else!l&&n&&(l=n);return is(l,{whiteList:{a:["target","href","title","rel","class"],b:[],em:[]},onTagAttr:function(g,p,_){if(g=="a"&&p=="href"&&_.substr(0,1)==="?")return`${p}="${_}"`}})}function fr(e){if(typeof e!="string"&&typeof e!="number")throw new Error("Parameter for textToKey function needs to be of type string or number");if(typeof e=="number"&&(e=String(e)),e.match(/^([A-Z]+)$/))return e.toLowerCase();if(e.match(/^([A-Z]+[\W]*)$/))return e.replace(/\W/g,"").toLowerCase();const t=e.replace(/(\W)([\w\d])/g,(n,r,i)=>r.match(/['’"”]/)&&i.match(/[a-z]/)?i:r.match(/\W/)&&i.match(/[a-z]/)?i.toUpperCase():(r.match(/\W/)&&i.match(/\d/),i)).replace(/(\W)/g,"");return t.charAt(0).toLowerCase()+t.slice(1)}function P5(e){if(typeof document!="object")return null;const t=document.createElement("div");return t.innerHTML=e,t.childNodes.length===0?"":t.childNodes[0].nodeValue}var _a;(function(e){e.Error="ERROR",e.Unsupported="unsupported"})(_a||(_a={}));var jn;(function(e){e.AbortError="AbortError",e.DataError="DataError",e.ConstraintError="ConstraintError",e.EncodingError="EncodingError",e.InvalidError="InvalidError",e.NetworkError="NetworkError",e.NotAllowedError="NotAllowedError",e.NotSupportedError="NotSupportedError",e.SecurityError="SecurityError",e.TimeoutError="TimeoutError",e.UnknownError="UnknownError"})(jn||(jn={}));var tr;(function(e){e[e.None=0]="None",e[e.Authentication=1]="Authentication",e[e.Registration=2]="Registration"})(tr||(tr={}));function Tf(e){const t=new Uint8Array(e);return new TextDecoder().decode(t)}function fy(e){try{return e.split("}").filter(n=>!!n&&n!=="]").map(n=>{const r=R5(n);return{id:new Int8Array(r).buffer,type:"public-key"}})}catch{const t=new Error("Transforming credential object to string failed");throw t.name=jn.EncodingError,t}}function R5(e){const t=/new Int8Array\((.+)\)/.exec(e);return t===null||t.length<2?[]:JSON.parse(t[1])}function M5(e){if(Array.isArray(e))return e;if(typeof e=="string")return e&&e[0]==="["?JSON.parse(e):(e=e.replace(/(\w+):/g,'"$1":'),JSON.parse(`[${e}]`))}function hy(e){return e.includes("rpId")?e.replace(/rpId: "(.+)",/,"$1"):e.replace(/id: "(.+)",/,"$1")}class Kr{static getWebAuthnStepType(t){const n=this.getOutcomeCallback(t),r=this.getMetadataCallback(t),i=this.getTextOutputCallback(t);if(n&&r){const l=r.getOutputValue("data");return l!=null&&l.pubKeyCredParams?tr.Registration:tr.Authentication}return n&&i?i.getMessage().includes("pubKeyCredParams")?tr.Registration:tr.Authentication:tr.None}static async isConditionalMediationSupported(){return typeof PublicKeyCredential<"u"&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"&&await PublicKeyCredential.isConditionalMediationAvailable()}static async authenticate(t,n){var d;const{hiddenCallback:r,metadataCallback:i,textOutputCallback:l}=this.getCallbacks(t);if(r&&(i||l)){let g,p=null,_;try{let S;if(i){const k=i.getOutputValue("data");if(_=k.mediation,S=this.createAuthenticationPublicKey(k),_==="conditional"){(d=this.conditionalAbortController)==null||d.abort();const h=n??this.createAbortController().signal;if(!await this.isConditionalMediationSupported()){const b=new Error("Conditional mediation was requested, but is not supported by this browser.");throw b.name=jn.NotSupportedError,b}p=await this.getAuthenticationCredential(S,_,h),g=this.getAuthenticationOutcome(p)}else p=await this.getAuthenticationCredential(S,_,n),g=this.getAuthenticationOutcome(p)}else throw new Error("No metadata callback found for WebAuthn authentication. Please disable JavaScript in server node.")}catch(S){throw!(S instanceof Error)||_==="conditional"&&S.name==="AbortError"?S:S.name===jn.NotSupportedError?(r.setInputValue(_a.Unsupported),S):(r.setInputValue(`${_a.Error}::${S.name}:${S.message}`),S)}if(i){const S=i.getOutputValue("data");if(S!=null&&S.supportsJsonResponse&&p&&"authenticatorAttachment"in p)return r.setInputValue(JSON.stringify({authenticatorAttachment:p.authenticatorAttachment,legacyData:g})),t}return r.setInputValue(g),t}else{const g=new Error("Incorrect callbacks for WebAuthn authentication");throw g.name=jn.DataError,r==null||r.setInputValue(`${_a.Error}::${g.name}:${g.message}`),g}}static async register(t,n){const{hiddenCallback:r,metadataCallback:i,textOutputCallback:l}=this.getCallbacks(t);if(r&&(i||l)){let d,g=null;try{let p;if(i){const _=i.getOutputValue("data");p=this.createRegistrationPublicKey(_),g=await this.getRegistrationCredential(p),d=this.getRegistrationOutcome(g)}else throw new Error("No metadata callback found for WebAuthn registration. Please disable JavaScript in server node.")}catch(p){throw p instanceof Error?p.name===jn.NotSupportedError?(r.setInputValue(_a.Unsupported),p):(r.setInputValue(`${_a.Error}::${p.name}:${p.message}`),p):p}if(i){const p=i.getOutputValue("data");if(p!=null&&p.supportsJsonResponse&&g&&"authenticatorAttachment"in g)return r.setInputValue(JSON.stringify({authenticatorAttachment:g.authenticatorAttachment,legacyData:n&&n.length>0?`${d}::${n}`:d})),t}return r.setInputValue(n&&n.length>0?`${d}::${n}`:d),t}else{const d=new Error("Incorrect callbacks for WebAuthn registration");throw d.name=jn.DataError,r==null||r.setInputValue(`${_a.Error}::${d.name}:${d.message}`),d}}static getCallbacks(t){const n=this.getOutcomeCallback(t),r=this.getMetadataCallback(t),i=this.getTextOutputCallback(t),l={hiddenCallback:n};return r?l.metadataCallback=r:i&&(l.textOutputCallback=i),l}static getMetadataCallback(t){return t.getCallbacksOfType(fe.MetadataCallback).find(n=>{const r=n.getOutputByName("data",void 0);return r&&r.hasOwnProperty("relyingPartyId")})}static getOutcomeCallback(t){return t.getCallbacksOfType(fe.HiddenValueCallback).find(n=>n.getOutputByName("id","")==="webAuthnOutcome")}static getTextOutputCallback(t){return t.getCallbacksOfType(fe.TextOutputCallback).find(n=>{const r=n.getOutputByName("message",void 0);return r&&r.includes("webAuthnOutcome")})}static async getAuthenticationCredential(t,n,r){if(!window.PublicKeyCredential){const l=new Error("PublicKeyCredential not supported by this browser");throw l.name=jn.NotSupportedError,l}return await navigator.credentials.get({publicKey:t,...n&&{mediation:n},...r&&{signal:r}})}static getAuthenticationOutcome(t){if(t===null){const n=new Error("No credential generated from authentication");throw n.name=jn.UnknownError,n}try{const n=Tf(t.response.clientDataJSON),r=t.response,i=new Int8Array(r.authenticatorData).toString(),l=new Int8Array(r.signature).toString(),d=Tf(t.response.userHandle);let g=`${n}::${i}::${l}::${t.id}`;return d&&(g=`${g}::${d}`),g}catch{const n=new Error("Transforming credential object to string failed");throw n.name=jn.EncodingError,n}}static async getRegistrationCredential(t){if(!window.PublicKeyCredential){const r=new Error("PublicKeyCredential not supported by this browser");throw r.name=jn.NotSupportedError,r}return await navigator.credentials.create({publicKey:t})}static getRegistrationOutcome(t){if(t===null){const n=new Error("No credential generated from registration");throw n.name=jn.UnknownError,n}try{const n=Tf(t.response.clientDataJSON),r=t.response,i=new Int8Array(r.attestationObject).toString();return`${n}::${i}::${t.id}`}catch{const n=new Error("Transforming credential object to string failed");throw n.name=jn.EncodingError,n}}static createAuthenticationPublicKey(t){const{acceptableCredentials:n,allowCredentials:r,challenge:i,relyingPartyId:l,timeout:d,userVerification:g}=t,p=hy(l),_=fy(r||n||"");return{challenge:Uint8Array.from(atob(i),S=>S.charCodeAt(0)).buffer,timeout:d,..._!=null&&_.length?{allowCredentials:_}:{},...g&&{userVerification:g},...p&&{rpId:p}}}static createRegistrationPublicKey(t){const{pubKeyCredParams:n}=t,r=M5(n);if(!r){const u=new Error("Missing pubKeyCredParams property from registration options");throw u.name=jn.DataError,u}const i=fy(t.excludeCredentials),{attestationPreference:l,authenticatorSelection:d,challenge:g,relyingPartyId:p,relyingPartyName:_,timeout:S,userId:k,userName:h,displayName:y}=t,b=hy(p),c={name:_,...b&&{id:b}};return{attestation:l,authenticatorSelection:JSON.parse(d),challenge:Uint8Array.from(atob(g),u=>u.charCodeAt(0)).buffer,...i.length&&{excludeCredentials:i},pubKeyCredParams:r,rp:c,timeout:S,user:{displayName:y||h,id:Int8Array.from(k.split("").map(u=>u.charCodeAt(0))),name:y||h}}}static createAbortController(){var n;(n=this.conditionalAbortController)==null||n.abort();const t=new AbortController;return this.conditionalAbortController=t,t}}Je(Kr,"conditionalAbortController");function L5(e){if(!e)return!1;const t=e.getCallbacksOfType(fe.NameCallback).length>0,n=Kr.getMetadataCallback(e),r=Kr.getOutcomeCallback(e);return!t||!n||!r?!1:Kr.getWebAuthnStepType(e)===tr.Authentication}function gy(e){const t=e==null?void 0:e.getCallbacksOfType(fe.NameCallback)[0],n=t==null?void 0:t.getOutputByName("autocompleteValues",[]);return Array.isArray(n)?n.filter(r=>typeof r=="string"):[]}function D5(e){var r;if(!e)return!1;const t=gy(e);if(!t.includes("username")||!t.includes("webauthn"))return!1;const n=(r=Kr.getMetadataCallback(e))==null?void 0:r.getOutputByName("data",{});return(n==null?void 0:n.mediation)==="conditional"}const N5=[fe.ConfirmationCallback,fe.DeviceProfileCallback,fe.PollingWaitCallback,fe.SelectIdPCallback,fe.PingOneProtectInitializeCallback,fe.PingOneProtectEvaluationCallback],x5=[fe.BooleanAttributeInputCallback,fe.ChoiceCallback,fe.ConfirmationCallback,fe.KbaCreateCallback,fe.NameCallback,fe.NumberAttributeInputCallback,fe.PasswordCallback,fe.ReCaptchaCallback,fe.SelectIdPCallback,fe.StringAttributeInputCallback,fe.TermsAndConditionsCallback,fe.TextInputCallback,fe.ValidatedCreatePasswordCallback,fe.ValidatedCreateUsernameCallback],U5={SelectIdPCallback:e=>!!e.getProviders().find(t=>t.provider==="localAuthentication")};function F5(e){return e.getType()===fe.ConfirmationCallback&&e.getOptions().length===1}function B5(e){const t=U5[e.getType()];return t?t(e):!1}function z5(e){return N5.includes(e.getType())}function V5(e,t){return t?!0:!e.filter(r=>r.derived.isUserInputRequired&&!r.derived.isSelfSubmitting).length}function H5(e){return e.getType()===fe.SelectIdPCallback||e.getType()===fe.ConfirmationCallback&&e.getOptions().length===1?!1:x5.includes(e.getType())}function j5(e,t,n){const r=(i,l)=>(l.derived.canForceUserInputOptionality&&t>0&&(i=!0),i);return e.reduce(r,!1)}const q5=new Set(["ReCaptchaCallback","ReCaptchaEnterpriseCallback"]);function py(e,t,n,r){const i={},l=gy(e).join(" ")||void 0;return e==null?void 0:e.callbacks.map((d,g)=>{const p=d.getType();let _,S;if(i[p]?i[p]=i[p]+1:i[p]=1,n&&n[p]&&(_=n[p][i[p]-1]),q5.has(p)){const k=r==null?void 0:r.captcha,h=r==null?void 0:r.recaptchaAction;(k||h)&&(S={...k,...h&&{recaptchaAction:h}})}return{derived:{canForceUserInputOptionality:B5(d),isFirstInvalidInput:t(d),isReadyForSubmission:F5(d),isSelfSubmitting:z5(d),isUserInputRequired:H5(d),autocompleteValues:l},idx:g,..._&&{platform:{..._}},...S&&{initOptions:S}}})}function my(e,t,n){const r=e.filter(d=>!!d.derived.isUserInputRequired).length,i=j5(e,r);let l;return t&&(l=Object.keys(t).reduce((d,g)=>(typeof t[g]!="object"&&(d[g]=t[g]),d),{})),{derived:{isStepSelfSubmittable:()=>V5(e,i),isUserInputOptional:i,numOfCallbacks:e.length,numOfSelfSubmittableCbs:e.filter(d=>!!d.derived.isSelfSubmitting).length,numOfUserInputCbs:r},...l&&{platform:{...l}},...n&&{platform:{stageName:n}}}}const vy="110",G5="constraint violation";function as(e){if(!e)return"";if(e.toLocaleLowerCase().includes("constraint violation"))return console.error("Delta Sierra error has occurred. Please communicate this to your system administrator."),e.toLocaleLowerCase().includes("password")?"constraintViolationForPassword":"constraintViolationForValue";const t=(i,l)=>`${l.toLowerCase()}`;return e.replace(/^([A-Z])/g,t).replace(/\s([a-z])/g,(i,l)=>`${l.toUpperCase()}`).replace(/\W/g,"")}function yy(){let e=!1;return function(n){return n.getOutputByName("failedPolicies",[]).length&&!e?(e=!0,!0):!1}}function Of(e){return e.getCallbacksOfType(fe.RedirectCallback).length>0}function W5(e,t,n,r){var d,g,p;if(!Array.isArray(t)||!n||!("type"in n)||n.type!=="Step"||r!==1)return!1;const i=((d=e.payload)==null?void 0:d.detail)??null,l=((p=(g=e.payload)==null?void 0:g.message)==null?void 0:p.toLowerCase())??null;return!!((i==null?void 0:i.errorCode)===vy||l!=null&&l.includes(G5))}const K5=se({invalid_type_error:"`serverConfig.wellknown` must be a URL string (this is generated by the Zod library).",required_error:"Setting the `serverConfig.wellknown` is required (this is generated by the Zod library)."}).url({message:"`serverConfig.wellknown` must be a full URL (this is generated by the Zod library)."}),$5=Qn({serverConfig:Qn({wellknown:K5}).strict()}).strict();let wa,ol;function Z5(e){if(e===void 0)return wa;const t=$5.parse(e),n=t.serverConfig.wellknown!==(wa==null?void 0:wa.serverConfig.wellknown);return wa=t,n&&(ol=void 0),wa}async function ss(){if(!wa)throw new Error("Journey Client is not configured. Call setJourneyClientConfig() first.");return ol||(ol=xT({config:wa}).catch(e=>{throw ol=void 0,e})),await ol}function Y5(){const{update:e,set:t,subscribe:n}=or([]);return ll={latest:async()=>new Promise(r=>{n(i=>{const l=i[i.length-1];r(l)})()}),pop:async()=>new Promise(r=>{e(i=>{let l;return i.length?l=i.slice(0,-1):l=i,r([...l]),l})}),push:async r=>new Promise(i=>{e(l=>{var g;let d;return l.length?r&&(r==null?void 0:r.journey)!==((g=l[l.length-1])==null?void 0:g.journey)?d=[...l,r]:d=l:d=r?[r]:l,i([...d]),d})}),reset:()=>{t([])},subscribe:n},ll}const gi=or({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null});function J5(e,t){Z5(e);const n=Y5();let r=0,i=null;async function l(c,u){i=u??(c==null?void 0:c.journey)??null,gi.update(s=>({...s,completed:!1,error:null,loading:!0,step:null,successful:!1,response:null})),c&&await n.push(c);let f;try{f=await(await ss()).start(c)}catch(s){console.error(`Start request | ${s}`),f=b(s)}await h(f)}async function d(c,u){const f=c.callbacks,s=c.payload;gi.update(a=>({...a,completed:!1,error:null,loading:!0,step:c,successful:!1,response:null}));let o;try{o=await(await ss()).next(c,u)}catch(a){console.error(`Next step request | ${a}`),o=b(a)}await h(o,{prevStep:c,previousCallbacks:f,previousPayload:s,nextOptions:u})}async function g(c,u){gi.update(s=>({...s,completed:!1,error:null,loading:!0,step:s.step??null,successful:!1,response:null}));let f;try{const s=await ss(),o=new URL(c).searchParams.get("journey"),a=o?{...u,journey:o}:u;f=await s.resume(c,a)}catch(s){console.error(`Resume request | ${s}`),f=b(s)}await h(f)}async function p(c){k(),await n.push(c),await l(c)}async function _(){k();const c=await n.pop(),u=c[c.length-1];await l(u)}async function S(c){if(Of(c))try{await(await ss()).redirect(c)}catch(u){console.error(`Redirect request | ${u}`)}}function k(){gi.set({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null})}async function h(c,u){var f;if(c.type==="Step"){const s=c,o=s.getStage();let a=null,m=null;if(o&&o.includes("{"))try{a=JSON.parse(o)}catch{console.warn("Stage attribute value was not parsable")}else o&&(m=o);const v=py(s,yy(),a,{...t,recaptchaAction:i}),w=my(v,a,m);r=r+1,gi.update(A=>({...A,completed:!1,error:null,loading:!1,metadata:{callbacks:v,step:w},step:s,successful:!1,response:null}))}else if(c.type==="LoginSuccess")n.reset(),gi.update(s=>({...s,completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:c.payload}));else if(c.type==="LoginFailure"){const s=c,o=P5(((f=s.payload)==null?void 0:f.message)||"Unknown login error");await y(o,u,s)}else{const s=c,o=s.message??s.error??Ee("unknownNetworkError");await y(o,u)}}async function y(c,u,f){let s=null;try{const o=await n.latest(),a=await ss();if(s=await a.start(o),f&&s.type==="Step"&&W5(f,u==null?void 0:u.previousCallbacks,s,r)){const m=s;m.callbacks=u==null?void 0:u.previousCallbacks,m.payload={...u==null?void 0:u.previousPayload,authId:m.payload.authId};const v=f.payload.detail;(v==null?void 0:v.errorCode)===vy&&(s=await a.next(m,u==null?void 0:u.nextOptions))}}catch(o){console.error(`Restart failed step request | ${o}`),s=b(o)}if(s.type==="Step"){const o=s,a=o.getStage();let m=null,v=null;if(a&&a.includes("{"))try{m=JSON.parse(a)}catch{console.warn("Stage attribute value was not parsable")}else a&&(v=a);const w=py(o,yy(),m,{...t,recaptchaAction:i}),A=my(w,m,v);gi.update(E=>{var O,T,M;return{...E,completed:!1,error:{code:(f==null?void 0:f.getCode())??null,message:c,stage:((T=(O=u==null?void 0:u.prevStep)==null?void 0:O.payload)==null?void 0:T.stage)??null,troubleshoot:null,detail:((M=f==null?void 0:f.payload)==null?void 0:M.detail)??null},loading:!1,metadata:{callbacks:w,step:A},step:o,successful:!1,response:null}});return}else if(s.type==="LoginSuccess"){gi.update(o=>({...o,completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:s.payload}));return}else gi.update(o=>{var a,m,v;return{...o,completed:!0,error:{code:(f==null?void 0:f.getCode())??null,message:c,stage:((m=(a=u==null?void 0:u.prevStep)==null?void 0:a.payload)==null?void 0:m.stage)??null,troubleshoot:null,detail:((v=f==null?void 0:f.payload)==null?void 0:v.detail)??null},loading:!1,metadata:null,step:null,successful:!1,response:s.type==="LoginFailure"?s.payload:null}})}function b(c){return{error:"unknown_error",message:c instanceof Error?c.message:Ee("unknownNetworkError"),type:"unknown_error"}}return{next:d,pop:_,push:p,reset:k,resume:g,start:l,redirect:S,subscribe:gi.subscribe}}let ll;function X5(e){let t,n,r,i;function l(){return{journeyStore:t,oauthStore:n,userStore:r}}function d(){t.reset(),n.reset(),r.reset()}async function g(S){const k=S==null?void 0:S.wellknown;if(!k)throw new Error("wellknown url is required to configure the widget");if(t=J5({serverConfig:{wellknown:k}},{...S.captcha&&{captcha:kE.parse(S.captcha)}}),await ss(),S.oidcClient){i=RA({...S.oidcClient,serverConfig:{wellknown:k}});const h=await i.getClient();if("error"in h)throw new Error(`Failed to construct the OIDC client: ${String(h.error)}`)}n=RE(i),r=GA(i),IE(S.content),WA(S.journeys),CE(S.links),qA(S.style)}const p=S=>{(!t||!n||!r)&&xl();const k=(S==null?void 0:S.oauth)??!0,h=(S==null?void 0:S.user)??!0,{subscribe:y}=Rg([t,n,r],([f,s,o],a)=>{a({journey:f,oauth:s,user:o}),(s.error||o.error)&&b==="modal"&&e.close({reason:"auto"}),f.successful&&s.successful&&o.completed?b==="modal"&&e.close({reason:"auto"}):f.successful&&s.successful?h&&o.loading===!1&&o.completed===!1?r.get():h||b==="modal"&&e.close({reason:"auto"}):f.successful&&(k&&s.loading===!1&&s.completed===!1?n.get():k||b==="modal"&&e.close({reason:"auto"}))});let b=null;function c(f){return u(f)}function u(f){return n.reset(),r.reset(),b=sn(Eo).type,f!=null&&f.resumeUrl?t.resume(f.resumeUrl):t.start(f!=null&&f.journey?{journey:f.journey,...f.query&&{query:f.query}}:void 0,f==null?void 0:f.recaptchaAction),new Promise((s,o)=>{const a=y(m=>{(m.oauth.error||m.user.error)&&(o(m),a()),m.journey.successful&&m.oauth.successful&&m.user.completed?(s(m),a()):m.journey.successful&&m.oauth.successful?h||(s(m),a()):m.journey.successful&&(k||(s(m),a()))})})}return{change:c,start:u,subscribe:y}},_={info(){(!t||!n||!r)&&xl();async function S(){const k=await r.get();return k.error?Promise.reject(k):k}return{get:S,subscribe:r.subscribe}},async logout(){(!t||!n||!r)&&xl();try{await(await ss()).terminate();const k=i?sn(i):null;k&&!("error"in k)&&await k.user.logout(),d()}catch(S){throw d(),S}},tokens(){(!t||!n||!r)&&xl();async function S(k){const h=await n.get(k);return h.error?Promise.reject(h):h}return{get:S,subscribe:n.subscribe}}};return{component:e,configure:g,getStores:l,journey:p,protect:{start:va.start,getData:va.getData,pauseBehavioralData:va.pauseBehavioralData,resumeBehavioralData:va.resumeBehavioralData},user:_}}function dt(e,t){if(new.target)return Ge({component:dt,...e});He(t,!1);let n=z(t,"html",12,!1),r=z(t,"key",12),i=z(t,"values",12,void 0),l=re();vt(()=>(G(r()),G(i())),()=>{Y(l,Ee(r(),i()))}),Tt();var d={get html(){return n()},set html(k){n(k),B()},get key(){return r()},set key(k){r(k),B()},get values(){return i()},set values(k){i(k),B()},$set:Ke,$on:(k,h)=>We(t,k,h)};ut();var g=mt(),p=qe(g);{var _=k=>{var h=mt(),y=qe(h);xt(y,t,"default",{},b=>{var c=mt(),u=qe(c);Ll(u,()=>C(l)),Q(b,c)}),Q(k,h)},S=k=>{var h=mt(),y=qe(h);xt(y,t,"default",{},b=>{var c=Vt();Pe(()=>wt(c,C(l))),Q(b,c)}),Q(k,h)};Ze(p,k=>{n()?k(_):k(S,-1)})}return Q(e,g),je(d)}function hr(e){return`url("${e.replace(/"/g,"%22")}")`}function Pf(e){let t=e.startsWith("#")?e.slice(1):e;if(/^[0-9a-fA-F]{8}$/.test(t)&&(t=t.slice(0,6)),!/^[0-9a-fA-F]{6}$/.test(t))throw new Error(`Invalid hex color: "${e}"`);const n=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,i=parseInt(t.slice(4,6),16)/255,l=Math.max(n,r,i),d=Math.min(n,r,i),g=l-d,p=(l+d)/2;let _=0;g!==0&&(l===n?_=(r-i)/g%6:l===r?_=(i-n)/g+2:_=(n-r)/g+4,_=Math.round(_*600)/10,_<0&&(_+=360));const S=g===0?0:Math.round(g/(1-Math.abs(2*p-1))*1e3)/10,k=Math.round(p*1e3)/10;return{hs:`${_}, ${S}%`,l:`${k}%`}}function Q5(e){const t=[],n=(d,g)=>{t.push([d,g])},r=(d,g,p)=>{try{const{hs:_,l:S}=Pf(p);t.push([d,_],[g,S])}catch{}},i=(d,g)=>{try{const{hs:p,l:_}=Pf(g);n(d,`hsl(${p}, ${_})`)}catch{}},l=(d,g)=>{try{const{hs:p,l:_}=Pf(g);n(`${d}-hs`,p),n(`${d}-l`,_),n(d,`hsl(var(${d}-hs), var(${d}-l))`)}catch{}};if(e.primaryColor&&(r("--tw-colors-primary-dark-hs","--tw-colors-primary-dark-l",e.primaryColor),r("--tw-colors-primary-light-hs","--tw-colors-primary-light-l",e.primaryColor)),e.primaryOffColor&&r("--tw-colors-primary-off-hs","--tw-colors-primary-off-l",e.primaryOffColor),e.secondaryColor&&(r("--tw-colors-secondary-dark-hs","--tw-colors-secondary-dark-l",e.secondaryColor),r("--tw-colors-secondary-default-hs","--tw-colors-secondary-default-l",e.secondaryColor),r("--tw-colors-secondary-light-hs","--tw-colors-secondary-light-l",e.secondaryColor)),e.backgroundColor&&(r("--tw-colors-background-dark-hs","--tw-colors-background-dark-l",e.backgroundColor),r("--tw-colors-background-light-hs","--tw-colors-background-light-l",e.backgroundColor),n("--fr-page-bg-color",e.backgroundColor)),e.linkColor&&r("--tw-colors-link-dark-hs","--tw-colors-link-dark-l",e.linkColor),e.linkActiveColor&&r("--tw-colors-link-light-hs","--tw-colors-link-light-l",e.linkActiveColor),e.fontFamily&&n("--fr-font-family",e.fontFamily),e.buttonBorderRadius!==void 0&&n("--fr-button-border-radius",`${e.buttonBorderRadius}px`),e.cardBorderRadius!==void 0&&n("--fr-card-border-radius",`${e.cardBorderRadius}px`),e.cardBgColor&&n("--fr-card-bg-color",e.cardBgColor),e.inputBgColor&&n("--fr-input-bg-color",e.inputBgColor),e.inputBorderColor&&(n("--fr-input-border",`1px solid ${e.inputBorderColor}`),n("--fr-input-border-color-value",e.inputBorderColor)),e.inputLabelColor&&n("--fr-input-label-color",e.inputLabelColor),e.selectAccentColor&&n("--fr-select-accent-color",e.selectAccentColor),e.selectHoverBgColor&&n("--fr-select-hover-bg-color",e.selectHoverBgColor),e.inputFocusRingColor&&i("--fr-focus-ring-color",e.inputFocusRingColor),e.buttonFocusRingColor&&i("--fr-button-focus-ring-color",e.buttonFocusRingColor),e.inputTextColor&&l("--fr-input-text-color",e.inputTextColor),e.cardTextColor&&l("--fr-card-text-color",e.cardTextColor),e.bodyTextColor&&l("--fr-body-text-color",e.bodyTextColor),e.buttonTextColor&&l("--fr-button-text-color",e.buttonTextColor),e.logo){const d=hr(e.logo);n("--logo-light",d),n("--logo-dark",d)}return t}var e3=kn('<svg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M 7 4 C 6.744125 4 6.4879687 4.0974687 6.2929688 4.2929688 L 4.2929688 6.2929688 C 3.9019687 6.6839688 3.9019687 7.3170313 4.2929688 7.7070312 L 11.585938 15 L 4.2929688 22.292969 C 3.9019687 22.683969 3.9019687 23.317031 4.2929688 23.707031 L 6.2929688 25.707031 C 6.6839688 26.098031 7.3170313 26.098031 7.7070312 25.707031 L 15 18.414062 L 22.292969 25.707031 C 22.682969 26.098031 23.317031 26.098031 23.707031 25.707031 L 25.707031 23.707031 C 26.098031 23.316031 26.098031 22.682969 25.707031 22.292969 L 18.414062 15 L 25.707031 7.7070312 C 26.098031 7.3170312 26.098031 6.6829688 25.707031 6.2929688 L 23.707031 4.2929688 C 23.316031 3.9019687 22.682969 3.9019687 22.292969 4.2929688 L 15 11.585938 L 7.7070312 4.2929688 C 7.5115312 4.0974687 7.255875 4 7 4 z"></path><title><!></title></svg>');function Rf(e,t){if(new.target)return Ge({component:Rf,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=e3(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var t3=Ce('<div class="tw_dialog-header dark:tw_dialog-header_dark"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div> <button class="tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark" aria-label="Close"><!></button></div>'),n3=Ce('<div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div>'),r3=Ce('<div><button class="tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark"><!></button> <!></div>'),i3=Ce('<dialog><!> <div class="tw_dialog-body"><!></div></dialog>');function _y(e,t){if(new.target)return Ge({component:_y,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"dialogEl",12,null),d=z(t,"dialogId",12),g=z(t,"forceOpen",12,!1),p=z(t,"withHeader",12,!1);function _(s){var m,v,w;function o(){var A,E;(A=l())==null||A.close(),(E=l())==null||E.classList.remove("tw_dialog-closing"),Mg({reason:s})}const a=setTimeout(o,500);(m=l())==null||m.addEventListener("animationstart",()=>{clearTimeout(a)},{once:!0}),(v=l())==null||v.addEventListener("animationend",o,{once:!0}),(w=l())==null||w.classList.add("tw_dialog-closing")}var S={closeDialog:_,get dialogEl(){return l()},set dialogEl(s){l(s),B()},get dialogId(){return d()},set dialogId(s){d(s),B()},get forceOpen(){return g()},set forceOpen(s){g(s),B()},get withHeader(){return p()},set withHeader(s){p(s),B()},$set:Ke,$on:(s,o)=>We(t,s,o)};ut();var k=i3(),h=de(k);{var y=s=>{var o=t3(),a=de(o),m=pe(a,2),v=de(m);Rf(v,{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",children:(w,A)=>{dt(w,{key:"closeModal"})},$$slots:{default:!0}}),ce(m),ce(o),Pe(w=>{Dl(a,w),be(m,"aria-controls",d())},[()=>(G(hr),n(),Z(()=>{var w,A,E,O,T,M,P,x,I,D;return`--logo-dark: ${hr(((A=(w=n())==null?void 0:w.logo)==null?void 0:A.dark)??"")}; --logo-light: ${hr(((O=(E=n())==null?void 0:E.logo)==null?void 0:O.light)??"")}; ${(M=(T=n())==null?void 0:T.logo)!=null&&M.height?`height: ${(P=n())==null?void 0:P.logo.height}px;`:""} ${(I=(x=n())==null?void 0:x.logo)!=null&&I.width?`width: ${(D=n())==null?void 0:D.logo.width}px;`:""}`}))]),mn("click",m,()=>_("user")),Q(s,o)},b=s=>{var o=r3(),a=de(o),m=de(a);Rf(m,{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",children:(A,E)=>{dt(A,{key:"closeModal"})},$$slots:{default:!0}}),ce(a);var v=pe(a,2);{var w=A=>{var E=n3();Pe(O=>Dl(E,O),[()=>(G(hr),n(),Z(()=>{var O,T,M,P;return`--logo-dark: ${hr(((T=(O=n())==null?void 0:O.logo)==null?void 0:T.dark)??"")}; --logo-light: ${hr(((P=(M=n())==null?void 0:M.logo)==null?void 0:P.light)??"")}`}))]),Q(A,E)};Ze(v,A=>{n(),Z(()=>{var E;return(E=n())==null?void 0:E.logo})&&A(w)})}ce(o),Pe(()=>{Ot(o,1,(n(),Z(()=>{var A;return`tw_pt-10 md:tw_pt-10 tw_text-right ${(A=n())!=null&&A.logo?"tw_h-32 md:tw_h-36 tw_pb-6":""}`}))),be(a,"aria-controls",d())}),mn("click",a,()=>_("user")),Q(s,o)};Ze(h,s=>{p()?s(y):s(b,-1)})}var c=pe(h,2),u=de(c);xt(u,t,"default",{},null),ce(c),ce(k),an(k,s=>l(s),()=>l()),Pe(()=>{be(k,"id",d()),Ot(k,1,`tw_dialog-box dark:tw_dialog-box_dark md:tw_dialog-box_medium ${g()?"":"tw_dialog-box_animate"}`),k.open=g()}),Q(e,k),lt(t,"closeDialog",_);var f=je(S);return i(),f}function a3(e,t){if(!(!e||!t))for(const[n,r]of Q5(t))e.style.setProperty(n,r)}var s3=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"></path><title><!></title></svg>');function wy(e,t){if(new.target)return Ge({component:wy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=s3(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var o3=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path><title><!></title></svg>');function by(e,t){if(new.target)return Ge({component:by,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=o3(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var l3=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path><title><!></title></svg>');function Sy(e,t){if(new.target)return Ge({component:Sy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=l3(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var c3=Ce('<div tabindex="-1"><p class="tw_grid tw_grid-cols-[2em_1fr]"><!> <span><!></span></p></div>');function qn(e,t){if(new.target)return Ge({component:qn,...e});He(t,!1);let n=z(t,"id",12),r=z(t,"needsFocus",12,!1),i=z(t,"type",12,""),l=re();function d(...u){return u.reduce((f,s)=>{switch(s){case"error":return`${f} tw_alert-error dark:tw_alert-error_dark`;case"info":return`${f} tw_alert-info dark:tw_alert-info_dark`;case"success":return`${f} tw_alert-success dark:tw_alert-success_dark`;case"warning":return`${f} tw_alert-warning dark:tw_alert-warning_dark`;default:return f}},"")}vt(()=>(G(r()),C(l)),()=>{r()&&C(l)&&C(l).focus()}),Tt();var g={get id(){return n()},set id(u){n(u),B()},get needsFocus(){return r()},set needsFocus(u){r(u),B()},get type(){return i()},set type(u){i(u),B()},$set:Ke,$on:(u,f)=>We(t,u,f)},p=c3(),_=de(p),S=de(_);{var k=u=>{wy(u,{})},h=u=>{Sy(u,{})},y=u=>{by(u,{})};Ze(S,u=>{i()==="error"?u(k):i()==="warning"?u(h,1):u(y,-1)})}var b=pe(S,2),c=de(b);return xt(c,t,"default",{},null),ce(b),ce(_),ce(p),an(p,u=>Y(l,u),()=>C(l)),Pe(u=>{Ot(p,1,u),be(p,"id",n()),be(p,"role",i()==="error"?"alert":"")},[()=>(G(i()),Z(()=>`${d(i())} tw_alert dark:tw_alert_dark tw_input-spacing tw_outline-none`))]),Q(e,p),je(g)}var u3=Ce('<div role="status"><span class="tw_sr-only"><!></span></div> <!>',1);function gr(e,t){if(new.target)return Ge({component:gr,...e});He(t,!1);let n=z(t,"colorClass",12),r=z(t,"layoutClasses",12);var i={get colorClass(){return n()},set colorClass(S){n(S),B()},get layoutClasses(){return r()},set layoutClasses(S){r(S),B()},$set:Ke,$on:(S,k)=>We(t,S,k)},l=u3(),d=qe(l),g=de(d),p=de(g);dt(p,{key:"loading"}),ce(g),ce(d);var _=pe(d,2);return xt(_,t,"default",{},null),Pe(()=>Ot(d,1,`tw_spinner tw_animate-spin tw_border-4 tw_inline-block tw_rounded-full ${n()} ${r()}`)),Q(e,l),je(i)}var d3=Ce("<button><!> <!></button>");function Un(e,t){if(new.target)return Ge({component:Un,...e});He(t,!1);let n=z(t,"busy",12,!1),r=z(t,"classes",12,""),i=z(t,"onClick",12,()=>{}),l=z(t,"style",12,"outline"),d=z(t,"type",12,null),g=z(t,"width",12,"auto");function p(...b){return b.reduce((c,u)=>{switch(u){case"primary":return`${c} tw_button-primary dark:tw_button-primary_dark`;case"secondary":return`${c} tw_button-secondary dark:tw_button-secondary_dark`;case"outline":return`${c} tw_button-outline dark:tw_button-outline_dark`;case"auto":return`${c} tw_w-auto`;case"full":return`${c} tw_w-full`;default:return c}},"")}var _={get busy(){return n()},set busy(b){n(b),B()},get classes(){return r()},set classes(b){r(b),B()},get onClick(){return i()},set onClick(b){i(b),B()},get style(){return l()},set style(b){l(b),B()},get type(){return d()},set type(b){d(b),B()},get width(){return g()},set width(b){g(b),B()},$set:Ke,$on:(b,c)=>We(t,b,c)},S=d3(),k=de(S);{var h=b=>{gr(b,{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"})};Ze(k,b=>{n()&&b(h)})}var y=pe(k,2);return xt(y,t,"default",{},b=>{var c=Vt("Submit");Q(b,c)}),ce(S),Pe(b=>{Ot(S,1,b),be(S,"type",d())},[()=>(G(l()),G(g()),G(r()),Z(()=>`${p(l(),g())} tw_button-base tw_focusable-element dark:tw_focusable-element_dark width-${g()} ${r()}`))]),mn("click",S,function(...b){var c;(c=i())==null||c.apply(this,b)}),Q(e,S),je(_)}function f3(e){let t=null,n=null;async function r(d){var _;if(!d||d.type!=="Step")return;const g=((_=d.payload)==null?void 0:_.authId)??null;if(!g||(n&&t&&g!==t&&i(),t===g)||(t=g,!D5(d)||!await Kr.isConditionalMediationSupported()))return;const p=new AbortController;n=p;try{const S=await Kr.authenticate(d,p.signal);await e.next(S)}catch(S){console.debug("Passkey autofill attempt did not complete",S)}finally{n===p&&(n=null)}}function i(){n==null||n.abort(),n=null}const l=e.subscribe(d=>{r(d==null?void 0:d.step).catch(g=>{console.debug("Passkey autofill update failed",g)})});return{abort:i,destroy(){l(),i()}}}let Ey=class{static isQRCodeStep(t){const n=t.getCallbacksOfType(fe.HiddenValueCallback);return n.length===0?!1:!!this.getQRCodeURICb(n)}static getQRCodeData(t){const n=t.getCallbacksOfType(fe.HiddenValueCallback);if(n.length===0)throw new Error("QR Code step must contain a HiddenValueCallback. Use `QRCode.isQRCodeStep` to guard.");const r=this.getQRCodeURICb(n),i=r?r.getOutputValue("value"):"",l=typeof i=="string"&&i.includes("otpauth://")?"otp":"push",g=t.getCallbacksOfType(fe.TextOutputCallback).find(p=>p.getMessageType()!=="4");return{message:g?g.getMessage():"",use:l,uri:typeof i=="string"?i:""}}static getQRCodeURICb(t){return t.find(n=>{const r=n.getOutputValue("value");return typeof r=="string"?(r==null?void 0:r.includes("otpauth://"))||(r==null?void 0:r.includes("pushauth://")):!1})}};function h3(e){const t=e.match(/\s[\w\W]"([\w]*)\\/g);return Array.isArray(t)&&t.map(r=>{const i=r.match(/"([\w]*)\\/);return Array.isArray(i)?i[1]:""})||[]}function g3(e){var n,r,i;return((i=(r=(n=e==null?void 0:e.match(/<em\s*.*>\s*.*<\/em>/g))==null?void 0:n[0])==null?void 0:r.replace("<em>",""))==null?void 0:i.replace("</em>",""))??"New Security Key"}class Mf{static getDeviceName(t){var r;const n=((r=this.getDisplayCallback(t))==null?void 0:r.getOutputByName("message",""))??"";return g3(n)}static getCodes(t){var r;const n=(r=this.getDisplayCallback(t))==null?void 0:r.getOutputByName("message","");return h3(n||"")}static isDisplayStep(t){return!!this.getDisplayCallback(t)}static getDisplayCallback(t){return t.getCallbacksOfType(fe.TextOutputCallback).find(n=>{const r=n.getOutputByName("message",void 0);return r&&(r.includes("Recovery Codes")||r.includes("recovery codes"))})}}function Jc(e,t){if(new.target)return Ge({component:Jc,...e});He(t,!1);let n=z(t,"html",12,!1),r=z(t,"string",12),i=re();vt(()=>G(r()),()=>{Y(i,is(r()))}),Tt();var l={get html(){return n()},set html(S){n(S),B()},get string(){return r()},set string(S){r(S),B()},$set:Ke,$on:(S,k)=>We(t,S,k)};ut();var d=mt(),g=qe(d);{var p=S=>{var k=mt(),h=qe(k);xt(h,t,"default",{},y=>{var b=mt(),c=qe(b);Ll(c,()=>C(i)),Q(y,b)}),Q(S,k)},_=S=>{var k=mt(),h=qe(k);xt(h,t,"default",{},y=>{var b=Vt();Pe(()=>wt(b,C(i))),Q(y,b)}),Q(S,k)};Ze(g,S=>{n()?S(p):S(_,-1)})}return Q(e,d),je(l)}var p3=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"></path></svg>');function ky(e,t){if(new.target)return Ge({component:ky,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=p3();return Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var m3=Ce('<form novalidate="" tabindex="-1"><!></form>');function Ni(e,t){if(new.target)return Ge({component:Ni,...e});He(t,!1);let n=z(t,"ariaDescribedBy",12),r=z(t,"formEl",12,null),i=z(t,"id",12,"formId"),l=z(t,"needsFocus",12,!1),d=z(t,"onSubmitWhenValid",12,void 0),g=re(!1);function p(h){const y=h.target;let b=null;Y(g,!1),Array.from(y.children).forEach((c,u)=>{const f=c.querySelectorAll("input, select, textarea");f!=null&&f.length&&Array.from(f).forEach(s=>{const o=s.checkValidity()&&s.dataset.forceValidityFailure!=="true",a=s.getAttribute("aria-describedby")||"",m=document.getElementById(a),v=m==null?void 0:m.querySelector(".__input-message");o?(s.setAttribute("aria-invalid","false"),v==null||v.classList.remove("tw_isInvalid"),v==null||v.classList.add("tw_hidden")):(s.setAttribute("aria-invalid","true"),a&&(v==null||v.classList.add("tw_isInvalid"),v==null||v.classList.remove("tw_hidden")),b===null&&(s.focus(),b=u))})}),b===null&&(Y(g,!0),d()&&d()(h,C(g)))}vt(()=>(G(l()),G(r())),()=>{l()&&r()&&r().focus()}),Tt();var _={get ariaDescribedBy(){return n()},set ariaDescribedBy(h){n(h),B()},get formEl(){return r()},set formEl(h){r(h),B()},get id(){return i()},set id(h){i(h),B()},get needsFocus(){return l()},set needsFocus(h){l(h),B()},get onSubmitWhenValid(){return d()},set onSubmitWhenValid(h){d(h),B()},$set:Ke,$on:(h,y)=>We(t,h,y)};ut();var S=m3(),k=de(S);return xt(k,t,"default",{},null),ce(S),an(S,h=>r(h),()=>r()),Pe(()=>{be(S,"aria-describedby",n()),be(S,"id",i()),Ot(S,1,`tw_form-base ${C(g)?"tw_form-valid":"tw_form-invalid"} tw_outline-none`)}),mn("submit",S,Ml(p)),Q(e,S),je(_)}var v3=Ce("<label><!></label>");function xi(e,t){if(new.target)return Ge({component:xi,...e});He(t,!1);let n=z(t,"key",12),r=z(t,"classes",12,"");var i={get key(){return n()},set key(g){n(g),B()},get classes(){return r()},set classes(g){r(g),B()},$set:Ke,$on:(g,p)=>We(t,g,p)},l=v3(),d=de(l);return xt(d,t,"default",{},null),ce(l),Pe(()=>{be(l,"for",n()),Ot(l,1,`${r()} tw_input-label dark:tw_input-label_dark`)}),Q(e,l),je(i)}var y3=Ce("<p><!></p>");function Ui(e,t){if(new.target)return Ge({component:Ui,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"dirtyMessage",12),i=z(t,"key",12,void 0),l=z(t,"showMessage",12,!0),d=z(t,"type",12,"info"),g=re(is(r()));function p(...y){return y.reduce((b,c)=>{switch(c){case"error":return`${b} tw_input-error-message dark:tw_input-error-message_dark`;default:return`${b} tw_input-info-message dark:tw_input-info-message_dark`}},"")}vt(()=>G(r()),()=>{Y(g,is(r()))}),Tt();var _={get classes(){return n()},set classes(y){n(y),B()},get dirtyMessage(){return r()},set dirtyMessage(y){r(y),B()},get key(){return i()},set key(y){i(y),B()},get showMessage(){return l()},set showMessage(y){l(y),B()},get type(){return d()},set type(y){d(y),B()},$set:Ke,$on:(y,b)=>We(t,y,b)};ut();var S=mt(),k=qe(S);{var h=y=>{var b=y3(),c=de(b);Ll(c,()=>C(g)),ce(b),Pe(u=>{Ot(b,1,u),be(b,"id",`${i()?`${i()}-message`:""}`)},[()=>(G(n()),G(l()),G(d()),Z(()=>`${n()} __input-message ${l()?"":"tw_hidden"} ${p(d())}`))]),Q(y,b)};Ze(k,y=>{r()&&y(h)})}return Q(e,S),je(_)}var _3=Ce('<span class="tw_animated-check dark:tw_animated-check_dark"></span> <!>',1),w3=Ce('<div class="tw_input-spacing"><input class="tw_checkbox-input_animated dark:tw_checkbox-input_animated_dark tw_sr-only" type="checkbox"/> <!> <div class="tw_ml-10"><!></div></div>');function Xc(e,t){if(new.target)return Ge({component:Xc,...e});He(t,!1);let n=z(t,"checkValidity",12,null),r=z(t,"message",12,""),i=z(t,"isFirstInvalidInput",12),l=z(t,"isRequired",12,!1),d=z(t,"isInvalid",12,!1),g=z(t,"key",12),p=z(t,"onChange",12),_=z(t,"showMessage",12,void 0),S=z(t,"value",12),k=re();function h(o){n()&&d(!n()(o)),p()(o)}Vn(()=>{i()&&C(k).focus()});var y={get checkValidity(){return n()},set checkValidity(o){n(o),B()},get message(){return r()},set message(o){r(o),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(o){i(o),B()},get isRequired(){return l()},set isRequired(o){l(o),B()},get isInvalid(){return d()},set isInvalid(o){d(o),B()},get key(){return g()},set key(o){g(o),B()},get onChange(){return p()},set onChange(o){p(o),B()},get showMessage(){return _()},set showMessage(o){_(o),B()},get value(){return S()},set value(o){S(o),B()},$set:Ke,$on:(o,a)=>We(t,o,a)};ut();var b=w3(),c=de(b);Vr(c),an(c,o=>Y(k,o),()=>C(k));var u=pe(c,2);xi(u,{get key(){return g()},classes:"tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",children:(o,a)=>{var m=_3(),v=pe(qe(m),2);xt(v,t,"default",{},null),Q(o,m)},$$slots:{default:!0}});var f=pe(u,2),s=de(f);{let o=me(()=>d()?"error":"info");Ui(s,{get dirtyMessage(){return r()},get showMessage(){return _()},get type(){return C(o)}})}return ce(f),ce(b),Pe(()=>{be(c,"aria-describedby",`${g()}-message`),be(c,"aria-invalid",d()),Nl(c,S()),be(c,"id",g()),c.required=l(),be(f,"id",`${g()}-message`)}),mn("change",c,h),Q(e,b),je(y)}var b3=Ce('<input class="tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark" type="checkbox"/> <!>',1);function Qc(e,t){if(new.target)return Ge({component:Qc,...e});He(t,!1);let n=z(t,"isFirstInvalidInput",12),r=z(t,"isRequired",12,!1),i=z(t,"isInvalid",12,!1),l=z(t,"key",12),d=z(t,"onChange",12),g=z(t,"value",12),p=re();Vn(()=>{n()&&C(p).focus()});var _={get isFirstInvalidInput(){return n()},set isFirstInvalidInput(y){n(y),B()},get isRequired(){return r()},set isRequired(y){r(y),B()},get isInvalid(){return i()},set isInvalid(y){i(y),B()},get key(){return l()},set key(y){l(y),B()},get onChange(){return d()},set onChange(y){d(y),B()},get value(){return g()},set value(y){g(y),B()},$set:Ke,$on:(y,b)=>We(t,y,b)};ut();var S=b3(),k=qe(S);Vr(k),an(k,y=>Y(p,y),()=>C(p));var h=pe(k,2);return xi(h,{get key(){return l()},children:(y,b)=>{var c=mt(),u=qe(c);xt(u,t,"default",{},null),Q(y,c)},$$slots:{default:!0}}),Pe(()=>{be(k,"aria-describedby",`${l()}-message`),be(k,"aria-invalid",i()),Nl(k,g()),be(k,"id",l()),k.required=r()}),mn("change",k,function(...y){var b;(b=d())==null||b.apply(this,y)}),Q(e,S),je(_)}var S3=Ce('<div class="tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]"><!> <span class="tw_col-start-2 tw_row-start-2"><!></span></div>');function eu(e,t){if(new.target)return Ge({component:eu,...e});He(t,!1);let n=z(t,"checkValidity",12,null),r=z(t,"message",12,""),i=z(t,"isFirstInvalidInput",12),l=z(t,"isRequired",12,!1),d=z(t,"isInvalid",12,!1),g=z(t,"key",12),p=z(t,"onChange",12),_=z(t,"showMessage",12,void 0),S=z(t,"value",12);function k(f){n()&&d(!n()(f)),p()(f)}var h={get checkValidity(){return n()},set checkValidity(f){n(f),B()},get message(){return r()},set message(f){r(f),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(f){i(f),B()},get isRequired(){return l()},set isRequired(f){l(f),B()},get isInvalid(){return d()},set isInvalid(f){d(f),B()},get key(){return g()},set key(f){g(f),B()},get onChange(){return p()},set onChange(f){p(f),B()},get showMessage(){return _()},set showMessage(f){_(f),B()},get value(){return S()},set value(f){S(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();var y=S3(),b=de(y);Qc(b,{get isFirstInvalidInput(){return i()},get isRequired(){return l()},get isInvalid(){return d()},get key(){return g()},onChange:k,get value(){return S()},children:(f,s)=>{var o=mt(),a=qe(o);xt(a,t,"default",{},null),Q(f,o)},$$slots:{default:!0}});var c=pe(b,2),u=de(c);{let f=me(()=>d()?"error":"info");Ui(u,{get dirtyMessage(){return r()},get showMessage(){return _()},get type(){return C(f)}})}return ce(c),ce(y),Pe(()=>be(c,"id",`${g()}-message`)),Q(e,y),je(h)}function E3(e){const t=e==null?void 0:e.value;if(typeof t!="object")return"text";const n=t==null?void 0:t.policyRequirements;return Array.isArray(n)?n.includes("VALID_EMAIL_ADDRESS_FORMAT")?"email":(n.includes("VALID_USERNAME"),"text"):"text"}function k3(e){if((e==null?void 0:e.policyRequirement)==="DICTIONARY"){const t=e.params,n=(t==null?void 0:t["min-substring-length"])||0,r=[];return t!=null&&t["check-substrings"]&&(t!=null&&t["test-reversed-password"])?r.push({length:n,message:Ee("passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan",{min:String(n)}),rule:"reversibleSubstrings"}):t!=null&&t["test-reversed-password"]?r.push({length:null,message:Ee("passwordCannotContainCommonPasswordsOrBeReversible"),rule:"reversibleSubstrings"}):r.push({length:null,message:Ee("passwordCannotContainCommonPasswords"),rule:"reversibleSubstrings"}),r}else if((e==null?void 0:e.policyRequirement)==="CHARACTER_SET"){const t=e.params;return t==null?void 0:t["character-sets"].map(I3)}else if((e==null?void 0:e.policyRequirement)==="LENGTH_BASED"){const t=e.params,n=(t==null?void 0:t["min-password-length"])||0,r=(t==null?void 0:t["max-password-length"])||null,i=[];return r&&i.push({length:r,message:Ee("exceedsMaximumCharacterLength",{max:String(r)}),rule:"maximumLength"}),n&&i.push({length:n,message:Ee("doesNotMeetMinimumCharacterLength",{min:String(n)}),rule:"minimumLength"}),i}else if((e==null?void 0:e.policyRequirement)==="REPEATED_CHARACTERS"){const t=e.params,n=t["max-consecutive-length"]||0,r=[];return t["case-sensitive-validation"]?r.push({length:n,message:Ee("charactersCannotRepeatMoreThan",{max:String(n)}),rule:"repeatedCharacters"}):r.push({length:n,message:Ee("charactersCannotRepeatMoreThanCaseInsensitive",{max:String(n)}),rule:"repeatedCharactersCaseInsensitive"}),r}else return(e==null?void 0:e.policyRequirement)==="VALID_USERNAME"?[{length:null,message:Ee("chooseDifferentUsername"),rule:"validUsername"}]:(e==null?void 0:e.policyRequirement)==="VALID_EMAIL_ADDRESS_FORMAT"?[{length:null,message:Ee("invalidEmailAddress"),rule:"validEmailAddress"}]:[{length:null,message:Ee("pleaseCheckValue"),rule:"unknown"}]}function C3(e){var t;switch(e==null?void 0:e.policyId){case"at-least-X-capitals":{const n=e==null?void 0:e.params,r=n==null?void 0:n.numCaps;return Ee("minimumNumberOfUppercase",{num:String(r)})}case"at-least-X-numbers":{const n=e==null?void 0:e.params,r=n==null?void 0:n.numNums;return Ee("minimumNumberOfNumbers",{num:String(r)})}case"cannot-contain-characters":{const n=e==null?void 0:e.params;let r="";return typeof n!="object"?"":(Array.isArray(n.forbiddenChars)?r=n.forbiddenChars.reduce((i,l)=>(i=`${i?`${i}, `:`${i}`} ${l}`,i),""):typeof n.forbiddenChars=="string"&&(r=n.forbiddenChars),Ee("fieldCanNotContainFollowingCharacters",{chars:r}))}case"cannot-contain-others":{const n=e==null?void 0:e.params;let r="";return typeof n!="object"?"":(Array.isArray(n.disallowedFields)?r=(t=n.disallowedFields)==null?void 0:t.reduce((i,l)=>(i=`${i?`${i}, `:`${i}`} ${Ee(l)}`,i),""):typeof n.disallowedFields=="string"&&(r=n.disallowedFields),Ee("fieldCanNotContainFollowingValues",{fields:r}))}case"maximum-length":{const n=e==null?void 0:e.params,r=n==null?void 0:n.maxLength;return r>100?"":Ee("notToExceedMaximumCharacterLength",{max:String(r)})}case"minimum-length":{const n=e==null?void 0:e.params,r=n==null?void 0:n.minLength;return r===1?"":Ee("noLessThanMinimumCharacterLength",{min:String(r)})}case"not-empty":return"";case"required":return"";case"valid-username":return"";case"valid-email-address-format":return"";case"valid-type":return"";default:return""}}function ba(e,t){const n=e.getFailedPolicies&&e.getFailedPolicies();return A3(n,t).map(i=>({params:i==null?void 0:i.params,policyRequirement:(i==null?void 0:i.policyRequirement)||"",restructured:k3(i)}))}function Lf(e){if(typeof e!="object"&&!e)return[];const t=e==null?void 0:e.policies;return Array.isArray(t)?t.map(n=>({message:C3(n),...(n==null?void 0:n.params)&&{params:n==null?void 0:n.params},...(n==null?void 0:n.policyId)&&{policyId:n==null?void 0:n.policyId}})).filter(n=>!!n.message):[]}function Df(e){const t=e.getPolicies&&e.getPolicies();let n=!1;return t!=null&&t.policyRequirements?n=t.policyRequirements.includes("REQUIRED"):e.isRequired&&(n=e.isRequired()),n}function I3(e){const t=e.split(":"),n=t[0],r=t[1];return r==="0123456789"?n==="0"?{length:null,message:Ee("shouldContainANumber"),rule:"numbers"}:{length:Number(n),message:Ee("minimumNumberOfNumbers",{num:String(n)}),rule:"numbers"}:r==="ABCDEFGHIJKLMNOPQRSTUVWXYZ"?n==="0"?{length:null,message:Ee("shouldContainAnUppercase"),rule:"uppercase"}:{length:Number(n),message:Ee("minimumNumberOfUppercase",{num:String(n)}),rule:"uppercase"}:r==="abcdefghijklmnopqrstuvwxyz"?n==="0"?{length:null,message:Ee("shouldContainALowercase"),rule:"lowercase"}:{length:Number(n),message:Ee("minimumNumberOfLowercase",{num:String(n)}),rule:"lowercase"}:r.includes("@")||r.includes("!")||r.includes("*")||r.includes("#")?n==="0"?{length:null,message:Ee("shouldContainASymbol"),rule:"symbols"}:{length:Number(n),message:Ee("minimumNumberOfSymbols",{num:String(n)}),rule:"symbols"}:{length:null,message:Ee("pleaseCheckValue"),rule:"unknown"}}function A3(e,t){return e.map(n=>{if(typeof n=="string")try{return JSON.parse(n)}catch{console.error(`Parsing failure for ${t}`)}else return n})}function Cy(e){return(e.getFailedPolicies&&e.getFailedPolicies()).reduce((n,r)=>{switch(r.policyRequirement){default:n=`${n}${Ee("pleaseCheckValue")}`}return n},"")}function Iy(e,t){if(new.target)return Ge({component:Iy,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().checksAndRadios==="standard"?eu:Xc;let p=re(),_=re(),S=re(),k=re(),h=re();function y(f){i().setInputValue(f.target.checked)}vt(()=>(G(i()),G(l()),Cy),()=>{var f,s,o,a;Y(p,((o=(s=(f=i())==null?void 0:f.payload)==null?void 0:s.input)==null?void 0:o[0].name)||`boolean-attr-${(a=l())==null?void 0:a.idx}`),Y(_,i().getOutputByName("name","")),Y(S,i().getInputValue()),Y(k,i().getPrompt()),Y(h,Cy(i()))}),Tt();var b={stepMetadata:n,selfSubmitFunction:r,get callback(){return i()},set callback(f){i(f),B()},get callbackMetadata(){return l()},set callbackMetadata(f){l(f),B()},get style(){return d()},set style(f){d(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();var c=mt(),u=qe(c);return ja(u,i,f=>{{let s=me(()=>(G(l()),Z(()=>{var a;return((a=l())==null?void 0:a.derived.isFirstInvalidInput)||!1}))),o=me(()=>!!C(h));g(f,{get isFirstInvalidInput(){return C(s)},get isInvalid(){return C(o)},get key(){return C(p)},get message(){return C(h)},onChange:y,get value(){return C(S)},children:(a,m)=>{Wt();var v=Vt();Pe(w=>wt(v,w),[()=>(G(Ee),G(fr),C(_),C(k),Z(()=>Ee(fr(C(_)),null,C(k))))]),Q(a,v)},$$slots:{default:!0}})}}),Q(e,c),lt(t,"stepMetadata",n),lt(t,"selfSubmitFunction",r),je(b)}var T3=Ce('<span class="tw_animated-radio dark:tw_animated-radio_dark"></span> ',1),O3=Ce('<div class="tw_input-spacing"><input class="tw_radio-input_animated dark:tw_radio-input_animated_dark tw_sr-only" type="radio"/> <!></div>'),P3=Ce('<fieldset><legend class="tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"> </legend> <div><!> <span class="tw_col-start-2 tw_row-start-2"><!></span></div></fieldset>');function Ay(e,t){if(new.target)return Ge({component:Ay,...e});He(t,!1);let n=z(t,"defaultOption",12,null),r=z(t,"message",12,""),i=z(t,"groupLabel",12,""),l=z(t,"isFirstInvalidInput",12),d=z(t,"isRequired",12,!1),g=z(t,"isInvalid",12,!1),p=z(t,"key",12),_=z(t,"name",12),S=z(t,"onChange",12),k=z(t,"options",12),h=z(t,"showMessage",12,void 0),y=re();Vn(()=>{l()&&C(y).focus()});var b={get defaultOption(){return n()},set defaultOption(v){n(v),B()},get message(){return r()},set message(v){r(v),B()},get groupLabel(){return i()},set groupLabel(v){i(v),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(v){l(v),B()},get isRequired(){return d()},set isRequired(v){d(v),B()},get isInvalid(){return g()},set isInvalid(v){g(v),B()},get key(){return p()},set key(v){p(v),B()},get name(){return _()},set name(v){_(v),B()},get onChange(){return S()},set onChange(v){S(v),B()},get options(){return k()},set options(v){k(v),B()},get showMessage(){return h()},set showMessage(v){h(v),B()},$set:Ke,$on:(v,w)=>We(t,v,w)};ut();var c=P3(),u=de(c),f=de(u,!0);ce(u);var s=pe(u,2),o=de(s);Jn(o,1,k,Yn,(v,w)=>{var A=O3(),E=de(A);Vr(E),an(E,T=>Y(y,T),()=>C(y));var O=pe(E,2);{let T=me(()=>(G(p()),C(w),Z(()=>`${p()}-${C(w).value}`)));xi(O,{get key(){return C(T)},classes:"tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",children:(M,P)=>{var x=T3(),I=pe(qe(x));Pe(()=>wt(I,` ${C(w),Z(()=>C(w).text)??""}`)),Q(M,x)},$$slots:{default:!0}})}ce(A),Pe(()=>{Nl(E,(G(n()),C(w),Z(()=>n()===C(w).value))),be(E,"id",(G(p()),C(w),Z(()=>`${p()}-${C(w).value}`))),be(E,"name",_()),E.required=d(),Qu(E,(C(w),Z(()=>C(w).value)))}),mn("change",E,function(...T){var M;(M=S())==null||M.apply(this,T)}),Q(v,A)});var a=pe(o,2),m=de(a);{let v=me(()=>g()?"error":"info");Ui(m,{get dirtyMessage(){return r()},get key(){return p()},get showMessage(){return h()},get type(){return C(v)}})}return ce(a),ce(s),ce(c),Pe(()=>wt(f,i())),Q(e,c),je(b)}var R3=Ce('<input class="tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark" type="radio"/> <!>',1);function Ty(e,t){if(new.target)return Ge({component:Ty,...e});He(t,!1);let n=z(t,"checked",12,!1),r=z(t,"isFirstInvalidInput",12),i=z(t,"isRequired",12,!1),l=z(t,"key",12),d=z(t,"name",12),g=z(t,"onChange",12),p=z(t,"value",12),_=re();Vn(()=>{r()&&C(_).focus()});var S={get checked(){return n()},set checked(b){n(b),B()},get isFirstInvalidInput(){return r()},set isFirstInvalidInput(b){r(b),B()},get isRequired(){return i()},set isRequired(b){i(b),B()},get key(){return l()},set key(b){l(b),B()},get name(){return d()},set name(b){d(b),B()},get onChange(){return g()},set onChange(b){g(b),B()},get value(){return p()},set value(b){p(b),B()},$set:Ke,$on:(b,c)=>We(t,b,c)};ut();var k=R3(),h=qe(k);Vr(h),an(h,b=>Y(_,b),()=>C(_));var y=pe(h,2);return xi(y,{get key(){return l()},children:(b,c)=>{var u=mt(),f=qe(u);xt(f,t,"default",{},null),Q(b,u)},$$slots:{default:!0}}),Pe(()=>{be(h,"aria-describedby",`${l()}-message`),Nl(h,n()),be(h,"id",l()),be(h,"name",d()),h.required=i(),Qu(h,p())}),mn("change",h,function(...b){var c;(c=g())==null||c.apply(this,b)}),Q(e,k),je(S)}var M3=Ce('<div class="tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]"><!></div>'),L3=Ce('<fieldset><legend class="tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"> </legend> <!> <span class="tw_col-start-2 tw_row-start-2"><!></span></fieldset>');function Oy(e,t){if(new.target)return Ge({component:Oy,...e});He(t,!1);let n=z(t,"defaultOption",12,null),r=z(t,"message",12,""),i=z(t,"groupLabel",12,""),l=z(t,"isFirstInvalidInput",12),d=z(t,"isRequired",12,!1),g=z(t,"isInvalid",12,!1),p=z(t,"key",12),_=z(t,"name",12),S=z(t,"onChange",12),k=z(t,"options",12),h=z(t,"showMessage",12,void 0);var y={get defaultOption(){return n()},set defaultOption(a){n(a),B()},get message(){return r()},set message(a){r(a),B()},get groupLabel(){return i()},set groupLabel(a){i(a),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(a){l(a),B()},get isRequired(){return d()},set isRequired(a){d(a),B()},get isInvalid(){return g()},set isInvalid(a){g(a),B()},get key(){return p()},set key(a){p(a),B()},get name(){return _()},set name(a){_(a),B()},get onChange(){return S()},set onChange(a){S(a),B()},get options(){return k()},set options(a){k(a),B()},get showMessage(){return h()},set showMessage(a){h(a),B()},$set:Ke,$on:(a,m)=>We(t,a,m)},b=L3(),c=de(b),u=de(c,!0);ce(c);var f=pe(c,2);Jn(f,1,k,Yn,(a,m)=>{var v=M3(),w=de(v);{let A=me(()=>(G(n()),C(m),Z(()=>n()===C(m).value))),E=me(()=>(G(p()),C(m),Z(()=>`${p()}-${C(m).value}`)));Ty(w,{get checked(){return C(A)},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get key(){return C(E)},get name(){return _()},get onChange(){return S()},get value(){return C(m),Z(()=>C(m).value)},children:(O,T)=>{Wt();var M=Vt();Pe(()=>wt(M,(C(m),Z(()=>C(m).text)))),Q(O,M)},$$slots:{default:!0}})}ce(v),Q(a,v)});var s=pe(f,2),o=de(s);{let a=me(()=>g()?"error":"info");Ui(o,{get dirtyMessage(){return r()},get key(){return p()},get showMessage(){return h()},get type(){return C(a)}})}return ce(s),ce(b),Pe(()=>wt(u,i())),Q(e,b),je(y)}var D3=Ce("<option> </option>"),N3=Ce("<!> <select></select> <!>",1);function Nf(e,t){if(new.target)return Ge({component:Nf,...e});He(t,!1);let n=z(t,"selectClasses",12,""),r=z(t,"defaultOption",12,null),i=z(t,"isFirstInvalidInput",12),l=z(t,"isRequired",12,!1),d=z(t,"isInvalid",12,!1),g=z(t,"key",12),p=z(t,"label",12),_=z(t,"labelClasses",12,""),S=z(t,"labelOrder",12,"first"),k=z(t,"onChange",12),h=z(t,"options",12),y=re(),b=re(!0);r()===null&&h()[0].text===p()&&Y(b,!1),Vn(()=>{i()&&C(y).focus()});function c(w){const A=w.target.value,E=h().find(O=>String(O.value)===A);Y(b,p()!==(E==null?void 0:E.text)),k()(w)}var u={get selectClasses(){return n()},set selectClasses(w){n(w),B()},get defaultOption(){return r()},set defaultOption(w){r(w),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(w){i(w),B()},get isRequired(){return l()},set isRequired(w){l(w),B()},get isInvalid(){return d()},set isInvalid(w){d(w),B()},get key(){return g()},set key(w){g(w),B()},get label(){return p()},set label(w){p(w),B()},get labelClasses(){return _()},set labelClasses(w){_(w),B()},get labelOrder(){return S()},set labelOrder(w){S(w),B()},get onChange(){return k()},set onChange(w){k(w),B()},get options(){return h()},set options(w){h(w),B()},$set:Ke,$on:(w,A)=>We(t,w,A)};ut();var f=N3(),s=qe(f);{var o=w=>{{let A=me(()=>`${_()}`);xi(w,{get key(){return g()},get classes(){return C(A)},children:(E,O)=>{Wt();var T=Vt();Pe(()=>wt(T,p())),Q(E,T)},$$slots:{default:!0}})}};Ze(s,w=>{S()==="first"&&w(o)})}var a=pe(s,2);Jn(a,5,h,Yn,(w,A)=>{var E=D3(),O=de(E,!0);ce(E);var T={};Pe(()=>{Dw(E,(C(A),G(r()),Z(()=>C(A).value===r()))),wt(O,(C(A),Z(()=>C(A).text))),T!==(T=(C(A),Z(()=>C(A).value)))&&(E.value=(E.__value=(C(A),Z(()=>C(A).value)))??"")}),Q(w,E)}),ce(a),an(a,w=>Y(y,w),()=>C(y));var m=pe(a,2);{var v=w=>{{let A=me(()=>`${C(b)?_():"tw_sr-only"}`);xi(w,{get key(){return g()},get classes(){return C(A)},children:(E,O)=>{Wt();var T=Vt();Pe(()=>wt(T,p())),Q(E,T)},$$slots:{default:!0}})}};Ze(m,w=>{S()==="last"&&w(v)})}return Pe(()=>{be(a,"aria-describedby",`${g()}-message`),be(a,"aria-invalid",d()),Ot(a,1,`${C(b)?n():""} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_select-base dark:tw_select-base_dark tw_w-full`),be(a,"id",g()),a.required=l()}),mn("change",a,c),Q(e,f),je(u)}var x3=Ce('<div class="tw_input-spacing tw_relative"><!> <!></div>');function tu(e,t){if(new.target)return Ge({component:tu,...e});He(t,!1);let n=z(t,"checkValidity",12,null),r=z(t,"defaultOption",12,null),i=z(t,"message",12,""),l=z(t,"isFirstInvalidInput",12),d=z(t,"isRequired",12,!1),g=z(t,"isInvalid",12,!1),p=z(t,"key",12),_=z(t,"label",12),S=z(t,"onChange",12),k=z(t,"options",12),h=z(t,"showMessage",12,void 0);function y(s){n()&&g(!n()(s)),S()(s)}var b={get checkValidity(){return n()},set checkValidity(s){n(s),B()},get defaultOption(){return r()},set defaultOption(s){r(s),B()},get message(){return i()},set message(s){i(s),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(s){l(s),B()},get isRequired(){return d()},set isRequired(s){d(s),B()},get isInvalid(){return g()},set isInvalid(s){g(s),B()},get key(){return p()},set key(s){p(s),B()},get label(){return _()},set label(s){_(s),B()},get onChange(){return S()},set onChange(s){S(s),B()},get options(){return k()},set options(s){k(s),B()},get showMessage(){return h()},set showMessage(s){h(s),B()},$set:Ke,$on:(s,o)=>We(t,s,o)};ut();var c=x3(),u=de(c);Nf(u,{get defaultOption(){return r()},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get isInvalid(){return g()},get key(){return p()},get label(){return _()},labelClasses:"tw_absolute tw_input-floating-label tw_select-floating-label",labelOrder:"last",onChange:y,get options(){return k()},selectClasses:"tw_select-floating"});var f=pe(u,2);{let s=me(()=>g()?"error":"info");Ui(f,{get dirtyMessage(){return i()},get key(){return p()},get showMessage(){return h()},get type(){return C(s)}})}return ce(c),Q(e,c),je(b)}var U3=Ce('<div class="tw_input-spacing"><!> <!></div>');function xf(e,t){if(new.target)return Ge({component:xf,...e});He(t,!1);let n=z(t,"checkValidity",12,null),r=z(t,"defaultOption",12,null),i=z(t,"message",12,""),l=z(t,"isFirstInvalidInput",12),d=z(t,"isRequired",12,!1),g=z(t,"isInvalid",12,!1),p=z(t,"key",12),_=z(t,"label",12),S=z(t,"onChange",12),k=z(t,"options",12),h=z(t,"showMessage",12,void 0);function y(s){n()&&g(!n()(s)),S()(s)}var b={get checkValidity(){return n()},set checkValidity(s){n(s),B()},get defaultOption(){return r()},set defaultOption(s){r(s),B()},get message(){return i()},set message(s){i(s),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(s){l(s),B()},get isRequired(){return d()},set isRequired(s){d(s),B()},get isInvalid(){return g()},set isInvalid(s){g(s),B()},get key(){return p()},set key(s){p(s),B()},get label(){return _()},set label(s){_(s),B()},get onChange(){return S()},set onChange(s){S(s),B()},get options(){return k()},set options(s){k(s),B()},get showMessage(){return h()},set showMessage(s){h(s),B()},$set:Ke,$on:(s,o)=>We(t,s,o)};ut();var c=U3(),u=de(c);Nf(u,{get defaultOption(){return r()},get isFirstInvalidInput(){return l()},get isRequired(){return d()},get isInvalid(){return g()},get key(){return p()},get label(){return _()},labelClasses:"tw_input-stacked-label",labelOrder:"first",onChange:y,get options(){return k()}});var f=pe(u,2);{let s=me(()=>g()?"error":"info");Ui(f,{get dirtyMessage(){return i()},get key(){return p()},get showMessage(){return h()},get type(){return C(s)}})}return ce(c),Q(e,c),je(b)}function Py(e,t){if(new.target)return Ge({component:Py,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().checksAndRadios==="standard"?Oy:Ay,p=d().labels==="stacked"?xf:tu;let _=re(),S=re(),k=re(),h=re(),y=re();function b(a){i().setChoiceIndex(Number(a.target.value))}vt(()=>(G(i()),G(l()),C(h)),()=>{var a,m,v,w,A;Y(_,(a=i().getChoices())==null?void 0:a.map((E,O)=>({text:Ee(fr(E),null,E),value:`${O}`}))),Y(y,`${i().getDefaultChoice()}`||null),Y(S,((w=(v=(m=i())==null?void 0:m.payload)==null?void 0:v.input)==null?void 0:w[0].name)||`choice-${(A=l())==null?void 0:A.idx}`),Y(h,i().getPrompt()),Y(k,Ee(fr(C(h)),null,C(h)))}),Tt();var c={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(a){i(a),B()},get callbackMetadata(){return l()},set callbackMetadata(a){l(a),B()},get style(){return d()},set style(a){d(a),B()},$set:Ke,$on:(a,m)=>We(t,a,m)};ut();var u=mt(),f=qe(u);{var s=a=>{{let m=me(()=>(G(l()),Z(()=>{var v;return((v=l())==null?void 0:v.derived.isFirstInvalidInput)||!1})));g(a,{get isFirstInvalidInput(){return C(m)},get defaultOption(){return C(y)},isRequired:!1,get key(){return C(S)},get groupLabel(){return C(h)},onChange:b,get name(){return C(S)},get options(){return C(_)}})}},o=a=>{{let m=me(()=>(G(l()),Z(()=>{var v;return((v=l())==null?void 0:v.derived.isFirstInvalidInput)||!1})));p(a,{get isFirstInvalidInput(){return C(m)},get defaultOption(){return C(y)},isRequired:!1,get key(){return C(S)},get label(){return C(k)},onChange:b,get options(){return C(_)}})}};Ze(f,a=>{G(l()),Z(()=>{var m,v;return((v=(m=l())==null?void 0:m.platform)==null?void 0:v.displayType)==="radio"})?a(s):a(o,-1)})}return Q(e,u),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(c)}var F3=Ce("<div><!></div>");function nu(e,t){if(new.target)return Ge({component:nu,...e});He(t,!1);let n=z(t,"num",12,2);function r(...g){return g.reduce((p,_)=>{switch(_){case 4:return`${p} md:tw_grid-cols-4`;case 3:return`${p} md:tw_grid-cols-3`;case 2:return`${p} md:tw_grid-cols-2`;default:return`${p} md:tw_grid-cols-1`}},"")}var i={get num(){return n()},set num(g){n(g),B()},$set:Ke,$on:(g,p)=>We(t,g,p)},l=F3(),d=de(l);return xt(d,t,"default",{},null),ce(l),Pe(g=>Ot(l,1,g),[()=>(G(n()),Z(()=>`${r(n())} tw_gap-4 tw_grid tw_grid-cols-1 tw_input-spacing`))]),Q(e,l),je(i)}function Ry(e,t){if(new.target)return Ge({component:Ry,...e});He(t,!1);const n={};let r=z(t,"callback",12),i=z(t,"callbackMetadata",12),l=z(t,"selfSubmitFunction",12,null),d=z(t,"stepMetadata",12);const g=n.checksAndRadios==="standard"?eu:Xc;let p=re(),_=re(r().getDefaultOption()),S=re(),k=re(),h=re();function y(v){r().setOptionIndex(v),i()&&i(i().derived.isReadyForSubmission=!0,!0),l()&&l()()}function b(v){r().setOptionIndex(Number(v.target.value))}function c(v){v.target.checked?r().setOptionIndex(0):r().setOptionIndex(C(_))}r().getInputValue()===0&&r().setOptionIndex(C(_)),vt(()=>(G(r()),G(i()),C(h),C(k),G(d())),()=>{var v,w,A,E,O,T,M;Y(S,((A=(w=(v=r())==null?void 0:v.payload)==null?void 0:w.input)==null?void 0:A[0].name)||`confirmation-${(E=i())==null?void 0:E.idx}`),Y(h,r().getOptions().map((P,x)=>({value:`${x}`,text:P}))),Y(_,r().getDefaultOption()),Y(k,Ee(fr("pleaseConfirm"),null,"Please Confirm")),(T=(O=i())==null?void 0:O.platform)!=null&&T.showOnlyPositiveAnswer&&Y(h,C(h).slice(0,1)),!((M=d())!=null&&M.derived.isStepSelfSubmittable())&&C(h).length>1?C(h).unshift({value:"",text:C(k)}):C(h).length===1?Y(p,"outline"):Y(p,"secondary")}),Tt();var u={style:n,get callback(){return r()},set callback(v){r(v),B()},get callbackMetadata(){return i()},set callbackMetadata(v){i(v),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(v){l(v),B()},get stepMetadata(){return d()},set stepMetadata(v){d(v),B()},$set:Ke,$on:(v,w)=>We(t,v,w)};ut();var f=mt(),s=qe(f);{var o=v=>{var w=mt(),A=qe(w);{var E=T=>{{let M=me(()=>(G(i()),Z(()=>{var P;return((P=i())==null?void 0:P.derived.isFirstInvalidInput)||!1})));tu(T,{get isFirstInvalidInput(){return C(M)},isRequired:!1,get key(){return C(S)},get label(){return C(k)},onChange:b,get options(){return C(h)}})}},O=T=>{{let M=me(()=>(G(i()),Z(()=>{var P;return((P=i())==null?void 0:P.derived.isFirstInvalidInput)||!1})));g(T,{get isFirstInvalidInput(){return C(M)},isInvalid:!1,get key(){return C(S)},onChange:c,value:!1,children:(P,x)=>{Wt();var I=Vt();Pe(()=>wt(I,(C(h),Z(()=>C(h)[0].text)))),Q(P,I)},$$slots:{default:!0}})}};Ze(A,T=>{C(h),Z(()=>C(h).length>1)?T(E):T(O,-1)})}Q(v,w)},a=Ji(()=>(G(d()),Z(()=>{var v;return!((v=d())!=null&&v.derived.isStepSelfSubmittable())}))),m=v=>{{let w=me(()=>(C(h),Z(()=>C(h).length>=2?2:1)));nu(v,{get num(){return C(w)},children:(A,E)=>{var O=mt(),T=qe(O);Jn(T,1,()=>C(h),Yn,(M,P)=>{{let x=me(()=>(C(h),C(_),C(P),C(p),Z(()=>C(h).length>1&&C(_)===Number(C(P).value)?"primary":C(p))));Un(M,{get style(){return C(x)},type:"button",width:"auto",onClick:()=>y(Number(C(P).value)),children:(I,D)=>{Wt();var V=Vt();Pe(()=>wt(V,(C(P),Z(()=>C(P).text)))),Q(I,V)},$$slots:{default:!0}})}}),Q(A,O)},$$slots:{default:!0}})}};Ze(s,v=>{C(a)?v(o):v(m,-1)})}return Q(e,f),lt(t,"style",n),je(u)}const B3=["userAgent","appName","appCodeName","appVersion","appMinorVersion","buildID","product","productSub","vendor","vendorSub","browserLanguage"],z3=["fontNames","displayProps","browserProps","hardwareProps","platformProps"],V3=30*1e3,H3={mac:["Macintosh","MacIntel","MacPPC","Mac68K"],windows:["Win32","Win64","Windows","WinCE"],ios:["iPhone","iPad","iPod"]},j3=["width","height","pixelDepth","orientation.angle"],q3=["cursive","monospace","serif","sans-serif","fantasy","Arial","Arial Black","Arial Narrow","Arial Rounded MT Bold","Bookman Old Style","Bradley Hand ITC","Century","Century Gothic","Comic Sans MS","Courier","Courier New","Georgia","Gentium","Impact","King","Lucida Console","Lalit","Modena","Monotype Corsiva","Papyrus","Tahoma","TeX","Times","Times New Roman","Trebuchet MS","Verdana","Verona"],G3=["cpuClass","deviceMemory","hardwareConcurrency","maxTouchPoints","oscpu"],W3=["language","platform","userLanguage","systemLanguage"];class K3{constructor(t,n="info",r="forgerock"){Je(this,"config");Je(this,"logger");Je(this,"prefix");this.logger=Ed({level:n}),this.prefix=r,this.config={fontNames:q3,devicePlatforms:H3,displayProps:j3,browserProps:B3,hardwareProps:G3,platformProps:W3},t&&Object.keys(t).forEach(i=>{if(!z3.includes(i))throw new Error("Device profile configuration category does not exist.");this.config[i]=t[i]})}getBrowserMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect browser metadata. navigator is not defined."),{}):uc(this.config.browserProps,navigator)}getBrowserPluginsNames(){return typeof navigator<"u"&&navigator.plugins?rC(Object.keys(navigator.plugins),navigator.plugins):(this.logger.warn("Cannot collect browser plugin information. navigator.plugins is not defined."),"")}getDeviceName(){if(typeof navigator>"u")return this.logger.warn("Cannot collect device name. navigator is not defined."),"";const t=navigator.userAgent,n=navigator.platform;switch(!0){case this.config.devicePlatforms.mac.includes(n):return"Mac (Browser)";case this.config.devicePlatforms.ios.includes(n):return`${n} (Browser)`;case this.config.devicePlatforms.windows.includes(n):return"Windows (Browser)";case(/Android/.test(n)||/Android/.test(t)):return"Android (Browser)";case(/CrOS/.test(t)||/Chromebook/.test(t)):return"Chrome OS (Browser)";case/Linux/.test(n):return"Linux (Browser)";default:return`${n||"Unknown"} (Browser)`}}getDisplayMeta(){return typeof screen>"u"?(this.logger.warn("Cannot collect screen information. screen is not defined."),{}):uc(this.config.displayProps,screen)}getHardwareMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect OS metadata. Navigator is not defined."),{}):uc(this.config.hardwareProps,navigator)}getIdentifier(){const t=`${this.prefix}-DeviceID`;if(!(typeof globalThis.crypto<"u"&&globalThis.crypto.getRandomValues))return this.logger.warn("Cannot generate profile ID. Crypto and/or getRandomValues is not supported."),"";if(!localStorage)return this.logger.warn("Cannot store profile ID. localStorage is not supported."),"";let n=localStorage.getItem(t);return n||(n=globalThis.crypto.getRandomValues(new Uint32Array(3)).join("-"),localStorage.setItem(t,n)),n}getInstalledFonts(){if(typeof document>"u")return this.logger.warn("Cannot collect font data. Global document object is undefined."),"";const t=document.createElement("canvas");if(!t)return this.logger.warn("Cannot collect font data. Browser does not support canvas element"),"";const n=t.getContext&&t.getContext("2d");if(!n)return this.logger.warn("Cannot collect font data. Browser does not support 2d canvas context"),"";const r="abcdefghi0123456789";n.font="72px Comic Sans";const i=n.measureText(r).width;return this.config.fontNames.reduce((d,g)=>(n.font=`72px ${g}, Comic Sans`,n.measureText(r).width!==i&&(d=`${d}${g};`),d),"")}async getLocationCoordinates(){return typeof navigator<"u"&&navigator.geolocation?new Promise(t=>{navigator.geolocation.getCurrentPosition(n=>t({latitude:n.coords.latitude,longitude:n.coords.longitude}),()=>{this.logger.warn("Cannot collect geolocation information. Geolocation API error."),t({})},{enableHighAccuracy:!0,timeout:V3,maximumAge:0})}):(this.logger.warn("Cannot collect geolocation information. navigator.geolocation is not defined."),Promise.resolve({}))}getOSMeta(){return typeof navigator>"u"?(this.logger.warn("Cannot collect OS metadata. navigator is not defined."),{}):uc(this.config.platformProps,navigator)}getTimezoneOffset(){try{return new Date().getTimezoneOffset()}catch{return this.logger.warn("Cannot collect timezone information. getTimezoneOffset is not defined."),null}}async getProfile({location:t,metadata:n}){const r={identifier:this.getIdentifier()};return n&&(r.metadata={hardware:{...this.getHardwareMeta(),display:this.getDisplayMeta()},browser:{...this.getBrowserMeta(),plugins:this.getBrowserPluginsNames()},platform:{...this.getOSMeta(),deviceName:this.getDeviceName(),fonts:this.getInstalledFonts(),timezone:this.getTimezoneOffset()}}),t&&(r.location=await this.getLocationCoordinates()),r}}var $3=Ce("<p><!></p>");function Hs(e,t){if(new.target)return Ge({component:Hs,...e});He(t,!1);let n=z(t,"classes",12,"");var r={get classes(){return n()},set classes(d){n(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},i=$3(),l=de(i);return xt(l,t,"default",{},null),ce(i),Pe(()=>Ot(i,1,`${n()} tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing`)),Q(e,i),je(r)}var Z3=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!> <!></div>');function My(e,t){if(new.target)return Ge({component:My,...e});He(t,!1);let n=z(t,"callback",12),r=z(t,"callbackMetadata",12,null),i=z(t,"stepMetadata",12,null),l=z(t,"selfSubmitFunction",12);const d=new K3({});let g=n().getMessage();async function p(){var u,f;const y=((u=n())==null?void 0:u.isLocationRequired())??!1,b=((f=n())==null?void 0:f.isMetadataRequired())??!1,c=await d.getProfile({location:y,metadata:b});return n().setProfile(c),r()&&r(r().derived.isReadyForSubmission=!0,!0),l()&&l()()}p();var _={get callback(){return n()},set callback(y){n(y),B()},get callbackMetadata(){return r()},set callbackMetadata(y){r(y),B()},get stepMetadata(){return i()},set stepMetadata(y){i(y),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(y){l(y),B()},$set:Ke,$on:(y,b)=>We(t,y,b)};ut();var S=mt(),k=qe(S);{var h=y=>{var b=Z3(),c=de(b);gr(c,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var u=pe(c,2);Hs(u,{children:(f,s)=>{Wt();var o=Vt();Pe(()=>wt(o,g)),Q(f,o)},$$slots:{default:!0}}),ce(b),Q(y,b)};Ze(k,y=>{G(i()),Z(()=>{var b;return((b=i())==null?void 0:b.derived.numOfCallbacks)===1})&&y(h)})}return Q(e,S),je(_)}function Ly(e,t){if(new.target)return Ge({component:Ly,...e});He(t,!1);const n=null,r=null,i=null,l=null,d={};var g={callback:n,callbackMetadata:r,selfSubmitFunction:i,stepMetadata:l,style:d,$set:Ke,$on:(p,_)=>We(t,p,_)};return lt(t,"callback",n),lt(t,"callbackMetadata",r),lt(t,"selfSubmitFunction",i),lt(t,"stepMetadata",l),lt(t,"style",d),je(g)}var Y3=Ce('<input type="date"/>'),J3=Ce('<input type="email"/>'),X3=Ce('<input type="number"/>'),Q3=Ce('<input type="password"/>'),eO=Ce('<input type="phone"/>'),tO=Ce('<input type="text"/>'),nO=Ce("<!> <!> <!> <!> <!> <!> <!> <!>",1);function Uf(e,t){if(new.target)return Ge({component:Uf,...e});He(t,!1);let n=z(t,"autocomplete",12,void 0),r=z(t,"forceValidityFailure",12,!1),i=z(t,"isFirstInvalidInput",12),l=z(t,"inputClasses",12,""),d=z(t,"key",12),g=z(t,"label",12),p=z(t,"labelClasses",12,""),_=z(t,"labelOrder",12,"first"),S=z(t,"onChange",12),k=z(t,"placeholder",12," "),h=z(t,"isRequired",12,!1),y=z(t,"isInvalid",12,null),b=z(t,"type",12,"text"),c=z(t,"value",12,""),u=re();Vn(()=>{i()&&C(u).focus()});var f={get autocomplete(){return n()},set autocomplete(L){n(L),B()},get forceValidityFailure(){return r()},set forceValidityFailure(L){r(L),B()},get isFirstInvalidInput(){return i()},set isFirstInvalidInput(L){i(L),B()},get inputClasses(){return l()},set inputClasses(L){l(L),B()},get key(){return d()},set key(L){d(L),B()},get label(){return g()},set label(L){g(L),B()},get labelClasses(){return p()},set labelClasses(L){p(L),B()},get labelOrder(){return _()},set labelOrder(L){_(L),B()},get onChange(){return S()},set onChange(L){S(L),B()},get placeholder(){return k()},set placeholder(L){k(L),B()},get isRequired(){return h()},set isRequired(L){h(L),B()},get isInvalid(){return y()},set isInvalid(L){y(L),B()},get type(){return b()},set type(L){b(L),B()},get value(){return c()},set value(L){c(L),B()},$set:Ke,$on:(L,U)=>We(t,L,U)};ut();var s=nO(),o=qe(s);{var a=L=>{{let U=me(()=>`${p()} tw_w-full tw_ml-1`);xi(L,{get key(){return d()},get classes(){return C(U)},children:(F,W)=>{Wt();var J=Vt();Pe(()=>wt(J,g())),Q(F,J)},$$slots:{default:!0}})}};Ze(o,L=>{_()==="first"&&L(a)})}var m=pe(o,2);{var v=L=>{var U=Y3();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(m,L=>{b()==="date"&&L(v)})}var w=pe(m,2);{var A=L=>{var U=J3();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(w,L=>{b()==="email"&&L(A)})}var E=pe(w,2);{var O=L=>{var U=X3();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(E,L=>{b()==="number"&&L(O)})}var T=pe(E,2);{var M=L=>{var U=Q3();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(T,L=>{b()==="password"&&L(M)})}var P=pe(T,2);{var x=L=>{var U=eO();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(P,L=>{b()==="phone"&&L(x)})}var I=pe(P,2);{var D=L=>{var U=tO();Vr(U),an(U,F=>Y(u,F),()=>C(u)),Pe(()=>{be(U,"aria-describedby",`${d()}-message`),be(U,"aria-invalid",y()),be(U,"autocomplete",n()),Ot(U,1,`${l()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),be(U,"data-force-validity-failure",r()),be(U,"id",d()),be(U,"placeholder",k()),U.required=h()}),mn("change",U,function(...F){var W;(W=S())==null||W.apply(this,F)}),ks(U,c),Q(L,U)};Ze(I,L=>{b()==="text"&&L(D)})}var V=pe(I,2);{var j=L=>{{let U=me(()=>`${p()}`);xi(L,{get key(){return d()},get classes(){return C(U)},children:(F,W)=>{Wt();var J=Vt();Pe(()=>wt(J,g())),Q(F,J)},$$slots:{default:!0}})}};Ze(V,L=>{_()==="last"&&L(j)})}return Q(e,s),je(f)}var rO=Ce('<div class="tw_justify-items-stretch tw_flex tw_input-spacing tw_relative tw_flex-wrap"><!> <!> <div class="tw_w-full"><!> <!></div></div>');function Fi(e,t){if(new.target)return Ge({component:Fi,...e});He(t,!1);let n=z(t,"autocomplete",12,void 0),r=z(t,"checkValidity",12,null),i=z(t,"forceValidityFailure",12,!1),l=z(t,"message",12,""),d=z(t,"isFirstInvalidInput",12),g=z(t,"hasRightIcon",12,!1),p=z(t,"isRequired",12,!1),_=z(t,"isInvalid",12,!1),S=z(t,"key",12),k=z(t,"label",12),h=z(t,"onChange",12),y=z(t,"showMessage",12,void 0),b=z(t,"type",12,"text"),c=z(t,"value",12,"");function u(A){r()&&_(!r()(A)),h()(A)}var f={get autocomplete(){return n()},set autocomplete(A){n(A),B()},get checkValidity(){return r()},set checkValidity(A){r(A),B()},get forceValidityFailure(){return i()},set forceValidityFailure(A){i(A),B()},get message(){return l()},set message(A){l(A),B()},get isFirstInvalidInput(){return d()},set isFirstInvalidInput(A){d(A),B()},get hasRightIcon(){return g()},set hasRightIcon(A){g(A),B()},get isRequired(){return p()},set isRequired(A){p(A),B()},get isInvalid(){return _()},set isInvalid(A){_(A),B()},get key(){return S()},set key(A){S(A),B()},get label(){return k()},set label(A){k(A),B()},get onChange(){return h()},set onChange(A){h(A),B()},get showMessage(){return y()},set showMessage(A){y(A),B()},get type(){return b()},set type(A){b(A),B()},get value(){return c()},set value(A){c(A),B()},$set:Ke,$on:(A,E)=>We(t,A,E)};ut();var s=rO(),o=de(s);{let A=me(()=>`tw_input-floating dark:tw_input-floating_dark ${g()?"!tw_border-r-0 !tw_rounded-r-none tw_input-has-button":""}`);Uf(o,{get autocomplete(){return n()},get forceValidityFailure(){return i()},get isFirstInvalidInput(){return d()},get inputClasses(){return C(A)},get key(){return S()},onChange:u,get label(){return k()},labelClasses:"tw_absolute tw_border tw_border-transparent tw_input-floating-label",labelOrder:"last",get isRequired(){return p()},get isInvalid(){return _()},get type(){return b()},get value(){return c()},set value(E){c(E)},$$legacy:!0})}var a=pe(o,2);xt(a,t,"input-button",{},null);var m=pe(a,2),v=de(m);{let A=me(()=>_()?"error":"info");Ui(v,{get dirtyMessage(){return l()},get showMessage(){return y()},get type(){return C(A)}})}var w=pe(v,2);return xt(w,t,"default",{},null),ce(m),ce(s),Pe(()=>be(m,"id",`${S()}-message`)),Q(e,s),je(f)}var iO=Ce('<div class="tw_input-spacing tw_flex tw_flex-wrap"><!> <!> <div class="tw_w-full"><!> <!></div></div>');function Sa(e,t){if(new.target)return Ge({component:Sa,...e});He(t,!1);let n=z(t,"autocomplete",12,void 0),r=z(t,"checkValidity",12,null),i=z(t,"forceValidityFailure",12,!1),l=z(t,"isFirstInvalidInput",12),d=z(t,"hasRightIcon",12,!1),g=z(t,"message",12,""),p=z(t,"isRequired",12,!1),_=z(t,"isInvalid",12,!1),S=z(t,"key",12),k=z(t,"label",12),h=z(t,"onChange",12),y=z(t,"placeholder",12,void 0),b=z(t,"showMessage",12,void 0),c=z(t,"type",12,"text"),u=z(t,"value",12,"");function f(E){r()&&_(!r()(E)),h()(E)}var s={get autocomplete(){return n()},set autocomplete(E){n(E),B()},get checkValidity(){return r()},set checkValidity(E){r(E),B()},get forceValidityFailure(){return i()},set forceValidityFailure(E){i(E),B()},get isFirstInvalidInput(){return l()},set isFirstInvalidInput(E){l(E),B()},get hasRightIcon(){return d()},set hasRightIcon(E){d(E),B()},get message(){return g()},set message(E){g(E),B()},get isRequired(){return p()},set isRequired(E){p(E),B()},get isInvalid(){return _()},set isInvalid(E){_(E),B()},get key(){return S()},set key(E){S(E),B()},get label(){return k()},set label(E){k(E),B()},get onChange(){return h()},set onChange(E){h(E),B()},get placeholder(){return y()},set placeholder(E){y(E),B()},get showMessage(){return b()},set showMessage(E){b(E),B()},get type(){return c()},set type(E){c(E),B()},get value(){return u()},set value(E){u(E),B()},$set:Ke,$on:(E,O)=>We(t,E,O)};ut();var o=iO(),a=de(o);{let E=me(()=>`${d()?"!tw_border-r-0 !tw_rounded-r-none":""}`);Uf(a,{get autocomplete(){return n()},get forceValidityFailure(){return i()},get isFirstInvalidInput(){return l()},get inputClasses(){return C(E)},get key(){return S()},onChange:f,get label(){return k()},labelClasses:"tw_input-stacked-label",labelOrder:"first",get placeholder(){return y()},get isRequired(){return p()},get isInvalid(){return _()},get type(){return c()},get value(){return u()},set value(O){u(O)},$$legacy:!0})}var m=pe(a,2);xt(m,t,"input-button",{},null);var v=pe(m,2),w=de(v);{let E=me(()=>_()?"error":"info");Ui(w,{get key(){return S()},get dirtyMessage(){return g()},get showMessage(){return b()},get type(){return C(E)}})}var A=pe(w,2);return xt(A,t,"default",{},null),ce(v),ce(o),Pe(()=>be(v,"id",`${S()}-message`)),Q(e,o),je(s)}var aO=kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path><title><!></title></svg>');function Dy(e,t){if(new.target)return Ge({component:Dy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=aO(),d=pe(de(l),2),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var sO=Ce('<fieldset class="tw_kba-fieldset tw_input-spacing dark:tw_kba-fieldset_dark"><legend class="tw_sr-only"><!></legend> <h2 class="dark:tw_secondary-header_dark tw_font-semibold tw_mb-4"><!></h2> <span class="tw_kba-lock-icon dark:tw_kba-lock-icon_dark"><!></span> <!> <!> <!></fieldset>');function Ny(e,t){if(new.target)return Ge({component:Ny,...e});He(t,!1);const n=()=>sr(m,"$value",r),[r,i]=Or(),l=null,d=null;let g=z(t,"callback",12),p=z(t,"callbackMetadata",12),_=z(t,"style",28,()=>({}));const S=_().labels==="stacked"?Sa:Fi,k=_().labels==="stacked"?xf:tu;let h=re(null),y=re(!1),b=re(),c=re(),u=re(),f=re(),s=re(),o=re(),a=re(),m=or("");try{Y(a,g().getOutputValue("allowUserDefinedQuestions"))}catch{console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}function v(W){g().setAnswer(W.target.value)}function w(W){const J=W.target.value;J===C(h)?(Y(y,!0),m.set(""),g().setAnswer("")):(Y(y,!1),g().setQuestion(J))}function A(W){const J=W.target.value;g().setQuestion(J)}vt(()=>(C(b),G(g()),C(c),G(p()),C(s),C(o),C(a),C(h),Ee),()=>{var W,J,$,ne,ae,te,ie;Y(b,(J=(W=g())==null?void 0:W.payload)==null?void 0:J.input),Y(c,((ae=(ne=($=g())==null?void 0:$.payload)==null?void 0:ne.input)==null?void 0:ae[0].name)||`kba-${(te=p())==null?void 0:te.idx}`),Y(u,C(c)),Y(f,Array.isArray(C(b))&&C(b)[1].name),Y(s,g().getPrompt()),Y(o,(ie=g().getPredefinedQuestions())==null?void 0:ie.map((Se,_e)=>({text:Se,value:`${_e}`})));try{Y(a,g().getOutputValue("allowUserDefinedQuestions"))}catch{console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}C(o).unshift({text:C(s),value:""}),C(a)&&(Y(h,`${C(o).length-1}`),C(o).push({text:Ee("provideCustomQuestion"),value:C(h)}))}),Tt();var E={selfSubmitFunction:l,stepMetadata:d,get callback(){return g()},set callback(W){g(W),B()},get callbackMetadata(){return p()},set callbackMetadata(W){p(W),B()},get style(){return _()},set style(W){_(W),B()},$set:Ke,$on:(W,J)=>We(t,W,J)};ut();var O=sO(),T=de(O),M=de(T);dt(M,{key:"securityQuestions"}),ce(T);var P=pe(T,2),x=de(P);dt(x,{key:"securityQuestionsPrompt"}),ce(P);var I=pe(P,2),D=de(I);Dy(D,{size:"18"}),ce(I);var V=pe(I,2);k(V,{isFirstInvalidInput:!1,isRequired:!0,get key(){return C(u)},get label(){return C(s)},onChange:w,get options(){return C(o)}});var j=pe(V,2);{var L=W=>{{let J=me(()=>(G(p()),Z(()=>{var ae;return`kba-custom-question-${(ae=p())==null?void 0:ae.idx}`}))),$=me(()=>(G(Ee),Z(()=>Ee("customSecurityQuestion")))),ne=me(()=>(G(Ee),Z(()=>Ee("inputRequiredError"))));S(W,{isFirstInvalidInput:!1,isRequired:!0,get key(){return C(J)},get label(){return C($)},showMessage:!1,get message(){return C(ne)},onChange:A,type:"text"})}};Ze(j,W=>{C(y)&&W(L)})}var U=pe(j,2);{let W=me(()=>(G(p()),Z(()=>{var ae;return((ae=p())==null?void 0:ae.derived.isFirstInvalidInput)||!1}))),J=me(()=>(C(f),G(p()),Z(()=>{var ae;return C(f)||`kba-answer-${(ae=p())==null?void 0:ae.idx}`}))),$=me(()=>(G(Ee),Z(()=>Ee("securityAnswer")))),ne=me(()=>(G(Ee),Z(()=>Ee("inputRequiredError"))));S(U,{get isFirstInvalidInput(){return C(W)},isRequired:!0,get key(){return C(J)},get label(){return C($)},showMessage:!1,get message(){return C(ne)},onChange:v,type:"text",get value(){return Fw(),n()},set value(ae){Uw(m,ae)},$$legacy:!0})}ce(O),Q(e,O),lt(t,"selfSubmitFunction",l),lt(t,"stepMetadata",d);var F=je(E);return i(),F}function xy(e,t){if(new.target)return Ge({component:xy,...e});He(t,!1);const n=null,r=null,i=null,l=null,d={};var g={callback:n,callbackMetadata:r,selfSubmitFunction:i,stepMetadata:l,style:d,$set:Ke,$on:(p,_)=>We(t,p,_)};return lt(t,"callback",n),lt(t,"callbackMetadata",r),lt(t,"selfSubmitFunction",i),lt(t,"stepMetadata",l),lt(t,"style",d),je(g)}var oO=kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path><title><!></title></svg>'),lO=kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" fill="none"></path><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"></path><title><!></title></svg>');function Ff(e,t){if(new.target)return Ge({component:Ff,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px"),i=z(t,"visible",12,!1);var l={get classes(){return n()},set classes(S){n(S),B()},get size(){return r()},set size(S){r(S),B()},get visible(){return i()},set visible(S){i(S),B()},$set:Ke,$on:(S,k)=>We(t,S,k)},d=mt(),g=qe(d);{var p=S=>{var k=oO(),h=pe(de(k),2),y=de(h);xt(y,t,"default",{},null),ce(h),ce(k),Pe(()=>{Ot(k,0,Cn(n())),be(k,"height",r()),be(k,"width",r())}),Q(S,k)},_=S=>{var k=lO(),h=pe(de(k),2),y=de(h);xt(y,t,"default",{},null),ce(h),ce(k),Pe(()=>{Ot(k,0,Cn(n())),be(k,"height",r()),be(k,"width",r())}),Q(S,k)};Ze(g,S=>{i()?S(_,-1):S(p)})}return Q(e,d),je(l)}var cO=Ce('<button class="tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark" type="button"><!></button>'),uO=Ce('<div class="tw_w-full tw_input-spacing"><!></div>'),dO=Ce("<!> <!>",1);function Uy(e,t){if(new.target)return Ge({component:Uy,...e});He(t,!1);let n=z(t,"forceValidityFailure",12,!1),r=z(t,"passwordsDoNotMatch",12,!1),i=z(t,"isRequired",12,!1),l=z(t,"key",12),d=z(t,"onChange",12),g=z(t,"resetValue",12),p=z(t,"style",28,()=>({})),_=z(t,"isFirstInvalidInput",12);const S=p().labels==="stacked"?Sa:Fi,k=p().showPassword;let h=z(t,"showMessage",12,void 0),y=re(!1),b=re("password"),c=re(),u=re("");function f(A){var E;Y(c,(E=A.target)==null?void 0:E.value),d()(typeof C(c)=="string"?C(c):void 0)}function s(){Y(y,!C(y)),Y(b,C(y)?"text":"password")}vt(()=>(G(g()),C(c),G(d()),G(r()),G(i())),()=>{g()&&(Y(c,void 0),d()(C(c))),r()?Y(u,Ee("passwordConfirmationError",null,"Passwords do not match")):i()?Y(u,Ee("requiredField",null,"This field is required")):Y(u,"")}),Tt();var o={get forceValidityFailure(){return n()},set forceValidityFailure(A){n(A),B()},get passwordsDoNotMatch(){return r()},set passwordsDoNotMatch(A){r(A),B()},get isRequired(){return i()},set isRequired(A){i(A),B()},get key(){return l()},set key(A){l(A),B()},get onChange(){return d()},set onChange(A){d(A),B()},get resetValue(){return g()},set resetValue(A){g(A),B()},get style(){return p()},set style(A){p(A),B()},get isFirstInvalidInput(){return _()},set isFirstInvalidInput(A){_(A),B()},get showMessage(){return h()},set showMessage(A){h(A),B()},$set:Ke,$on:(A,E)=>We(t,A,E)};ut();var a=dO(),m=qe(a);{let A=me(()=>(G(p()),Z(()=>p().showPassword==="button"))),E=me(()=>`${l()}-confirm`),O=me(()=>(G(Ee),Z(()=>Ee("confirmPassword",null,"Confirm Password")))),T=me(()=>typeof C(c)=="string"?C(c):"");S(m,{get forceValidityFailure(){return n()},isFirstInvalidInput:!1,get hasRightIcon(){return C(A)},get key(){return C(E)},get label(){return C(O)},get message(){return C(u)},onChange:f,get isInvalid(){return r()},get isRequired(){return i()},get showMessage(){return h()},get type(){return C(b)},get value(){return C(T)},children:(M,P)=>{var x=mt(),I=qe(x);xt(I,t,"default",{},null),Q(M,x)},$$slots:{"input-button":(M,P)=>{var x=mt(),I=qe(x);{var D=V=>{var j=cO(),L=de(j);Ff(L,{classes:"tw_password-icon dark:tw_password-icon_dark",get visible(){return C(y)},children:(U,F)=>{dt(U,{key:"showPassword"})},$$slots:{default:!0}}),ce(j),mn("click",j,s),Q(V,j)};Ze(I,V=>{k==="button"&&V(D)})}Q(M,x)},default:!0}})}var v=pe(m,2);{var w=A=>{var E=uO(),O=de(E);{let T=me(()=>(G(l()),G(p()),Z(()=>l()+p().showPassword)));Qc(O,{get isFirstInvalidInput(){return _()},isInvalid:!1,get key(){return C(T)},onChange:s,value:!1,children:(M,P)=>{Wt();var x=Vt("Show Password");Q(M,x)},$$slots:{default:!0}})}ce(E),Q(A,E)};Ze(v,A=>{k==="checkbox"&&A(w)})}return Q(e,a),je(o)}var fO=Ce('<button class="tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark" type="button"><!></button>'),hO=Ce('<div class="tw_w-full tw_input-spacing"><!></div>'),gO=Ce("<!> <!> <!>",1);function Bf(e,t){if(new.target)return Ge({component:Bf,...e});He(t,!1);let n=z(t,"callback",12),r=z(t,"callbackMetadata",12),i=z(t,"key",12),l=z(t,"isInvalid",12,!1),d=z(t,"isRequired",12,!1),g=z(t,"style",28,()=>({}));const p=g().labels==="stacked"?Sa:Fi,_=g().showPassword;let S=z(t,"showMessage",12,void 0),k=z(t,"validationFailure",12,""),h=re(),y=re(),b=re(),c=re(!1),u=re(!1),f=re(""),s=re(),o=re("password"),a=re();function m(T){Y(h,T)}function v(T){Y(a,T.target.value),n().setInputValue(C(a)),Y(f,String(C(a)))}function w(){Y(c,!C(c)),Y(o,C(c)?"text":"password")}vt(()=>(G(n()),G(r()),C(a),C(f),C(h)),()=>{var T,M,P,x,I;Y(y,n().getType()),i(((P=(M=(T=n())==null?void 0:T.payload)==null?void 0:M.input)==null?void 0:P[0].name)||`password-${(x=r())==null?void 0:x.idx}`),Y(s,n().getPrompt()),Y(a,(I=n())==null?void 0:I.getInputValue()),Y(u,!!C(f)&&C(a)===""),Y(b,C(h)!==void 0?C(h)===C(a):void 0)}),Tt();var A={get callback(){return n()},set callback(T){n(T),B()},get callbackMetadata(){return r()},set callbackMetadata(T){r(T),B()},get key(){return i()},set key(T){i(T),B()},get isInvalid(){return l()},set isInvalid(T){l(T),B()},get isRequired(){return d()},set isRequired(T){d(T),B()},get style(){return g()},set style(T){g(T),B()},get showMessage(){return S()},set showMessage(T){S(T),B()},get validationFailure(){return k()},set validationFailure(T){k(T),B()},$set:Ke,$on:(T,M)=>We(t,T,M)};ut();var E=mt(),O=qe(E);return ja(O,n,T=>{var M=gO(),P=qe(M);{let j=me(()=>(G(r()),Z(()=>{var J;return((J=r())==null?void 0:J.derived.isFirstInvalidInput)||!1}))),L=me(()=>(G(g()),Z(()=>g().showPassword==="button"))),U=me(()=>(G(Ee),G(fr),C(y),C(s),Z(()=>Ee(fr(C(y)),null,C(s))))),F=me(()=>(G(k()),G(d()),G(Ee),Z(()=>k()||(d()?Ee("inputRequiredError"):void 0)))),W=me(()=>typeof C(a)=="string"?C(a):"");p(P,{get isFirstInvalidInput(){return C(j)},get hasRightIcon(){return C(L)},get key(){return i()},get label(){return C(U)},get message(){return C(F)},onChange:v,get isInvalid(){return l()},get isRequired(){return d()},get showMessage(){return S()},get type(){return C(o)},get value(){return C(W)},children:(J,$)=>{var ne=mt(),ae=qe(ne);xt(ae,t,"default",{},null),Q(J,ne)},$$slots:{default:!0,"input-button":(J,$)=>{var ne=mt(),ae=qe(ne);{var te=ie=>{var Se=fO(),_e=de(Se);Ff(_e,{classes:"tw_password-icon dark:tw_password-icon_dark",get visible(){return C(c)},children:(Ne,et)=>{dt(Ne,{key:"showPassword"})},$$slots:{default:!0}}),ce(Se),mn("click",Se,w),Q(ie,Se)};Ze(ae,ie=>{_==="button"&&ie(te)})}Q(J,ne)}}})}var x=pe(P,2);{var I=j=>{var L=hO(),U=de(L);{let F=me(()=>(G(r()),Z(()=>{var J;return((J=r())==null?void 0:J.derived.isFirstInvalidInput)||!1}))),W=me(()=>(G(i()),G(g()),Z(()=>i()+g().showPassword)));Qc(U,{get isFirstInvalidInput(){return C(F)},isInvalid:!1,get key(){return C(W)},onChange:w,value:!1,children:(J,$)=>{Wt();var ne=Vt("Show Password");Q(J,ne)},$$slots:{default:!0}})}ce(L),Q(j,L)};Ze(x,j=>{_==="checkbox"&&j(I)})}var D=pe(x,2);{var V=j=>{{let L=me(()=>C(b)===!1),U=me(()=>C(b)===!1),F=me(()=>(C(a),Z(()=>C(a).length>0))),W=me(()=>C(b)===!1),J=me(()=>(G(r()),Z(()=>{var $;return(($=r())==null?void 0:$.derived.isFirstInvalidInput)||!1})));Uy(j,{get forceValidityFailure(){return C(L)},get passwordsDoNotMatch(){return C(U)},get key(){return i()},get isRequired(){return C(F)},onChange:m,get resetValue(){return C(u)},get showMessage(){return C(W)},get style(){return g()},get isFirstInvalidInput(){return C(J)}})}};Ze(D,j=>{G(r()),Z(()=>{var L,U;return(U=(L=r())==null?void 0:L.platform)==null?void 0:U.confirmPassword})&&j(V)})}Q(T,M)}),Q(e,E),je(A)}function Fy(e,t){if(new.target)return Ge({component:Fy,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({})),g=re();vt(()=>(G(i()),G(l())),()=>{var _,S,k,h;i(i()),Y(g,((k=(S=(_=i())==null?void 0:_.payload)==null?void 0:S.input)==null?void 0:k[0].name)||`password-${(h=l())==null?void 0:h.idx}`)}),Tt();var p={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(_){i(_),B()},get callbackMetadata(){return l()},set callbackMetadata(_){l(_),B()},get style(){return d()},set style(_){d(_),B()},$set:Ke,$on:(_,S)=>We(t,_,S)};return ut(),Bf(e,{get callback(){return i()},get callbackMetadata(){return l()},get style(){return d()},get key(){return C(g)}}),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(p)}var pO=Ce('<li class="tw_list-disc"> </li>'),mO=Ce('<div class="tw_input-policies tw_w-full"><p class="tw_text-error-dark dark:tw_text-error-light tw_w-full"><!></p> <ul class="tw_text-error-dark dark:tw_text-error-light tw_w-full"></ul></div>'),vO=Ce('<li class="tw_list-disc"> </li>'),yO=Ce('<div class="tw_input-policies tw_w-full"><p class="tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"><!></p> <ul class="tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"></ul></div>');function ru(e,t){if(new.target)return Ge({component:ru,...e});He(t,!1);let n=z(t,"callback",12),r=z(t,"key",12,void 0),i=z(t,"label",12),l=z(t,"messageKey",12),d=z(t,"showPolicies",12,!1),g=re(ba(n(),i())),p=re(Lf(n().getPolicies())),_=re(C(g).reduce((c,u)=>(c=c.concat(u.restructured),c),[]));vt(()=>(C(g),G(n()),G(i()),Lf),()=>{Y(g,ba(n(),i())),Y(p,Lf(n().getPolicies())),Y(_,C(g).reduce((c,u)=>(c=c.concat(u.restructured),c),[]))}),Tt();var S={get callback(){return n()},set callback(c){n(c),B()},get key(){return r()},set key(c){r(c),B()},get label(){return i()},set label(c){i(c),B()},get messageKey(){return l()},set messageKey(c){l(c),B()},get showPolicies(){return d()},set showPolicies(c){d(c),B()},$set:Ke,$on:(c,u)=>We(t,c,u)};ut();var k=mt(),h=qe(k);{var y=c=>{var u=mO(),f=de(u),s=de(f);dt(s,{get key(){return l()}}),ce(f);var o=pe(f,2);Jn(o,5,()=>C(_),Yn,(a,m)=>{var v=pO(),w=de(v,!0);ce(v),Pe(()=>wt(w,(C(m),Z(()=>C(m).message)))),Q(a,v)}),ce(o),ce(u),Pe(()=>be(u,"id",`${r()?`${r()}-message`:""}`)),Q(c,u)},b=c=>{var u=yO(),f=de(u),s=de(f);dt(s,{get key(){return l()}}),ce(f);var o=pe(f,2);Jn(o,5,()=>C(p),Yn,(a,m)=>{var v=vO(),w=de(v,!0);ce(v),Pe(()=>wt(w,(C(m),Z(()=>C(m).message)))),Q(a,v)}),ce(o),ce(u),Pe(()=>be(u,"id",`${r()?`${r()}-message`:""}`)),Q(c,u)};Ze(h,c=>{C(_),Z(()=>C(_).length)?c(y):(G(d()),C(p),Z(()=>d()&&C(p).length)&&c(b,1))})}return Q(e,k),je(S)}function By(e,t){if(new.target)return Ge({component:By,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=Df(i());let p=re(),_=re(),S=re(),k=re();vt(()=>(G(i()),G(l()),C(S),C(k),ba),()=>{var c,u,f,s;Y(p,((f=(u=(c=i())==null?void 0:c.payload)==null?void 0:u.input)==null?void 0:f[0].name)||`password-${(s=l())==null?void 0:s.idx}`),Y(S,i().getPrompt()),Y(k,ba(i(),C(S))),Y(_,!!C(k).length)}),Tt();var h={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(c){i(c),B()},get callbackMetadata(){return l()},set callbackMetadata(c){l(c),B()},get style(){return d()},set style(c){d(c),B()},$set:Ke,$on:(c,u)=>We(t,c,u)};ut();var y=mt(),b=qe(y);return ja(b,i,c=>{Bf(c,{get callback(){return i()},get callbackMetadata(){return l()},get isInvalid(){return C(_)},get isRequired(){return g},get key(){return C(p)},get showMessage(){return C(_)},get style(){return d()},children:(u,f)=>{ru(u,{get callback(){return i()},get label(){return C(S)},messageKey:"passwordRequirements",showPolicies:!0})},$$slots:{default:!0}})}),Q(e,y),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(h)}var _O=Ce("<p><!></p>"),wO=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!></div>');function zy(e,t){if(new.target)return Ge({component:zy,...e});He(t,!1);let n=z(t,"callback",12),r=z(t,"selfSubmitFunction",12,null),i=z(t,"pingProtect",28,()=>({envId:""})),l=re(!1);Hr(()=>{async function _(){const S=await va.getData();return S&&typeof S=="object"&&"error"in S?n().setClientError(S.error):n().setData(S),r()&&r()()}_()}),vt(()=>(C(l),G(i()),G(n())),()=>{var _;if(Y(l,((_=i())==null?void 0:_.behavioralDataCollection)??!1),typeof window<"u")if(C(l)===!0){const S=va.pauseBehavioralData();S&&"error"in S&&n().setClientError(S.error)}else{const S=va.resumeBehavioralData();S&&"error"in S&&n().setClientError(S.error)}}),Tt();var d={get callback(){return n()},set callback(_){n(_),B()},get selfSubmitFunction(){return r()},set selfSubmitFunction(_){r(_),B()},get pingProtect(){return i()},set pingProtect(_){i(_),B()},$set:Ke,$on:(_,S)=>We(t,_,S)};ut();var g=wO(),p=de(g);return gr(p,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24",children:(_,S)=>{var k=_O(),h=de(k);dt(h,{key:"signalsEvaluation"}),ce(k),Q(_,k)},$$slots:{default:!0}}),ce(g),Q(e,g),je(d)}var bO=Ce("<div><!></div>");function Vy(e,t){if(new.target)return Ge({component:Vy,...e});He(t,!1);const n={},r=null;let i=z(t,"callback",12),l=z(t,"selfSubmitFunction",12,null),d=re(!1);Hr(()=>{async function k(){const h=i().getConfig(),y=await va.start(h);return y&&"error"in y?i().setClientError(y.error):Y(d,!0),l()&&l()()}k()});var g={style:n,stepMetadata:r,get callback(){return i()},set callback(k){i(k),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(k){l(k),B()},$set:Ke,$on:(k,h)=>We(t,k,h)};ut();var p=bO(),_=de(p);{var S=k=>{gr(k,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"})};Ze(_,k=>{C(d)||k(S)})}return ce(p),Q(e,p),lt(t,"style",n),lt(t,"stepMetadata",r),je(g)}var SO=Ce("<!> <span> </span>",1),EO=Ce("<!> <!>",1),kO=Ce('<div class="tw_text-center"><!></div>');function zf(e,t){if(new.target)return Ge({component:zf,...e});He(t,!1);const n={},r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"selfSubmitFunction",12,null),g=z(t,"options",12,null),p=re(),_=re();vt(()=>(G(i()),C(_),G(l()),G(d())),()=>{i(i()),Y(p,i().getMessage()),clearTimeout(C(_)),Y(_,setTimeout(()=>{l()&&l(l().derived.isReadyForSubmission=!0,!0),d()&&d()()},i().getWaitTime()))}),Tt();var S={style:n,stepMetadata:r,get callback(){return i()},set callback(c){i(c),B()},get callbackMetadata(){return l()},set callbackMetadata(c){l(c),B()},get selfSubmitFunction(){return d()},set selfSubmitFunction(c){d(c),B()},get options(){return g()},set options(c){g(c),B()},$set:Ke,$on:(c,u)=>We(t,c,u)};ut();var k=kO(),h=de(k);{var y=c=>{Hs(c,{children:(u,f)=>{var s=SO(),o=qe(s);gr(o,{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"});var a=pe(o,2),m=de(a,!0);ce(a),Pe(()=>wt(m,C(p))),Q(u,s)},$$slots:{default:!0}})},b=c=>{var u=EO(),f=qe(u);gr(f,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var s=pe(f,2);Hs(s,{children:(o,a)=>{Wt();var m=Vt();Pe(()=>wt(m,C(p))),Q(o,m)},$$slots:{default:!0}}),Q(c,u)};Ze(h,c=>{G(g()),Z(()=>{var u;return(u=g())==null?void 0:u.inline})?c(y):c(b,-1)})}return ce(k),Q(e,k),lt(t,"style",n),lt(t,"stepMetadata",r),je(S)}function Bi(){const e=window.grecaptcha;return(e==null?void 0:e.enterprise)??window.grecaptcha}function Hy({src:e,provider:t}){if(t==="hcaptcha"){if(window.hcaptcha)return Promise.resolve()}else{const r=Bi();if(r)return new Promise(i=>r.ready(()=>i()))}const n=document.querySelector(`script[src="${e}"]`);return n?new Promise((r,i)=>{let l=!1;const d=g=>{l||(l=!0,g())};if(n.addEventListener("load",()=>{if(t==="hcaptcha")d(r);else{const g=Bi();d(g?()=>g.ready(()=>r()):r)}},{once:!0}),n.addEventListener("error",()=>d(()=>i(new Error(`Failed to load CAPTCHA script: ${e}`))),{once:!0}),t==="hcaptcha")window.hcaptcha&&d(r);else{const g=Bi();g&&d(()=>g.ready(()=>r()))}}):new Promise((r,i)=>{const l=document.createElement("script");l.src=e,l.async=!0,l.onerror=()=>i(new Error(`Failed to load CAPTCHA script: ${e}`)),l.onload=()=>{if(t==="hcaptcha")r();else{const d=Bi();d?d.ready(()=>r()):r()}},document.head.appendChild(l)})}const jy=()=>window.hcaptcha;function qy({nameOfCaptcha:e,siteKey:t,elementId:n="fr-recaptcha",onSuccess:r,onExpired:i,onError:l}){const d=jy();if(e==="hcaptcha"&&d)return d.render(n,{sitekey:t,callback:r,"expired-callback":i,"chalexpired-callback":i,"error-callback":l});const g=Bi();if(e==="grecaptcha"&&g)return g.render(n,{sitekey:t,callback:r,"expired-callback":i})}function Gy({nameOfCaptcha:e,siteKey:t,elementId:n,onSuccess:r,onExpired:i,onError:l}){const d=jy();if(e==="hcaptcha"&&d){d.render(n,{sitekey:t,size:"invisible",callback:r,"expired-callback":i,"chalexpired-callback":i,"error-callback":l}),d.execute();return}const g=Bi();e==="grecaptcha"&&g&&g.ready(function(){const p=g.render(n,{sitekey:t,size:"invisible",callback:r,"expired-callback":i,"error-callback":l});g.execute(p)})}var CO=Ce('<div class="tw_hidden"></div> <!>',1),IO=Ce("<div></div> <!>",1);function Wy(e,t){var O,T,M;if(new.target)return Ge({component:Wy,...e});He(t,!1);const n=re(),r=null,i=null,l={};let d=z(t,"callback",12),g=z(t,"callbackMetadata",12),p=re("");const _=((O=d())==null?void 0:O.getSiteKey())??"";let S=(T=d())==null?void 0:T.getOutputByName("reCaptchaV3",!1);const k=((M=d())==null?void 0:M.getOutputByName("captchaDivClass","h-captcha"))??"h-captcha",h=k==="g-recaptcha"?"grecaptcha":"hcaptcha",y={grecaptcha:"https://www.google.com/recaptcha/api.js",hcaptcha:"https://js.hcaptcha.com/1/api.js"},b={grecaptcha:"fr-recaptcha",hcaptcha:"fr-hcaptcha"},c=S?"grecaptcha":h,u=y[c],f=b[h];let s=re(!1),o=re("visible");Hr(async()=>{if(!d())return;try{await Hy({src:u,provider:c}),Y(s,!0)}catch{Y(p,"captchaError");return}if(S)return;const P=x=>{var I;return(I=d())==null?void 0:I.setResult(x)};if(C(o)==="invisible"){const x=()=>{Y(p,"captchaError")};Gy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{var D;(D=d())==null||D.setResult(""),Y(p,""),Gy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{},onError:x})},onError:x})}else{const x=()=>{Y(p,"captchaError")};qy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{var D;(D=d())==null||D.setResult(""),Y(p,""),qy({nameOfCaptcha:h,siteKey:_,elementId:f,onSuccess:P,onExpired:()=>{},onError:x})},onError:x})}});function a(){if(S&&C(s)&&C(n).length){const P=Bi();if(!P){Y(p,"captchaError");return}P.ready(async function(){var x;try{const I=await P.execute(_,{action:C(n)});(x=d())==null||x.setResult(I)}catch{Y(p,"captchaError")}})}}vt(()=>G(g()),()=>{var P,x;Y(o,((x=(P=g())==null?void 0:P.initOptions)==null?void 0:x.mode)==="invisible"?"invisible":"visible")}),vt(()=>G(g()),()=>{var P,x;Y(n,((x=(P=g())==null?void 0:P.initOptions)==null?void 0:x.recaptchaAction)??"")}),vt(()=>(C(n),C(s)),()=>{C(n).length&&C(s)&&a()}),Tt();var m={selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(P){d(P),B()},get callbackMetadata(){return g()},set callbackMetadata(P){g(P),B()},$set:Ke,$on:(P,x)=>We(t,P,x)};ut();var v=mt(),w=qe(v);{var A=P=>{var x=mt(),I=qe(x);{var D=j=>{var L=CO(),U=qe(L),F=pe(U,2);{var W=J=>{qn(J,{id:"captchaError",type:"error",children:($,ne)=>{Wt();var ae=Vt();Pe(te=>wt(ae,te),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q($,ae)},$$slots:{default:!0}})};Ze(F,J=>{C(p)&&J(W)})}Pe(()=>be(U,"id",f)),Q(j,L)},V=j=>{var L=IO(),U=qe(L),F=pe(U,2);{var W=J=>{qn(J,{id:"captchaError",type:"error",children:($,ne)=>{Wt();var ae=Vt();Pe(te=>wt(ae,te),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q($,ae)},$$slots:{default:!0}})};Ze(F,J=>{C(p)&&J(W)})}Pe(()=>{be(U,"id",f),Ot(U,1,`${k} tw_flex-1 tw_w-full tw_input-spacing`),be(U,"data-sitekey",_)}),Q(j,L)};Ze(I,j=>{C(o)==="invisible"?j(D):j(V,-1)})}Q(P,x)},E=P=>{qn(P,{id:"captchaError",type:"error",children:(x,I)=>{Wt();var D=Vt();Pe(V=>wt(D,V),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(x,D)},$$slots:{default:!0}})};Ze(w,P=>{S===!1?P(A):C(p)&&P(E,1)})}return Q(e,v),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(m)}function AO({apiUrl:e,siteKey:t,mode:n}){return n==="invisible"?`${e}?render=${t}`:e}function TO({apiUrl:e,siteKey:t,mode:n}){const r=AO({apiUrl:e,siteKey:t,mode:n});return Hy({src:r,provider:"grecaptcha"})}function Ky({siteKey:e,elementId:t="fr-recaptcha-enterprise",onSuccess:n,onExpired:r,onError:i}){const l=Bi();if(l)return l.render(t,{sitekey:e,callback:n,"expired-callback":r,"error-callback":i})}function OO({siteKey:e,action:t,callback:n,onError:r}){if(!t.length)return;const i=Bi();if(!i){r==null||r();return}i.ready(async function(){try{const l=await i.execute(e,{action:t});n==null||n.setResult(l);try{n==null||n.setAction(t)}catch{}}catch{n==null||n.setClientError("captcha_error"),r==null||r()}})}var PO=Ce('<div id="fr-recaptcha-enterprise" class="tw_hidden"></div> <!>',1),RO=Ce('<div id="fr-recaptcha-enterprise" class="tw_flex-1 tw_w-full tw_input-spacing"></div> <!>',1);function $y(e,t){var a,m;if(new.target)return Ge({component:$y,...e});He(t,!1);const n=re(),r=null,i=null,l={};let d=z(t,"callback",12),g=z(t,"callbackMetadata",12),p=re(""),_=!1,S=re(!1);const k=((a=d())==null?void 0:a.getSiteKey())??"",h=((m=d())==null?void 0:m.getApiUrl())||"https://www.google.com/recaptcha/enterprise.js";let y=re("visible");Hr(async()=>{if(!d())return;try{await TO({apiUrl:h,siteKey:k,mode:C(y)})}catch{Y(p,"captchaError");return}Y(S,!0);const v=w=>{var A,E;(A=d())==null||A.setResult(w),C(n)&&((E=d())==null||E.setAction(C(n)))};if(C(y)!=="invisible"){const w=()=>{Y(p,"captchaError")};Ky({siteKey:k,onSuccess:v,onExpired:()=>{var E;(E=d())==null||E.setResult(""),Y(p,""),Ky({siteKey:k,onSuccess:v,onExpired:()=>{},onError:w})},onError:w})}});function b(){!C(n)||C(y)!=="invisible"||!d()||_||!C(S)||(_=!0,OO({siteKey:k,action:C(n),callback:d(),onError:()=>{Y(p,"captchaError")}}))}vt(()=>G(g()),()=>{var v,w;Y(y,((w=(v=g())==null?void 0:v.initOptions)==null?void 0:w.mode)==="invisible"?"invisible":"visible")}),vt(()=>G(g()),()=>{var v,w;Y(n,((w=(v=g())==null?void 0:v.initOptions)==null?void 0:w.recaptchaAction)??"")}),vt(()=>(C(n),C(S)),()=>{C(n)&&C(S)&&b()}),Tt();var c={selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(v){d(v),B()},get callbackMetadata(){return g()},set callbackMetadata(v){g(v),B()},$set:Ke,$on:(v,w)=>We(t,v,w)};ut();var u=mt(),f=qe(u);{var s=v=>{var w=PO(),A=pe(qe(w),2);{var E=O=>{qn(O,{id:"captchaError",type:"error",children:(T,M)=>{Wt();var P=Vt();Pe(x=>wt(P,x),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(T,P)},$$slots:{default:!0}})};Ze(A,O=>{C(p)&&O(E)})}Q(v,w)},o=v=>{var w=RO(),A=pe(qe(w),2);{var E=O=>{qn(O,{id:"captchaError",type:"error",children:(T,M)=>{Wt();var P=Vt();Pe(x=>wt(P,x),[()=>(G(Ee),C(p),Z(()=>Ee(C(p),null,"CAPTCHA verification failed. Please try again.")))]),Q(T,P)},$$slots:{default:!0}})};Ze(A,O=>{C(p)&&O(E)})}Q(v,w)};Ze(f,v=>{C(y)==="invisible"?v(s):v(o,-1)})}return Q(e,u),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(c)}var MO=Ce('<div class="tw_text-center" aria-live="assertive"><!> <!></div>');function Zy(e,t){if(new.target)return Ge({component:Zy,...e});He(t,!1);const n=null,r=null,i=null,l={};let d=z(t,"callback",12),g=re();vt(()=>G(d()),()=>{Y(g,`${Ee("redirectingTo")} ${new URL(d().getRedirectUrl()).hostname}`)}),Tt();var p={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(h){d(h),B()},$set:Ke,$on:(h,y)=>We(t,h,y)};ut();var _=MO(),S=de(_);gr(S,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var k=pe(S,2);return Hs(k,{children:(h,y)=>{Wt();var b=Vt();Pe(()=>wt(b,C(g))),Q(h,b)},$$slots:{default:!0}}),ce(_),Q(e,_),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(p)}var LO=kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 18"><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"></path><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"></path></svg>');function Yy(e,t){if(new.target)return Ge({component:Yy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=LO();return Pe(()=>{be(l,"height",r()),be(l,"width",r()),Ot(l,0,Cn(n()))}),Q(e,l),je(i)}var DO=kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 18"><path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"></path></svg>');function Jy(e,t){if(new.target)return Ge({component:Jy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=DO();return Pe(()=>{be(l,"width",r()),be(l,"height",r()),Ot(l,0,Cn(n()))}),Q(e,l),je(i)}var NO=kn('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56"><g><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></g></svg>');function Xy(e,t){if(new.target)return Ge({component:Xy,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=NO();return Pe(()=>{be(l,"height",r()),be(l,"width",r()),Ot(l,0,Cn(n()))}),Q(e,l),je(i)}var xO=Ce("<!> <!> ",1),UO=Ce("<!> <!> ",1),FO=Ce("<!> <!> ",1),BO=Ce('<hr class="tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"/>'),zO=Ce("<!> <!>",1);function Qy(e,t){if(new.target)return Ge({component:Qy,...e});He(t,!1);const n={};let r=z(t,"callback",12),i=z(t,"callbackMetadata",12),l=z(t,"selfSubmitFunction",12,null),d=z(t,"stepMetadata",12),g=re();function p(b){r().setProvider(b),i()&&i(i().derived.isReadyForSubmission=!0,!0),l()&&l()()}vt(()=>G(r()),()=>{const b=r().getProviders().filter(u=>u.provider==="localAuthentication"),c=r().getProviders().filter(u=>u.provider!=="localAuthentication");b.length>0&&!r().getInputValue()&&r().setProvider("localAuthentication"),Y(g,c.map(u=>({value:u.provider,text:u.uiConfig.buttonDisplayName})))}),Tt();var _={style:n,get callback(){return r()},set callback(b){r(b),B()},get callbackMetadata(){return i()},set callbackMetadata(b){i(b),B()},get selfSubmitFunction(){return l()},set selfSubmitFunction(b){l(b),B()},get stepMetadata(){return d()},set stepMetadata(b){d(b),B()},$set:Ke,$on:(b,c)=>We(t,b,c)};ut();var S=zO(),k=qe(S);Jn(k,1,()=>C(g),Yn,(b,c)=>{nu(b,{num:1,children:(u,f)=>{var s=mt(),o=qe(s);{var a=O=>{Un(O,{classes:"tw_button-apple dark:tw_button-apple_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(T,M)=>{var P=xO(),x=qe(P);Yy(x,{classes:"tw_inline-block tw_fill-current"});var I=pe(x,2);dt(I,{key:"continueWith"});var D=pe(I);Pe(()=>wt(D,` ${C(c),Z(()=>C(c).text)??""}`)),Q(T,P)},$$slots:{default:!0}})},m=Ji(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("APPLE")))),v=O=>{Un(O,{classes:"tw_button-facebook dark:tw_button-facebook_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(T,M)=>{var P=UO(),x=qe(P);Jy(x,{classes:"tw_inline-block tw_fill-current"});var I=pe(x,2);dt(I,{key:"continueWith"});var D=pe(I);Pe(()=>wt(D,` ${C(c),Z(()=>C(c).text)??""}`)),Q(T,P)},$$slots:{default:!0}})},w=Ji(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("FACEBOOK")))),A=O=>{Un(O,{classes:"tw_button-google dark:tw_button-google_dark",type:"button",width:"auto",onClick:()=>p(C(c).value),children:(T,M)=>{var P=FO(),x=qe(P);Xy(x,{classes:"tw_inline-block tw_fill-current"});var I=pe(x,2);dt(I,{key:"continueWith"});var D=pe(I);Pe(()=>wt(D,` ${C(c),Z(()=>C(c).text)??""}`)),Q(T,P)},$$slots:{default:!0}})},E=Ji(()=>(C(c),Z(()=>C(c).text.toUpperCase().includes("GOOGLE"))));Ze(o,O=>{C(m)?O(a):C(w)?O(v,1):C(E)&&O(A,2)})}Q(u,s)},$$slots:{default:!0}})});var h=pe(k,2);{var y=b=>{nu(b,{num:1,children:(c,u)=>{var f=BO();Q(c,f)},$$slots:{default:!0}})};Ze(h,b=>{G(d()),Z(()=>d()&&d().derived.numOfCallbacks>1)&&b(y)})}return Q(e,S),lt(t,"style",n),je(_)}function e_(e,t){if(new.target)return Ge({component:e_,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().labels==="stacked"?Sa:Fi;let p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re(),c=re(),u=re();function f(m){i().setInputValue(m.target.value)}vt(()=>(G(i()),G(l()),C(k),C(y),C(c),ba),()=>{var m,v,w,A,E;Y(p,((w=(v=(m=i())==null?void 0:m.payload)==null?void 0:v.input)==null?void 0:w[0].name)||`password-${(A=l())==null?void 0:A.idx}`),Y(_,Df(i())),Y(S,i().getOutputByName("name","")),Y(k,i().getPolicies()),Y(h,(E=i())==null?void 0:E.getInputValue()),Y(y,i().getPrompt()),Y(b,E3(C(k))),Y(c,ba(i(),C(y))),Y(u,!!C(c).length)}),Tt();var s={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(m){i(m),B()},get callbackMetadata(){return l()},set callbackMetadata(m){l(m),B()},get style(){return d()},set style(m){d(m),B()},$set:Ke,$on:(m,v)=>We(t,m,v)};ut();var o=mt(),a=qe(o);return ja(a,i,m=>{{let v=me(()=>(G(l()),Z(()=>{var O;return((O=l())==null?void 0:O.derived.isFirstInvalidInput)||!1}))),w=me(()=>(G(Ee),C(S),C(y),Z(()=>Ee(C(S),null,C(y))))),A=me(()=>(C(_),G(Ee),Z(()=>C(_)?Ee("inputRequiredError"):void 0))),E=me(()=>!!C(u));g(m,{get isFirstInvalidInput(){return C(v)},get key(){return C(p)},get label(){return C(w)},get message(){return C(A)},onChange:f,get isRequired(){return C(_)},get isInvalid(){return C(u)},get type(){return C(b)},get showMessage(){return C(E)},get value(){return C(h)},children:(O,T)=>{ru(O,{get callback(){return i()},get key(){return C(p)},get label(){return C(y)},messageKey:"valueRequirements"})},$$slots:{default:!0}})}}),Q(e,o),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(s)}var VO=Ce("<a><!></a>");function Vf(e,t){if(new.target)return Ge({component:Vf,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"href",12),i=z(t,"target",12,"_self");var l={get classes(){return n()},set classes(p){n(p),B()},get href(){return r()},set href(p){r(p),B()},get target(){return i()},set target(p){i(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},d=VO(),g=de(d);return xt(g,t,"default",{},null),ce(d),Pe(()=>{Ot(d,1,`${n()} tw_link dark:tw_link_dark`),be(d,"href",r()),be(d,"target",i())}),Q(e,d),je(l)}var HO=Ce("<!> <!>",1),jO=Ce('<p class=" tw_text-error-dark dark:tw_text-error-light tw_input-spacing">Error: Configuration is missing <code>termsAndConditions</code> URL.</p>');function t_(e,t){if(new.target)return Ge({component:t_,...e});He(t,!1);const n=()=>sr(Kl,"$linksStore",r),[r,i]=Or(),l=null,d=null;let g=z(t,"style",28,()=>({})),p=z(t,"callback",12),_=z(t,"callbackMetadata",12);const S=g().checksAndRadios==="standard"?eu:Xc;let k=re();function h(o){p().setAccepted(o.target.checked)}vt(()=>(G(p()),G(_())),()=>{var o,a,m,v;Y(k,((m=(a=(o=p())==null?void 0:o.payload)==null?void 0:a.input)==null?void 0:m[0].name)||`terms-${(v=_())==null?void 0:v.idx}`)}),Tt();var y={selfSubmitFunction:l,stepMetadata:d,get style(){return g()},set style(o){g(o),B()},get callback(){return p()},set callback(o){p(o),B()},get callbackMetadata(){return _()},set callbackMetadata(o){_(o),B()},$set:Ke,$on:(o,a)=>We(t,o,a)};ut();var b=mt(),c=qe(b);{var u=o=>{var a=HO(),m=qe(a);{let w=me(()=>(n(),Z(()=>{var A;return(A=n())==null?void 0:A.termsAndConditions})));Vf(m,{classes:"tw_block tw_mb-4",get href(){return C(w)},target:"_blank",children:(A,E)=>{Wt();var O=Vt();Pe(T=>wt(O,T),[()=>(G(Ee),Z(()=>Ee("termsAndConditionsLinkText")))]),Q(A,O)},$$slots:{default:!0}})}var v=pe(m,2);{let w=me(()=>(G(_()),Z(()=>{var A;return((A=_())==null?void 0:A.derived.isFirstInvalidInput)||!1})));S(v,{get isFirstInvalidInput(){return C(w)},get key(){return C(k)},onChange:h,value:!1,children:(A,E)=>{dt(A,{key:"termsAndConditions"})},$$slots:{default:!0}})}Q(o,a)},f=o=>{var a=jO();Q(o,a)};Ze(c,o=>{n(),Z(()=>{var a;return(a=n())==null?void 0:a.termsAndConditions})?o(u):o(f,-1)})}Q(e,b),lt(t,"selfSubmitFunction",l),lt(t,"stepMetadata",d);var s=je(y);return i(),s}function n_(e,t){if(new.target)return Ge({component:n_,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().labels==="stacked"?Sa:Fi;let p=re(),_=re(),S=re(),k=re();function h(u){i().setInput(u.target.value)}vt(()=>(G(i()),G(l())),()=>{var u,f,s,o,a;Y(p,i().getType()),Y(_,((s=(f=(u=i())==null?void 0:u.payload)==null?void 0:f.input)==null?void 0:s[0].name)||`text-input-${(o=l())==null?void 0:o.idx}`),Y(S,i().getPrompt()),Y(k,(a=i())==null?void 0:a.getInputValue())}),Tt();var y={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(u){i(u),B()},get callbackMetadata(){return l()},set callbackMetadata(u){l(u),B()},get style(){return d()},set style(u){d(u),B()},$set:Ke,$on:(u,f)=>We(t,u,f)};ut();var b=mt(),c=qe(b);return ja(c,i,u=>{{let f=me(()=>(G(l()),Z(()=>{var a;return((a=l())==null?void 0:a.derived.isFirstInvalidInput)||!1}))),s=me(()=>(G(Ee),G(fr),C(S),C(p),Z(()=>Ee(fr(C(S)||C(p)),null,C(S))))),o=me(()=>typeof C(k)=="string"?C(k):"");g(u,{get isFirstInvalidInput(){return C(f)},get key(){return C(_)},get label(){return C(s)},onChange:h,type:"text",showMessage:!1,get value(){return C(o)}})}}),Q(e,b),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(y)}function Hf(e,t){if(new.target)return Ge({component:Hf,...e});He(t,!1);const n=null,r=null,i=null,l={};let d=z(t,"callback",12),g=re(d().getMessage()),p=re(is(C(g))),_=re("info");function S(u){switch(u){case"0":return"info";case"1":return"warning";case"2":return"error";default:return"info"}}vt(()=>(C(g),G(d()),is),()=>{Y(g,d().getMessage()),Y(p,is(C(g))),Y(_,S(d().getMessageType()))}),Tt();var k={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(u){d(u),B()},$set:Ke,$on:(u,f)=>We(t,u,f)};ut();var h=mt(),y=qe(h);{var b=u=>{{let f=me(()=>(C(p),Z(()=>C(p).length<100?"tw_font-bold tw_mt-6":"tw_mt-6")));Hs(u,{get classes(){return C(f)},children:(s,o)=>{var a=mt(),m=qe(a);Ll(m,()=>C(p)),Q(s,a)},$$slots:{default:!0}})}},c=u=>{qn(u,{id:"",needsFocus:!1,get type(){return C(_)},children:(f,s)=>{Wt();var o=Vt();Pe(()=>wt(o,C(p))),Q(f,o)},$$slots:{default:!0}})};Ze(y,u=>{C(_)==="info"?u(b):u(c,-1)})}return Q(e,h),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(k)}var qO=Ce('<p class="tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing"> </p>');function r_(e,t){if(new.target)return Ge({component:r_,...e});He(t,!1);const n=null,r=null,i=null,l={};let d=z(t,"callback",12);const g=d().getType();var p={callbackMetadata:n,selfSubmitFunction:r,stepMetadata:i,style:l,get callback(){return d()},set callback(k){d(k),B()},$set:Ke,$on:(k,h)=>We(t,k,h)};ut();var _=qO(),S=de(_);return ce(_),Pe(()=>wt(S,`Unknown callback encountered: ${g??""}. Please contact support.`)),Q(e,_),lt(t,"callbackMetadata",n),lt(t,"selfSubmitFunction",r),lt(t,"stepMetadata",i),lt(t,"style",l),je(p)}function i_(e,t){if(new.target)return Ge({component:i_,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().labels==="stacked"?Sa:Fi;let p=re(),_=re(),S=re(),k=re();function h(u){i().setInputValue(u.target.value)}vt(()=>(G(i()),G(l())),()=>{var u,f,s,o,a;Y(p,i().getType()),Y(_,((s=(f=(u=i())==null?void 0:u.payload)==null?void 0:f.input)==null?void 0:s[0].name)||`name-${(o=l())==null?void 0:o.idx}`),Y(S,i().getPrompt()),Y(k,(a=i())==null?void 0:a.getInputValue())}),Tt();var y={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(u){i(u),B()},get callbackMetadata(){return l()},set callbackMetadata(u){l(u),B()},get style(){return d()},set style(u){d(u),B()},$set:Ke,$on:(u,f)=>We(t,u,f)};ut();var b=mt(),c=qe(b);return ja(c,i,u=>{{let f=me(()=>(G(l()),Z(()=>{var m,v;return(v=(m=l())==null?void 0:m.derived)==null?void 0:v.autocompleteValues}))),s=me(()=>(G(l()),Z(()=>{var m;return((m=l())==null?void 0:m.derived.isFirstInvalidInput)||!1}))),o=me(()=>(G(Ee),G(fr),C(S),C(p),Z(()=>Ee(fr(C(S)||C(p)),null,C(S))))),a=me(()=>typeof C(k)=="string"?C(k):"");g(u,{get autocomplete(){return C(f)},get isFirstInvalidInput(){return C(s)},get key(){return C(_)},get label(){return C(o)},onChange:h,type:"text",showMessage:!1,get value(){return C(a)}})}}),Q(e,b),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(y)}function a_(e,t){if(new.target)return Ge({component:a_,...e});He(t,!1);const n=null,r=null;let i=z(t,"callback",12),l=z(t,"callbackMetadata",12),d=z(t,"style",28,()=>({}));const g=d().labels==="stacked"?Sa:Fi;let p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re();function c(o){i().setInputValue(o.target.value)}vt(()=>(G(i()),G(l()),C(h),C(b),ba),()=>{var o,a,m,v,w;Y(p,i().getType()),Y(_,((m=(a=(o=i())==null?void 0:o.payload)==null?void 0:a.input)==null?void 0:m[0].name)||`validated-name=${(v=l())==null?void 0:v.idx}`),Y(k,Df(i())),Y(h,i().getPrompt()),Y(y,(w=i())==null?void 0:w.getInputValue()),Y(b,ba(i(),C(h))),Y(S,!!C(b).length)}),Tt();var u={selfSubmitFunction:n,stepMetadata:r,get callback(){return i()},set callback(o){i(o),B()},get callbackMetadata(){return l()},set callbackMetadata(o){l(o),B()},get style(){return d()},set style(o){d(o),B()},$set:Ke,$on:(o,a)=>We(t,o,a)};ut();var f=mt(),s=qe(f);return ja(s,i,o=>{{let a=me(()=>(G(l()),Z(()=>{var A;return((A=l())==null?void 0:A.derived.isFirstInvalidInput)||!1}))),m=me(()=>(G(Ee),G(fr),C(p),C(h),Z(()=>Ee(fr(C(p)),null,C(h))))),v=me(()=>(C(k),G(Ee),Z(()=>C(k)?Ee("inputRequiredError"):void 0))),w=me(()=>typeof C(y)=="string"?C(y):"");g(o,{get isFirstInvalidInput(){return C(a)},get isRequired(){return C(k)},get isInvalid(){return C(S)},get key(){return C(_)},get label(){return C(m)},get message(){return C(v)},onChange:c,showMessage:!1,type:"text",get value(){return C(w)},children:(A,E)=>{ru(A,{get callback(){return i()},get key(){return C(_)},get label(){return C(h)},messageKey:"usernameRequirements"})},$$slots:{default:!0}})}}),Q(e,f),lt(t,"selfSubmitFunction",n),lt(t,"stepMetadata",r),je(u)}const s_={},iu={};function os(e,t){if(new.target)return Ge({component:os,...e});He(t,!1);let n=z(t,"props",12),r=re(),i=re(),l=re(),d=re(),g=re(),p=re(),_=re(),S=re(),k=re(),h=re(),y=re(),b=re(),c=re(),u=re(),f=re(),s=re(),o=re(),a=re(),m=re(),v=re(),w=re(),A=re(),E=re(),O=re(),T=re();vt(()=>(C(r),G(n()),fe),()=>{switch(Y(r,n().callback.getType()),C(r)){case fe.BooleanAttributeInputCallback:Y(i,n().callback);break;case fe.ChoiceCallback:Y(l,n().callback);break;case fe.ConfirmationCallback:Y(d,n().callback);break;case fe.HiddenValueCallback:Y(g,n().callback);break;case fe.KbaCreateCallback:Y(p,n().callback);break;case fe.NameCallback:Y(_,n().callback);break;case fe.ReCaptchaCallback:Y(w,n().callback);break;case fe.ReCaptchaEnterpriseCallback:Y(A,n().callback);break;case fe.PasswordCallback:Y(S,n().callback);break;case fe.PollingWaitCallback:Y(k,n().callback);break;case fe.RedirectCallback:Y(h,n().callback);break;case fe.SelectIdPCallback:Y(y,n().callback);break;case fe.StringAttributeInputCallback:Y(b,n().callback);break;case fe.ValidatedCreatePasswordCallback:Y(c,n().callback);break;case fe.ValidatedCreateUsernameCallback:Y(u,n().callback);break;case fe.TermsAndConditionsCallback:Y(f,n().callback);break;case fe.TextInputCallback:Y(s,n().callback);break;case fe.TextOutputCallback:Y(o,n().callback);break;case fe.SuspendedTextOutputCallback:Y(a,n().callback);break;case fe.DeviceProfileCallback:Y(v,n().callback);break;case fe.MetadataCallback:Y(m,n().callback);break;case fe.PingOneProtectEvaluationCallback:Y(E,n().callback);break;case fe.PingOneProtectInitializeCallback:Y(O,n().callback);break;default:Y(T,n().callback)}}),Tt();var M={get props(){return n()},set props(ge){n(ge),B()},$set:Ke,$on:(ge,Le)=>We(t,ge,Le)};ut();var P=mt(),x=qe(P);{var I=ge=>{const Le=me(()=>(G(iu),C(r),Z(()=>iu[C(r)]))),Mt=me(()=>(G(n()),Z(()=>Object.fromEntries(Object.entries(n()).filter(([$t])=>C(Le).acceptedProps.includes($t))))));var Ct=mt(),Ut=qe(Ct);Cg(Ut,()=>C(Le).component,($t,bn)=>{bn($t,Zt(()=>C(Mt)))}),Q(ge,Ct)},D=ge=>{const Le=me(()=>(G(n()),C(i),Z(()=>({...n(),callback:C(i)}))));Iy(ge,Zt(()=>C(Le)))},V=ge=>{const Le=me(()=>(G(n()),C(l),Z(()=>({...n(),callback:C(l)}))));Py(ge,Zt(()=>C(Le)))},j=ge=>{const Le=me(()=>(G(n()),C(d),Z(()=>({...n(),callback:C(d)}))));Ry(ge,Zt(()=>C(Le)))},L=ge=>{const Le=me(()=>(G(n()),C(g),Z(()=>({...n(),callback:C(g)}))));Ly(ge,Zt(()=>C(Le)))},U=ge=>{const Le=me(()=>(G(n()),C(p),Z(()=>({...n(),callback:C(p)}))));Ny(ge,Zt(()=>C(Le)))},F=ge=>{const Le=me(()=>(G(n()),C(_),Z(()=>({...n(),callback:C(_)}))));i_(ge,Zt(()=>C(Le)))},W=ge=>{const Le=me(()=>(G(n()),C(S),Z(()=>({...n(),callback:C(S)}))));Fy(ge,Zt(()=>C(Le)))},J=ge=>{const Le=me(()=>(G(n()),C(k),Z(()=>({...n(),callback:C(k)}))));zf(ge,Zt(()=>C(Le)))},$=ge=>{const Le=me(()=>(G(n()),C(h),Z(()=>({...n(),callback:C(h)}))));Zy(ge,Zt(()=>C(Le)))},ne=ge=>{const Le=me(()=>(G(n()),C(y),Z(()=>({...n(),callback:C(y)}))));Qy(ge,Zt(()=>C(Le)))},ae=ge=>{const Le=me(()=>(G(n()),C(b),Z(()=>({...n(),callback:C(b)}))));e_(ge,Zt(()=>C(Le)))},te=ge=>{const Le=me(()=>(G(n()),C(c),Z(()=>({...n(),callback:C(c)}))));By(ge,Zt(()=>C(Le)))},ie=ge=>{const Le=me(()=>(G(n()),C(u),Z(()=>({...n(),callback:C(u)}))));a_(ge,Zt(()=>C(Le)))},Se=ge=>{const Le=me(()=>(G(n()),C(f),Z(()=>({...n(),callback:C(f)}))));t_(ge,Zt(()=>C(Le)))},_e=ge=>{const Le=me(()=>(G(n()),C(s),Z(()=>({...n(),callback:C(s)}))));n_(ge,Zt(()=>C(Le)))},Ne=ge=>{const Le=me(()=>(G(n()),C(o),Z(()=>({...n(),callback:C(o)}))));Hf(ge,Zt(()=>C(Le)))},et=ge=>{const Le=me(()=>(G(n()),C(a),Z(()=>({...n(),callback:C(a)}))));Hf(ge,Zt(()=>C(Le)))},Nt=ge=>{const Le=me(()=>(G(n()),C(v),Z(()=>({...n(),callback:C(v)}))));My(ge,Zt(()=>C(Le)))},oe=ge=>{const Le=me(()=>(G(n()),C(m),Z(()=>({...n(),callback:C(m)}))));xy(ge,Zt(()=>C(Le)))},Ie=ge=>{const Le=me(()=>(G(n()),C(w),Z(()=>({...n(),callback:C(w)}))));Wy(ge,Zt(()=>C(Le)))},Be=ge=>{const Le=me(()=>(G(n()),C(A),Z(()=>({...n(),callback:C(A)}))));$y(ge,Zt(()=>C(Le)))},$e=ge=>{const Le=me(()=>(G(n()),C(E),Z(()=>({...n(),callback:C(E)}))));zy(ge,Zt(()=>C(Le)))},ke=ge=>{const Le=me(()=>(G(n()),C(O),Z(()=>({...n(),callback:C(O)}))));Vy(ge,Zt(()=>C(Le)))},Xe=ge=>{const Le=me(()=>(G(n()),C(T),Z(()=>({...n(),callback:C(T)}))));r_(ge,Zt(()=>C(Le)))};Ze(x,ge=>{G(iu),C(r),Z(()=>iu[C(r)])?ge(I):(C(r),G(fe),Z(()=>C(r)===fe.BooleanAttributeInputCallback)?ge(D,1):(C(r),G(fe),Z(()=>C(r)===fe.ChoiceCallback)?ge(V,2):(C(r),G(fe),Z(()=>C(r)===fe.ConfirmationCallback)?ge(j,3):(C(r),G(fe),Z(()=>C(r)===fe.HiddenValueCallback)?ge(L,4):(C(r),G(fe),Z(()=>C(r)===fe.KbaCreateCallback)?ge(U,5):(C(r),G(fe),Z(()=>C(r)===fe.NameCallback)?ge(F,6):(C(r),G(fe),Z(()=>C(r)===fe.PasswordCallback)?ge(W,7):(C(r),G(fe),Z(()=>C(r)===fe.PollingWaitCallback)?ge(J,8):(C(r),G(fe),Z(()=>C(r)===fe.RedirectCallback)?ge($,9):(C(r),G(fe),Z(()=>C(r)===fe.SelectIdPCallback)?ge(ne,10):(C(r),G(fe),Z(()=>C(r)===fe.StringAttributeInputCallback)?ge(ae,11):(C(r),G(fe),Z(()=>C(r)===fe.ValidatedCreatePasswordCallback)?ge(te,12):(C(r),G(fe),Z(()=>C(r)===fe.ValidatedCreateUsernameCallback)?ge(ie,13):(C(r),G(fe),Z(()=>C(r)===fe.TermsAndConditionsCallback)?ge(Se,14):(C(r),G(fe),Z(()=>C(r)===fe.TextInputCallback)?ge(_e,15):(C(r),G(fe),Z(()=>C(r)===fe.TextOutputCallback)?ge(Ne,16):(C(r),G(fe),Z(()=>C(r)===fe.SuspendedTextOutputCallback)?ge(et,17):(C(r),G(fe),Z(()=>C(r)===fe.DeviceProfileCallback)?ge(Nt,18):(C(r),G(fe),Z(()=>C(r)===fe.MetadataCallback)?ge(oe,19):(C(r),G(fe),Z(()=>C(r)===fe.ReCaptchaCallback)?ge(Ie,20):(C(r),G(fe),Z(()=>C(r)===fe.ReCaptchaEnterpriseCallback)?ge(Be,21):(C(r),G(fe),Z(()=>C(r)===fe.PingOneProtectEvaluationCallback)?ge($e,22):(C(r),G(fe),Z(()=>C(r)===fe.PingOneProtectInitializeCallback)?ge(ke,23):ge(Xe,-1))))))))))))))))))))))))})}return Q(e,P),je(M)}var GO=Ce('<p class=" tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"><button> </button></p>');function jf(e,t){if(new.target)return Ge({component:jf,...e});He(t,!1);const n=()=>sr(al,"$configuredJourneysStore",i),r=()=>sr(C(g),"$stack",i),[i,l]=Or();let d=z(t,"journey",12),g=re(d().stack),p=re("");vt(()=>(G(d()),n(),r()),()=>{xw(Y(g,d().stack),"$stack",i);const b=n().find(f=>{var s;return f.journey===((s=r()[r().length-2])==null?void 0:s.journey)}),c=b==null?void 0:b.key,u=typeof c=="string"?c.replace(/([a-z])/,(f,s)=>`${s.toUpperCase()}`):c;Y(p,`backTo${u||"Default"}`)}),Tt();var _={get journey(){return d()},set journey(b){d(b),B()},$set:Ke,$on:(b,c)=>We(t,b,c)};ut();var S=mt(),k=qe(S);{var h=b=>{var c=GO(),u=de(c),f=de(u,!0);ce(u),ce(c),Pe(s=>wt(f,s),[()=>(G(Ee),C(p),Z(()=>Ee(C(p))))]),mn("click",u,Ml(()=>{var s;(s=d())==null||s.pop()})),Q(b,c)};Ze(k,b=>{r(),Z(()=>r().length>1)&&b(h)})}Q(e,S);var y=je(_);return l(),y}function au(e,t){const n=sn(al),r=sn(t.stack);e.addEventListener("click",i=>{const l=i.target,d=l.hasAttribute("href")&&l.getAttribute("href"),{action:g,journey:p}=WO(d,n,r);g&&(i.preventDefault(),g==="push"?t.push({journey:p}):g==="pop"&&t.pop())})}function WO(e,t,n){if(e){const r=t.find(i=>i.match.find(l=>e===l));if(r){if(!r.journey)return{action:null};const i=n[n.length-2];return!i||i.journey!==r.journey?{action:"push",journey:r.journey}:{action:"pop"}}else return{action:null}}else return{action:null}}var KO=Ce('<div class="tw_flex tw_justify-center"><!></div>'),$O=Ce('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1></header> <!> <!> <!>',1);function o_(e,t){if(new.target)return Ge({component:o_,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12);const k="genericStepFailureMessage",h="genericStepHeader",y="genericStepForm";let b=re(!1),c=re(""),u=re("genericStepHeader"),f=re(!1),s=re();function o(){var w,A;(A=(w=_())==null?void 0:w.step)!=null&&A.derived.isStepSelfSubmittable()&&a()}function a(){var w;Y(b,!1),Y(f,!1),(w=d())==null||w.submit()}Vn(()=>{var w;(w=d())!=null&&w.message?(Y(u,k),Y(b,!0),Y(f,!1)):(Y(u,h),Y(b,!1),Y(f,!0))}),Hr(()=>au(C(s),p())),vt(()=>(G(S()),G(p())),()=>{Of(S())&&p().redirect(S())}),vt(()=>G(d()),()=>{var w;Y(c,as((w=d())==null?void 0:w.message))}),Tt();var m={get componentStyle(){return l()},set componentStyle(w){l(w),B()},get form(){return d()},set form(w){d(w),B()},get formEl(){return g()},set formEl(w){g(w),B()},get journey(){return p()},set journey(w){p(w),B()},get metadata(){return _()},set metadata(w){_(w),B()},get step(){return S()},set step(w){S(w),B()},$set:Ke,$on:(w,A)=>We(t,w,A)};ut(),Ni(e,{get ariaDescribedBy(){return C(u)},id:y,get needsFocus(){return C(f)},onSubmitWhenValid:a,get formEl(){return g()},set formEl(w){g(w)},children:(w,A)=>{var E=$O(),O=qe(E);{var T=L=>{var U=KO(),F=de(U);ky(F,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(U),Q(L,U)};Ze(O,L=>{G(d()),G(l()),Z(()=>{var U;return((U=d())==null?void 0:U.icon)&&l()!=="inline"})&&L(T)})}var M=pe(O,2);be(M,"id",h);var P=de(M),x=de(P);{let L=me(()=>(G(S()),G(Ee),Z(()=>{var U;return((U=S())==null?void 0:U.getHeader())||Ee("checkYourEmail")})));Jc(x,{html:!0,get string(){return C(L)}})}ce(P),ce(M),an(M,L=>Y(s,L),()=>C(s));var I=pe(M,2);{var D=L=>{qn(L,{id:k,get needsFocus(){return C(b)},type:"error",children:(U,F)=>{Wt();var W=Vt();Pe(J=>wt(W,J),[()=>(G(Ee),C(c),G(d()),Z(()=>{var J;return Ee(C(c),null,(J=d())==null?void 0:J.message)}))]),Q(U,W)},$$slots:{default:!0}})};Ze(I,L=>{G(d()),Z(()=>{var U;return(U=d())==null?void 0:U.message})&&L(D)})}var V=pe(I,2);Jn(V,1,()=>(G(S()),Z(()=>{var L;return(L=S())==null?void 0:L.callbacks})),Yn,(L,U,F)=>{{let W=me(()=>(C(U),G(_()),n(),Z(()=>{var J,$;return{callback:C(U),callbackMetadata:(J=_())==null?void 0:J.callbacks[F],selfSubmitFunction:o,stepMetadata:(($=_())==null?void 0:$.step)&&{..._().step},style:n()}})));os(L,{get props(){return C(W)}})}});var j=pe(V,2);jf(j,{get journey(){return p()}}),Q(w,E)},$$slots:{default:!0},$$legacy:!0});var v=je(m);return i(),v}var ZO=kn('<svg viewBox="-2 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm0 5a1.5 1.5 0 0 1 .5 2.915l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99A1.5 1.5 0 0 1 8 5z"></path><title><!></title></svg>');function l_(e,t){if(new.target)return Ge({component:l_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=ZO(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var YO=Ce('<div class="tw_flex tw_justify-center tw_pb-4"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div></div>'),JO=Ce('<div class="tw_flex tw_justify-center"><!></div>'),XO=Ce('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header> <!> <!> <!> <!>',1);function qf(e,t){if(new.target)return Ge({component:qf,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12);const k="genericStepFailureMessage",h="genericStepHeader",y="genericStepForm";let b=re(!1),c=re(""),u=re("genericStepHeader"),f=re(!1),s=re();function o(){var w,A;(A=(w=_())==null?void 0:w.step)!=null&&A.derived.isStepSelfSubmittable()&&a()}function a(){var w;Y(b,!1),Y(f,!1),(w=d())==null||w.submit()}Vn(()=>{var w;(w=d())!=null&&w.message?(Y(u,k),Y(b,!0),Y(f,!1)):(Y(u,h),Y(b,!1),Y(f,!0))}),Hr(()=>au(C(s),p())),vt(()=>(G(S()),G(p())),()=>{Of(S())&&p().redirect(S())}),vt(()=>G(d()),()=>{var w;Y(c,as((w=d())==null?void 0:w.message))}),Tt();var m={get componentStyle(){return l()},set componentStyle(w){l(w),B()},get form(){return d()},set form(w){d(w),B()},get formEl(){return g()},set formEl(w){g(w),B()},get journey(){return p()},set journey(w){p(w),B()},get metadata(){return _()},set metadata(w){_(w),B()},get step(){return S()},set step(w){S(w),B()},$set:Ke,$on:(w,A)=>We(t,w,A)};ut(),Ni(e,{get ariaDescribedBy(){return C(u)},id:y,get needsFocus(){return C(f)},onSubmitWhenValid:a,get formEl(){return g()},set formEl(w){g(w)},children:(w,A)=>{var E=XO(),O=qe(E);{var T=te=>{var ie=YO(),Se=de(ie);ce(ie),Pe(_e=>Dl(Se,_e),[()=>(G(hr),n(),Z(()=>`--logo-light: ${hr(n().logo.light??"")}; --logo-dark: ${hr(n().logo.dark??"")}; height: ${n().logo.height?`${n().logo.height}px`:"72px"}; width: ${n().logo.width?`${n().logo.width}px`:"200px"};`))]),Q(te,ie)},M=te=>{var ie=JO(),Se=de(ie);l_(Se,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(ie),Q(te,ie)};Ze(O,te=>{n(),G(l()),Z(()=>{var ie;return((ie=n())==null?void 0:ie.logo)&&l()!=="modal"})?te(T):(G(d()),G(l()),Z(()=>{var ie;return((ie=d())==null?void 0:ie.icon)&&l()!=="inline"})&&te(M,1))})}var P=pe(O,2);be(P,"id",h);var x=de(P),I=de(x);{let te=me(()=>(G(S()),Z(()=>{var ie;return((ie=S())==null?void 0:ie.getHeader())||""})));Jc(I,{html:!0,get string(){return C(te)}})}ce(x);var D=pe(x,2),V=de(D);{let te=me(()=>(G(S()),Z(()=>{var ie;return((ie=S())==null?void 0:ie.getDescription())||""})));Jc(V,{html:!0,get string(){return C(te)}})}ce(D),ce(P),an(P,te=>Y(s,te),()=>C(s));var j=pe(P,2);{var L=te=>{qn(te,{id:k,get needsFocus(){return C(b)},type:"error",children:(ie,Se)=>{Wt();var _e=Vt();Pe(Ne=>wt(_e,Ne),[()=>(G(Ee),C(c),G(d()),Z(()=>{var Ne;return Ee(C(c),null,(Ne=d())==null?void 0:Ne.message)}))]),Q(ie,_e)},$$slots:{default:!0}})};Ze(j,te=>{G(d()),Z(()=>{var ie;return(ie=d())==null?void 0:ie.message})&&te(L)})}var U=pe(j,2);Jn(U,1,()=>(G(S()),Z(()=>{var te;return(te=S())==null?void 0:te.callbacks})),Yn,(te,ie,Se)=>{{let _e=me(()=>(C(ie),G(_()),n(),Z(()=>{var Ne,et;return{callback:C(ie),callbackMetadata:(Ne=_())==null?void 0:Ne.callbacks[Se],selfSubmitFunction:o,stepMetadata:((et=_())==null?void 0:et.step)&&{..._().step},style:n()}})));os(te,{get props(){return C(_e)}})}});var F=pe(U,2);{var W=te=>{{let ie=me(()=>(G(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));Un(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{dt(Se,{key:"nextButton"})},$$slots:{default:!0}})}},J=Ji(()=>(G(_()),Z(()=>{var te,ie;return!((ie=(te=_())==null?void 0:te.step)!=null&&ie.derived.isStepSelfSubmittable())}))),$=te=>{{let ie=me(()=>(G(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));Un(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{dt(Se,{key:"nextButton"})},$$slots:{default:!0}})}},ne=te=>{{let ie=me(()=>(G(p()),Z(()=>{var Se;return(Se=p())==null?void 0:Se.loading})));Un(te,{get busy(){return C(ie)},style:"primary",type:"submit",width:"full",children:(Se,_e)=>{dt(Se,{key:"nextButton"})},$$slots:{default:!0}})}};Ze(F,te=>{C(J)?te(W):(G(_()),Z(()=>{var ie,Se;return(Se=(ie=_())==null?void 0:ie.step)==null?void 0:Se.derived.isUserInputOptional})?te($,1):(G(_()),Z(()=>{var ie,Se;return!((Se=(ie=_())==null?void 0:ie.step)!=null&&Se.derived.numOfSelfSubmittableCbs)})&&te(ne,2)))})}var ae=pe(F,2);jf(ae,{get journey(){return p()}}),Q(w,E)},$$slots:{default:!0},$$legacy:!0});var v=je(m);return i(),v}var QO=kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><title><!></title></svg>');function Gf(e,t){if(new.target)return Ge({component:Gf,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=QO(),d=pe(de(l),2),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var eP=Ce('<div class="tw_flex tw_justify-center tw_pb-4"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div></div>'),tP=Ce('<div class="tw_flex tw_justify-center"><!></div>'),nP=Ce('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1>'),rP=Ce('<p class=" tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"><button> </button> &nbsp; <button> </button></p> <hr class="tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"/> <p class="tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),iP=Ce("<!> <!> <!> <!> <!> <!>",1);function Wf(e,t){if(new.target)return Ge({component:Wf,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12),k=re(!1),h=re(""),y=re();function b(){var f,s,o;(s=(f=_())==null?void 0:f.step)!=null&&s.derived.isStepSelfSubmittable()&&((o=d())==null||o.submit())}Vn(()=>{var f;Y(k,!!((f=d())!=null&&f.message))}),Hr(()=>{l()==="modal"&&au(C(y),p())}),vt(()=>G(d()),()=>{var f;Y(h,as((f=d())==null?void 0:f.message))}),Tt();var c={get componentStyle(){return l()},set componentStyle(f){l(f),B()},get form(){return d()},set form(f){d(f),B()},get formEl(){return g()},set formEl(f){g(f),B()},get journey(){return p()},set journey(f){p(f),B()},get metadata(){return _()},set metadata(f){_(f),B()},get step(){return S()},set step(f){S(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();{let f=me(()=>(G(d()),Z(()=>{var s;return(s=d())==null?void 0:s.submit})));Ni(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(f)},get formEl(){return g()},set formEl(s){g(s)},children:(s,o)=>{var a=iP(),m=qe(a);{var v=j=>{var L=eP(),U=de(L);ce(L),Pe(F=>Dl(U,F),[()=>(G(hr),n(),Z(()=>`--logo-light: ${hr(n().logo.light??"")}; --logo-dark: ${hr(n().logo.dark??"")}; height: ${n().logo.height?`${n().logo.height}px`:"72px"}; width: ${n().logo.width?`${n().logo.width}px`:"200px"};`))]),Q(j,L)},w=j=>{var L=tP(),U=de(L);Gf(U,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(L),Q(j,L)};Ze(m,j=>{n(),G(l()),Z(()=>{var L;return((L=n())==null?void 0:L.logo)&&l()!=="modal"})?j(v):(G(l()),G(d()),Z(()=>{var L;return l()!=="inline"&&((L=d())==null?void 0:L.icon)})&&j(w,1))})}var A=pe(m,2);{var E=j=>{var L=nP(),U=de(L);dt(U,{key:"loginHeader"}),ce(L),Q(j,L)};Ze(A,j=>{l()!=="inline"&&j(E)})}var O=pe(A,2);{var T=j=>{qn(j,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(L,U)=>{Wt();var F=Vt();Pe(W=>wt(F,W),[()=>(G(Ee),C(h),G(d()),Z(()=>{var W;return Ee(C(h),null,(W=d())==null?void 0:W.message)}))]),Q(L,F)},$$slots:{default:!0}})};Ze(O,j=>{G(d()),Z(()=>{var L;return(L=d())==null?void 0:L.message})&&j(T)})}var M=pe(O,2);Jn(M,1,()=>(G(S()),Z(()=>{var j;return(j=S())==null?void 0:j.callbacks})),Yn,(j,L,U)=>{{let F=me(()=>(C(L),G(_()),n(),Z(()=>{var W,J;return{callback:C(L),callbackMetadata:(W=_())==null?void 0:W.callbacks[U],selfSubmitFunction:b,stepMetadata:((J=_())==null?void 0:J.step)&&{..._().step},style:n()}})));os(j,{get props(){return C(F)}})}});var P=pe(M,2);{var x=j=>{{let L=me(()=>(G(p()),Z(()=>{var U;return(U=p())==null?void 0:U.loading})));Un(j,{get busy(){return C(L)},style:"primary",type:"submit",width:"full",children:(U,F)=>{dt(U,{key:"loginButton"})},$$slots:{default:!0}})}},I=Ji(()=>(G(_()),Z(()=>{var j,L,U,F;return((L=(j=_())==null?void 0:j.step)==null?void 0:L.derived.isUserInputOptional)||!((F=(U=_())==null?void 0:U.step)!=null&&F.derived.isStepSelfSubmittable())})));Ze(P,j=>{C(I)&&j(x)})}var D=pe(P,2);{var V=j=>{var L=rP(),U=qe(L),F=de(U),W=de(F,!0);ce(F);var J=pe(F,2),$=de(J,!0);ce(J),ce(U);var ne=pe(U,4),ae=de(ne);dt(ae,{key:"dontHaveAnAccount",html:!0}),ce(ne),an(ne,te=>Y(y,te),()=>C(y)),Pe((te,ie)=>{wt(W,te),wt($,ie)},[()=>(G(Ee),Z(()=>Ee("forgotPassword",null,"Forgot Password?"))),()=>(G(Ee),Z(()=>Ee("forgotUsername",null,"Forgot Username?")))]),mn("click",F,Ml(()=>{p().push({journey:"ResetPassword"})})),mn("click",J,Ml(()=>{p().push({journey:"ForgottenUsername"})})),Q(j,L)};Ze(D,j=>{l()!=="inline"&&j(V)})}Q(s,a)},$$slots:{default:!0},$$legacy:!0})}var u=je(c);return i(),u}var aP=Ce('<div class="tw_flex tw_justify-center"><!></div>'),sP=Ce('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),oP=Ce("<!> <!> <!> <!>",1);function c_(e,t){if(new.target)return Ge({component:c_,...e});He(t,!1);const n=()=>sr(Wr,"$style",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12),k=re(!1),h=re(),y=re(""),b=re([]);function c(){var s,o,a;(o=(s=_())==null?void 0:s.step)!=null&&o.derived.isStepSelfSubmittable()&&((a=d())==null||a.submit())}Vn(()=>{var s;Y(k,!!((s=d())!=null&&s.message))}),vt(()=>(G(d()),G(S()),fe),()=>{var o;Y(y,as((o=d())==null?void 0:o.message));const s=S().getCallbacksOfType(fe.ConfirmationCallback);if(s.length){const a=s[0];Y(h,a.getOptions().map((m,v)=>({value:`${v}`,text:m})))}Y(b,S().callbacks.filter(a=>a.getType()!==fe.ConfirmationCallback))}),Tt();var u={get componentStyle(){return l()},set componentStyle(s){l(s),B()},get form(){return d()},set form(s){d(s),B()},get formEl(){return g()},set formEl(s){g(s),B()},get journey(){return p()},set journey(s){p(s),B()},get metadata(){return _()},set metadata(s){_(s),B()},get step(){return S()},set step(s){S(s),B()},$set:Ke,$on:(s,o)=>We(t,s,o)};ut();{let s=me(()=>(G(d()),Z(()=>{var o;return(o=d())==null?void 0:o.submit})));Ni(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(s)},get formEl(){return g()},set formEl(o){g(o)},children:(o,a)=>{var m=oP(),v=qe(m);{var w=I=>{var D=sP(),V=qe(D);{var j=J=>{var $=aP(),ne=de($);Gf(ne,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce($),Q(J,$)};Ze(V,J=>{G(d()),Z(()=>{var $;return($=d())==null?void 0:$.icon})&&J(j)})}var L=pe(V,2),U=de(L);dt(U,{key:"twoFactorAuthentication"}),ce(L);var F=pe(L,2),W=de(F);dt(W,{key:"useTheAuthenticatorAppOnYourPhone"}),ce(F),Q(I,D)};Ze(v,I=>{l()!=="inline"&&I(w)})}var A=pe(v,2);{var E=I=>{qn(I,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(D,V)=>{Wt();var j=Vt();Pe(L=>wt(j,L),[()=>(G(Ee),C(y),G(d()),Z(()=>{var L;return Ee(C(y),null,(L=d())==null?void 0:L.message)}))]),Q(D,j)},$$slots:{default:!0}})};Ze(A,I=>{G(d()),Z(()=>{var D;return(D=d())==null?void 0:D.message})&&I(E)})}var O=pe(A,2);Jn(O,1,()=>C(b),Yn,(I,D,V)=>{{let j=me(()=>(C(D),G(_()),n(),Z(()=>{var L,U;return{callback:C(D),callbackMetadata:(L=_())==null?void 0:L.callbacks[V],selfSubmitFunction:c,stepMetadata:((U=_())==null?void 0:U.step)&&{..._().step},style:n()}})));os(I,{get props(){return C(j)}})}});var T=pe(O,2);{var M=I=>{{let D=me(()=>(G(p()),Z(()=>{var V;return(V=p())==null?void 0:V.loading})));Un(I,{get busy(){return C(D)},style:"primary",type:"submit",width:"full",children:(V,j)=>{dt(V,{get key(){return C(h),Z(()=>C(h)[0].text)}})},$$slots:{default:!0}})}},P=I=>{{let D=me(()=>(G(p()),Z(()=>{var V;return(V=p())==null?void 0:V.loading})));Un(I,{get busy(){return C(D)},style:"primary",type:"submit",width:"full",children:(V,j)=>{dt(V,{key:"loginButton"})},$$slots:{default:!0}})}},x=Ji(()=>(G(_()),Z(()=>{var I,D,V,j;return((D=(I=_())==null?void 0:I.step)==null?void 0:D.derived.isUserInputOptional)||!((j=(V=_())==null?void 0:V.step)!=null&&j.derived.isStepSelfSubmittable())})));Ze(T,I=>{C(h),Z(()=>{var D;return(D=C(h))==null?void 0:D.length})?I(M):C(x)&&I(P,1)})}Q(o,m)},$$slots:{default:!0},$$legacy:!0})}var f=je(u);return i(),f}var lP=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1Zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5v-1Zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2Z"></path><title><!></title></svg>');function u_(e,t){if(new.target)return Ge({component:u_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=lP(),d=pe(de(l)),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"width",r()),be(l,"height",r())}),Q(e,l),je(i)}var cP=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M3 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V2zm6 11a1 1 0 1 0-2 0 1 1 0 0 0 2 0z"></path></svg>');function d_(e,t){if(new.target)return Ge({component:d_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=cP();return Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var uP=Ce('<div class="tw_flex tw_justify-center tw_mb-6"><!></div>'),dP=Ce('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),fP=Ce('<div class="tw_text-center"><!> <p class="tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></div>'),hP=Ce('<!> <!> <!> <canvas class="tw_m-auto tw_mb-6" data-testid="qr-code-canvas"></canvas> <!> <!> <details class="tw_my-6 tw_text-secondary-dark dark:tw_text-secondary-light"><summary><!></summary> <div class="tw_overflow-hidden"><!> <p class="tw_text-base tw_my-6"><!></p> <div class="tw_relative tw_overflow-hidden"><label for="mfa-registration-url"><!></label> <button class="tw_absolute tw_h-4 tw_bg-background-dark tw_right-1 tw_top-1 tw_shadow-[0_0_1rem_2rem_black] tw_shadow-background-light dark:tw_shadow-background-dark tw_text-secondary-dark dark:tw_text-secondary-light"><!></button> <input class="tw_bg-transparent tw_border-none focus-visible:tw_outline-none tw_font-mono tw_w-full" id="mfa-registration-url"/></div></div></details> <!>',1);function f_(e,t){if(new.target)return Ge({component:f_,...e});He(t,!1);const n=()=>sr(Wr,"$style",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12),k=re(!1),h=re(),y=re(""),b=re([]),c=re(!1),u=re(),f=re(),s=re(),o=re(""),a=re();function m(){var E,O,T;(O=(E=_())==null?void 0:E.step)!=null&&O.derived.isStepSelfSubmittable()&&((T=d())==null||T.submit())}async function v(){C(a).select(),document.execCommand("copy")}Vn(()=>{var E;Y(k,!!((E=d())!=null&&E.message))}),Hr(()=>{async function E(){try{const O=await Promise.resolve().then(()=>NR);Y(c,!0),Y(o,Ey.getQRCodeData(S()).uri),O.toCanvas(C(s),C(o),{errorCorrectionLevel:"L",version:20,width:400},function(T){T&&(d(d().message=Ee("qrCodeFailedToRender"),!0),console.error(T))})}catch{d(d().message=Ee("qrCodeImportFailure"),!0),console.error("Failed to import QR Code library")}}E()}),vt(()=>(G(_()),G(S()),G(d())),()=>{var O;_()&&_(_().step.derived.stageName="QRCode",!0);const E=S().getCallbacksOfType(fe.ConfirmationCallback);if(E.length){const T=E[0];Y(h,T.getOptions().map((M,P)=>({value:`${P}`,text:M})))}S().callbacks.forEach((T,M)=>{T.getType()===fe.PollingWaitCallback&&(Y(u,T),Y(f,M))}),Y(y,as((O=d())==null?void 0:O.message)),Y(b,S().callbacks.filter(T=>T.getType()===fe.TextOutputCallback||T.getType()===fe.ConfirmationCallback?!1:T.getType()!==fe.PollingWaitCallback))}),Tt();var w={get componentStyle(){return l()},set componentStyle(E){l(E),B()},get form(){return d()},set form(E){d(E),B()},get formEl(){return g()},set formEl(E){g(E),B()},get journey(){return p()},set journey(E){p(E),B()},get metadata(){return _()},set metadata(E){_(E),B()},get step(){return S()},set step(E){S(E),B()},$set:Ke,$on:(E,O)=>We(t,E,O)};ut();{let E=me(()=>(G(d()),Z(()=>{var O;return(O=d())==null?void 0:O.submit})));Ni(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(E)},get formEl(){return g()},set formEl(O){g(O)},children:(O,T)=>{var M=hP(),P=qe(M);{var x=ke=>{var Xe=dP(),ge=qe(Xe);{var Le=bn=>{var Fn=uP(),Bn=de(Fn);d_(Bn,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(Fn),Q(bn,Fn)};Ze(ge,bn=>{G(d()),Z(()=>{var Fn;return(Fn=d())==null?void 0:Fn.icon})&&bn(Le)})}var Mt=pe(ge,2),Ct=de(Mt);dt(Ct,{key:"twoFactorAuthentication"}),ce(Mt);var Ut=pe(Mt,2),$t=de(Ut);dt($t,{key:"scanQrCodeWithAuthenticator"}),ce(Ut),Q(ke,Xe)};Ze(P,ke=>{l()!=="inline"&&ke(x)})}var I=pe(P,2);{var D=ke=>{qn(ke,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(Xe,ge)=>{Wt();var Le=Vt();Pe(Mt=>wt(Le,Mt),[()=>(G(Ee),C(y),G(d()),Z(()=>{var Mt;return Ee(C(y),null,(Mt=d())==null?void 0:Mt.message)}))]),Q(Xe,Le)},$$slots:{default:!0}})};Ze(I,ke=>{G(d()),Z(()=>{var Xe;return(Xe=d())==null?void 0:Xe.message})&&ke(D)})}var V=pe(I,2);{var j=ke=>{var Xe=fP(),ge=de(Xe);gr(ge,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_my-6 tw_w-24"});var Le=pe(ge,2),Mt=de(Le);dt(Mt,{key:"loading"}),ce(Le),ce(Xe),Q(ke,Xe)};Ze(V,ke=>{C(c)||ke(j)})}var L=pe(V,2);an(L,ke=>Y(s,ke),()=>C(s));var U=pe(L,2);Jn(U,1,()=>C(b),Yn,(ke,Xe,ge)=>{{let Le=me(()=>(C(Xe),G(_()),n(),Z(()=>{var Mt,Ct;return{callback:C(Xe),callbackMetadata:(Mt=_())==null?void 0:Mt.callbacks[ge],selfSubmitFunction:m,stepMetadata:((Ct=_())==null?void 0:Ct.step)&&{..._().step},style:n()}})));os(ke,{get props(){return C(Le)}})}});var F=pe(U,2);{var W=ke=>{const Xe=me(()=>(C(u),G(_()),C(f),n(),Z(()=>{var ge;return{callback:C(u),callbackMetadata:(ge=_())==null?void 0:ge.callbacks[C(f)],options:{inline:!0},selfSubmitFunction:m,style:n()}})));zf(ke,Zt(()=>C(Xe)))};Ze(F,ke=>{C(u)&&ke(W)})}var J=pe(F,2),$=de(J),ne=de($);dt(ne,{key:"qrCodeNotWorking"}),ce($);var ae=pe($,2),te=de(ae);Vf(te,{get href(){return C(o)},classes:"tw_block tw_my-6",target:"_self",children:(ke,Xe)=>{dt(ke,{key:"onMobileOpenInAuthenticator"})},$$slots:{default:!0}});var ie=pe(te,2),Se=de(ie);dt(Se,{key:"copyAndPasteUrlBelow"}),ce(ie);var _e=pe(ie,2),Ne=de(_e),et=de(Ne);dt(et,{key:"url"}),ce(Ne);var Nt=pe(Ne,2),oe=de(Nt);u_(oe,{classes:"tw_fill-current tw_inline-block tw_align-top",size:"16",children:(ke,Xe)=>{dt(ke,{key:"copyUrl"})},$$slots:{default:!0}}),ce(Nt);var Ie=pe(Nt,2);Vr(Ie),an(Ie,ke=>Y(a,ke),()=>C(a)),ce(_e),ce(ae),ce(J);var Be=pe(J,2);{var $e=ke=>{{let Xe=me(()=>(G(p()),Z(()=>{var ge;return(ge=p())==null?void 0:ge.loading})));Un(ke,{get busy(){return C(Xe)},style:"primary",type:"submit",width:"full",children:(ge,Le)=>{dt(ge,{get key(){return C(h),Z(()=>C(h)[0].text)}})},$$slots:{default:!0}})}};Ze(Be,ke=>{C(h),Z(()=>{var Xe;return(Xe=C(h))==null?void 0:Xe.length})&&ke($e)})}Pe(()=>Qu(Ie,C(o))),mn("click",Nt,v),Q(O,M)},$$slots:{default:!0},$$legacy:!0})}var A=je(w);return i(),A}var gP=kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 18"><path fill-rule="evenodd" d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm2.146 5.146a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647z"></path></svg>');function h_(e,t){if(new.target)return Ge({component:h_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=gP();return Pe(()=>{be(l,"height",r()),be(l,"width",r()),Ot(l,0,Cn(n()))}),Q(e,l),je(i)}var pP=Ce('<div class="tw_flex tw_justify-center"><!></div>'),mP=Ce('<li class="tw_text-center"><span class="tw_text-secondary-dark dark:tw_text-secondary-light"> </span></li>'),vP=Ce('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_-mt-5 tw_mb-2 tw_py-4 tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header> <hr class="tw_border-collapse tw_border-secondary-light dark:tw_border-secondary-dark tw_mb-8"/> <h2 class="tw_secondary-header dark:tw_secondary-header_dark tw_text-lg"><!></h2> <p class="tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"><!></p> <ol class="tw_font-mono tw_border tw_border-secondary-light dark:tw_border-secondary-dark tw_bg-white dark:tw_bg-body-dark tw_list-decimal tw_text-secondary-light dark:tw_text-secondary-light tw_py-4 tw_list-inside tw_rounded-md tw_mb-4 tw_columns-2"></ol> <p class="tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"><!></p> <!>',1);function g_(e,t){if(new.target)return Ge({component:g_,...e});He(t,!1);let n=z(t,"componentStyle",12),r=z(t,"form",12),i=z(t,"formEl",12,null),l=z(t,"journey",12),d=z(t,"step",12);const g="genericStepFailureMessage",p="genericStepHeader",_="genericStepForm";let S=re("genericStepHeader"),k=re(!1),h=re([]),y=re("New Security Key");Vn(()=>{var c;(c=r())!=null&&c.message?(Y(S,g),Y(k,!1)):(Y(S,p),Y(k,!0))}),vt(()=>G(d()),()=>{Y(h,Mf.getCodes(d())),Y(y,Mf.getDeviceName(d()))}),Tt();var b={get componentStyle(){return n()},set componentStyle(c){n(c),B()},get form(){return r()},set form(c){r(c),B()},get formEl(){return i()},set formEl(c){i(c),B()},get journey(){return l()},set journey(c){l(c),B()},get step(){return d()},set step(c){d(c),B()},$set:Ke,$on:(c,u)=>We(t,c,u)};return ut(),Ni(e,{get ariaDescribedBy(){return C(S)},id:_,get needsFocus(){return C(k)},onSubmitWhenValid:()=>r().submit(),get formEl(){return i()},set formEl(c){i(c)},children:(c,u)=>{var f=vP(),s=qe(f);{var o=V=>{var j=pP(),L=de(j);h_(L,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(j),Q(V,j)};Ze(s,V=>{G(r()),G(n()),Z(()=>{var j;return((j=r())==null?void 0:j.icon)&&n()!=="inline"})&&V(o)})}var a=pe(s,2);be(a,"id",p);var m=de(a),v=de(m);dt(v,{key:"yourMultiFactorAuthIsEnabled"}),ce(m);var w=pe(m,2),A=de(w);dt(A,{key:"useThisNewMfaToHelpVerifyYourIdentity"}),ce(w),ce(a);var E=pe(a,4),O=de(E);dt(O,{key:"dontGetLockedOut"}),ce(E);var T=pe(E,2),M=de(T);dt(M,{html:!0,key:"yourRecoveryCodesToAccessAccountForLostDevice"}),ce(T);var P=pe(T,2);Jn(P,5,()=>C(h),Yn,(V,j)=>{var L=mP(),U=de(L),F=de(U,!0);ce(U),ce(L),Pe(()=>wt(F,C(j))),Q(V,L)}),ce(P);var x=pe(P,2),I=de(x);{let V=me(()=>({name:C(y)}));dt(I,{html:!0,key:"useOneOfTheseCodes",get values(){return C(V)}})}ce(x);var D=pe(x,2);{let V=me(()=>(G(l()),Z(()=>{var j;return(j=l())==null?void 0:j.loading})));Un(D,{get busy(){return C(V)},style:"primary",type:"submit",width:"full",children:(j,L)=>{dt(j,{key:"nextButton"})},$$slots:{default:!0}})}Q(c,f)},$$slots:{default:!0},$$legacy:!0}),je(b)}var yP=kn('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"></path><title><!></title></svg>');function p_(e,t){if(new.target)return Ge({component:p_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(p){n(p),B()},get size(){return r()},set size(p){r(p),B()},$set:Ke,$on:(p,_)=>We(t,p,_)},l=yP(),d=pe(de(l),2),g=de(d);return xt(g,t,"default",{},null),ce(d),ce(l),Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var _P=Ce('<div class="tw_flex tw_justify-center"><!></div>'),wP=Ce('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-base tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),bP=Ce("<!> <!> <!> <!>",1);function m_(e,t){if(new.target)return Ge({component:m_,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"form",12),g=z(t,"formEl",12,null),p=z(t,"journey",12),_=z(t,"metadata",12),S=z(t,"step",12),k=re(!1),h=re(""),y=re();function b(){var f,s,o;(s=(f=_())==null?void 0:f.step)!=null&&s.derived.isStepSelfSubmittable()&&((o=d())==null||o.submit())}Vn(()=>{var f;Y(k,!!((f=d())!=null&&f.message))}),Hr(()=>{l()==="modal"&&au(C(y),p())}),vt(()=>G(d()),()=>{var f;Y(h,as((f=d())==null?void 0:f.message))}),Tt();var c={get componentStyle(){return l()},set componentStyle(f){l(f),B()},get form(){return d()},set form(f){d(f),B()},get formEl(){return g()},set formEl(f){g(f),B()},get journey(){return p()},set journey(f){p(f),B()},get metadata(){return _()},set metadata(f){_(f),B()},get step(){return S()},set step(f){S(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();{let f=me(()=>(G(d()),Z(()=>{var s;return(s=d())==null?void 0:s.submit})));Ni(e,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return C(f)},get formEl(){return g()},set formEl(s){g(s)},children:(s,o)=>{var a=bP(),m=qe(a);{var v=P=>{var x=wP(),I=qe(x);{var D=F=>{var W=_P(),J=de(W);p_(J,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(W),Q(F,W)};Ze(I,F=>{G(d()),Z(()=>{var W;return(W=d())==null?void 0:W.icon})&&F(D)})}var V=pe(I,2),j=de(V);dt(j,{key:"registerHeader"}),ce(V);var L=pe(V,2),U=de(L);dt(U,{key:"alreadyHaveAnAccount",html:!0}),ce(L),an(L,F=>Y(y,F),()=>C(y)),Q(P,x)};Ze(m,P=>{l()!=="inline"&&P(v)})}var w=pe(m,2);{var A=P=>{qn(P,{id:"formFailureMessageAlert",get needsFocus(){return C(k)},type:"error",children:(x,I)=>{Wt();var D=Vt();Pe(V=>wt(D,V),[()=>(G(Ee),C(h),G(d()),Z(()=>{var V;return Ee(C(h),null,(V=d())==null?void 0:V.message)}))]),Q(x,D)},$$slots:{default:!0}})};Ze(w,P=>{G(d()),Z(()=>d().message)&&P(A)})}var E=pe(w,2);Jn(E,1,()=>(G(S()),Z(()=>{var P;return(P=S())==null?void 0:P.callbacks})),Yn,(P,x,I)=>{{let D=me(()=>(C(x),G(_()),n(),Z(()=>{var V,j;return{callback:C(x),callbackMetadata:(V=_())==null?void 0:V.callbacks[I],selfSubmitFunction:b,stepMetadata:((j=_())==null?void 0:j.step)&&{..._().step},style:n()}})));os(P,{get props(){return C(D)}})}});var O=pe(E,2);{var T=P=>{{let x=me(()=>(G(p()),Z(()=>{var I;return(I=p())==null?void 0:I.loading})));Un(P,{get busy(){return C(x)},style:"primary",type:"submit",width:"full",children:(I,D)=>{dt(I,{key:"registerButton"})},$$slots:{default:!0}})}},M=Ji(()=>(G(_()),Z(()=>{var P,x,I,D;return((x=(P=_())==null?void 0:P.step)==null?void 0:x.derived.isUserInputOptional)||!((D=(I=_())==null?void 0:I.step)!=null&&D.derived.isStepSelfSubmittable())})));Ze(O,P=>{C(M)&&P(T)})}Q(s,a)},$$slots:{default:!0},$$legacy:!0})}var u=je(c);return i(),u}var SP=kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.06 6.5a.5.5 0 0 1 .5.5v.776a11.5 11.5 0 0 1-.552 3.519l-1.331 4.14a.5.5 0 0 1-.952-.305l1.33-4.141a10.5 10.5 0 0 0 .504-3.213V7a.5.5 0 0 1 .5-.5Z"></path><path d="M6.06 7a2 2 0 1 1 4 0 .5.5 0 1 1-1 0 1 1 0 1 0-2 0v.332c0 .409-.022.816-.066 1.221A.5.5 0 0 1 6 8.447c.04-.37.06-.742.06-1.115V7Zm3.509 1a.5.5 0 0 1 .487.513 11.5 11.5 0 0 1-.587 3.339l-1.266 3.8a.5.5 0 0 1-.949-.317l1.267-3.8a10.5 10.5 0 0 0 .535-3.048A.5.5 0 0 1 9.569 8Zm-3.356 2.115a.5.5 0 0 1 .33.626L5.24 14.939a.5.5 0 1 1-.955-.296l1.303-4.199a.5.5 0 0 1 .625-.329Z"></path><path d="M4.759 5.833A3.501 3.501 0 0 1 11.559 7a.5.5 0 0 1-1 0 2.5 2.5 0 0 0-4.857-.833.5.5 0 1 1-.943-.334Zm.3 1.67a.5.5 0 0 1 .449.546 10.72 10.72 0 0 1-.4 2.031l-1.222 4.072a.5.5 0 1 1-.958-.287L4.15 9.793a9.72 9.72 0 0 0 .363-1.842.5.5 0 0 1 .546-.449Zm6 .647a.5.5 0 0 1 .5.5c0 1.28-.213 2.552-.632 3.762l-1.09 3.145a.5.5 0 0 1-.944-.327l1.089-3.145c.382-1.105.578-2.266.578-3.435a.5.5 0 0 1 .5-.5Z"></path><path d="M3.902 4.222a4.996 4.996 0 0 1 5.202-2.113.5.5 0 0 1-.208.979 3.996 3.996 0 0 0-4.163 1.69.5.5 0 0 1-.831-.556Zm6.72-.955a.5.5 0 0 1 .705-.052A4.99 4.99 0 0 1 13.059 7v1.5a.5.5 0 1 1-1 0V7a3.99 3.99 0 0 0-1.386-3.028.5.5 0 0 1-.051-.705ZM3.68 5.842a.5.5 0 0 1 .422.568c-.029.192-.044.39-.044.59 0 .71-.1 1.417-.298 2.1l-1.14 3.923a.5.5 0 1 1-.96-.279L2.8 8.821A6.531 6.531 0 0 0 3.058 7c0-.25.019-.496.054-.736a.5.5 0 0 1 .568-.422Zm8.882 3.66a.5.5 0 0 1 .456.54c-.084 1-.298 1.986-.64 2.934l-.744 2.068a.5.5 0 0 1-.941-.338l.745-2.07a10.51 10.51 0 0 0 .584-2.678.5.5 0 0 1 .54-.456Z"></path><path d="M4.81 1.37A6.5 6.5 0 0 1 14.56 7a.5.5 0 1 1-1 0 5.5 5.5 0 0 0-8.25-4.765.5.5 0 0 1-.5-.865Zm-.89 1.257a.5.5 0 0 1 .04.706A5.478 5.478 0 0 0 2.56 7a.5.5 0 0 1-1 0c0-1.664.626-3.184 1.655-4.333a.5.5 0 0 1 .706-.04ZM1.915 8.02a.5.5 0 0 1 .346.616l-.779 2.767a.5.5 0 1 1-.962-.27l.778-2.767a.5.5 0 0 1 .617-.346Zm12.15.481a.5.5 0 0 1 .49.51c-.03 1.499-.161 3.025-.727 4.533l-.07.187a.5.5 0 0 1-.936-.351l.07-.187c.506-1.35.634-2.74.663-4.202a.5.5 0 0 1 .51-.49Z"></path></svg>');function v_(e,t){if(new.target)return Ge({component:v_,...e});He(t,!1);let n=z(t,"classes",12,""),r=z(t,"size",12,"24px");var i={get classes(){return n()},set classes(d){n(d),B()},get size(){return r()},set size(d){r(d),B()},$set:Ke,$on:(d,g)=>We(t,d,g)},l=SP();return Pe(()=>{Ot(l,0,Cn(n())),be(l,"height",r()),be(l,"width",r())}),Q(e,l),je(i)}var EP=Ce('<div class="tw_flex tw_justify-center"><!></div>'),kP=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),CP=Ce('<header><div class="tw_text-center tw_w-full tw_py-4"><!></div> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header>'),IP=Ce('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <!> <!>',1),AP=Ce('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),TP=Ce('<header class="tw_input-spacing"><!></header>'),OP=Ce("<!> <!> <!> <!>",1);function y_(e,t){if(new.target)return Ge({component:y_,...e});He(t,!1);let n=z(t,"allowWebAuthn",12,!0),r=z(t,"componentStyle",12),i=z(t,"form",12),l=z(t,"formEl",12,null),d=z(t,"step",12);const g="genericStepFailureMessage",p="genericStepHeader",_="genericStepForm";let S=re(!1),k=re(""),h=re(""),y=re("genericStepHeader"),b=re(!1),c=re(!0),u=re(!1),f=!1,s=Kr.getWebAuthnStepType(d());function o(v){const w=v.target;Y(k,w.value)}Vn(()=>{var v;(v=i())!=null&&v.message?(Y(y,g),Y(S,!0),Y(b,!1)):(Y(y,p),Y(S,!1),Y(b,!0)),n()&&!f&&(tr.Registration===s&&!C(c)||tr.Authentication===s)&&(f=!0,a())});async function a(){try{switch(s){case tr.Registration:{try{await Kr.register(d(),C(k))}catch{}break}case tr.Authentication:{await Kr.authenticate(d());break}default:break}}catch(v){console.debug("Passkey autofill attempt did not complete",v)}i().submit()}vt(()=>G(i()),()=>{var v;Y(h,as((v=i())==null?void 0:v.message))}),Tt();var m={get allowWebAuthn(){return n()},set allowWebAuthn(v){n(v),B()},get componentStyle(){return r()},set componentStyle(v){r(v),B()},get form(){return i()},set form(v){i(v),B()},get formEl(){return l()},set formEl(v){l(v),B()},get step(){return d()},set step(v){d(v),B()},$set:Ke,$on:(v,w)=>We(t,v,w)};return ut(),Ni(e,{get ariaDescribedBy(){return C(y)},id:_,get needsFocus(){return C(b)},get formEl(){return l()},set formEl(v){l(v)},children:(v,w)=>{var A=OP(),E=qe(A);{var O=j=>{var L=EP(),U=de(L);v_(U,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),ce(L),Q(j,L)};Ze(E,j=>{G(i()),G(r()),Z(()=>{var L;return((L=i())==null?void 0:L.icon)&&r()!=="inline"})&&j(O)})}var T=pe(E,2);{var M=j=>{var L=kP(),U=de(L);gr(U,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(L),Q(j,L)};Ze(T,j=>{C(u)&&j(M)})}var P=pe(T,2);{var x=j=>{qn(j,{id:g,get needsFocus(){return C(S)},type:"error",children:(L,U)=>{Wt();var F=Vt();Pe(W=>wt(F,W),[()=>(G(Ee),C(h),G(i()),Z(()=>{var W;return Ee(C(h),null,(W=i())==null?void 0:W.message)}))]),Q(L,F)},$$slots:{default:!0}})};Ze(P,j=>{G(i()),Z(()=>{var L;return(L=i())==null?void 0:L.message})&&j(x)})}var I=pe(P,2);{var D=j=>{var L=CP();be(L,"id",p);var U=de(L),F=de(U);gr(F,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(U);var W=pe(U,2),J=de(W);dt(J,{key:"verifyYourIdentity"}),ce(W);var $=pe(W,2),ne=de($);dt(ne,{key:"useDeviceForIdentityVerification"}),ce($),ce(L),Q(j,L)},V=j=>{var L=TP();be(L,"id",p);var U=de(L);{var F=J=>{var $=IP(),ne=qe($),ae=de(ne);dt(ae,{key:"nameYourDevice"}),ce(ne);var te=pe(ne,2);{let Se=me(()=>(G(Ee),Z(()=>Ee("optionallyNameDevice"))));Fi(te,{type:"text",isRequired:!1,isFirstInvalidInput:!1,key:"devicename",onChange:o,get label(){return C(Se)}})}var ie=pe(te,2);Un(ie,{style:"primary",type:"submit",width:"full",onClick:()=>{Y(c,!1),Y(u,!0)},children:(Se,_e)=>{dt(Se,{key:"nextButton"})},$$slots:{default:!0}}),Q(J,$)},W=J=>{var $=AP(),ne=qe($),ae=de(ne);{let Se=me(()=>(C(k),G(Ee),Z(()=>({name:C(k).length>0?C(k):Ee("yourDevice")}))));dt(ae,{key:"registerYourDevice",get values(){return C(Se)}})}ce(ne);var te=pe(ne,2),ie=de(te);dt(ie,{key:"chooseYourDeviceForIdentityVerification"}),ce(te),Q(J,$)};Ze(U,J=>{C(c)?J(F):J(W,-1)})}ce(L),Q(j,L)};Ze(I,j=>{G(tr),Z(()=>s===tr.Authentication)?j(D):j(V,-1)})}Q(v,A)},$$slots:{default:!0},$$legacy:!0}),je(m)}function PP(e,t={}){var i,l;if(!e||e.type!=="Step")return qf;const n=(l=(i=e==null?void 0:e.getStage)==null?void 0:i.call(e))==null?void 0:l.trim();if(n&&s_[n])return s_[n].component;switch((e==null?void 0:e.getStage)&&e.getStage()){case"OneTimePassword":return c_;case"DefaultRegistration":return m_;case"DefaultLogin":return Wf}if(L5(e))return Wf;if(Kr.getWebAuthnStepType(e))return y_;if(Mf.isDisplayStep(e))return g_;if(Ey.isQRCodeStep(e))return f_;if(e.getCallbacksOfType(fe.SuspendedTextOutputCallback).length>0)return o_;for(const d of Object.values(t))if(d.detect(e))return d.component;return qf}var RP=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),MP=Ce('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),LP=Ce("<!> <!>",1);function Kf(e,t){if(new.target)return Ge({component:Kf,...e});He(t,!1);const n=()=>sr(p(),"$journeyStore",r),[r,i]=Or();let l=z(t,"componentStyle",12),d=z(t,"displayIcon",12),g=z(t,"formEl",12,null),p=z(t,"journeyStore",12),_=z(t,"externalStages",28,()=>({}));n()||(console.error("Error: missing configuration."),console.error(`Import \`configure\` and \`await\` it before using the journey, user, or protect APIs. Example:
52
+ import { configure } from '@forgerock/login-widget';
53
+ await configure({
54
+ wellknown: 'https://<tenant>/am/oauth2/<realm>/.well-known/openid-configuration',
55
+ oidcClient: { clientId: '<client-id>', redirectUri: '<your-app-origin>/callback', scope: 'openid profile email' },
56
+ });`));let S=re(!1);const k=p()?f3(p()):null;function h(){var v;k==null||k.abort();const m=n().step;m&&m.type==="Step"&&((v=p())==null||v.next(m))}async function y(){var m,v;(m=p())==null||m.reset();try{const w=await ll.latest();await((v=p())==null?void 0:v.start(w))}catch(w){console.error("Unable to restart journey",w)}}Vn(()=>{Y(S,n()&&!n().successful)}),Vw(()=>{k==null||k.destroy()});var b={get componentStyle(){return l()},set componentStyle(m){l(m),B()},get displayIcon(){return d()},set displayIcon(m){d(m),B()},get formEl(){return g()},set formEl(m){g(m),B()},get journeyStore(){return p()},set journeyStore(m){p(m),B()},get externalStages(){return _()},set externalStages(m){_(m),B()},$set:Ke,$on:(m,v)=>We(t,m,v)};ut();var c=mt(),u=qe(c);{var f=m=>{var v=mt(),w=qe(v);{var A=O=>{var T=RP(),M=de(T);gr(M,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(T),Q(O,T)},E=O=>{var T=mt(),M=qe(T);{let P=me(()=>(G(d()),n(),Z(()=>{var I,D;return{icon:d(),message:((I=n().error)==null?void 0:I.message)||"",status:(D=n().error)!=null&&D.code?"error":"ok",submit:h}}))),x=me(()=>(n(),G(p()),G(ll),Z(()=>({loading:n().loading,pop:p().pop,push:p().push,stack:ll,redirect:p().redirect}))));Cg(M,()=>PP(n().step,_()),(I,D)=>{D(I,{get componentStyle(){return l()},get form(){return C(P)},get journey(){return C(x)},get metadata(){return n(),Z(()=>n().metadata)},get step(){return n(),Z(()=>n().step)},get formEl(){return g()},set formEl(V){g(V)},$$legacy:!0})})}Q(O,T)};Ze(w,O=>{n(),Z(()=>n()&&!n().step)?O(A):(n(),Z(()=>{var T;return((T=n().step)==null?void 0:T.type)==="Step"})&&O(E,1))})}Q(m,v)},s=m=>{var v=MP(),w=de(v);gr(w,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),ce(v),Q(m,v)},o=m=>{var v=LP(),w=qe(v);qn(w,{id:"unrecoverableStepError",get needsFocus(){return C(S)},type:"error",children:(E,O)=>{dt(E,{html:!0,key:"unrecoverableError"})},$$slots:{default:!0}});var A=pe(w,2);Un(A,{style:"secondary",onClick:y,children:(E,O)=>{dt(E,{key:"tryAgain"})},$$slots:{default:!0}}),Q(m,v)};Ze(u,m=>{n(),Z(()=>n()&&!n().completed)?m(f):(n(),Z(()=>n()&&n().successful)?m(s,1):m(o,-1))})}Q(e,c);var a=je(b);return i(),a}const cl=X5(Lg()),DP=cl.configure,NP=cl.journey,xP=Lg,UP=cl.user,FP=cl.protect;var BP=Ce('<div class="fr_widget-root svelte-1qcpfdr"><!></div>'),zP=Ce('<div class="fr_widget-root svelte-1qcpfdr"><!></div>');function __(e,t){if(new.target)return Ge({component:__,...e});He(t,!1);const n=()=>sr(Wr,"$styleStore",r),[r,i]=Or();let l=z(t,"type",12,"modal");const{journeyStore:d}=cl.getStores();let g=re(),p=re(),_=re(),S=re();Hr(()=>{jw(C(g),C(p))}),vt(()=>(C(S),n()),()=>{var f;a3(C(S),(f=n())==null?void 0:f.theme)}),Tt();var k={get type(){return l()},set type(f){l(f),B()},$set:Ke,$on:(f,s)=>We(t,f,s)};ut();var h=mt(),y=qe(h);{var b=f=>{var s=BP(),o=de(s);{let a=me(()=>(n(),Z(()=>{var m,v;return(v=(m=n())==null?void 0:m.sections)==null?void 0:v.header})));an(_y(o,{dialogId:"sampleDialog",get withHeader(){return C(a)},get dialogEl(){return C(p)},set dialogEl(m){Y(p,m)},children:(m,v)=>{{let w=me(()=>(n(),Z(()=>{var A,E,O;return((E=(A=n())==null?void 0:A.stage)==null?void 0:E.icon)??!((O=n())!=null&&O.logo)})));Kf(m,{componentStyle:"modal",get displayIcon(){return C(w)},get journeyStore(){return d},get formEl(){return C(_)},set formEl(A){Y(_,A)},$$legacy:!0})}},$$slots:{default:!0},$$legacy:!0}),m=>Y(g,m),()=>C(g))}ce(s),an(s,a=>Y(S,a),()=>C(S)),Q(f,s)},c=f=>{var s=zP(),o=de(s);{let a=me(()=>(n(),Z(()=>{var m,v;return((v=(m=n())==null?void 0:m.stage)==null?void 0:v.icon)??!0})));Kf(o,{componentStyle:"inline",get displayIcon(){return C(a)},get journeyStore(){return d},get formEl(){return C(_)},set formEl(m){Y(_,m)},$$legacy:!0})}ce(s),an(s,a=>Y(S,a),()=>C(S)),Q(f,s)};Ze(y,f=>{l()==="modal"?f(b):f(c,-1)})}Q(e,h);var u=je(k);return i(),u}if(typeof window<"u"){let p=function(h,y){const b=_();return p=function(c,u){return c=c-308,b[c]},p(h,y)},_=function(){const h=["NAVIGATOR_LANGUAGE","DeviceMotionEvent","languages","Microsoft YaHei","isBatterySupported","driver","RunPerfTest","ie8compat","UAParserHelperMetadata","hasInput","password","cpuClass","iframeWindow","Hoefler Text","Yahoo! Japan","getAutofillMetadataSmart","code","hasOwnProperty","fingerPrintComponents","LKLUG","debug","visibility","createDataChannel","animationstart","external","span","Segoe MDL2 Assets","input:-webkit-autofill { animation: autofill-detection 0.001s; }","_ST_PING","audio/aac","csi","width","Poppins"," [native code]","origin","__webdriver_unwrapped","VENDOR","hasTrustToken","NAVIGATOR_POINTER_ENABLED","websockets","window_fmget_targets","getFingerPrint","Open Sans","you","Battery not supported!","statusText","localStorage","window","next","removeItem","engine","trim","MS Reference Specialty","webgl2","matchmedia","__fxdriver_unwrapped","Pristina","hasPassword","Consolas","DetectHeadless","mmMwWLliI0O&1","includes","__fxdriver_evaluate","mozConnection","Herculanum","contextmenu","', ","Raleway","VIDEO_CARD","headlessTests","Menlo","Chalkboard","universalTrustEnabled","Apple Symbols","closed","inapp","sinh","BROWSER_VOICES_COUNT","safari","toLowerCase","selenium_in_window","ambient-light-sensor","getContext","baseFonts","internationalization","failed to get broJsFingerprint info","Windows Phone","Other","getLies","createOffer","Trattatello","Noto Sans CJK SC","webdriverCommand","__lastWatirAlert","HASLIEDRESOLUTION","engineVersion","getNewObjectToStringTypeErrorLie","documentLie","detectFontsQuick","onicecandidate","custom_event","ZTE","getHasLiedResolution","getAttribute","backgroundColor","size","Failed to setup autofill detection:","configurable","isIphoneOrIPad","Serifa","27szwMUD","indexed_db_blob","join","INPUT","Segoe Script","webkitRequestFileSystem","constructor","MAX_VARYING_VECTORS","Liberation Mono","Bodoni 72 Smallcaps","MingLiU-ExtB","LvTel","acos","timeout","Georgia","toFixed","Baskerville","Sawasdee","AGENT_DEVICE_URL","failed to add client hints","error_code","now","isCanvasSupported","rgb(250, 255, 189)","Futura Bk BT","quota detection failed: ","Cochin","htmlGeoLocation_heading","mediaplayer","detectAutofillFieldsAsync","version","setAttribute","light","NAVIGATOR_HID_SUPPORTED","spawn","type","testString","initDeviceIdentity","createInvisibleElement","awesomium","canPlayType","getAllLies","FingerPrint failed","open","AT&T","Noto Color Emoji","AUDIO_OUTPUT_DEVICES","formFactor","ondevicelight","cosh","addStealthTest","denied","getHasLiedBrowser","speechSynthesis","map","history","SimSun","getSupportedExtensions","keys","autocomplete","BATTERY_CHARGING_TIME","COOKIES_ENABLED","Zeki","sans-serif-medium","userLanguage","detectFontsWithCanvas","getQuickFingerprint","vendorFlavors","consistent_mimetypes_prototype","colorGamut","Envizen","batteryCharging","language","...","connect","Notification","NAVIGATOR_USER_AGENT","font","filter","requestanimationframe","webRtcIps","length","processInputsWithTimeout","sessionStorage.length","DejaVu Serif","isInvalidStackTraceSize","add","ontouchstart","addPropertyDescriptorInfo","split","getGeoLocationData","rgb(232, 240, 254)","Standard Symbols L","Modernizr","error","indexeddb","NAVIGATOR_KEYBOARD_SUPPORTED","dataforseobot","OS_CPU","HAS_HOVER","failed to get audio-video info","application_cache","FingerprintJS","Humanst521 BT","(any-hover: hover)","headless_chrome","getIoMetadata","detectFonts","getAiaSignals","Ubuntu","battery_api","latitude","apply","Ubuntu Condensed","sans-serif-thin","bluetooth","__proto__","webkitTemporaryStorage","screen","Arial","claudebot","Trebuchet MS","dark","query","openDatabase","PMingLiU","true","JS_FONTS","DOCUMENT_ELEMENT_DRIVER","Font detection failed","PromiseQueue","getPermissionsMetadata","browserInfo","semrushbot-ocob","vertical","(prefers-color-scheme: light)","Internet Explorer","Symbol","Segoe Print","web_sockets","Times","FontFingerprint","NAVIGATOR_CLIENT_HINTS_BITNESS","calculated browser device attributes.","test"," in async detection:","googleother-video","Meera","agentPort","selenium_in_navigator","videoInputDevices","has","MAX_VERTEX_ATTRIBS","$cdc_asdjflasutopfhvcZLmcfl_","_phantom","NAVIGATOR_DEVICE_MEMORY","Minion Pro","productSub","getIdentificationMetadata","BATTERY_DISCHARGING_TIME","fontHash","clipboard-read","SCREEN_FRAME","seleniumSequentum","***","Sitka","visitorId","granted","HAS_CHROME_RUNTIME","timestamp","canvas","sans-serif-light","find","none","FreeMono","cant","window_RunPerfTest","Copperplate","getOwnPropertyDescriptors","SignPainter","ondevicemotion","fillText","maxTextureSize","game_pads","MQ_SCREEN","webkit-autofill","ipod","LocalAgentAccessor","_WEBDRIVER_ELEM_CACHE","maxFragmentUniformVectors","unknown","addIframeData","getAutofillMetadata","undefined","coords","collectWebRtc","MAX_VERTEX_UNIFORM_VECTORS","Zapfino","gpsSupported","ondeviceproximity","FreeSans","Avenir Next Condensed","browser","NAVIGATOR_VIBRATE","ligatures","plugins","Century","AUDIO_FINGERPRINT","Failed to fetch the Workstation data. Invalid network response: ","externalIdentifiers","number","setTrustToken","Mukta","autocompleted","SDKBP_FINGERPRINT","blob_constructor","failed to get battery info","Montserrat","NAVIGATOR_SERIAL_SUPPORTED","maxVertexUniformVectors","height","batteryInit","audioInputDevices","ARCHITECTURE","Browser unknown","mobile","Ubuntu Mono","Roboto Slab","Avenir","privateClickMeasurement","querySelectorAll","requestIdleCallback","Tahoma","detectInputAutofill","AvantGarde Bk BT","fontList","pow","Haettenschweiler","set","getToStringLie","perplexitybot","Didot","Noto Sans CJK JP","Bahnschrift","data-lastpass-icon-id","GYROSCOPE_SUPPORTED","experimental-webgl","WEBGL_MAXVERTEXATTRIBS","Segoe UI Symbol","isChromeFamily","failed to get headless results","pointerevents","chrome_runtime_functions_invalid","animationName","Savoye LET","Error in smart autofill detection, falling back to sync:","DejaVu Sans Mono","__awaiter","MAX_RENDERBUFFER_SIZE","Courier New","Apple SD Gothic Neo","dataPoints","deviceId","top","SimHei","intl","isArray","isAutofilled","model","webRtcUrl","_FAILED","NAVIGATOR_CLIENT_HINTS_FULL_VERSION","user","Mac","trident","videoinput","onLine","Playfair Display","Firefox","expm1","metadataParams","cookiesEnabled","detectFontsWithIframe","Edge","notification","stealth test ","dataview","object","clearRect","Levenim MT","maxVertexTextureImageUnits","KacstOne","safeAddMetadata","querySelector","hasName","pwd","__webdriver_script_fn","value","hasEvent","autofilled","method","performFontDetection","localAgentJwt","omgilibot","TIMEOUT","flatAndAddMetadata","PUSH_NOTIFICATIONS_SUPPORTED","throw","__lastWatirConfirm","stack","geolocation","NAVIGATOR_VENDOR","geo_location","sessionData","MAX_TEXTURE_IMAGE_UNITS","RESOLUTION","windows phone","numberOfAudioDevices","random","connection","Geolocation retrieval failed: Location permission denied by the user.","tan","Ebrima","loadTimes","pagevisibility","jsHeapSizeLimit","gptbot","mimeTypes","Volvo","WEBKIT_FORCE_AT_MOUSE_DOWN","dom-query-error","bytespider","deleteDatabase","round","NAVIGATOR_APP_CODE_NAME","prototype","Failed to get FingerPrint ","fontFingerprintResult","getVoicesCount","selenium_in_document","getHeadlessResults","state","Microsoft Yi Baiti","Battery ","_POSignalsUtils","hasAutofill","WebGLMetadata","trustTokenOperationError","AppleGothic","GET","contains","seleniumInNavigator","fontPreferences","getCurrentBrowserFingerPrint","userAgent","magnetometer","Error during detection of aiasignals:","Noto Sans","getUndefinedValueLie","metadataQueue","serviceWorker","getHasLiedLanguages","eventlistener","getParameter","htmlGeoLocation_timestamp","renderer","Monotype Corsiva","video","BROWSER_ENGINE_NAME","Apple Chancery","abort","timezone","browserType","Swiss","BLUTOOTH_SUPPORTED","cell","fonts","WEBGL_MAXFRAGMENTUNIFORMVECTORS","ACCELEROMETER_SUPPORTED","blobconstructor","WEBGL_MAXVERTEXTEXTUREIMAGEUNITS","Constantia","safeAddModernizrFeatures","performance","simpleHash","EUROSTILE","Linux","Unknown","htmlGeoLocation_latitude","Phosphate","SQRT2","processInputsSynchronously","IFRAME_CHROME","IS_WEBGL2","Segoe UI Light","downlinkMax","all","FILE_INJECT_JS_FOUND","absolute","linux","fingerPrint"," inputs","catch","browserMajor","additionalMediaCodecs","query_selector","Failed to query input elements in async detection:","failed to get deviceId info","Times New Roman","getOps","iframe","notifications","VIDEO_INPUT_DEVICES","force_touch","Candara","NAVIGATOR_ON_LINE","htmlGeoLocation_speed","DetectStealth","Essential","SHADING_LANGUAGE_VERSION","LOG2E","tagName","getLineDash","6608340mbTdOA","OPS","fontFamily","sin"," in browser '","__selenium_unwrapped","Helvetica","fingerPrintComponentKeys","full_screen","osVersion","toUpperCase","log","http://127.0.0.1","webglVersion","Droid Sans","clear","numberOfVideoDevices","phone","Microsoft Himalaya","detectAutofillFields","MS Outlook","ccbot","Urdu Nastaliq Unicode","Liberation Sans Narrow","Lucida Sans","-9999px","floc","AUDIO","parentNode","win","Noto Mono","page_visibility","MEMORY_HEAP_SIZE_LIMIT","function query() { [native code] }","create","android","WEB_RTC_ENABLED","Futura Md BT","indexeddbblob","20030107","broJsFingerprint","atanh","cbrt","getDirectory","minDecibels","isWebGlSupported","Geolocation retrieval failed: Location information is unavailable.","failed to get font fingerprint info","Calibri","autofill-detector-styles","DEDVCE_LIGHT_SUPPORTED","PROXIMITY_SUPPORTED","Verdana","Failed to start async autofill detection:","queryselector-unsupported","Meiryo","contentDocument"," inputs, checking first ","message","ipad","min","chrome","contentWindow","matchMedia","timpibot","selenium-evaluate","Rachana","Merriweather","Microsoft Tai Le","Ink Free","keyboard"," failed","LIES.","gyroscope","NAVIGATOR_LANGUAGES","mac","floc_version","BankGothic Md BT","metadataBlackList","data-com-onepassword-filled","kind","extensions","TRAJAN PRO","Error processing input ","LIES","getObfsInfo","getFrequencyResponse","touch_events","SeleniumProperties","caller","Monaco","accuracy","NAVIGATOR_CONNECTION_RTT","propertyBlackList","then","Geolocation retrieval failed: Location request timed out.","addEventListener","contrast","srcdoc_triggers_window_proxy","event_listener","hasEmail","maxVaryingVectors","createObjectStore","_POSignalsMetadata","getWebglCanvas","writable","input","consistent_plugins_prototype","__driver_unwrapped","Palatino Linotype","page intentionally left blank","Bitstream Charter","cpuArchitecture","Letter Gothic","serviceworker","pass","GOTHAM","hashMini","Marker Felt","warn","NAVIGATOR_APP_VERSION","Meiryo UI","WEBGL2VENDORANDRENDERER","stringify","forcedColors","library","window_html_webdriver","webdriver-evaluate-response","NAVIGATOR_CLIENT_HINTS_ARCHITECTURE","audio","LN2","usedJSHeapSize","data-attribute","Gabriola","VENDOR_FLAVORS","quotamanagement","Metadata","webGlBasics","StackTraceTester","aiSignalsResult","e-mail","browser-class","__lastWatirPrompt","TOUCH_SUPPORT","lied","mediaDevices","Document not available for autofill detection","Agency FB","maxTouchPoints","webdriver","__webdriver_evaluate","toString","cros","BROWSER_VERSION","Skia","setupAutofillDetection","browserVersion","Logger","Nunito","userAgentData","IS_CHROME_FAMILY","animation-detection","extendPrimitiveValues","Fingerprint timeout","application/json","PingOne Signals deviceCreatedAt: ","Vrinda","HAS_CHROME_LOADTIMES","tablet","PingOne Signals deviceId: ","NAVIGATOR_WEB_DRIVER","NAVIGATOR_CLIENT_HINTS_BRAND_","srcdoc","outerWidth","OS_VERSION","reducedTransparency","DeviceOrientationEvent","Lohit Gujarati","removeEventListener","Function_prototype_toString_invalid_typeError","Impact","driver-evaluate","forEach","ambientlight","htmlGeoLocation_ErrorCode","WEBGL_EXTENSIONS","appendChild","function () { [native code] }","textSize","MS Gothic","deviceVendor","DEVICE_MODEL","AGENT_BASE_URL","NAVIGATOR_PLATFORM","Arial Unicode MS","queryselector","msSaveBlob","localAgentJwtRequestCount","velenpublicwebcrawler","Dell","Microsoft New Tai Lue","domAutomation","flatten","MAX_TEXTURE_SIZE","ARNO PRO","ChromeDriverw","failed to get private mode info","PERMISSIONS.geolocation","devToolsOrientation","Chromium","WEBGL_SHADINGLANGUAGEVERSION","Canvas font detection failed","autofillCount","_pingOneSignalsPingResult","Roboto","load","Javanese Text","pointer_lock","detectionMethods","delay","(prefers-color-scheme: dark)","scrapy","PDF_VIEWER_ENABLED","INCOMPATIBLE_BROWSER","fontSize","Charter","getPrototypeInFunctionLie","getExtension","audioOutputDevices","push","PLUGINS","Promise","getCurrentPosition","RCA","charging","isIAFDetectionEnabled","cryptography","replace","memory","setItem","NAVIGATOR_CLIENT_HINTS_MODEL","freeze","offsetHeight","components","() {","SCRIPTINA","voiceschanged","fullVersionList","htmlGeoLocation_longitude","web_gl","removeChild","json","Autofill detection timeout after processing ","videoCard","hidden","pointerEnabled","oai-searchbot","NuVision","Century Gothic","hdr","permissions_api_overriden","Optima","getProperty","Dragon Touch","audioIntVideoInit","engineName","MV Boli","Cantarell","getOwnPropertyDescriptor","HAS_TOUCH","_selenium","Chalkboard SE","amazonbot","createElement","browser-autofilled","JS_CHALLENGE","enumerateDevices() cannot run within safari iframe","race","getOwnPropertyNames","promiseTimeout","BLINK","left","VERSION","getHasLiedOs","getLocalAgentJwt","result","get","WEBGL_MAXRENDERBUFFERSIZE","sqrt","devToolsOpen","youbot","allSettled","navigator.webdriver_present","Incognito","DetectLies","Nirmala UI","trustToken","Roboto Condensed","toDataURL","fingerprint","Bitstream Vera Sans Mono","agentIdentificationEnabled","selenium_sequentum","FILE_CONTENT_JS_FOUND","appName","7884160moAMPL","brands","webzio-extended","Tibetan Machine Uni","BROWSER_TAB_HISTORY_LENGTH","Padauk","function get ","IFRAME_HEIGHT","Windows","microphone","LIES_IFRAME","HAS_MICROPHONE","iOS","longitude","custom_elements","lieTypes","domBlockers","getAutofillMetadataAsync","lieTests","OS_NAME","NAVIGATOR_MIME_TYPES_LENGTH","queryUsageAndQuota","disabledStorage","Opera","substr","MS Mincho","Oswald","getOwnPropertyLie","log10","isAIBot","background-sync","Noto Sans CJK KR","isElectronFamily","appVersion","permission","Leelawadee","isPrivateModeV2","enumerateDevices","9921562buzzOg","customprotocolhandler","AUDIO_INPUT_DEVICES","UNMASKED_RENDERER_WEBGL","platform","style","MT Extra","px)","IS_ACCEPT_COOKIES","HAS_CHROME_APP","[[IsRevoked]]","function","textContent","failed ","audio/x-m4a","sort","Leelawadee UI","hardwareConcurrency","rad.io","data-autofilled","substring","typed_arrays","DOCUMENT_ELEMENT_WEBDRIVER","localAgentAccessor","MS UI Gothic","label","exec","storage","pike","fetcher","getWebglData","firefox","accessibility-events","Lato","google-extended","product","field-type-heuristic","Abyssinica SIL","request_animation_frame","htmlGeoLocation_ErrorMessage","72px","WEBGL_MAXVERTEXUNIFORMVECTORS","Android","IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE","function ","NAVIGATOR_APP_NAME","STEALTH","hasMicrophone","BROWSER_MAJOR","cors","Failed to fetch the Workstation data: ","architecture","HASLIEDBROWSER","slice","Helvetica Neue","emit","horizontal","addAutofillResult","NETWORK_DOWNLOAD_MAX","Small Fonts","seleniumInWindow","NAVIGATOR_PLUGINS_LENGTH","aiaSignals","ai2bot","Neither WebGL 2.0 nor WebGL 1.0 is supported.","RTCPeerConnection","getMediaCodec","hasWebcam","applePay","Bodoni 72","HAS_CAMERA","Security error","isWebGl2","force_touch.mouse_force_will_begin","deviceMemory","runtime","document-unavailable","HASLIEDLANGUAGES","Buffer","FreeSerif","Gargi","appCodeName","Big Caslon","isFunction","level","availHeight","Util","RENDERER","body","window_geb","deviceModel","getTime","force_touch.webkit_force_at_mouse_down","batteryChargingTime","failed to add iframe data","some","messagechannel","user name","app","callPhantom","NAVIGATOR_PRESENTATION_SUPPORTED","getBroPrintFingerPrint","Source Sans Pro","navigator.plugins_empty","documentElement","Corbel","copyFromChannel","Document not available for async autofill detection","105246tdrkWn","Function","getVoices","customelements","getStealthResult","voicesCount","monospace","Modernizr.on Failed with feature ","detectedFields",'video/mp4;; codecs = "avc1.42E01E"',"POSITION_UNAVAILABLE","prefixed","Lohit Tamil","serializedDeviceAttributes","WEBGL_debug_renderer_info","Khmer OS System","hasNumber","hasSpeakers","email","force_touch.webkit_force_at_force_mouse_down","floc_id","Century Schoolbook L","[[Handler]]","permissions","PERMISSIONS","autoFillMeta","batteryLevel","candidate","address","safeModernizrOn","isWebGl","FONT_FINGERPRINT","iphone","Marlett","googleother","imagesiftbot","Geolocation retrieval failed: Unknown geolocation error occurred.","custom_protocol_handler","petalbot","moz-autofill","AutofillDetector","__driver_evaluate","isBot","details","headlessResults","BATTERY_CHARGING","exiforientation","navigator.languages_blank","devicePixelRatio","dateTimeLocale","fmget_targets","Sylfaen","iframe_window","Univers CE 55 Medium","Verizon","placeholder","clipboard-write","vibrate","Apple Color Emoji","Yu Gothic","domAutomationController","Arabic Typesetting","webkitRTCPeerConnection","[[Target]]","detectPageInputFields","toSource","UNMASKED_VENDOR_WEBGL","HEADLESS","setProperty","vendor","DejaVu Sans","hashFonts","applicationcache","' in browser '","Chrome","pointerlock","isPrivate","msMaxTouchPoints","signal","touchSupport","MEDIA_CODEC_X_M4A","2675716vuQeYs","Canvas context not available","Droid Serif","omgili","name","GPS_SUPPORTED","accelerometer","NAVIGATOR_HARDWARE_CONCURRENCY","isMobile","hide","window_awesomium","HELV","IS_PRIVATE_MODE","function () {","matches","evaluateModernizr","srcdoc_throws_error","WEBGL_MAXTEXTUREIMAGEUNITS","Microsoft PhagsPa","250, 255, 189","cookieEnabled","Failed to detect autofill:","__selenium_evaluate","indexOf","classList","googleother-image","getBattery","webgl","NAVIGATOR_CLIENT_HINTS_FORM_FACTORS","data-rapid-fill","service_worker","forcetouch","searchLies","Cambria","failed to get permissions info","proximity"," headless test was failed","midi","() { [native code] }","string","aria-label","remove","8763432iXdKsh","reducedMotion","Brush Script MT","PERMISSION_DENIED","data_view","indexedDB","tanh","filename","getDevicePayload","Arial Hebrew","bitness","head","NAVIGATOR_CLIENT_HINTS_PLATFORM","acosh","duration","text","info","WEBGL_MAXCOMBINEDTEXTUREIMAGEUNITS","getGeoSessionData","webdriver-evaluate","isPrivateMode","Safari","document","selenium","Comic Sans MS","important","querySelectorAll not supported for autofill detection","osName","assign","Geolocation permission state is '","match","fullscreen","cookieStore","__webdriverFunc","$chrome_asyncScriptInfo","onAutoFillStart","refreshDeviceAttributes","screenFrame","calledSelenium","ambient_light","referrer","enumerable","camera","deviceCreatedAt","IS_AIBot","calculateDeviceMetadata","innerWidth","enumerateDevices() not supported.","outerHeight"," -> ","Lucida Sans Unicode","detectChromium","enumerateDevicesEnabled","lastCalculatedMetadata","NAVIGATOR_PRODUCT","getFontFingerprint","platformVersion","NOTIFICATION_PERMISSION","agentTimeout","HAS_SPEAKERS","Liberation Serif","onupgradeneeded","batteryDischargingTime","resolve","Malgun Gothic","Segoe UI","addClientHints","position","Courier","tel","Lucida Console","NAVIGATOR_CLIENT_HINTS_MOBILE",":-webkit-autofill","BATTERY_LEVEL","Liberation Sans","function toString() { [native code] }","American Typewriter","Webdings","anthropic-ai","seleniumInDocument","C059","Barnes & Noble","hasAttribute","div","navigator","getRTCPeerConnection","WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN","pdfViewerEnabled","gamepads","maxRenderbufferSize","brand","Failed to get font fingerprint: ","username","window.chrome_missing","TypeError","BROWSER_NAME","__webdriver_script_function"," test execution","62671tHBJnn","calculatedDevToolsOpen","htmlGeoLocation","colorDepth","PREFERS_COLOR_SCHEME","claude-web","interestCohort","touchevents","call","getHighEntropyValues","Lucida Bright","webGlStatus","mozRTCPeerConnection","WINDOW_GLOBAL_KEY_FOUND","getComputedStyle","dischargingTime","maxTextureImageUnits","deviceCategory"];return _=function(){return h},_()};var ee;(function(h,y){typeof h.CustomEvent!="function"&&(h.CustomEvent=y())})(window,function(){function h(y,b){b=b||{bubbles:!1,cancelable:!1,detail:null};var c=document.createEvent("CustomEvent");return c.initCustomEvent(y,b.bubbles,b.cancelable,b.detail),c}return h}),function(){var h="PING-SDK-VERSION-PLACEHOLDER",y="st-ping-div",b=/(console|auth)-(test|staging)((\w|\d|-)*)\.pingone.com/,c=/(console|auth)((\w|\d|-)*)\.test-(one|two)-pingone\.com/,u=/(console|auth)((\w|\d|-)*)\.ort-(one|two)-pingone\.com/,f=/localhost/,s=window.location.hostname;function o(D){window["enable-logs-pingOneSignals"]&&console.log(D)}function a(D){function V(ie){ie=ie.replace(/\r\n/g,`
57
+ `);for(var Se="",_e=0;_e<ie.length;_e++){var Ne=ie.charCodeAt(_e);Ne<128?Se+=String.fromCharCode(Ne):Ne>127&&Ne<2048?(Se+=String.fromCharCode(Ne>>6|192),Se+=String.fromCharCode(Ne&63|128)):(Se+=String.fromCharCode(Ne>>12|224),Se+=String.fromCharCode(Ne>>6&63|128),Se+=String.fromCharCode(Ne&63|128))}return Se}var j="",L,U,F,W,J,$,ne,ae=0,te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(D=V(D);ae<D.length;)L=D.charCodeAt(ae++),U=D.charCodeAt(ae++),F=D.charCodeAt(ae++),W=L>>2,J=(L&3)<<4|U>>4,$=(U&15)<<2|F>>6,ne=F&63,isNaN(U)?$=ne=64:isNaN(F)&&(ne=64),j=j+te.charAt(W)+te.charAt(J)+te.charAt($)+te.charAt(ne);return j}function m(){var D=document.getElementById(y);return D||(D=document.createElement("div"),D.style.border="none",D.style.position="absolute",D.style.top="-999px",D.style.left="-999px",D.style.width="0",D.style.height="0",D.style.visibility="hidden",D.style.overflow="hidden",D.id=y,document.body.appendChild(D),D)}function v(D){document.readyState!=="loading"?D():document.addEventListener("DOMContentLoaded",D)}function w(D){v(function(){if(D){var V=m();window._pingOneSignalsToken=getComputedStyle(V,"::after").content.replace(/['"]+/g,""),document.dispatchEvent(new CustomEvent("PingOneSignalsTokenReadyEvent"))}var j=D?"success":"failure";o("Finished - "+j)})}function A(D,V){for(var j=[],L=0;L<D.length;L++){var U=D.charCodeAt(L)^V.charCodeAt(L%V.length);j.push(String.fromCharCode(U))}return j.join("")}function E(D){var V={sdkVersion:h,platform:navigator.platform||""},j="dkiBm42",L=encodeURIComponent(a(A(JSON.stringify(V),j))),U=document.createElement("link");U.type="text/css",U.rel="stylesheet",U.href="https://"+D+"/signals/sdk/pong.css?body="+L+"&e=2";var F=document.head||document.getElementsByTagName("head")[0];F.appendChild(U),U.onload=function(){w(!0)},U.onerror=function(){w(!1)}}var O=document.querySelector("script[data-pingOneSignalsSkipToken]");if(O&&O.getAttribute("data-pingOneSignalsSkipToken")==="true"){window._pingOneSignalsToken="skipped_token_"+new Date().getTime(),v(function(){document.dispatchEvent(new CustomEvent("PingOneSignalsTokenSkippedEvent"))});return}window._pingOneSignalsToken||(window._pingOneSignalsToken="uninitialized_token_"+new Date().getTime());var T=window._pingOneSignalsCustomHost,M=T||"apps.test-one-pingone.com",P=T||"apps.ort-one-pingone.com",x=T||"apps.pingone.com",I=T||(f.test(s)||c.test(s)||b.test(s)?M:u.test(s)?P:x);E(I)}(),function(h){h._POSignalsEntities||(h._POSignalsEntities={}),h._pingOneSignals&&console.warn("PingOne Signals script was imported multiple times")}(window),function(h,y){y(h)}(window,function(h){function y(E){var O=this.constructor;return this.then(function(T){return O.resolve(E()).then(function(){return T})},function(T){return O.resolve(E()).then(function(){return O.reject(T)})})}var b=setTimeout;function c(E){return!!(E&&typeof E.length<"u")}function u(){}function f(E,O){return function(){E.apply(O,arguments)}}function s(E){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if(typeof E!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],A(E,this)}function o(E,O){for(;E._state===3;)E=E._value;if(E._state===0){E._deferreds.push(O);return}E._handled=!0,s._immediateFn(function(){var T=E._state===1?O.onFulfilled:O.onRejected;if(T===null){(E._state===1?a:m)(O.promise,E._value);return}var M;try{M=T(E._value)}catch(P){m(O.promise,P);return}a(O.promise,M)})}function a(E,O){try{if(O===E)throw new TypeError("A promise cannot be resolved with itself.");if(O&&(typeof O=="object"||typeof O=="function")){var T=O.then;if(O instanceof s){E._state=3,E._value=O,v(E);return}else if(typeof T=="function"){A(f(T,O),E);return}}E._state=1,E._value=O,v(E)}catch(M){m(E,M)}}function m(E,O){E._state=2,E._value=O,v(E)}function v(E){E._state===2&&E._deferreds.length===0&&s._immediateFn(function(){E._handled||s._unhandledRejectionFn(E._value)});for(var O=0,T=E._deferreds.length;O<T;O++)o(E,E._deferreds[O]);E._deferreds=null}function w(E,O,T){this.onFulfilled=typeof E=="function"?E:null,this.onRejected=typeof O=="function"?O:null,this.promise=T}function A(E,O){var T=!1;try{E(function(M){T||(T=!0,a(O,M))},function(M){T||(T=!0,m(O,M))})}catch(M){if(T)return;T=!0,m(O,M)}}s.prototype.catch=function(E){return this.then(null,E)},s.prototype.then=function(E,O){var T=new this.constructor(u);return o(this,new w(E,O,T)),T},s.prototype.finally=y,s.all=function(E){return new s(function(O,T){if(!c(E))return T(new TypeError("Promise.all accepts an array"));var M=Array.prototype.slice.call(E);if(M.length===0)return O([]);var P=M.length;function x(D,V){try{if(V&&(typeof V=="object"||typeof V=="function")){var j=V.then;if(typeof j=="function"){j.call(V,function(L){x(D,L)},T);return}}M[D]=V,--P===0&&O(M)}catch(L){T(L)}}for(var I=0;I<M.length;I++)x(I,M[I])})},s.resolve=function(E){return E&&typeof E=="object"&&E.constructor===s?E:new s(function(O){O(E)})},s.reject=function(E){return new s(function(O,T){T(E)})},s.race=function(E){return new s(function(O,T){if(!c(E))return T(new TypeError("Promise.race accepts an array"));for(var M=0,P=E.length;M<P;M++)s.resolve(E[M]).then(O,T)})},s._immediateFn=typeof setImmediate=="function"&&function(E){setImmediate(E)}||function(E){b(E,0)},s._unhandledRejectionFn=function(E){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",E)},typeof h.Promise!="function"?h.Promise=s:h.Promise.prototype.finally||(h.Promise.prototype.finally=y)}),function(h,y){h.PromiseQueue=y()}(ee||(ee={}),function(){var h=function(){},y=function(c){return c&&typeof c.then=="function"?c:new Promise(function(u){u(c)})};function b(c,u,f){this.options=f=f||{},this.pendingPromises=0,this.maxPendingPromises=typeof c<"u"?c:1/0,this.maxQueuedPromises=typeof u<"u"?u:1/0,this.queue=[]}return b.prototype.add=function(c){var u=this;return new Promise(function(f,s,o){if(u.queue.length>=u.maxQueuedPromises){s(new Error("Queue limit reached"));return}u.queue.push({promiseGenerator:c,resolve:f,reject:s,notify:o||h}),u._dequeue()})},b.prototype.getPendingLength=function(){return this.pendingPromises},b.prototype.getQueueLength=function(){return this.queue.length},b.prototype._dequeue=function(){var c=this;if(this.pendingPromises>=this.maxPendingPromises)return!1;var u=this.queue.shift();if(!u)return this.options.onEmpty&&this.options.onEmpty(),!1;try{this.pendingPromises++,y(u.promiseGenerator()).then(function(f){c.pendingPromises--,u.resolve(f),c._dequeue()},function(f){c.pendingPromises--,u.reject(f),c._dequeue()},function(f){u.notify(f)})}catch(f){c.pendingPromises--,u.reject(f),c._dequeue()}return!0},b}),function(h){var y="input is invalid type",b=!h.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),u=[-2147483648,8388608,32768,128],f=[24,16,8,0],s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=["hex","array","digest","arrayBuffer"],a=[];(h.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(M){return Object.prototype.toString.call(M)==="[object Array]"}),b&&(h.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(M){return typeof M=="object"&&M.buffer&&M.buffer.constructor===ArrayBuffer});var m=function(M,P){return function(x){return new E(P,!0).update(x)[M]()}},v=function(M){var P=m("hex",M);P.create=function(){return new E(M)},P.update=function(D){return P.create().update(D)};for(var x=0;x<o.length;++x){var I=o[x];P[I]=m(I,M)}return P},w=function(M,P){return function(x,I){return new O(x,P,!0).update(I)[M]()}},A=function(M){var P=w("hex",M);P.create=function(D){return new O(D,M)},P.update=function(D,V){return P.create(D).update(V)};for(var x=0;x<o.length;++x){var I=o[x];P[I]=w(I,M)}return P};function E(M,P){P?(a[0]=a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0,this.blocks=a):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],M?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=M}E.prototype.update=function(M){if(!this.finalized){var P,x=typeof M;if(x!=="string"){if(x==="object"){if(M===null)throw new Error(y);if(b&&M.constructor===ArrayBuffer)M=new Uint8Array(M);else if(!Array.isArray(M)&&(!b||!ArrayBuffer.isView(M)))throw new Error(y)}else throw new Error(y);P=!0}for(var I,D=0,V,j=M.length,L=this.blocks;D<j;){if(this.hashed&&(this.hashed=!1,L[0]=this.block,L[16]=L[1]=L[2]=L[3]=L[4]=L[5]=L[6]=L[7]=L[8]=L[9]=L[10]=L[11]=L[12]=L[13]=L[14]=L[15]=0),P)for(V=this.start;D<j&&V<64;++D)L[V>>2]|=M[D]<<f[V++&3];else for(V=this.start;D<j&&V<64;++D)I=M.charCodeAt(D),I<128?L[V>>2]|=I<<f[V++&3]:I<2048?(L[V>>2]|=(192|I>>6)<<f[V++&3],L[V>>2]|=(128|I&63)<<f[V++&3]):I<55296||I>=57344?(L[V>>2]|=(224|I>>12)<<f[V++&3],L[V>>2]|=(128|I>>6&63)<<f[V++&3],L[V>>2]|=(128|I&63)<<f[V++&3]):(I=65536+((I&1023)<<10|M.charCodeAt(++D)&1023),L[V>>2]|=(240|I>>18)<<f[V++&3],L[V>>2]|=(128|I>>12&63)<<f[V++&3],L[V>>2]|=(128|I>>6&63)<<f[V++&3],L[V>>2]|=(128|I&63)<<f[V++&3]);this.lastByteIndex=V,this.bytes+=V-this.start,V>=64?(this.block=L[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},E.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var M=this.blocks,P=this.lastByteIndex;M[16]=this.block,M[P>>2]|=u[P&3],this.block=M[16],P>=56&&(this.hashed||this.hash(),M[0]=this.block,M[16]=M[1]=M[2]=M[3]=M[4]=M[5]=M[6]=M[7]=M[8]=M[9]=M[10]=M[11]=M[12]=M[13]=M[14]=M[15]=0),M[14]=this.hBytes<<3|this.bytes>>>29,M[15]=this.bytes<<3,this.hash()}},E.prototype.hash=function(){var M=this.h0,P=this.h1,x=this.h2,I=this.h3,D=this.h4,V=this.h5,j=this.h6,L=this.h7,U=this.blocks,F,W,J,$,ne,ae,te,ie,Se,_e,Ne;for(F=16;F<64;++F)ne=U[F-15],W=(ne>>>7|ne<<25)^(ne>>>18|ne<<14)^ne>>>3,ne=U[F-2],J=(ne>>>17|ne<<15)^(ne>>>19|ne<<13)^ne>>>10,U[F]=U[F-16]+W+U[F-7]+J<<0;for(Ne=P&x,F=0;F<64;F+=4)this.first?(this.is224?(ie=300032,ne=U[0]-1413257819,L=ne-150054599<<0,I=ne+24177077<<0):(ie=704751109,ne=U[0]-210244248,L=ne-1521486534<<0,I=ne+143694565<<0),this.first=!1):(W=(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10),J=(D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7),ie=M&P,$=ie^M&x^Ne,te=D&V^~D&j,ne=L+J+te+s[F]+U[F],ae=W+$,L=I+ne<<0,I=ne+ae<<0),W=(I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10),J=(L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7),Se=I&M,$=Se^I&P^ie,te=L&D^~L&V,ne=j+J+te+s[F+1]+U[F+1],ae=W+$,j=x+ne<<0,x=ne+ae<<0,W=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),J=(j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7),_e=x&I,$=_e^x&M^Se,te=j&L^~j&D,ne=V+J+te+s[F+2]+U[F+2],ae=W+$,V=P+ne<<0,P=ne+ae<<0,W=(P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10),J=(V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7),Ne=P&x,$=Ne^P&I^_e,te=V&j^~V&L,ne=D+J+te+s[F+3]+U[F+3],ae=W+$,D=M+ne<<0,M=ne+ae<<0;this.h0=this.h0+M<<0,this.h1=this.h1+P<<0,this.h2=this.h2+x<<0,this.h3=this.h3+I<<0,this.h4=this.h4+D<<0,this.h5=this.h5+V<<0,this.h6=this.h6+j<<0,this.h7=this.h7+L<<0},E.prototype.hex=function(){this.finalize();var M=this.h0,P=this.h1,x=this.h2,I=this.h3,D=this.h4,V=this.h5,j=this.h6,L=this.h7,U=c[M>>28&15]+c[M>>24&15]+c[M>>20&15]+c[M>>16&15]+c[M>>12&15]+c[M>>8&15]+c[M>>4&15]+c[M&15]+c[P>>28&15]+c[P>>24&15]+c[P>>20&15]+c[P>>16&15]+c[P>>12&15]+c[P>>8&15]+c[P>>4&15]+c[P&15]+c[x>>28&15]+c[x>>24&15]+c[x>>20&15]+c[x>>16&15]+c[x>>12&15]+c[x>>8&15]+c[x>>4&15]+c[x&15]+c[I>>28&15]+c[I>>24&15]+c[I>>20&15]+c[I>>16&15]+c[I>>12&15]+c[I>>8&15]+c[I>>4&15]+c[I&15]+c[D>>28&15]+c[D>>24&15]+c[D>>20&15]+c[D>>16&15]+c[D>>12&15]+c[D>>8&15]+c[D>>4&15]+c[D&15]+c[V>>28&15]+c[V>>24&15]+c[V>>20&15]+c[V>>16&15]+c[V>>12&15]+c[V>>8&15]+c[V>>4&15]+c[V&15]+c[j>>28&15]+c[j>>24&15]+c[j>>20&15]+c[j>>16&15]+c[j>>12&15]+c[j>>8&15]+c[j>>4&15]+c[j&15];return this.is224||(U+=c[L>>28&15]+c[L>>24&15]+c[L>>20&15]+c[L>>16&15]+c[L>>12&15]+c[L>>8&15]+c[L>>4&15]+c[L&15]),U},E.prototype.toString=E.prototype.hex,E.prototype.digest=function(){this.finalize();var M=this.h0,P=this.h1,x=this.h2,I=this.h3,D=this.h4,V=this.h5,j=this.h6,L=this.h7,U=[M>>24&255,M>>16&255,M>>8&255,M&255,P>>24&255,P>>16&255,P>>8&255,P&255,x>>24&255,x>>16&255,x>>8&255,x&255,I>>24&255,I>>16&255,I>>8&255,I&255,D>>24&255,D>>16&255,D>>8&255,D&255,V>>24&255,V>>16&255,V>>8&255,V&255,j>>24&255,j>>16&255,j>>8&255,j&255];return this.is224||U.push(L>>24&255,L>>16&255,L>>8&255,L&255),U},E.prototype.array=E.prototype.digest,E.prototype.arrayBuffer=function(){this.finalize();var M=new ArrayBuffer(this.is224?28:32),P=new DataView(M);return P.setUint32(0,this.h0),P.setUint32(4,this.h1),P.setUint32(8,this.h2),P.setUint32(12,this.h3),P.setUint32(16,this.h4),P.setUint32(20,this.h5),P.setUint32(24,this.h6),this.is224||P.setUint32(28,this.h7),M};function O(M,P,x){var I,D=typeof M;if(D==="string"){var V=[],j=M.length,L=0,U;for(I=0;I<j;++I)U=M.charCodeAt(I),U<128?V[L++]=U:U<2048?(V[L++]=192|U>>6,V[L++]=128|U&63):U<55296||U>=57344?(V[L++]=224|U>>12,V[L++]=128|U>>6&63,V[L++]=128|U&63):(U=65536+((U&1023)<<10|M.charCodeAt(++I)&1023),V[L++]=240|U>>18,V[L++]=128|U>>12&63,V[L++]=128|U>>6&63,V[L++]=128|U&63);M=V}else if(D==="object"){if(M===null)throw new Error(y);if(b&&M.constructor===ArrayBuffer)M=new Uint8Array(M);else if(!Array.isArray(M)&&(!b||!ArrayBuffer.isView(M)))throw new Error(y)}else throw new Error(y);M.length>64&&(M=new E(P,!0).update(M).array());var F=[],W=[];for(I=0;I<64;++I){var J=M[I]||0;F[I]=92^J,W[I]=54^J}E.call(this,P,x),this.update(W),this.oKeyPad=F,this.inner=!0,this.sharedMemory=x}O.prototype=new E,O.prototype.finalize=function(){if(E.prototype.finalize.call(this),this.inner){this.inner=!1;var M=this.array();E.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(M),E.prototype.finalize.call(this)}};var T=v();T.sha256=T,T.sha224=v(!0),T.sha256.hmac=A(),T.sha224.hmac=A(!0),h.sha256=T.sha256,h.sha224=T.sha224}(ee||(ee={})),function(h){h.FingerprintJS=function(y){var b="5.0.1";function c(N,q){return new Promise(X=>setTimeout(X,N,q))}function u(){return new Promise(N=>{const q=new MessageChannel;q.port1.onmessage=()=>N(),q.port2.postMessage(null)})}function f(N,q=1/0){const{requestIdleCallback:X}=window;return X?new Promise(le=>X.call(window,()=>le(),{timeout:q})):c(Math.min(N,q))}function s(N){return!!N&&typeof N.then=="function"}function o(N,q){try{const X=N();s(X)?X.then(le=>q(!0,le),le=>q(!1,le)):q(!0,X)}catch(X){q(!1,X)}}async function a(N,q,X=16){const le=Array(N.length);let Te=Date.now();for(let Ye=0;Ye<N.length;++Ye){le[Ye]=q(N[Ye],Ye);const Oe=Date.now();Oe>=Te+X&&(Te=Oe,await u())}return le}function m(N){return N.then(void 0,()=>{}),N}function v(N,q){for(let X=0,le=N.length;X<le;++X)if(N[X]===q)return!0;return!1}function w(N,q){return!v(N,q)}function A(N){return parseInt(N)}function E(N){return parseFloat(N)}function O(N,q){return typeof N=="number"&&isNaN(N)?q:N}function T(N){return N.reduce((q,X)=>q+(X?1:0),0)}function M(N,q=1){if(Math.abs(q)>=1)return Math.round(N/q)*q;{const X=1/q;return Math.round(N*X)/X}}function P(N){var q,X;const le=`Unexpected syntax '${N}'`,Te=/^\s*([a-z-]*)(.*)$/i.exec(N),Ye=Te[1]||void 0,Oe={},Fe=/([.:#][\w-]+|\[.+?\])/gi,Qe=(at,Re)=>{Oe[at]=Oe[at]||[],Oe[at].push(Re)};for(;;){const at=Fe.exec(Te[2]);if(!at)break;const Re=at[0];switch(Re[0]){case".":Qe("class",Re.slice(1));break;case"#":Qe("id",Re.slice(1));break;case"[":{const xe=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(Re);if(xe)Qe(xe[1],(X=(q=xe[4])!==null&&q!==void 0?q:xe[5])!==null&&X!==void 0?X:"");else throw new Error(le);break}default:throw new Error(le)}}return[Ye,Oe]}function x(N){const q=new Uint8Array(N.length);for(let X=0;X<N.length;X++){const le=N.charCodeAt(X);if(le>127)return new TextEncoder().encode(N);q[X]=le}return q}function I(N,q){const X=N[0]>>>16,le=N[0]&65535,Te=N[1]>>>16,Ye=N[1]&65535,Oe=q[0]>>>16,Fe=q[0]&65535,Qe=q[1]>>>16,at=q[1]&65535;let Re=0,xe=0,Jt=0,kt=0;kt+=Ye+at,Jt+=kt>>>16,kt&=65535,Jt+=Te+Qe,xe+=Jt>>>16,Jt&=65535,xe+=le+Fe,Re+=xe>>>16,xe&=65535,Re+=X+Oe,Re&=65535,N[0]=Re<<16|xe,N[1]=Jt<<16|kt}function D(N,q){const X=N[0]>>>16,le=N[0]&65535,Te=N[1]>>>16,Ye=N[1]&65535,Oe=q[0]>>>16,Fe=q[0]&65535,Qe=q[1]>>>16,at=q[1]&65535;let Re=0,xe=0,Jt=0,kt=0;kt+=Ye*at,Jt+=kt>>>16,kt&=65535,Jt+=Te*at,xe+=Jt>>>16,Jt&=65535,Jt+=Ye*Qe,xe+=Jt>>>16,Jt&=65535,xe+=le*at,Re+=xe>>>16,xe&=65535,xe+=Te*Qe,Re+=xe>>>16,xe&=65535,xe+=Ye*Fe,Re+=xe>>>16,xe&=65535,Re+=X*at+le*Qe+Te*Fe+Ye*Oe,Re&=65535,N[0]=Re<<16|xe,N[1]=Jt<<16|kt}function V(N,q){const X=N[0];q%=64,q===32?(N[0]=N[1],N[1]=X):q<32?(N[0]=X<<q|N[1]>>>32-q,N[1]=N[1]<<q|X>>>32-q):(q-=32,N[0]=N[1]<<q|X>>>32-q,N[1]=X<<q|N[1]>>>32-q)}function j(N,q){q%=64,q!==0&&(q<32?(N[0]=N[1]>>>32-q,N[1]=N[1]<<q):(N[0]=N[1]<<q-32,N[1]=0))}function L(N,q){N[0]^=q[0],N[1]^=q[1]}const U=[4283543511,3981806797],F=[3301882366,444984403];function W(N){const q=[0,N[0]>>>1];L(N,q),D(N,U),q[1]=N[0]>>>1,L(N,q),D(N,F),q[1]=N[0]>>>1,L(N,q)}const J=[2277735313,289559509],$=[1291169091,658871167],ne=[0,5],ae=[0,1390208809],te=[0,944331445];function ie(N,q){const X=x(N);q=q||0;const le=[0,X.length],Te=le[1]%16,Ye=le[1]-Te,Oe=[0,q],Fe=[0,q],Qe=[0,0],at=[0,0];let Re;for(Re=0;Re<Ye;Re=Re+16)Qe[0]=X[Re+4]|X[Re+5]<<8|X[Re+6]<<16|X[Re+7]<<24,Qe[1]=X[Re]|X[Re+1]<<8|X[Re+2]<<16|X[Re+3]<<24,at[0]=X[Re+12]|X[Re+13]<<8|X[Re+14]<<16|X[Re+15]<<24,at[1]=X[Re+8]|X[Re+9]<<8|X[Re+10]<<16|X[Re+11]<<24,D(Qe,J),V(Qe,31),D(Qe,$),L(Oe,Qe),V(Oe,27),I(Oe,Fe),D(Oe,ne),I(Oe,ae),D(at,$),V(at,33),D(at,J),L(Fe,at),V(Fe,31),I(Fe,Oe),D(Fe,ne),I(Fe,te);Qe[0]=0,Qe[1]=0,at[0]=0,at[1]=0;const xe=[0,0];switch(Te){case 15:xe[1]=X[Re+14],j(xe,48),L(at,xe);case 14:xe[1]=X[Re+13],j(xe,40),L(at,xe);case 13:xe[1]=X[Re+12],j(xe,32),L(at,xe);case 12:xe[1]=X[Re+11],j(xe,24),L(at,xe);case 11:xe[1]=X[Re+10],j(xe,16),L(at,xe);case 10:xe[1]=X[Re+9],j(xe,8),L(at,xe);case 9:xe[1]=X[Re+8],L(at,xe),D(at,$),V(at,33),D(at,J),L(Fe,at);case 8:xe[1]=X[Re+7],j(xe,56),L(Qe,xe);case 7:xe[1]=X[Re+6],j(xe,48),L(Qe,xe);case 6:xe[1]=X[Re+5],j(xe,40),L(Qe,xe);case 5:xe[1]=X[Re+4],j(xe,32),L(Qe,xe);case 4:xe[1]=X[Re+3],j(xe,24),L(Qe,xe);case 3:xe[1]=X[Re+2],j(xe,16),L(Qe,xe);case 2:xe[1]=X[Re+1],j(xe,8),L(Qe,xe);case 1:xe[1]=X[Re],L(Qe,xe),D(Qe,J),V(Qe,31),D(Qe,$),L(Oe,Qe)}return L(Oe,le),L(Fe,le),I(Oe,Fe),I(Fe,Oe),W(Oe),W(Fe),I(Oe,Fe),I(Fe,Oe),("00000000"+(Oe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Oe[1]>>>0).toString(16)).slice(-8)+("00000000"+(Fe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Fe[1]>>>0).toString(16)).slice(-8)}function Se(N){var q;return{name:N.name,message:N.message,stack:(q=N.stack)===null||q===void 0?void 0:q.split(`
58
+ `),...N}}function _e(N){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(N))}function Ne(N){return typeof N!="function"}function et(N,q){const X=m(new Promise(le=>{const Te=Date.now();o(N.bind(null,q),(...Ye)=>{const Oe=Date.now()-Te;if(!Ye[0])return le(()=>({error:Ye[1],duration:Oe}));const Fe=Ye[1];if(Ne(Fe))return le(()=>({value:Fe,duration:Oe}));le(()=>new Promise(Qe=>{const at=Date.now();o(Fe,(...Re)=>{const xe=Oe+Date.now()-at;if(!Re[0])return Qe({error:Re[1],duration:xe});Qe({value:Re[1],duration:xe})})}))})}));return function(){return X.then(le=>le())}}function Nt(N,q,X,le){const Te=Object.keys(N).filter(Oe=>w(X,Oe)),Ye=m(a(Te,Oe=>et(N[Oe],q),le));return async function(){const Oe=await Ye,Fe=await a(Oe,Re=>m(Re()),le),Qe=await Promise.all(Fe),at={};for(let Re=0;Re<Te.length;++Re)at[Te[Re]]=Qe[Re];return at}}function oe(N,q){const X=le=>Ne(le)?q(le):()=>{const Te=le();return s(Te)?Te.then(q):q(Te)};return le=>{const Te=N(le);return s(Te)?Te.then(X):X(Te)}}function Ie(){const N=window,q=navigator;return T(["MSCSSMatrix"in N,"msSetImmediate"in N,"msIndexedDB"in N,"msMaxTouchPoints"in q,"msPointerEnabled"in q])>=4}function Be(){const N=window,q=navigator;return T(["msWriteProfilerMark"in N,"MSStream"in N,"msLaunchUri"in q,"msSaveBlob"in q])>=3&&!Ie()}function $e(){const N=window,q=navigator;return T(["webkitPersistentStorage"in q,"webkitTemporaryStorage"in q,(q.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in N,"BatteryManager"in N,"webkitMediaStream"in N,"webkitSpeechGrammar"in N])>=5}function ke(){const N=window,q=navigator;return T(["ApplePayError"in N,"CSSPrimitiveValue"in N,"Counter"in N,q.vendor.indexOf("Apple")===0,"RGBColor"in N,"WebKitMediaKeys"in N])>=4}function Xe(){const N=window,{HTMLElement:q,Document:X}=N;return T(["safari"in N,!("ongestureend"in N),!("TouchEvent"in N),!("orientation"in N),q&&!("autocapitalize"in q.prototype),X&&"pointerLockElement"in X.prototype])>=4}function ge(){const N=window;return _e(N.print)&&String(N.browser)==="[object WebPageNamespace]"}function Le(){var N,q;const X=window;return T(["buildID"in navigator,"MozAppearance"in((q=(N=document.documentElement)===null||N===void 0?void 0:N.style)!==null&&q!==void 0?q:{}),"onmozfullscreenchange"in X,"mozInnerScreenX"in X,"CSSMozDocumentRule"in X,"CanvasCaptureMediaStream"in X])>=4}function Mt(){const N=window;return T([!("MediaSettingsRange"in N),"RTCEncodedAudioFrame"in N,""+N.Intl=="[object Intl]",""+N.Reflect=="[object Reflect]"])>=3}function Ct(){const N=window,{URLPattern:q}=N;return T(["union"in Set.prototype,"Iterator"in N,q&&"hasRegExpGroups"in q.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Ut(){const N=window;return T(["DOMRectList"in N,"RTCPeerConnectionIceEvent"in N,"SVGGeometryElement"in N,"ontransitioncancel"in N])>=3}function $t(){const N=window,q=navigator,{CSS:X,HTMLButtonElement:le}=N;return T([!("getStorageUpdates"in q),le&&"popover"in le.prototype,"CSSCounterStyleRule"in N,X.supports("font-size-adjust: ex-height 0.5"),X.supports("text-transform: full-width")])>=4}function bn(){if(navigator.platform==="iPad")return!0;const N=screen,q=N.width/N.height;return T(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,q>.65&&q<1.53])>=2}function Fn(){const N=document;return N.fullscreenElement||N.msFullscreenElement||N.mozFullScreenElement||N.webkitFullscreenElement||null}function Bn(){const N=document;return(N.exitFullscreen||N.msExitFullscreen||N.mozCancelFullScreen||N.webkitExitFullscreen).call(N)}function Sn(){const N=$e(),q=Le(),X=window,le=navigator,Te="connection";return N?T([!("SharedWorker"in X),le[Te]&&"ontypechange"in le[Te],!("sinkId"in new Audio)])>=2:q?T(["onorientationchange"in X,"orientation"in X,/android/i.test(le.appVersion)])>=2:!1}function _r(){const N=navigator,q=window,X=Audio.prototype,{visualViewport:le}=q;return T(["srLatency"in X,"srChannelCount"in X,"devicePosture"in N,le&&"segments"in le,"getTextInformation"in Image.prototype])>=3}function pt(){return Nr()?-4:gn()}function gn(){const N=window,q=N.OfflineAudioContext||N.webkitOfflineAudioContext;if(!q)return-2;if(vn())return-1;const X=4500,le=5e3,Te=new q(1,le,44100),Ye=Te.createOscillator();Ye.type="triangle",Ye.frequency.value=1e4;const Oe=Te.createDynamicsCompressor();Oe.threshold.value=-50,Oe.knee.value=40,Oe.ratio.value=12,Oe.attack.value=0,Oe.release.value=.25,Ye.connect(Oe),Oe.connect(Te.destination),Ye.start(0);const[Fe,Qe]=wr(Te),at=m(Fe.then(Re=>Yr(Re.getChannelData(0).subarray(X)),Re=>{if(Re.name==="timeout"||Re.name==="suspended")return-3;throw Re}));return()=>(Qe(),at)}function vn(){return ke()&&!Xe()&&!Ut()}function Nr(){return ke()&&$t()&&ge()||$e()&&_r()&&Ct()}function wr(N){let q=()=>{};return[new Promise((X,le)=>{let Te=!1,Ye=0,Oe=0;N.oncomplete=at=>X(at.renderedBuffer);const Fe=()=>{setTimeout(()=>le(ir("timeout")),Math.min(500,Oe+5e3-Date.now()))},Qe=()=>{try{const at=N.startRendering();switch(s(at)&&m(at),N.state){case"running":Oe=Date.now(),Te&&Fe();break;case"suspended":document.hidden||Ye++,Te&&Ye>=3?le(ir("suspended")):setTimeout(Qe,500);break}}catch(at){le(at)}};Qe(),q=()=>{Te||(Te=!0,Oe>0&&Fe())}}),q]}function Yr(N){let q=0;for(let X=0;X<N.length;++X)q+=Math.abs(N[X]);return q}function ir(N){const q=new Error(N);return q.name=N,q}async function Dn(N,q,X=50){var le,Te,Ye;const Oe=document;for(;!Oe.body;)await c(X);const Fe=Oe.createElement("iframe");try{for(await new Promise((Qe,at)=>{let Re=!1;const xe=()=>{Re=!0,Qe()},Jt=xn=>{Re=!0,at(xn)};Fe.onload=xe,Fe.onerror=Jt;const{style:kt}=Fe;kt.setProperty("display","block","important"),kt.position="absolute",kt.top="0",kt.left="0",kt.visibility="hidden",q&&"srcdoc"in Fe?Fe.srcdoc=q:Fe.src="about:blank",Oe.body.appendChild(Fe);const Nn=()=>{var xn,wl;Re||(((wl=(xn=Fe.contentWindow)===null||xn===void 0?void 0:xn.document)===null||wl===void 0?void 0:wl.readyState)==="complete"?xe():setTimeout(Nn,10))};Nn()});!(!((Te=(le=Fe.contentWindow)===null||le===void 0?void 0:le.document)===null||Te===void 0)&&Te.body);)await c(X);return await N(Fe,Fe.contentWindow)}finally{(Ye=Fe.parentNode)===null||Ye===void 0||Ye.removeChild(Fe)}}function H(N){const[q,X]=P(N),le=document.createElement(q??"div");for(const Te of Object.keys(X)){const Ye=X[Te].join(" ");Te==="style"?we(le.style,Ye):le.setAttribute(Te,Ye)}return le}function we(N,q){for(const X of q.split(";")){const le=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(X);if(le){const[,Te,Ye,,Oe]=le;N.setProperty(Te,Ye,Oe||"")}}}function Me(){let N=window;for(;;){const q=N.parent;if(!q||q===N)return!1;try{if(q.location.origin!==N.location.origin)return!0}catch(X){if(X instanceof Error&&X.name==="SecurityError")return!0;throw X}N=q}}const Ae="mmMwWLliI0O&1",Ue="48px",ze=["monospace","sans-serif","serif"],ft=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Pt(){return Dn(async(N,{document:q})=>{const X=q.body;X.style.fontSize=Ue;const le=q.createElement("div");le.style.setProperty("visibility","hidden","important");const Te={},Ye={},Oe=kt=>{const Nn=q.createElement("span"),{style:xn}=Nn;return xn.position="absolute",xn.top="0",xn.left="0",xn.fontFamily=kt,Nn.textContent=Ae,le.appendChild(Nn),Nn},Fe=(kt,Nn)=>Oe(`'${kt}',${Nn}`),Qe=()=>ze.map(Oe),at=()=>{const kt={};for(const Nn of ft)kt[Nn]=ze.map(xn=>Fe(Nn,xn));return kt},Re=kt=>ze.some((Nn,xn)=>kt[xn].offsetWidth!==Te[Nn]||kt[xn].offsetHeight!==Ye[Nn]),xe=Qe(),Jt=at();X.appendChild(le);for(let kt=0;kt<ze.length;kt++)Te[ze[kt]]=xe[kt].offsetWidth,Ye[ze[kt]]=xe[kt].offsetHeight;return ft.filter(kt=>Re(Jt[kt]))})}function R(){const N=navigator.plugins;if(!N)return;const q=[];for(let X=0;X<N.length;++X){const le=N[X];if(!le)continue;const Te=[];for(let Ye=0;Ye<le.length;++Ye){const Oe=le[Ye];Te.push({type:Oe.type,suffixes:Oe.suffixes})}q.push({name:le.name,description:le.description,mimeTypes:Te})}return q}function he(){return ve(Jr())}function ve(N){let q=!1,X,le;const[Te,Ye]=K();return Ve(Te,Ye)?(q=tt(Ye),N?X=le="skipped":[X,le]=nt(Te,Ye)):X=le="unsupported",{winding:q,geometry:X,text:le}}function K(){const N=document.createElement("canvas");return N.width=1,N.height=1,[N,N.getContext("2d")]}function Ve(N,q){return!!(q&&N.toDataURL)}function tt(N){return N.rect(0,0,10,10),N.rect(2,2,6,6),!N.isPointInPath(5,5,"evenodd")}function nt(N,q){ot(N,q);const X=yt(N),le=yt(N);return X!==le?["unstable","unstable"]:(yn(N,q),[yt(N),X])}function ot(N,q){N.width=240,N.height=60,q.textBaseline="alphabetic",q.fillStyle="#f60",q.fillRect(100,1,62,20),q.fillStyle="#069",q.font='11pt "Times New Roman"';const X="Cwm fjordbank gly 😃";q.fillText(X,2,15),q.fillStyle="rgba(102, 204, 0, 0.2)",q.font="18pt Arial",q.fillText(X,4,45)}function yn(N,q){N.width=122,N.height=110,q.globalCompositeOperation="multiply";for(const[X,le,Te]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])q.fillStyle=X,q.beginPath(),q.arc(le,Te,40,0,Math.PI*2,!0),q.closePath(),q.fill();q.fillStyle="#f9c",q.arc(60,60,60,0,Math.PI*2,!0),q.arc(60,60,20,0,Math.PI*2,!0),q.fill("evenodd")}function yt(N){return N.toDataURL()}function Jr(){return ke()&&$t()&&ge()}function Ta(){const N=navigator;let q=0,X;N.maxTouchPoints!==void 0?q=A(N.maxTouchPoints):N.msMaxTouchPoints!==void 0&&(q=N.msMaxTouchPoints);try{document.createEvent("TouchEvent"),X=!0}catch{X=!1}const le="ontouchstart"in window;return{maxTouchPoints:q,touchEvent:X,touchStart:le}}function ji(){return navigator.oscpu}function qi(){const N=navigator,q=[],X=N.language||N.userLanguage||N.browserLanguage||N.systemLanguage;if(X!==void 0&&q.push([X]),Array.isArray(N.languages))$e()&&Mt()||q.push(N.languages);else if(typeof N.languages=="string"){const le=N.languages;le&&q.push(le.split(","))}return q}function Xr(){return window.screen.colorDepth}function vl(){return O(E(navigator.deviceMemory),void 0)}function Qr(){if(!(ke()&&$t()&&ge()))return no()}function no(){const N=screen,q=le=>O(A(le),null),X=[q(N.width),q(N.height)];return X.sort().reverse(),X}const ei=2500,Oa=10;let wi,Gi;function yl(){if(Gi!==void 0)return;const N=()=>{const q=ro();io(q)?Gi=setTimeout(N,ei):(wi=q,Gi=void 0)};N()}function ti(){return yl(),async()=>{let N=ro();if(io(N)){if(wi)return[...wi];Fn()&&(await Bn(),N=ro())}return io(N)||(wi=N),N}}function mu(){if(ke()&&$t()&&ge())return()=>Promise.resolve(void 0);const N=ti();return async()=>{const q=await N(),X=le=>le===null?null:M(le,Oa);return[X(q[0]),X(q[1]),X(q[2]),X(q[3])]}}function ro(){const N=screen;return[O(E(N.availTop),null),O(E(N.width)-E(N.availWidth)-O(E(N.availLeft),0),null),O(E(N.height)-E(N.availHeight)-O(E(N.availTop),0),null),O(E(N.availLeft),null)]}function io(N){for(let q=0;q<4;++q)if(N[q])return!1;return!0}function ao(){return O(A(navigator.hardwareConcurrency),void 0)}function ch(){var N;const q=(N=window.Intl)===null||N===void 0?void 0:N.DateTimeFormat;if(q){const le=new q().resolvedOptions().timeZone;if(le)return le}const X=-vu();return`UTC${X>=0?"+":""}${X}`}function vu(){const N=new Date().getFullYear();return Math.max(E(new Date(N,0,1).getTimezoneOffset()),E(new Date(N,6,1).getTimezoneOffset()))}function yu(){try{return!!window.sessionStorage}catch{return!0}}function ni(){try{return!!window.localStorage}catch{return!0}}function De(){if(!(Ie()||Be()))try{return!!window.indexedDB}catch{return!0}}function rt(){return!!window.openDatabase}function it(){return navigator.cpuClass}function Ft(){const{platform:N}=navigator;return N==="MacIntel"&&ke()&&!Xe()?bn()?"iPad":"iPhone":N}function ht(){return navigator.vendor||""}function Gt(){const N=[];for(const q of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){const X=window[q];X&&typeof X=="object"&&N.push(q)}return N.sort()}function ct(){const N=document;try{N.cookie="cookietest=1; SameSite=Strict;";const q=N.cookie.indexOf("cookietest=")!==-1;return N.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",q}catch{return!1}}function zt(){const N=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',N("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",N("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",N("LnNwb25zb3JpdA=="),".ylamainos",N("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),N("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",N("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",N("LmhlYWRlci1ibG9ja2VkLWFk"),N("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",N("I2FkXzMwMFgyNTA="),N("I2Jhbm5lcmZsb2F0MjI="),N("I2NhbXBhaWduLWJhbm5lcg=="),N("I0FkLUNvbnRlbnQ=")],adGuardChinese:[N("LlppX2FkX2FfSA=="),N("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",N("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),N("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",N("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",N("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",N("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),N("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),N("LmFkZ29vZ2xl"),N("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[N("YW1wLWF1dG8tYWRz"),N("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",N("I2FkX2ludmlld19hcmVh")],adGuardRussian:[N("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),N("LnJlY2xhbWE="),'div[id^="smi2adblock"]',N("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[N("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),N("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",N("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),N("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),N("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",N("I3Jla2xhbWk="),N("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),N("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),N("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[N("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",N("LndpZGdldF9wb19hZHNfd2lkZ2V0"),N("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",N("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[N("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),N("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",N("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",N("I3Jla2xhbW5pLWJveA=="),N("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",N("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[N("I2FkdmVydGVudGll"),N("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",N("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",N("LnNwb25zb3JsaW5rZ3J1ZW4="),N("I3dlcmJ1bmdza3k="),N("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),N("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[N("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",N("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),N("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),N("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[N("LnJla2xhbW9zX3RhcnBhcw=="),N("LnJla2xhbW9zX251b3JvZG9z"),N("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),N("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),N("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[N("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[N("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),N("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",N("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[N("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),N("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),N("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",N("LmFkX19tYWlu"),N("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[N("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[N("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),N("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[N("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),N("I2xpdmVyZUFkV3JhcHBlcg=="),N("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),N("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[N("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",N("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),N("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),N("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[N("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),N("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),N("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",N("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),N("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),N("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),N("ZGl2I3NrYXBpZWNfYWQ=")],ro:[N("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),N("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),N("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),N("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[N("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),N("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),N("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",N("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),N("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",N("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}async function Et({debug:N}={}){if(!un())return;const q=zt(),X=Object.keys(q),le=[].concat(...X.map(Oe=>q[Oe])),Te=await ri(le);N&&fs(q,Te);const Ye=X.filter(Oe=>{const Fe=q[Oe];return T(Fe.map(Qe=>Te[Qe]))>Fe.length*.6});return Ye.sort(),Ye}function un(){return ke()||Sn()}async function ri(N){var q;const X=document,le=X.createElement("div"),Te=new Array(N.length),Ye={};ii(le);for(let Oe=0;Oe<N.length;++Oe){const Fe=H(N[Oe]);Fe.tagName==="DIALOG"&&Fe.show();const Qe=X.createElement("div");ii(Qe),Qe.appendChild(Fe),le.appendChild(Qe),Te[Oe]=Fe}for(;!X.body;)await c(50);X.body.appendChild(le);try{for(let Oe=0;Oe<N.length;++Oe)Te[Oe].offsetParent||(Ye[N[Oe]]=!0)}finally{(q=le.parentNode)===null||q===void 0||q.removeChild(le)}return Ye}function ii(N){N.style.setProperty("visibility","hidden","important"),N.style.setProperty("display","block","important")}function fs(N,q){let X="DOM blockers debug:\n```";for(const le of Object.keys(N)){X+=`
59
+ ${le}:`;for(const Te of N[le])X+=`
60
+ ${q[Te]?"🚫":"➡️"} ${Te}`}console.log(`${X}
61
+ \`\`\``)}function so(){for(const N of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${N})`).matches)return N}function _u(){if(oo("inverted"))return!0;if(oo("none"))return!1}function oo(N){return matchMedia(`(inverted-colors: ${N})`).matches}function _l(){if(wu("active"))return!0;if(wu("none"))return!1}function wu(N){return matchMedia(`(forced-colors: ${N})`).matches}const hs=100;function uh(){if(matchMedia("(min-monochrome: 0)").matches){for(let N=0;N<=hs;++N)if(matchMedia(`(max-monochrome: ${N})`).matches)return N;throw new Error("Too high value")}}function xR(){if(lo("no-preference"))return 0;if(lo("high")||lo("more"))return 1;if(lo("low")||lo("less"))return-1;if(lo("forced"))return 10}function lo(N){return matchMedia(`(prefers-contrast: ${N})`).matches}function UR(){if(q_("reduce"))return!0;if(q_("no-preference"))return!1}function q_(N){return matchMedia(`(prefers-reduced-motion: ${N})`).matches}function FR(){if(G_("reduce"))return!0;if(G_("no-preference"))return!1}function G_(N){return matchMedia(`(prefers-reduced-transparency: ${N})`).matches}function BR(){if(W_("high"))return!0;if(W_("standard"))return!1}function W_(N){return matchMedia(`(dynamic-range: ${N})`).matches}const jt=Math,Gn=()=>0;function zR(){const N=jt.acos||Gn,q=jt.acosh||Gn,X=jt.asin||Gn,le=jt.asinh||Gn,Te=jt.atanh||Gn,Ye=jt.atan||Gn,Oe=jt.sin||Gn,Fe=jt.sinh||Gn,Qe=jt.cos||Gn,at=jt.cosh||Gn,Re=jt.tan||Gn,xe=jt.tanh||Gn,Jt=jt.exp||Gn,kt=jt.expm1||Gn,Nn=jt.log1p||Gn,xn=Xt=>jt.pow(jt.PI,Xt),wl=Xt=>jt.log(Xt+jt.sqrt(Xt*Xt-1)),_4=Xt=>jt.log(Xt+jt.sqrt(Xt*Xt+1)),w4=Xt=>jt.log((1+Xt)/(1-Xt))/2,b4=Xt=>jt.exp(Xt)-1/jt.exp(Xt)/2,S4=Xt=>(jt.exp(Xt)+1/jt.exp(Xt))/2,E4=Xt=>jt.exp(Xt)-1,k4=Xt=>(jt.exp(2*Xt)-1)/(jt.exp(2*Xt)+1),C4=Xt=>jt.log(1+Xt);return{acos:N(.12312423423423424),acosh:q(1e308),acoshPf:wl(1e154),asin:X(.12312423423423424),asinh:le(1),asinhPf:_4(1),atanh:Te(.5),atanhPf:w4(.5),atan:Ye(.5),sin:Oe(-1e300),sinh:Fe(1),sinhPf:b4(1),cos:Qe(10.000000000123),cosh:at(1),coshPf:S4(1),tan:Re(-1e300),tanh:xe(1),tanhPf:k4(1),exp:Jt(1),expm1:kt(1),expm1Pf:E4(1),log1p:Nn(10),log1pPf:C4(10),powPI:xn(-100)}}const VR="mmMwWLliI0fiflO&1",dh={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function HR(){return jR((N,q)=>{const X={},le={};for(const Te of Object.keys(dh)){const[Ye={},Oe=VR]=dh[Te],Fe=N.createElement("span");Fe.textContent=Oe,Fe.style.whiteSpace="nowrap";for(const Qe of Object.keys(Ye)){const at=Ye[Qe];at!==void 0&&(Fe.style[Qe]=at)}X[Te]=Fe,q.append(N.createElement("br"),Fe)}for(const Te of Object.keys(dh))le[Te]=X[Te].getBoundingClientRect().width;return le})}function jR(N,q=4e3){return Dn((X,le)=>{const Te=le.document,Ye=Te.body,Oe=Ye.style;Oe.width=`${q}px`,Oe.webkitTextSizeAdjust=Oe.textSizeAdjust="none",$e()?Ye.style.zoom=`${1/le.devicePixelRatio}`:ke()&&(Ye.style.zoom="reset");const Fe=Te.createElement("div");return Fe.textContent=[...Array(q/20<<0)].map(()=>"word").join(" "),Ye.appendChild(Fe),N(Te,Ye)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function qR(){return navigator.pdfViewerEnabled}function GR(){const N=new Float32Array(1),q=new Uint8Array(N.buffer);return N[0]=1/0,N[0]=N[0]-N[0],q[3]}function WR(){const{ApplePaySession:N}=window;if(typeof(N==null?void 0:N.canMakePayments)!="function")return-1;if(KR())return-3;try{return N.canMakePayments()?1:0}catch(q){return $R(q)}}const KR=Me;function $R(N){if(N instanceof Error&&N.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(N.message))return-2;throw N}function ZR(){var N;const q=document.createElement("a"),X=(N=q.attributionSourceId)!==null&&N!==void 0?N:q.attributionsourceid;return X===void 0?void 0:String(X)}const K_=-1,$_=-2,YR=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),JR=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),XR=["FRAGMENT_SHADER","VERTEX_SHADER"],QR=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Z_="WEBGL_debug_renderer_info",e4="WEBGL_polygon_mode";function t4({cache:N}){var q,X,le,Te,Ye,Oe;const Fe=fh(N);if(!Fe)return K_;if(!X_(Fe))return $_;const Qe=J_()?null:Fe.getExtension(Z_);return{version:((q=Fe.getParameter(Fe.VERSION))===null||q===void 0?void 0:q.toString())||"",vendor:((X=Fe.getParameter(Fe.VENDOR))===null||X===void 0?void 0:X.toString())||"",vendorUnmasked:Qe?(le=Fe.getParameter(Qe.UNMASKED_VENDOR_WEBGL))===null||le===void 0?void 0:le.toString():"",renderer:((Te=Fe.getParameter(Fe.RENDERER))===null||Te===void 0?void 0:Te.toString())||"",rendererUnmasked:Qe?(Ye=Fe.getParameter(Qe.UNMASKED_RENDERER_WEBGL))===null||Ye===void 0?void 0:Ye.toString():"",shadingLanguageVersion:((Oe=Fe.getParameter(Fe.SHADING_LANGUAGE_VERSION))===null||Oe===void 0?void 0:Oe.toString())||""}}function n4({cache:N}){const q=fh(N);if(!q)return K_;if(!X_(q))return $_;const X=q.getSupportedExtensions(),le=q.getContextAttributes(),Te=[],Ye=[],Oe=[],Fe=[],Qe=[];if(le)for(const Re of Object.keys(le))Ye.push(`${Re}=${le[Re]}`);const at=Y_(q);for(const Re of at){const xe=q[Re];Oe.push(`${Re}=${xe}${YR.has(xe)?`=${q.getParameter(xe)}`:""}`)}if(X)for(const Re of X){if(Re===Z_&&J_()||Re===e4&&a4())continue;const xe=q.getExtension(Re);if(!xe){Te.push(Re);continue}for(const Jt of Y_(xe)){const kt=xe[Jt];Fe.push(`${Jt}=${kt}${JR.has(kt)?`=${q.getParameter(kt)}`:""}`)}}for(const Re of XR)for(const xe of QR){const Jt=r4(q,Re,xe);Qe.push(`${Re}.${xe}=${Jt.join(",")}`)}return Fe.sort(),Oe.sort(),{contextAttributes:Ye,parameters:Oe,shaderPrecisions:Qe,extensions:X,extensionParameters:Fe,unsupportedExtensions:Te}}function fh(N){if(N.webgl)return N.webgl.context;const q=document.createElement("canvas");let X;q.addEventListener("webglCreateContextError",()=>X=void 0);for(const le of["webgl","experimental-webgl"]){try{X=q.getContext(le)}catch{}if(X)break}return N.webgl={context:X},X}function r4(N,q,X){const le=N.getShaderPrecisionFormat(N[q],N[X]);return le?[le.rangeMin,le.rangeMax,le.precision]:[]}function Y_(N){return Object.keys(N.__proto__).filter(i4)}function i4(N){return typeof N=="string"&&!N.match(/[^A-Z0-9_x]/)}function J_(){return Le()}function a4(){return $e()||ke()}function X_(N){return typeof N.getParameter=="function"}function s4(){if(!(Sn()||ke()))return-2;if(!window.AudioContext)return-1;const N=new AudioContext().baseLatency;return N==null?-1:isFinite(N)?N:-3}function o4(){if(!window.Intl)return-1;const N=window.Intl.DateTimeFormat;if(!N)return-2;const q=N().resolvedOptions().locale;return!q&&q!==""?-3:q}const Q_={fonts:Pt,domBlockers:Et,fontPreferences:HR,audio:pt,screenFrame:mu,canvas:he,osCpu:ji,languages:qi,colorDepth:Xr,deviceMemory:vl,screenResolution:Qr,hardwareConcurrency:ao,timezone:ch,sessionStorage:yu,localStorage:ni,indexedDB:De,openDatabase:rt,cpuClass:it,platform:Ft,plugins:R,touchSupport:Ta,vendor:ht,vendorFlavors:Gt,cookiesEnabled:ct,colorGamut:so,invertedColors:_u,forcedColors:_l,monochrome:uh,contrast:xR,reducedMotion:UR,reducedTransparency:FR,hdr:BR,math:zR,pdfViewerEnabled:qR,architecture:GR,applePay:WR,privateClickMeasurement:ZR,audioBaseLatency:s4,dateTimeLocale:o4,webGlBasics:t4,webGlExtensions:n4};function l4(N){return Nt(Q_,N,[])}const c4="$ if upgrade to Pro: https://fpjs.dev/pro";function u4(N){const q=d4(N),X=f4(q);return{score:q,comment:c4.replace(/\$/g,`${X}`)}}function d4(N){if(Sn())return .4;if(ke())return Xe()&&!($t()&&ge())?.5:.3;const q="value"in N.platform?N.platform.value:"";return/^Win/.test(q)?.6:/^Mac/.test(q)?.5:.7}function f4(N){return M(.99+.01*N,1e-4)}function h4(N){let q="";for(const X of Object.keys(N).sort()){const le=N[X],Te="error"in le?"error":JSON.stringify(le.value);q+=`${q?"|":""}${X.replace(/([:|\\])/g,"\\$1")}:${Te}`}return q}function hh(N){return JSON.stringify(N,(q,X)=>X instanceof Error?Se(X):X,2)}function gh(N){return ie(h4(N))}function g4(N){let q;const X=u4(N);return{get visitorId(){return q===void 0&&(q=gh(this.components)),q},set visitorId(le){q=le},confidence:X,components:N,version:b}}function e1(N=50){return f(N,N*2)}function p4(N,q){const X=Date.now();return{async get(le){const Te=Date.now(),Ye=await N(),Oe=g4(Ye);return(q||le!=null&&le.debug)&&console.log(`Copy the text below to get the debug data:
62
+
63
+ \`\`\`
64
+ version: ${Oe.version}
65
+ userAgent: ${navigator.userAgent}
66
+ timeBetweenLoadAndGet: ${Te-X}
67
+ visitorId: ${Oe.visitorId}
68
+ components: ${hh(Ye)}
69
+ \`\`\``),Oe}}}function m4(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{const N=new XMLHttpRequest;N.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${b}/npm-monitoring`,!0),N.send()}catch(N){console.error(N)}}async function t1(N={}){var q;(!((q=N.monitoring)!==null&&q!==void 0)||q)&&m4();const{delayFallback:X,debug:le}=N;await e1(X);const Te=l4({cache:{},debug:le});return p4(Te,le)}var v4={load:t1,hashComponents:gh,componentsToDebugString:hh};const y4=ie;return y.componentsToDebugString=hh,y.default=v4,y.getFullscreenElement=Fn,y.getUnstableAudioFingerprint=gn,y.getUnstableCanvasFingerprint=ve,y.getUnstableScreenFrame=ti,y.getUnstableScreenResolution=no,y.getWebGLContext=fh,y.hashComponents=gh,y.isAndroid=Sn,y.isChromium=$e,y.isDesktopWebKit=Xe,y.isEdgeHTML=Be,y.isGecko=Le,y.isSamsungInternet=_r,y.isTrident=Ie,y.isWebKit=ke,y.load=t1,y.loadSources=Nt,y.murmurX64Hash128=y4,y.prepareForSources=e1,y.sources=Q_,y.transformSource=oe,y.withIframe=Dn,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(ee||(ee={})),function(h){h.BroprintJS=function(y){const b=function(o,a=0){let m=3735928559^a,v=1103547991^a;for(let w=0,A;w<o.length;w++)A=o.charCodeAt(w),m=Math.imul(m^A,2654435761),v=Math.imul(v^A,1597334677);return m=Math.imul(m^m>>>16,2246822507)^Math.imul(v^v>>>13,3266489909),v=Math.imul(v^v>>>16,2246822507)^Math.imul(m^m>>>13,3266489909),4294967296*(2097151&v)+(m>>>0)},c=()=>{const o=document.createElement("canvas");return!!(o.getContext&&o.getContext("2d"))},u=()=>{if(!c())return"canvas not supported";var o=document.createElement("canvas"),a=o.getContext("2d"),m="BroPrint.65@345876";return a.textBaseline="top",a.font="14px 'Arial'",a.textBaseline="alphabetic",a.fillStyle="#f60",a.fillRect(125,1,62,20),a.fillStyle="#069",a.fillText(m,2,15),a.fillStyle="rgba(102, 204, 0, 0.7)",a.fillText(m,4,17),o.toDataURL()},f=function(){let o=null,a=null,m=null,v=null,w=null,A=null;function E(V,j=!1){A=V;try{O(),m.connect(v),v.connect(o.destination),m.start(0),o.startRendering(),o.oncomplete=I}catch(L){if(j)throw L}}function O(){T(),a=o.currentTime,M(),P()}function T(){let V=window.OfflineAudioContext||window.webkitOfflineAudioContext;o=new V(1,44100,44100)}function M(){m=o.createOscillator(),m.type="triangle",m.frequency.setValueAtTime(1e4,a)}function P(){v=o.createDynamicsCompressor(),x("threshold",-50),x("knee",40),x("ratio",12),x("reduction",-20),x("attack",0),x("release",.25)}function x(V,j){v[V]!==void 0&&typeof v[V].setValueAtTime=="function"&&v[V].setValueAtTime(j,o.currentTime)}function I(V){D(V),v.disconnect()}function D(V){let j=null;for(var L=4500;5e3>L;L++){var U=V.renderedBuffer.getChannelData(0)[L];j+=Math.abs(U)}if(w=j.toString(),typeof A=="function")return A(w)}return{run:E}}();function s(){const o=new Promise((a,m)=>{f.run(function(v){a(v)})});return new Promise((a,m)=>{o.then(async v=>{let w="";navigator.brave&&await navigator.brave.isBrave(),w=window.btoa(v)+u(),a(b(w,0))}).catch(()=>{try{a(b(u()).toString())}catch{m("Failed to generate the finger print of this browser")}})})}return y.getCurrentBrowserFingerPrint=s,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(ee||(ee={})),function(h,y){y(h)}(ee||(ee={}),function(h){var y,b,c=function(U,F){var W=typeof Symbol=="function"&&U[Symbol.iterator];if(!W)return U;var J,$,ne=W.call(U),ae=[];try{for(;(F===void 0||F-- >0)&&!(J=ne.next()).done;)ae.push(J.value)}catch(te){$={error:te}}finally{try{J&&!J.done&&(W=ne.return)&&W.call(ne)}finally{if($)throw $.error}}return ae},u=function(U,F,W){if(arguments.length===2)for(var J,$=0,ne=F.length;$<ne;$++)!J&&$ in F||(J||(J=Array.prototype.slice.call(F,0,$)),J[$]=F[$]);return U.concat(J||Array.prototype.slice.call(F))},f=new WeakMap,s=new WeakMap,o=new WeakMap,a=new WeakMap,m=new WeakMap,v={get:function(U,F,W){if(U instanceof IDBTransaction){if(F==="done")return s.get(U);if(F==="objectStoreNames")return U.objectStoreNames||o.get(U);if(F==="store")return W.objectStoreNames[1]?void 0:W.objectStore(W.objectStoreNames[0])}return E(U[F])},set:function(U,F,W){return U[F]=W,!0},has:function(U,F){return U instanceof IDBTransaction&&(F==="done"||F==="store")||F in U}};function w(U){return U!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(b||(b=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(U)?function(){for(var F=[],W=0;W<arguments.length;W++)F[W]=arguments[W];return U.apply(O(this),F),E(f.get(this))}:function(){for(var F=[],W=0;W<arguments.length;W++)F[W]=arguments[W];return E(U.apply(O(this),F))}:function(F){for(var W=[],J=1;J<arguments.length;J++)W[J-1]=arguments[J];var $=U.call.apply(U,u([O(this),F],c(W),!1));return o.set($,F.sort?F.sort():[F]),E($)}}function A(U){return typeof U=="function"?w(U):(U instanceof IDBTransaction&&function(W){if(!s.has(W)){var J=new Promise(function($,ne){var ae=function(){W.removeEventListener("complete",te),W.removeEventListener("error",ie),W.removeEventListener("abort",ie)},te=function(){$(),ae()},ie=function(){ne(W.error||new DOMException("AbortError","AbortError")),ae()};W.addEventListener("complete",te),W.addEventListener("error",ie),W.addEventListener("abort",ie)});s.set(W,J)}}(U),F=U,(y||(y=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(function(W){return F instanceof W})?new Proxy(U,v):U);var F}function E(U){if(U instanceof IDBRequest)return F=U,(W=new Promise(function($,ne){var ae=function(){F.removeEventListener("success",te),F.removeEventListener("error",ie)},te=function(){$(E(F.result)),ae()},ie=function(){ne(F.error),ae()};F.addEventListener("success",te),F.addEventListener("error",ie)})).then(function($){$ instanceof IDBCursor&&f.set($,F)}).catch(function(){}),m.set(W,F),W;var F,W;if(a.has(U))return a.get(U);var J=A(U);return J!==U&&(a.set(U,J),m.set(J,U)),J}var O=function(U){return m.get(U)},T=function(){return T=Object.assign||function(U){for(var F,W=1,J=arguments.length;W<J;W++)for(var $ in F=arguments[W])Object.prototype.hasOwnProperty.call(F,$)&&(U[$]=F[$]);return U},T.apply(this,arguments)},M=function(U,F,W,J){return new(W||(W=Promise))(function($,ne){function ae(Se){try{ie(J.next(Se))}catch(_e){ne(_e)}}function te(Se){try{ie(J.throw(Se))}catch(_e){ne(_e)}}function ie(Se){var _e;Se.done?$(Se.value):(_e=Se.value,_e instanceof W?_e:new W(function(Ne){Ne(_e)})).then(ae,te)}ie((J=J.apply(U,[])).next())})},P=function(U,F){var W,J,$,ne,ae={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ne={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function te(ie){return function(Se){return function(_e){if(W)throw new TypeError("Generator is already executing.");for(;ae;)try{if(W=1,J&&($=2&_e[0]?J.return:_e[0]?J.throw||(($=J.return)&&$.call(J),0):J.next)&&!($=$.call(J,_e[1])).done)return $;switch(J=0,$&&(_e=[2&_e[0],$.value]),_e[0]){case 0:case 1:$=_e;break;case 4:return ae.label++,{value:_e[1],done:!1};case 5:ae.label++,J=_e[1],_e=[0];continue;case 7:_e=ae.ops.pop(),ae.trys.pop();continue;default:if($=ae.trys,!(($=$.length>0&&$[$.length-1])||_e[0]!==6&&_e[0]!==2)){ae=0;continue}if(_e[0]===3&&(!$||_e[1]>$[0]&&_e[1]<$[3])){ae.label=_e[1];break}if(_e[0]===6&&ae.label<$[1]){ae.label=$[1],$=_e;break}if($&&ae.label<$[2]){ae.label=$[2],ae.ops.push(_e);break}$[2]&&ae.ops.pop(),ae.trys.pop();continue}_e=F.call(U,ae)}catch(Ne){_e=[6,Ne],J=0}finally{W=$=0}if(5&_e[0])throw _e[1];return{value:_e[0]?_e[1]:void 0,done:!0}}([ie,Se])}}},x=function(U,F){var W=typeof Symbol=="function"&&U[Symbol.iterator];if(!W)return U;var J,$,ne=W.call(U),ae=[];try{for(;(F===void 0||F-- >0)&&!(J=ne.next()).done;)ae.push(J.value)}catch(te){$={error:te}}finally{try{J&&!J.done&&(W=ne.return)&&W.call(ne)}finally{if($)throw $.error}}return ae},I=function(U,F,W){if(arguments.length===2)for(var J,$=0,ne=F.length;$<ne;$++)!J&&$ in F||(J||(J=Array.prototype.slice.call(F,0,$)),J[$]=F[$]);return U.concat(J||Array.prototype.slice.call(F))},D=["get","getKey","getAll","getAllKeys","count"],V=["put","add","delete","clear"],j=new Map;function L(U,F){if(U instanceof IDBDatabase&&!(F in U)&&typeof F=="string"){if(j.get(F))return j.get(F);var W=F.replace(/FromIndex$/,""),J=F!==W,$=V.includes(W);if(W in(J?IDBIndex:IDBObjectStore).prototype&&($||D.includes(W))){var ne=function(ae){for(var te=[],ie=1;ie<arguments.length;ie++)te[ie-1]=arguments[ie];return M(this,void 0,void 0,function(){var Se,_e,Ne;return P(this,function(et){switch(et.label){case 0:return Se=this.transaction(ae,$?"readwrite":"readonly"),_e=Se.store,J&&(_e=_e.index(te.shift())),[4,Promise.all([(Ne=_e)[W].apply(Ne,I([],x(te),!1)),$&&Se.done])];case 1:return[2,et.sent()[0]]}})})};return j.set(F,ne),ne}}}v=function(U){return T(T({},U),{get:function(F,W,J){return L(F,W)||U.get(F,W,J)},has:function(F,W){return!!L(F,W)||U.has(F,W)}})}(v),h.deleteDB=function(U,F){var W=(F===void 0?{}:F).blocked,J=indexedDB.deleteDatabase(U);return W&&J.addEventListener("blocked",function($){return W($.oldVersion,$)}),E(J).then(function(){})},h.openDB=function(U,F,W){var J=W===void 0?{}:W,$=J.blocked,ne=J.upgrade,ae=J.blocking,te=J.terminated,ie=indexedDB.open(U,F),Se=E(ie);return ne&&ie.addEventListener("upgradeneeded",function(_e){ne(E(ie.result),_e.oldVersion,_e.newVersion,E(ie.transaction),_e)}),$&&ie.addEventListener("blocked",function(_e){return $(_e.oldVersion,_e.newVersion,_e)}),Se.then(function(_e){te&&_e.addEventListener("close",function(){return te()}),ae&&_e.addEventListener("versionchange",function(Ne){return ae(Ne.oldVersion,Ne.newVersion,Ne)})}).catch(function(){}),Se},h.unwrap=O,h.wrap=E}),function(){typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(h,y){if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(h),c=1;c<arguments.length;c++){var u=arguments[c];if(u!=null)for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(b[f]=u[f])}return b},writable:!0,configurable:!0})}(),Array.from||(Array.from=function(){var h=Object.prototype.toString,y=function(f){return typeof f=="function"||h.call(f)==="[object Function]"},b=function(f){var s=Number(f);return isNaN(s)?0:s===0||!isFinite(s)?s:(s>0?1:-1)*Math.floor(Math.abs(s))},c=Math.pow(2,53)-1,u=function(f){var s=b(f);return Math.min(Math.max(s,0),c)};return function(f){var s=this,o=Object(f);if(f==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a=arguments.length>1?arguments[1]:void 0,m;if(typeof a<"u"){if(!y(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(m=arguments[2])}for(var v=u(o.length),w=y(s)?Object(new s(v)):new Array(v),A=0,E;A<v;)E=o[A],a?w[A]=typeof m>"u"?a(E,A):a.call(m,E,A):w[A]=E,A+=1;return w.length=v,w}}()),function(){String.prototype.endsWith||(String.prototype.endsWith=function(h,y){return(y===void 0||y>this.length)&&(y=this.length),this.substring(y-h.length,y)===h})}(),function(){Promise.allSettled=Promise.allSettled||function(h){return Promise.all(h.map(function(y){return y.then(function(b){return{status:"fulfilled",value:b}}).catch(function(b){return{status:"rejected",reason:b}})}))}}(),function(h,y){var b="2.0.2",c=500,u="user-agent",f="",s="?",o="function",a="undefined",m="object",v="string",w="browser",A="cpu",E="device",O="engine",T="os",M="result",P="name",x="type",I="vendor",D="version",V="architecture",j="major",L="model",U="console",F="mobile",W="tablet",J="smarttv",$="wearable",ne="xr",ae="embedded",te="inapp",ie="brands",Se="formFactors",_e="fullVersionList",Ne="platform",et="platformVersion",Nt="bitness",oe="sec-ch-ua",Ie=oe+"-full-version-list",Be=oe+"-arch",$e=oe+"-"+Nt,ke=oe+"-form-factors",Xe=oe+"-"+F,ge=oe+"-"+L,Le=oe+"-"+Ne,Mt=Le+"-version",Ct=[ie,_e,F,L,Ne,et,V,Se,Nt],Ut="Amazon",$t="Apple",bn="ASUS",Fn="BlackBerry",Bn="Google",Sn="Huawei",_r="Lenovo",pt="Honor",gn="LG",vn="Microsoft",Nr="Motorola",wr="Nvidia",Yr="OnePlus",ir="OPPO",Dn="Samsung",H="Sharp",we="Sony",Me="Xiaomi",Ae="Zebra",Ue="Chrome",ze="Chromium",ft="Chromecast",Pt="Edge",R="Firefox",he="Opera",ve="Facebook",K="Sogou",Ve="Mobile ",tt=" Browser",nt="Windows",ot=typeof window!==a,yn=ot&&window.navigator?window.navigator:y,yt=yn&&yn.userAgentData?yn.userAgentData:y,Jr=function(De,rt){var it={},Ft=rt;if(!qi(rt)){Ft={};for(var ht in rt)for(var Gt in rt[ht])Ft[Gt]=rt[ht][Gt].concat(Ft[Gt]?Ft[Gt]:[])}for(var ct in De)it[ct]=Ft[ct]&&Ft[ct].length%2===0?Ft[ct].concat(De[ct]):De[ct];return it},Ta=function(De){for(var rt={},it=0;it<De.length;it++)rt[De[it].toUpperCase()]=De[it];return rt},ji=function(De,rt){if(typeof De===m&&De.length>0){for(var it in De)if(Qr(De[it])==Qr(rt))return!0;return!1}return Xr(De)?Qr(rt).indexOf(Qr(De))!==-1:!1},qi=function(De,rt){for(var it in De)return/^(browser|cpu|device|engine|os)$/.test(it)||(rt?qi(De[it]):!1)},Xr=function(De){return typeof De===v},vl=function(De){if(!De)return y;for(var rt=[],it=Oa(/\\?\"/g,De).split(","),Ft=0;Ft<it.length;Ft++)if(it[Ft].indexOf(";")>-1){var ht=Gi(it[Ft]).split(";v=");rt[Ft]={brand:ht[0],version:ht[1]}}else rt[Ft]=Gi(it[Ft]);return rt},Qr=function(De){return Xr(De)?De.toLowerCase():De},no=function(De){return Xr(De)?Oa(/[^\d\.]/g,De).split(".")[0]:y},ei=function(De){for(var rt in De){var it=De[rt];typeof it==m&&it.length==2?this[it[0]]=it[1]:this[it]=y}return this},Oa=function(De,rt){return Xr(rt)?rt.replace(De,f):rt},wi=function(De){return Oa(/\\?\"/g,De)},Gi=function(De,rt){if(Xr(De))return De=Oa(/^\s\s*/,De),typeof rt===a?De:De.substring(0,c)},yl=function(De,rt){if(!(!De||!rt))for(var it=0,Ft,ht,Gt,ct,zt,Et;it<rt.length&&!zt;){var un=rt[it],ri=rt[it+1];for(Ft=ht=0;Ft<un.length&&!zt&&un[Ft];)if(zt=un[Ft++].exec(De),zt)for(Gt=0;Gt<ri.length;Gt++)Et=zt[++ht],ct=ri[Gt],typeof ct===m&&ct.length>0?ct.length===2?typeof ct[1]==o?this[ct[0]]=ct[1].call(this,Et):this[ct[0]]=ct[1]:ct.length===3?typeof ct[1]===o&&!(ct[1].exec&&ct[1].test)?this[ct[0]]=Et?ct[1].call(this,Et,ct[2]):y:this[ct[0]]=Et?Et.replace(ct[1],ct[2]):y:ct.length===4&&(this[ct[0]]=Et?ct[3].call(this,Et.replace(ct[1],ct[2])):y):this[ct]=Et||y;it+=2}},ti=function(De,rt){for(var it in rt)if(typeof rt[it]===m&&rt[it].length>0){for(var Ft=0;Ft<rt[it].length;Ft++)if(ji(rt[it][Ft],De))return it===s?y:it}else if(ji(rt[it],De))return it===s?y:it;return rt.hasOwnProperty("*")?rt["*"]:De},mu={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"},ro={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":y},io={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[D,[P,Ve+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[D,[P,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[P,D],[/opios[\/ ]+([\w\.]+)/i],[D,[P,he+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[D,[P,he+" GX"]],[/\bopr\/([\w\.]+)/i],[D,[P,he]],[/\bb[a]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[D,[P,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[D,[P,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[P,D],[/quark(?:pc)?\/([-\w\.]+)/i],[D,[P,"Quark"]],[/\bddg\/([\w\.]+)/i],[D,[P,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[D,[P,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[D,[P,"WeChat"]],[/konqueror\/([\w\.]+)/i],[D,[P,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[D,[P,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[D,[P,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[D,[P,"Smart "+_r+tt]],[/(avast|avg)\/([\w\.]+)/i],[[P,/(.+)/,"$1 Secure"+tt],D],[/\bfocus\/([\w\.]+)/i],[D,[P,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[D,[P,he+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[D,[P,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[D,[P,"Dolphin"]],[/coast\/([\w\.]+)/i],[D,[P,he+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[D,[P,"MIUI"+tt]],[/fxios\/([\w\.-]+)/i],[D,[P,Ve+R]],[/\bqihoobrowser\/?([\w\.]*)/i],[D,[P,"360"]],[/\b(qq)\/([\w\.]+)/i],[[P,/(.+)/,"$1Browser"],D],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[P,/(.+)/,"$1"+tt],D],[/samsungbrowser\/([\w\.]+)/i],[D,[P,Dn+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[D,[P,K+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[P,K+" Mobile"],D],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[P,D],[/(lbbrowser|rekonq)/i],[P],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[D,P],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[P,ve],D,[x,te]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[P,D,[x,te]],[/\bgsa\/([\w\.]+) .*safari\//i],[D,[P,"GSA"],[x,te]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[D,[P,"TikTok"],[x,te]],[/\[(linkedin)app\]/i],[P,[x,te]],[/(chromium)[\/ ]([-\w\.]+)/i],[P,D],[/headlesschrome(?:\/([\w\.]+)| )/i],[D,[P,Ue+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[P,Ue+" WebView"],D],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[D,[P,"Android"+tt]],[/chrome\/([\w\.]+) mobile/i],[D,[P,Ve+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[P,D],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[D,[P,Ve+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[P,Ve+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[D,P],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[P,[D,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[P,D],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[P,Ve+R],D],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[P,"Netscape"],D],[/(wolvic|librewolf)\/([\w\.]+)/i],[P,D],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[D,[P,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[P,[D,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[P,[D,/[^\d\.]+./,f]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[V,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[V,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[V,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[V,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[V,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[V,/ower/,f,Qr]],[/ sun4\w[;\)]/i],[[V,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[V,Qr]]],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],[L,[I,Dn],[x,W]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[L,[I,Dn],[x,F]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[L,[I,$t],[x,F]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[L,[I,$t],[x,W]],[/(macintosh);/i],[L,[I,$t]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[L,[I,H],[x,F]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[L,[I,pt],[x,W]],[/honor([-\w ]+)[;\)]/i],[L,[I,pt],[x,F]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[L,[I,Sn],[x,W]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[L,[I,Sn],[x,F]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[L,/_/g," "],[I,Me],[x,W]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[L,/_/g," "],[I,Me],[x,F]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[L,[I,ir],[x,F]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[L,[I,ti,{OnePlus:["304","403","203"],"*":ir}],[x,W]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[L,[I,"Vivo"],[x,F]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[L,[I,"Realme"],[x,F]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[L,[I,Nr],[x,F]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[L,[I,Nr],[x,W]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[L,[I,gn],[x,W]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[L,[I,gn],[x,F]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[L,[I,_r],[x,W]],[/(nokia) (t[12][01])/i],[I,L,[x,W]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[L,/_/g," "],[x,F],[I,"Nokia"]],[/(pixel (c|tablet))\b/i],[L,[I,Bn],[x,W]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[L,[I,Bn],[x,F]],[/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],[L,[I,we],[x,F]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[L,"Xperia Tablet"],[I,we],[x,W]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[L,[I,Yr],[x,F]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[L,[I,Ut],[x,W]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[L,/(.+)/g,"Fire Phone $1"],[I,Ut],[x,F]],[/(playbook);[-\w\),; ]+(rim)/i],[L,I,[x,W]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[L,[I,Fn],[x,F]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[L,[I,bn],[x,W]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[L,[I,bn],[x,F]],[/(nexus 9)/i],[L,[I,"HTC"],[x,W]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[I,[L,/_/g," "],[x,F]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[L,[I,"TCL"],[x,W]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[L,[I,"TCL"],[x,F]],[/(itel) ((\w+))/i],[[I,Qr],L,[x,ti,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[L,[I,"Acer"],[x,W]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[L,[I,"Meizu"],[x,F]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[L,[I,"Ulefone"],[x,F]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[L,[I,"Energizer"],[x,F]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[L,[I,"Cat"],[x,F]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[L,[I,"Smartfren"],[x,F]],[/droid.+; (a(?:015|06[35]|142p?))/i],[L,[I,"Nothing"],[x,F]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[I,L,[x,W]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[I,L,[x,F]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[I,L,[x,W]],[/(surface duo)/i],[L,[I,vn],[x,W]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[L,[I,"Fairphone"],[x,F]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[L,[I,wr],[x,W]],[/(sprint) (\w+)/i],[I,L,[x,F]],[/(kin\.[onetw]{3})/i],[[L,/\./g," "],[I,vn],[x,F]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[L,[I,Ae],[x,W]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[L,[I,Ae],[x,F]],[/smart-tv.+(samsung)/i],[I,[x,J]],[/hbbtv.+maple;(\d+)/i],[[L,/^/,"SmartTV"],[I,Dn],[x,J]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[I,gn],[x,J]],[/(apple) ?tv/i],[I,[L,$t+" TV"],[x,J]],[/crkey.*devicetype\/chromecast/i],[[L,ft+" Third Generation"],[I,Bn],[x,J]],[/crkey.*devicetype\/([^/]*)/i],[[L,/^/,"Chromecast "],[I,Bn],[x,J]],[/fuchsia.*crkey/i],[[L,ft+" Nest Hub"],[I,Bn],[x,J]],[/crkey/i],[[L,ft],[I,Bn],[x,J]],[/droid.+aft(\w+)( bui|\))/i],[L,[I,Ut],[x,J]],[/(shield \w+ tv)/i],[L,[I,wr],[x,J]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[L,[I,H],[x,J]],[/(bravia[\w ]+)( bui|\))/i],[L,[I,we],[x,J]],[/(mi(tv|box)-?\w+) bui/i],[L,[I,Me],[x,J]],[/Hbbtv.*(technisat) (.*);/i],[I,L,[x,J]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[I,Gi],[L,Gi],[x,J]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[L,[x,J]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[x,J]],[/(ouya)/i,/(nintendo) (\w+)/i],[I,L,[x,U]],[/droid.+; (shield)( bui|\))/i],[L,[I,wr],[x,U]],[/(playstation \w+)/i],[L,[I,we],[x,U]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[L,[I,vn],[x,U]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[L,[I,Dn],[x,$]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[I,L,[x,$]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[L,[I,ir],[x,$]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[L,[I,$t],[x,$]],[/(opwwe\d{3})/i],[L,[I,Yr],[x,$]],[/(moto 360)/i],[L,[I,Nr],[x,$]],[/(smartwatch 3)/i],[L,[I,we],[x,$]],[/(g watch r)/i],[L,[I,gn],[x,$]],[/droid.+; (wt63?0{2,3})\)/i],[L,[I,Ae],[x,$]],[/droid.+; (glass) \d/i],[L,[I,Bn],[x,ne]],[/(pico) (4|neo3(?: link|pro)?)/i],[I,L,[x,ne]],[/; (quest( \d| pro)?)/i],[L,[I,ve],[x,ne]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[I,[x,ae]],[/(aeobc)\b/i],[L,[I,Ut],[x,ae]],[/(homepod).+mac os/i],[L,[I,$t],[x,ae]],[/windows iot/i],[[x,ae]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[L,[x,ti,{mobile:"Mobile",xr:"VR","*":W}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[x,W]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[x,F]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[L,[I,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[D,[P,Pt+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[P,D],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[D,[P,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[P,D],[/ladybird\//i],[[P,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[D,P]],os:[[/microsoft (windows) (vista|xp)/i],[P,D],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[P,[D,ti,mu]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[D,ti,mu],[P,nt]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[D,/_/g,"."],[P,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[P,"macOS"],[D,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[D,[P,ft+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[D,[P,ft+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[D,[P,ft+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[D,[P,ft+" Linux"]],[/crkey\/([\d\.]+)/i],[D,[P,ft]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[D,P],[/(ubuntu) ([\w\.]+) like android/i],[[P,/(.+)/,"$1 Touch"],D],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[P,D],[/\(bb(10);/i],[D,[P,Fn]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[D,[P,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[D,[P,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[D,[P,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[D,[P,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[P,"Chrome OS"],D],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/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)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[P,D],[/(sunos) ?([\w\.\d]*)/i],[[P,"Solaris"],D],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[P,D]]},ao=function(){var De={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return ei.call(De.init,[[w,[P,D,j,x]],[A,[V]],[E,[x,L,I]],[O,[P,D]],[T,[P,D]]]),ei.call(De.isIgnore,[[w,[D,j]],[O,[D]],[T,[D]]]),ei.call(De.isIgnoreRgx,[[w,/ ?browser$/i],[T,/ ?os$/i]]),ei.call(De.toString,[[w,[P,D]],[A,[V]],[E,[I,L]],[O,[P,D]],[T,[P,D]]]),De}(),ch=function(De,rt){var it=ao.init[rt],Ft=ao.isIgnore[rt]||0,ht=ao.isIgnoreRgx[rt]||0,Gt=ao.toString[rt]||0;function ct(){ei.call(this,it)}return ct.prototype.getItem=function(){return De},ct.prototype.withClientHints=function(){return yt?yt.getHighEntropyValues(Ct).then(function(zt){return De.setCH(new vu(zt,!1)).parseCH().get()}):De.parseCH().get()},ct.prototype.withFeatureCheck=function(){return De.detectFeature().get()},rt!=M&&(ct.prototype.is=function(zt){var Et=!1;for(var un in this)if(this.hasOwnProperty(un)&&!ji(Ft,un)&&Qr(ht?Oa(ht,this[un]):this[un])==Qr(ht?Oa(ht,zt):zt)){if(Et=!0,zt!=a)break}else if(zt==a&&Et){Et=!Et;break}return Et},ct.prototype.toString=function(){var zt=f;for(var Et in Gt)typeof this[Gt[Et]]!==a&&(zt+=(zt?" ":f)+this[Gt[Et]]);return zt||a}),yt||(ct.prototype.then=function(zt){var Et=this,un=function(){for(var ii in Et)Et.hasOwnProperty(ii)&&(this[ii]=Et[ii])};un.prototype={is:ct.prototype.is,toString:ct.prototype.toString};var ri=new un;return zt(ri),ri}),new ct};function vu(De,rt){if(De=De||{},ei.call(this,Ct),rt)ei.call(this,[[ie,vl(De[oe])],[_e,vl(De[Ie])],[F,/\?1/.test(De[Xe])],[L,wi(De[ge])],[Ne,wi(De[Le])],[et,wi(De[Mt])],[V,wi(De[Be])],[Se,vl(De[ke])],[Nt,wi(De[$e])]]);else for(var it in De)this.hasOwnProperty(it)&&typeof De[it]!==a&&(this[it]=De[it])}function yu(De,rt,it,Ft){return this.get=function(ht){return ht?this.data.hasOwnProperty(ht)?this.data[ht]:y:this.data},this.set=function(ht,Gt){return this.data[ht]=Gt,this},this.setCH=function(ht){return this.uaCH=ht,this},this.detectFeature=function(){if(yn&&yn.userAgent==this.ua)switch(this.itemType){case w:yn.brave&&typeof yn.brave.isBrave==o&&this.set(P,"Brave");break;case E:!this.get(x)&&yt&&yt[F]&&this.set(x,F),this.get(L)=="Macintosh"&&yn&&typeof yn.standalone!==a&&yn.maxTouchPoints&&yn.maxTouchPoints>2&&this.set(L,"iPad").set(x,W);break;case T:!this.get(P)&&yt&&yt[Ne]&&this.set(P,yt[Ne]);break;case M:var ht=this.data,Gt=function(ct){return ht[ct].getItem().detectFeature().get()};this.set(w,Gt(w)).set(A,Gt(A)).set(E,Gt(E)).set(O,Gt(O)).set(T,Gt(T))}return this},this.parseUA=function(){return this.itemType!=M&&yl.call(this.data,this.ua,this.rgxMap),this.itemType==w&&this.set(j,no(this.get(D))),this},this.parseCH=function(){var ht=this.uaCH,Gt=this.rgxMap;switch(this.itemType){case w:case O:var ct=ht[_e]||ht[ie],zt;if(ct)for(var Et in ct){var un=ct[Et].brand||ct[Et],ri=ct[Et].version;this.itemType==w&&!/not.a.brand/i.test(un)&&(!zt||/chrom/i.test(zt)&&un!=ze)&&(un=ti(un,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome"}),this.set(P,un).set(D,ri).set(j,no(ri)),zt=un),this.itemType==O&&un==ze&&this.set(D,ri)}break;case A:var ii=ht[V];ii&&(ii&&ht[Nt]=="64"&&(ii+="64"),yl.call(this.data,ii+";",Gt));break;case E:if(ht[F]&&this.set(x,F),ht[L]&&(this.set(L,ht[L]),!this.get(x)||!this.get(I))){var fs={};yl.call(fs,"droid 9; "+ht[L]+")",Gt),!this.get(x)&&fs.type&&this.set(x,fs.type),!this.get(I)&&fs.vendor&&this.set(I,fs.vendor)}if(ht[Se]){var so;if(typeof ht[Se]!="string")for(var _u=0;!so&&_u<ht[Se].length;)so=ti(ht[Se][_u++],ro);else so=ti(ht[Se],ro);this.set(x,so)}break;case T:var oo=ht[Ne];if(oo){var _l=ht[et];oo==nt&&(_l=parseInt(no(_l),10)>=13?"11":"10"),this.set(P,oo).set(D,_l)}this.get(P)==nt&&ht[L]=="Xbox"&&this.set(P,"Xbox").set(D,y);break;case M:var wu=this.data,hs=function(uh){return wu[uh].getItem().setCH(ht).parseCH().get()};this.set(w,hs(w)).set(A,hs(A)).set(E,hs(E)).set(O,hs(O)).set(T,hs(T))}return this},ei.call(this,[["itemType",De],["ua",rt],["uaCH",Ft],["rgxMap",it],["data",ch(this,De)]]),this}function ni(De,rt,it){if(typeof De===m?(qi(De,!0)?(typeof rt===m&&(it=rt),rt=De):(it=De,rt=y),De=y):typeof De===v&&!qi(rt,!0)&&(it=rt,rt=y),it&&typeof it.append===o){var Ft={};it.forEach(function(Et,un){Ft[un]=Et}),it=Ft}if(!(this instanceof ni))return new ni(De,rt,it).getResult();var ht=typeof De===v?De:it&&it[u]?it[u]:yn&&yn.userAgent?yn.userAgent:f,Gt=new vu(it,!0),ct=rt?Jr(io,rt):io,zt=function(Et){return Et==M?function(){return new yu(Et,ht,ct,Gt).set("ua",ht).set(w,this.getBrowser()).set(A,this.getCPU()).set(E,this.getDevice()).set(O,this.getEngine()).set(T,this.getOS()).get()}:function(){return new yu(Et,ht,ct[Et],Gt).parseUA().get()}};return ei.call(this,[["getBrowser",zt(w)],["getCPU",zt(A)],["getDevice",zt(E)],["getEngine",zt(O)],["getOS",zt(T)],["getResult",zt(M)],["getUA",function(){return ht}],["setUA",function(Et){return Xr(Et)&&(ht=Et.length>c?Gi(Et,c):Et),this}]]).setUA(ht),this}ni.VERSION=b,ni.BROWSER=Ta([P,D,j,x]),ni.CPU=Ta([V]),ni.DEVICE=Ta([L,I,x,U,F,J,W,$,ae]),ni.ENGINE=ni.OS=Ta([P,D]),h.UAParser=ni}(ee||(ee={})),(ee||(ee={})).evaluateModernizr=function(){(function(h,y,b,c){function u(oe,Ie){return typeof oe===Ie}function f(){return typeof b.createElement!="function"?b.createElement(arguments[0]):L?b.createElementNS.call(b,"http://www.w3.org/2000/svg",arguments[0]):b.createElement.apply(b,arguments)}function s(oe,Ie){return!!~(""+oe).indexOf(Ie)}function o(){var oe=b.body;return oe||(oe=f(L?"svg":"body"),oe.fake=!0),oe}function a(oe,Ie,Be,$e){var ke,Xe,ge,Le,Mt="modernizr",Ct=f("div"),Ut=o();if(parseInt(Be,10))for(;Be--;)ge=f("div"),ge.id=Mt+(Be+1),Ct.appendChild(ge);return ke=f("style"),ke.type="text/css",ke.id="s"+Mt,(Ut.fake?Ut:Ct).appendChild(ke),Ut.appendChild(Ct),ke.styleSheet?ke.styleSheet.cssText=oe:ke.appendChild(b.createTextNode(oe)),Ct.id=Mt,Ut.fake&&(Ut.style.background="",Ut.style.overflow="hidden",Le=j.style.overflow,j.style.overflow="hidden",j.appendChild(Ut)),Xe=Ie(Ct,oe),Ut.fake&&Ut.parentNode?(Ut.parentNode.removeChild(Ut),j.style.overflow=Le,j.offsetHeight):Ct.parentNode.removeChild(Ct),!!Xe}function m(oe){return oe.replace(/([A-Z])/g,function(Ie,Be){return"-"+Be.toLowerCase()}).replace(/^ms-/,"-ms-")}function v(oe,Ie,Be){var $e;if("getComputedStyle"in y){$e=getComputedStyle.call(y,oe,Ie);var ke=y.console;if($e!==null)$e=$e.getPropertyValue(Be);else if(ke){var Xe=ke.error?"error":"log";ke[Xe].call(ke,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else $e=oe.currentStyle&&oe.currentStyle[Be];return $e}function w(oe,Ie){var Be=oe.length;if(y&&y.CSS&&"supports"in y.CSS){for(;Be--;)if(y.CSS.supports(m(oe[Be]),Ie))return!0;return!1}if("CSSSupportsRule"in y){for(var $e=[];Be--;)$e.push("("+m(oe[Be])+":"+Ie+")");return $e=$e.join(" or "),a("@supports ("+$e+") { #modernizr { position: absolute; } }",function(ke){return v(ke,null,"position")==="absolute"})}return c}function A(oe){return oe.replace(/([a-z])-([a-z])/g,function(Ie,Be,$e){return Be+$e.toUpperCase()}).replace(/^-/,"")}function E(oe,Ie,Be,$e){function ke(){ge&&(delete $.style,delete $.modElem)}if($e=!u($e,"undefined")&&$e,!u(Be,"undefined")){var Xe=w(oe,Be);if(!u(Xe,"undefined"))return Xe}for(var ge,Le,Mt,Ct,Ut,$t=["modernizr","tspan","samp"];!$.style&&$t.length;)ge=!0,$.modElem=f($t.shift()),$.style=$.modElem.style;for(Mt=oe.length,Le=0;Le<Mt;Le++)if(Ct=oe[Le],Ut=$.style[Ct],s(Ct,"-")&&(Ct=A(Ct)),$.style[Ct]!==c){if($e||u(Be,"undefined"))return ke(),Ie!=="pfx"||Ct;try{$.style[Ct]=Be}catch{}if($.style[Ct]!==Ut)return ke(),Ie!=="pfx"||Ct}return ke(),!1}function O(oe,Ie){return function(){return oe.apply(Ie,arguments)}}function T(oe,Ie,Be){var $e;for(var ke in oe)if(oe[ke]in Ie)return Be===!1?oe[ke]:($e=Ie[oe[ke]],u($e,"function")?O($e,Be||Ie):$e);return!1}function M(oe,Ie,Be,$e,ke){var Xe=oe.charAt(0).toUpperCase()+oe.slice(1),ge=(oe+" "+W.join(Xe+" ")+Xe).split(" ");return u(Ie,"string")||u(Ie,"undefined")?E(ge,Ie,$e,ke):(ge=(oe+" "+ne.join(Xe+" ")+Xe).split(" "),T(ge,Ie,Be))}function P(oe,Ie,Be){return M(oe,c,c,Ie,Be)}var x=[],I={_version:"3.13.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(oe,Ie){var Be=this;setTimeout(function(){Ie(Be[oe])},0)},addTest:function(oe,Ie,Be){x.push({name:oe,fn:Ie,options:Be})},addAsyncTest:function(oe){x.push({name:null,fn:oe})}},D=function(){};D.prototype=I,D=new D;var V=[],j=b.documentElement,L=j.nodeName.toLowerCase()==="svg",U=function(){function oe(Be,$e){var ke;return!!Be&&($e&&typeof $e!="string"||($e=f($e||"div")),Be="on"+Be,ke=Be in $e,!ke&&Ie&&($e.setAttribute||($e=f("div")),$e.setAttribute(Be,""),ke=typeof $e[Be]=="function",$e[Be]!==c&&($e[Be]=c),$e.removeAttribute(Be)),ke)}var Ie=!("onblur"in j);return oe}();I.hasEvent=U,D.addTest("ambientlight",U("devicelight",y)),D.addTest("applicationcache","applicationCache"in y),function(){var oe=f("audio");D.addTest("audio",function(){var Ie=!1;try{Ie=!!oe.canPlayType,Ie&&(Ie=new Boolean(Ie))}catch{}return Ie});try{oe.canPlayType&&(D.addTest("audio.ogg",oe.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")),D.addTest("audio.mp3",oe.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,"")),D.addTest("audio.opus",oe.canPlayType('audio/ogg; codecs="opus"')||oe.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,"")),D.addTest("audio.wav",oe.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")),D.addTest("audio.m4a",(oe.canPlayType("audio/x-m4a;")||oe.canPlayType("audio/aac;")).replace(/^no$/,"")))}catch{}}();var F="Moz O ms Webkit",W=I._config.usePrefixes?F.split(" "):[];I._cssomPrefixes=W;var J={elem:f("modernizr")};D._q.push(function(){delete J.elem});var $={style:J.elem.style};D._q.unshift(function(){delete $.style});var ne=I._config.usePrefixes?F.toLowerCase().split(" "):[];I._domPrefixes=ne,I.testAllProps=M;var ae=function(oe){var Ie,Be=_e.length,$e=y.CSSRule;if($e===void 0)return c;if(!oe)return!1;if(oe=oe.replace(/^@/,""),(Ie=oe.replace(/-/g,"_").toUpperCase()+"_RULE")in $e)return"@"+oe;for(var ke=0;ke<Be;ke++){var Xe=_e[ke];if(Xe.toUpperCase()+"_"+Ie in $e)return"@-"+Xe.toLowerCase()+"-"+oe}return!1};I.atRule=ae;var te=I.prefixed=function(oe,Ie,Be){return oe.indexOf("@")===0?ae(oe):(oe.indexOf("-")!==-1&&(oe=A(oe)),Ie?M(oe,Ie,Be):M(oe,"pfx"))};D.addTest("batteryapi",!!te("battery",navigator)||!!te("getBattery",navigator),{aliases:["battery-api"]}),D.addTest("blobconstructor",function(){try{return!!new Blob}catch{return!1}},{aliases:["blob-constructor"]}),D.addTest("contextmenu","contextMenu"in j&&"HTMLMenuItemElement"in y),D.addTest("cors","XMLHttpRequest"in y&&"withCredentials"in new XMLHttpRequest);var ie=te("crypto",y);D.addTest("crypto",!!te("subtle",ie)),D.addTest("customelements","customElements"in y),D.addTest("customprotocolhandler",function(){if(!navigator.registerProtocolHandler)return!1;try{navigator.registerProtocolHandler("thisShouldFail")}catch(oe){return oe instanceof TypeError}return!1}),D.addTest("customevent","CustomEvent"in y&&typeof y.CustomEvent=="function"),D.addTest("dart",!!te("startDart",navigator)),D.addTest("dataview",typeof DataView<"u"&&"getFloat64"in DataView.prototype),D.addTest("eventlistener","addEventListener"in y),D.addTest("forcetouch",function(){return!!U(te("mouseforcewillbegin",y,!1),y)&&MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN}),D.addTest("fullscreen",!(!te("exitFullscreen",b,!1)&&!te("cancelFullScreen",b,!1))),D.addTest("gamepads",!!te("getGamepads",navigator)),D.addTest("geolocation","geolocation"in navigator),D.addTest("ie8compat",!y.addEventListener&&!!b.documentMode&&b.documentMode===7),D.addTest("intl",!!te("Intl",y)),D.addTest("json","JSON"in y&&"parse"in JSON&&"stringify"in JSON),I.testAllProps=P,D.addTest("ligatures",P("fontFeatureSettings",'"liga" 1')),D.addTest("messagechannel","MessageChannel"in y),D.addTest("notification",function(){if(!y.Notification||!y.Notification.requestPermission)return!1;if(y.Notification.permission==="granted")return!0;try{new y.Notification("")}catch(oe){if(oe.name==="TypeError")return!1}return!0}),D.addTest("pagevisibility",!!te("hidden",b,!1)),D.addTest("performance",!!te("performance",y));var Se=[""].concat(ne);I._domPrefixesAll=Se,D.addTest("pointerevents",function(){for(var oe=0,Ie=Se.length;oe<Ie;oe++)if(U(Se[oe]+"pointerdown"))return!0;return!1}),D.addTest("pointerlock",!!te("exitPointerLock",b)),D.addTest("queryselector","querySelector"in b&&"querySelectorAll"in b),D.addTest("quotamanagement",function(){var oe=te("temporaryStorage",navigator),Ie=te("persistentStorage",navigator);return!(!oe||!Ie)}),D.addTest("requestanimationframe",!!te("requestAnimationFrame",y),{aliases:["raf"]}),D.addTest("serviceworker","serviceWorker"in navigator);var _e=I._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];I._prefixes=_e;var Ne=function(){var oe=y.matchMedia||y.msMatchMedia;return oe?function(Ie){var Be=oe(Ie);return Be&&Be.matches||!1}:function(Ie){var Be=!1;return a("@media "+Ie+" { #modernizr { position: absolute; } }",function($e){Be=v($e,null,"position")==="absolute"}),Be}}();I.mq=Ne,D.addTest("touchevents",function(){if("ontouchstart"in y||y.TouchEvent||y.DocumentTouch&&b instanceof DocumentTouch)return!0;var oe=["(",_e.join("touch-enabled),("),"heartz",")"].join("");return Ne(oe)}),D.addTest("typedarrays","ArrayBuffer"in y),D.addTest("vibrate",!!te("vibrate",navigator)),function(){var oe=f("video");D.addTest("video",function(){var Ie=!1;try{Ie=!!oe.canPlayType,Ie&&(Ie=new Boolean(Ie))}catch{}return Ie});try{oe.canPlayType&&(D.addTest("video.ogg",oe.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")),D.addTest("video.h264",oe.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")),D.addTest("video.h265",oe.canPlayType('video/mp4; codecs="hev1"').replace(/^no$/,"")),D.addTest("video.webm",oe.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")),D.addTest("video.vp9",oe.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")),D.addTest("video.hls",oe.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")),D.addTest("video.av1",oe.canPlayType('video/mp4; codecs="av01"').replace(/^no$/,"")))}catch{}}(),D.addTest("webgl",function(){return"WebGLRenderingContext"in y});var et=!1;try{et="WebSocket"in y&&y.WebSocket.CLOSING===2}catch{}D.addTest("websockets",et),D.addTest("xdomainrequest","XDomainRequest"in y),D.addTest("matchmedia",!!te("matchMedia",y)),function(){var oe,Ie,Be,$e,ke,Xe,ge;for(var Le in x)if(x.hasOwnProperty(Le)){if(oe=[],Ie=x[Le],Ie.name&&(oe.push(Ie.name.toLowerCase()),Ie.options&&Ie.options.aliases&&Ie.options.aliases.length))for(Be=0;Be<Ie.options.aliases.length;Be++)oe.push(Ie.options.aliases[Be].toLowerCase());for($e=u(Ie.fn,"function")?Ie.fn():Ie.fn,ke=0;ke<oe.length;ke++)Xe=oe[ke],ge=Xe.split("."),ge.length===1?D[ge[0]]=$e:(D[ge[0]]&&(!D[ge[0]]||D[ge[0]]instanceof Boolean)||(D[ge[0]]=new Boolean(D[ge[0]])),D[ge[0]][ge[1]]=$e),V.push(($e?"":"no-")+ge.join("-"))}}(),delete I.addTest,delete I.addAsyncTest;for(var Nt=0;Nt<D._q.length;Nt++)D._q[Nt]();h.Modernizr=D})(ee||(ee={}),window,document)},function(h){h.AiaSignals=function(y){var b=[{name:"IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",value:!1,error:null},{name:"FILE_INJECT_JS_FOUND",value:!1,error:null},{name:"FILE_CONTENT_JS_FOUND",value:!1,error:null},{name:"WINDOW_GLOBAL_KEY_FOUND",value:!1,error:null}],c={webAuthn:1e3,manus:5e3,anchor:5e3,skyvern:5e3,detect:1e4};function u(A){for(var E=0;E<b.length;E++)if(b[E].name===A)return b[E];return null}function f(A,E){var O=u(A);O&&(O.value=E,O.error=null)}function s(A,E,O){var T=u(A);T&&(T.value=E,T.error=O)}function o(){return new Promise(function(A){var E=setTimeout(function(){A(b)},c.detect);a().then(function(O){var T=u("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE");if(T&&T.value){clearTimeout(E),A(b);return}for(var M=[m().then(function(D){return{key:"manus",result:D}}),v().then(function(D){return{key:"anchor",result:D}}),w().then(function(D){return{key:"skyvern",result:D}})],P=0,x=function(){P++,P===M.length&&(clearTimeout(E),A(b))},I=0;I<M.length;I++)(function(D){D.then(x).catch(function(){x()})})(M[I])}).catch(function(){clearTimeout(E),A(b)})})}function a(){return new Promise(function(A){var E=c.webAuthn,O=setTimeout(function(){s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1004),A(b)},E);try{window.PublicKeyCredential&&typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"?PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then(function(T){clearTimeout(O),T?f("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!0):s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1001),A(b)}).catch(function(){clearTimeout(O),s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1002),A(b)}):(clearTimeout(O),s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1003),A(b))}catch{clearTimeout(O),s("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1002),A(b)}})}function m(){return new Promise(function(A){var E=c.manus,O;function T(){clearTimeout(O),f("FILE_CONTENT_JS_FOUND",!0),A(b)}function M(){s("FILE_CONTENT_JS_FOUND",!1,2001),A(b)}var P=document.createElement("script");P.src="chrome-extension://mljmkmodkfigdopcpgboaalildgijkoc/content.ts.js",P.onload=T,P.onerror=function(){clearTimeout(O),s("FILE_CONTENT_JS_FOUND",!1,2002),A(b)},document.getElementsByTagName("head")[0].appendChild(P),O=setTimeout(M,E)})}function v(){return new Promise(function(A){var E=c.anchor,O;function T(){clearTimeout(O),f("FILE_INJECT_JS_FOUND",!0),A(b)}function M(){s("FILE_INJECT_JS_FOUND",!1,4001),A(b)}var P=document.createElement("script");P.src="chrome-extension://bppehibnhionalpjigdjdilknbljaeai/inject.js",P.onload=T,P.onerror=function(){clearTimeout(O),s("FILE_INJECT_JS_FOUND",!1,4002),A(b)},document.getElementsByTagName("head")[0].appendChild(P),O=setTimeout(M,E)})}function w(){return new Promise(function(A){var E=c.skyvern,O=1e3,T=0;function M(){if(window.globalDomDepthMap||window.GlobalEnableAllTextualElements||window.globalObserverForDOMIncrement||window.globalListnerFlag||window.globalDomDepthMap||window.globalOneTimeIncrementElements||window.globalHoverStylesMap||window.globalParsedElementCounter){f("WINDOW_GLOBAL_KEY_FOUND",!0),A(b);return}for(var P in window)if(typeof P=="string"){var x=P.toLowerCase();if(x.indexOf("skyvern")!==-1&&P!=="isSkyvern"){f("WINDOW_GLOBAL_KEY_FOUND",!0),A(b);return}}T+=O,T>=E?(s("WINDOW_GLOBAL_KEY_FOUND",!1,5002),A(b)):setTimeout(M,O)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",M):M()})}return y.detect=o,y.checkWebAuthnPlatformSupport=a,y.isManus=m,y.isAnchor=v,y.isSkyvern=w,Object.defineProperty(y,"__esModule",{value:!0}),y}({})}(typeof ee<"u"?ee:ee={}),function(h){(ee||(ee={})).pako=h()}(function(){return function h(y,b,c){function u(o,a){if(!b[o]){if(!y[o]){var m=typeof require=="function"&&require;if(!a&&m)return m(o,!0);if(f)return f(o,!0);var v=new Error("Cannot find module '"+o+"'");throw v.code="MODULE_NOT_FOUND",v}var w=b[o]={exports:{}};y[o][0].call(w.exports,function(A){var E=y[o][1][A];return u(E||A)},w,w.exports,h,y,b,c)}return b[o].exports}for(var f=typeof require=="function"&&require,s=0;s<c.length;s++)u(c[s]);return u}({1:[function(h,y,b){function c(o,a){return Object.prototype.hasOwnProperty.call(o,a)}var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";b.assign=function(o){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var m=a.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var v in m)c(m,v)&&(o[v]=m[v])}}return o},b.shrinkBuf=function(o,a){return o.length===a?o:o.subarray?o.subarray(0,a):(o.length=a,o)};var f={arraySet:function(o,a,m,v,w){if(a.subarray&&o.subarray)o.set(a.subarray(m,m+v),w);else for(var A=0;A<v;A++)o[w+A]=a[m+A]},flattenChunks:function(o){var a,m,v,w,A,E;for(v=0,a=0,m=o.length;a<m;a++)v+=o[a].length;for(E=new Uint8Array(v),w=0,a=0,m=o.length;a<m;a++)A=o[a],E.set(A,w),w+=A.length;return E}},s={arraySet:function(o,a,m,v,w){for(var A=0;A<v;A++)o[w+A]=a[m+A]},flattenChunks:function(o){return[].concat.apply([],o)}};b.setTyped=function(o){o?(b.Buf8=Uint8Array,b.Buf16=Uint16Array,b.Buf32=Int32Array,b.assign(b,f)):(b.Buf8=Array,b.Buf16=Array,b.Buf32=Array,b.assign(b,s))},b.setTyped(u)},{}],2:[function(h,y,b){function c(m,v){if(v<65537&&(m.subarray&&s||!m.subarray&&f))return String.fromCharCode.apply(null,u.shrinkBuf(m,v));for(var w="",A=0;A<v;A++)w+=String.fromCharCode(m[A]);return w}var u=h("./common"),f=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var o=new u.Buf8(256),a=0;a<256;a++)o[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;o[254]=o[254]=1,b.string2buf=function(m){var v,w,A,E,O,T=m.length,M=0;for(E=0;E<T;E++)(64512&(w=m.charCodeAt(E)))==55296&&E+1<T&&(64512&(A=m.charCodeAt(E+1)))==56320&&(w=65536+(w-55296<<10)+(A-56320),E++),M+=w<128?1:w<2048?2:w<65536?3:4;for(v=new u.Buf8(M),O=0,E=0;O<M;E++)(64512&(w=m.charCodeAt(E)))==55296&&E+1<T&&(64512&(A=m.charCodeAt(E+1)))==56320&&(w=65536+(w-55296<<10)+(A-56320),E++),w<128?v[O++]=w:w<2048?(v[O++]=192|w>>>6,v[O++]=128|63&w):w<65536?(v[O++]=224|w>>>12,v[O++]=128|w>>>6&63,v[O++]=128|63&w):(v[O++]=240|w>>>18,v[O++]=128|w>>>12&63,v[O++]=128|w>>>6&63,v[O++]=128|63&w);return v},b.buf2binstring=function(m){return c(m,m.length)},b.binstring2buf=function(m){for(var v=new u.Buf8(m.length),w=0,A=v.length;w<A;w++)v[w]=m.charCodeAt(w);return v},b.buf2string=function(m,v){var w,A,E,O,T=v||m.length,M=new Array(2*T);for(A=0,w=0;w<T;)if((E=m[w++])<128)M[A++]=E;else if((O=o[E])>4)M[A++]=65533,w+=O-1;else{for(E&=O===2?31:O===3?15:7;O>1&&w<T;)E=E<<6|63&m[w++],O--;O>1?M[A++]=65533:E<65536?M[A++]=E:(E-=65536,M[A++]=55296|E>>10&1023,M[A++]=56320|1023&E)}return c(M,A)},b.utf8border=function(m,v){var w;for((v=v||m.length)>m.length&&(v=m.length),w=v-1;w>=0&&(192&m[w])==128;)w--;return w<0||w===0?v:w+o[m[w]]>v?w:v}},{"./common":1}],3:[function(h,y,b){y.exports=function(c,u,f,s){for(var o=65535&c|0,a=c>>>16&65535|0,m=0;f!==0;){f-=m=f>2e3?2e3:f;do a=a+(o=o+u[s++]|0)|0;while(--m);o%=65521,a%=65521}return o|a<<16|0}},{}],4:[function(h,y,b){var c=function(){for(var u,f=[],s=0;s<256;s++){u=s;for(var o=0;o<8;o++)u=1&u?3988292384^u>>>1:u>>>1;f[s]=u}return f}();y.exports=function(u,f,s,o){var a=c,m=o+s;u^=-1;for(var v=o;v<m;v++)u=u>>>8^a[255&(u^f[v])];return-1^u}},{}],5:[function(h,y,b){function c(R,he){return R.msg=$[he],he}function u(R){return(R<<1)-(R>4?9:0)}function f(R){for(var he=R.length;--he>=0;)R[he]=0}function s(R){var he=R.state,ve=he.pending;ve>R.avail_out&&(ve=R.avail_out),ve!==0&&(U.arraySet(R.output,he.pending_buf,he.pending_out,ve,R.next_out),R.next_out+=ve,he.pending_out+=ve,R.total_out+=ve,R.avail_out-=ve,he.pending-=ve,he.pending===0&&(he.pending_out=0))}function o(R,he){F._tr_flush_block(R,R.block_start>=0?R.block_start:-1,R.strstart-R.block_start,he),R.block_start=R.strstart,s(R.strm)}function a(R,he){R.pending_buf[R.pending++]=he}function m(R,he){R.pending_buf[R.pending++]=he>>>8&255,R.pending_buf[R.pending++]=255&he}function v(R,he,ve,K){var Ve=R.avail_in;return Ve>K&&(Ve=K),Ve===0?0:(R.avail_in-=Ve,U.arraySet(he,R.input,R.next_in,Ve,ve),R.state.wrap===1?R.adler=W(R.adler,he,Ve,ve):R.state.wrap===2&&(R.adler=J(R.adler,he,Ve,ve)),R.next_in+=Ve,R.total_in+=Ve,Ve)}function w(R,he){var ve,K,Ve=R.max_chain_length,tt=R.strstart,nt=R.prev_length,ot=R.nice_match,yn=R.strstart>R.w_size-vn?R.strstart-(R.w_size-vn):0,yt=R.window,Jr=R.w_mask,Ta=R.prev,ji=R.strstart+gn,qi=yt[tt+nt-1],Xr=yt[tt+nt];R.prev_length>=R.good_match&&(Ve>>=2),ot>R.lookahead&&(ot=R.lookahead);do if(ve=he,yt[ve+nt]===Xr&&yt[ve+nt-1]===qi&&yt[ve]===yt[tt]&&yt[++ve]===yt[tt+1]){tt+=2,ve++;do;while(yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&yt[++tt]===yt[++ve]&&tt<ji);if(K=gn-(ji-tt),tt=ji-gn,K>nt){if(R.match_start=he,nt=K,K>=ot)break;qi=yt[tt+nt-1],Xr=yt[tt+nt]}}while((he=Ta[he&Jr])>yn&&--Ve!=0);return nt<=R.lookahead?nt:R.lookahead}function A(R){var he,ve,K,Ve,tt,nt=R.w_size;do{if(Ve=R.window_size-R.lookahead-R.strstart,R.strstart>=nt+(nt-vn)){U.arraySet(R.window,R.window,nt,nt,0),R.match_start-=nt,R.strstart-=nt,R.block_start-=nt,he=ve=R.hash_size;do K=R.head[--he],R.head[he]=K>=nt?K-nt:0;while(--ve);he=ve=nt;do K=R.prev[--he],R.prev[he]=K>=nt?K-nt:0;while(--ve);Ve+=nt}if(R.strm.avail_in===0)break;if(ve=v(R.strm,R.window,R.strstart+R.lookahead,Ve),R.lookahead+=ve,R.lookahead+R.insert>=pt)for(tt=R.strstart-R.insert,R.ins_h=R.window[tt],R.ins_h=(R.ins_h<<R.hash_shift^R.window[tt+1])&R.hash_mask;R.insert&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[tt+pt-1])&R.hash_mask,R.prev[tt&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=tt,tt++,R.insert--,!(R.lookahead+R.insert<pt)););}while(R.lookahead<vn&&R.strm.avail_in!==0)}function E(R,he){for(var ve,K;;){if(R.lookahead<vn){if(A(R),R.lookahead<vn&&he===ne)return Ae;if(R.lookahead===0)break}if(ve=0,R.lookahead>=pt&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+pt-1])&R.hash_mask,ve=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),ve!==0&&R.strstart-ve<=R.w_size-vn&&(R.match_length=w(R,ve)),R.match_length>=pt)if(K=F._tr_tally(R,R.strstart-R.match_start,R.match_length-pt),R.lookahead-=R.match_length,R.match_length<=R.max_lazy_match&&R.lookahead>=pt){R.match_length--;do R.strstart++,R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+pt-1])&R.hash_mask,ve=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart;while(--R.match_length!=0);R.strstart++}else R.strstart+=R.match_length,R.match_length=0,R.ins_h=R.window[R.strstart],R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+1])&R.hash_mask;else K=F._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++;if(K&&(o(R,!1),R.strm.avail_out===0))return Ae}return R.insert=R.strstart<pt-1?R.strstart:pt-1,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):R.last_lit&&(o(R,!1),R.strm.avail_out===0)?Ae:Ue}function O(R,he){for(var ve,K,Ve;;){if(R.lookahead<vn){if(A(R),R.lookahead<vn&&he===ne)return Ae;if(R.lookahead===0)break}if(ve=0,R.lookahead>=pt&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+pt-1])&R.hash_mask,ve=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),R.prev_length=R.match_length,R.prev_match=R.match_start,R.match_length=pt-1,ve!==0&&R.prev_length<R.max_lazy_match&&R.strstart-ve<=R.w_size-vn&&(R.match_length=w(R,ve),R.match_length<=5&&(R.strategy===Be||R.match_length===pt&&R.strstart-R.match_start>4096)&&(R.match_length=pt-1)),R.prev_length>=pt&&R.match_length<=R.prev_length){Ve=R.strstart+R.lookahead-pt,K=F._tr_tally(R,R.strstart-1-R.prev_match,R.prev_length-pt),R.lookahead-=R.prev_length-1,R.prev_length-=2;do++R.strstart<=Ve&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+pt-1])&R.hash_mask,ve=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart);while(--R.prev_length!=0);if(R.match_available=0,R.match_length=pt-1,R.strstart++,K&&(o(R,!1),R.strm.avail_out===0))return Ae}else if(R.match_available){if((K=F._tr_tally(R,0,R.window[R.strstart-1]))&&o(R,!1),R.strstart++,R.lookahead--,R.strm.avail_out===0)return Ae}else R.match_available=1,R.strstart++,R.lookahead--}return R.match_available&&(K=F._tr_tally(R,0,R.window[R.strstart-1]),R.match_available=0),R.insert=R.strstart<pt-1?R.strstart:pt-1,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):R.last_lit&&(o(R,!1),R.strm.avail_out===0)?Ae:Ue}function T(R,he){for(var ve,K,Ve,tt,nt=R.window;;){if(R.lookahead<=gn){if(A(R),R.lookahead<=gn&&he===ne)return Ae;if(R.lookahead===0)break}if(R.match_length=0,R.lookahead>=pt&&R.strstart>0&&(Ve=R.strstart-1,(K=nt[Ve])===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve])){tt=R.strstart+gn;do;while(K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&K===nt[++Ve]&&Ve<tt);R.match_length=gn-(tt-Ve),R.match_length>R.lookahead&&(R.match_length=R.lookahead)}if(R.match_length>=pt?(ve=F._tr_tally(R,1,R.match_length-pt),R.lookahead-=R.match_length,R.strstart+=R.match_length,R.match_length=0):(ve=F._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++),ve&&(o(R,!1),R.strm.avail_out===0))return Ae}return R.insert=0,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):R.last_lit&&(o(R,!1),R.strm.avail_out===0)?Ae:Ue}function M(R,he){for(var ve;;){if(R.lookahead===0&&(A(R),R.lookahead===0)){if(he===ne)return Ae;break}if(R.match_length=0,ve=F._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++,ve&&(o(R,!1),R.strm.avail_out===0))return Ae}return R.insert=0,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):R.last_lit&&(o(R,!1),R.strm.avail_out===0)?Ae:Ue}function P(R,he,ve,K,Ve){this.good_length=R,this.max_lazy=he,this.nice_length=ve,this.max_chain=K,this.func=Ve}function x(R){R.window_size=2*R.w_size,f(R.head),R.max_lazy_match=L[R.level].max_lazy,R.good_match=L[R.level].good_length,R.nice_match=L[R.level].nice_length,R.max_chain_length=L[R.level].max_chain,R.strstart=0,R.block_start=0,R.lookahead=0,R.insert=0,R.match_length=R.prev_length=pt-1,R.match_available=0,R.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new U.Buf16(2*Sn),this.dyn_dtree=new U.Buf16(2*(2*Fn+1)),this.bl_tree=new U.Buf16(2*(2*Bn+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new U.Buf16(_r+1),this.heap=new U.Buf16(2*bn+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new U.Buf16(2*bn+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function D(R){var he;return R&&R.state?(R.total_in=R.total_out=0,R.data_type=Le,he=R.state,he.pending=0,he.pending_out=0,he.wrap<0&&(he.wrap=-he.wrap),he.status=he.wrap?wr:we,R.adler=he.wrap===2?0:1,he.last_flush=ne,F._tr_init(he),_e):c(R,et)}function V(R){var he=D(R);return he===_e&&x(R.state),he}function j(R,he,ve,K,Ve,tt){if(!R)return et;var nt=1;if(he===Ie&&(he=6),K<0?(nt=0,K=-K):K>15&&(nt=2,K-=16),Ve<1||Ve>Ct||ve!==Mt||K<8||K>15||he<0||he>9||tt<0||tt>Xe)return c(R,et);K===8&&(K=9);var ot=new I;return R.state=ot,ot.strm=R,ot.wrap=nt,ot.gzhead=null,ot.w_bits=K,ot.w_size=1<<ot.w_bits,ot.w_mask=ot.w_size-1,ot.hash_bits=Ve+7,ot.hash_size=1<<ot.hash_bits,ot.hash_mask=ot.hash_size-1,ot.hash_shift=~~((ot.hash_bits+pt-1)/pt),ot.window=new U.Buf8(2*ot.w_size),ot.head=new U.Buf16(ot.hash_size),ot.prev=new U.Buf16(ot.w_size),ot.lit_bufsize=1<<Ve+6,ot.pending_buf_size=4*ot.lit_bufsize,ot.pending_buf=new U.Buf8(ot.pending_buf_size),ot.d_buf=1*ot.lit_bufsize,ot.l_buf=3*ot.lit_bufsize,ot.level=he,ot.strategy=tt,ot.method=ve,V(R)}var L,U=h("../utils/common"),F=h("./trees"),W=h("./adler32"),J=h("./crc32"),$=h("./messages"),ne=0,ae=1,te=3,ie=4,Se=5,_e=0,Ne=1,et=-2,Nt=-3,oe=-5,Ie=-1,Be=1,$e=2,ke=3,Xe=4,ge=0,Le=2,Mt=8,Ct=9,Ut=15,$t=8,bn=286,Fn=30,Bn=19,Sn=2*bn+1,_r=15,pt=3,gn=258,vn=gn+pt+1,Nr=32,wr=42,Yr=69,ir=73,Dn=91,H=103,we=113,Me=666,Ae=1,Ue=2,ze=3,ft=4,Pt=3;L=[new P(0,0,0,0,function(R,he){var ve=65535;for(ve>R.pending_buf_size-5&&(ve=R.pending_buf_size-5);;){if(R.lookahead<=1){if(A(R),R.lookahead===0&&he===ne)return Ae;if(R.lookahead===0)break}R.strstart+=R.lookahead,R.lookahead=0;var K=R.block_start+ve;if((R.strstart===0||R.strstart>=K)&&(R.lookahead=R.strstart-K,R.strstart=K,o(R,!1),R.strm.avail_out===0)||R.strstart-R.block_start>=R.w_size-vn&&(o(R,!1),R.strm.avail_out===0))return Ae}return R.insert=0,he===ie?(o(R,!0),R.strm.avail_out===0?ze:ft):(R.strstart>R.block_start&&(o(R,!1),R.strm.avail_out),Ae)}),new P(4,4,8,4,E),new P(4,5,16,8,E),new P(4,6,32,32,E),new P(4,4,16,16,O),new P(8,16,32,32,O),new P(8,16,128,128,O),new P(8,32,128,256,O),new P(32,128,258,1024,O),new P(32,258,258,4096,O)],b.deflateInit=function(R,he){return j(R,he,Mt,Ut,$t,ge)},b.deflateInit2=j,b.deflateReset=V,b.deflateResetKeep=D,b.deflateSetHeader=function(R,he){return R&&R.state?R.state.wrap!==2?et:(R.state.gzhead=he,_e):et},b.deflate=function(R,he){var ve,K,Ve,tt;if(!R||!R.state||he>Se||he<0)return R?c(R,et):et;if(K=R.state,!R.output||!R.input&&R.avail_in!==0||K.status===Me&&he!==ie)return c(R,R.avail_out===0?oe:et);if(K.strm=R,ve=K.last_flush,K.last_flush=he,K.status===wr)if(K.wrap===2)R.adler=0,a(K,31),a(K,139),a(K,8),K.gzhead?(a(K,(K.gzhead.text?1:0)+(K.gzhead.hcrc?2:0)+(K.gzhead.extra?4:0)+(K.gzhead.name?8:0)+(K.gzhead.comment?16:0)),a(K,255&K.gzhead.time),a(K,K.gzhead.time>>8&255),a(K,K.gzhead.time>>16&255),a(K,K.gzhead.time>>24&255),a(K,K.level===9?2:K.strategy>=$e||K.level<2?4:0),a(K,255&K.gzhead.os),K.gzhead.extra&&K.gzhead.extra.length&&(a(K,255&K.gzhead.extra.length),a(K,K.gzhead.extra.length>>8&255)),K.gzhead.hcrc&&(R.adler=J(R.adler,K.pending_buf,K.pending,0)),K.gzindex=0,K.status=Yr):(a(K,0),a(K,0),a(K,0),a(K,0),a(K,0),a(K,K.level===9?2:K.strategy>=$e||K.level<2?4:0),a(K,Pt),K.status=we);else{var nt=Mt+(K.w_bits-8<<4)<<8;nt|=(K.strategy>=$e||K.level<2?0:K.level<6?1:K.level===6?2:3)<<6,K.strstart!==0&&(nt|=Nr),nt+=31-nt%31,K.status=we,m(K,nt),K.strstart!==0&&(m(K,R.adler>>>16),m(K,65535&R.adler)),R.adler=1}if(K.status===Yr)if(K.gzhead.extra){for(Ve=K.pending;K.gzindex<(65535&K.gzhead.extra.length)&&(K.pending!==K.pending_buf_size||(K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),s(R),Ve=K.pending,K.pending!==K.pending_buf_size));)a(K,255&K.gzhead.extra[K.gzindex]),K.gzindex++;K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),K.gzindex===K.gzhead.extra.length&&(K.gzindex=0,K.status=ir)}else K.status=ir;if(K.status===ir)if(K.gzhead.name){Ve=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),s(R),Ve=K.pending,K.pending===K.pending_buf_size)){tt=1;break}tt=K.gzindex<K.gzhead.name.length?255&K.gzhead.name.charCodeAt(K.gzindex++):0,a(K,tt)}while(tt!==0);K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),tt===0&&(K.gzindex=0,K.status=Dn)}else K.status=Dn;if(K.status===Dn)if(K.gzhead.comment){Ve=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),s(R),Ve=K.pending,K.pending===K.pending_buf_size)){tt=1;break}tt=K.gzindex<K.gzhead.comment.length?255&K.gzhead.comment.charCodeAt(K.gzindex++):0,a(K,tt)}while(tt!==0);K.gzhead.hcrc&&K.pending>Ve&&(R.adler=J(R.adler,K.pending_buf,K.pending-Ve,Ve)),tt===0&&(K.status=H)}else K.status=H;if(K.status===H&&(K.gzhead.hcrc?(K.pending+2>K.pending_buf_size&&s(R),K.pending+2<=K.pending_buf_size&&(a(K,255&R.adler),a(K,R.adler>>8&255),R.adler=0,K.status=we)):K.status=we),K.pending!==0){if(s(R),R.avail_out===0)return K.last_flush=-1,_e}else if(R.avail_in===0&&u(he)<=u(ve)&&he!==ie)return c(R,oe);if(K.status===Me&&R.avail_in!==0)return c(R,oe);if(R.avail_in!==0||K.lookahead!==0||he!==ne&&K.status!==Me){var ot=K.strategy===$e?M(K,he):K.strategy===ke?T(K,he):L[K.level].func(K,he);if(ot!==ze&&ot!==ft||(K.status=Me),ot===Ae||ot===ze)return R.avail_out===0&&(K.last_flush=-1),_e;if(ot===Ue&&(he===ae?F._tr_align(K):he!==Se&&(F._tr_stored_block(K,0,0,!1),he===te&&(f(K.head),K.lookahead===0&&(K.strstart=0,K.block_start=0,K.insert=0))),s(R),R.avail_out===0))return K.last_flush=-1,_e}return he!==ie?_e:K.wrap<=0?Ne:(K.wrap===2?(a(K,255&R.adler),a(K,R.adler>>8&255),a(K,R.adler>>16&255),a(K,R.adler>>24&255),a(K,255&R.total_in),a(K,R.total_in>>8&255),a(K,R.total_in>>16&255),a(K,R.total_in>>24&255)):(m(K,R.adler>>>16),m(K,65535&R.adler)),s(R),K.wrap>0&&(K.wrap=-K.wrap),K.pending!==0?_e:Ne)},b.deflateEnd=function(R){var he;return R&&R.state?(he=R.state.status)!==wr&&he!==Yr&&he!==ir&&he!==Dn&&he!==H&&he!==we&&he!==Me?c(R,et):(R.state=null,he===we?c(R,Nt):_e):et},b.deflateSetDictionary=function(R,he){var ve,K,Ve,tt,nt,ot,yn,yt,Jr=he.length;if(!R||!R.state||(ve=R.state,(tt=ve.wrap)===2||tt===1&&ve.status!==wr||ve.lookahead))return et;for(tt===1&&(R.adler=W(R.adler,he,Jr,0)),ve.wrap=0,Jr>=ve.w_size&&(tt===0&&(f(ve.head),ve.strstart=0,ve.block_start=0,ve.insert=0),yt=new U.Buf8(ve.w_size),U.arraySet(yt,he,Jr-ve.w_size,ve.w_size,0),he=yt,Jr=ve.w_size),nt=R.avail_in,ot=R.next_in,yn=R.input,R.avail_in=Jr,R.next_in=0,R.input=he,A(ve);ve.lookahead>=pt;){K=ve.strstart,Ve=ve.lookahead-(pt-1);do ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[K+pt-1])&ve.hash_mask,ve.prev[K&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=K,K++;while(--Ve);ve.strstart=K,ve.lookahead=pt-1,A(ve)}return ve.strstart+=ve.lookahead,ve.block_start=ve.strstart,ve.insert=ve.lookahead,ve.lookahead=0,ve.match_length=ve.prev_length=pt-1,ve.match_available=0,R.next_in=ot,R.input=yn,R.avail_in=nt,ve.wrap=tt,_e},b.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(h,y,b){y.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(h,y,b){function c(H){for(var we=H.length;--we>=0;)H[we]=0}function u(H,we,Me,Ae,Ue){this.static_tree=H,this.extra_bits=we,this.extra_base=Me,this.elems=Ae,this.max_length=Ue,this.has_stree=H&&H.length}function f(H,we){this.dyn_tree=H,this.max_code=0,this.stat_desc=we}function s(H){return H<256?pt[H]:pt[256+(H>>>7)]}function o(H,we){H.pending_buf[H.pending++]=255&we,H.pending_buf[H.pending++]=we>>>8&255}function a(H,we,Me){H.bi_valid>Xe-Me?(H.bi_buf|=we<<H.bi_valid&65535,o(H,H.bi_buf),H.bi_buf=we>>Xe-H.bi_valid,H.bi_valid+=Me-Xe):(H.bi_buf|=we<<H.bi_valid&65535,H.bi_valid+=Me)}function m(H,we,Me){a(H,Me[2*we],Me[2*we+1])}function v(H,we){var Me=0;do Me|=1&H,H>>>=1,Me<<=1;while(--we>0);return Me>>>1}function w(H){H.bi_valid===16?(o(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):H.bi_valid>=8&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}function A(H,we){var Me,Ae,Ue,ze,ft,Pt,R=we.dyn_tree,he=we.max_code,ve=we.stat_desc.static_tree,K=we.stat_desc.has_stree,Ve=we.stat_desc.extra_bits,tt=we.stat_desc.extra_base,nt=we.stat_desc.max_length,ot=0;for(ze=0;ze<=ke;ze++)H.bl_count[ze]=0;for(R[2*H.heap[H.heap_max]+1]=0,Me=H.heap_max+1;Me<$e;Me++)(ze=R[2*R[2*(Ae=H.heap[Me])+1]+1]+1)>nt&&(ze=nt,ot++),R[2*Ae+1]=ze,Ae>he||(H.bl_count[ze]++,ft=0,Ae>=tt&&(ft=Ve[Ae-tt]),Pt=R[2*Ae],H.opt_len+=Pt*(ze+ft),K&&(H.static_len+=Pt*(ve[2*Ae+1]+ft)));if(ot!==0){do{for(ze=nt-1;H.bl_count[ze]===0;)ze--;H.bl_count[ze]--,H.bl_count[ze+1]+=2,H.bl_count[nt]--,ot-=2}while(ot>0);for(ze=nt;ze!==0;ze--)for(Ae=H.bl_count[ze];Ae!==0;)(Ue=H.heap[--Me])>he||(R[2*Ue+1]!==ze&&(H.opt_len+=(ze-R[2*Ue+1])*R[2*Ue],R[2*Ue+1]=ze),Ae--)}}function E(H,we,Me){var Ae,Ue,ze=new Array(ke+1),ft=0;for(Ae=1;Ae<=ke;Ae++)ze[Ae]=ft=ft+Me[Ae-1]<<1;for(Ue=0;Ue<=we;Ue++){var Pt=H[2*Ue+1];Pt!==0&&(H[2*Ue]=v(ze[Pt]++,Pt))}}function O(){var H,we,Me,Ae,Ue,ze=new Array(ke+1);for(Me=0,Ae=0;Ae<et-1;Ae++)for(vn[Ae]=Me,H=0;H<1<<$t[Ae];H++)gn[Me++]=Ae;for(gn[Me-1]=Ae,Ue=0,Ae=0;Ae<16;Ae++)for(Nr[Ae]=Ue,H=0;H<1<<bn[Ae];H++)pt[Ue++]=Ae;for(Ue>>=7;Ae<Ie;Ae++)for(Nr[Ae]=Ue<<7,H=0;H<1<<bn[Ae]-7;H++)pt[256+Ue++]=Ae;for(we=0;we<=ke;we++)ze[we]=0;for(H=0;H<=143;)Sn[2*H+1]=8,H++,ze[8]++;for(;H<=255;)Sn[2*H+1]=9,H++,ze[9]++;for(;H<=279;)Sn[2*H+1]=7,H++,ze[7]++;for(;H<=287;)Sn[2*H+1]=8,H++,ze[8]++;for(E(Sn,oe+1,ze),H=0;H<Ie;H++)_r[2*H+1]=5,_r[2*H]=v(H,5);wr=new u(Sn,$t,Nt+1,oe,ke),Yr=new u(_r,bn,0,Ie,ke),ir=new u(new Array(0),Fn,0,Be,ge)}function T(H){var we;for(we=0;we<oe;we++)H.dyn_ltree[2*we]=0;for(we=0;we<Ie;we++)H.dyn_dtree[2*we]=0;for(we=0;we<Be;we++)H.bl_tree[2*we]=0;H.dyn_ltree[2*Le]=1,H.opt_len=H.static_len=0,H.last_lit=H.matches=0}function M(H){H.bi_valid>8?o(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function P(H,we,Me,Ae){M(H),o(H,Me),o(H,~Me),$.arraySet(H.pending_buf,H.window,we,Me,H.pending),H.pending+=Me}function x(H,we,Me,Ae){var Ue=2*we,ze=2*Me;return H[Ue]<H[ze]||H[Ue]===H[ze]&&Ae[we]<=Ae[Me]}function I(H,we,Me){for(var Ae=H.heap[Me],Ue=Me<<1;Ue<=H.heap_len&&(Ue<H.heap_len&&x(we,H.heap[Ue+1],H.heap[Ue],H.depth)&&Ue++,!x(we,Ae,H.heap[Ue],H.depth));)H.heap[Me]=H.heap[Ue],Me=Ue,Ue<<=1;H.heap[Me]=Ae}function D(H,we,Me){var Ae,Ue,ze,ft,Pt=0;if(H.last_lit!==0)do Ae=H.pending_buf[H.d_buf+2*Pt]<<8|H.pending_buf[H.d_buf+2*Pt+1],Ue=H.pending_buf[H.l_buf+Pt],Pt++,Ae===0?m(H,Ue,we):(m(H,(ze=gn[Ue])+Nt+1,we),(ft=$t[ze])!==0&&a(H,Ue-=vn[ze],ft),m(H,ze=s(--Ae),Me),(ft=bn[ze])!==0&&a(H,Ae-=Nr[ze],ft));while(Pt<H.last_lit);m(H,Le,we)}function V(H,we){var Me,Ae,Ue,ze=we.dyn_tree,ft=we.stat_desc.static_tree,Pt=we.stat_desc.has_stree,R=we.stat_desc.elems,he=-1;for(H.heap_len=0,H.heap_max=$e,Me=0;Me<R;Me++)ze[2*Me]!==0?(H.heap[++H.heap_len]=he=Me,H.depth[Me]=0):ze[2*Me+1]=0;for(;H.heap_len<2;)ze[2*(Ue=H.heap[++H.heap_len]=he<2?++he:0)]=1,H.depth[Ue]=0,H.opt_len--,Pt&&(H.static_len-=ft[2*Ue+1]);for(we.max_code=he,Me=H.heap_len>>1;Me>=1;Me--)I(H,ze,Me);Ue=R;do Me=H.heap[1],H.heap[1]=H.heap[H.heap_len--],I(H,ze,1),Ae=H.heap[1],H.heap[--H.heap_max]=Me,H.heap[--H.heap_max]=Ae,ze[2*Ue]=ze[2*Me]+ze[2*Ae],H.depth[Ue]=(H.depth[Me]>=H.depth[Ae]?H.depth[Me]:H.depth[Ae])+1,ze[2*Me+1]=ze[2*Ae+1]=Ue,H.heap[1]=Ue++,I(H,ze,1);while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],A(H,we),E(ze,he,H.bl_count)}function j(H,we,Me){var Ae,Ue,ze=-1,ft=we[1],Pt=0,R=7,he=4;for(ft===0&&(R=138,he=3),we[2*(Me+1)+1]=65535,Ae=0;Ae<=Me;Ae++)Ue=ft,ft=we[2*(Ae+1)+1],++Pt<R&&Ue===ft||(Pt<he?H.bl_tree[2*Ue]+=Pt:Ue!==0?(Ue!==ze&&H.bl_tree[2*Ue]++,H.bl_tree[2*Mt]++):Pt<=10?H.bl_tree[2*Ct]++:H.bl_tree[2*Ut]++,Pt=0,ze=Ue,ft===0?(R=138,he=3):Ue===ft?(R=6,he=3):(R=7,he=4))}function L(H,we,Me){var Ae,Ue,ze=-1,ft=we[1],Pt=0,R=7,he=4;for(ft===0&&(R=138,he=3),Ae=0;Ae<=Me;Ae++)if(Ue=ft,ft=we[2*(Ae+1)+1],!(++Pt<R&&Ue===ft)){if(Pt<he)do m(H,Ue,H.bl_tree);while(--Pt!=0);else Ue!==0?(Ue!==ze&&(m(H,Ue,H.bl_tree),Pt--),m(H,Mt,H.bl_tree),a(H,Pt-3,2)):Pt<=10?(m(H,Ct,H.bl_tree),a(H,Pt-3,3)):(m(H,Ut,H.bl_tree),a(H,Pt-11,7));Pt=0,ze=Ue,ft===0?(R=138,he=3):Ue===ft?(R=6,he=3):(R=7,he=4)}}function U(H){var we;for(j(H,H.dyn_ltree,H.l_desc.max_code),j(H,H.dyn_dtree,H.d_desc.max_code),V(H,H.bl_desc),we=Be-1;we>=3&&H.bl_tree[2*Bn[we]+1]===0;we--);return H.opt_len+=3*(we+1)+5+5+4,we}function F(H,we,Me,Ae){var Ue;for(a(H,we-257,5),a(H,Me-1,5),a(H,Ae-4,4),Ue=0;Ue<Ae;Ue++)a(H,H.bl_tree[2*Bn[Ue]+1],3);L(H,H.dyn_ltree,we-1),L(H,H.dyn_dtree,Me-1)}function W(H){var we,Me=4093624447;for(we=0;we<=31;we++,Me>>>=1)if(1&Me&&H.dyn_ltree[2*we]!==0)return ae;if(H.dyn_ltree[18]!==0||H.dyn_ltree[20]!==0||H.dyn_ltree[26]!==0)return te;for(we=32;we<Nt;we++)if(H.dyn_ltree[2*we]!==0)return te;return ae}function J(H,we,Me,Ae){a(H,(Se<<1)+(Ae?1:0),3),P(H,we,Me)}var $=h("../utils/common"),ne=4,ae=0,te=1,ie=2,Se=0,_e=1,Ne=2,et=29,Nt=256,oe=Nt+1+et,Ie=30,Be=19,$e=2*oe+1,ke=15,Xe=16,ge=7,Le=256,Mt=16,Ct=17,Ut=18,$t=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],bn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Fn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Bn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Sn=new Array(2*(oe+2));c(Sn);var _r=new Array(2*Ie);c(_r);var pt=new Array(512);c(pt);var gn=new Array(256);c(gn);var vn=new Array(et);c(vn);var Nr=new Array(Ie);c(Nr);var wr,Yr,ir,Dn=!1;b._tr_init=function(H){Dn||(O(),Dn=!0),H.l_desc=new f(H.dyn_ltree,wr),H.d_desc=new f(H.dyn_dtree,Yr),H.bl_desc=new f(H.bl_tree,ir),H.bi_buf=0,H.bi_valid=0,T(H)},b._tr_stored_block=J,b._tr_flush_block=function(H,we,Me,Ae){var Ue,ze,ft=0;H.level>0?(H.strm.data_type===ie&&(H.strm.data_type=W(H)),V(H,H.l_desc),V(H,H.d_desc),ft=U(H),Ue=H.opt_len+3+7>>>3,(ze=H.static_len+3+7>>>3)<=Ue&&(Ue=ze)):Ue=ze=Me+5,Me+4<=Ue&&we!==-1?J(H,we,Me,Ae):H.strategy===ne||ze===Ue?(a(H,(_e<<1)+(Ae?1:0),3),D(H,Sn,_r)):(a(H,(Ne<<1)+(Ae?1:0),3),F(H,H.l_desc.max_code+1,H.d_desc.max_code+1,ft+1),D(H,H.dyn_ltree,H.dyn_dtree)),T(H),Ae&&M(H)},b._tr_tally=function(H,we,Me){return H.pending_buf[H.d_buf+2*H.last_lit]=we>>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&we,H.pending_buf[H.l_buf+H.last_lit]=255&Me,H.last_lit++,we===0?H.dyn_ltree[2*Me]++:(H.matches++,we--,H.dyn_ltree[2*(gn[Me]+Nt+1)]++,H.dyn_dtree[2*s(we)]++),H.last_lit===H.lit_bufsize-1},b._tr_align=function(H){a(H,_e<<1,3),m(H,Le,Sn),w(H)}},{"../utils/common":1}],8:[function(h,y,b){y.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(h,y,b){function c(T){if(!(this instanceof c))return new c(T);this.options=s.assign({level:A,method:O,chunkSize:16384,windowBits:15,memLevel:8,strategy:E,to:""},T||{});var M=this.options;M.raw&&M.windowBits>0?M.windowBits=-M.windowBits:M.gzip&&M.windowBits>0&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var P=f.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(P!==w)throw new Error(a[P]);if(M.header&&f.deflateSetHeader(this.strm,M.header),M.dictionary){var x;if(x=typeof M.dictionary=="string"?o.string2buf(M.dictionary):v.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,(P=f.deflateSetDictionary(this.strm,x))!==w)throw new Error(a[P]);this._dict_set=!0}}function u(T,M){var P=new c(M);if(P.push(T,!0),P.err)throw P.msg||a[P.err];return P.result}var f=h("./zlib/deflate"),s=h("./utils/common"),o=h("./utils/strings"),a=h("./zlib/messages"),m=h("./zlib/zstream"),v=Object.prototype.toString,w=0,A=-1,E=0,O=8;c.prototype.push=function(T,M){var P,x,I=this.strm,D=this.options.chunkSize;if(this.ended)return!1;x=M===~~M?M:M===!0?4:0,typeof T=="string"?I.input=o.string2buf(T):v.call(T)==="[object ArrayBuffer]"?I.input=new Uint8Array(T):I.input=T,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new s.Buf8(D),I.next_out=0,I.avail_out=D),(P=f.deflate(I,x))!==1&&P!==w)return this.onEnd(P),this.ended=!0,!1;I.avail_out!==0&&(I.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(s.shrinkBuf(I.output,I.next_out))):this.onData(s.shrinkBuf(I.output,I.next_out)))}while((I.avail_in>0||I.avail_out===0)&&P!==1);return x===4?(P=f.deflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===w):x!==2||(this.onEnd(w),I.avail_out=0,!0)},c.prototype.onData=function(T){this.chunks.push(T)},c.prototype.onEnd=function(T){T===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg},b.Deflate=c,b.deflate=u,b.deflateRaw=function(T,M){return M=M||{},M.raw=!0,u(T,M)},b.gzip=function(T,M){return M=M||{},M.gzip=!0,u(T,M)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")});var ee;(function(h){(function(y){class b{constructor(){this._isIphoneOrIPad=!1,(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))&&(this._isIphoneOrIPad=!0),this.initUAParser()}get userAgentData(){return this._userAgentData}get deviceType(){return this._deviceType||(y.Util.isMobile?this._deviceType=this.mobileType||this.desktopType||b.UNKNOWN_DEVICE_TYPE:this._deviceType=this.desktopType||this.mobileType||b.UNKNOWN_DEVICE_TYPE),this._deviceType}get isIphoneOrIPad(){return this._isIphoneOrIPad}get browserName(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.name?this._userAgentData.browser.name.trim():""}get browserVersion(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.version?this._userAgentData.browser.version.trim():""}get browserMajor(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.major?this._userAgentData.browser.major.trim():""}get browserType(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.type?this._userAgentData.browser.type.trim():""}get osName(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.name?this._userAgentData.os.name.trim():""}get osVersion(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.version?this._userAgentData.os.version.trim():""}get deviceCategory(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.type?this._userAgentData.device.type.trim():""}get engineName(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.name?this._userAgentData.engine.name.trim():""}get engineVersion(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.version?this._userAgentData.engine.version.trim():""}get cpuArchitecture(){return this._userAgentData&&this._userAgentData.cpu&&this._userAgentData.cpu.architecture?this._userAgentData.cpu.architecture.trim():""}get deviceModel(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.model?this._userAgentData.device.model.trim():""}get deviceVendor(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.vendor?this._userAgentData.device.vendor.trim():""}get desktopType(){let u=this.browserName;this.browserVersion&&(u=u+`(${this.browserVersion})`);let f=this.osName;this.osVersion&&(f=f+`(${this.osVersion})`);const s=u&&f?`${u}-${f}`:u||f;return s?s.trim():""}get mobileType(){const u=this.deviceModel,f=this.deviceVendor,s=u&&f?`${u} ${f}`:u||f;return s?s.trim():""}initUAParser(){try{const u=new h.UAParser;u.setUA(navigator.userAgent),this._userAgentData=u.getResult()}catch(u){y.Logger.warn("UAParser failure",u)}}}b.UNKNOWN_DEVICE_TYPE="unknown",y.BrowserInfo=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get CLIENT_VERSION(){return"5.6.9w"}static get SALT(){return"ST8irbd3bB"}static get TAB_UUID_KEY(){return"pos_tid"}static get OPS_KEY(){return"pos_ops"}static get DEVICE_ID_KEY(){return"SecuredTouchDeviceId"}static get DEVICE_ID_CREATED_AT(){return"pos_dca"}static get LAST_DEVICE_KEY_RESYNC(){return"DeviceRefreshDate"}static get CAPTURED_KEYBOARD_INTERACTIONS(){return"pos_cki"}static get CAPTURED_MOUSE_INTERACTIONS(){return"pos_cmi"}static get CAPTURED_GESTURES(){return"pos_cg"}static get CAPTURED_INDIRECT(){return"pos_cie"}static get CAPTURED_TAGS(){return"pos_ct"}static get CAPTURED_MOUSE_INTERACTIONS_SUMMARY(){return"pos_mdp"}static get KEYBOARD_INTERACTIONS_COUNT(){return"pos_kic"}static get MOUSE_INTERACTIONS_COUNT(){return"pos_mic"}static get GESTURES_COUNT(){return"pos_gc"}static get EVENT_COUNTERS(){return"pos_ec"}static get PINGID_AGENT_DEFAULT_PORT(){return 9400}static get PINGID_AGENT_DEFAULT_TIMEOUT(){return 1e3}static get MOUSE_EVENT_COUNTERS(){return"pos_mec"}static get KEYBOARD_EVENT_COUNTERS(){return"pos_kec"}static get TOUCH_EVENT_COUNTERS(){return"pos_tec"}static get INDIRECT_EVENT_COUNTERS(){return"pos_iec"}static get GeoDataKey(){return"pos_geo"}}y.Constants=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(u="ECDSA",f=["sign","verify"],s="SHA-256"){if(this.signingKeyType=u,this.keyUsage=f,this.algorithm=s,this._crypto=window.crypto||window.msCrypto,!this._crypto||!this._crypto.subtle)throw new Error("Cryptography API not supported in this browser")}hexDecode(u){let f="";for(let s=0;s<u.length;s+=2)f+=String.fromCharCode(parseInt(u.substr(s,2),16));return f}async generateKeys(){return this._crypto.subtle.generateKey({name:this.signingKeyType,namedCurve:"P-256"},!1,this.keyUsage)}async exportPublicKey(u){const f=await this._crypto.subtle.exportKey("spki",u.publicKey),s=y.Util.ab2str(f),o=btoa(s),a=this.hexDecode("2d2d2d2d2d424547494e205055424c4943204b45592d2d2d2d2d0a"),m=this.hexDecode("0a2d2d2d2d2d454e44205055424c4943204b45592d2d2d2d2d"),v=`${a}${o}${m}`;return y.Logger.debug("Exported base64 pub key: ",v),v}async exportPublicKeyJwk(u){return await window.crypto.subtle.exportKey("jwk",u.publicKey)}async exportPrivateKey(u){const f=await this._crypto.subtle.exportKey("pkcs8",u.privateKey),s=y.Util.ab2str(f),o=btoa(s),a=this.hexDecode("2d2d2d2d2d424547494e2050524956415445204b45592d2d2d2d2d0a"),m=this.hexDecode("0a2d2d2d2d2d454e442050524956415445204b45592d2d2d2d2d"),v=`${a}${o}${m}`;return y.Logger.debug("Exported base64 pem:",v),v}async signJWT(u,f,s=0,o,a){const m={alg:"ES256",typ:"JWT",jwk:await this.exportPublicKeyJwk(f),kid:a},v={deviceAttributesSerialized:u,iat:Math.floor(o/1e3)};if(!f.privateKey)throw new Error("Require key");if(m.alg!=="ES256"&&m.typ!=="JWT")throw new Error("jwt-encode only support the ES256 algorithm and the JWT type of hash");const w=y.Util.encode(m),A=y.Util.encode(v),E=`${w}.${A}`,O=y.Util.string2buf(E),T=await this._crypto.subtle.sign({name:this.signingKeyType,hash:this.algorithm},f.privateKey,O),M=y.Util.base64url(btoa(y.Util.ab2str(T)));return y.Logger.debug("Signed JWT: ",`${E}.${M}`),`${E}.${M}`}async verifyJwtToken(u,f){const[s,o,a]=u.split("."),m=y.Util.parseJwt(s);if(m.alg!=="ES256"&&m.typ!=="JWT")throw new Error("JWT header supports only ES256 algorithm and the JWT type of hash");y.Util.parseJwt(o);const v=Uint8Array.from(atob(a.replace(/-/g,"+").replace(/_/g,"/")),A=>A.charCodeAt(0)),w=y.Util.string2buf(`${s}.${o}`);return await this._crypto.subtle.verify({name:this.signingKeyType,hash:this.algorithm},f,v,w)}}y.CryptoOperator=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get isLogEnabled(){return this._isLogEnabled||window["enable-logs-pingOneSignals"]}static set isLogEnabled(u){this._isLogEnabled=u}static debug(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.debug?console.debug(u,f):console.log(u,f):console.debug?console.debug(u):console.log(u))}static error(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.error(u,f):console.error(u))}static warn(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.warn(u,f):console.warn(u))}static info(u,...f){u=`${b.TAG} ${u}`,b.isLogEnabled&&(f&&f.length>0?console.info(u,f):console.info(u))}}b.TAG="[SignalsSDK]",y.Logger=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get INITIALIZATION_ERROR(){return"INITIALIZATION_ERROR"}static get UNEXPECTED_ERROR(){return"UNEXPECTED_ERROR"}}y.POErrorCodes=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));const e={115:"115",2345:"2345",360:"360",ALIPAY:"Alipay",AMAYA:"Amaya",ANDROID:"Android Browser",ARORA:"Arora",AVANT:"Avant",AVAST:"Avast Secure Browser",AVG:"AVG Secure Browser",BAIDU:"Baidu Browser",BASILISK:"Basilisk",BLAZER:"Blazer",BOLT:"Bolt",BOWSER:"Bowser",BRAVE:"Brave",CAMINO:"Camino",CHIMERA:"Chimera",CHROME:"Chrome",CHROME_HEADLESS:"Chrome Headless",CHROME_MOBILE:"Mobile Chrome",CHROME_WEBVIEW:"Chrome WebView",CHROMIUM:"Chromium",COBALT:"Cobalt",COC_COC:"Coc Coc",CONKEROR:"Conkeror",DAUM:"Daum",DILLO:"Dillo",DOLPHIN:"Dolphin",DORIS:"Doris",DRAGON:"Dragon",DUCKDUCKGO:"DuckDuckGo",EDGE:"Edge",EPIPHANY:"Epiphany",FACEBOOK:"Facebook",FALKON:"Falkon",FIREBIRD:"Firebird",FIREFOX:"Firefox",FIREFOX_FOCUS:"Firefox Focus",FIREFOX_MOBILE:"Mobile Firefox",FIREFOX_REALITY:"Firefox Reality",FENNEC:"Fennec",FLOCK:"Flock",FLOW:"Flow",GO:"GoBrowser",GOOGLE_SEARCH:"GSA",HELIO:"Helio",HEYTAP:"HeyTap",HONOR:"Honor",HUAWEI:"Huawei Browser",ICAB:"iCab",ICE:"ICE Browser",ICEAPE:"IceApe",ICECAT:"IceCat",ICEDRAGON:"IceDragon",ICEWEASEL:"IceWeasel",IE:"IE",INSTAGRAM:"Instagram",IRIDIUM:"Iridium",IRON:"Iron",JASMINE:"Jasmine",KONQUEROR:"Konqueror",KAKAO:"KakaoTalk",KHTML:"KHTML",K_MELEON:"K-Meleon",KLAR:"Klar",KLARNA:"Klarna",KINDLE:"Kindle",LENOVO:"Smart Lenovo Browser",LADYBIRD:"Ladybird",LIBREWOLF:"LibreWolf",LIEBAO:"LBBROWSER",LINE:"Line",LINKEDIN:"LinkedIn",LINKS:"Links",LUNASCAPE:"Lunascape",LYNX:"Lynx",MAEMO:"Maemo Browser",MAXTHON:"Maxthon",MIDORI:"Midori",MINIMO:"Minimo",MIUI:"MIUI Browser",MOZILLA:"Mozilla",MOSAIC:"Mosaic",NAVER:"Naver",NETFRONT:"NetFront",NETSCAPE:"Netscape",NETSURF:"Netsurf",NOKIA:"Nokia Browser",OBIGO:"Obigo",OCULUS:"Oculus Browser",OMNIWEB:"OmniWeb",OPERA:"Opera",OPERA_COAST:"Opera Coast",OPERA_GX:"Opera GX",OPERA_MINI:"Opera Mini",OPERA_MOBI:"Opera Mobi",OPERA_TABLET:"Opera Tablet",OPERA_TOUCH:"Opera Touch",OVI:"OviBrowser",PALEMOON:"PaleMoon",PHANTOMJS:"PhantomJS",PHOENIX:"Phoenix",PICOBROWSER:"Pico Browser",POLARIS:"Polaris",PUFFIN:"Puffin",QQ:"QQBrowser",QQ_LITE:"QQBrowserLite",QUARK:"Quark",QUPZILLA:"QupZilla",REKONQ:"rekonq",ROCKMELT:"Rockmelt",SAFARI:"Safari",SAFARI_MOBILE:"Mobile Safari",SAILFISH:"Sailfish Browser",SAMSUNG:"Samsung Internet",SEAMONKEY:"SeaMonkey",SILK:"Silk",SKYFIRE:"Skyfire",SLEIPNIR:"Sleipnir",SLIMBOAT:"SlimBoat",SLIMBROWSER:"SlimBrowser",SLIMJET:"Slimjet",SNAPCHAT:"Snapchat",SOGOU_EXPLORER:"Sogou Explorer",SOGOU_MOBILE:"Sogou Mobile",SWIFTFOX:"Swiftfox",TESLA:"Tesla",TIKTOK:"TikTok",TIZEN:"Tizen Browser",TWITTER:"Twitter",UC:"UCBrowser",UP:"UP.Browser",VIVALDI:"Vivaldi",VIVO:"Vivo Browser",W3M:"w3m",WATERFOX:"Waterfox",WEBKIT:"WebKit",WECHAT:"WeChat",WEIBO:"Weibo",WHALE:"Whale",WOLVIC:"Wolvic",YANDEX:"Yandex"},t={CRAWLER:"crawler",CLI:"cli",EMAIL:"email",FETCHER:"fetcher",INAPP:"inapp",MEDIAPLAYER:"mediaplayer",LIBRARY:"library"},n={"68K":"68k",ARM:"arm",ARM_64:"arm64",ARM_HF:"armhf",AVR:"avr",AVR_32:"avr32",IA64:"ia64",IRIX:"irix",IRIX_64:"irix64",MIPS:"mips",MIPS_64:"mips64",PA_RISC:"pa-risc",PPC:"ppc",SPARC:"sparc",SPARC_64:"sparc64",X86:"ia32",X86_64:"amd64"},r={CONSOLE:"console",DESKTOP:"desktop",EMBEDDED:"embedded",MOBILE:"mobile",SMARTTV:"smarttv",TABLET:"tablet",WEARABLE:"wearable",XR:"xr"},i={ACER:"Acer",ADVAN:"Advan",ALCATEL:"Alcatel",APPLE:"Apple",AMAZON:"Amazon",ARCHOS:"Archos",ASUS:"ASUS",ATT:"AT&T",BENQ:"BenQ",BLACKBERRY:"BlackBerry",CAT:"Cat",DELL:"Dell",ENERGIZER:"Energizer",ESSENTIAL:"Essential",FACEBOOK:"Facebook",FAIRPHONE:"Fairphone",GEEKSPHONE:"GeeksPhone",GENERIC:"Generic",GOOGLE:"Google",HMD:"HMD",HP:"HP",HTC:"HTC",HUAWEI:"Huawei",IMO:"IMO",INFINIX:"Infinix",ITEL:"itel",JOLLA:"Jolla",KOBO:"Kobo",LENOVO:"Lenovo",LG:"LG",MEIZU:"Meizu",MICROMAX:"Micromax",MICROSOFT:"Microsoft",MOTOROLA:"Motorola",NEXIAN:"Nexian",NINTENDO:"Nintendo",NOKIA:"Nokia",NOTHING:"Nothing",NVIDIA:"Nvidia",ONEPLUS:"OnePlus",OPPO:"OPPO",OUYA:"Ouya",PALM:"Palm",PANASONIC:"Panasonic",PEBBLE:"Pebble",PICO:"Pico",POLYTRON:"Polytron",REALME:"Realme",RIM:"RIM",ROKU:"Roku",SAMSUNG:"Samsung",SHARP:"Sharp",SIEMENS:"Siemens",SMARTFREN:"Smartfren",SONY:"Sony",SPRINT:"Sprint",TCL:"TCL",TECHNISAT:"TechniSAT",TECNO:"Tecno",TESLA:"Tesla",ULEFONE:"Ulefone",VIVO:"Vivo",VODAFONE:"Vodafone",XBOX:"Xbox",XIAOMI:"Xiaomi",ZEBRA:"Zebra",ZTE:"ZTE"},l={AMAYA:"Amaya",ARKWEB:"ArkWeb",BLINK:"Blink",EDGEHTML:"EdgeHTML",FLOW:"Flow",GECKO:"Gecko",GOANNA:"Goanna",ICAB:"iCab",KHTML:"KHTML",LIBWEB:"LibWeb",LINKS:"Links",LYNX:"Lynx",NETFRONT:"NetFront",NETSURF:"NetSurf",PRESTO:"Presto",SERVO:"Servo",TASMAN:"Tasman",TRIDENT:"Trident",W3M:"w3m",WEBKIT:"WebKit"},d={AIX:"AIX",AMIGA_OS:"Amiga OS",ANDROID:"Android",ANDROID_X86:"Android-x86",ARCH:"Arch",BADA:"Bada",BEOS:"BeOS",BLACKBERRY:"BlackBerry",CENTOS:"CentOS",CHROME_OS:"Chrome OS",CHROMECAST:"Chromecast",CHROMECAST_ANDROID:"Chromecast Android",CHROMECAST_FUCHSIA:"Chromecast Fuchsia",CHROMECAST_LINUX:"Chromecast Linux",CHROMECAST_SMARTSPEAKER:"Chromecast SmartSpeaker",CONTIKI:"Contiki",DEBIAN:"Debian",DEEPIN:"Deepin",DRAGONFLY:"DragonFly",ELEMENTARY_OS:"elementary OS",FEDORA:"Fedora",FIREFOX_OS:"Firefox OS",FREEBSD:"FreeBSD",FUCHSIA:"Fuchsia",GENTOO:"Gentoo",GHOSTBSD:"GhostBSD",GNU:"GNU",HAIKU:"Haiku",HARMONYOS:"HarmonyOS",HP_UX:"HP-UX",HURD:"Hurd",IOS:"iOS",JOLI:"Joli",KAIOS:"KaiOS",KUBUNTU:"Kubuntu",LINPUS:"Linpus",LINSPIRE:"Linspire",LINUX:"Linux",MACOS:"macOS",MAEMO:"Maemo",MAGEIA:"Mageia",MANDRIVA:"Mandriva",MANJARO:"Manjaro",MEEGO:"MeeGo",MINIX:"Minix",MINT:"Mint",MORPH_OS:"Morph OS",NETBSD:"NetBSD",NETRANGE:"NetRange",NETTV:"NetTV",NINTENDO:"Nintendo",OPENHARMONY:"OpenHarmony",OPENBSD:"OpenBSD",OPENVMS:"OpenVMS",OS2:"OS/2",PALM:"Palm",PC_BSD:"PC-BSD",PCLINUXOS:"PCLinuxOS",PICO:"Pico",PLAN9:"Plan9",PLAYSTATION:"PlayStation",QNX:"QNX",RASPBIAN:"Raspbian",REDHAT:"RedHat",RIM_TABLET_OS:"RIM Tablet OS",RISC_OS:"RISC OS",SABAYON:"Sabayon",SAILFISH:"Sailfish",SERENITYOS:"SerenityOS",SERIES40:"Series40",SLACKWARE:"Slackware",SOLARIS:"Solaris",SUSE:"SUSE",SYMBIAN:"Symbian",TIZEN:"Tizen",UBUNTU:"Ubuntu",UBUNTU_TOUCH:"Ubuntu Touch",UNIX:"Unix",VECTORLINUX:"VectorLinux",WATCHOS:"watchOS",WEBOS:"WebOS",WINDOWS:"Windows",WINDOWS_IOT:"Windows IoT",WINDOWS_MOBILE:"Windows Mobile",WINDOWS_PHONE:"Windows Phone",XBOX:"Xbox",ZENWALK:"Zenwalk"};var ee;(function(h){(function(y){class b{static get Browser(){return e}static get BrowserType(){return t}static get CPU(){return n}static get Device(){return r}static get Vendor(){return i}static get Engine(){return l}static get UAParserEnumOS(){return d}}y.UAParserEnums=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{static get isMobile(){let u=!1;return function(f){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(f)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(f.substr(0,4)))&&(u=!0)}(navigator.userAgent||navigator.vendor||window.opera),u}static newGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){const f=Math.random()*16|0;return(u==="x"?f:f&3|8).toString(16)})}static ieFix(){let u;navigator.userAgent.indexOf("MSIE")!=-1?u=/MSIE (\d+\.\d+);/:u=/Trident.*rv[ :]*(\d+\.\d+)/,u.test(navigator.userAgent)&&(document.body.setAttribute("style","-ms-touch-action:none;"),document.body.style.touchAction="none",document.body.style.msTouchAction="none")}static now(){const u=window.performance||{};return u.now=function(){return u.now||u.webkitNow||u.msNow||u.oNow||u.mozNow||function(){return new Date().getTime()}}(),u.now()}static base64Uint8Array(u){const f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";let s,o=u.length,a="";for(s=0;s<o;s+=3)a+=f[u[s]>>2],a+=f[(u[s]&3)<<4|u[s+1]>>4],a+=f[(u[s+1]&15)<<2|u[s+2]>>6],a+=f[u[s+2]&63];return o%3===2?a=a.substring(0,a.length-1)+"=":o%3===1&&(a=a.substring(0,a.length-2)+"=="),a}static string2buf(u){if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(u);let f,s,o,a,m,v=u.length,w=0;for(a=0;a<v;a++)s=u.charCodeAt(a),(s&64512)===55296&&a+1<v&&(o=u.charCodeAt(a+1),(o&64512)===56320&&(s=65536+(s-55296<<10)+(o-56320),a++)),w+=s<128?1:s<2048?2:s<65536?3:4;for(f=new Uint8Array(w),m=0,a=0;m<w;a++)s=u.charCodeAt(a),(s&64512)===55296&&a+1<v&&(o=u.charCodeAt(a+1),(o&64512)===56320&&(s=65536+(s-55296<<10)+(o-56320),a++)),s<128?f[m++]=s:s<2048?(f[m++]=192|s>>>6,f[m++]=128|s&63):s<65536?(f[m++]=224|s>>>12,f[m++]=128|s>>>6&63,f[m++]=128|s&63):(f[m++]=240|s>>>18,f[m++]=128|s>>>12&63,f[m++]=128|s>>>6&63,f[m++]=128|s&63);return f}static utf8Encode(u){u=u.replace(/\r\n/g,`
70
+ `);let f="";for(let s=0;s<u.length;s++){const o=u.charCodeAt(s);o<128?f+=String.fromCharCode(o):o>127&&o<2048?(f+=String.fromCharCode(o>>6|192),f+=String.fromCharCode(o&63|128)):(f+=String.fromCharCode(o>>12|224),f+=String.fromCharCode(o>>6&63|128),f+=String.fromCharCode(o&63|128))}return f}static hash(u){let f=b.hashCache.get(u);return f||(f=h.sha256(u+y.Constants.SALT),b.hashCache.set(u,f)),f}static hashMini(u){const f=`${JSON.stringify(u)}`;let s,o,a=2166136261;for(s=0,o=f.length;s<o;s++)a=Math.imul(31,a)+f.charCodeAt(s)|0;return("0000000"+(a>>>0).toString(16)).substr(-8)}static hashCode(u){let f=0,s=u?u.length:0,o=0;if(s>0)for(;o<s;)f=(f<<5)-f+u.charCodeAt(o++)|0;return f}static mod(u,f){return(b.hashCode(u)%f+f)%f}static isEmail(u){try{return u&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(u.toLowerCase())}catch(f){return y.Logger.warn("isEmail function failed to parse string",f),!1}}static getEmailDomain(u){return b.isEmail(u)?u.substring(u.lastIndexOf("@")+1):""}static extendPrimitiveValues(u,f,s){const o=b.allKeys(f);let a=0;for(;a<o.length;)!b.isObject(f[o[a]])&&(!s||s&&u[o[a]]===void 0)&&(u[o[a]]=f[o[a]]),a++;return u}static flatten(u){const f={};return b.dive("",u,f),f}static isFunction(u){return u&&typeof u=="function"}static isPassiveSupported(){let u=!1;const f=function(){};try{const s={get passive(){return u=!0,!0}};window.addEventListener("test",f,s),window.removeEventListener("test",f,!1)}catch{u=!1}return u}static getAttribute(u,f){try{if(u&&typeof u.getAttribute=="function")return u.getAttribute(f)||""}catch{}return""}static createInvisibleElement(u){try{const f=document.createElement(u);return f.style.display="none",f.style.border="none",f.style.position="absolute",f.style.top="-999px",f.style.left="-999px",f.style.width="0",f.style.height="0",f.style.visibility="hidden",f}catch(f){return y.Logger.warn("Failed to create element",f),null}}static values(u){const f=b.allKeys(u),s=f.length,o=Array(s);for(let a=0;a<s;a++)o[a]=u[f[a]];return o}static getValuesOfMap(u){if(this.isFunction(u.values))return Array.from(u.values());const f=[];return u.forEach(s=>f.push(s)),f}static typesCounter(u){const f={epochTs:Date.now()};for(const s of u)f[s.type]=(f[s.type]||0)+1;return f}static modifiersKeys(u){const f=["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"],s=[];return u.getModifierState&&f.forEach(o=>{u.getModifierState(o.toString())&&s.push(o)}),s}static getElementText(u){var f,s;return u instanceof HTMLInputElement?["checkbox","radio"].indexOf(u.type)>=0?`${u.checked}`:u.value:u instanceof HTMLSelectElement?(s=(f=u.selectedOptions)===null||f===void 0?void 0:f[0])===null||s===void 0?void 0:s.innerText:u.innerText}static getSrcElement(u){return u.srcElement||u.target}static getObjectType(u){try{const f=/function (.{1,})\(/.exec(u.constructor.toString());return f&&f.length>1?f[1]:""}catch{return""}}static isSelectorMatches(u,f,s){try{const o=Element.prototype,a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector;let m=0;do{if(a.call(u,f))return u;u=u.parentElement||u.parentNode}while(u!==null&&u.nodeType===1&&m++<s);return null}catch{return null}}static anySelectorMatches(u,f,s){try{for(const o of f)if(this.isSelectorMatches(u,o,s))return!0}catch(o){y.Logger.warn(o)}return!1}static isArray(u){return Array.isArray?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"}static safeJsonParse(u){let f=null;try{u&&(f=JSON.parse(u))}catch(s){y.Logger.warn("Failed to parse object "+s),f=null}return f}static getElementSelectionStart(u){let f;try{f=u.selectionStart}catch{f=""}return f}static getElementSelectionEnd(u){let f;try{f=u.selectionEnd}catch{f=""}return f}static isClickableInput(u){return u&&["button","checkbox","color","radio","range","image","submit","file","reset"].indexOf(u.type)>=0}static isTextInput(u){return u&&["date","datetime-local","email","month","number","password","search","tel","text","time","url","week","datetime"].indexOf(u.type)>=0}static getDeviceOrientation(){const u=screen.orientation||screen.mozOrientation||{},f=screen.msOrientation||u.type,s=u.angle;return{orientation:f==null?void 0:f.toString(),angle:s==null?void 0:s.toString()}}static getDevToolsState(){var u,f;const s=window.outerWidth-window.innerWidth>160,o=window.outerHeight-window.innerHeight>160,a=s?"vertical":"horizontal";return!(o&&s)&&(!((f=(u=window.Firebug)===null||u===void 0?void 0:u.chrome)===null||f===void 0)&&f.isInitialized||s||o)?{open:!0,orientation:a}:{open:!1,orientation:void 0}}static getCookie(u){const f=document.cookie.match("(^|;) ?"+u+"=([^;]*)(;|$)");return f?f[2]:null}static setCookie(u,f,s){const o=new Date;o.setTime(o.getTime()+1e3*s),document.cookie=u+"="+f+";path=/;secure;SameSite=None;expires="+o.toUTCString()}static deleteCookie(u){b.setCookie(u,"",-1)}static delay(u){return new Promise(f=>setTimeout(f,u))}static getHostnameFromRegex(u){if(u){const f=u.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return f&&f[1]}return null}static inIframe(){try{return window.self!==window.top}catch{return!0}}static promiseTimeout(u,f){const s=new Promise((o,a)=>{const m=setTimeout(()=>{clearTimeout(m),a(new Error("Timed out in "+u+"ms."))},u)});return Promise.race([f,s])}static getProperty(u,f){return f.split(".").reduce(function(s,o){return s?s[o]:null},u)}static filterReduce(u,f){return Object.keys(u).filter(s=>f(u[s])).reduce((s,o)=>({...s,[o]:u[o]}),{})}static dive(u,f,s){for(const o in f)if(f.hasOwnProperty(o)){let a=o;const m=f[o];u.length>0&&(a=u+"."+o),b.isObject(m)?b.dive(a,m,s):s[a]=m}}static isObject(u){const f=typeof u;return f==="function"||f==="object"&&!!u}static allKeys(u){if(!b.isObject(u))return[];const f=[];for(const s in u)f.push(s);return f}static encryptionString(u,f){const s=[];for(let o=0;o<u.length;o++){const a=u.charCodeAt(o)^f.charCodeAt(o%f.length);s.push(String.fromCharCode(a))}return s.join("")}static encryptionBytes(u,f){const s=new Uint8Array(u.length);for(let o=0;o<u.length;o++)s[o]=u[o]^f.charCodeAt(o%f.length);return s}static parseJwt(u){const f=u.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(window.atob(f).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(s)}static calculateMeanTimeDeltasBetweenEvents(u){let f=0;if((u==null?void 0:u.length)>1){let s=u[0].epochTs;for(let o=1;o<u.length;o++)f+=u[o].epochTs-s,s=u[o].epochTs;f/=u.length-1}return f}static sortEventsByTimestamp(u){return u.sort((f,s)=>f.eventTs>s.eventTs?1:f.eventTs<s.eventTs?-1:f.epochTs>s.epochTs?1:f.epochTs<s.epochTs?-1:f.type==="click"?1:-1)}static distanceBetweenPoints(u,f){return Math.sqrt(Math.pow(u.getX()-f.getX(),2)+Math.pow(u.getY()-f.getY(),2))}static calculateMeanDistanceBetweenPoints(u){let f=0;if((u==null?void 0:u.length)>1){for(let s=1;s<u.length;s++)f+=b.distanceBetweenPoints(u[s-1],u[s]);f/=u.length-1}return f}static filterArrayByLength(u,f){return u.length<=f?u:u.slice(0,f).concat(u[u.length-1])}static keepFirstEventsWithDistance(u){const{events:f,threshold:s,min:o,max:a}=u;if(f.length<=o)return f;const m=f[0];let v;for(v=1;v<f.length&&v<a&&!(Math.max(Math.abs(f[v].getX()-m.getX()),Math.abs(f[v].getY()-m.getY()))>=s);v++);return f.slice(0,Math.max(v+1,o))}static ab2str(u){return String.fromCharCode.apply(null,new Uint8Array(u))}static str2ab(u){const f=new ArrayBuffer(u.length),s=new Uint8Array(f);for(let o=0,a=u.length;o<a;o++)s[o]=u.charCodeAt(o);return f}static encode(u){const f=JSON.stringify(u),s=new TextEncoder().encode(f),o=b.base64Uint8Array(s);return b.base64url(o)}static base64url(u){return u.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}}b.hashCache=new Map,b.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y.Util=b})(h._POSignalsUtils||(h._POSignalsUtils={}))})(ee||(ee={}));var ee;(function(h){var y=h.openDB;(function(b){class c{constructor(){}static async initDB(){if(!(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB))throw new Error("IndexedDB is not supported");const f=new c;return new Promise(async s=>{f.indexedDatabase=await y(this._PingDBName,c._version,{upgrade(o,a,m,v,w){o.createObjectStore(c._storeDefaultName)}}),s(f)})}close(){this.indexedDatabase.close()}getValue(f){return this.indexedDatabase.get(c._storeDefaultName,f)}setValue(f,s){return this.indexedDatabase.put(c._storeDefaultName,s,f)}}c._PingDBName="Ping",c._version=1,c._storeDefaultName="PING_ONE",b.IndexedDBStorage=c})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));var ee;(function(h){class y{constructor(c,u,f){this.deviceId=c,this.dbStorage=u,this.cryptoHandler=f}async getExportedPublicKey(){if(!this.cachedPublicKey){const c=await this.getDeviceKeys();c&&(this.cachedPublicKey=await this.cryptoHandler.exportPublicKey(c))}return h._POSignalsUtils.Logger.info("Exported public key:",this.cachedPublicKey),this.cachedPublicKey}async setDeviceKeys(c){const u=await this.dbStorage.setValue(this.deviceId,c);return this.cachedDeviceKey=c,u}async associateDeviceKeys(){const c=await this.cryptoHandler.generateKeys();return h._POSignalsUtils.Logger.info("Associating new device domain keys"),await this.setDeviceKeys(c),c}async getDeviceKeys(){return this.cachedDeviceKey||(this.cachedDeviceKey=await this.dbStorage.getValue(this.deviceId)),this.cachedDeviceKey}async signDeviceAttributeWithJWT(c,u,f){return await this.cryptoHandler.signJWT(c,await this.getDeviceKeys(),y._default_salt,u,f)}async verifyJWT(c){return this.cryptoHandler.verifyJwtToken(c,(await this.getDeviceKeys()).publicKey)}}y._default_salt=32,h.DeviceKeys=y})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(){this._disabledStorage=[],this.assertionValues=["BROWSER_ENGINE_VERSION","NAVIGATOR_LANGUAGE","OS_NAME","OS_VERSION","NAVIGATOR_USER_AGENT","FINGER_PRINT","RESOLUTION","PUSH_NOTIFICATIONS_SUPPORTED","COOKIES_ENABLED","IS_INCOGNITO","IS_PRIVATE_MODE"];try{window.sessionStorage.setItem("_st_storage_enabled_check","test"),window.sessionStorage.removeItem("_st_storage_enabled_check"),this.signalsSessionStorage=window.sessionStorage}catch{h._POSignalsUtils.Logger.warn("session storage disabled"),this._disabledStorage.push("sessionStorage"),this.signalsSessionStorage=new y.StorageFallback}try{window.localStorage.setItem("_st_storage_enabled_check","test"),window.localStorage.removeItem("_st_storage_enabled_check"),this.signalsLocalStorage=new y.StorageWrapper(window.localStorage)}catch{h._POSignalsUtils.Logger.warn("local storage disabled"),this._disabledStorage.push("localStorage"),this.signalsLocalStorage=new y.StorageWrapper(new y.StorageFallback)}}setStorageConfig(u){this.universalTrustEnabled=this.isConfigurationEnabled(u.universalDeviceIdentification),this.agentIdentificationEnabled=this.isConfigurationEnabled(u.agentIdentification),this.devEnv=u.devEnv,this.agentPort=u.agentPort,this.agentTimeout=u.agentTimeout,this.htmlGeoLocation=this.isConfigurationEnabled(u.htmlGeoLocation),this.isIAFDetectionEnabled=this.isConfigurationEnabled(u.isIAFDetectionEnabled)}static get instance(){return b._instance||(b._instance=new b),b._instance}get tabUUID(){let u=this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.TAB_UUID_KEY);return u||(u=h._POSignalsUtils.Util.newGuid(),this.signalsSessionStorage.setItem(h._POSignalsUtils.Constants.TAB_UUID_KEY,u)),u}get ops(){const u=Number(this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.OPS_KEY));return isNaN(u)?null:u}set ops(u){u?this.signalsSessionStorage.setItem(h._POSignalsUtils.Constants.OPS_KEY,u.toString()):this.signalsSessionStorage.removeItem(h._POSignalsUtils.Constants.OPS_KEY)}get disabledStorage(){return this._disabledStorage}get sessionStorage(){return this.signalsSessionStorage}get localStorage(){return this.signalsLocalStorage}async initDeviceIdentity(){let u;const f=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_KEY),s=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT);return f&&(this.cachedDeviceId=f),this.universalTrustEnabled&&(this.deviceTrust={attestation:{},dtts:new Date().getTime()},this.indexedDBStorage=await y.IndexedDBStorage.initDB(),u=await this.loadLocalDeviceTrust()),this.getDeviceId()||await this.associateDeviceDetails(),s||this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT,Date.now()),this.universalTrustEnabled&&(!this.getDeviceId()||!u)&&await this.createDomainKeys(),this.getDeviceId()}shouldFallbackToP1Key(u){return this.universalTrustEnabled&&(!u||this.isRefreshRequired(this.deviceKeyRsyncIntervals))}isRefreshRequired(u=3){if(!this.deviceTrust.dtts)return!0;const f=this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.LAST_DEVICE_KEY_RESYNC);if(!f||isNaN(parseInt(f)))return!0;const s=this.deviceTrust.dtts-f>60*60*24*1e3*u;return s&&h._POSignalsUtils.Logger.debug("Refresh required"),s}async loadLocalDeviceTrust(){try{let u;if(!this.cachedDeviceId)return h._POSignalsUtils.Logger.debug("No device id found on customer domain"),!1;if(this.cachedDeviceId)return this.domainDeviceKeys=new h.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new h._POSignalsUtils.CryptoOperator),u=await this.domainDeviceKeys.getDeviceKeys(),u?(this.deviceTrust.attestation.deviceKey=await this.domainDeviceKeys.getExportedPublicKey(),!0):(h._POSignalsUtils.Logger.debug("No device keys found on customer domain"),!1)}catch(u){return h._POSignalsUtils.Logger.error("Domain PKI initialization failed",u),!1}}async createDomainKeys(){try{this.domainDeviceKeys=new h.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new h._POSignalsUtils.CryptoOperator),await this.domainDeviceKeys.associateDeviceKeys(),this.deviceTrust.attestation.deviceKey=await this.domainDeviceKeys.getExportedPublicKey()}catch(u){h._POSignalsUtils.Logger.error("Domain PKI initialization failed",u)}}getDeviceId(){return this.cachedDeviceId}getDeviceCreatedAt(){return this.signalsLocalStorage.getItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT)}async associateDeviceDetails(){var u,f;return h._POSignalsUtils.Logger.debug("Associating fresh device details"),this.cachedDeviceId=`Id-${h._POSignalsUtils.Util.newGuid()}`,this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId),this.signalsLocalStorage.setItem(h._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT,Date.now()),h._POSignalsUtils.Logger.debug(`PingOne Signals deviceId: ${this.cachedDeviceId}`),[this.cachedDeviceId,(f=(u=this.deviceTrust)===null||u===void 0?void 0:u.attestation)===null||f===void 0?void 0:f.fallbackDeviceKey]}closeTrustStore(){try{this.indexedDBStorage&&this.indexedDBStorage.close()}catch(u){h._POSignalsUtils.Logger.info("Unable to close trust store:",u)}}isConfigurationEnabled(u){return u==null?!1:typeof u=="boolean"?u:typeof u=="string"&&u.toLowerCase()==="true"}async signJWTChallenge(u,f,s){return this.domainDeviceKeys.signDeviceAttributeWithJWT(u,f,s)}getGeoSessionData(){const u=this.signalsSessionStorage.getItem(h._POSignalsUtils.Constants.GeoDataKey);return u??null}}y.SessionStorage=b})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));var ee;(function(h){(function(y){class b{constructor(f){this.storage=f}getItem(f){const s=h._POSignalsUtils.Util.hash(f);let o=this.storage.getItem(s);return o||(o=this.storage.getItem(f),o&&(this.storage.setItem(s,o),this.storage.removeItem(f))),o}removeItem(f){return this.storage.removeItem(h._POSignalsUtils.Util.hash(f))}setItem(f,s){return this.storage.setItem(h._POSignalsUtils.Util.hash(f),s)}}y.StorageWrapper=b;class c{constructor(){this.internalStorageMap=new Map}getItem(f){return this.internalStorageMap.get(f)}removeItem(f){this.internalStorageMap.delete(f)}setItem(f,s){this.internalStorageMap.set(f,s)}}y.StorageFallback=c})(h._POSignalsStorage||(h._POSignalsStorage={}))})(ee||(ee={}));const g=p;(function(h,y){const b=p,c=h();for(;;)try{if(-parseInt(b(1382))/1+parseInt(b(1161))/2*(parseInt(b(1510))/3)+parseInt(b(1242))/4+-parseInt(b(1015))/5+-parseInt(b(710))/6+parseInt(b(1053))/7+parseInt(b(1284))/8===y)break;c.push(c.shift())}catch{c.push(c.shift())}})(_,914438);var gt=function(h,y,b,c){function u(f){return f instanceof b?f:new b(function(s){s(f)})}return new(b||(b=Promise))(function(f,s){const o=p;function a(w){const A=p;try{v(c[A(1448)](w))}catch(E){s(E)}}function m(w){const A=p;try{v(c[A(594)](w))}catch(E){s(E)}}function v(w){const A=p;w.done?f(w[A(584)]):u(w[A(584)])[A(804)](a,m)}v((c=c[o(399)](h,y||[]))[o(1448)]())})},ee;(function(h){const y=g;(function(b){const c=p;class u{[c(729)](){const s=c;try{const o={hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[]};if(typeof document>"u")return h[s(631)].Logger[s(829)](s(856)),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[s(1129)]};if(!document[s(517)])return h[s(631)][s(867)][s(829)](s(1310)),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[s(764)]};let a;try{a=document.querySelectorAll(s(816))}catch(w){return h[s(631)][s(867)][s(829)]("Failed to query input elements:",w),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[s(617)]}}if(a[s(368)]<=50)return this[s(678)](a,o);const m=1e3,v=Math[s(770)](a[s(368)],m);return a.length>m&&h._POSignalsUtils.Logger.warn("Large DOM detected: "+a[s(368)]+s(767)+m),this[s(369)](a,v,o)}catch(o){return h._POSignalsUtils[s(867)].warn(s(1263),o),{hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["error"]}}}processInputsSynchronously(s,o){const a=c;for(let m=0;m<s[a(368)];m++)try{const v=s[m],w=this.detectInputAutofill(v);w[a(554)]&&this[a(1110)](o,v,w)}catch(v){h[a(631)][a(867)].warn(a(793)+m+":",v)}return o}[c(369)](s,o,a){const m=c,v=performance[m(308)](),w=100,A=10;let E=0;for(;E<o;){if(performance[m(308)]()-v>w){h[m(631)][m(867)].warn(m(962)+E+"/"+o+m(688)),a[m(928)][m(1265)](m(1523))===-1&&a.detectionMethods[m(939)](m(1523));break}const O=Math[m(770)](E+A,o);for(let T=E;T<O;T++)try{const M=s[T],P=this[m(520)](M);P.isAutofilled&&this[m(1110)](a,M,P)}catch(M){h[m(631)][m(867)][m(829)](m(793)+T+":",M)}E=O}return a}[c(1110)](s,o,a){const m=c;s.hasAutofill=!0,s[m(922)]++,s[m(1169)][m(939)]({type:o[m(322)]||m(1299),name:o[m(1246)]||"",id:o.id||"",placeholder:o[m(1216)]||"",value:o[m(584)]?o[m(584)][m(1073)](0,3)+m(451):"",detectionMethod:a.method}),s[m(928)][m(1265)](a[m(587)])===-1&&s[m(928)][m(939)](a[m(587)])}detectInputAutofill(s){const o=c;if(!s||s[o(708)]!==o(1513))return{isAutofilled:!1,method:o(460)};try{if(s.matches&&s[o(1256)](o(1356)))return{isAutofilled:!0,method:o(472)}}catch{}try{if(s[o(1256)]&&s[o(1256)](":-moz-autofill"))return{isAutofilled:!0,method:o(1200)}}catch{}try{const a=window[o(1396)](s),m=a[o(1504)];if([o(310),o(378)][o(1265)](m)!==-1||m[o(1265)](o(1261))!==-1)return{isAutofilled:!0,method:"background-color"}}catch{}try{if(s[o(584)]&&s[o(584)][o(368)]>0){if(s[o(1366)](o(1072))||s[o(1366)](o(500)))return{isAutofilled:!0,method:o(842)};if(s.hasAttribute(o(1271))||s[o(1266)][o(637)](o(984))){const a=[o(1179),o(1410),o(1353),o(1246),o(1189)];if(a.indexOf(s[o(322)])!==-1||a[o(1148)](m=>s[o(1246)]&&s[o(1246)][o(1479)]()[o(1265)](m)!==-1))return{isAutofilled:!0,method:o(1089)}}}}catch{}try{if(s.classList[o(637)](o(586))||s.classList[o(637)]("auto-filled")||s[o(1366)](o(789))||s[o(1366)](o(531)))return{isAutofilled:!0,method:o(851)}}catch{}try{if(s[o(1058)][o(540)]==="autofill-detection"||s[o(1058)].animationName===o(1319))return{isAutofilled:!0,method:o(871)}}catch{}return{isAutofilled:!1,method:o(460)}}[c(1225)](){const s=c;try{if(typeof document>"u"||!document.querySelectorAll)return{hasEmail:!1,hasPassword:!1,hasName:!1,hasNumber:!1,hasInput:!1};const o=document.querySelectorAll("input");let a=!1,m=!1,v=!1,w=!1;const A=o[s(368)]>0;for(let E=0;E<o[s(368)];E++){const O=o[E],T=(O[s(322)]||"text")[s(1479)](),M=(O[s(1246)]||"")[s(1479)](),P=(O.id||"")[s(1479)](),x=(O[s(346)]||"")[s(1479)](),I=(O[s(1216)]||"").toLowerCase(),D=(O[s(1503)](s(1282))||"").toLowerCase();let V="";try{if(O.id){const j=document[s(580)]('label[for="'+O.id+'"]');j&&(V=(j[s(1065)]||"")[s(1479)]())}if(!V){const j=O.closest("label");j&&(V=(j.textContent||"")[s(1479)]())}}catch{}if(a||(T===s(1179)||M[s(1265)](s(1179))!==-1||P[s(1265)](s(1179))!==-1||x[s(1265)](s(1179))!==-1||I[s(1265)](s(1179))!==-1||D[s(1265)](s(1179))!==-1||V.indexOf("email")!==-1||V.indexOf(s(850))!==-1)&&(a=!0),m||(T===s(1410)||M[s(1265)](s(1410))!==-1||M.indexOf("passwd")!==-1||M.indexOf("pass")!==-1||M.indexOf(s(582))!==-1||P[s(1265)](s(1410))!==-1||P[s(1265)](s(825))!==-1||x.indexOf(s(1410))!==-1||I.indexOf("password")!==-1||V[s(1265)](s(1410))!==-1)&&(m=!0),v||(T===s(1246)||M.indexOf(s(1246))!==-1||M[s(1265)]("username")!==-1||M[s(1265)](s(559))!==-1||P[s(1265)](s(1246))!==-1||P[s(1265)](s(1376))!==-1||P[s(1265)](s(559))!==-1||x[s(1265)](s(1246))!==-1||x[s(1265)](s(1376))!==-1||I.indexOf(s(1246))!==-1||V[s(1265)]("name")!==-1||V.indexOf(s(1376))!==-1||V[s(1265)](s(1150))!==-1)&&(v=!0),w||(T===s(1353)||T===s(497)||M[s(1265)](s(727))!==-1||M[s(1265)](s(1353))!==-1||M.indexOf(s(512))!==-1||M.indexOf(s(662))!==-1||P[s(1265)](s(727))!==-1||P[s(1265)](s(1353))!==-1||P.indexOf(s(512))!==-1||x[s(1265)]("tel")!==-1||I[s(1265)](s(727))!==-1||V[s(1265)](s(727))!==-1||V[s(1265)](s(512))!==-1)&&(w=!0),a&&m&&v&&w)break}return{hasEmail:a,hasPassword:m,hasName:v,hasNumber:w,hasInput:A}}catch(o){return h[s(631)].Logger[s(829)]("Error detecting page input fields:",o),{hasEmail:!1,hasPassword:!1,hasName:!1,hasNumber:!1,hasInput:!1}}}static[c(865)](){const s=c;try{if(!document.getElementById(s(759))){const o=document[s(983)](s(1058));o.id=s(759),o.textContent=s(1427)+"@keyframes autofill-detection { 0% { opacity: 1; } 100% { opacity: 1; } }",document[s(1295)].appendChild(o)}document[s(806)](s(1423),function(o){const a=s;if(o[a(540)]==="autofill-detection"){const m=o.target;m&&m[a(708)]===a(1513)&&(m[a(318)](a(1072),a(413)),m[a(1266)][a(373)]("autofilled"))}},!0)}catch(o){h[s(631)].Logger[s(829)](s(1506),o)}}[c(479)](){const s=c,o=this.detectAutofillFields(),a=this.detectPageInputFields();return{AUTOFILL_DETECTED:o[s(632)],AUTOFILL_COUNT:o[s(922)],AUTOFILL_FIELDS_COUNT:o[s(1169)][s(368)],AUTOFILL_METHODS:o[s(928)][s(1512)](","),AUTOFILL_FIELD_TYPES:o[s(1169)][s(341)](m=>m.type)[s(1512)](","),HAS_EMAIL:a[s(810)],HAS_PASSWORD:a[s(1457)],HAS_NAME:a.hasName,HAS_NUMBER:a[s(1177)],HAS_INPUT:a.hasInput}}getAutofillMetadataAsync(){return gt(this,void 0,void 0,function*(){const s=p,o=yield this[s(316)](),a=this[s(1225)]();return{AUTOFILL_DETECTED:o[s(632)],AUTOFILL_COUNT:o[s(922)],AUTOFILL_FIELDS_COUNT:o[s(1169)][s(368)],AUTOFILL_METHODS:o.detectionMethods[s(1512)](","),AUTOFILL_FIELD_TYPES:o.detectedFields[s(341)](m=>m[s(322)]).join(","),HAS_EMAIL:a[s(810)],HAS_PASSWORD:a[s(1457)],HAS_NAME:a[s(581)],HAS_NUMBER:a[s(1177)],HAS_INPUT:a[s(1409)]}})}[c(1415)](){return gt(this,void 0,void 0,function*(){const s=p;try{return document[s(517)](s(816))[s(368)]>500?yield this[s(1032)]():this[s(479)]()}catch(o){return h._POSignalsUtils[s(867)][s(829)](s(542),o),this[s(479)]()}})}detectAutofillFieldsAsync(){return gt(this,void 0,void 0,function*(){return new Promise(s=>{const o=p;try{const a={hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[]};if(typeof document>"u"){h[o(631)][o(867)].warn(o(1160)),s({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["document-unavailable"]});return}let m;try{m=document[o(517)]("input")}catch(T){h._POSignalsUtils[o(867)][o(829)](o(693),T),s({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:[o(617)]});return}const v=2e3,w=Math[o(770)](m[o(368)],v),A=20;let E=0;const O=()=>{const T=o,M=Math.min(E+A,w);for(let P=E;P<M;P++)try{const x=m[P],I=this[T(520)](x);I[T(554)]&&this[T(1110)](a,x,I)}catch(x){h[T(631)][T(867)][T(829)](T(793)+P+T(432),x)}E=M,E>=w?s(a):window.requestIdleCallback?window.requestIdleCallback(O,{timeout:50}):setTimeout(O,0)};window[o(518)]?window[o(518)](O,{timeout:50}):setTimeout(O,0)}catch(a){h[o(631)][o(867)][o(829)](o(763),a),s({hasAutofill:!1,autofillCount:0,detectedFields:[],detectionMethods:["async-error"]})}})})}}b[c(1201)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(){const s=p;this[s(323)]=s(1460),this[s(898)]=s(1093),this[s(1483)]=[s(1167),"sans-serif","serif"],this[s(522)]=[s(406),"Arial Black","Arial Narrow","Arial Rounded MT Bold",s(530),s(758),"Cambria","Cambria Math",s(701),s(1308),s(1458),s(668),s(1158),s(546),s(609),"Franklin Gothic Medium",s(843),"Gadugi",s(1524),"HoloLens MDL2 Assets",s(890),s(779),s(926),s(1069),s(1354),s(1334),s(1348),s(1194),s(728),"Microsoft JhengHei",s(910),s(1260),"Microsoft Sans Serif",s(778),s(1403),s(629),s(1520),"Mongolian Baiti",s(899),s(976),"Myanmar Text",s(1005),s(819),s(1426),s(425),s(1514),s(1349),"Segoe UI Historic","Segoe UI Emoji",s(535),s(343),s(452),s(1212),s(424),s(519),s(695),s(408),"Verdana",s(1361),"Wingdings",s(1220),s(1360),"Andale Mono",s(656),s(1219),s(547),s(1473),s(635),"AppleMyungjo",s(1293),s(904),s(515),"Avenir Next",s(488),s(1526),s(1135),s(1122),"Bodoni 72 Oldstyle",s(1519),"Bradley Hand",s(1286),s(1471),s(981),"Chalkduster",s(935),s(313),s(464),s(1352),s(528),"Futura","Geneva","Gill Sans","Helvetica",s(1107),s(1464),"Hoefler Text",s(890),"Lucida Grande","Luminari",s(828),s(1470),s(800),"Noteworthy",s(971),"Palatino","Papyrus",s(676),"Rockwell",s(541),s(466),s(864),"Snell Roundhand","Tahoma",s(427),s(1490),s(484),s(1090),s(821),s(1364),s(977),s(1182),"DejaVu Sans",s(543),s(371),s(724),"Droid Sans Mono",s(1244),s(461),s(487),s(1132),s(1133),"Gubbi",s(578),"Khmer OS",s(1176),s(1419),s(1518),s(1358),s(733),s(1344),"Lohit Devanagari",s(887),s(1173),s(434),s(332),s(740),"Noto Nastaliq Urdu",s(644),s(529),s(1046),s(1491),"Noto Sans CJK TC","Noto Serif",s(1020),s(776),s(1527),s(379),s(1018),"Ubuntu",s(400),s(513),s(732),s(924),s(1007),s(724),s(1244),s(401),s(458),s(350),s(1442),s(504),s(1086),"Roboto Slab",s(1041),s(1155),s(1467),"PT Sans",s(777),s(396),s(564),s(1432),s(868),s(499),s(914),s(857),s(1222),s(521),s(787),"Batang",s(1010),s(493),s(968),"Clarendon",s(672),"Franklin Gothic",s(311),s(747),s(826),s(1253),s(524),s(390),s(1050),s(823),s(576),s(1392),s(734),s(1040),s(730),s(1452),s(1077),s(1059),"MYRIAD PRO",s(765),s(831),"Microsoft Uighur",s(443),s(653),s(412),s(1456),s(955),s(681),s(1509),s(551),s(1112),"Staccato222 BT",s(792),s(1214),s(876),"ZWAdobeF"]}[c(394)](){return gt(this,void 0,void 0,function*(){const s=p,o=performance.now();try{const a=yield this.detectFontsWithIframe(),m=performance[s(308)](),v=Math.round(m-o),w=this[s(1232)](a);return{availableFonts:a,fontHash:w,detectionMethod:s(1505)}}catch(a){return h[s(631)][s(867)].warn(s(416),a),{availableFonts:[],fontHash:"",detectionMethod:s(1505)}}})}[c(569)](){return new Promise((s,o)=>{const a=p,m=document[a(983)](a(697));m[a(1058)].setProperty(a(1421),a(964),a(1309)),m.style[a(1351)]=a(685),m.style[a(991)]="-9999px",m.style.top=a(735);const v=()=>{const A=a;try{const E=m[A(766)]||m[A(772)][A(1306)],O=this[A(588)](E);m[A(738)]&&m[A(738)].removeChild(m),s(O)}catch(E){m[A(738)]&&m.parentNode.removeChild(m),o(E)}},w=()=>{const A=a;m[A(738)]&&m.parentNode[A(960)](m),o(new Error("Failed to create iframe for font detection"))};m[a(806)](a(925),v),m[a(806)](a(381),w),document[a(1141)][a(896)](m)})}[c(588)](s){const o=c,a=s[o(1141)];a.style[o(934)]=this[o(898)];const m=s.createElement(o(1367));m[o(1058)][o(1229)]("visibility","hidden","important"),m[o(1058)][o(1351)]=o(685),m.style[o(991)]=o(735),m.style[o(550)]=o(735);const v={},w=this[o(1483)].map(E=>{const O=o,T=s.createElement(O(1425));return T.style[O(1351)]=O(685),T[O(1058)][O(550)]="0",T[O(1058)][O(991)]="0",T[O(1058)][O(712)]=E,T[O(1058)].fontSize=this[O(898)],T[O(1065)]=this[O(323)],m[O(896)](T),{font:E,span:T}});a.appendChild(m),w.forEach(({font:E,span:O})=>{v[E]={width:O.offsetWidth,height:O.offsetHeight}});const A=[];for(const E of this[o(522)]){let O=!1;for(const T of this[o(1483)]){const M=s.createElement(o(1425));M[o(1058)].position=o(685),M[o(1058)][o(550)]="0",M.style.left="0",M[o(1058)][o(712)]="'"+E+o(1466)+T,M[o(1058)][o(934)]=this[o(898)],M[o(1065)]=this[o(323)],m[o(896)](M);const P=M.offsetWidth,x=M[o(952)];if(P!==v[T][o(1431)]||x!==v[T][o(507)]){O=!0;break}}O&&A[o(939)](E)}return m[o(738)]&&m[o(738)][o(960)](m),A}[c(1232)](s){const o=c;if(s[o(368)]===0)return"";const a=s[o(1068)]()[o(1512)](",");return this[o(671)](a)}[c(671)](s){const o=c;let a=0,m=0;for(let O=0;O<s[o(368)];O++){const T=s.charCodeAt(O);a=(a<<5)-a+T,a=a|0,m=T+(m<<6)+(m<<16)-m,m=m|0}const v=a>>>0,w=m>>>0;let A=v[o(861)](16);for(;A[o(368)]<8;)A="0"+A;let E=w[o(861)](16);for(;E[o(368)]<8;)E="0"+E;return A+E}[c(352)](){return gt(this,void 0,void 0,function*(){const s=p,o=performance[s(308)]();try{const a=document[s(983)](s(457)),m=a[s(1482)]("2d");if(!m)throw new Error(s(1243));a.width=500,a[s(507)]=200;const v=[],w={};for(const T of this.baseFonts)m[s(575)](0,0,a[s(1431)],a[s(507)]),m[s(364)]=this[s(898)]+" "+T,m[s(468)](this.testString,0,100),w[T]=a[s(1008)]();for(const T of this[s(522)]){let M=!1;for(const P of this[s(1483)])if(m[s(575)](0,0,a[s(1431)],a[s(507)]),m[s(364)]=this[s(898)]+" '"+T+"', "+P,m[s(468)](this[s(323)],0,100),a[s(1008)]()!==w[P]){M=!0;break}M&&v[s(939)](T)}const A=performance[s(308)](),E=Math[s(620)](A-o),O=this[s(1232)](v);return{availableFonts:v,fontHash:O,detectionMethod:s(457)}}catch(a){return h[s(631)].Logger.warn(s(921),a),{availableFonts:[],fontHash:"",detectionMethod:s(457)}}})}[c(353)](){return gt(this,void 0,void 0,function*(){const s=p;performance.now();try{const o=[s(406),s(758),s(1275),s(1308),s(1458),s(546),"Georgia",s(890),s(1349),s(519),s(695),s(408),s(762),s(1360),s(1473),s(515),s(716),s(1107),s(1413),"Lucida Grande","Menlo",s(800),"Palatino",s(484),s(1231),s(543),s(371),s(1518),s(1358),s(1344),s(396),s(513),s(924),s(724),s(1244),"Open Sans",s(504),s(1086),s(514)],a=yield this[s(1498)](o),m=this[s(1232)](a);return{availableFonts:a,fontHash:m,detectionMethod:s(1505)}}catch(o){return h[s(631)].Logger[s(829)]("Quick font detection failed",o),{availableFonts:[],fontHash:"",detectionMethod:"size"}}})}[c(1498)](s){return new Promise((o,a)=>{const m=p,v=document[m(983)](m(697));v[m(1058)].setProperty(m(1421),m(964),m(1309)),v[m(1058)][m(1351)]=m(685),v[m(1058)][m(991)]=m(735),v[m(1058)].top="-9999px";const w=()=>{const E=m;try{const O=v[E(766)]||v.contentWindow[E(1306)],T=O[E(1141)];T[E(1058)].fontSize=this[E(898)];const M=O[E(983)](E(1367));M[E(1058)][E(1229)](E(1421),E(964),"important"),M[E(1058)][E(1351)]=E(685),M[E(1058)][E(991)]=E(735),M[E(1058)][E(550)]="-9999px";const P={},x=this[E(1483)][E(341)](D=>{const V=E,j=O[V(983)]("span");return j[V(1058)][V(1351)]="absolute",j[V(1058)][V(550)]="0",j[V(1058)][V(991)]="0",j.style[V(712)]=D,j[V(1058)][V(934)]=this[V(898)],j[V(1065)]=this.testString,M[V(896)](j),{font:D,span:j}});T[E(896)](M),x[E(892)](({font:D,span:V})=>{P[D]={width:V.offsetWidth,height:V.offsetHeight}});const I=[];for(const D of s){let V=!1;for(const j of this.baseFonts){const L=O[E(983)](E(1425));L.style[E(1351)]="absolute",L.style[E(550)]="0",L[E(1058)][E(991)]="0",L.style[E(712)]="'"+D+E(1466)+j,L[E(1058)][E(934)]=this[E(898)],L.textContent=this[E(323)],M.appendChild(L);const U=L.offsetWidth,F=L.offsetHeight;if(U!==P[j].width||F!==P[j].height){V=!0;break}}V&&I[E(939)](D)}M.parentNode&&M[E(738)][E(960)](M),v.parentNode&&v[E(738)].removeChild(v),o(I)}catch(O){v[E(738)]&&v[E(738)].removeChild(v),a(O)}},A=()=>{const E=m;v.parentNode&&v.parentNode[E(960)](v),a(new Error("Failed to create iframe for font detection"))};v[m(806)]("load",w),v[m(806)](m(381),A),document[m(1141)][m(896)](v)})}}b[c(428)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{get[c(711)](){const o=c;if(!this[o(567)].browserInfo[o(1508)])return 0;let a=this[o(600)].ops;return!a&&(a=this[o(696)](),this[o(600)].ops=a),a}constructor(o,a,m,v){const w=c;this.sessionData=o,this.metadataParams=a,this[w(496)]=m,this.localAgentAccessor=v,this[w(549)]=null,this[w(1327)]=null,this[w(1100)]=null,this[w(1178)]=null,this[w(1120)]=null,this.isBatterySupported=null,this[w(1187)]=null,this[w(358)]=null,this.batteryChargingTime=null,this[w(1346)]=null,this[w(1469)]=new Map,this.lieTests={},this[w(485)]=null,this[w(717)]=new Set([w(1121),w(1104),"audio","audioBaseLatency",w(457),w(1385),w(356),w(807),w(568),w(1411),w(1210),w(1127),w(1031),w(639),w(663),w(834),w(1070),w(969),w(1289),"invertedColors","languages",w(1446),"monochrome",w(411),"osCpu",w(1371),w(1057),w(492),w(516),w(1285),w(885),"screenFrame","screenResolution","sessionStorage",w(658),w(1240),w(1230),w(354),w(847)]),this[w(1393)]=-1,this[w(726)]=0,this[w(604)]=0,this[w(437)]=[],this[w(509)]=[],this.audioOutputDevices=[],this[w(367)]=new Map,this[w(1337)]=null,this[w(589)]=null,this[w(907)]=0,this.metadataQueue=new h[w(417)](1),this[w(1174)]=null,this[w(849)]=null,this.autoFillMeta=new b.AutofillDetector,this[w(624)]=null,this[w(1166)]=null}getDeviceAttributes(){return gt(this,void 0,void 0,function*(){const o=p;return this[o(646)][o(373)](()=>gt(this,void 0,void 0,function*(){const a=o;!this[a(1337)]&&(this.lastCalculatedMetadata=yield this.calculateDeviceMetadata(),h._POSignalsUtils[a(867)][a(1300)](a(430)),h[a(631)][a(867)][a(1300)](a(879)+this.deviceId),h[a(631)][a(867)][a(1300)](a(875)+this[a(1327)]),this[a(600)].closeTrustStore());const m=typeof window!==a(480)&&window[a(342)]&&typeof window[a(342)][a(368)]===a(497)?window[a(342)][a(368)]:null;return this.lastCalculatedMetadata&&(this.lastCalculatedMetadata[a(1019)]=m),this[a(600)]&&this[a(600)][a(1384)]&&(yield this[a(377)]()),yield this[a(1320)](),this[a(600)]&&this[a(600)][a(945)]&&this[a(395)](),this[a(600)][a(1472)]&&(this[a(1174)]=JSON.stringify(this[a(1337)])),this[a(1337)]}))})}getGeoLocationData(){var o,a,m,v;return gt(this,void 0,void 0,function*(){const w=p;this[w(1337)]=Object.assign(Object.assign({},this[w(1337)]),{htmlGeoLocation_latitude:void 0,htmlGeoLocation_longitude:void 0,htmlGeoLocation_accuracy:void 0,htmlGeoLocation_speed:void 0,htmlGeoLocation_heading:void 0,htmlGeoLocation_timestamp:void 0,htmlGeoLocation_ErrorMessage:"",htmlGeoLocation_ErrorCode:""});const A=(D,V="")=>{const j=w,L=D[j(368)]>255?D[j(1106)](0,252)+j(360):D;return this[j(1337)].htmlGeoLocation_ErrorMessage=L,this[j(1337)][j(894)]=V,{status:j(381),message:L}},E=D=>{const V=w;switch(D){case 1:return A(V(607),V(1287));case 2:return A(V(756),V(1171));case 3:return A(V(805),V(591));default:return A(V(1197),V(1171))}};if(!navigator[w(597)])return A("Geolocation API is not supported by this browser.",w(933));const O=this[w(1337)][w(1379)].toLowerCase(),T=O[w(1461)](w(1084)),M=O[w(1461)](w(1478));let P=!1;const x=yield navigator[w(1184)][w(410)]({name:w(597)});if(this[w(1337)][w(917)]=x[w(628)],x[w(628)]===w(338))return A(w(1313)+x[w(628)]+w(714)+O+"'.","PERMISSION_DENIED");const I=this[w(600)][w(1302)]();if(I)try{const D=JSON.parse(I);if(D&&D.latitude&&D[w(1028)])this[w(1337)][w(675)]=D[w(398)]?parseFloat(D.latitude[w(1525)](2)):null,this[w(1337)][w(958)]=D[w(1028)]?parseFloat(D[w(1028)][w(1525)](2)):null,this[w(1337)].htmlGeoLocation_accuracy=(o=D[w(801)])!==null&&o!==void 0?o:null,this[w(1337)][w(703)]=(a=D.speed)!==null&&a!==void 0?a:null,this[w(1337)][w(314)]=(m=D.heading)!==null&&m!==void 0?m:null,this[w(1337)][w(651)]=(v=D[w(456)])!==null&&v!==void 0?v:null,delete this.lastCalculatedMetadata[w(1092)],delete this[w(1337)][w(894)],P=!0;else if(D&&D.error_code)return P=!1,E(D[w(1530)])}catch(D){h._POSignalsUtils.Logger[w(1300)]("Invalid geoData JSON in session storage:",D)}if(x[w(628)]==="granted")return yield new Promise(D=>{const V={timeout:500},j=(L=1)=>{const U=p;navigator.geolocation[U(942)](F=>{const W=U;var J;const{latitude:$,longitude:ne,accuracy:ae,speed:te,heading:ie}=F[W(481)];if((!$||!ne||$===0||ne===0)&&(T||M)&&L===1)return j(2);this[W(1337)].htmlGeoLocation_latitude=$?parseFloat($[W(1525)](2)):void 0,this[W(1337)].htmlGeoLocation_longitude=ne?parseFloat(ne[W(1525)](2)):void 0,this.lastCalculatedMetadata.htmlGeoLocation_accuracy=ae,this[W(1337)].htmlGeoLocation_speed=te,this.lastCalculatedMetadata.htmlGeoLocation_heading=ie,this[W(1337)].htmlGeoLocation_timestamp=(J=F[W(456)])!==null&&J!==void 0?J:null,delete this[W(1337)][W(1092)],delete this[W(1337)][W(894)],P=!0,D({status:W(454)})},F=>{D(E(F[U(1416)])),P=!1},V)};j()});if(!P)return A(w(1313)+x[w(628)]+w(1234)+O+"'",w(1171))})}refreshDeviceAttributes(){return gt(this,void 0,void 0,function*(){const o=p;yield this[o(1383)]();const a=typeof window<"u"&&window[o(342)]&&typeof window.history[o(368)]===o(497)?window[o(342)][o(368)]:null;this.lastCalculatedMetadata&&(this[o(1337)][o(1019)]=a);const m=this[o(1186)][o(479)]();Object.assign(this.lastCalculatedMetadata,m)})}[c(1383)](){return gt(this,void 0,void 0,function*(){const o=p,a=160,m=window[o(883)]-window[o(1330)]>a,v=window[o(1332)]-window.innerHeight>a,w=o(m?421:1109);this[o(1337)][o(999)]=o(m||v?330:1474),this[o(1337)][o(918)]=m||v?w:o(477)})}[c(994)](){return gt(this,void 0,void 0,function*(){const o=p;return this[o(646)][o(373)](()=>gt(this,void 0,void 0,function*(){const a=o;if(this[a(907)]>=5)return this.localAgentJwt;if(this[a(600)][a(1011)])return!this[a(589)]&&(this[a(589)]=yield this[a(1076)][a(1292)]()),this[a(907)]++,this[a(589)]}))})}[c(795)](){return{identifier:"x1",key:"Xq7tSbjB517mhZwt"}}getSerializedDeviceAttributes(){return this[c(1174)]}[c(1329)](){return gt(this,void 0,void 0,function*(){const o=p;this[o(485)]=navigator[o(597)]!=null;const a=this[o(567)][o(788)],m=[this.sessionData[o(324)]().catch(w=>{const A=o;h[A(631)][A(867)][A(1300)](A(694),w)}),this[o(1441)](a)[o(689)](w=>{const A=o;h[A(631)][A(867)][A(1300)]("failed to get fingerprint info",w.message)}),this[o(1154)]()[o(689)](w=>{const A=o;h[A(631)][A(867)].info(A(1485),w[A(768)])}),b[o(1003)][o(1304)]()[o(689)](w=>h._POSignalsUtils[o(867)][o(1300)](o(916),w)),this[o(418)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(1276),w)),new b[o(1459)](a)[o(627)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(537),w)),new b[o(1004)](a)[o(328)]().catch(w=>h._POSignalsUtils[o(867)][o(1300)]("failed to get lies results",w)),this.audioIntVideoInit()[o(689)](w=>h[o(631)].Logger.info(o(387),w)),this[o(508)]()[o(689)](w=>h[o(631)][o(867)][o(1300)](o(503),w)),this[o(1339)](a)[o(689)](w=>h._POSignalsUtils[o(867)].info(o(757),w)),this[o(625)]()[o(689)](w=>{const A=o;return h[A(631)][A(867)][A(1300)]("failed to get voices info",w),0})];[this[o(549)],this.fingerPrint,this[o(750)],this[o(1051)],this[o(1184)],this[o(1469)],this[o(1033)],,,this[o(624)],this[o(1166)]]=yield Promise[o(683)](m),this[o(1327)]=this.sessionData.getDeviceCreatedAt();const v={ops:this.OPS,devicePixelRatio:window[o(1209)],screenWidth:window[o(405)][o(1431)],screenHeight:window[o(405)][o(507)]};return h[o(631)][o(1139)][o(872)](v,screen,!1),Object[o(1312)](Object[o(1312)](Object[o(1312)](Object.assign({deviceId:this[o(549)],device_created_ts:this[o(1327)],deviceType:this[o(567)][o(419)].deviceType,osVersion:(this[o(567)][o(419)][o(1311)]+" "+this[o(567)][o(419)][o(719)])[o(1451)]()||"",externalIdentifiers:this[o(496)],origin:location[o(1434)],href:location.href},yield this[o(445)](a)),this[o(393)]()),this.getSensorsMetadata()),v)})}[c(508)](){return gt(this,void 0,void 0,function*(){const o=p,a=this;yield h[o(631)].Util[o(989)](50,new Promise((m,v)=>{const w=o;navigator[w(1268)]?(this[w(1404)]=!0,navigator.getBattery()[w(804)](A=>{const E=w;A&&(a.batteryLevel=A[E(1137)],a[E(358)]=A[E(944)],a[E(1146)]=A.chargingTime,a[E(1346)]=A[E(1397)]),m()})[w(689)](A=>{const E=w;h[E(631)][E(867)][E(1300)](E(630)+A),m()})):(h._POSignalsUtils[w(867)][w(1300)](w(1444)),m())}))})}[c(1336)](){const o=c,a=/^((?!chrome|android).)*safari/i[o(431)](navigator[o(641)]);return!h._POSignalsUtils[o(1139)].inIframe()||!a}getRTCPeerConnection(){const o=c;let a=window[o(1118)]||window[o(1394)]||window[o(1223)];if(!a){const m=window["iframe.contentWindow"];m&&(a=m[o(1118)]||m.mozRTCPeerConnection||m[o(1223)])}return a}[c(482)](){const o=c,a=this;try{const m={},v=this[o(1369)](),w={optional:[{RtpDataChannels:!0}]},A={iceServers:[{urls:this[o(567)][o(556)][o(1451)]()}]},E=new v(A,w);E[o(1499)]=O=>{const T=o,M=1;if(O[T(1188)]){const P=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/,x=P[T(1079)](O[T(1188)][T(1188)])[1];m[x]===void 0&&(O[T(1188)][T(1188)][T(1265)]("host")>0?a[T(367)][T(525)]("WEB_RTC_HOST_IP",x):O[T(1188)][T(1188)][T(1265)]("srflx")>0&&a[T(367)][T(525)]("WEB_RTC_SRFLX_IP",x)),m[x]=!0}},E[o(1422)](""),E[o(1489)](function(O){E.setLocalDescription(O,function(){},function(){})},function(){})}catch{}}[c(974)](){return gt(this,void 0,void 0,function*(){const o=p,a=this;yield h[o(631)][o(1139)][o(989)](50,new Promise((m,v)=>{const w=o;if(!this[w(1336)]()){h._POSignalsUtils[w(867)][w(1420)](w(986)),m();return}if(!navigator[w(855)]||!navigator.mediaDevices[w(1052)]){h[w(631)][w(867)][w(1420)](w(1331)),m();return}navigator.mediaDevices[w(1052)]()[w(804)](A=>{const E=w;A[E(892)](O=>{const T=E;O[T(790)]&&(O[T(790)][T(1479)]()=="audioinput"?(a[T(1100)]=!0,a[T(604)]++,O[T(1078)]&&a.audioInputDevices[T(939)](O.label)):O[T(790)][T(1479)]()==T(562)?(a.hasWebcam=!0,a[T(726)]++,O[T(1078)]&&a.videoInputDevices[T(939)](O.label)):O[T(790)][T(1479)]()=="audiooutput"&&(a[T(1178)]=!0,a.numberOfAudioDevices++,O[T(1078)]&&a[T(938)][T(939)](O[T(1078)])))}),m()})[w(689)](A=>{const E=w;h[E(631)][E(867)][E(1300)]("enumerateDevices failed",A),m()})}))})}[c(1441)](o){return gt(this,void 0,void 0,function*(){const a=p;if(o[a(438)](a(1009)))return Promise[a(1347)]("");const m=new Promise((w,A)=>gt(this,void 0,void 0,function*(){const E=a;try{const O=yield h[E(389)][E(925)](),T=yield O[E(996)]();this[E(687)]=T[E(453)],this[E(1418)]=T[E(953)],w(T[E(453)])}catch(O){h[E(631)][E(867)][E(1300)](E(623)+O);const T={err:O,message:E(329)};A(T)}})),v=new Promise((w,A)=>gt(this,void 0,void 0,function*(){const E=a;yield h._POSignalsUtils[E(1139)][E(929)](this[E(567)].fingerprintTimeoutMillis);const O={message:E(873)};A(O)}));return yield Promise.race([m,v])})}[c(1154)](){return gt(this,void 0,void 0,function*(){return new Promise((o,a)=>{const m=p;h.BroprintJS[m(640)]().then(v=>{const w=m;this[w(750)]=v,o(v)})[m(689)](v=>{const w=m;h[w(631)][w(867)].info("Failed to get Fingerprint from getCurrentBrowserFingerPrint",v),a(v)})})})}[c(1339)](o){return gt(this,void 0,void 0,function*(){const a=p;if(o[a(438)]("fontFingerprint"))return Promise.resolve(null);try{const m=new b[a(428)],v=yield m.getQuickFingerprint();return this[a(624)]=v,v}catch(m){return h[a(631)][a(867)].info(a(1375)+m),null}})}getSensorsMetadata(){const o=c,a={};return this[o(592)](a,o(760),()=>o(335)in window),this[o(592)](a,"IS_TOUCH_DEVICE",()=>"ontouchstart"in window),!window[o(1401)]&&this[o(592)](a,o(665),()=>!1),!window[o(886)]&&this.flatAndAddMetadata(a,o(532),()=>!1),this[o(592)](a,o(761),()=>o(486)in window),a}getIdentificationMetadata(o){return gt(this,void 0,void 0,function*(){const a=p,m=this,v={};this[a(592)](v,"FINGER_PRINT",()=>this[a(687)]),this[a(592)](v,a(501),()=>this[a(750)]),this[a(624)]&&this[a(592)](v,a(1192),()=>{const I=a;return this[I(624)][I(447)]}),this[a(567)].browserInfo[a(869)]&&(this[a(592)](v,a(1034),()=>{const I=a;return this[I(567)][I(419)].osName}),this.flatAndAddMetadata(v,a(884),()=>{const I=a;return this[I(567)][I(419)][I(719)]})),this[a(567)][a(419)][a(869)]&&(this[a(592)](v,a(901),()=>{const I=a;return this.metadataParams[I(419)][I(1143)]}),this[a(592)](v,"DEVICE_VENDOR",()=>{const I=a;return this[I(567)][I(419)][I(900)]}),this[a(592)](v,"DEVICE_CATEGORY",()=>{const I=a;return this.metadataParams[I(419)][I(1399)]})),this[a(567)][a(419)][a(869)]&&(this[a(592)](v,a(655),()=>{const I=a;return this[I(567)][I(419)][I(975)]}),this[a(592)](v,"BROWSER_ENGINE_VERSION",()=>{const I=a;return this.metadataParams[I(419)][I(1495)]})),this[a(567)][a(419)].userAgentData&&this.flatAndAddMetadata(v,"CPU_ARCHITECTURE",()=>{const I=a;return this.metadataParams[I(419)][I(822)]}),this.metadataParams[a(419)].userAgentData&&(this[a(592)](v,"BROWSER_NAME",()=>{const I=a;return this[I(567)][I(419)].browserName}),this[a(592)](v,a(863),()=>{const I=a;return this.metadataParams[I(419)][I(866)]}),this.flatAndAddMetadata(v,a(1101),()=>{const I=a;return this[I(567)][I(419)][I(690)]}),this[a(592)](v,"BROWSER_TYPE",()=>{const I=a;return this[I(567)][I(419)][I(659)]}));const w=new b[a(1408)];this[a(592)](v,a(1328),()=>{const I=a;return w[I(1044)](this.metadataParams.browserInfo[I(869)].ua)}),this[a(592)](v,"IS_BOT",()=>{const I=a;return w[I(1203)](this.metadataParams[I(419)][I(869)].ua)}),this.flatAndAddMetadata(v,a(870),()=>{const I=a;return w.isChromeFamily(this[I(567)][I(419)][I(869)][I(1450)])}),this[a(592)](v,"IS_ELECTRON_FAMILY",()=>{const I=a;return w[I(1047)](this[I(567)][I(419)].userAgentData.ua)}),this.flatAndAddMetadata(v,a(598),()=>navigator.vendor),this[a(592)](v,a(1114),()=>{const I=a;return navigator[I(492)]?navigator[I(492)][I(368)]:null}),this.flatAndAddMetadata(v,a(1035),()=>{const I=a;return navigator.mimeTypes?navigator[I(614)][I(368)]:null}),this[a(592)](v,a(1400),()=>{const I=a;return navigator[I(359)]||navigator[I(351)]||navigator.browserLanguage||navigator.systemLanguage}),this.flatAndAddMetadata(v,a(784),()=>navigator[a(1402)]);const A=navigator[a(1402)]?navigator.languages[a(368)]:0;this[a(592)](v,"NAVIGATOR_LANGUAGES_COUNT",()=>A);const E=this[a(1166)]!==null?this[a(1166)]:0;this[a(592)](v,a(1477),()=>E),this[a(592)](v,"NAVIGATOR_MAX_TOUCH_POINTS",()=>{const I=a;return navigator[I(858)]||navigator[I(1238)]}),this[a(592)](v,a(1438),()=>navigator[a(965)]||navigator.msPointerEnabled),this[a(592)](v,a(880),()=>navigator.webdriver),this[a(592)](v,a(1249),()=>navigator[a(1070)]),this[a(592)](v,a(490),()=>navigator[a(1218)]!=null),this[a(592)](v,a(593),()=>"Notification"in window),this[a(592)](v,a(621),()=>navigator[a(1134)]),this.flatAndAddMetadata(v,a(1098),()=>navigator[a(1014)]),this.flatAndAddMetadata(v,a(830),()=>navigator[a(1048)]),this.flatAndAddMetadata(v,a(702),()=>navigator[a(563)]),this.flatAndAddMetadata(v,a(903),()=>navigator[a(1057)]),this[a(592)](v,a(1338),()=>navigator[a(1088)]),this[a(592)](v,a(363),()=>navigator[a(641)]),this.flatAndAddMetadata(v,"NAVIGATOR_PDF_VIEWER_ENABLED",()=>navigator[a(1371)]),this[a(592)](v,a(442),()=>navigator[a(1127)]),this[a(592)](v,a(802),()=>{const I=a;return navigator[I(606)]?navigator[I(606)].rtt:null}),!o[a(438)]("modernizr")&&(yield this.safeAddModernizrFeatures(v));const O=window[a(923)]||window[a(1428)];O?this[a(592)](v,"JS_CHALLENGE",()=>O):this.flatAndAddMetadata(v,a(985),()=>a(477)),this[a(592)](v,"BROWSER_TAB_HISTORY_LENGTH",()=>{const I=a;return typeof window!==I(480)&&window[I(342)]&&typeof window[I(342)][I(368)]=="number"?window[I(342)][I(368)]:null});const T=new b.WebGLMetadata;if(this[a(592)](v,"IS_WEBGL",()=>T[a(1191)]()),this[a(592)](v,"WEBGLVENDORANDRENDERER",()=>{const I=a;return T.getWebglData().vendor+"~"+T[I(1083)]()[I(652)]}),this[a(592)](v,a(680),()=>T[a(1125)]()),T[a(1125)]()?this[a(592)](v,a(832),()=>{const I=a;return T[I(1083)]()[I(1230)]+"~"+T[I(1083)]().renderer}):this[a(592)](v,"WEBGL2VENDORANDRENDERER",()=>""),this[a(592)](v,"WEBGL_VERSION",()=>{const I=a;return T[I(1083)]()[I(723)]}),this.flatAndAddMetadata(v,a(920),()=>T.getWebglData().shadingLanguageVersion),this[a(592)](v,a(895),()=>{const I=a;return T.getWebglData()[I(791)].length}),this[a(592)](v,"WEBGL_MAXTEXTURESIZE",()=>{const I=a;return T[I(1083)]()[I(469)]}),this[a(592)](v,a(997),()=>{const I=a;return T[I(1083)]()[I(1373)]}),this[a(592)](v,a(1259),()=>{const I=a;return T.getWebglData()[I(1398)]}),this[a(592)](v,a(667),()=>{const I=a;return T[I(1083)]()[I(577)]}),this[a(592)](v,a(1301),()=>T[a(1083)]().maxCombinedTextureImageUnits),this[a(592)](v,a(534),()=>T.getWebglData().maxVertexAttribs),this[a(592)](v,"WEBGL_MAXVARYINGVECTORS",()=>{const I=a;return T[I(1083)]()[I(811)]}),this[a(592)](v,a(1094),()=>{const I=a;return T[I(1083)]()[I(506)]}),this[a(592)](v,a(664),()=>{const I=a;return T[I(1083)]()[I(476)]}),this.flatAndAddMetadata(v,a(1130),()=>T[a(648)]()),this.flatAndAddMetadata(v,a(1494),()=>T[a(1502)]()),this.flatAndAddMetadata(v,"HASLIEDOS",()=>T[a(993)]()),this.flatAndAddMetadata(v,a(1105),()=>T.getHasLiedBrowser()),this[a(1418)])for(const I in this.fingerPrintComponents){if(!this[a(1418)][a(1417)](I))continue;const D=this[a(1418)][I];I==a(663)?this[a(592)](v,a(414),()=>{const V=a;return D[V(584)][V(368)]}):I==a(457)?this[a(592)](v,"IS_CANVAS",()=>D.value!=null):I=="screenResolution"&&D[a(584)]&&D.value.length?this.flatAndAddMetadata(v,a(602),()=>D.value.join(",")):I=="touchSupport"&&D.value?this[a(592)](v,a(853),()=>D.value):I=="audio"&&D[a(584)]?this[a(592)](v,a(494),()=>D[a(584)]):I=="osCpu"&&D[a(584)]?this[a(592)](v,a(385),()=>D[a(584)]):I=="cookiesEnabled"&&D[a(584)]?this[a(592)](v,a(348),()=>D[a(584)]):I==a(1321)&&D[a(584)]&&D[a(584)][a(368)]?this[a(592)](v,a(449),()=>{const V=a;return D[V(584)][V(1512)](",")}):I==a(1104)&&D[a(584)]?this[a(592)](v,a(510),()=>D[a(584)]):I=="domBlockers"&&D[a(1298)]?this[a(592)](v,"DOM_BLOCKERS",()=>D[a(1298)]):I==a(639)&&D[a(584)]?this[a(592)](v,"FONT_PREFERENCES",()=>D[a(584)]):I==a(1371)&&D.value?this.flatAndAddMetadata(v,a(932),()=>D[a(584)]):I=="vendorFlavors"&&D[a(584)]&&D[a(584)].length?this.flatAndAddMetadata(v,a(844),()=>{const V=a;return D[V(584)][V(1512)](",")}):I==a(963)&&D[a(584)]?this[a(592)](v,a(1468),()=>D[a(584)].renderer):m[a(717)].has(I)&&I!=null&&this[a(592)](v,I[a(720)](),()=>D.value)}this[a(592)](v,a(1254),()=>this[a(1051)]),this[a(592)](v,"IS_WEB_GLSTATUS",()=>this[a(1393)]);const M={selenium:navigator[a(859)]||h[a(631)][a(1139)][a(1503)](window[a(1306)][a(1157)],a(859))||"",phantomjs:{_phantom:window[a(441)]||"",__phantomas:window.__phantomas||"",callPhantom:window[a(1152)]||""},nodejs:{Buffer:window[a(1131)]||""},couchjs:{emit:window[a(1108)]||""},rhino:{spawn:window[a(321)]||""},chromium:{domAutomationController:window[a(1221)]||"",domAutomation:window[a(911)]||""},outerWidth:window.outerWidth,outerHeight:window.outerHeight};this[a(592)](v,a(1228),()=>M),this[a(592)](v,a(1228),()=>this[a(1469)]),this.flatAndAddMetadata(v,a(794),()=>{const I=a,D={};for(const V in this.lieTests)D[V]=JSON[I(833)](this[I(1033)][V]);return Object[I(345)](D)[I(368)]>0?D:null}),this[a(592)](v,a(1099),()=>new b[a(704)](o)[a(1165)]()),this[a(592)](v,"REF_LINK",()=>document[a(1324)]),this[a(592)](v,a(940),()=>{const I=a,D={length:navigator.plugins.length,details:[]};for(let V=0;V<D[I(368)];V++)D[I(1204)][I(939)]({length:navigator.plugins[V][I(368)],name:navigator[I(492)][V][I(1246)],version:navigator[I(492)][V][I(317)],filename:navigator[I(492)][V][I(1291)]});return D}),this[a(592)](v,a(737),()=>this[a(604)]),this.flatAndAddMetadata(v,"VIDEO",()=>this[a(726)]),this.videoInputDevices&&this[a(437)][a(368)]>0&&this[a(592)](v,a(699),()=>{const I=a;return this.videoInputDevices[I(861)]()}),this.audioInputDevices&&this[a(509)][a(368)]>0&&this[a(592)](v,a(1055),()=>this[a(509)].toString()),this[a(938)]&&this.audioOutputDevices[a(368)]>0&&this[a(592)](v,a(333),()=>{const I=a;return this[I(938)][I(861)]()}),this.flatAndAddMetadata(v,"MEDIA_CODEC_MP4_AVC1",()=>{const I=a;return this[I(1119)](I(1170))}),this[a(592)](v,a(1241),()=>{const I=a;return this[I(1119)](I(1067))}),this[a(592)](v,"MEDIA_CODEC_AAC",()=>{const I=a;return this.getMediaCodec(I(1429))});const P=this.metadataParams[a(691)];for(const I in P)P[a(1417)](I)&&this[a(592)](v,"MEDIA_CODEC_"+I,()=>this.getMediaCodec(P[I]));window.performance&&window[a(670)][a(948)]&&(this.flatAndAddMetadata(v,a(742),()=>{const I=a;return window[I(670)][I(948)][I(612)]}),this[a(592)](v,"MEMORY_TOTAL_HEAP_SIZE",()=>{const I=a;return window[I(670)][I(948)].totalJSHeapSize}),this[a(592)](v,"MEMORY_USED_HEAP_SIZE",()=>{const I=a;return window[I(670)][I(948)][I(841)]})),this[a(592)](v,a(1061),()=>navigator[a(1262)]),this[a(592)](v,a(626),()=>b[a(798)].seleniumInDocument()),this[a(592)](v,a(1480),()=>{const I=a;return b[I(798)][I(1113)]()}),this[a(592)](v,a(436),()=>{const I=a;return b[I(798)][I(638)]()}),this[a(592)](v,a(1012),()=>b[a(798)].seleniumSequentum()),this.flatAndAddMetadata(v,"DOCUMENT_ELEMENT_SELENIUM",()=>{const I=a;return h[I(631)].Util[I(1503)](window[I(1306)].documentElement,I(1307))}),this[a(592)](v,a(1075),()=>{const I=a;return h[I(631)][I(1139)].getAttribute(window[I(1306)][I(1157)],I(859))}),this[a(592)](v,a(415),()=>{const I=a;return h._POSignalsUtils[I(1139)][I(1503)](window[I(1306)].documentElement,I(1405))}),this.flatAndAddMetadata(v,a(836),()=>!!h[a(631)][a(1139)][a(1503)](document.getElementsByTagName("html")[0],a(859))),this[a(592)](v,a(1142),()=>!!window.geb),this[a(592)](v,a(1252),()=>!!window[a(326)]),this.flatAndAddMetadata(v,a(463),()=>!!window[a(1406)]),this[a(592)](v,a(1440),()=>!!window[a(1211)]),this[a(592)](v,a(1437),()=>a(1437)in document),this[a(592)](v,a(634),()=>"trustTokenOperationError"in XMLHttpRequest[a(622)]),this[a(592)](v,a(498),()=>a(498)in XMLHttpRequest.prototype),this[a(592)](v,"trustToken",()=>a(1006)in HTMLIFrameElement[a(622)]),this[a(592)](v,"localStorage.length",()=>localStorage[a(368)]),this[a(592)](v,a(370),()=>sessionStorage[a(368)]),this[a(600)][a(1037)].forEach(I=>{const D=a;this.flatAndAddMetadata(v,I[D(720)]()+D(557),()=>!0)}),this[a(592)](v,a(746),()=>!!this[a(1369)]()),this[a(567)][a(556)]&&this[a(567)][a(556)].length>0&&(this[a(482)](),this[a(367)][a(892)]((I,D)=>{D!=null&&I!=null&&this.flatAndAddMetadata(v,D,()=>I)}),this[a(367)][a(725)]()),window[a(773)]&&this[a(592)](v,a(471),()=>{const I=a,D=window[I(773)]("(min-width: "+(window[I(1330)]-1)+I(1060));return{matches:D[I(1256)],media:D.media}}),this[a(478)](v,o),window[a(362)]&&this.flatAndAddMetadata(v,a(1341),()=>{const I=a;return window[I(362)][I(1049)]}),this[a(592)](v,a(1062),()=>window[a(771)]&&a(1151)in window[a(771)]),this[a(592)](v,"HAS_CHROME_CSI",()=>window[a(771)]&&a(1430)in window.chrome),this[a(592)](v,a(877),()=>window[a(771)]&&a(610)in window[a(771)]),this.flatAndAddMetadata(v,a(455),()=>window[a(771)]&&a(1128)in window[a(771)]),yield this[a(1350)](v),this[a(592)](v,a(383),()=>!!navigator[a(780)]),this[a(592)](v,a(320),()=>!!navigator.hid),this[a(592)](v,a(505),()=>!!navigator.serial),this.flatAndAddMetadata(v,a(1153),()=>!!navigator.presentation);try{if(!o.has(a(736))&&h.Util[a(1136)](document[a(1388)])){const{id:I,version:D}=yield h[a(1139)][a(989)](100,document.interestCohort());this.flatAndAddMetadata(v,a(1181),()=>I),this.flatAndAddMetadata(v,a(786),()=>D)}}catch{}for(const I in this[a(567)][a(548)])this.flatAndAddMetadata(v,I,()=>h[a(631)][a(1139)][a(972)](window,this[a(567)][a(548)][I]));const x=this.metadataParams.propertyDescriptors;for(const I in x){if(!x[a(1417)](I))continue;const D=I===a(1447)?window:window[I];D&&this[a(375)](D,I.toUpperCase()+"_PROPERTY_DESCRIPTOR",x[I],v)}return v})}[c(1350)](o){return gt(this,void 0,void 0,function*(){const a=p;try{const m=navigator[a(869)];if(!m)return;this[a(592)](o,a(1296),()=>m[a(1057)]),this.flatAndAddMetadata(o,a(1355),()=>m[a(512)]);const v=m[a(1016)];if(!v)return;for(let w=0;w<v[a(368)];w++)if(v[w].hasOwnProperty("brand")&&v[w][a(1417)](a(317))){const A=v[w][a(1374)]+":"+v[w][a(317)];this.flatAndAddMetadata(o,a(881)+w,()=>A)}if(typeof m[a(1391)]===a(1064)){const w=[a(1104),a(1294),a(555),a(1340),a(957),"formFactor"],A=yield m[a(1391)](w);if(this[a(592)](o,a(838),()=>A[a(1104)]),this[a(592)](o,a(429),()=>A[a(1294)]),this[a(592)](o,a(950),()=>A.model),this[a(592)](o,"NAVIGATOR_CLIENT_HINTS_PLATFORM_VERSION",()=>A[a(1340)]),this[a(592)](o,a(1270),()=>{const E=a;return A[E(334)]?Array[E(553)](A[E(334)])?A[E(334)][E(1512)](", "):String(A[E(334)]):""}),A.fullVersionList){const E=A.fullVersionList[a(341)](O=>O.brand+" v"+O[a(317)])[a(1512)]("; ");this[a(592)](o,a(558),()=>E)}}}catch(m){h[a(631)][a(867)][a(1300)](a(1529),m)}})}[c(375)](o,a,m,v){const w=c;try{for(const A of m)this[w(592)](v,a+"_"+A[w(720)](),()=>{const E=w,O=o[E(622)]?o[E(622)]:o,T=Object.getOwnPropertyDescriptor(O,A);if(T){const M=T[E(996)]?T[E(996)][E(861)]():void 0;return JSON[E(833)]({configurable:T[E(1507)],enumerable:T[E(1325)],value:T[E(584)],writable:T[E(815)],getter:M!=null&&M.length<100?M:void 0})}return"undefined"})}catch(A){h[w(631)][w(867)][w(1300)]("failed to add properties descriptor",A)}}addIframeData(o,a){const m=c;if(!a[m(438)]("IFRAME_DATA"))try{const v=h[m(631)][m(1139)][m(325)](m(697));if(!v)return;v[m(882)]="blank page",document[m(1141)][m(896)](v),this[m(592)](o,m(679),()=>{const w=m;return typeof v[w(772)][w(771)]}),this[m(592)](o,"IFRAME_WIDTH",()=>{const w=m;return v[w(772)][w(405)][w(1431)]}),this[m(592)](o,m(1022),()=>{const w=m;return v[w(772)][w(405)][w(507)]}),v[m(1283)]()}catch(v){h[m(631)].Logger[m(1300)](m(1147),v)}}[c(418)](){return gt(this,void 0,void 0,function*(){const o=p,a={},m=[o(1248),o(1085),o(1481),o(1045),o(1326),o(448),o(1217),o(597),o(783),o(642),o(1024),o(1279),o(698),"payment-handler","persistent-storage",o(939)],v=[];if(navigator[o(1184)])for(const w in m){const A=m[w];v.push(navigator[o(1184)][o(410)]({name:A})[o(804)](E=>{const O=o;a[A]=E[O(628)]})[o(689)](E=>{}))}try{yield Promise[o(683)](v)}catch(w){h[o(631)].Logger[o(1300)](w)}return a})}[c(1119)](o){const a=c,m=document[a(983)]("video");if(m&&m[a(327)])return m[a(327)](o)}[c(669)](o){return gt(this,void 0,void 0,function*(){const a=p;h[a(1257)]();const m=this,v=h[a(380)],w=v[a(1172)],A=v[a(585)];this[a(592)](o,a(1323),()=>v[a(893)]),this[a(592)](o,a(388),()=>v[a(1233)]),this[a(592)](o,a(839),()=>!!v[a(839)]),v.audio&&this.flatAndAddMetadata(o,"audio",()=>v.audio),this[a(592)](o,a(397),()=>{const T=a;return!!w("battery",navigator)||!!w(T(1268),navigator)}),this[a(592)](o,a(502),()=>v[a(666)]),this[a(592)](o,"context_menu",()=>v[a(1465)]),this[a(592)](o,a(1102),()=>v.cors),this[a(592)](o,a(946),()=>v.cryptography),this.flatAndAddMetadata(o,a(1029),()=>v[a(1164)]),this[a(592)](o,a(1198),()=>v[a(1054)]),this[a(592)](o,a(1500),()=>v.customevent),this.flatAndAddMetadata(o,"dart",()=>v.dart),this[a(592)](o,a(1288),()=>v[a(573)]),this[a(592)](o,a(809),()=>v[a(649)]);const E=yield this[a(1190)](a(1207));m[a(592)](o,"exif_orientation",()=>E),this[a(592)](o,a(700),()=>v[a(1273)]),v.forcetouch&&(this[a(592)](o,a(1126),()=>A(w("mouseforcewillbegin",window,!1),window)),this[a(592)](o,a(1145),()=>MouseEvent[a(616)]),this[a(592)](o,a(1180),()=>MouseEvent[a(1370)])),this.flatAndAddMetadata(o,a(718),()=>v[a(1315)]),this[a(592)](o,a(470),()=>v[a(1372)]),this[a(592)](o,a(599),()=>v[a(597)]),this[a(592)](o,a(1407),()=>v[a(1407)]);const O=yield this[a(1190)](a(382));m[a(592)](o,"indexed_db",()=>O),this[a(592)](o,a(1511),()=>v[a(748)]),this[a(592)](o,a(1484),()=>v[a(552)]),this[a(592)](o,a(961),()=>v[a(961)]),this[a(592)](o,a(491),()=>v[a(491)]),this.flatAndAddMetadata(o,"media_source",()=>"MediaSource"in window),this[a(592)](o,"message_channel",()=>v[a(1149)]),this[a(592)](o,a(571),()=>v[a(571)]),this[a(592)](o,a(741),()=>v[a(611)]),this.flatAndAddMetadata(o,"performance",()=>v.performance),this.flatAndAddMetadata(o,"pointer_events",()=>v[a(538)]),this[a(592)](o,a(927),()=>v[a(1236)]),this[a(592)](o,a(1277),()=>v[a(1277)]),this[a(592)](o,a(692),()=>v[a(905)]),this.flatAndAddMetadata(o,"quota_management",()=>v[a(845)]),this[a(592)](o,a(1091),()=>v[a(366)]),this[a(592)](o,a(1272),()=>v[a(824)]),this[a(592)](o,a(797),()=>v[a(1389)]),this[a(592)](o,a(1074),()=>v.typedarrays),this[a(592)](o,a(1218),()=>v[a(1218)]),this[a(592)](o,a(654),()=>!!v[a(654)]),v.video&&this[a(592)](o,a(654),()=>v.video),this[a(592)](o,a(959),()=>v.webgl),this[a(592)](o,a(426),()=>v[a(1439)]),this[a(592)](o,"x_domain_request",()=>v.xdomainrequest),this[a(592)](o,"matchmedia",()=>v[a(1454)])})}[c(393)](){const o=c,a={},m=navigator.connection||navigator[o(1463)]||navigator.webkitConnection;return this[o(592)](a,"NETWORK_TYPE",()=>m?m.type:null),this[o(592)](a,o(1111),()=>m?m[o(682)]:null),this[o(592)](a,o(661),()=>!!navigator[o(402)]),this[o(592)](a,o(1343),()=>this.hasSpeakers),this.flatAndAddMetadata(a,o(1026),()=>this[o(1100)]),this.flatAndAddMetadata(a,o(1123),()=>this[o(1120)]),this[o(1404)]&&(this.flatAndAddMetadata(a,"BATTERY_SUPPORTED",()=>this.isBatterySupported),this[o(592)](a,o(1357),()=>this[o(1187)]),this.flatAndAddMetadata(a,o(1206),()=>this[o(358)]),this[o(592)](a,o(347),()=>this[o(1146)]),this[o(592)](a,o(446),()=>this.batteryDischargingTime)),this[o(592)](a,o(1247),()=>this[o(485)]),this[o(592)](a,"IS_MOBILE",()=>{const v=o;return h._POSignalsUtils[v(1139)][v(1250)]}),this[o(592)](a,o(979),()=>{const v=o;return v(374)in document[v(1157)]}),window[o(773)]&&(this.flatAndAddMetadata(a,"HAS_FINE_POINTER",()=>window[o(773)]("(any-pointer: fine)")[o(1256)]),this[o(592)](a,"HAS_COARSE_POINTER",()=>window[o(773)]("(any-pointer: coarse)").matches),this[o(592)](a,o(386),()=>window[o(773)](o(391))[o(1256)])),this[o(592)](a,o(1185),()=>this[o(1184)]),this[o(592)](a,o(1386),()=>{const v=o;return window[v(773)](v(422))[v(1256)]?v(319):window[v(773)](v(930))[v(1256)]?v(409):void 0}),a}[c(579)](o,a,m){const v=c;try{const w=new Set(this.metadataParams[v(788)]||[]);a!=null&&m!=null&&!w[v(438)](a)&&(o[a]=m)}catch(w){h._POSignalsUtils.Logger[v(1300)]("Failed to add "+a+v(1333)+m+", "+w)}}[c(1190)](o){return gt(this,void 0,void 0,function*(){const a=p,m=new Promise(w=>{const A=p;try{h[A(380)].on(o,E=>{w(E)})}catch(E){w(null),h[A(631)][A(867)].info(A(1168)+o,E)}}),v=h[a(631)][a(1139)][a(929)](250)[a(804)](()=>null);return yield Promise[a(987)]([m,v])})}[c(592)](o,a,m){const v=c;try{const w=new Set(this[v(567)][v(788)]||[]);if(!a||w[v(438)](a))return;const A=m();if(typeof A===v(574)&&A!==null){const E=h._POSignalsUtils.Util[v(912)](A);for(const O in E)this[v(579)](o,a+"."+O,E[O])}else this.safeAddMetadata(o,a,A)}catch(w){h[v(631)][v(867)][v(1300)]("Failed to add "+a,w)}}[c(696)](){const o=c;let a=new Date,m=0,v;do m++,v=new Date()[o(1144)]()-a.getTime(),Math[o(998)](m*Math[o(605)]());while(v<500);const w=m/v;return h[o(631)][o(867)][o(1420)]("Ops : "+w),w}[c(395)](){const o=c,a=[{name:o(1096),value:!1,error:null},{name:o(684),value:!1,error:null},{name:o(1013),value:!1,error:null},{name:o(1395),value:!1,error:null}];!this[o(849)]&&(this.aiSignalsResult=a,this[o(1337)][o(1115)]=a,h.AiaSignals.detect()[o(804)](m=>{const v=o;this[v(849)]=m,this[v(1337)].aiaSignals=m})[o(689)](m=>{const v=o;h._POSignalsUtils.Logger.info(v(643),m)})),this[o(849)]&&(this.lastCalculatedMetadata[o(1115)]=this.aiSignalsResult)}static[c(1335)](){const o=c;return Math[o(1522)](.123)==1.4474840516030247&&Math[o(1297)](Math[o(677)])==.881373587019543&&Math.atan(2)==1.1071487177940904&&Math[o(751)](.5)==.5493061443340548&&Math[o(752)](Math.PI)==1.4645918875615231&&Math.cos(21*Math[o(840)])==-.4067775970251724&&Math[o(336)](492*Math[o(707)])==9199870313877772e292&&Math[o(566)](1)==1.718281828459045&&Math.hypot(6*Math.PI,-100)==101.76102278593319&&Math[o(1043)](Math.PI)==.4971498726941338&&Math[o(713)](Math.PI)==12246467991473532e-32&&Math[o(1476)](Math.PI)==11.548739357257748&&Math[o(608)](10*Math[o(707)])==-3.3537128705376014&&Math[o(1290)](.123)==.12238344189440875&&Math[o(523)](Math.PI,-100)==19275814160560204e-66}[c(625)](){return gt(this,void 0,void 0,function*(){return new Promise(o=>{const a=p;if(typeof window===a(480)||!window.speechSynthesis)return o(0);const m=window[a(340)][a(1163)]();if(m[a(368)]>0)o(m.length);else{const v=()=>{const w=a,A=window[w(340)][w(1163)]();A[w(368)]>0&&(window[w(340)][w(888)](w(956),v),o(A[w(368)]))};window[a(340)][a(806)]("voiceschanged",v),window[a(340)][a(1163)](),setTimeout(()=>{const w=a;window[w(340)].removeEventListener(w(956),v),o(0)},500)}})})}}b[c(846)]=u;class f{constructor(o,a){const m=c;this[m(435)]=o,this[m(1342)]=a,this.AGENT_BASE_URL=m(722),this[m(1528)]="/device"}getDevicePayload(){return gt(this,void 0,void 0,function*(){const o=p,a=this[o(902)]+":"+this[o(435)]+this.AGENT_DEVICE_URL,m=new AbortController,v=m[o(1239)],w=setTimeout(()=>m[o(657)](),this[o(1342)]);try{const A=yield fetch(a,{method:o(636),headers:{"Content-Type":o(874)},signal:v});if(!A.ok)return h[o(631)][o(867)].info(o(495)+A[o(1445)]),void 0;const E=yield A[o(1299)]();return h[o(631)][o(867)][o(1300)]("calculated workstation device attributes."),E}catch(A){return A.name==="AbortError"?h[o(631)][o(867)].error("Failed to fetch the Workstation data. Request timed out after "+this[o(1342)]+"ms"):h[o(631)][o(867)].info(o(1103)+A[o(768)]),void 0}finally{clearTimeout(w)}})}}b[c(474)]=f})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{static[c(1363)](){const s=c,o=["__webdriver_evaluate",s(1264),s(1380),"__webdriver_script_func",s(583),s(1462),s(818),"__webdriver_unwrapped",s(1202),"__selenium_unwrapped",s(1455)];for(const a of o)if(document[a])return!0;return!1}static[c(1113)](){const s=c,o=[s(441),"__nightmare",s(980),s(1152),"calledSelenium","callSelenium","_Selenium_IDE_Recorder"];for(const a of o)if(window[a])return!0;return!1}static[c(638)](){const s=c,o=["webdriver",s(1202),s(860),s(1264),"__fxdriver_evaluate",s(818),s(1435),s(715),s(1455),"_Selenium_IDE_Recorder",s(980),s(1322),s(475),s(915),s(891),s(1303),s(775),s(1492),s(837),s(1317),"__webdriver_script_fn","__$webdriverAsyncExecutor",s(1493),s(595),s(852),s(1318),s(440)];for(const a of o)if(navigator[a])return!0;return!1}static[c(450)](){const s=c;return window[s(1424)]&&window[s(1424)][s(861)]()&&window[s(1424)][s(861)]()[s(1265)]("Sequentum")!=-1}}b[c(798)]=u})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p,u=c(555),f=c(1246),s=c(322),o=c(1230),a=c(317),m=c(512),v=c(878),w="crawler",A="cli",E=c(1179),O=c(1082),T=c(1475),M=c(315),P=c(835),x=Object.freeze({browser:[[/(wget|curl|lynx|elinks|httpie)[\/ ]\(?([\w\.-]+)/i],[f,a,[s,A]]]}),I=Object[c(951)]({browser:[[/((?:ahrefs|amazon|bing|cc|dot|duckduck|exa|facebook|gpt|mj12|mojeek|oai-search|perplexity|semrush|seznam)bot)\/([\w\.-]+)/i,/(applebot(?:-extended)?)\/([\w\.]+)/i,/(baiduspider)[-imagevdonsfcpr]{0,6}\/([\w\.]+)/i,/(claude(?:bot|-web)|anthropic-ai)\/?([\w\.]*)/i,/(coccocbot-(?:image|web))\/([\w\.]+)/i,/(facebook(?:externalhit|catalog)|meta-externalagent)\/([\w\.]+)/i,/(google(?:bot|other|-inspectiontool)(?:-image|-video|-news)?|storebot-google)\/?([\w\.]*)/i,/(ia_archiver|archive\.org_bot)\/?([\w\.]*)/i,/((?:semrush|splitsignal)bot[-abcfimostw]*)\/([\w\.-]+)/i,/(sogou (?:pic|head|web|orion|news) spider)\/([\w\.]+)/i,/(y!?j-(?:asr|br[uw]|dscv|mmp|vsidx|wsc))\/([\w\.]+)/i,/(yandex(?:(?:mobile)?(?:accessibility|additional|renderresources|screenshot|sprav)?bot|image(?:s|resizer)|video(?:parser)?|blogs|adnet|favicons|fordomain|market|media|metrika|news|ontodb(?:api)?|pagechecker|partner|rca|tracker|turbo|vertis|webmaster|antivirus))\/([\w\.]+)/i,/(yeti)\/([\w\.]+)/i,/((?:aihit|diff|timpi|you)bot|omgili(?:bot)?|(?:magpie-|velenpublicweb)crawler|webzio-extended|(?:screaming frog seo |yisou)spider)\/?([\w\.]*)/i],[f,a,[s,w]],[/((?:adsbot|apis|mediapartners)-google(?:-mobile)?|google-?(?:other|cloudvertexbot|extended|safety))/i,/\b(360spider-?(?:image|video)?|bytespider|(?:ai2|aspiegel|dataforseo|imagesift|petal|turnitin)bot|teoma|(?=yahoo! )slurp)/i],[f,[s,w]]]});Object[c(951)]({device:[[/(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],[o,u,[s,v]],[/(u304aa)/i],[u,[o,c(331)],[s,m]],[/\bsie-(\w*)/i],[u,[o,"Siemens"],[s,m]],[/\b(rct\w+) b/i],[u,[o,c(943)],[s,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[o,c(909)],[s,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[o,c(1215)],[s,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[o,c(1365)],[s,v]],[/\b(tm\d{3}\w+) b/i],[u,[o,c(967)],[s,v]],[/\b(k88) b/i],[u,[o,c(1501)],[s,v]],[/\b(nx\d{3}j) b/i],[u,[o,"ZTE"],[s,m]],[/\b(gen\d{3}) b.+49h/i],[u,[o,c(660)],[s,m]],[/\b(zur\d{3}) b/i],[u,[o,c(660)],[s,v]],[/^((zeki)?tb.*\b) b/i],[u,[o,c(349)],[s,v]],[/\b([yr]\d{2}) b/i,/\b(?:dragon[- ]+touch |dt)(\w{5}) b/i],[u,[o,c(973)],[s,v]],[/\b(ns-?\w{0,9}) b/i],[u,[o,"Insignia"],[s,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[o,"NextBook"],[s,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],u,[s,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,c(1521)],u,[s,m]],[/\b(ph-1) /i],[u,[o,c(705)],[s,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[o,c(357)],[s,v]],[/\b(trio[-\w\. ]+) b/i],[u,[o,"MachSpeed"],[s,v]],[/\btu_(1491) b/i],[u,[o,"Rotor"],[s,v]]]}),Object[c(951)]({browser:[[/(airmail|bluemail|emclient|evolution|foxmail|kmail2?|kontact|(?:microsoft |mac)?outlook(?:-express)?|navermailapp|(?!chrom.+)sparrow|thunderbird|yahoo)(?:m.+ail; |[\/ ])([\w\.]+)/i],[f,a,[s,E]]]});const D=Object[c(951)]({browser:[[/(ahrefssiteaudit|bingpreview|chatgpt-user|mastodon|(?:discord|duckassist|linkedin|pinterest|reddit|roger|siteaudit|telegram|twitter|uptimero)bot|google-site-verification|meta-externalfetcher|y!?j-dlc|yandex(?:calendar|direct(?:dyn)?|searchshop)|yadirectfetcher)\/([\w\.]+)/i,/(bluesky) cardyb\/([\w\.]+)/i,/(slack(?:bot)?(?:-imgproxy|-linkexpanding)?) ([\w\.]+)/i,/(whatsapp)\/([\w\.]+)[\/ ][ianw]/i],[f,a,[s,O]],[/(cohere-ai|vercelbot|feedfetcher-google|google(?:-read-aloud|producer)|(?=bot; )snapchat|yandex(?:sitelinks|userproxy))/i],[f,[s,O]]]});Object[c(951)]({browser:[[/chatlyio\/([\d\.]+)/i],[a,"Slack",[s,T]],[/jp\.co\.yahoo\.android\.yjtop\/([\d\.]+)/i],[a,c(1414),[s,T]]]}),Object.freeze({browser:[[/(apple(?:coremedia|tv))\/([\w\._]+)/i,/(coremedia) v([\w\._]+)/i,/(ares|clementine|music player daemon|nexplayer|ossproxy) ([\w\.-]+)/i,/^(aqualung|audacious|audimusicstream|amarok|bass|bsplayer|core|gnomemplayer|gvfs|irapp|lyssna|music on console|nero (?:home|scout)|nokia\d+|nsplayer|psp-internetradioplayer|quicktime|rma|radioapp|radioclientapplication|soundtap|stagefright|streamium|totem|videos|xbmc|xine|xmms)\/([\w\.-]+)/i,/(lg player|nexplayer) ([\d\.]+)/i,/player\/(nexplayer|lg player) ([\w\.-]+)/i,/(gstreamer) souphttpsrc.+libsoup\/([\w\.-]+)/i,/(htc streaming player) [\w_]+ \/ ([\d\.]+)/i,/(lavf)([\d\.]+)/i,/(mplayer)(?: |\/)(?:(?:sherpya-){0,1}svn)(?:-| )(r\d+(?:-\d+[\w\.-]+))/i,/ (songbird)\/([\w\.-]+)/i,/(winamp)(?:3 version|mpeg| ) ([\w\.-]+)/i,/(vlc)(?:\/| media player - version )([\w\.-]+)/i,/^(foobar2000|itunes|smp)\/([\d\.]+)/i,/com\.(riseupradioalarm)\/([\d\.]*)/i,/(mplayer)(?:\s|\/| unknown-)([\w\.\-]+)/i,/(windows)\/([\w\.-]+) upnp\/[\d\.]+ dlnadoc\/[\d\.]+ home media server/i],[f,a,[s,M]],[/(flrp)\/([\w\.-]+)/i],[[f,"Flip Player"],a,[s,M]],[/(fstream|media player classic|inlight radio|mplayer|nativehost|nero showtime|ocms-bot|queryseekspider|tapinradio|tunein radio|winamp|yourmuze)/i],[f,[s,M]],[/(htc_one_s|windows-media-player|wmplayer)\/([\w\.-]+)/i],[[f,/[_-]/g," "],a,[s,M]],[/(rad.io|radio.(?:de|at|fr)) ([\d\.]+)/i],[[f,c(1071)],a,[s,M]]]});const V=Object.freeze({browser:[[/^(apache-httpclient|axios|(?:go|java)-http-client|got|guzzlehttp|java|libwww-perl|lua-resty-http|needle|node-(?:fetch|superagent)|okhttp|php-soap|postmanruntime|python-(?:urllib|requests)|scrapy)\/([\w\.]+)/i,/(jsdom|java)\/([\w\.]+)/i],[f,a,[s,P]]]});Object.freeze({device:[[/dilink.+(byd) auto/i],[o],[/(rivian) (r1t)/i],[o,u],[/vcc.+netfront/i],[[o,c(615)]]]});const j=Object[c(951)]({browser:[...x[c(489)],...I[c(489)],...D[c(489)],...V[c(489)]]});class L{constructor(){const F=c;this[F(1044)]=W=>[F(1116),F(982),F(1362),F(1387),F(407),"applebot","applebot-extended",F(618),F(731),F(384),"diffbot",F(1195),F(1267),F(433),F(1087),F(1196),F(1199),"facebookbot","meta-externalagent",F(613),F(966),F(527),F(420),F(774),F(908),F(1245),F(590),F(1017),F(1e3),F(931)][F(1148)](J=>W[F(1479)]().includes(J)),this[F(1203)]=W=>{const J=F,$=W[J(1479)](),ne=j[J(489)];for(let ae=0;ae<ne[J(368)];ae+=2){const te=ne[ae],ie=Array.isArray(te)?te:[te];for(const Se of ie)if(Se instanceof RegExp&&Se.test($))return!0}return!1},this[F(536)]=W=>W[F(1246)]===l[F(990)],this[F(1047)]=W=>W[F(1479)]()[F(1461)]("electron")}}b[c(1408)]=L})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{[c(309)](){const s=c,o=document.createElement(s(457));return!!(o.getContext&&o.getContext("2d"))}getWebglCanvas(s){const o=c,a=document.createElement(o(457));let m=null;try{s===o(1269)?m=a.getContext(o(1269))||a[o(1482)]("experimental-webgl"):m=a[o(1482)]("webgl2")}catch{}return m}[c(755)](){const s=c;if(!this[s(309)]())return{supported:!1,type:null};let o=this[s(814)](s(1453));return o?{supported:!0,type:s(1453)}:(o=this[s(814)]("webgl"),o?{supported:!0,type:s(1269)}:{supported:!1,type:null})}[c(1191)](){const s=c,{supported:o}=this[s(755)]();return o}[c(1125)](){const s=c,{supported:o,type:a}=this[s(755)]();return o&&a===s(1453)}[c(1083)](){const s=c,o=document[s(983)](s(457));let a,m,v,w;try{a=o[s(1482)](s(1453)),!a&&(a=o[s(1482)](s(1269))||o[s(1482)](s(533)),!a&&console[s(721)](s(1117)))}catch{console[s(721)]("Neither WebGL 2.0 nor WebGL 1.0 is supported.")}try{m=a[s(937)](s(1175)),v=a[s(650)](m[s(1227)]),w=a.getParameter(m[s(1056)])}catch{v=a.getParameter(a[s(1436)]),w=a.getParameter(a[s(1140)])}return{vendor:v,renderer:w,webglVersion:a.getParameter(a[s(992)]),shadingLanguageVersion:a[s(650)](a[s(706)]),extensions:a[s(344)](),maxTextureSize:a[s(650)](a[s(913)]),maxRenderbufferSize:a.getParameter(a[s(545)]),maxTextureImageUnits:a[s(650)](a[s(601)]),maxVertexTextureImageUnits:a[s(650)](a.MAX_VERTEX_TEXTURE_IMAGE_UNITS),maxCombinedTextureImageUnits:a[s(650)](a.MAX_COMBINED_TEXTURE_IMAGE_UNITS),maxVertexAttribs:a[s(650)](a[s(439)]),maxVaryingVectors:a[s(650)](a[s(1517)]),maxVertexUniformVectors:a[s(650)](a[s(483)]),maxFragmentUniformVectors:a.getParameter(a.MAX_FRAGMENT_UNIFORM_VECTORS)}}getHasLiedLanguages(){const s=c;if(typeof navigator[s(1402)]!==s(480))try{if(navigator[s(1402)][0][s(1039)](0,2)!==navigator.language.substr(0,2))return!0}catch{return!0}return!1}getHasLiedResolution(){const s=c;return window[s(405)][s(1431)]<window[s(405)].availWidth||window[s(405)][s(507)]<window[s(405)][s(1138)]}[c(993)](){const s=c,o=navigator[s(641)][s(1479)]();let a=navigator.oscpu;const m=navigator[s(1057)][s(1479)]();let v;return o.indexOf(s(603))>=0?v=s(1486):o[s(1265)](s(739))>=0?v="Windows":o.indexOf(s(745))>=0?v=s(1095):o[s(1265)](s(686))>=0||o[s(1265)](s(862))>=0?v=s(673):o[s(1265)](s(1193))>=0||o[s(1265)](s(769))>=0?v=s(1027):o[s(1265)](s(785))>=0?v=s(560):v=s(1487),(s(374)in window||navigator[s(858)]>0||navigator[s(1238)]>0)&&v!=="Windows Phone"&&v!==s(1095)&&v!=="iOS"&&v!=="Other"||typeof a!==s(480)&&(a=a.toLowerCase(),a[s(1265)](s(739))>=0&&v!==s(1023)&&v!==s(1486)||a[s(1265)](s(686))>=0&&v!==s(673)&&v!==s(1095)||a[s(1265)](s(785))>=0&&v!=="Mac"&&v!==s(1027)||(a[s(1265)](s(739))===-1&&a[s(1265)](s(686))===-1&&a[s(1265)](s(785))===-1)!=(v===s(1487)))||m[s(1265)](s(739))>=0&&v!=="Windows"&&v!=="Windows Phone"||(m.indexOf("linux")>=0||m.indexOf(s(745))>=0||m[s(1265)](s(1081))>=0)&&v!==s(673)&&v!==s(1095)||(m[s(1265)](s(785))>=0||m[s(1265)]("ipad")>=0||m.indexOf(s(473))>=0||m.indexOf(s(1193))>=0)&&v!==s(560)&&v!=="iOS"||(m[s(1265)](s(739))<0&&m[s(1265)](s(686))<0&&m[s(1265)](s(785))<0&&m[s(1265)](s(1193))<0&&m[s(1265)]("ipad")<0)!=(v==="Other")?!0:typeof navigator.plugins===s(480)&&v!=="Windows"&&v!==s(1486)}[c(339)](){const s=c,o=navigator.userAgent[s(1479)](),a=navigator[s(444)];let m;if(o[s(1265)](s(1084))>=0?m=s(565):o.indexOf("opera")>=0||o.indexOf("opr")>=0?m=s(1038):o[s(1265)](s(771))>=0?m=s(1235):o[s(1265)](s(1478))>=0?m="Safari":o[s(1265)](s(561))>=0?m=s(423):m="Other",(m===s(1235)||m==="Safari"||m===s(1038))&&a!==s(749))return!0;const v=eval[s(861)]()[s(368)];if(v===37&&m!=="Safari"&&m!==s(565)&&m!=="Other"||v===39&&m!==s(423)&&m!=="Other"||v===33&&m!==s(1235)&&m!==s(1038)&&m!=="Other")return!0;let w;try{throw"a"}catch(A){try{A[s(1226)](),w=!0}catch{w=!1}}return w&&m!==s(565)&&m!==s(1487)}}b[c(633)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(s){const o=p;this[o(803)]=s}[c(627)](){return gt(this,void 0,void 0,function*(){const s=p,o=yield this[s(1205)](window);return yield this[s(431)](o,s(1213),()=>gt(this,void 0,void 0,function*(){const a=s;if(!Object[a(465)])return;const m=h[a(631)][a(1139)][a(325)]("iframe");if(!m)return;if(m[a(882)]=a(820),document.body[a(896)](m),Object[a(465)](HTMLIFrameElement[a(622)])[a(772)][a(996)][a(861)]()!=="function get contentWindow() { [native code] }"||m[a(772)]===window)return!0;const v=yield this[a(1205)](m[a(772)]);return m.remove(),v})),o})}headlessResults(s){return gt(this,void 0,void 0,function*(){const o=p,a=new Map,m=[];return m[o(939)](this[o(431)](a,o(392),()=>gt(this,void 0,void 0,function*(){const v=o;return/HeadlessChrome/.test(s[v(1368)][v(641)])}))),m[o(939)](this.test(a,o(1002),()=>gt(this,void 0,void 0,function*(){const v=o;return s[v(1368)][v(859)]}))),m[o(939)](this[o(431)](a,o(1377),()=>gt(this,void 0,void 0,function*(){const v=o;return/Chrome/.test(s.navigator.userAgent)&&!s[v(771)]}))),m[o(939)](this[o(431)](a,"permissions_api",()=>gt(this,void 0,void 0,function*(){const v=o;if(s[v(1368)][v(1184)]&&s[v(362)]){const w=yield s.navigator.permissions.query({name:"notifications"});return s[v(362)][v(1049)]===v(338)&&w[v(628)]==="prompt"}}))),m[o(939)](this[o(431)](a,o(970),()=>gt(this,void 0,void 0,function*(){const v=o,w=s[v(1368)][v(1184)];if(w)return w[v(410)][v(861)]()!==v(743)||w[v(410)][v(861)][v(861)]()!==v(1359)||w[v(410)].toString[v(1417)](v(1183))&&w[v(410)][v(861)].hasOwnProperty(v(1224))&&w.query[v(861)][v(1417)](v(1063))?!0:w[v(1417)](v(410))}))),m[o(939)](this[o(431)](a,o(1156),()=>gt(this,void 0,void 0,function*(){return navigator[o(492)].length===0}))),m[o(939)](this[o(431)](a,o(1208),()=>gt(this,void 0,void 0,function*(){return navigator[o(1402)]===""}))),m[o(939)](this[o(431)](a,o(817),()=>gt(this,void 0,void 0,function*(){const v=o;let w=PluginArray[v(622)]===navigator[v(492)].__proto__;return navigator[v(492)][v(368)]>0&&(w=w&&Plugin[v(622)]===navigator.plugins[0].__proto__),w}))),m[o(939)](this.test(a,o(355),()=>gt(this,void 0,void 0,function*(){const v=o;let w=MimeTypeArray[v(622)]===navigator[v(614)].__proto__;return navigator[v(614)].length>0&&(w=w&&MimeType[v(622)]===navigator[v(614)][0][v(403)]),w}))),yield Promise[o(683)](m),a})}[c(431)](s,o,a){return gt(this,void 0,void 0,function*(){const m=p;try{if(!this[m(803)][m(438)](o)){const v=yield h[m(631)][m(1139)][m(989)](100,a());v!=null&&(s[o]=v)}}catch(v){h[m(631)][m(867)].warn(o+m(1278),v)}})}}b[c(1459)]=u})(h._POSignalsMetadata||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){function c(){return new Promise((u,f)=>{const s=p;let o=s(674),a=!1;function m($){a||(a=!0,u({isPrivate:$,browserName:o}))}function v(){const $=s,ne=navigator[$(641)];return ne.match(/Chrome/)?navigator.brave!==void 0?"Brave":ne[$(1314)](/Edg/)?$(570):ne[$(1314)](/OPR/)?$(1038):$(1235):$(919)}function w($){const ne=s;try{return $===eval[ne(861)]()[ne(368)]}catch{return!1}}function A(){const $=s;let ne=0;const ae=parseInt("-1");try{ae[$(1525)](ae)}catch(te){ne=te[$(768)][$(368)]}return ne}function E(){return A()===44}function O(){return A()===51}function T(){return A()===25}function M(){return navigator[s(906)]!==void 0&&w(39)}function P(){var $;return gt(this,void 0,void 0,function*(){const ne=p;try{const ae=navigator[ne(1080)];typeof(ae==null?void 0:ae[ne(753)])===ne(1064)&&(yield ae[ne(753)]()),m(!1)}catch(ae){const te=ae instanceof Error&&($=ae[ne(768)])!==null&&$!==void 0?$:ae;m(typeof te===ne(1281)&&te.includes("unknown transient reason"))}})}function x(){const $=s,ne=String(Math[$(605)]());try{const ae=indexedDB[$(330)](ne,1);ae[$(1345)]=te=>{const ie=$,Se=te.target.result;try{Se[ie(812)]("t",{autoIncrement:!0}).put(new Blob),m(!1)}catch(_e){const Ne=_e.message||"";m(Ne[ie(1461)]("are not yet supported"))}finally{Se.close(),indexedDB[ie(619)](ne)}},ae.onerror=()=>m(!1)}catch{m(!1)}}function I(){const $=s;try{window[$(411)](null,null,null,null)}catch{return m(!0)}try{localStorage[$(949)]($(431),"1"),localStorage[$(1449)]($(431))}catch{return m(!0)}m(!1)}function D(){return gt(this,void 0,void 0,function*(){const $=p,ne=navigator[$(1080)];typeof(ne==null?void 0:ne[$(753)])===$(1064)?yield P():navigator[$(858)]!==void 0?x():I()})}function V(){const $=s;var ne;const ae=(ne=performance==null?void 0:performance.memory)===null||ne===void 0?void 0:ne[$(612)];return ae??1073741824}function j(){const $=s;navigator[$(404)][$(1036)](function(ne,ae){const te=Math.round(ae/1048576),ie=Math.round(V()/(1024*1024))*2;m(te<ie)},function(ne){const ae=$;f(new Error(ae(312)+ne[ae(768)]))})}function L(){const $=s,ne=window[$(1515)];ne(0,1,()=>m(!1),()=>m(!0))}function U(){const $=s;self[$(941)]&&self[$(941)][$(1001)]?j():L()}function F(){return gt(this,void 0,void 0,function*(){const $=p,ne=navigator[$(1080)];if(typeof(ne==null?void 0:ne.getDirectory)=="function")try{yield ne[$(753)](),m(!1)}catch(ae){const te=ae instanceof Error?ae[$(768)]:String(ae);m(typeof te===$(1281)&&te[$(1461)]($(1124)));return}else m(navigator[$(647)]===void 0)})}function W(){m(window[s(1289)]===void 0)}function J(){return gt(this,void 0,void 0,function*(){const $=p;E()?(o=$(1305),yield D()):O()?(o=v(),U()):T()?(o=$(565),yield F()):M()?(o="Internet Explorer",W()):f(new Error($(511)))})}J()[s(689)](f)})}b.detectIncognitoInternal=c})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(b){const c=p;class u{constructor(s){const o=p;this.propertyBlackList=s,this[o(995)]={}}[c(1497)](s,o){const a=c;if(o[a(854)])for(const m of o[a(1030)])!this.result[m]&&(this[a(995)][m]=[]),this.result[m][a(939)](s)}getLies(s,o,a=null){const m=c;if(typeof s!="function")return{lied:!1,lieTypes:[]};const v=s[m(1246)][m(947)](/get\s/,""),w={undefined_properties:()=>a?u[m(645)](a,v):!1,to_string:()=>u[m(526)](s,v,this[m(1412)]),prototype_in_function:()=>u[m(936)](s),own_property:()=>u[m(1042)](s),object_to_string_error:()=>u[m(1496)](s)},A=Object[m(345)](w)[m(365)](E=>!this[m(803)][m(438)](m(782)+E)&&!!w[E]());return{lied:A[m(368)]>0,lieTypes:A}}[c(328)](){return gt(this,void 0,void 0,function*(){const s=p;if(this.propertyBlackList[s(438)](s(794)))return this[s(995)];if(!this[s(803)][s(438)](s(1025))){const o=h[s(631)][s(1139)].createInvisibleElement(s(697));o&&(document[s(1141)][s(896)](o),this.iframeWindow=o)}return yield Promise.all([this[s(1274)](()=>AnalyserNode,{target:[s(754)]}),this[s(1274)](()=>AudioBuffer,{target:[s(1159)]}),this[s(1274)](()=>BiquadFilterNode,{target:[s(796)]}),this[s(1274)](()=>CanvasRenderingContext2D,{target:[s(709)]}),this[s(1274)](()=>DOMRect,{target:[s(507)]}),this[s(1274)](()=>DOMRectReadOnly,{target:["left"]}),this.searchLies(()=>Element,{target:["getClientRects"]}),this[s(1274)](()=>HTMLCanvasElement,{target:[s(507)]}),this[s(1274)](()=>Math,{target:[s(1476)]}),this[s(1274)](()=>MediaDevices,{target:[s(1052)]}),this[s(1274)](()=>Navigator,{target:[s(492)]}),this[s(1274)](()=>OffscreenCanvasRenderingContext2D,{target:[s(709)]}),this[s(1274)](()=>SVGRect,{target:["x"]})]),this.iframeWindow[s(1283)](),this[s(995)]})}[c(1274)](s,{target:o=[],ignore:a=[]}={}){return gt(this,void 0,void 0,function*(){const m=p;function v(E){return typeof E!=p(480)&&!!E}let w;try{if(w=s(),!v(w))return}catch{return}const A=w.prototype?w.prototype:w;Object[m(988)](A)[m(892)](E=>{const O=m;if(E==O(1516)||o.length&&!new Set(o)[O(438)](E)||a.length&&new Set(a).has(E))return;const T=/\s(.+)\]/,M=(w[O(1246)]?w.name:T[O(431)](w)?T.exec(w)[1]:void 0)+"."+E;try{const P=w.prototype?w[O(622)]:w;try{if(typeof P[E]=="function"){const D=this[O(1488)](P[E],P);this[O(1497)](M,D);return}}catch{}const x=Object[O(978)](P,E)[O(996)],I=this.getLies(x,P,w);this.documentLie(M,I)}catch(P){h[O(631)][O(867)][O(829)](O(1066)+E+O(1381),P)}})})}static[c(645)](s,o){const a=c,m=s.name,v=window[m.charAt(0).toLowerCase()+m[a(1106)](1)];return!!v&&(typeof Object[a(978)](v,o)!=a(480)||typeof Reflect[a(978)](v,o)!=a(480))}static[c(526)](s,o,a){const m=c;let v,w;try{v=a[m(1162)][m(622)][m(861)][m(1390)](s)}catch{}try{w=a.Function[m(622)].toString.call(s[m(861)])}catch{}const A=v||s[m(861)](),E=w||s[m(861)][m(861)](),O=T=>({[m(1097)+T+"() { [native code] }"]:!0,["function get "+T+m(1280)]:!0,[m(897)]:!0,[m(1097)+T+m(954)+`
71
+ [native code]
72
+ }`]:!0,[m(1021)+T+m(954)+`
73
+ [native code]
74
+ }`]:!0,[m(1255)+`
75
+ `+m(1433)+`
76
+ }`]:!0});return!O(o)[A]||!O(m(861))[E]}static[c(936)](s){return c(622)in s}static[c(1042)](s){const o=c;return s.hasOwnProperty("arguments")||s[o(1417)](o(799))||s.hasOwnProperty(o(622))||s[o(1417)]("toString")}static getNewObjectToStringTypeErrorLie(s){const o=c;try{return Object[o(744)](s)[o(861)](),!0}catch(a){const m=a[o(596)][o(376)](`
77
+ `),v=m.slice(1),w=/at Object\.apply/,A=/at Function\.toString/,E=!v[o(459)](M=>w[o(431)](M)),O=a[o(1516)][o(1246)]==o(1378)&&m.length>1,T=o(771)in window||b[o(846)].detectChromium();return O&&T&&(!A[o(431)](m[1])||!E)?!0:!O}}}b[c(1004)]=u})(h[g(813)]||(h._POSignalsMetadata={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{constructor(s){const o=p;this[o(803)]=s,this[o(995)]=new Map}[c(1165)](){const s=c;return this.addStealthTest(s(1258),()=>{const o=s;try{const{srcdoc:a}=document[o(983)](o(697));return!!a}catch{return!0}}),this[s(337)](s(808),()=>{const o=s,a=document[o(983)](o(697));return a.srcdoc=""+h[o(631)][o(1139)][o(827)](crypto.getRandomValues(new Uint32Array(10))),!!a[o(772)]}),this[s(337)]("index_chrome_too_high",()=>{const o=s,a=o(1316)in window?o(1316):o(467)in window?o(467):o(340),m=[];for(const A in window)m[o(939)](A);const v=m.indexOf("chrome"),w=m[o(1265)](a);return v>w}),this[s(337)](s(539),()=>{const o=s;if(!("chrome"in window&&o(1128)in window[o(771)]))return!1;try{return o(622)in window[o(771)][o(1128)].sendMessage||o(622)in window[o(771)][o(1128)][o(361)]||(new window[o(771)].runtime.sendMessage,new window[o(771)][o(1128)][o(361)]),!0}catch(a){return a[o(1516)][o(1246)]!=o(1378)}}),this[s(337)](s(889),()=>{const o=s,a=new u[o(848)];return a[o(372)](Function[o(622)][o(861)])||a[o(372)](()=>{})}),this[s(995)]}[c(337)](s,o){const a=c;if(!this[a(803)][a(438)](s))try{this[a(995)][s]=o()}catch(m){h[a(631)][a(867)][a(829)](a(572)+s+a(781),m)}}}u[c(848)]=class{[c(372)](f){const s=c;try{return this[s(1443)]=()=>Object[s(744)](f)[s(861)](),this[s(462)]=()=>this[s(1443)](),this[s(1251)]=()=>this[s(462)](),this[s(1251)](),!0}catch(o){const a=o[s(596)].split(`
78
+ `),m=!/at Object\.apply/[s(431)](a[1]),v=o[s(1516)].name=="TypeError"&&a.length>=5,w="chrome"in window||b[s(846)][s(1335)]();return v&&w&&(!m||!/at Function\.toString/[s(431)](a[1])||!/\.you/[s(431)](a[2])||!/\.cant/[s(431)](a[3])||!/\.hide/[s(431)](a[4]))?!0:!v}}},b[c(704)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){const y=g;(function(b){const c=p;class u{static[c(1304)](){const s=c;return h[s(813)].detectIncognitoInternal()[s(804)](o=>o[s(1237)])[s(689)](()=>!1)}}b[c(1003)]=u})(h[y(813)]||(h[y(813)]={}))})(ee||(ee={}));var ee;(function(h){(function(y){y[y.Unknown=0]="Unknown",y[y.FlingRight=1]="FlingRight",y[y.FlingLeft=2]="FlingLeft",y[y.FlingUp=3]="FlingUp",y[y.FlingDown=4]="FlingDown",y[y.Diagonal=5]="Diagonal",y[y.ScrollRight=6]="ScrollRight",y[y.ScrollLeft=7]="ScrollLeft",y[y.ScrollUp=8]="ScrollUp",y[y.ScrollDown=9]="ScrollDown",y[y.Tap=10]="Tap",y[y.DoubleTap=11]="DoubleTap"})(h.GestureType||(h.GestureType={}))})(ee||(ee={}));var ee;(function(h){class y{constructor(s,o){this.handler=s,this.isOnce=o,this.isExecuted=!1}execute(s,o,a){if(!this.isOnce||!this.isExecuted){this.isExecuted=!0;const m=this.handler;s?setTimeout(()=>{m.apply(o,a)},1):m.apply(o,a)}}}class b{constructor(){this._wrap=new u(this),this._subscriptions=new Array}subscribe(s){s&&this._subscriptions.push(new y(s,!1))}sub(s){this.subscribe(s)}one(s){s&&this._subscriptions.push(new y(s,!0))}has(s){if(s){for(const o of this._subscriptions)if(o.handler==s)return!0}return!1}unsubscribe(s){if(s){for(let o=0;o<this._subscriptions.length;o++)if(this._subscriptions[o].handler==s){this._subscriptions.splice(o,1);break}}}unsub(s){this.unsubscribe(s)}_dispatch(s,o,a){for(let m=0;m<this._subscriptions.length;m++){const v=this._subscriptions[m];if(v.isOnce){if(v.isExecuted===!0)continue;this._subscriptions.splice(m,1),m--}v.execute(s,o,a)}}asEvent(){return this._wrap}}h.DispatcherBase=b;class c extends b{dispatch(s,o){this._dispatch(!1,this,arguments)}dispatchAsync(s,o){this._dispatch(!0,this,arguments)}}h.EventDispatcher=c;class u{constructor(s){this._subscribe=o=>s.subscribe(o),this._unsubscribe=o=>s.unsubscribe(o),this._one=o=>s.one(o),this._has=o=>s.has(o)}subscribe(s){this._subscribe(s)}sub(s){this.subscribe(s)}unsubscribe(s){this._unsubscribe(s)}unsub(s){this.unsubscribe(s)}one(s){this._one(s)}has(s){return this._has(s)}}})(ee||(ee={}));var ee;(function(h){class y{get LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS(){return 3e3}get accX(){return this._accX}get accY(){return this._accY}get accZ(){return this._accZ}get lienarAccX(){return this._lienarAccX}get lienarAccY(){return this._lienarAccY}get lienarAccZ(){return this._lienarAccZ}get isStarted(){return this._isStarted}get rotX(){return this._rotX}get rotY(){return this._rotY}get rotZ(){return this._rotZ}get maxSensorSamples(){return this._maxSensorSamples}set maxSensorSamples(c){this._maxSensorSamples=c}get sensorsTimestampDeltaInMillis(){return this._sensorsTimestampDeltaInMillis}set sensorsTimestampDeltaInMillis(c){this._sensorsTimestampDeltaInMillis=c}get accelerometerList(){return this.getRelevantSensorSamples(this._accelerometerList)}get gyroscopeList(){return this.getRelevantSensorSamples(this._gyroscopeList)}get linearAccelerometerList(){return this.getRelevantSensorSamples(this._linearAccelerometerList)}get rotationList(){return this._rotationList}constructor(c){this._isStarted=!1,this._isEventsStarted=!1,this._gestureTimestamps=[],this._maxSensorSamples=0,this._sensorsTimestampDeltaInMillis=0,this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this.orientationImplementationFix=1,this.delegate=c,window.navigator.userAgent.match(/^.*(iPhone|iPad).*(OS\s[0-9]).*(CriOS|Version)\/[.0-9]*\sMobile.*$/i)&&(this.orientationImplementationFix=-1),this.accelerometerUpdateHandle=this.accelerometerUpdate.bind(this),this.orientationUpdateHandle=this.orientationUpdate.bind(this)}start(){this._isStarted||(this._isStarted=!0,h._POSignalsUtils.Logger.debug("Sensor events started..."))}getRotationListCopy(){return this._rotationList?Array.from(this._rotationList):[]}stop(){this._isStarted&&(window.DeviceMotionEvent!=null&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isStarted=!1,h._POSignalsUtils.Logger.debug("Sensor events stopped"))}getRelevantSensorSamples(c){if(c.length==0||this._sensorsTimestampDeltaInMillis<1||this._gestureTimestamps.length==0)return c;const u=new Map;let f=null,s=0;for(let o=0;o<c.length;o++)for(let a=0;a<this._gestureTimestamps.length;a++)s=c[o].timestamp,f=this._gestureTimestamps[a],s>=f.start-this._sensorsTimestampDeltaInMillis&&s<=f.end+this._sensorsTimestampDeltaInMillis&&u.set(c[o].timestamp,c[o]);return h._POSignalsUtils.Util.getValuesOfMap(u)}stopEvents(){this._isEventsStarted&&(window.DeviceMotionEvent!=null&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isEventsStarted=!1,h._POSignalsUtils.Logger.debug("Sensor events stopped listening"))}async startEvents(){if(!this._isEventsStarted){if(typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"&&h._POSignalsUtils.Logger.debug("iOS detected. Attaching passive sensor listeners (data will flow if host app grants permission)."),navigator.permissions)try{if((await navigator.permissions.query({name:"accelerometer"})).state!=="granted"){h._POSignalsUtils.Logger.debug("Sensor permission not granted. Skipping.");return}}catch{}window.DeviceMotionEvent!=null?this.delegate.addEventListener(window,"devicemotion",this.accelerometerUpdateHandle,!0):h._POSignalsUtils.Logger.warn("DeviceMotion not supported!"),window.DeviceOrientationEvent?this.delegate.addEventListener(window,"deviceorientation",this.orientationUpdateHandle,!0):h._POSignalsUtils.Logger.warn("DeviceOrientation not supported!"),h._POSignalsUtils.Logger.debug("Sensor events start listening..."),this._isEventsStarted=!0}}reset(){this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this._gestureTimestamps.length>0?this._gestureTimestamps=[this._gestureTimestamps[this._gestureTimestamps.length-1]]:this._gestureTimestamps=[],this._accX=0,this._accY=0,this._accZ=0,this._rotX=0,this._rotY=0,this._rotZ=0}onGesture(c){this._isEventsStarted||this.startEvents(),c.events.length>1&&this._gestureTimestamps.push({start:c.events[0].eventTs,end:c.events[c.events.length-1].eventTs})}puaseSensorsCollectionIfNoActivity(c){if((this._gestureTimestamps.length>0?this._gestureTimestamps[this._gestureTimestamps.length-1].end:0)>0){if(Math.abs(c-this._gestureTimestamps[this._gestureTimestamps.length-1].end)>this.LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS)return this.stopEvents(),!0}else return this.stopEvents(),!0;return!1}getDeviceAcceleration(c){return!c||c.x==null||c.y==null||c.z==null?null:c}accelerometerUpdate(c){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(h._POSignalsUtils.Util.now()))return;const u=this.getDeviceAcceleration(c.accelerationIncludingGravity);u&&(this._accX=u.x*this.orientationImplementationFix,this._accY=u.y*this.orientationImplementationFix,this._accZ=u.z,this.safeAddSensorSample({x:this._accX,y:this._accY,z:this._accX,timestamp:h._POSignalsUtils.Util.now()},this._accelerometerList));const f=this.getDeviceAcceleration(c.acceleration);f&&(this._lienarAccX=f.x*this.orientationImplementationFix,this._lienarAccY=f.y*this.orientationImplementationFix,this._lienarAccZ=f.z,this.safeAddSensorSample({x:this._lienarAccX,y:this._lienarAccY,z:this._lienarAccZ,timestamp:h._POSignalsUtils.Util.now()},this._linearAccelerometerList)),c.rotationRate&&c.rotationRate.alpha!=null&&c.rotationRate.beta!=null&&c.rotationRate.gamma!=null&&(this._rotX=c.rotationRate.alpha,this._rotY=c.rotationRate.beta,this._rotZ=c.rotationRate.gamma,this.safeAddSensorSample({x:this._rotX,y:this._rotY,z:this._rotZ,timestamp:h._POSignalsUtils.Util.now()},this._gyroscopeList))}catch(u){h._POSignalsUtils.Logger.warn("error in accelerometer handler",u)}}orientationUpdate(c){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(h._POSignalsUtils.Util.now()))return;c.alpha!=null&&c.beta!=null&&c.gamma!=null&&this.safeAddSensorSample({x:c.alpha,y:c.beta,z:c.gamma,timestamp:h._POSignalsUtils.Util.now()},this._rotationList)}catch(u){h._POSignalsUtils.Logger.warn("error in orientation handler",u)}}safeAddSensorSample(c,u){this.maxSensorSamples>u.length&&u.push(c)}}h.Sensors=y})(ee||(ee={}));var ee;(function(h){class y{static get instance(){return y._instance||(y._instance=new y),y._instance}constructor(){this._pointerParams=new h.PointerParams}get pointerParams(){return this._pointerParams}}h.PointerConfig=y})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.Up=1]="Up",c[c.Down=2]="Down",c[c.Left=3]="Left",c[c.Right=4]="Right"})(y||(y={}));class b{get onGesture(){return this._onGesture.asEvent()}get isStarted(){return this._isStarted}get SCROLL_MIN_DURATION(){return 500}get SWIPE_MAX_ANGLE(){return 45}get TAP_MOVEMENT_TRESHOLD(){return 10}constructor(u,f){this.BEHAVIORAL_TYPE="gestures",this._isStarted=!1,this._onGesture=new h.EventDispatcher,this.touchSnapshotsMap=new Map,this.snapshotStartTime=new Map,this.delegate=u,this.sensors=f,this.touchStartHandler=this.touchStart.bind(this),this.touchMoveHandler=this.touchMove.bind(this),this.touchEndHandler=this.touchEnd.bind(this),this.touchCancelHandler=this.touchCancel.bind(this)}countEvents(u){const f={epochTs:Date.now()};for(const s of u)f[s.type]=(f[s.type]||0)+1;return f}clearTouchSnapshots(u){this.touchSnapshotsMap.delete(u),this.snapshotStartTime.delete(u)}getTouchSnapshots(u){let f;return this.touchSnapshotsMap.has(u)?f=this.touchSnapshotsMap.get(u):(f=[],this.touchSnapshotsMap.set(u,f)),f}isEmpty(){return this.touchSnapshotsMap.size===0}start(){this._isStarted||(this.delegate.addEventListener(document,"touchstart",this.touchStartHandler),this.delegate.addEventListener(document,"touchmove",this.touchMoveHandler),this.delegate.addEventListener(document,"touchend",this.touchEndHandler),this.delegate.addEventListener(document,"touchcancel",this.touchCancelHandler),this._isStarted=!0)}stop(){this._isStarted&&(document.removeEventListener("touchstart",this.touchStartHandler),document.removeEventListener("touchmove",this.touchMoveHandler),document.removeEventListener("touchend",this.touchEndHandler),document.removeEventListener("touchcancel",this.touchCancelHandler),this._isStarted=!1)}touchStart(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchstart("+u.changedTouches.length+")",u),u.changedTouches.length>0&&this.pushSnapshot(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchStart handler",f)}}touchMove(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchmove("+u.changedTouches.length+")",u),u.changedTouches.length>0&&this.pushSnapshot(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchMove handler",f)}}touchEnd(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onGesture.dispatch(this,null);return}if(h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchend("+u.changedTouches.length+")",u),this.gestureEnd(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchEnd handler",f)}}touchCancel(u){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onGesture.dispatch(this,null);return}if(h.PointerConfig.instance.pointerParams.eventsToIgnore.has(u.type))return;h._POSignalsUtils.Logger.debug("touchcancel("+u.changedTouches.length+")",u),this.gestureEnd(u)}catch(f){h._POSignalsUtils.Logger.warn("error in touchCancel handler",f)}}gestureEnd(u){u.changedTouches.length>0&&this.pushSnapshot(u);for(let f=0;f<u.changedTouches.length;f++){const s=u.changedTouches.item(f),o=this.getTouchSnapshots(s.identifier);o.length>0&&(this.isTap(o)?this.dispatchGesture(h.GestureType.Tap,s.identifier):this.dispatchGesture(this.calcGestureType(o),s.identifier))}}calcGestureType(u){let f;const s=this.getDirection(u);if(this.isFling(u))switch(s){case y.Up:{f=h.GestureType.FlingUp;break}case y.Right:{f=h.GestureType.FlingRight;break}case y.Down:{f=h.GestureType.FlingDown;break}case y.Left:{f=h.GestureType.FlingLeft;break}}else if(this.isScroll(u))switch(s){case y.Up:{f=h.GestureType.ScrollUp;break}case y.Right:{f=h.GestureType.ScrollRight;break}case y.Down:{f=h.GestureType.ScrollDown;break}case y.Left:{f=h.GestureType.ScrollLeft;break}}return f}pushSnapshot(u){if(u.changedTouches&&u.changedTouches.length>0)for(let f=0;f<u.changedTouches.length;f++){const s=u.changedTouches.item(f),o=s.radiusX&&s.radiusY?(s.radiusX+s.radiusY)/2:null;this.snapshotStartTime.has(s.identifier)||this.snapshotStartTime.set(s.identifier,Date.now());const a=this.getTouchSnapshots(s.identifier);a.length<h.PointerConfig.instance.pointerParams.maxSnapshotsCount&&a.push({type:u.type,eventTs:u.timeStamp,epochTs:Date.now(),relativeX:s.screenX,relativeY:s.screenY,x:s.clientX,y:s.clientY,pressure:s.force,size:o,xaccelerometer:this.sensors.accX,yaccelerometer:this.sensors.accY,zaccelerometer:this.sensors.accZ,xlinearaccelerometer:this.sensors.lienarAccX,ylinearaccelerometer:this.sensors.lienarAccY,zlinearaccelerometer:this.sensors.lienarAccZ,xrotation:this.sensors.rotX,yrotation:this.sensors.rotY,zrotation:this.sensors.rotZ,radiusX:s.radiusX,radiusY:s.radiusY,rotationAngle:s.rotationAngle,pageX:s.pageX,pageY:s.pageY,getX(){return s.screenX},getY(){return s.screenY}})}}dispatchGesture(u,f){const s=this.touchSnapshotsMap.get(f)||[],o=s.filter(a=>a.type==="touchmove");this._onGesture.dispatch(this,{epochTs:this.snapshotStartTime.get(f)||0,counter:this.delegate.gesturesCounter,type:u,events:s,eventCounters:this.countEvents(s),duration:this.delegate.getInteractionDuration(s),additionalData:this.delegate.additionalData,uiControl:void 0,timeProximity:h._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(o),meanEuclidean:h._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(o),reduction:{},quality:""}),this.clearTouchSnapshots(f)}isTap(u){const f=Math.abs(u[0].x-u[1].x),s=Math.abs(u[0].y-u[1].y);return u.length==2&&f<this.TAP_MOVEMENT_TRESHOLD&&s<this.TAP_MOVEMENT_TRESHOLD}isFling(u){return u.length>1&&u[u.length-1].eventTs-u[0].eventTs<this.SCROLL_MIN_DURATION}isScroll(u){return u.length>1&&u[u.length-1].eventTs-u[0].eventTs>this.SCROLL_MIN_DURATION}getDirection(u){const f=this.calcAngle(u[0],u[u.length-1]);return f>90-this.SWIPE_MAX_ANGLE&&f<=90+this.SWIPE_MAX_ANGLE?y.Up:f>180-this.SWIPE_MAX_ANGLE&&f<=180+this.SWIPE_MAX_ANGLE?y.Right:f>270-this.SWIPE_MAX_ANGLE&&f<=270+this.SWIPE_MAX_ANGLE?y.Down:y.Left}calcAngle(u,f){return Math.atan2(f.y-u.y,f.x-u.x)*180/Math.PI+180}}h.GestureEvents=b})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.key=c,this.cache=this.loadFromStorage()}loadFromStorage(){let c=y.sessionStorage.getItem(this.key);return c||(c=JSON.stringify([])),JSON.parse(c)}get(){return this.cache}get length(){return this.cache.length}push(c){const u=this.cache.push(c);return y.sessionStorage.setItem(this.key,JSON.stringify(this.cache)),u}set(c){this.cache=c,y.sessionStorage.setItem(this.key,JSON.stringify(this.cache))}remove(c){this.cache.splice(c,1),y.sessionStorage.setItem(this.key,JSON.stringify(this.cache))}concat(c){return this.cache.concat(c)}clear(){this.cache=[],y.sessionStorage.removeItem(this.key)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageArray=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.MAX_TAGS=10,this._tags=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_TAGS)}static get instance(){return y._instance||(y._instance=new y),y._instance}get tags(){return this._tags.get()}set disableTags(c){this._disableTags=c}setTag(c,u){var f;if(this._disableTags)return;if(!h.PointerConfig.instance.pointerParams.enabled){h._POSignalsUtils.Logger.info("Can't add tag, PingOneSignals SDK is disabled");return}if(!c){h._POSignalsUtils.Logger.info("Can't add tag, missing name");return}const s=h.PointerConfig.instance.pointerParams.tagsBlacklistRegex;if(s&&(c.match(s)||typeof u=="string"&&u!=null&&u.match(s))){h._POSignalsUtils.Logger.info("Tag name or value is blacklisted");return}if(this._tags.length>=this.MAX_TAGS)return;typeof u!="number"?this._tags.push({name:c.trim(),value:((f=u==null?void 0:u.trim)===null||f===void 0?void 0:f.call(u))||void 0,epochTs:Date.now(),timestamp:Date.now()}):this._tags.push({name:c.trim(),value:u,epochTs:Date.now(),timestamp:Date.now()});const o=u?`${c}:${u}`:c;h._POSignalsUtils.Logger.info(`Add tag: ${o}`)}reset(){this._tags.clear()}}h.Tags=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.client=c}calculateStrategyResult(c,u){return{shouldCollect:this.client.getBufferSize()<h.PointerConfig.instance.pointerParams.bufferSize}}}h.FirstInteractionsStrategy=y})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.RICH=3]="RICH",c[c.CLICK=2]="CLICK",c[c.MOVE=1]="MOVE",c[c.POOR=0]="POOR"})(y||(y={}));class b{constructor(u){this.client=u,this.MAX_INTERACTIONS_PER_TYPE=7,this.RICH_MOUSE_MOVES_AMOUNT=8,this.MIN_KEYBOARD_EVENTS=6,this.MIN_TOUCH_EVENTS=20}isRichMouseInteraction(u){return u.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT&&this.isClickInteraction(u)}isClickInteraction(u){return u.mousedown>0&&u.mouseup>0}isMoveInteraction(u){return u.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT}classifyMouseInteraction(u){const f=h._POSignalsUtils.Util.typesCounter(u.events);return this.isRichMouseInteraction(f)?y.RICH:this.isClickInteraction(f)?y.CLICK:this.isMoveInteraction(f)?y.MOVE:y.POOR}classifyKeyboardInteraction(u){return u.events.length>=this.MIN_KEYBOARD_EVENTS?y.RICH:y.POOR}classifyTouchInteraction(u){return u.events.length>=this.MIN_TOUCH_EVENTS?y.RICH:y.POOR}handleMouseInteraction(u,f){const s=Date.now(),o=this.classifyMouseInteraction(u),a=this.getEnumKeyByValue(o);if(f.mouse.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:a};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.mouse.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"mouse",index:w},quality:a}}const[m,v]=this.splitInteractionsByTime(f.mouse.interactions,s,18e4);return m.length<2?this.handleOlderInteractions(v,a):this.handleRecentInteractions(m,v,o,a)}splitInteractionsByTime(u,f,s){return u.reduce((o,a)=>(a.epochTs>=f-s?o[0].push(a):o[1].push(a),o),[[],[]])}handleOlderInteractions(u,f){const s=this.findOldestInteractionWithLowestQuality(u);return s!==-1?{shouldCollect:!0,remove:{type:"mouse",index:s},quality:f}:{shouldCollect:!1,quality:f}}handleRecentInteractions(u,f,s,o){const a=this.findOldestInteractionWithLowestQuality(u,s);if(a!==-1){const m=u[a],v=this.client.getBehavioralData().mouse.interactions.indexOf(m),w=this.findOldestInteractionWithLowestQuality(f,y[this.client.getBehavioralData().mouse.interactions[v].quality]);return w!==-1?{shouldCollect:!0,remove:{type:"mouse",index:w},quality:o}:{shouldCollect:!0,remove:{type:"mouse",index:v},quality:o}}return{shouldCollect:!1,quality:o}}handleKeyboardInteraction(u,f){const s=Date.now(),o=this.classifyKeyboardInteraction(u),a=this.getEnumKeyByValue(o);if(f.keyboard.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:a};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.keyboard.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"keyboard",index:w},quality:a}}const[m,v]=this.splitInteractionsByTime(f.keyboard.interactions,s,18e4);return m.length<2?this.handleOlderInteractions(v,a):this.handleRecentInteractions(m,v,o,a)}handleTouchInteraction(u,f){const s=Date.now(),o=this.classifyTouchInteraction(u),a=this.getEnumKeyByValue(o);if(f.touch.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:a};if(o===y.RICH){const w=this.findOldestInteractionWithLowestQuality(f.touch.interactions);if(w!==-1)return{shouldCollect:!0,remove:{type:"touch",index:w},quality:a}}const[m,v]=this.splitInteractionsByTime(f.touch.interactions,s,18e4);return m.length<2?this.handleOlderInteractions(v,a):this.handleRecentInteractions(m,v,o,a)}calculateStrategyResult(u,f){const s=this.client.getBehavioralData();switch(f){case"mouse":return this.handleMouseInteraction(u,s);case"keyboard":return this.handleKeyboardInteraction(u,s);case"touch":return this.handleTouchInteraction(u,s);default:throw new Error(`Unknown interaction type: ${f}`)}}getEnumKeyByValue(u){return Object.keys(y).find(f=>y[f]===u)}findOldestInteractionWithLowestQuality(u,f){let s=f??y.RICH,o=-1,a=Number.MAX_SAFE_INTEGER;for(let m=0;m<u.length;m++){const v=y[u[m].quality];(v<s||v===s&&u[m].epochTs<a)&&(s=v,a=u[m].epochTs,o=m)}return o}}h.PriorityStrategy=b})(ee||(ee={}));var ee;(function(h){let y;(function(c){c[c.FIRST_INTERACTIONS=0]="FIRST_INTERACTIONS",c[c.PRIORITY_INTERACTIONS=1]="PRIORITY_INTERACTIONS"})(y=h.BufferingStrategyType||(h.BufferingStrategyType={}));class b{static createBufferingStrategy(u,f){switch(u){case y.FIRST_INTERACTIONS:return new h.FirstInteractionsStrategy(f);case y.PRIORITY_INTERACTIONS:return new h.PriorityStrategy(f)}}}h.StrategyFactory=b})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.sessionData=c,this.instanceUUID=h._POSignalsUtils.Util.newGuid(),this._isBehavioralDataPaused=!1,this.started=!1,this.initQueue=new h.PromiseQueue(1)}static instance(){if(!this._instance){const c=h._POSignalsStorage.SessionStorage.instance;if(!document.body)throw h._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");this._instance=new h.Client(c,h.BufferingStrategyType.PRIORITY_INTERACTIONS)}return this._instance}async getData(){if(!this.startedPromise)throw new Error("SDK not initialized");return await this.startedPromise,await this.dataHandler.getData(Date.now())}addTag(c,u){h.Tags.instance.setTag(c,u)}async start(c={}){var u,f,s,o;if((!((u=c.waitForWindowLoad)!==null&&u!==void 0)||u)&&await this.loadEventPromise(),this.initParams=c,this.validateStartParams(c),this.clientVersion=h._POSignalsUtils.Constants.CLIENT_VERSION,this.started){h._POSignalsUtils.Logger.warn("SDK already initialized");return}this.browserInfo=new h._POSignalsUtils.BrowserInfo,h._POSignalsUtils.Logger.isLogEnabled=!!c.consoleLogEnabled||!!c.devEnv,h._POSignalsUtils.Logger.info("Starting Signals SDK..."),h.Tags.instance.disableTags=!!this.initParams.disableTags,this.sessionData.setStorageConfig(c);const a=h.PointerConfig.instance.pointerParams,m={additionalMediaCodecs:a.additionalMediaCodecs,browserInfo:this.browserInfo,fingerprintTimeoutMillis:a.fingerprintTimeoutMillis,metadataBlackList:new Set(a.metadataBlackList.concat(c.deviceAttributesToIgnore)),propertyDescriptors:a.propertyDescriptors,webRtcUrl:a.webRtcUrl,dataPoints:a.metadataDataPoints};this.localAgentAccessor=new h._POSignalsMetadata.LocalAgentAccessor((f=c.agentPort)!==null&&f!==void 0?f:h._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_PORT,(s=c.agentTimeout)!==null&&s!==void 0?s:h._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_TIMEOUT),this.metadata=new h._POSignalsMetadata.Metadata(this.sessionData,m,c.externalIdentifiers,this.localAgentAccessor),this.dataHandler=new h.DataHandler(this.clientVersion,this.instanceUUID,this.initParams,this.metadata,this,this.sessionData),(!((o=this.initParams.behavioralDataCollection)!==null&&o!==void 0)||o)&&this.refreshListening(),c.lazyMetadata||(this.metadata.getDeviceAttributes(),this.metadata.getLocalAgentJwt()),this.started=!0;try{this.logInit(),this.addStartupTags()}catch(v){h._POSignalsUtils.Logger.warn("SDK post init failed",v)}}logInit(){var c,u;h._POSignalsUtils.Logger.info(`PingOne Signals initialized. ${JSON.stringify({timestamp:new Date().getTime(),sdkVersion:this.clientVersion,instanceUUID:this.instanceUUID,tabUUID:this.sessionData.tabUUID},null,2)}`);const f=()=>h._POSignalsUtils.Logger.info(`Token Ready: ${window._pingOneSignalsToken}`),s=()=>{h._POSignalsUtils.Logger.info("Signals token fetch is disabled"),window._pingOneSignalsToken=void 0},o="uninitialized",a="skipped";((c=window._pingOneSignalsToken)===null||c===void 0?void 0:c.substring(0,a.length))===a?s():((u=window._pingOneSignalsToken)===null||u===void 0?void 0:u.substring(0,o.length))!==o&&f(),document.addEventListener("PingOneSignalsTokenReadyEvent",f),document.addEventListener("PingOneSignalsTokenSkippedEvent",s)}get isBehavioralDataPaused(){return this._isBehavioralDataPaused}getSignalsToken(){let c="";if(typeof window._pingOneSignalsToken=="string"&&0<=window._pingOneSignalsToken.indexOf(":")){const u=window._pingOneSignalsToken.match(/t:(.*?)(&|$)/g);u&&0<u.length&&(c=u[0].replace(/&s*$/,"").replace(/t:/,""))}else typeof window._pingOneSignalsToken=="string"&&(c=window._pingOneSignalsToken);return c}pauseBehavioralData(){this._isBehavioralDataPaused||(this._isBehavioralDataPaused=!0,this.addTag("SDK paused behaviorally"))}resumeBehavioralData(){this._isBehavioralDataPaused&&(this._isBehavioralDataPaused=!1,this.addTag("SDK resumed behaviorally"))}async startSignals(c){try{return this.startedPromise=this.initQueue.add(()=>this.start(c)),await this.startedPromise}catch(u){const f={id:h._POSignalsUtils.POErrorCodes.INITIALIZATION_ERROR,message:u.message,code:"SDK initialization failed."};throw new Error(JSON.stringify(f))}}validateStartParams(c){if(!document.body)throw h._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");c.externalIdentifiers=c.externalIdentifiers||{}}async loadEventPromise(){return new Promise(c=>{document.readyState==="complete"?c():window.addEventListener("load",u=>{c()})})}addStartupTags(){this.addTag("SDK started"),document.referrer&&this.addTag("referrer",document.referrer),this.addTag("location",window.location.href)}}h.ClientBase=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onClipboardEvent=new h.EventDispatcher,this.delegate=c,this.onClipboardEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onClipboardEvent(){return this._onClipboardEvent.asEvent()}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onClipboardEvent.dispatch(this,this.createClipboardEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in clipboard handler",u)}}createClipboardEvent(c){const u=h._POSignalsUtils.Util.getSrcElement(c);return{category:"ClipboardEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(u),elementId:u==null?void 0:u.id}}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"cut",this.onClipboardEventHandler),this.delegate.addEventListener(document,"copy",this.onClipboardEventHandler),this.delegate.addEventListener(document,"paste",this.onClipboardEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("cut",this.onClipboardEventHandler),document.removeEventListener("copy",this.onClipboardEventHandler),document.removeEventListener("paste",this.onClipboardEventHandler))}}h.ClipboardEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onDragEvent=new h.EventDispatcher,this.delegate=c,this.onDragEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onDragEvent(){return this._onDragEvent.asEvent()}createDragEvent(c){return{category:"DragEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onDragEvent.dispatch(this,this.createDragEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in drag handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"dragstart",this.onDragEventHandler),this.delegate.addEventListener(document,"dragexit",this.onDragEventHandler),this.delegate.addEventListener(document,"drop",this.onDragEventHandler),this.delegate.addEventListener(document,"dragend",this.onDragEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("dragstart",this.onDragEventHandler),document.removeEventListener("dragexit",this.onDragEventHandler),document.removeEventListener("drop",this.onDragEventHandler),document.removeEventListener("dragend",this.onDragEventHandler))}}h.DragEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onFocusEvent=new h.EventDispatcher,this.delegate=c,this.onFocusEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onFocusEvent(){return this._onFocusEvent.asEvent()}getRelatedTarget(c){if(!c.relatedTarget)return{type:"",stId:"",elementId:""};const u={type:h._POSignalsUtils.Util.getObjectType(c.relatedTarget),stId:"",elementId:""};c.relatedTarget.id&&(u.elementId=c.relatedTarget.id);try{const f=c.relatedTarget;u.stId=this.delegate.getElementsStID(f)}catch{}return u}createFocusEvent(c){const u=h._POSignalsUtils.Util.getSrcElement(c),f=this.getRelatedTarget(c);return{category:"FocusEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(u),elementId:u?u.id:"",relatedTarget:f}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onFocusEvent.dispatch(this,this.createFocusEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in focus handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"DOMFocusIn",this.onFocusEventHandler),this.delegate.addEventListener(document,"DOMFocusOut",this.onFocusEventHandler),this.delegate.addEventListener(document,"focus",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusin",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusout",this.onFocusEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("DOMFocusIn",this.onFocusEventHandler),document.removeEventListener("DOMFocusOut",this.onFocusEventHandler),document.removeEventListener("focus",this.onFocusEventHandler),document.removeEventListener("focusin",this.onFocusEventHandler),document.removeEventListener("focusout",this.onFocusEventHandler))}}h.FocusEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onUIEvent=new h.EventDispatcher,this.delegate=c,this.onUIEventHandler=this.onEvent.bind(this)}get isStarted(){return this._isStarted}get onUIEvent(){return this._onUIEvent.asEvent()}createUIEvent(c){return{category:"UIEvent",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onUIEvent.dispatch(this,this.createUIEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in UIEvent handler",u)}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"resize",this.onUIEventHandler),this.delegate.addEventListener(document,"scroll",this.onUIEventHandler),this.delegate.addEventListener(document,"select",this.onUIEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("resize",this.onUIEventHandler),document.removeEventListener("scroll",this.onUIEventHandler),document.removeEventListener("select",this.onUIEventHandler))}}h.UIEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.BEHAVIORAL_TYPE="indirect",this.visibilityChangeEventName="visibilitychange",this.hiddenProperty="hidden",this._isStarted=!1,this._onGeneralEvent=new h.EventDispatcher,this.delegate=c,this.onGeneralEventHandler=this.onEvent.bind(this),this.onLangChangeHandler=this.onLangChangeEvent.bind(this),this.onOrientationChangeHandler=this.onOrientationChangeEvent.bind(this),this.onVisibilityChangeHandler=this.onVisibilityChangeEvent.bind(this),typeof document.msHidden<"u"?(this.hiddenProperty="msHidden",this.visibilityChangeEventName="msvisibilitychange"):typeof document.webkitHidden<"u"&&(this.hiddenProperty="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}get isStarted(){return this._isStarted}get onGeneralEvent(){return this._onGeneralEvent.asEvent()}onEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onGeneralEvent.dispatch(this,this.createGeneralEvent(c))}catch(u){h._POSignalsUtils.Logger.warn("error in general event handler",u)}}onLangChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c);this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in LangChange event handler",u)}}onOrientationChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c),f=h._POSignalsUtils.Util.getDeviceOrientation();u.additionalData.deviceOrientation=f.orientation,u.additionalData.deviceAngle=f.angle,this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in OrientationChange event handler",u)}}onVisibilityChangeEvent(c){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;const u=this.createGeneralEvent(c);u.additionalData.hidden=!!document[this.hiddenProperty],document.visibilityState&&(u.additionalData.visibilityState=document.visibilityState.toString()),this._onGeneralEvent.dispatch(this,u)}catch(u){h._POSignalsUtils.Logger.warn("error in VisibilityChange event handler",u)}}createGeneralEvent(c){return{category:"Event",type:c.type,eventTs:c.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}}start(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,this.visibilityChangeEventName,this.onVisibilityChangeHandler),this.delegate.addEventListener(document,"change",this.onGeneralEventHandler),this.delegate.addEventListener(document,"fullscreenchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"invalid",this.onGeneralEventHandler),this.delegate.addEventListener(window,"languagechange",this.onLangChangeHandler),this.delegate.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.delegate.addEventListener(document,"seeked",this.onGeneralEventHandler),this.delegate.addEventListener(document,"seeking",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectstart",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectionchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"submit",this.onGeneralEventHandler),this.delegate.addEventListener(document,"volumechange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"reset",this.onGeneralEventHandler),this.delegate.addEventListener(document,"textInput",this.onGeneralEventHandler))}stop(){this._isStarted&&(this._isStarted=!1,document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChangeHandler),document.removeEventListener("change",this.onGeneralEventHandler),document.removeEventListener("fullscreenchange",this.onGeneralEventHandler),document.removeEventListener("invalid",this.onGeneralEventHandler),window.removeEventListener("languagechange",this.onLangChangeHandler),window.removeEventListener("orientationchange",this.onOrientationChangeHandler),document.removeEventListener("seeked",this.onGeneralEventHandler),document.removeEventListener("seeking",this.onGeneralEventHandler),document.removeEventListener("selectstart",this.onGeneralEventHandler),document.removeEventListener("selectionchange",this.onGeneralEventHandler),document.removeEventListener("submit",this.onGeneralEventHandler),document.removeEventListener("volumechange",this.onGeneralEventHandler),document.removeEventListener("reset",this.onGeneralEventHandler),document.removeEventListener("textInput",this.onGeneralEventHandler))}}h.GeneralEvents=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.DEFAULT_INDIRECT_IDLE_INTERVAL=1e3,this.MAX_INDIRECT_EVENTS=25,this._onIndirect=new h.EventDispatcher,this.indirectEvents=[],this.idleTimeInMillis=this.DEFAULT_INDIRECT_IDLE_INTERVAL,this.lastIndirectEventTimestamp=0,this._isStarted=!1,this.clipboardEvents=new h.ClipboardEvents(c),this.clipboardEvents.onClipboardEvent.subscribe(this.handleEvent.bind(this)),this.dragEvents=new h.DragEvents(c),this.dragEvents.onDragEvent.subscribe(this.handleEvent.bind(this)),this.focusEvents=new h.FocusEvents(c),this.focusEvents.onFocusEvent.subscribe(this.handleEvent.bind(this)),this.uiEvents=new h.UIEvents(c),this.uiEvents.onUIEvent.subscribe(this.handleEvent.bind(this)),this.generalEvents=new h.GeneralEvents(c),this.generalEvents.onGeneralEvent.subscribe(this.handleEvent.bind(this)),this.onTimeElapsedHandler=this.onTimeElapsed.bind(this)}get onIndirect(){return this._onIndirect.asEvent()}async onTimeElapsed(){this.indirectEvents.length>0&&new Date().getTime()-this.lastIndirectEventTimestamp>=this.idleTimeInMillis&&this.dispatch()}handleEvent(c,u){this.lastIndirectEventTimestamp=new Date().getTime(),this.pushEvent(u)}pushEvent(c){this.indirectEvents.push(c),this.indirectEvents.length>=this.MAX_INDIRECT_EVENTS&&this.dispatch()}clearBuffer(){const c={events:this.indirectEvents};return this.indirectEvents=[],c}dispatch(){try{clearInterval(this.updateIntervalHandle),this._onIndirect.dispatch(this,this.clearBuffer()),this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,h.PointerConfig.instance.pointerParams.indirectIntervalMillis)}catch(c){h._POSignalsUtils.Logger.warn("Failed to dispatch indirect events",c)}}get isStarted(){return this._isStarted}start(){this._isStarted||(this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,h.PointerConfig.instance.pointerParams.indirectIntervalMillis),this.clipboardEvents.start(),this.dragEvents.start(),this.focusEvents.start(),this.uiEvents.start(),this.generalEvents.start(),this._isStarted=!0)}stop(){this._isStarted&&(this.clipboardEvents.stop(),this.dragEvents.stop(),this.focusEvents.stop(),this.uiEvents.stop(),this.generalEvents.stop(),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1)}unsubscribe(){this.clipboardEvents.onClipboardEvent.unsubscribe(this.handleEvent.bind(this)),this.dragEvents.onDragEvent.unsubscribe(this.handleEvent.bind(this)),this.focusEvents.onFocusEvent.unsubscribe(this.handleEvent.bind(this)),this.uiEvents.onUIEvent.unsubscribe(this.handleEvent.bind(this)),this.generalEvents.onGeneralEvent.unsubscribe(this.handleEvent.bind(this))}}h.IndirectClient=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.config={},this._cacheHash=0,this.cache=new Map}refreshCssSelectors(c){try{if(!c)return;const u=h._POSignalsUtils.Util.hashCode(JSON.stringify(c));if(this._cacheHash===u)return;this.config=c,this._cacheHash=u,this.cache=new Map}catch(u){h._POSignalsUtils.Logger.warn("Failed to set css selectors",u)}}getIdentification(c,u){if(this.cache.get(c)===null)return null;if(this.cache.get(c)!==void 0)return this.cache.get(c);for(const f in this.config)try{if(!this.config.hasOwnProperty(f))continue;let s=this.config[f]||[];h._POSignalsUtils.Util.isArray(s)||(s=[].concat(s));for(const o of s)if(h._POSignalsUtils.Util.isSelectorMatches(c,o,u))return this.cache.set(c,f),f}catch(s){h._POSignalsUtils.Logger.warn(`Failed to find selector for ${f}`,s)}return this.cache.set(c,null),null}get cacheHash(){return this._cacheHash}}h.ElementsIdentifications=y})(ee||(ee={}));var ee;(function(h){const y="keydown",b="keyup",c="blur",u="focus";class f{get isStarted(){return this._isStarted}get onInteraction(){return this._onInteraction.asEvent()}get onEnterPress(){return this._onEnterPress.asEvent()}get onObfuscatedValue(){return this._onObfuscatedValue.asEvent()}refreshKeyboardCssSelectors(o){this._fieldsIdentifications.refreshCssSelectors(o)}get modifiersKeys(){return["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"]}get specialKeys(){return["Tab","Shift","Backspace","Enter","CapsLock","Meta","Delete","Alt","ArrowDown","ArrowUp","Control","ArrowLeft","End","Unidentified","Home","ArrowRight","Insert","Pause","PageDown","PageUp","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","AltGraph","Escape"]}constructor(o,a){this.BEHAVIORAL_TYPE="eventKeyboard",this._isStarted=!1,this._onInteraction=new h.EventDispatcher,this._onEnterPress=new h.EventDispatcher,this._onObfuscatedValue=new h.EventDispatcher,this.interactionsMap=new Map,this._fieldsIdentifications=new h.ElementsIdentifications,this.keyStrokeMap=new Map,this.delegate=o,this.uiControlManager=a,this.onKeyDownHandle=this.onKeyDown.bind(this),this.onKeyUpHandle=this.onKeyUp.bind(this),this.onFocusHandle=this.onFocus.bind(this),this.onBlurHandle=this.onBlur.bind(this)}countEvent(o,a){a&&(a.eventCounters[o]=(a.eventCounters[o]||0)+1)}clearBuffer(){const o=h._POSignalsUtils.Util.getValuesOfMap(this.interactionsMap);return this.interactionsMap.clear(),o}start(){this._isStarted?h._POSignalsUtils.Logger.debug("Desktop Keyboard events already listening"):(this.delegate.addEventListener(document,y,this.onKeyDownHandle),this.delegate.addEventListener(document,b,this.onKeyUpHandle),this.delegate.addEventListener(document,u,this.onFocusHandle,!0),this.delegate.addEventListener(document,c,this.onBlurHandle,!0),this._isStarted=!0,h._POSignalsUtils.Logger.debug("Desktop Keyboard events start listening..."))}stop(){this._isStarted?(document.removeEventListener(y,this.onKeyDownHandle),document.removeEventListener(b,this.onKeyUpHandle),document.removeEventListener(u,this.onFocusHandle,!0),document.removeEventListener(c,this.onBlurHandle,!0),this._isStarted=!1,h._POSignalsUtils.Logger.debug("Desktop Keyboard events stop listening...")):h._POSignalsUtils.Logger.debug("Desktop Keyboard events already stopped")}getInteractionFromElement(o){var a;let m=null,v=null;const w=h._POSignalsUtils.Util.getSrcElement(o);if(w&&w instanceof HTMLInputElement&&!h._POSignalsUtils.Util.isClickableInput(w)&&h._POSignalsUtils.Util.isFunction(w.getAttribute)&&!(!((a=w.hasAttribute)===null||a===void 0)&&a.call(w,"data-st-ignore"))&&!h._POSignalsUtils.Util.anySelectorMatches(w,h.PointerConfig.instance.pointerParams.keyboardCssSelectorsBlacklist,0)){v=this.delegate.getElementsStID(w);const A=h.PointerConfig.instance.pointerParams.keyboardIdentifierAttributes;for(let E=0;E<A.length&&!v;E++)v=w.getAttribute(A[E]);v&&!h.PointerConfig.instance.pointerParams.keyboardFieldBlackList.has(v)&&(m=this.interactionsMap.get(w),m||(m={epochTs:Date.now(),stId:v,elementId:h._POSignalsUtils.Util.getAttribute(w,"id"),name:h._POSignalsUtils.Util.getAttribute(w,"name"),type:h._POSignalsUtils.Util.getAttribute(w,"type"),events:[],counter:this.delegate.keyboardCounter,eventCounters:{epochTs:Date.now()},duration:0,numOfDeletions:0,additionalData:this.delegate.additionalData,quality:""},this.interactionsMap.set(w,m)))}return m}getKeyCode(o){return o.keyCode?o.keyCode:o.which?o.which:o.code?h._POSignalsUtils.Util.hashCode(o.code):h._POSignalsUtils.Util.hashCode(o.key)+(o.location||0)}getKeyboardEvent(o){return o||window.event}getKeystrokeId(o,a){const m=this.getKeyCode(o);let v;return a===b&&(this.keyStrokeMap.has(m)?(v=this.keyStrokeMap.get(m),this.keyStrokeMap.delete(m)):v=h._POSignalsUtils.Util.newGuid()),a===y&&(this.keyStrokeMap.has(m)&&o.repeat?v=this.keyStrokeMap.get(m):(v=h._POSignalsUtils.Util.newGuid(),this.keyStrokeMap.set(m,v))),v}createKeyboardInteractionEvent(o,a){const m=h._POSignalsUtils.Util.getSrcElement(a),v=m.value?m.value.toString().length:0;return{type:o,eventTs:a.timeStamp,epochTs:Date.now(),selectionStart:h._POSignalsUtils.Util.getElementSelectionStart(m),selectionEnd:h._POSignalsUtils.Util.getElementSelectionEnd(m),key:a.key,keystrokeId:null,currentLength:v}}enrichKeyboardEvent(o,a){(this.modifiersKeys.indexOf(o.key)>=0||this.specialKeys.indexOf(o.key)>=0)&&(a.key=o.key),a.keystrokeId=this.getKeystrokeId(o,a.type);const m=h._POSignalsUtils.Util.getSrcElement(o);a.currentLength=String(m.value).length}onFocus(o){var a,m;try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}o=this.getKeyboardEvent(o);const v=this.getInteractionFromElement(o);if(this.countEvent(o.type,v),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(v){const w=this.createKeyboardInteractionEvent(u,o);v.events.push(w);const A=this.uiControlManager.createUIControlData(o);A&&(v.uiControl={uiElement:A.uiElement,enrichedData:A.enrichedData},((m=(a=A.uiElement)===null||a===void 0?void 0:a.id)===null||m===void 0?void 0:m.length)>0&&h._POSignalsUtils.Logger.info(`Typing in element with id '${A.uiElement.id}'`))}}catch(v){h._POSignalsUtils.Logger.warn("error in keyboard focus handler",v)}}onKeyUp(o){try{if(o=this.getKeyboardEvent(o),(o.keyCode===13||o.which===13)&&this._onEnterPress.dispatch(this,h._POSignalsUtils.Util.getSrcElement(o)),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}const a=this.getInteractionFromElement(o);if(this.countEvent(o.type,a),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(a){const m=this.createKeyboardInteractionEvent(b,o);this.enrichKeyboardEvent(o,m),a.events.push(m)}else this.keyStrokeMap.delete(this.getKeyCode(o))}catch(a){h._POSignalsUtils.Logger.warn("error in keyUp handler",a)}}isEmpty(){return this.interactionsMap.size===0}onKeyDown(o){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}o=this.getKeyboardEvent(o);const a=this.getInteractionFromElement(o);if(this.countEvent(o.type,a),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(a){const m=this.createKeyboardInteractionEvent(y,o);this.enrichKeyboardEvent(o,m),a.events.push(m)}}catch(a){h._POSignalsUtils.Logger.warn("error in keyDown handler",a)}}onBlur(o){try{o=this.getKeyboardEvent(o);const a=this.getInteractionFromElement(o);if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)){this._onInteraction.dispatch(this,null);return}if(this.countEvent(o.type,a),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(o.type))return;if(a){const m=this.createKeyboardInteractionEvent(c,o);a.events.push(m),a.duration=this.delegate.getInteractionDuration(a.events),a.numOfDeletions=this.calculateNumOfDeletions(a.events);const v=h._POSignalsUtils.Util.getSrcElement(o);this.interactionsMap.delete(v),this._onInteraction.dispatch(this,a)}}catch(a){h._POSignalsUtils.Logger.warn("error in blur handler",a)}}calculateNumOfDeletions(o){if(!(o!=null&&o[0]))return 0;let a=0,m=o[0].currentLength;for(let v=1;v<o.length;v++)o[v].currentLength<m&&a++,m=o[v].currentLength;return a}get fieldsIdentifications(){return this._fieldsIdentifications}}h.Keyboard=f})(ee||(ee={}));var ee;(function(h){class y{constructor(c,u){var f;const s=h.PointerConfig.instance.pointerParams.uiModelingElementFilters,o=h._POSignalsUtils.Util.getAttribute,a=(f=c.getBoundingClientRect)===null||f===void 0?void 0:f.call(c);this._htmlElement=c,this._data={location:this.getUIElementAttribute(s.location,()=>window.location.href),id:this.getUIElementAttribute(s.id,()=>o(c,"id")),aria_label:this.getUIElementAttribute(s.aria_label,()=>o(c,"aria-label")),data_st_field:this.getUIElementAttribute(s.data_st_field,()=>u.getElementsStID(c)),data_st_tag:this.getUIElementAttribute(s.data_st_tag,()=>o(c,"data-st-tag")),data_selenium:this.getUIElementAttribute(s.data_selenium,()=>o(c,"data-selenium")),data_selenium_id:this.getUIElementAttribute(s.data_selenium_id,()=>o(c,"data-selenium-id")),data_testid:this.getUIElementAttribute(s.data_testid,()=>o(c,"data-testid")),data_test_id:this.getUIElementAttribute(s.data_test_id,()=>o(c,"data-test-id")),data_qa_id:this.getUIElementAttribute(s.data_qa_id,()=>o(c,"data-qa-id")),data_id:this.getUIElementAttribute(s.data_id,()=>o(c,"data-id")),name:this.getUIElementAttribute(s.name,()=>o(c,"name")),placeholder:this.getUIElementAttribute(s.placeholder,()=>o(c,"placeholder")),role:this.getUIElementAttribute(s.role,()=>o(c,"role")),type:this.getUIElementAttribute(s.type,()=>o(c,"type")),nodeTypeInt:this.getUIElementAttribute(s.nodeTypeInt,()=>c.nodeType),nodeName:this.getUIElementAttribute(s.nodeName,()=>c.nodeName),cursorType:this.getUIElementAttribute(s.cursorType,()=>window.getComputedStyle(c).cursor),text:this.getUIElementAttribute(s.text,()=>this.getElementText(c)),textLength:this.getUIElementAttribute(s.textLength,()=>{var m;return((m=this.getElementText(c))===null||m===void 0?void 0:m.length)||null}),bottom:this.getUIElementAttribute(s.bottom,()=>a==null?void 0:a.bottom),height:this.getUIElementAttribute(s.height,()=>a==null?void 0:a.height),left:this.getUIElementAttribute(s.left,()=>a==null?void 0:a.left),right:this.getUIElementAttribute(s.right,()=>a==null?void 0:a.right),top:this.getUIElementAttribute(s.top,()=>a==null?void 0:a.top),width:this.getUIElementAttribute(s.width,()=>a==null?void 0:a.width),x:this.getUIElementAttribute(s.x,()=>a==null?void 0:a.x),y:this.getUIElementAttribute(s.y,()=>a==null?void 0:a.y)},this._data.elementId=this.getStrongestElementID()}get data(){return h._POSignalsUtils.Util.filterReduce(this._data,c=>c!=null&&c!=="")}get htmlElement(){return this._htmlElement}getUIElementAttribute(c,u){var f;try{if(!((f=c==null?void 0:c.enabled)!==null&&f!==void 0)||f){let s=u();return typeof s=="string"&&(typeof(c==null?void 0:c.maxLength)=="number"&&s.length>c.maxLength&&(s=s.substring(0,c.maxLength)),c!=null&&c.filterRegex&&(s=s.replace(new RegExp(c.filterRegex,"g"),"*"))),s}}catch(s){h._POSignalsUtils.Logger.warn("Failed to add ui element attribute",s)}return null}getStrongestElementID(){return this._data.data_st_field||this._data.data_selenium_id||this._data.data_selenium||this._data.data_testid||this._data.data_test_id||this._data.data_qa_id||this._data.data_id||this._data.id||""}getElementText(c){return c instanceof HTMLInputElement&&!h._POSignalsUtils.Util.isClickableInput(c)?null:h._POSignalsUtils.Util.getElementText(c)}equals(c){return!(!c||c.location&&location.href.indexOf(c.location)<0||c.elementId&&c.elementId!==this._data.elementId||c.id&&c.id!==this._data.id||c.aria_label&&c.aria_label!==this._data.aria_label||c.data_st_field&&c.data_st_field!==this._data.data_st_field||c.data_st_tag&&c.data_st_tag!==this._data.data_st_tag||c.data_selenium&&c.data_selenium!==this._data.data_selenium||c.data_selenium_id&&c.data_selenium_id!==this._data.data_selenium_id||c.data_testid&&c.data_testid!==this._data.data_testid||c.data_test_id&&c.data_test_id!==this._data.data_test_id||c.data_qa_id&&c.data_qa_id!==this._data.data_qa_id||c.data_id&&c.data_id!==this._data.data_id||c.name&&c.name!==this._data.name||c.placeholder&&c.placeholder!==this._data.placeholder||c.role&&c.role!==this._data.role||c.type&&c.type!==this._data.type||c.nodeTypeInt&&c.nodeTypeInt!==this._data.nodeTypeInt||c.nodeName&&c.nodeName!==this._data.nodeName||c.cursorType&&c.cursorType!==this._data.cursorType||c.text&&c.text!==this._data.text||c.textLength&&c.textLength!==this._data.textLength||c.bottom&&c.bottom!==this._data.bottom||c.height&&c.height!==this._data.height||c.left&&c.left!==this._data.left||c.right&&c.right!==this._data.right||c.top&&c.top!==this._data.top||c.width&&c.width!==this._data.width||c.x&&c.x!==this._data.x||c.y&&c.y!==this._data.y)}static createCssSelector(c){let u="";return c!=null&&c.nodeName&&(u+=c.nodeName.toLowerCase()),c!=null&&c.id&&(u+=`[id="${c.id}"]`),c!=null&&c.aria_label&&(u+=`[aria-label="${c.aria_label}"]`),c!=null&&c.data_st_field&&(u+=`[data-st-field="${c.data_st_field}"]`),c!=null&&c.data_st_tag&&(u+=`[data-st-tag="${c.data_st_tag}"]`),c!=null&&c.data_selenium&&(u+=`[data-selenium="${c.data_selenium}"]`),c!=null&&c.data_selenium_id&&(u+=`[data-selenium-id="${c.data_selenium_id}"]`),c!=null&&c.data_testid&&(u+=`[data-testid="${c.data_testid}"]`),c!=null&&c.data_test_id&&(u+=`[data-test-id="${c.data_test_id}"]`),c!=null&&c.data_qa_id&&(u+=`[data-qa-id="${c.data_qa_id}"]`),c!=null&&c.data_id&&(u+=`[data-id="${c.data_id}"]`),c!=null&&c.name&&(u+=`[name="${c.name}"]`),c!=null&&c.placeholder&&(u+=`[placeholder="${c.placeholder}"]`),c!=null&&c.role&&(u+=`[role="${c.role}"]`),c!=null&&c.type&&(u+=`[type="${c.type}"]`),u}}h.UiElement=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this._clientDelegate=c}createUIControlData(c){const u=h._POSignalsUtils.Util.getSrcElement(c);if(!u)return null;const f=h.PointerConfig.instance.pointerParams.uiModelingBlacklistRegex;if(f&&window.location.href.match(f))return h._POSignalsUtils.Logger.debug("ui control data is disabled for this url"),null;const s=new h.UiElement(u,this._clientDelegate);return this.findMatchingUiControl(s)||{uiElement:s.data}}findMatchingUiControl(c,u=0){try{const f=h.PointerConfig.instance.pointerParams.uiControlsConfig;if(f.length===0||u>h.PointerConfig.instance.pointerParams.uiModelingMaxMatchingParents)return null;let s=!1;for(const a of f)if(!(!a.tagConfig&&!a.enrichedData)&&(s=!0,c.equals(a.uiElement)))return{uiElement:c.data,enrichedData:a.enrichedData,tagConfig:a.tagConfig};if(!s)return null;const o=c.htmlElement.parentElement;if((o==null?void 0:o.nodeType)===Node.ELEMENT_NODE){const a=new h.UiElement(o,this._clientDelegate);return this.findMatchingUiControl(a,u+1)}}catch(f){h._POSignalsUtils.Logger.warn("failed to find matching ui control",f)}return null}convertToTagValueConfig(c){var u;return{context:(u=c==null?void 0:c.uiElement)===null||u===void 0?void 0:u.location,valueSelector:h.UiElement.createCssSelector(c==null?void 0:c.uiElement),operation:c==null?void 0:c.operation,valueMandatory:c==null?void 0:c.valueMandatory}}}h.UIControlManager=y})(ee||(ee={}));var ee;(function(h){class y{get isStarted(){return this._isStarted}get onInteraction(){return this._onInteraction.asEvent()}get onClickEvent(){return this._onClickEvent.asEvent()}constructor(c,u){this.BEHAVIORAL_TYPE="mouse",this._isStarted=!1,this._onInteraction=new h.EventDispatcher,this._onClickEvent=new h.EventDispatcher,this.lastMouseInteractionTimestamp=null,this.mouseEventsCounter=0,this.eventCounters={epochTs:Date.now()},this.delegate=c,this.uiControlManager=u,this.wheelOptions=h._POSignalsUtils.Util.isPassiveSupported()?{passive:!0}:!1,this.onPointerHandle=this.onPointerEvent.bind(this),this.onClickHandle=this.onClick.bind(this),this.onDblclickHandle=this.onMouseClickEvent.bind(this),this.onMousedownHandle=this.onMouseClickEvent.bind(this),this.onMousemoveHandle=this.onMouseEvent.bind(this),this.onMouseoutHandle=this.onMouseout.bind(this),this.onMouseoverHandle=this.onMouseEvent.bind(this),this.onMouseupHandle=this.onMouseClickEvent.bind(this),this.onWheelHandle=this.onMouseEvent.bind(this),this.interactionUpdateHandle=this.interactionUpdate.bind(this)}countEvent(c){this.eventCounters[c]=(this.eventCounters[c]||0)+1}interactionUpdate(){this.lastMouseInteraction?Date.now()-this.lastMouseInteractionTimestamp>=h.PointerConfig.instance.pointerParams.mouseIdleTimeoutMillis&&this.dispatch():!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)&&Date.now()-this.lastMouseInteractionTimestamp<=h.PointerConfig.instance.pointerParams.mouseIntervalMillis&&this.dispatch()}enrichLastInteraction(){var c;if(!this.lastMouseInteraction)return;this.lastMouseInteraction.eventCounters=this.eventCounters,this.lastMouseInteraction.duration=this.delegate.getInteractionDuration(this.lastMouseInteraction.events);const u=(c=this.lastMouseInteraction.events)===null||c===void 0?void 0:c.filter(f=>f.type==="mousemove");this.lastMouseInteraction.timeProximity=h._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(u),this.lastMouseInteraction.meanEuclidean=h._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(u)}dispatch(){try{this.enrichLastInteraction(),this._onInteraction.dispatch(this,this.lastMouseInteraction),this.eventCounters={epochTs:Date.now()},this.lastMouseInteraction=null,this.mouseEventsCounter=0}catch(c){h._POSignalsUtils.Logger.warn("Failed to dispatch mouse events",c)}}updateInteraction(c,u){this.lastMouseInteraction||(this.lastMouseInteraction={epochTs:Date.now(),events:[],counter:this.delegate.mouseCounter,additionalData:this.delegate.additionalData,eventCounters:{epochTs:Date.now()},duration:0,timeProximity:0,uiControl:void 0,meanEuclidean:0,reduction:{},quality:""}),this.lastMouseInteraction.events.push(c),this.mouseEventsCounter++,u&&(this.lastMouseInteraction.uiControl={uiElement:u.uiElement,enrichedData:u.enrichedData},this.delegate.addUiControlTags(u.tagConfig)),this.mouseEventsCounter>=h.PointerConfig.instance.pointerParams.maxMouseEvents&&this.dispatch()}start(){this._isStarted?h._POSignalsUtils.Logger.debug("Desktop Mouse events already listening"):(this.delegate.addEventListener(document,"click",this.onClickHandle,!0),this.delegate.addEventListener(document,"dblclick",this.onDblclickHandle),this.delegate.addEventListener(document,"mousedown",this.onMousedownHandle),this.delegate.addEventListener(document,"mousemove",this.onMousemoveHandle),this.delegate.addEventListener(document,"mouseout",this.onMouseoutHandle),this.delegate.addEventListener(document,"mouseover",this.onMouseoverHandle),this.delegate.addEventListener(document,"mouseup",this.onMouseupHandle),this.delegate.addEventListener(document,"wheel",this.onWheelHandle,this.wheelOptions),this.delegate.addEventListener(document,"pointerover",this.onPointerHandle),this.delegate.addEventListener(document,"pointerenter",this.onPointerHandle),this.delegate.addEventListener(document,"pointerdown",this.onPointerHandle),this.delegate.addEventListener(document,"pointermove",this.onPointerHandle),this.delegate.addEventListener(document,"pointerup",this.onPointerHandle),this.delegate.addEventListener(document,"pointercancel",this.onPointerHandle),this.delegate.addEventListener(document,"pointerout",this.onPointerHandle),this.delegate.addEventListener(document,"pointerleave",this.onPointerHandle),this.updateIntervalHandle=setInterval(this.interactionUpdateHandle,h.PointerConfig.instance.pointerParams.mouseIntervalMillis),this._isStarted=!0,h._POSignalsUtils.Logger.debug("Desktop Mouse events start listening..."))}stop(){this._isStarted?(document.removeEventListener("click",this.onClickHandle,!0),document.removeEventListener("dblclick",this.onDblclickHandle),document.removeEventListener("mousedown",this.onMousedownHandle),document.removeEventListener("mousemove",this.onMousemoveHandle),document.removeEventListener("mouseout",this.onMouseoutHandle),document.removeEventListener("mouseover",this.onMouseoverHandle),document.removeEventListener("mouseup",this.onMouseupHandle),document.removeEventListener("wheel",this.onWheelHandle,this.wheelOptions),document.removeEventListener("pointerover",this.onPointerHandle),document.removeEventListener("pointerenter",this.onPointerHandle),document.removeEventListener("pointerdown",this.onPointerHandle),document.removeEventListener("pointermove",this.onPointerHandle),document.removeEventListener("pointerup",this.onPointerHandle),document.removeEventListener("pointercancel",this.onPointerHandle),document.removeEventListener("pointerout",this.onPointerHandle),document.removeEventListener("pointerleave",this.onPointerHandle),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1,h._POSignalsUtils.Logger.debug("Desktop Mouse events stop listening...")):h._POSignalsUtils.Logger.debug("Desktop Mouse events already stopped")}onClick(c){var u,f;try{this.lastMouseInteractionTimestamp=Date.now();const s=h._POSignalsUtils.Util.getSrcElement(c);if(this._onClickEvent.dispatch(this,s),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;const o=this.uiControlManager.createUIControlData(c);this.updateInteraction(this.createMouseClickEvent(c.type,c),o),this.dispatch(),((f=(u=o==null?void 0:o.uiElement)===null||u===void 0?void 0:u.id)===null||f===void 0?void 0:f.length)>0&&h._POSignalsUtils.Logger.info(`Tapped on element with id '${o.uiElement.id}'`)}catch(s){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,s)}}onMouseout(c){try{this.onMouseEvent(c);const u=c.relatedTarget||c.toElement;(!u||u.nodeName==="HTML")&&this.dispatch()}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onMouseEvent(c){try{if(c.type!=="wheel"&&(this.lastMouseInteractionTimestamp=Date.now()),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createMouseEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onMouseClickEvent(c){try{if(this.lastMouseInteractionTimestamp=Date.now(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createMouseClickEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}onPointerEvent(c){try{if(this.lastMouseInteractionTimestamp=Date.now(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(c.type),h.PointerConfig.instance.pointerParams.eventsToIgnore.has(c.type)))return;this.updateInteraction(this.createPointerEvent(c.type,c))}catch(u){h._POSignalsUtils.Logger.warn(`error in ${c.type} handler`,u)}}clearBuffer(){let c=null;return this.lastMouseInteraction&&(c=this.lastMouseInteraction),this.lastMouseInteraction=null,c}isEmpty(){return!this.lastMouseInteraction}createMouseEvent(c,u){return{type:c,eventTs:u.timeStamp,epochTs:Date.now(),button:u.button,offsetX:u.offsetX,offsetY:u.offsetY,pageX:u.pageX,pageY:u.pageY,screenX:u.screenX,screenY:u.screenY,getX(){return u.screenX},getY(){return u.screenY}}}createPointerEvent(c,u){return{...this.createMouseEvent(c,u),pointerId:u.pointerId,width:u.width,height:u.height,pressure:u.pressure,tangentialPressure:u.tangentialPressure,tiltX:u.tiltX,tiltY:u.tiltY,twist:u.twist,pointerType:u.pointerType,isPrimary:u.isPrimary}}createMouseClickEvent(c,u){const f=this.createMouseEvent(c,u);if(u.target&&h._POSignalsUtils.Util.isFunction(u.target.getBoundingClientRect)){const s=u.target.getBoundingClientRect();f.targetBottom=s.bottom,f.targetHeight=s.height,f.targetLeft=s.left,f.targetRight=s.right,f.targetTop=s.top,f.targetWidth=s.width,f.targetX=s.x,f.targetY=s.y}return f}}h.Mouse=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.counter=0,this.key=c,this.counter=this.loadFromStorage()}loadFromStorage(){const c=y.sessionStorage.getItem(this.key);return Number(c)||0}get(){return this.counter}increment(c=1){this.counter+=c,y.sessionStorage.setItem(this.key,this.counter)}decrement(c=1){this.increment(c*-1)}reset(){this.counter=0,y.sessionStorage.removeItem(this.key)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageCounter=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.mapKey=c,this.cache=this.loadFromStorage()}loadFromStorage(){let c=y.sessionStorage.getItem(this.mapKey);return c||(c=JSON.stringify({})),JSON.parse(c)}asMap(){return this.cache}set(c,u,f=!0){this.cache[c]=u,f&&y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}sync(){y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}get(c){return this.cache[c]}delete(c){delete this.cache[c],y.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))}values(){return h._POSignalsUtils.Util.values(this.cache)}clear(){this.cache={},y.sessionStorage.removeItem(this.mapKey)}forEach(c){for(const u in this.cache)this.cache.hasOwnProperty(u)&&c(this.cache[u],u)}}y.sessionStorage=h._POSignalsStorage.SessionStorage.instance.sessionStorage,h.StorageMap=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.config={},this._cacheHash=0,this.cache=new Map}refreshConfig(c){try{if(!c)return;const u=h._POSignalsUtils.Util.hashCode(JSON.stringify(c));if(this._cacheHash===u)return;this.config=c,this._cacheHash=u,this.cache=new Map}catch(u){h._POSignalsUtils.Logger.warn("Failed to set css selectors",u)}}getMatchingTags(c,u){const f=this.cache.get(c);if(f)return f;const s={};for(const o in this.config)try{if(!this.config.hasOwnProperty(o))continue;let a=this.config[o].selector||[];h._POSignalsUtils.Util.isArray(a)||(a=[].concat(a));for(const m of a)h._POSignalsUtils.Util.isSelectorMatches(c,m,u)&&(s[o]=this.config[o])}catch(a){h._POSignalsUtils.Logger.warn(`Failed to get the config for ${o} tag`,a)}return this.cache.set(c,s),s}getValue(c,u){if(u&&c)switch(u=u.trim(),c){case"email_domain":return h._POSignalsUtils.Util.getEmailDomain(u);case"obfuscate":return`${h._POSignalsUtils.Util.mod(u,1e3)}`;case"plain":return u;case"zip":return u.substr(0,3);case"length":return`${u.length}`}return""}get cacheHash(){return this._cacheHash}}h.TagsIdentifications=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this._reduceFactorMap=null}set reduceFactorMap(c){this._reduceFactorMap=c}get reduceFactorMap(){return this._reduceFactorMap}reduceEventsByFactor(c){try{if(!c||c.length===0||!this.reduceFactorMap)return c;const u=new Map,f=[];for(let o=0;o<c.length;o++)u.get(c[o].type)?u.get(c[o].type).push(o):u.set(c[o].type,[o]);u.forEach((o,a)=>{const m=this.reduceFactorMap[a]?Number(this.reduceFactorMap[a]):0;this.reduceByFactor(m,o,v=>{f[o[v]]=!0})});const s=[];for(let o=0;o<c.length;o++)f[o]&&s.push(c[o]);return c.length!==s.length&&h._POSignalsUtils.Logger.debug(`${c.length-s.length} events reduced out of ${c.length}`),s}catch(u){return h._POSignalsUtils.Logger.warn("Failed to reduce events",u),c}}reduceByFactor(c,u,f){c=Math.min(c,1);const s=Math.round(Math.max(u.length*(1-c),2)),o=(u.length-1)/(s-1),a=Math.min(u.length,s);for(let m=0;m<a;m++){const v=Math.round(m*o);f(v)}}}h.ReduceFactor=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.algorithm=c}reduce(c,u){if(y.TYPES_TO_REDUCE.indexOf(u)===-1)return{keptEvents:c,epsilon:0};if(c.length<=y.MIN_EVENTS_TO_REDUCE)return{keptEvents:c,epsilon:0};const f=c.length<50?.55:c.length<100?.35:.2,s=c.length<50?1:c.length<100?3:7,o=this.algorithm.reduceEvents(c,s),a=o.length/c.length;if(o.length>=10&&a>=f)return{keptEvents:o,epsilon:s};const m=c.length<50?.1:c.length<100?.3:.7,v=this.algorithm.reduceEvents(c,m),w=v.length/c.length;if(v.length<=y.MIN_EVENTS_TO_REDUCE||w<=f)return{keptEvents:v,epsilon:m};const A=(Math.min(s,Math.pow(s,a/f))*Math.abs(w-f)+m*Math.abs(a-f))/Math.abs(a-w);return(A<m||A>s)&&h._POSignalsUtils.Logger.warn(`linear weighted average - calculated epsilon is out of range, lowEpsilon: ${m}, highEpsilon: ${s}, epsilon: ${A}`),{keptEvents:this.algorithm.reduceEvents(c,A),epsilon:A}}}y.MIN_EVENTS_TO_REDUCE=18,y.TYPES_TO_REDUCE=["mousemove","touchmove"],h.RDPEpsilonStrategy=y})(ee||(ee={}));var ee;(function(h){class y{constructor(c){this.rdpStrategy=c}reduceWithRPD(c){if(!c||c.length===0)return{events:c,reductionInfo:{}};const u=new Map;let f=[];for(const o of c)u.get(o.type)?u.get(o.type).push(o):u.set(o.type,[o]);const s={};return u.forEach((o,a)=>{const{keptEvents:m,epsilon:v}=this.rdpStrategy.reduce(o,a);v>0&&(s[a]={epsilon:v,originalLength:o.length,keptLength:m.length}),f=f.concat(m)}),{events:h._POSignalsUtils.Util.sortEventsByTimestamp(f),reductionInfo:s}}}h.ReduceRDP=y})(ee||(ee={}));var ee;(function(h){class y{getSqDist(c,u){const f=c.getX()-u.getX(),s=c.getY()-u.getY();return f*f+s*s}getSqSegDist(c,u,f){let s=u.getX(),o=u.getY(),a=f.getX()-s,m=f.getY()-o;if(a!==0||m!==0){const v=((c.getX()-s)*a+(c.getY()-o)*m)/(a*a+m*m);v>1?(s=f.getX(),o=f.getY()):v>0&&(s+=a*v,o+=m*v)}return a=c.getX()-s,m=c.getY()-o,a*a+m*m}simplifyRadialDist(c,u){let f=c[0],s=[f],o;for(let a=1,m=c.length;a<m;a++)o=c[a],this.getSqDist(o,f)>u&&(s.push(o),f=o);return f!==o&&s.push(o),s}simplifyDPStep(c,u,f,s,o){let a=s,m;for(let v=u+1;v<f;v++){const w=this.getSqSegDist(c[v],c[u],c[f]);w>a&&(m=v,a=w)}a>s&&(m-u>1&&this.simplifyDPStep(c,u,m,s,o),o.push(c[m]),f-m>1&&this.simplifyDPStep(c,m,f,s,o))}simplifyDouglasPeucker(c,u){const f=c.length-1,s=[c[0]];return this.simplifyDPStep(c,0,f,u,s),s.push(c[f]),s}simplify(c,u,f){if(c.length<=2)return c;const s=u!==void 0?u*u:1;return c=f?c:this.simplifyRadialDist(c,s),c=this.simplifyDouglasPeucker(c,s),c}reduceEvents(c,u){return this.simplify(c,u)}}h.RDPReduction=y})(ee||(ee={}));var ee;(function(h){class y{filterMoveEvents(c,u){if(c.length<=18)return c;const f=c.filter(m=>m.type===u),s=h._POSignalsUtils.Util.keepFirstEventsWithDistance({events:f,threshold:200,min:18,max:30});let o=-1;const a={};for(let m=0;m<c.length;m++){const v=c[m];if(v.type!==u){if(v.type==="mousedown"){o=m;continue}a[v.type]||(s.push(v),a[v.type]=!0)}}return o>=0&&s.push(c[o]),h._POSignalsUtils.Util.sortEventsByTimestamp(s)}}h.EventsReduction=y})(ee||(ee={}));var ee;(function(h){class y{constructor(){this.reduceFactor=new h.ReduceFactor,this.reduceRDP=new h.ReduceRDP(new h.RDPEpsilonStrategy(new h.RDPReduction)),this.eventsReduction=new h.EventsReduction}set reduceFactorMap(c){this.reduceFactor.reduceFactorMap=c}reduceGesture(c){const u=this.reduceRDP.reduceWithRPD(c.events);c.events=this.eventsReduction.filterMoveEvents(u.events,"touchmove"),c.reduction=u.reductionInfo}reduceKeyboardInteraction(c){c.events=h._POSignalsUtils.Util.filterArrayByLength(c.events,50)}reduceMouseInteraction(c){const u=this.reduceRDP.reduceWithRPD(c.events);c.events=this.eventsReduction.filterMoveEvents(u.events,"mousemove"),c.reduction=u.reductionInfo}}h.ReductionManager=y})(ee||(ee={}));var ee;(function(h){class y extends h.ClientBase{constructor(c,u){super(c),this.tagsWithValueIdentifications=new h.TagsIdentifications,this.reductionManager=new h.ReductionManager,this.lastGestureTimestamp=0,this.currentBufferSize=0,this.MAX_EVENT_COUNTERS=20,this.bufferingStrategy=h.StrategyFactory.createBufferingStrategy(u,this),this.capturedKeyboardInteractions=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_KEYBOARD_INTERACTIONS),this.keyboardInteractionsCount=new h.StorageCounter(h._POSignalsUtils.Constants.KEYBOARD_INTERACTIONS_COUNT),this.mouseInteractionsCount=new h.StorageCounter(h._POSignalsUtils.Constants.MOUSE_INTERACTIONS_COUNT),this.gesturesCount=new h.StorageCounter(h._POSignalsUtils.Constants.GESTURES_COUNT),this.mouseEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.MOUSE_EVENT_COUNTERS),this.keyboardEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.KEYBOARD_EVENT_COUNTERS),this.touchEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.TOUCH_EVENT_COUNTERS),this.indirectEventCounters=new h.StorageArray(h._POSignalsUtils.Constants.INDIRECT_EVENT_COUNTERS),this.capturedMouseInteractions=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS),this.capturedGestures=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_GESTURES),this.capturedIndirectEvents=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_INDIRECT),this.capturedMouseInteractionSummary=new h.StorageArray(h._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS_SUMMARY),this.currentBufferSize=this.capturedGestures.length+this.capturedMouseInteractions.length+this.capturedKeyboardInteractions.length,this.uiControlManager=new h.UIControlManager(this),this.keyboard=new h.Keyboard(this,this.uiControlManager),this.keyboard.onInteraction.subscribe(this.handleKeyboardInteraction.bind(this)),this.keyboard.onEnterPress.subscribe(this.handleStTagOnEnter.bind(this)),this.keyboard.onObfuscatedValue.subscribe(this.handleTagValueOnBlur.bind(this)),this.mouse=new h.Mouse(this,this.uiControlManager),this.mouse.onInteraction.subscribe(this.handleMouseInteraction.bind(this)),this.mouse.onClickEvent.subscribe(this.handleStTagOnClick.bind(this)),this.sensors=new h.Sensors(this),this.gesture=new h.GestureEvents(this,this.sensors),this.gesture.onGesture.subscribe(this.handleGesture.bind(this)),this.indirect=new h.IndirectClient(this),this.indirect.onIndirect.subscribe(this.handleIndirect.bind(this)),this.onUrlChangeHandler=this.onUrlChange.bind(this)}get keyboardCounter(){return this.keyboardInteractionsCount.get()}get mouseCounter(){return this.mouseInteractionsCount.get()}get gesturesCounter(){return this.gesturesCount.get()}get additionalData(){const c=h._POSignalsUtils.Util.getDeviceOrientation();return{locationHref:location.href,devTools:h._POSignalsUtils.Util.getDevToolsState(),innerWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,innerHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight,width:screen.width,height:screen.height,availWidth:screen.availWidth,availHeight:screen.availHeight,pixelRatio:window.devicePixelRatio,deviceOrientation:c.orientation,deviceAngle:c.angle}}getBehavioralData(){this.clearIndirectBuffer();const c=this.reduceEpochEventCounters();return{mouse:{count:this.mouseInteractionsCount.get(),interactions:this.capturedMouseInteractions.get()},keyboard:{count:this.keyboardInteractionsCount.get(),interactions:this.capturedKeyboardInteractions.get()},touch:{count:this.gesturesCount.get(),interactions:this.capturedGestures.get()},indirect:{events:this.capturedIndirectEvents.get()},mouseSummary:{events:this.capturedMouseInteractionSummary.get()},eventCounters:c}}getBufferSize(){return this.currentBufferSize}getInteractionDuration(c){return(c==null?void 0:c.length)>0?c[c.length-1].epochTs-c[0].epochTs:0}async dispose(){this.stopListening(),this.keyboard.onInteraction.unsubscribe(this.handleKeyboardInteraction.bind(this)),this.keyboard.onEnterPress.unsubscribe(this.handleStTagOnEnter.bind(this)),this.keyboard.onObfuscatedValue.unsubscribe(this.handleTagValueOnBlur.bind(this)),this.mouse.onInteraction.unsubscribe(this.handleMouseInteraction.bind(this)),this.mouse.onClickEvent.unsubscribe(this.handleStTagOnClick.bind(this)),this.gesture.onGesture.unsubscribe(this.handleGesture.bind(this)),this.indirect.unsubscribe(),this.indirect.onIndirect.unsubscribe(this.handleIndirect.bind(this))}collectBehavioralData(c){if(this.isBehavioralDataPaused)return!1;const u=h.PointerConfig.instance.pointerParams.behavioralBlacklist;return!c||!u||!u[c]?!0:!window.location.href.match(u[c])}getElementsStID(c){try{return h._POSignalsUtils.Util.getAttribute(c,"data-st-field")||this.keyboard.fieldsIdentifications.getIdentification(c,0)||""}catch(u){return h._POSignalsUtils.Logger.warn("failed to get element stId",u),""}}addEventListener(c,u,f,s){h.PointerConfig.instance.pointerParams.eventsBlackList.has(u)||(c.addEventListener(u,this.onEventHandler,s),c.addEventListener(u,f,s))}addUiControlTags(c){if((c==null?void 0:c.length)>0){let u=!1;for(const f of c)try{if(f!=null&&f.name){const s=this.uiControlManager.convertToTagValueConfig(f.value);u=this.addSingleTagWithValue(f.name,s)||u}}catch(s){h._POSignalsUtils.Logger.warn("failed to add tag config",s)}}}refreshListening(){const c=h.PointerConfig.instance;this.tagsWithValueIdentifications.refreshConfig(c.pointerParams.remoteTags),this.reductionManager.reduceFactorMap=c.pointerParams.eventsReduceFactorMap,this.keyboard.refreshKeyboardCssSelectors(c.pointerParams.keyboardCssSelectors),this.sensors.maxSensorSamples=c.pointerParams.maxSensorSamples,this.sensors.sensorsTimestampDeltaInMillis=c.pointerParams.sensorsDeltaInMillis,this.mouse.start(),this.keyboard.start(),this.gesture.start(),this.indirect.start(),c.pointerParams.maxSensorSamples==0?this.sensors.stop():this.sensors.start(),this.addEventListener(window,"_onlocationchange",this.onUrlChangeHandler),this.addEventListener(window,"popstate",this.onUrlChangeHandler)}addSingleTagWithValue(c,u){try{if(u!=null&&u.context&&!window.location.href.match(u.context))return!1;let f="";if(u!=null&&u.operation&&u!=null&&u.valueSelector){const s=document.querySelector(u.valueSelector);if(s){const o=h._POSignalsUtils.Util.getElementText(s);f=this.tagsWithValueIdentifications.getValue(u.operation,o)}}if(u!=null&&u.valueMandatory&&!f)return h._POSignalsUtils.Logger.warn(`tag '${c}' wasn't added. value is missing`),!1;this.addTag(c,f)}catch(f){h._POSignalsUtils.Logger.warn(`failed to add ${c} tag`,f)}return!1}addTagsWithValue(c){let u=!1;for(const f in c)c.hasOwnProperty(f)&&(u=this.addSingleTagWithValue(f,c[f])||u)}handleStTagOnEnter(c,u){u instanceof HTMLInputElement&&h._POSignalsUtils.Util.isTextInput(u)&&this.handleStTagElement(u)}handleTagValueOnBlur(c,u){u&&this.addTag(u.fieldKey,u.obfuscatedValue)}handleStTagOnClick(c,u){(!(u instanceof HTMLInputElement)||h._POSignalsUtils.Util.isClickableInput(u))&&this.handleStTagElement(u)}handleMouseInteraction(c,u){if(!u)return;this.incrementEventCounters(u.eventCounters,"mouse"),this.filterOldMouseEvents(),this.mouseInteractionsCount.increment(),this.reductionManager.reduceMouseInteraction(u);const f=this.bufferingStrategy.calculateStrategyResult(u,"mouse");u.quality=f.quality,this.handleMouseInteractionSummary(u),f.shouldCollect&&(f.remove&&this.removeInteraction(f.remove),this.capturedMouseInteractions.push(u),this.lastGestureTimestamp!==u.events[u.events.length-1].eventTs&&this.currentBufferSize++)}handleMouseInteractionSummary(c){const u={epochTs:c.epochTs,duration:this.getInteractionDuration(c.events),quality:c.quality};this.capturedMouseInteractionSummary.push(u),this.capturedMouseInteractionSummary.length>10&&this.capturedMouseInteractionSummary.remove(0)}handleIndirect(c,u){this.filterOldIndirectEvents(),this.addIndirectEvents(u)}handleKeyboardInteraction(c,u){if(!u)return;this.incrementEventCounters(u.eventCounters,"keyboard"),this.filterOldKeyboardEvents(),this.keyboardInteractionsCount.increment(),this.reductionManager.reduceKeyboardInteraction(u);const f=this.bufferingStrategy.calculateStrategyResult(u,"keyboard");f.shouldCollect&&(f.remove&&this.removeInteraction(f.remove),u.quality=f.quality,this.capturedKeyboardInteractions.push(u),this.currentBufferSize++)}handleGesture(c,u){var f;if(!this.isValidGesture(u))return;this.incrementEventCounters(u.eventCounters,"touch"),this.filterOldGesturesEvents(),this.gesturesCount.increment(),this.reductionManager.reduceGesture(u);const s=this.bufferingStrategy.calculateStrategyResult(u,"touch");s.shouldCollect&&(s.remove&&this.removeInteraction(s.remove),u.quality=s.quality,this.sensors.onGesture(u),this.capturedGestures.push(u),this.currentBufferSize++,this.lastGestureTimestamp=(f=u.events[u.events.length-1])===null||f===void 0?void 0:f.eventTs)}clearIndirectBuffer(){const c=this.indirect.clearBuffer();this.addIndirectEvents(c)}removeInteraction(c){switch(c.type){case"mouse":this.capturedMouseInteractions.remove(c.index);break;case"keyboard":this.capturedKeyboardInteractions.remove(c.index);break;case"touch":this.capturedGestures.remove(c.index);break}}addIndirectEvents(c){var u;if(((u=c==null?void 0:c.events)===null||u===void 0?void 0:u.length)>0){const f=[],s=h._POSignalsUtils.Util.typesCounter(this.capturedIndirectEvents.get());for(const o of c.events)h.PointerConfig.instance.pointerParams.highPriorityIndirectEvents.has(o.type)&&this.capturedIndirectEvents.length+f.length<h.PointerConfig.instance.pointerParams.maxIndirectEvents&&f.push(o),s[o.type]>0||(f.push(o),s[o.type]=1);this.incrementEventCounters(s,"indirect"),this.capturedIndirectEvents.set(this.capturedIndirectEvents.concat(f))}}onUrlChange(){this.addTag("location",window.location.href)}handleStTagElement(c){if(c){const u=h.PointerConfig.instance.pointerParams.maxSelectorChildren,f=this.tagsWithValueIdentifications.getMatchingTags(c,u);this.addTagsWithValue(f);const s=h._POSignalsUtils.Util.isSelectorMatches(c,"[data-st-tag]",u);if(s instanceof Element){const o=h._POSignalsUtils.Util.getAttribute(s,"data-st-tag"),a=h._POSignalsUtils.Util.getAttribute(s,"data-st-tag-value");o&&this.addTag(o,a)}}}stopListening(){this.keyboard.stop(),this.mouse.stop(),this.gesture.stop(),this.indirect.stop(),this.sensors.stop(),window.removeEventListener("_onlocationchange",this.onUrlChangeHandler),window.removeEventListener("popstate",this.onUrlChangeHandler)}clearBehavioralData(){this.capturedKeyboardInteractions.clear(),this.capturedMouseInteractions.clear(),this.capturedGestures.clear(),this.capturedIndirectEvents.clear(),this.sensors.reset(),h.Tags.instance.reset(),this.currentBufferSize=0,this.keyboardInteractionsCount.reset(),this.mouseInteractionsCount.reset(),this.gesturesCount.reset(),this.mouseEventCounters.clear(),this.mouseEventCounters.clear(),this.indirectEventCounters.clear(),this.keyboardEventCounters.clear(),this.touchEventCounters.clear(),this.eventCounters.clear()}isValidGesture(c){var u,f;return((u=c==null?void 0:c.events)===null||u===void 0?void 0:u.length)>0&&((f=c==null?void 0:c.events)===null||f===void 0?void 0:f.length)<h.PointerConfig.instance.pointerParams.maxSnapshotsCount}filterOldIndirectEvents(){const c=new Date().getTime();this.capturedIndirectEvents.set(this.capturedIndirectEvents.get().filter(u=>c-u.epochTs<=36e5))}filterOldMouseEvents(){const c=new Date().getTime();this.capturedMouseInteractions.set(this.capturedMouseInteractions.get().filter(u=>c-u.epochTs<=36e5))}filterOldKeyboardEvents(){const c=new Date().getTime();this.capturedKeyboardInteractions.set(this.capturedKeyboardInteractions.get().filter(u=>c-u.epochTs<=36e5))}filterOldGesturesEvents(){const c=new Date().getTime();this.capturedGestures.set(this.capturedGestures.get().filter(u=>c-u.epochTs<=36e5))}incrementEventCounters(c,u){const f=Date.now();let s;switch(u){case"mouse":s=this.mouseEventCounters;break;case"keyboard":s=this.keyboardEventCounters;break;case"touch":s=this.touchEventCounters;break;case"indirect":s=this.indirectEventCounters;break}s.set(s.get().filter(o=>f-o.epochTs<=36e5)),s.length<this.MAX_EVENT_COUNTERS||s.remove(0),s.push(c)}reduceEpochEventCounters(){const c={epochTs:Date.now()};return[...this.mouseEventCounters.get(),...this.keyboardEventCounters.get(),...this.touchEventCounters.get(),...this.indirectEventCounters.get()].forEach(u=>{Object.keys(u).forEach(f=>{f!=="epochTs"&&(c[f]?c[f]+=u[f]:c[f]=u[f])})}),delete c.epochTs,c}}h.Client=y})(ee||(ee={}));class S{static getData(){return ee.ClientBase.instance().getData()}static init(y){return ee._POSignalsUtils.Util.ieFix(),ee.ClientBase.instance().startSignals(y)}static initSilent(y){return this.init(y)}static pauseBehavioralData(){ee.ClientBase.instance().pauseBehavioralData()}static resumeBehavioralData(){ee.ClientBase.instance().resumeBehavioralData()}}(function(h){document.readyState!=="loading"?h():document.addEventListener("DOMContentLoaded",h)})(function(){if(!window._pingOneSignalsReady){const h=new CustomEvent("PingOneSignalsReadyEvent");document.dispatchEvent(h),window._pingOneSignalsReady=!0}});var ee;(function(h){let y;(function(c){c[c.RICH=3]="RICH",c[c.CLICK=2]="CLICK",c[c.MOVE=1]="MOVE",c[c.POOR=0]="POOR"})(y||(y={}));class b{constructor(u,f,s,o,a,m){this.clientVersion=u,this.instanceUUID=f,this.initParams=s,this.metadata=o,this.behavioralDataHandler=a,this.sessionData=m,this.Max_Mouse_Touch_Interactions=6}async getData(u){this.incrementGetData();const f=await this.getRiskData(u),s=f.tags.findIndex(o=>o.name==="Get Data");return s!==-1?f.tags[s]=this._getDataCounter:f.tags.push(this._getDataCounter),this.toString(f)}async getRiskData(u){const[f,s]=await Promise.all([this.metadata.getDeviceAttributes(),this.metadata.getLocalAgentJwt()]);let o=this.behavioralDataHandler.getBehavioralData();o=await this.modifyBehavioralData(o);const a={behavioral:o,tags:h.Tags.instance.tags,sdkConfig:this.initParams,epochTs:u,instanceUUID:this.instanceUUID,tabUUID:h._POSignalsStorage.SessionStorage.instance.tabUUID,sdkVersion:this.clientVersion,platform:"web",clientToken:window._pingOneSignalsToken};let m;return this.sessionData.universalTrustEnabled?m={jwtDeviceAttributes:await this.getJWTSignedPayload(u,f.deviceId),...a}:m={deviceAttributes:f,...a},this.sessionData.agentIdentificationEnabled&&(m={jwtAgentPayload:s,...m}),m}toString(u){let f;const s=this.metadata.getObfsInfo();try{f=h._POSignalsUtils.Util.string2buf(JSON.stringify(u))}catch(o){throw new Error(`Failed to create data, ${o.message}`)}try{f=h.pako.gzip(f)}catch(o){throw new Error(`Failed to compress data, ${o.message}`)}try{f=h._POSignalsUtils.Util.encryptionBytes(f,s.key)}catch(o){throw new Error(`failed to obfuscate data, ${o.message}`)}try{return`${h._POSignalsUtils.Util.base64Uint8Array(f)}.${btoa(s.identifier)}`}catch(o){throw new Error(`failed to encode data, ${o.message}`)}}async getJWTSignedPayload(u,f){const s=this.metadata.getSerializedDeviceAttributes();return this.sessionData.signJWTChallenge(s,u,f)}async modifyBehavioralData(u){return u.mouse.interactions=this.getBestMouseInteractions(u.mouse.interactions),u.touch.interactions=this.getBestTouchInteractions(u.touch.interactions,u.mouse.interactions),u.keyboard.interactions=this.getBestKeyboardInteractions(u.keyboard.interactions),u}getBestInteractions(u){const f=Date.now();h._POSignalsUtils.Logger.debug("total interactions:",u);const s=u.filter(v=>f-v.epochTs<=18e4),o=this.sortInteractions(s).slice(0,2),a=u.filter(v=>!o.some(w=>w.epochTs===v.epochTs)),m=this.sortInteractions(a).slice(0,5-o.length);return h._POSignalsUtils.Logger.debug("final interactions for getData:",[...o,...m]),[...o,...m].sort((v,w)=>v.epochTs-w.epochTs)}getBestMouseInteractions(u){return this.getBestInteractions(u)}getBestKeyboardInteractions(u){return this.getBestInteractions(u)}getBestTouchInteractions(u,f){const s=this.Max_Mouse_Touch_Interactions-f.length;return this.getTouchBestInteraction(u,s)}incrementGetData(){this._getDataCounter?(this._getDataCounter.value++,this._getDataCounter.timestamp=Date.now()):this._getDataCounter={value:1,name:"Get Data",timestamp:Date.now(),epochTs:Date.now()}}getTouchBestInteraction(u,f){return u=this.sortInteractions(u),u.slice(0,f)}sortInteractions(u){return u.sort((f,s)=>{const o=y[f.quality],a=y[s.quality];return o===a?s.epochTs-f.epochTs:a-o})}}h.DataHandler=b})(ee||(ee={}));var ee;(function(h){class y{constructor(){this._configuration={enabled:y.ENABLED_DEFAULT,bufferSize:y.BUFFER_SIZE_DEFAULT,maxSnapshotsCount:y.MAX_SNAPSHOTS_COUNT_DEFAULT,sensors:y.SENSORS_DEFAULT,metadataBlacklist:y.METADATA_BLACK_LIST_DEFAULT,tagsBlacklistRegex:y.TAGS_BLACK_LIST_REGEX_DEFAULT,behavioralBlacklist:y.BEHAVIORAL_BLACK_LIST_DEFAULT,webRtcUrl:y.WEB_RTC_URL_DEFAULT,eventsBlackList:y.EVENTS_BLACK_LIST_DEFAULT,eventsToIgnore:y.EVENTS_TO_IGNORE_DEFAULT,highPriorityIndirectEvents:y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT,indirectIntervalMillis:y.INDIRECT_INTERVAL_MILLIS_DEFAULT,mouseIntervalMillis:y.MOUSE_INTERVAL_MILLIS_DEFAULT,mouseIdleTimeoutMillis:y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT,maxMouseEvents:y.MAX_MOUSE_EVENTS_DEFAULT,maxIndirectEvents:y.MAX_INDIRECT_EVENTS_DEFAULT,keyboardFieldBlackList:y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT,keyboardCssSelectors:y.KEYBOARD_CSS_SELECTORS_DEFAULT,keyboardCssSelectorsBlacklist:y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT,keyboardIdentifierAttributes:y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT,remoteTags:y.REMOTE_TAGS_DEFAULT,maxSelectorChildren:y.MAX_SELECTOR_CHILDREN_DEFAULT,eventsReduceFactorMap:y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT,propertyDescriptors:y.PROPERTY_DESCRIPTORS_DEFAULT,additionalMediaCodecs:y.ADDITIONAL_MEDIA_CODECS_DEFAULT,fingerprintTimeoutMillis:y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT,metadataDataPoints:y.METADATA_DATA_POINTS_DEFAULT,uiModeling:y.UI_MODELING_CONFIG_DEFAULT,uiControl:y.UI_CONTROL_LIST_DEFAULT}}updateParams(c){c&&(this._configuration=c)}get enabled(){return typeof this._configuration.enabled=="boolean"?this._configuration.enabled:y.ENABLED_DEFAULT}get bufferSize(){return typeof this._configuration.bufferSize=="number"&&this._configuration.bufferSize>0?this._configuration.bufferSize:y.BUFFER_SIZE_DEFAULT}get maxSnapshotsCount(){return typeof this._configuration.maxSnapshotsCount=="number"&&this._configuration.maxSnapshotsCount>=0?this._configuration.maxSnapshotsCount:y.MAX_SNAPSHOTS_COUNT_DEFAULT}get maxSensorSamples(){const c=this._configuration.sensors;return c&&typeof c.maxSensorSamples=="number"&&c.maxSensorSamples>=0?c.maxSensorSamples:y.SENSORS_DEFAULT.maxSensorSamples}get sensorsDeltaInMillis(){const c=this._configuration.sensors;return c&&typeof c.sensorsDeltaInMillis=="number"&&c.sensorsDeltaInMillis>=0?c.sensorsDeltaInMillis:y.SENSORS_DEFAULT.sensorsDeltaInMillis}get metadataBlackList(){var c;return h._POSignalsUtils.Util.isArray(this._configuration.metadataBlacklist)&&((c=this._configuration.metadataBlacklist)===null||c===void 0?void 0:c.length)>0?this._configuration.metadataBlacklist:y.METADATA_BLACK_LIST_DEFAULT}get behavioralBlacklist(){return this._configuration.behavioralBlacklist?this._configuration.behavioralBlacklist:y.BEHAVIORAL_BLACK_LIST_DEFAULT}get tagsBlacklistRegex(){return typeof this._configuration.tagsBlacklistRegex=="string"?this._configuration.tagsBlacklistRegex:y.TAGS_BLACK_LIST_REGEX_DEFAULT}get webRtcUrl(){return typeof this._configuration.webRtcUrl=="string"?this._configuration.webRtcUrl:y.WEB_RTC_URL_DEFAULT}get eventsBlackList(){return h._POSignalsUtils.Util.isArray(this._configuration.eventsBlackList)&&(this._configuration.eventsBlackList=new Set(this._configuration.eventsBlackList)),this._configuration.eventsBlackList instanceof Set?this._configuration.eventsBlackList:y.EVENTS_BLACK_LIST_DEFAULT}get eventsToIgnore(){return h._POSignalsUtils.Util.isArray(this._configuration.eventsToIgnore)&&(this._configuration.eventsToIgnore=new Set(this._configuration.eventsToIgnore)),this._configuration.eventsToIgnore instanceof Set?this._configuration.eventsToIgnore:y.EVENTS_TO_IGNORE_DEFAULT}get highPriorityIndirectEvents(){return h._POSignalsUtils.Util.isArray(this._configuration.highPriorityIndirectEvents)&&(this._configuration.highPriorityIndirectEvents=new Set(this._configuration.highPriorityIndirectEvents)),this._configuration.highPriorityIndirectEvents instanceof Set?this._configuration.highPriorityIndirectEvents:y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT}get indirectIntervalMillis(){return typeof this._configuration.indirectIntervalMillis=="number"&&this._configuration.indirectIntervalMillis>0?this._configuration.indirectIntervalMillis:y.INDIRECT_INTERVAL_MILLIS_DEFAULT}get mouseIntervalMillis(){return typeof this._configuration.mouseIntervalMillis=="number"&&this._configuration.mouseIntervalMillis>0?this._configuration.mouseIntervalMillis:y.MOUSE_INTERVAL_MILLIS_DEFAULT}get mouseIdleTimeoutMillis(){return typeof this._configuration.mouseIdleTimeoutMillis=="number"&&this._configuration.mouseIdleTimeoutMillis>0?this._configuration.mouseIdleTimeoutMillis:y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT}get maxMouseEvents(){return typeof this._configuration.maxMouseEvents=="number"&&this._configuration.maxMouseEvents>=0?this._configuration.maxMouseEvents:y.MAX_MOUSE_EVENTS_DEFAULT}get maxIndirectEvents(){return typeof this._configuration.maxIndirectEvents=="number"&&this._configuration.maxIndirectEvents>=0?this._configuration.maxIndirectEvents:y.MAX_INDIRECT_EVENTS_DEFAULT}get keyboardFieldBlackList(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardFieldBlackList)&&(this._configuration.keyboardFieldBlackList=new Set(this._configuration.keyboardFieldBlackList)),this._configuration.keyboardFieldBlackList instanceof Set?this._configuration.keyboardFieldBlackList:y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT}get keyboardCssSelectors(){return this._configuration.keyboardCssSelectors?this._configuration.keyboardCssSelectors:y.KEYBOARD_CSS_SELECTORS_DEFAULT}get keyboardCssSelectorsBlacklist(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardCssSelectorsBlacklist)?this._configuration.keyboardCssSelectorsBlacklist:y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT}get keyboardIdentifierAttributes(){return h._POSignalsUtils.Util.isArray(this._configuration.keyboardIdentifierAttributes)?this._configuration.keyboardIdentifierAttributes:y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT}get remoteTags(){return this._configuration.remoteTags?this._configuration.remoteTags:y.REMOTE_TAGS_DEFAULT}get maxSelectorChildren(){return typeof this._configuration.maxSelectorChildren=="number"&&this._configuration.maxSelectorChildren>0?this._configuration.maxSelectorChildren:y.MAX_SELECTOR_CHILDREN_DEFAULT}get eventsReduceFactorMap(){return this._configuration.eventsReduceFactorMap?this._configuration.eventsReduceFactorMap:y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT}get propertyDescriptors(){return this._configuration.propertyDescriptors?this._configuration.propertyDescriptors:y.PROPERTY_DESCRIPTORS_DEFAULT}get additionalMediaCodecs(){return this._configuration.additionalMediaCodecs?this._configuration.additionalMediaCodecs:y.ADDITIONAL_MEDIA_CODECS_DEFAULT}get fingerprintTimeoutMillis(){return typeof this._configuration.fingerprintTimeoutMillis=="number"&&this._configuration.fingerprintTimeoutMillis>0?this._configuration.fingerprintTimeoutMillis:y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT}get metadataDataPoints(){return this._configuration.metadataDataPoints?this._configuration.metadataDataPoints:y.METADATA_DATA_POINTS_DEFAULT}get uiModelingBlacklistRegex(){var c;return typeof((c=this._configuration.uiModeling)===null||c===void 0?void 0:c.blacklistRegex)=="string"?this._configuration.uiModeling.blacklistRegex:y.UI_MODELING_CONFIG_DEFAULT.blacklistRegex}get uiModelingElementFilters(){var c;return!((c=this._configuration.uiModeling)===null||c===void 0)&&c.uiElementFilters?this._configuration.uiModeling.uiElementFilters:y.UI_MODELING_CONFIG_DEFAULT.uiElementFilters}get uiModelingMaxMatchingParents(){var c;return typeof((c=this._configuration.uiModeling)===null||c===void 0?void 0:c.maxMatchingParents)=="number"?this._configuration.uiModeling.maxMatchingParents:y.UI_MODELING_CONFIG_DEFAULT.maxMatchingParents}get uiControlsConfig(){return h._POSignalsUtils.Util.isArray(this._configuration.uiControl)?this._configuration.uiControl:y.UI_CONTROL_LIST_DEFAULT}}y.ENABLED_DEFAULT=!0,y.BUFFER_SIZE_DEFAULT=10,y.MAX_SNAPSHOTS_COUNT_DEFAULT=500,y.METADATA_BLACK_LIST_DEFAULT=[],y.TAGS_BLACK_LIST_REGEX_DEFAULT="",y.BEHAVIORAL_BLACK_LIST_DEFAULT={},y.WEB_RTC_URL_DEFAULT="",y.EVENTS_BLACK_LIST_DEFAULT=new Set,y.EVENTS_TO_IGNORE_DEFAULT=new Set(["pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","dragstart","dragexit","drop","dragend"]),y.MAX_INDIRECT_EVENTS_DEFAULT=15,y.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT=new Set(["copy","cut","paste","resize","orientationchange","languagechange","submit","select"]),y.INDIRECT_INTERVAL_MILLIS_DEFAULT=1e3,y.MOUSE_INTERVAL_MILLIS_DEFAULT=1e3,y.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT=1e3,y.MAX_MOUSE_EVENTS_DEFAULT=500,y.KEYBOARD_FIELD_BLACK_LIST_DEFAULT=new Set,y.KEYBOARD_CSS_SELECTORS_DEFAULT={},y.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT=[],y.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT=["data-selenium","data-selenium-id","data-testid","data-test-id","data-qa-id","data-id","id"],y.REMOTE_TAGS_DEFAULT={dv_form_submit:{selector:'[data-skbuttontype="form-submit"]'},login_attempt_email_domain:{selector:'[data-st-tag="login.login_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_hash:{selector:'[data-st-tag="login.login_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_length:{selector:'[data-st-tag="login.login_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_email_domain:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_hash:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_length:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0}},y.MAX_SELECTOR_CHILDREN_DEFAULT=2,y.EVENTS_REDUCE_FACTOR_MAP_DEFAULT={},y.PROPERTY_DESCRIPTORS_DEFAULT={chrome:["app","csi","loadtimes","runtime"],navigator:["webdriver"],Navigator:["languages","hardwareConcurrency"],window:["outerWidth","outerHeight"],Screen:["width","height"]},y.ADDITIONAL_MEDIA_CODECS_DEFAULT={},y.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT=3e3,y.METADATA_DATA_POINTS_DEFAULT={},y.UI_CONTROL_LIST_DEFAULT=[],y.UI_MODELING_CONFIG_DEFAULT={blacklistRegex:"",uiElementFilters:{text:{maxLength:25},placeholder:{maxLength:25}},maxMatchingParents:2},y.SENSORS_DEFAULT={maxSensorSamples:1,sensorsDeltaInMillis:0},h.PointerParams=y})(ee||(ee={})),window._POSignalsEntities=ee,window._pingOneSignals=S;/**
79
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
80
+ *
81
+ * @version 0.9.0
82
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
83
+ * @copyright Chen, Yi-Cyuan 2014-2017
84
+ * @license MIT
85
+ *//*! modernizr 3.13.0 (Custom Build) | MIT *
86
+ * https://modernizr.com/download/?-ambientlight-applicationcache-audio-batteryapi-blobconstructor-contextmenu-cors-cryptography-customelements-customevent-customprotocolhandler-dart-dataview-eventlistener-forcetouch-fullscreen-gamepads-geolocation-ie8compat-intl-json-ligatures-matchmedia-messagechannel-notification-pagevisibility-performance-pointerevents-pointerlock-queryselector-quotamanagement-requestanimationframe-serviceworker-touchevents-typedarrays-vibrate-video-webgl-websockets-xdomainrequest !*/}const VP=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var js={},HP=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},w_={},pr={};let $f;const jP=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];pr.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},pr.getSymbolTotalCodewords=function(t){return jP[t]},pr.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},pr.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');$f=t},pr.isKanjiModeEnabled=function(){return typeof $f<"u"},pr.toSJIS=function(t){return $f(t)};var su={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(su);function b_(){this.buffer=[],this.length=0}b_.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var qP=b_;function ul(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ul.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},ul.prototype.get=function(e,t){return this.data[e*this.size+t]},ul.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},ul.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var GP=ul,S_={};(function(e){const t=pr.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,l=t(r),d=l===145?26:Math.ceil((l-13)/(2*i-2))*2,g=[l-7];for(let p=1;p<i-1;p++)g[p]=g[p-1]-d;return g.push(6),g.reverse()},e.getPositions=function(r){const i=[],l=e.getRowColCoords(r),d=l.length;for(let g=0;g<d;g++)for(let p=0;p<d;p++)g===0&&p===0||g===0&&p===d-1||g===d-1&&p===0||i.push([l[g],l[p]]);return i}})(S_);var E_={};const WP=pr.getSymbolSize,k_=7;E_.getPositions=function(t){const n=WP(t);return[[0,0],[n-k_,0],[0,n-k_]]};var C_={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const l=i.size;let d=0,g=0,p=0,_=null,S=null;for(let k=0;k<l;k++){g=p=0,_=S=null;for(let h=0;h<l;h++){let y=i.get(k,h);y===_?g++:(g>=5&&(d+=t.N1+(g-5)),_=y,g=1),y=i.get(h,k),y===S?p++:(p>=5&&(d+=t.N1+(p-5)),S=y,p=1)}g>=5&&(d+=t.N1+(g-5)),p>=5&&(d+=t.N1+(p-5))}return d},e.getPenaltyN2=function(i){const l=i.size;let d=0;for(let g=0;g<l-1;g++)for(let p=0;p<l-1;p++){const _=i.get(g,p)+i.get(g,p+1)+i.get(g+1,p)+i.get(g+1,p+1);(_===4||_===0)&&d++}return d*t.N2},e.getPenaltyN3=function(i){const l=i.size;let d=0,g=0,p=0;for(let _=0;_<l;_++){g=p=0;for(let S=0;S<l;S++)g=g<<1&2047|i.get(_,S),S>=10&&(g===1488||g===93)&&d++,p=p<<1&2047|i.get(S,_),S>=10&&(p===1488||p===93)&&d++}return d*t.N3},e.getPenaltyN4=function(i){let l=0;const d=i.data.length;for(let p=0;p<d;p++)l+=i.data[p];return Math.abs(Math.ceil(l*100/d/5)-10)*t.N4};function n(r,i,l){switch(r){case e.Patterns.PATTERN000:return(i+l)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return l%3===0;case e.Patterns.PATTERN011:return(i+l)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(l/3))%2===0;case e.Patterns.PATTERN101:return i*l%2+i*l%3===0;case e.Patterns.PATTERN110:return(i*l%2+i*l%3)%2===0;case e.Patterns.PATTERN111:return(i*l%3+(i+l)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,l){const d=l.size;for(let g=0;g<d;g++)for(let p=0;p<d;p++)l.isReserved(p,g)||l.xor(p,g,n(i,p,g))},e.getBestMask=function(i,l){const d=Object.keys(e.Patterns).length;let g=0,p=1/0;for(let _=0;_<d;_++){l(_),e.applyMask(_,i);const S=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(_,i),S<p&&(p=S,g=_)}return g}})(C_);var ou={};const Ea=su,lu=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],cu=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ou.getBlocksCount=function(t,n){switch(n){case Ea.L:return lu[(t-1)*4+0];case Ea.M:return lu[(t-1)*4+1];case Ea.Q:return lu[(t-1)*4+2];case Ea.H:return lu[(t-1)*4+3];default:return}},ou.getTotalCodewordsCount=function(t,n){switch(n){case Ea.L:return cu[(t-1)*4+0];case Ea.M:return cu[(t-1)*4+1];case Ea.Q:return cu[(t-1)*4+2];case Ea.H:return cu[(t-1)*4+3];default:return}};var I_={},uu={};const dl=new Uint8Array(512),du=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)dl[n]=t,du[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)dl[n]=dl[n-255]})(),uu.log=function(t){if(t<1)throw new Error("log("+t+")");return du[t]},uu.exp=function(t){return dl[t]},uu.mul=function(t,n){return t===0||n===0?0:dl[du[t]+du[n]]},function(e){const t=uu;e.mul=function(r,i){const l=new Uint8Array(r.length+i.length-1);for(let d=0;d<r.length;d++)for(let g=0;g<i.length;g++)l[d+g]^=t.mul(r[d],i[g]);return l},e.mod=function(r,i){let l=new Uint8Array(r);for(;l.length-i.length>=0;){const d=l[0];for(let p=0;p<i.length;p++)l[p]^=t.mul(i[p],d);let g=0;for(;g<l.length&&l[g]===0;)g++;l=l.slice(g)}return l},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let l=0;l<r;l++)i=e.mul(i,new Uint8Array([1,t.exp(l)]));return i}}(I_);const A_=I_;function Zf(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Zf.prototype.initialize=function(t){this.degree=t,this.genPoly=A_.generateECPolynomial(this.degree)},Zf.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=A_.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const l=new Uint8Array(this.degree);return l.set(r,i),l}return r};var KP=Zf,T_={},ka={},Yf={};Yf.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var pi={};const O_="[0-9]+",$P="[A-Z $%*+\\-./:]+";let fl="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";fl=fl.replace(/u/g,"\\u");const ZP="(?:(?![A-Z0-9 $%*+\\-./:]|"+fl+`)(?:.|[\r
87
+ ]))+`;pi.KANJI=new RegExp(fl,"g"),pi.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),pi.BYTE=new RegExp(ZP,"g"),pi.NUMERIC=new RegExp(O_,"g"),pi.ALPHANUMERIC=new RegExp($P,"g");const YP=new RegExp("^"+fl+"$"),JP=new RegExp("^"+O_+"$"),XP=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");pi.testKanji=function(t){return YP.test(t)},pi.testNumeric=function(t){return JP.test(t)},pi.testAlphanumeric=function(t){return XP.test(t)},function(e){const t=Yf,n=pi;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(l,d){if(!l.ccBits)throw new Error("Invalid mode: "+l);if(!t.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?l.ccBits[0]:d<27?l.ccBits[1]:l.ccBits[2]},e.getBestModeForData=function(l){return n.testNumeric(l)?e.NUMERIC:n.testAlphanumeric(l)?e.ALPHANUMERIC:n.testKanji(l)?e.KANJI:e.BYTE},e.toString=function(l){if(l&&l.id)return l.id;throw new Error("Invalid mode")},e.isValid=function(l){return l&&l.bit&&l.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(l,d){if(e.isValid(l))return l;try{return r(l)}catch{return d}}}(ka),function(e){const t=pr,n=ou,r=su,i=ka,l=Yf,d=7973,g=t.getBCHDigit(d);function p(h,y,b){for(let c=1;c<=40;c++)if(y<=e.getCapacity(c,b,h))return c}function _(h,y){return i.getCharCountIndicator(h,y)+4}function S(h,y){let b=0;return h.forEach(function(c){const u=_(c.mode,y);b+=u+c.getBitsLength()}),b}function k(h,y){for(let b=1;b<=40;b++)if(S(h,b)<=e.getCapacity(b,y,i.MIXED))return b}e.from=function(y,b){return l.isValid(y)?parseInt(y,10):b},e.getCapacity=function(y,b,c){if(!l.isValid(y))throw new Error("Invalid QR Code version");typeof c>"u"&&(c=i.BYTE);const u=t.getSymbolTotalCodewords(y),f=n.getTotalCodewordsCount(y,b),s=(u-f)*8;if(c===i.MIXED)return s;const o=s-_(c,y);switch(c){case i.NUMERIC:return Math.floor(o/10*3);case i.ALPHANUMERIC:return Math.floor(o/11*2);case i.KANJI:return Math.floor(o/13);case i.BYTE:default:return Math.floor(o/8)}},e.getBestVersionForData=function(y,b){let c;const u=r.from(b,r.M);if(Array.isArray(y)){if(y.length>1)return k(y,u);if(y.length===0)return 1;c=y[0]}else c=y;return p(c.mode,c.getLength(),u)},e.getEncodedBits=function(y){if(!l.isValid(y)||y<7)throw new Error("Invalid QR Code version");let b=y<<12;for(;t.getBCHDigit(b)-g>=0;)b^=d<<t.getBCHDigit(b)-g;return y<<12|b}}(T_);var P_={};const Jf=pr,R_=1335,QP=21522,M_=Jf.getBCHDigit(R_);P_.getEncodedBits=function(t,n){const r=t.bit<<3|n;let i=r<<10;for(;Jf.getBCHDigit(i)-M_>=0;)i^=R_<<Jf.getBCHDigit(i)-M_;return(r<<10|i)^QP};var L_={};const eR=ka;function qs(e){this.mode=eR.NUMERIC,this.data=e.toString()}qs.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},qs.prototype.getLength=function(){return this.data.length},qs.prototype.getBitsLength=function(){return qs.getBitsLength(this.data.length)},qs.prototype.write=function(t){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);const l=this.data.length-n;l>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,l*3+1))};var tR=qs;const nR=ka,Xf=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Gs(e){this.mode=nR.ALPHANUMERIC,this.data=e}Gs.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},Gs.prototype.getLength=function(){return this.data.length},Gs.prototype.getBitsLength=function(){return Gs.getBitsLength(this.data.length)},Gs.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=Xf.indexOf(this.data[n])*45;r+=Xf.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(Xf.indexOf(this.data[n]),6)};var rR=Gs,iR=function(t){for(var n=[],r=t.length,i=0;i<r;i++){var l=t.charCodeAt(i);if(l>=55296&&l<=56319&&r>i+1){var d=t.charCodeAt(i+1);d>=56320&&d<=57343&&(l=(l-55296)*1024+d-56320+65536,i+=1)}if(l<128){n.push(l);continue}if(l<2048){n.push(l>>6|192),n.push(l&63|128);continue}if(l<55296||l>=57344&&l<65536){n.push(l>>12|224),n.push(l>>6&63|128),n.push(l&63|128);continue}if(l>=65536&&l<=1114111){n.push(l>>18|240),n.push(l>>12&63|128),n.push(l>>6&63|128),n.push(l&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const aR=iR,sR=ka;function Ws(e){this.mode=sR.BYTE,typeof e=="string"&&(e=aR(e)),this.data=new Uint8Array(e)}Ws.getBitsLength=function(t){return t*8},Ws.prototype.getLength=function(){return this.data.length},Ws.prototype.getBitsLength=function(){return Ws.getBitsLength(this.data.length)},Ws.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var oR=Ws;const lR=ka,cR=pr;function Ks(e){this.mode=lR.KANJI,this.data=e}Ks.getBitsLength=function(t){return t*13},Ks.prototype.getLength=function(){return this.data.length},Ks.prototype.getBitsLength=function(){return Ks.getBitsLength(this.data.length)},Ks.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=cR.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
88
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var uR=Ks,D_={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var l={},d={};d[r]=0;var g=t.PriorityQueue.make();g.push(r,0);for(var p,_,S,k,h,y,b,c,u;!g.empty();){p=g.pop(),_=p.value,k=p.cost,h=n[_]||{};for(S in h)h.hasOwnProperty(S)&&(y=h[S],b=k+y,c=d[S],u=typeof d[S]>"u",(u||c>b)&&(d[S]=b,g.push(S,b),l[S]=_))}if(typeof i<"u"&&typeof d[i]>"u"){var f=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(f)}return l},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],l=r;l;)i.push(l),n[l],l=n[l];return i.reverse(),i},find_path:function(n,r,i){var l=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(l,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},l;n=n||{};for(l in r)r.hasOwnProperty(l)&&(i[l]=r[l]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(D_);var dR=D_.exports;(function(e){const t=ka,n=tR,r=rR,i=oR,l=uR,d=pi,g=pr,p=dR;function _(f){return unescape(encodeURIComponent(f)).length}function S(f,s,o){const a=[];let m;for(;(m=f.exec(o))!==null;)a.push({data:m[0],index:m.index,mode:s,length:m[0].length});return a}function k(f){const s=S(d.NUMERIC,t.NUMERIC,f),o=S(d.ALPHANUMERIC,t.ALPHANUMERIC,f);let a,m;return g.isKanjiModeEnabled()?(a=S(d.BYTE,t.BYTE,f),m=S(d.KANJI,t.KANJI,f)):(a=S(d.BYTE_KANJI,t.BYTE,f),m=[]),s.concat(o,a,m).sort(function(w,A){return w.index-A.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function h(f,s){switch(s){case t.NUMERIC:return n.getBitsLength(f);case t.ALPHANUMERIC:return r.getBitsLength(f);case t.KANJI:return l.getBitsLength(f);case t.BYTE:return i.getBitsLength(f)}}function y(f){return f.reduce(function(s,o){const a=s.length-1>=0?s[s.length-1]:null;return a&&a.mode===o.mode?(s[s.length-1].data+=o.data,s):(s.push(o),s)},[])}function b(f){const s=[];for(let o=0;o<f.length;o++){const a=f[o];switch(a.mode){case t.NUMERIC:s.push([a,{data:a.data,mode:t.ALPHANUMERIC,length:a.length},{data:a.data,mode:t.BYTE,length:a.length}]);break;case t.ALPHANUMERIC:s.push([a,{data:a.data,mode:t.BYTE,length:a.length}]);break;case t.KANJI:s.push([a,{data:a.data,mode:t.BYTE,length:_(a.data)}]);break;case t.BYTE:s.push([{data:a.data,mode:t.BYTE,length:_(a.data)}])}}return s}function c(f,s){const o={},a={start:{}};let m=["start"];for(let v=0;v<f.length;v++){const w=f[v],A=[];for(let E=0;E<w.length;E++){const O=w[E],T=""+v+E;A.push(T),o[T]={node:O,lastCount:0},a[T]={};for(let M=0;M<m.length;M++){const P=m[M];o[P]&&o[P].node.mode===O.mode?(a[P][T]=h(o[P].lastCount+O.length,O.mode)-h(o[P].lastCount,O.mode),o[P].lastCount+=O.length):(o[P]&&(o[P].lastCount=O.length),a[P][T]=h(O.length,O.mode)+4+t.getCharCountIndicator(O.mode,s))}}m=A}for(let v=0;v<m.length;v++)a[m[v]].end=0;return{map:a,table:o}}function u(f,s){let o;const a=t.getBestModeForData(f);if(o=t.from(s,a),o!==t.BYTE&&o.bit<a.bit)throw new Error('"'+f+'" cannot be encoded with mode '+t.toString(o)+`.
89
+ Suggested mode is: `+t.toString(a));switch(o===t.KANJI&&!g.isKanjiModeEnabled()&&(o=t.BYTE),o){case t.NUMERIC:return new n(f);case t.ALPHANUMERIC:return new r(f);case t.KANJI:return new l(f);case t.BYTE:return new i(f)}}e.fromArray=function(s){return s.reduce(function(o,a){return typeof a=="string"?o.push(u(a,null)):a.data&&o.push(u(a.data,a.mode)),o},[])},e.fromString=function(s,o){const a=k(s,g.isKanjiModeEnabled()),m=b(a),v=c(m,o),w=p.find_path(v.map,"start","end"),A=[];for(let E=1;E<w.length-1;E++)A.push(v.table[w[E]].node);return e.fromArray(y(A))},e.rawSplit=function(s){return e.fromArray(k(s,g.isKanjiModeEnabled()))}})(L_);const fu=pr,Qf=su,fR=qP,hR=GP,gR=S_,pR=E_,eh=C_,th=ou,mR=KP,hu=T_,vR=P_,yR=ka,nh=L_;function _R(e,t){const n=e.size,r=pR.getPositions(t);for(let i=0;i<r.length;i++){const l=r[i][0],d=r[i][1];for(let g=-1;g<=7;g++)if(!(l+g<=-1||n<=l+g))for(let p=-1;p<=7;p++)d+p<=-1||n<=d+p||(g>=0&&g<=6&&(p===0||p===6)||p>=0&&p<=6&&(g===0||g===6)||g>=2&&g<=4&&p>=2&&p<=4?e.set(l+g,d+p,!0,!0):e.set(l+g,d+p,!1,!0))}}function wR(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function bR(e,t){const n=gR.getPositions(t);for(let r=0;r<n.length;r++){const i=n[r][0],l=n[r][1];for(let d=-2;d<=2;d++)for(let g=-2;g<=2;g++)d===-2||d===2||g===-2||g===2||d===0&&g===0?e.set(i+d,l+g,!0,!0):e.set(i+d,l+g,!1,!0)}}function SR(e,t){const n=e.size,r=hu.getEncodedBits(t);let i,l,d;for(let g=0;g<18;g++)i=Math.floor(g/3),l=g%3+n-8-3,d=(r>>g&1)===1,e.set(i,l,d,!0),e.set(l,i,d,!0)}function rh(e,t,n){const r=e.size,i=vR.getEncodedBits(t,n);let l,d;for(l=0;l<15;l++)d=(i>>l&1)===1,l<6?e.set(l,8,d,!0):l<8?e.set(l+1,8,d,!0):e.set(r-15+l,8,d,!0),l<8?e.set(8,r-l-1,d,!0):l<9?e.set(8,15-l-1+1,d,!0):e.set(8,15-l-1,d,!0);e.set(r-8,8,1,!0)}function ER(e,t){const n=e.size;let r=-1,i=n-1,l=7,d=0;for(let g=n-1;g>0;g-=2)for(g===6&&g--;;){for(let p=0;p<2;p++)if(!e.isReserved(i,g-p)){let _=!1;d<t.length&&(_=(t[d]>>>l&1)===1),e.set(i,g-p,_),l--,l===-1&&(d++,l=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function kR(e,t,n){const r=new fR;n.forEach(function(p){r.put(p.mode.bit,4),r.put(p.getLength(),yR.getCharCountIndicator(p.mode,e)),p.write(r)});const i=fu.getSymbolTotalCodewords(e),l=th.getTotalCodewordsCount(e,t),d=(i-l)*8;for(r.getLengthInBits()+4<=d&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const g=(d-r.getLengthInBits())/8;for(let p=0;p<g;p++)r.put(p%2?17:236,8);return CR(r,e,t)}function CR(e,t,n){const r=fu.getSymbolTotalCodewords(t),i=th.getTotalCodewordsCount(t,n),l=r-i,d=th.getBlocksCount(t,n),g=r%d,p=d-g,_=Math.floor(r/d),S=Math.floor(l/d),k=S+1,h=_-S,y=new mR(h);let b=0;const c=new Array(d),u=new Array(d);let f=0;const s=new Uint8Array(e.buffer);for(let w=0;w<d;w++){const A=w<p?S:k;c[w]=s.slice(b,b+A),u[w]=y.encode(c[w]),b+=A,f=Math.max(f,A)}const o=new Uint8Array(r);let a=0,m,v;for(m=0;m<f;m++)for(v=0;v<d;v++)m<c[v].length&&(o[a++]=c[v][m]);for(m=0;m<h;m++)for(v=0;v<d;v++)o[a++]=u[v][m];return o}function IR(e,t,n,r){let i;if(Array.isArray(e))i=nh.fromArray(e);else if(typeof e=="string"){let _=t;if(!_){const S=nh.rawSplit(e);_=hu.getBestVersionForData(S,n)}i=nh.fromString(e,_||40)}else throw new Error("Invalid data");const l=hu.getBestVersionForData(i,n);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=l;else if(t<l)throw new Error(`
90
+ The chosen QR Code version cannot contain this amount of data.
91
+ Minimum version required to store current data is: `+l+`.
92
+ `);const d=kR(t,n,i),g=fu.getSymbolSize(t),p=new hR(g);return _R(p,t),wR(p),bR(p,t),rh(p,n,0),t>=7&&SR(p,t),ER(p,d),isNaN(r)&&(r=eh.getBestMask(p,rh.bind(null,p,n))),eh.applyMask(r,p),rh(p,n,r),{modules:p,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}w_.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Qf.M,i,l;return typeof n<"u"&&(r=Qf.from(n.errorCorrectionLevel,Qf.M),i=hu.from(n.version),l=eh.from(n.maskPattern),n.toSJISFunc&&fu.setToSJISFunction(n.toSJISFunc)),IR(t,i,r,l)};var N_={},ih={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(l){return[l,l]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,l=r.width&&r.width>=21?r.width:void 0,d=r.scale||4;return{width:l,scale:l?4:d,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const l=e.getScale(r,i);return Math.floor((r+i.margin*2)*l)},e.qrToImageData=function(r,i,l){const d=i.modules.size,g=i.modules.data,p=e.getScale(d,l),_=Math.floor((d+l.margin*2)*p),S=l.margin*p,k=[l.color.light,l.color.dark];for(let h=0;h<_;h++)for(let y=0;y<_;y++){let b=(h*_+y)*4,c=l.color.light;if(h>=S&&y>=S&&h<_-S&&y<_-S){const u=Math.floor((h-S)/p),f=Math.floor((y-S)/p);c=k[g[u*d+f]?1:0]}r[b++]=c.r,r[b++]=c.g,r[b++]=c.b,r[b]=c.a}}})(ih),function(e){const t=ih;function n(i,l,d){i.clearRect(0,0,l.width,l.height),l.style||(l.style={}),l.height=d,l.width=d,l.style.height=d+"px",l.style.width=d+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(l,d,g){let p=g,_=d;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),d||(_=r()),p=t.getOptions(p);const S=t.getImageWidth(l.modules.size,p),k=_.getContext("2d"),h=k.createImageData(S,S);return t.qrToImageData(h.data,l,p),n(k,_,S),k.putImageData(h,0,0),_},e.renderToDataURL=function(l,d,g){let p=g;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),p||(p={});const _=e.render(l,d,p),S=p.type||"image/png",k=p.rendererOpts||{};return _.toDataURL(S,k.quality)}}(N_);var x_={};const AR=ih;function U_(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function ah(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function TR(e,t,n){let r="",i=0,l=!1,d=0;for(let g=0;g<e.length;g++){const p=Math.floor(g%t),_=Math.floor(g/t);!p&&!l&&(l=!0),e[g]?(d++,g>0&&p>0&&e[g-1]||(r+=l?ah("M",p+n,.5+_+n):ah("m",i,0),i=0,l=!1),p+1<t&&e[g+1]||(r+=ah("h",d),d=0)):i++}return r}x_.render=function(t,n,r){const i=AR.getOptions(n),l=t.modules.size,d=t.modules.data,g=l+i.margin*2,p=i.color.light.a?"<path "+U_(i.color.light,"fill")+' d="M0 0h'+g+"v"+g+'H0z"/>':"",_="<path "+U_(i.color.dark,"stroke")+' d="'+TR(d,l,i.margin)+'"/>',S='viewBox="0 0 '+g+" "+g+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+S+' shape-rendering="crispEdges">'+p+_+`</svg>
93
+ `;return typeof r=="function"&&r(null,h),h};const OR=HP,sh=w_,F_=N_,PR=x_;function oh(e,t,n,r,i){const l=[].slice.call(arguments,1),d=l.length,g=typeof l[d-1]=="function";if(!g&&!OR())throw new Error("Callback required as last argument");if(g){if(d<2)throw new Error("Too few arguments provided");d===2?(i=n,n=t,t=r=void 0):d===3&&(t.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(d<1)throw new Error("Too few arguments provided");return d===1?(n=t,t=r=void 0):d===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(p,_){try{const S=sh.create(n,r);p(e(S,t,r))}catch(S){_(S)}})}try{const p=sh.create(n,r);i(null,e(p,t,r))}catch(p){i(p)}}var RR=js.create=sh.create,MR=js.toCanvas=oh.bind(null,F_.render),LR=js.toDataURL=oh.bind(null,F_.renderToDataURL),DR=js.toString=oh.bind(null,function(e,t,n){return PR.render(e,n)});const NR=Qt({__proto__:null,create:RR,default:js,toCanvas:MR,toDataURL:LR,toString:DR},[js]);return Bt.component=xP,Bt.configure=DP,Bt.default=__,Bt.journey=NP,Bt.protect=FP,Bt.user=UP,Object.defineProperties(Bt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),Bt}({});
94
+ //# sourceMappingURL=widget.iife.js.map