@clickview/auth 0.65.0 → 0.66.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.
@@ -9,24 +9,24 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
9
9
  `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?z(e):``}function H(e){switch(e.tag){case 5:return z(e.type);case 16:return z(`Lazy`);case 13:return z(`Suspense`);case 19:return z(`SuspenseList`);case 0:case 2:case 15:return e=V(e.type,!1),e;case 11:return e=V(e.type.render,!1),e;case 1:return e=V(e.type,!0),e;default:return``}}function ee(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case w:return`Fragment`;case C:return`Portal`;case E:return`Profiler`;case T:return`StrictMode`;case A:return`Suspense`;case j:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case O:return(e.displayName||`Context`)+`.Consumer`;case D:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case M:return t=e.displayName||null,t===null?ee(e.type)||`Memo`:t;case N:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ee(t);case 8:return t===T?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function te(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ne(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function re(e){var t=ne(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ie(e){e._valueTracker||=re(e)}function ae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ne(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function oe(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function W(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function se(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=te(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function G(e,t){t=t.checked,t!=null&&b(e,`checked`,t,!1)}function ce(e,t){G(e,t);var n=te(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?K(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&K(e,t.type,te(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function le(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function K(e,t,n){(t!==`number`||oe(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var ue=Array.isArray;function de(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+te(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function fe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return L({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function pe(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(ue(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:te(n)}}function me(e,t){var n=te(t.value),r=te(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function he(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function q(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function ge(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?q(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var _e,ve=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(_e||=document.createElement(`div`),_e.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=_e.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var be={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(be).forEach(function(e){xe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]})});function Se(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||be.hasOwnProperty(e)&&be[e]?(``+t).trim():t+`px`}function Ce(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Se(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var we=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Te(e,t){if(t){if(we[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ee(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var J=null;function De(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oe=null,Y=null,ke=null;function Ae(e){if(e=ji(e)){if(typeof Oe!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Ni(t),Oe(e.stateNode,e.type,t))}}function je(e){Y?ke?ke.push(e):ke=[e]:Y=e}function Me(){if(Y){var e=Y,t=ke;if(ke=Y=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Ne(e,t){return e(t)}function Pe(){}var Fe=!1;function Ie(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return Ne(e,t,n)}finally{Fe=!1,(Y!==null||ke!==null)&&(Pe(),Me())}}function Le(e,t){var n=e.stateNode;if(n===null)return null;var i=Ni(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var Re=!1;if(c)try{var ze={};Object.defineProperty(ze,`passive`,{get:function(){Re=!0}}),window.addEventListener(`test`,ze,ze),window.removeEventListener(`test`,ze,ze)}catch{Re=!1}function Be(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Ve=!1,He=null,Ue=!1,We=null,Ge={onError:function(e){Ve=!0,He=e}};function Ke(e,t,n,r,i,a,o,s,c){Ve=!1,He=null,Be.apply(Ge,arguments)}function qe(e,t,n,i,a,o,s,c,l){if(Ke.apply(this,arguments),Ve){if(Ve){var u=He;Ve=!1,He=null}else throw Error(r(198));Ue||(Ue=!0,We=u)}}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ye(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xe(e){if(Je(e)!==e)throw Error(r(188))}function Ze(e){var t=e.alternate;if(!t){if(t=Je(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Xe(a),e;if(o===i)return Xe(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function Qe(e){return e=Ze(e),e===null?null:$e(e)}function $e(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$e(e);if(t!==null)return t;e=e.sibling}return null}var et=n.unstable_scheduleCallback,tt=n.unstable_cancelCallback,nt=n.unstable_shouldYield,rt=n.unstable_requestPaint,it=n.unstable_now,at=n.unstable_getCurrentPriorityLevel,ot=n.unstable_ImmediatePriority,st=n.unstable_UserBlockingPriority,ct=n.unstable_NormalPriority,lt=n.unstable_LowPriority,ut=n.unstable_IdlePriority,dt=null,ft=null;function pt(e){if(ft&&typeof ft.onCommitFiberRoot==`function`)try{ft.onCommitFiberRoot(dt,e,void 0,(e.current.flags&128)==128)}catch{}}var mt=Math.clz32?Math.clz32:_t,ht=Math.log,gt=Math.LN2;function _t(e){return e>>>=0,e===0?32:31-(ht(e)/gt|0)|0}var vt=64,yt=4194304;function bt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=bt(a))):r=bt(s)}else o=n&~i,o===0?a!==0&&(r=bt(a)):r=bt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-mt(t),i=1<<n,r|=e[n],t&=~i;return r}function St(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ct(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-mt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=St(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function wt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Tt(){var e=vt;return vt<<=1,!(vt&4194240)&&(vt=64),e}function Et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Dt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mt(t),e[t]=n}function Ot(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-mt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function kt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-mt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var At=0;function jt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Mt,Nt,Pt,Ft,It,Lt=!1,Rt=[],zt=null,Bt=null,Vt=null,Ht=new Map,Ut=new Map,Wt=[],Gt=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function Kt(e,t){switch(e){case`focusin`:case`focusout`:zt=null;break;case`dragenter`:case`dragleave`:Bt=null;break;case`mouseover`:case`mouseout`:Vt=null;break;case`pointerover`:case`pointerout`:Ht.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ut.delete(t.pointerId)}}function qt(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ji(t),t!==null&&Nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Jt(e,t,n,r,i){switch(t){case`focusin`:return zt=qt(zt,e,t,n,r,i),!0;case`dragenter`:return Bt=qt(Bt,e,t,n,r,i),!0;case`mouseover`:return Vt=qt(Vt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ht.set(a,qt(Ht.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ut.set(a,qt(Ut.get(a)||null,e,t,n,r,i)),!0}return!1}function Yt(e){var t=Ai(e.target);if(t!==null){var n=Je(t);if(n!==null){if(t=n.tag,t===13){if(t=Ye(n),t!==null){e.blockedOn=t,It(e.priority,function(){Pt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xt(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);J=r,n.target.dispatchEvent(r),J=null}else return t=ji(n),t!==null&&Nt(t),e.blockedOn=n,!1;t.shift()}return!0}function Zt(e,t,n){Xt(e)&&n.delete(t)}function Qt(){Lt=!1,zt!==null&&Xt(zt)&&(zt=null),Bt!==null&&Xt(Bt)&&(Bt=null),Vt!==null&&Xt(Vt)&&(Vt=null),Ht.forEach(Zt),Ut.forEach(Zt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,Lt||(Lt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Qt)))}function en(e){function t(t){return $t(t,e)}if(0<Rt.length){$t(Rt[0],e);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zt!==null&&$t(zt,e),Bt!==null&&$t(Bt,e),Vt!==null&&$t(Vt,e),Ht.forEach(t),Ut.forEach(t),n=0;n<Wt.length;n++)r=Wt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wt.length&&(n=Wt[0],n.blockedOn===null);)Yt(n),n.blockedOn===null&&Wt.shift()}var tn=x.ReactCurrentBatchConfig,nn=!0;function rn(e,t,n,r){var i=At,a=tn.transition;tn.transition=null;try{At=1,on(e,t,n,r)}finally{At=i,tn.transition=a}}function an(e,t,n,r){var i=At,a=tn.transition;tn.transition=null;try{At=4,on(e,t,n,r)}finally{At=i,tn.transition=a}}function on(e,t,n,r){if(nn){var i=cn(e,t,n,r);if(i===null)ni(e,t,r,sn,n),Kt(e,r);else if(Jt(i,e,t,n,r))r.stopPropagation();else if(Kt(e,r),t&4&&-1<Gt.indexOf(e)){for(;i!==null;){var a=ji(i);if(a!==null&&Mt(a),a=cn(e,t,n,r),a===null&&ni(e,t,r,sn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else ni(e,t,r,null,n)}}var sn=null;function cn(e,t,n,r){if(sn=null,e=De(r),e=Ai(e),e!==null)if(t=Je(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ye(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return sn=e,null}function ln(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(at()){case ot:return 1;case st:return 4;case ct:case lt:return 16;case ut:return 536870912;default:return 16}default:return 16}}var un=null,dn=null,fn=null;function pn(){if(fn)return fn;var e,t=dn,n=t.length,r,i=`value`in un?un.value:un.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return fn=i.slice(e,1<r?1-r:void 0)}function mn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hn(){return!0}function gn(){return!1}function _n(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?hn:gn,this.isPropagationStopped=gn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=hn)},persist:function(){},isPersistent:hn}),t}var vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yn=_n(vn),bn=L({},vn,{view:0,detail:0}),xn=_n(bn),Sn,Cn,wn,Tn=L({},bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:In,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==wn&&(wn&&e.type===`mousemove`?(Sn=e.screenX-wn.screenX,Cn=e.screenY-wn.screenY):Cn=Sn=0,wn=e),Sn)},movementY:function(e){return`movementY`in e?e.movementY:Cn}}),En=_n(Tn),Dn=_n(L({},Tn,{dataTransfer:0})),On=_n(L({},bn,{relatedTarget:0})),kn=_n(L({},vn,{animationName:0,elapsedTime:0,pseudoElement:0})),An=_n(L({},vn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),jn=_n(L({},vn,{data:0})),Mn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Nn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Pn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Fn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pn[e])?!!t[e]:!1}function In(){return Fn}var Ln=_n(L({},bn,{key:function(e){if(e.key){var t=Mn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Nn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:In,charCode:function(e){return e.type===`keypress`?mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Rn=_n(L({},Tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zn=_n(L({},bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:In})),Bn=_n(L({},vn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Vn=_n(L({},Tn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Hn=[9,13,27,32],Un=c&&`CompositionEvent`in window,Wn=null;c&&`documentMode`in document&&(Wn=document.documentMode);var Gn=c&&`TextEvent`in window&&!Wn,Kn=c&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=pn(),fn=dn=un=null,Zn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){je(r),t=ii(t,`onChange`),0<t.length&&(n=new yn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){Xr(e,0)}function or(e){if(ae(Mi(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(c){var lr;if(c){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,De(e)),Ie(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(){for(var e=window,t=oe();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=oe(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Er(e){var t=wr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cr(n.ownerDocument.documentElement,n)){if(r!==null&&Tr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Sr(n,a);var o=Sr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Dr=c&&`documentMode`in document&&11>=document.documentMode,Or=null,kr=null,Ar=null,jr=!1;function Mr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jr||Or==null||Or!==oe(r)||(r=Or,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ar&&br(Ar,r)||(Ar=r,r=ii(kr,`onSelect`),0<r.length&&(t=new yn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Or)))}function Nr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Pr={animationend:Nr(`Animation`,`AnimationEnd`),animationiteration:Nr(`Animation`,`AnimationIteration`),animationstart:Nr(`Animation`,`AnimationStart`),transitionend:Nr(`Transition`,`TransitionEnd`)},Fr={},Ir={};c&&(Ir=document.createElement(`div`).style,`AnimationEvent`in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),`TransitionEvent`in window||delete Pr.transitionend.transition);function Lr(e){if(Fr[e])return Fr[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ir)return Fr[e]=t[n];return e}var Rr=Lr(`animationend`),zr=Lr(`animationiteration`),Br=Lr(`animationstart`),Vr=Lr(`transitionend`),Hr=new Map,Ur=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function Wr(e,t){Hr.set(e,t),o(t,[e])}for(var Gr=0;Gr<Ur.length;Gr++){var Kr=Ur[Gr];Wr(Kr.toLowerCase(),`on`+(Kr[0].toUpperCase()+Kr.slice(1)))}Wr(Rr,`onAnimationEnd`),Wr(zr,`onAnimationIteration`),Wr(Br,`onAnimationStart`),Wr(`dblclick`,`onDoubleClick`),Wr(`focusin`,`onFocus`),Wr(`focusout`,`onBlur`),Wr(Vr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var qr=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Jr=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(qr));function Yr(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,qe(r,t,void 0,e),e.currentTarget=null}function Xr(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;Yr(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;Yr(i,s,l),a=c}}}if(Ue)throw e=We,Ue=!1,We=null,e}function Zr(e,t){var n=t[Di];n===void 0&&(n=t[Di]=new Set);var r=e+`__bubble`;n.has(r)||(ti(t,e,2,!1),n.add(r))}function Qr(e,t,n){var r=0;t&&(r|=4),ti(n,e,r,t)}var $r=`_reactListening`+Math.random().toString(36).slice(2);function ei(e){if(!e[$r]){e[$r]=!0,i.forEach(function(t){t!==`selectionchange`&&(Jr.has(t)||Qr(t,!1,e),Qr(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$r]||(t[$r]=!0,Qr(`selectionchange`,!1,t))}}function ti(e,t,n,r){switch(ln(t)){case 1:var i=rn;break;case 4:i=an;break;default:i=on}n=i.bind(null,t,n,e),i=void 0,!Re||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function ni(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ai(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Ie(function(){var r=a,i=De(n),o=[];a:{var s=Hr.get(e);if(s!==void 0){var c=yn,l=e;switch(e){case`keypress`:if(mn(n)===0)break a;case`keydown`:case`keyup`:c=Ln;break;case`focusin`:l=`focus`,c=On;break;case`focusout`:l=`blur`,c=On;break;case`beforeblur`:case`afterblur`:c=On;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=En;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Dn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=zn;break;case Rr:case zr:case Br:c=kn;break;case Vr:c=Bn;break;case`scroll`:c=xn;break;case`wheel`:c=Vn;break;case`copy`:case`cut`:case`paste`:c=An;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Rn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=Le(p,f),h!=null&&u.push(ri(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==J&&(l=n.relatedTarget||n.fromElement)&&(Ai(l)||l[Ei]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ai(l):null,l!==null&&(d=Je(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=En,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Rn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Mi(c),m=l==null?s:Mi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ai(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=ai(m))p++;for(m=0,h=f;h;h=ai(h))m++;for(;0<p-m;)u=ai(u),p--;for(;0<m-p;)f=ai(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=ai(u),f=ai(f)}u=null}else u=null;c!==null&&oi(o,s,c,u,!1),l!==null&&d!==null&&oi(o,d,l,u,!0)}}a:{if(s=r?Mi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=sr;else if(tr(s))if(cr)g=_r;else{g=hr;var _=mr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=gr);if(g&&=g(e,r)){nr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&K(s,`number`,s.value)}switch(_=r?Mi(r):window,e){case`focusin`:(tr(_)||_.contentEditable===`true`)&&(Or=_,kr=r,Ar=null);break;case`focusout`:Ar=kr=Or=null;break;case`mousedown`:jr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:jr=!1,Mr(o,n,i);break;case`selectionchange`:if(Dr)break;case`keydown`:case`keyup`:Mr(o,n,i)}var v;if(Un)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else Zn?Yn(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(Kn&&n.locale!==`ko`&&(Zn||y!==`onCompositionStart`?y===`onCompositionEnd`&&Zn&&(v=pn()):(un=i,dn=`value`in un?un.value:un.textContent,Zn=!0)),_=ii(r,y),0<_.length&&(y=new jn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=Xn(n),v!==null&&(y.data=v)))),(v=Gn?Qn(e,n):$n(e,n))&&(r=ii(r,`onBeforeInput`),0<r.length&&(i=new jn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}Xr(o,t)})}function ri(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ii(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Le(e,n),a!=null&&r.unshift(ri(e,a,i)),a=Le(e,t),a!=null&&r.push(ri(e,a,i))),e=e.return}return r}function ai(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=Le(n,a),c!=null&&o.unshift(ri(n,c,s))):i||(c=Le(n,a),c!=null&&o.push(ri(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var si=/\r\n?/g,ci=/\u0000|\uFFFD/g;function li(e){return(typeof e==`string`?e:``+e).replace(si,`
10
10
  `).replace(ci,``)}function ui(e,t,n){if(t=li(t),li(e)!==t&&n)throw Error(r(425))}function di(){}var fi=null,pi=null;function mi(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hi=typeof setTimeout==`function`?setTimeout:void 0,gi=typeof clearTimeout==`function`?clearTimeout:void 0,_i=typeof Promise==`function`?Promise:void 0,vi=typeof queueMicrotask==`function`?queueMicrotask:_i===void 0?hi:function(e){return _i.resolve(null).then(e).catch(yi)};function yi(e){setTimeout(function(){throw e})}function bi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),en(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);en(t)}function xi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Si(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Ci=Math.random().toString(36).slice(2),wi=`__reactFiber$`+Ci,Ti=`__reactProps$`+Ci,Ei=`__reactContainer$`+Ci,Di=`__reactEvents$`+Ci,Oi=`__reactListeners$`+Ci,ki=`__reactHandles$`+Ci;function Ai(e){var t=e[wi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ei]||n[wi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Si(e);e!==null;){if(n=e[wi])return n;e=Si(e)}return t}e=n,n=e.parentNode}return null}function ji(e){return e=e[wi]||e[Ei],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Ni(e){return e[Ti]||null}var Pi=[],Fi=-1;function Ii(e){return{current:e}}function Li(e){0>Fi||(e.current=Pi[Fi],Pi[Fi]=null,Fi--)}function Ri(e,t){Fi++,Pi[Fi]=e.current,e.current=t}var zi={},Bi=Ii(zi),Vi=Ii(!1),Hi=zi;function Ui(e,t){var n=e.type.contextTypes;if(!n)return zi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Wi(e){return e=e.childContextTypes,e!=null}function Gi(){Li(Vi),Li(Bi)}function Ki(e,t,n){if(Bi.current!==zi)throw Error(r(168));Ri(Bi,t),Ri(Vi,n)}function qi(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,U(e)||`Unknown`,a));return L({},n,i)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zi,Hi=Bi.current,Ri(Bi,e),Ri(Vi,Vi.current),!0}function Yi(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=qi(e,t,Hi),i.__reactInternalMemoizedMergedChildContext=e,Li(Vi),Li(Bi),Ri(Bi,e)):Li(Vi),Ri(Vi,n)}var Xi=null,Zi=!1,Qi=!1;function $i(e){Xi===null?Xi=[e]:Xi.push(e)}function ea(e){Zi=!0,$i(e)}function ta(){if(!Qi&&Xi!==null){Qi=!0;var e=0,t=At;try{var n=Xi;for(At=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xi=null,Zi=!1}catch(t){throw Xi!==null&&(Xi=Xi.slice(e+1)),et(ot,ta),t}finally{At=t,Qi=!1}}return null}var na=x.ReactCurrentBatchConfig;function ra(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ia=Ii(null),aa=null,oa=null,sa=null;function ca(){sa=oa=aa=null}function la(e){var t=ia.current;Li(ia),e._currentValue=t}function ua(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function da(e,t){aa=e,sa=oa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ps=!0),e.firstContext=null)}function fa(e){var t=e._currentValue;if(sa!==e)if(e={context:e,memoizedValue:t,next:null},oa===null){if(aa===null)throw Error(r(308));oa=e,aa.dependencies={lanes:0,firstContext:e}}else oa=oa.next=e;return t}var pa=null,ma=!1;function ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ga(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _a(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function va(e,t){var n=e.updateQueue;n!==null&&(n=n.shared,ml(e)?(e=n.interleaved,e===null?(t.next=t,pa===null?pa=[n]:pa.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(e=n.pending,e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kt(e,n)}}function ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xa(e,t,n,r){var i=e.updateQueue;ma=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=L({},d,f);break a;case 2:ma=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Kc|=o,e.lanes=o,e.memoizedState=d}}function Sa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var Ca=new t.Component().refs;function wa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:L({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ta={isMounted:function(e){return(e=e._reactInternals)?Je(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=dl(e),a=_a(r,i);a.payload=t,n!=null&&(a.callback=n),va(e,a),t=fl(e,i,r),t!==null&&ya(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=dl(e),a=_a(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),va(e,a),t=fl(e,i,r),t!==null&&ya(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=dl(e),i=_a(n,r);i.tag=2,t!=null&&(i.callback=t),va(e,i),t=fl(e,r,n),t!==null&&ya(t,e,r)}};function Ea(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!br(n,r)||!br(i,a):!0}function Da(e,t,n){var r=!1,i=zi,a=t.contextType;return typeof a==`object`&&a?a=fa(a):(i=Wi(t)?Hi:Bi.current,r=t.contextTypes,a=(r=r!=null)?Ui(e,i):zi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ta,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Oa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ta.enqueueReplaceState(t,t.state,null)}function ka(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Ca,ha(e);var a=t.contextType;typeof a==`object`&&a?i.context=fa(a):(a=Wi(t)?Hi:Bi.current,i.context=Ui(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(wa(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ta.enqueueReplaceState(i,i.state,null),xa(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}var Aa=[],ja=0,Ma=null,Na=0,Pa=[],Fa=0,Ia=null,La=1,Ra=``;function za(e,t){Aa[ja++]=Na,Aa[ja++]=Ma,Ma=e,Na=t}function Ba(e,t,n){Pa[Fa++]=La,Pa[Fa++]=Ra,Pa[Fa++]=Ia,Ia=e;var r=La;e=Ra;var i=32-mt(r)-1;r&=~(1<<i),n+=1;var a=32-mt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,La=1<<32-mt(t)+i|n<<i|r,Ra=a+e}else La=1<<a|n<<i|r,Ra=e}function Va(e){e.return!==null&&(za(e,1),Ba(e,1,0))}function Ha(e){for(;e===Ma;)Ma=Aa[--ja],Aa[ja]=null,Na=Aa[--ja],Aa[ja]=null;for(;e===Ia;)Ia=Pa[--Fa],Pa[Fa]=null,Ra=Pa[--Fa],Pa[Fa]=null,La=Pa[--Fa],Pa[Fa]=null}var Ua=null,Wa=null,Ga=!1,Ka=null;function qa(e,t){var n=Kl(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ja(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Ua=e,Wa=xi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ua=e,Wa=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=Ia===null?null:{id:La,overflow:Ra},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ua=e,Wa=null,!0);default:return!1}}function Ya(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Xa(e){if(Ga){var t=Wa;if(t){var n=t;if(!Ja(e,t)){if(Ya(e))throw Error(r(418));t=xi(n.nextSibling);var i=Ua;t&&Ja(e,t)?qa(i,n):(e.flags=e.flags&-4097|2,Ga=!1,Ua=e)}}else{if(Ya(e))throw Error(r(418));e.flags=e.flags&-4097|2,Ga=!1,Ua=e}}}function Za(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ua=e}function Qa(e){if(e!==Ua)return!1;if(!Ga)return Za(e),Ga=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!mi(e.type,e.memoizedProps)),t&&=Wa){if(Ya(e)){for(e=Wa;e;)e=xi(e.nextSibling);throw Error(r(418))}for(;t;)qa(e,t),t=xi(t.nextSibling)}if(Za(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Wa=xi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Wa=null}}else Wa=Ua?xi(e.stateNode.nextSibling):null;return!0}function $a(){Wa=Ua=null,Ga=!1}function eo(e){Ka===null?Ka=[e]:Ka.push(e)}function to(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;t===Ca&&(t=a.refs={}),e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function no(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function ro(e){var t=e._init;return t(e._payload)}function io(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Yl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=$l(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===w?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===N&&ro(i)===t.type)?(r=a(t,n.props),r.ref=to(e,t,n),r.return=e,r):(r=Xl(n.type,n.key,n.props,null,e.mode,r),r.ref=to(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=eu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Zl(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=$l(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case S:return n=Xl(t.type,t.key,t.props,null,e.mode,n),n.ref=to(e,null,t),n.return=e,n;case C:return t=eu(t,e.mode,n),t.return=e,t;case N:var r=t._init;return f(e,r(t._payload),n)}if(ue(t)||I(t))return t=Zl(t,e.mode,n,null),t.return=e,t;no(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case S:return n.key===i?l(e,t,n,r):null;case C:return n.key===i?u(e,t,n,r):null;case N:return i=n._init,p(e,t,i(n._payload),r)}if(ue(n)||I(n))return i===null?d(e,t,n,r,null):null;no(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case S:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case C:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case N:var a=r._init;return m(e,t,n,a(r._payload),i)}if(ue(r)||I(r))return e=e.get(n)||null,d(t,e,r,i,null);no(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Ga&&za(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ga&&za(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Ga&&za(r,h),l}function g(a,s,c,l){var u=I(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ga&&za(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ga&&za(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ga&&za(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===w&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case S:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===w){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===N&&ro(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=to(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===w?(r=Zl(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=Xl(i.type,i.key,i.props,null,e.mode,o),o.ref=to(e,r,i),o.return=e,e=o)}return s(e);case C:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=eu(i,e.mode,o),r.return=e,e=r}return s(e);case N:return l=i._init,_(e,r,l(i._payload),o)}if(ue(i))return h(e,r,i,o);if(I(i))return g(e,r,i,o);no(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=$l(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var ao=io(!0),oo=io(!1),so={},co=Ii(so),lo=Ii(so),uo=Ii(so);function fo(e){if(e===so)throw Error(r(174));return e}function po(e,t){switch(Ri(uo,t),Ri(lo,e),Ri(co,so),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ge(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ge(t,e)}Li(co),Ri(co,t)}function mo(){Li(co),Li(lo),Li(uo)}function ho(e){fo(uo.current);var t=fo(co.current),n=ge(t,e.type);t!==n&&(Ri(lo,e),Ri(co,n))}function go(e){lo.current===e&&(Li(co),Li(lo))}var _o=Ii(0);function vo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yo=[];function bo(){for(var e=0;e<yo.length;e++)yo[e]._workInProgressVersionPrimary=null;yo.length=0}var xo=x.ReactCurrentDispatcher,So=x.ReactCurrentBatchConfig,Co=0,wo=null,To=null,Eo=null,Do=!1,Oo=!1,ko=0,Ao=0;function jo(){throw Error(r(321))}function Mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function No(e,t,n,i,a,o){if(Co=o,wo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xo.current=e===null||e.memoizedState===null?gs:_s,e=n(i,a),Oo){o=0;do{if(Oo=!1,ko=0,25<=o)throw Error(r(301));o+=1,Eo=To=null,t.updateQueue=null,xo.current=vs,e=n(i,a)}while(Oo)}if(xo.current=hs,t=To!==null&&To.next!==null,Co=0,Eo=To=wo=null,Do=!1,t)throw Error(r(300));return e}function Po(){var e=ko!==0;return ko=0,e}function Fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Eo===null?wo.memoizedState=Eo=e:Eo=Eo.next=e,Eo}function Io(){if(To===null){var e=wo.alternate;e=e===null?null:e.memoizedState}else e=To.next;var t=Eo===null?wo.memoizedState:Eo.next;if(t!==null)Eo=t,To=e;else{if(e===null)throw Error(r(310));To=e,e={memoizedState:To.memoizedState,baseState:To.baseState,baseQueue:To.baseQueue,queue:To.queue,next:null},Eo===null?wo.memoizedState=Eo=e:Eo=Eo.next=e}return Eo}function Lo(e,t){return typeof t==`function`?t(e):t}function Ro(e){var t=Io(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=To,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Co&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,wo.lanes|=d,Kc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,yr(i,t.memoizedState)||(Ps=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,wo.lanes|=o,Kc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zo(e){var t=Io(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);yr(o,t.memoizedState)||(Ps=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Bo(){}function Vo(e,t){var n=wo,i=Io(),a=t(),o=!yr(i.memoizedState,a);if(o&&(i.memoizedState=a,Ps=!0),i=i.queue,Qo(Wo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Eo!==null&&Eo.memoizedState.tag&1){if(n.flags|=2048,qo(9,Uo.bind(null,n,i,a,t),void 0,null),zc===null)throw Error(r(349));Co&30||Ho(n,t,a)}return a}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=wo.updateQueue,t===null?(t={lastEffect:null,stores:null},wo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&fl(e,1,-1)}function Wo(e,t,n){return n(function(){Go(t)&&fl(e,1,-1)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Ko(e){var t=Fo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t.queue=e,e=e.dispatch=us.bind(null,wo,e),[t.memoizedState,e]}function qo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=wo.updateQueue,t===null?(t={lastEffect:null,stores:null},wo.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Jo(){return Io().memoizedState}function Yo(e,t,n,r){var i=Fo();wo.flags|=e,i.memoizedState=qo(1|t,n,void 0,r===void 0?null:r)}function Xo(e,t,n,r){var i=Io();r=r===void 0?null:r;var a=void 0;if(To!==null){var o=To.memoizedState;if(a=o.destroy,r!==null&&Mo(r,o.deps)){i.memoizedState=qo(t,n,a,r);return}}wo.flags|=e,i.memoizedState=qo(1|t,n,a,r)}function Zo(e,t){return Yo(8390656,8,e,t)}function Qo(e,t){return Xo(2048,8,e,t)}function $o(e,t){return Xo(4,2,e,t)}function es(e,t){return Xo(4,4,e,t)}function ts(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ns(e,t,n){return n=n==null?null:n.concat([e]),Xo(4,4,ts.bind(null,t,e),n)}function rs(){}function is(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function as(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function os(e,t,n){return Co&21?(yr(n,t)||(n=Tt(),wo.lanes|=n,Kc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ps=!0),e.memoizedState=n)}function ss(e,t){var n=At;At=n!==0&&4>n?n:4,e(!0);var r=So.transition;So.transition={};try{e(!1),t()}finally{At=n,So.transition=r}}function cs(){return Io().memoizedState}function ls(e,t,n){var r=dl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ds(e)?fs(t,n):(ps(e,t,n),n=ul(),e=fl(e,r,n),e!==null&&ms(e,t,r))}function us(e,t,n){var r=dl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ds(e))fs(t,i);else{ps(e,t,i);var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return}catch{}n=ul(),e=fl(e,r,n),e!==null&&ms(e,t,r)}}function ds(e){var t=e.alternate;return e===wo||t!==null&&t===wo}function fs(e,t){Oo=Do=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ps(e,t,n){ml(e)?(e=t.interleaved,e===null?(n.next=n,pa===null?pa=[t]:pa.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function ms(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,kt(e,n)}}var hs={readContext:fa,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useInsertionEffect:jo,useLayoutEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useMutableSource:jo,useSyncExternalStore:jo,useId:jo,unstable_isNewReconciler:!1},gs={readContext:fa,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:fa,useEffect:Zo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Yo(4194308,4,ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yo(4,2,e,t)},useMemo:function(e,t){var n=Fo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ls.bind(null,wo,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:Ko,useDebugValue:rs,useDeferredValue:function(e){return Fo().memoizedState=e},useTransition:function(){var e=Ko(!1),t=e[0];return e=ss.bind(null,e[1]),Fo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=wo,a=Fo();if(Ga){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),zc===null)throw Error(r(349));Co&30||Ho(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Zo(Wo.bind(null,i,o,e),[e]),i.flags|=2048,qo(9,Uo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Fo(),t=zc.identifierPrefix;if(Ga){var n=Ra,r=La;n=(r&~(1<<32-mt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=ko++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Ao++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},_s={readContext:fa,useCallback:is,useContext:fa,useEffect:Qo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:Ro,useRef:Jo,useState:function(){return Ro(Lo)},useDebugValue:rs,useDeferredValue:function(e){return os(Io(),To.memoizedState,e)},useTransition:function(){return[Ro(Lo)[0],Io().memoizedState]},useMutableSource:Bo,useSyncExternalStore:Vo,useId:cs,unstable_isNewReconciler:!1},vs={readContext:fa,useCallback:is,useContext:fa,useEffect:Qo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:zo,useRef:Jo,useState:function(){return zo(Lo)},useDebugValue:rs,useDeferredValue:function(e){var t=Io();return To===null?t.memoizedState=e:os(t,To.memoizedState,e)},useTransition:function(){return[zo(Lo)[0],Io().memoizedState]},useMutableSource:Bo,useSyncExternalStore:Vo,useId:cs,unstable_isNewReconciler:!1};function ys(e,t){try{var n=``,r=t;do n+=H(r),r=r.return;while(r);var i=n}catch(e){i=`
11
11
  Error generating stack: `+e.message+`
12
- `+e.stack}return{value:e,source:t,stack:i}}function bs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var xs=typeof WeakMap==`function`?WeakMap:Map;function Ss(e,t,n){n=_a(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){el||(el=!0,tl=r),bs(e,t)},n}function Cs(e,t,n){n=_a(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){bs(e,t),typeof r!=`function`&&(nl===null?nl=new Set([this]):nl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function ws(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zl.bind(null,e,t,n),t.then(e,e))}function Ts(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Es(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_a(-1,1),t.tag=2,va(n,t))),n.lanes|=1),e)}var Ds=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,fo(co.current);var o=null;switch(n){case`input`:i=W(e,i),r=W(e,r),o=[];break;case`select`:i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),o=[];break;case`textarea`:i=fe(e,i),r=fe(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=di)}Te(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&Zr(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ks=function(e,t,n,r){n!==r&&(t.flags|=4)};function As(e,t){if(!Ga)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function js(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ms(e,t,n){var i=t.pendingProps;switch(Ha(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return js(t),null;case 1:return Wi(t.type)&&Gi(),js(t),null;case 3:return i=t.stateNode,mo(),Li(Vi),Li(Bi),bo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ka!==null&&(vl(Ka),Ka=null))),js(t),null;case 5:go(t);var o=fo(uo.current);if(n=t.type,e!==null&&t.stateNode!=null)Os(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return js(t),null}if(e=fo(co.current),Qa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[wi]=t,i[Ti]=s,e=(t.mode&1)!=0,n){case`dialog`:Zr(`cancel`,i),Zr(`close`,i);break;case`iframe`:case`object`:case`embed`:Zr(`load`,i);break;case`video`:case`audio`:for(o=0;o<qr.length;o++)Zr(qr[o],i);break;case`source`:Zr(`error`,i);break;case`img`:case`image`:case`link`:Zr(`error`,i),Zr(`load`,i);break;case`details`:Zr(`toggle`,i);break;case`input`:se(i,s),Zr(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},Zr(`invalid`,i);break;case`textarea`:pe(i,s),Zr(`invalid`,i)}for(var c in Te(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&ui(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&ui(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&Zr(`scroll`,i)}switch(n){case`input`:ie(i),le(i,s,!0);break;case`textarea`:ie(i),he(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=di)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=q(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[wi]=t,e[Ti]=i,Ds(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ee(n,i),n){case`dialog`:Zr(`cancel`,e),Zr(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:Zr(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<qr.length;o++)Zr(qr[o],e);o=i;break;case`source`:Zr(`error`,e),o=i;break;case`img`:case`image`:case`link`:Zr(`error`,e),Zr(`load`,e),o=i;break;case`details`:Zr(`toggle`,e),o=i;break;case`input`:se(e,i),o=W(e,i),Zr(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=L({},i,{value:void 0}),Zr(`invalid`,e);break;case`textarea`:pe(e,i),o=fe(e,i),Zr(`invalid`,e);break;default:o=i}for(s in Te(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Ce(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&ve(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&ye(e,u):typeof u==`number`&&ye(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&Zr(`scroll`,e):u!=null&&b(e,s,u,c))}switch(n){case`input`:ie(e),le(e,i,!1);break;case`textarea`:ie(e),he(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+te(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&de(e,!!i.multiple,i.defaultValue,!0):de(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=di)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return js(t),null;case 6:if(e&&t.stateNode!=null)ks(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=fo(uo.current),fo(co.current),Qa(t)){if(i=t.stateNode,n=t.memoizedProps,i[wi]=t,(s=i.nodeValue!==n)&&(e=Ua,e!==null))switch(e.tag){case 3:ui(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ui(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[wi]=t,t.stateNode=i}return js(t),null;case 13:if(Li(_o),i=t.memoizedState,Ga&&Wa!==null&&t.mode&1&&!(t.flags&128)){for(i=Wa;i;)i=xi(i.nextSibling);return $a(),t.flags|=98560,t}if(i!==null&&i.dehydrated!==null){if(i=Qa(t),e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(r(317));i[wi]=t}else $a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;return js(t),null}return Ka!==null&&(vl(Ka),Ka=null),t.flags&128?(t.lanes=n,t):(i=i!==null,n=!1,e===null?Qa(t):n=e.memoizedState!==null,i!==n&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||_o.current&1?Wc===0&&(Wc=3):Ol())),t.updateQueue!==null&&(t.flags|=4),js(t),null);case 4:return mo(),e===null&&ei(t.stateNode.containerInfo),js(t),null;case 10:return la(t.type._context),js(t),null;case 17:return Wi(t.type)&&Gi(),js(t),null;case 19:if(Li(_o),s=t.memoizedState,s===null)return js(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)As(s,!1);else{if(Wc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=vo(e),c!==null){for(t.flags|=128,As(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ri(_o,_o.current&1|2),t.child}e=e.sibling}s.tail!==null&&it()>Qc&&(t.flags|=128,i=!0,As(s,!1),t.lanes=4194304)}else{if(!i)if(e=vo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),As(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Ga)return js(t),null}else 2*it()-s.renderingStartTime>Qc&&n!==1073741824&&(t.flags|=128,i=!0,As(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(js(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=it(),t.sibling=null,n=_o.current,Ri(_o,i?n&1|2:n&1),t);case 22:case 23:return wl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Hc&1073741824&&(js(t),t.subtreeFlags&6&&(t.flags|=8192)):js(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}var Ns=x.ReactCurrentOwner,Ps=!1;function Fs(e,t,n,r){t.child=e===null?oo(t,null,n,r):ao(t,e.child,n,r)}function Is(e,t,n,r,i){n=n.render;var a=t.ref;return da(t,i),r=No(e,t,n,r,a,i),n=Po(),e!==null&&!Ps?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Ga&&n&&Va(t),t.flags|=1,Fs(e,t,r,i),t.child)}function Ls(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Rs(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return rc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function Rs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref)if(Ps=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ps=!0);else return t.lanes=e.lanes,rc(e,t,i)}return Vs(e,t,n,r,i)}function zs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ri(Uc,Hc),Hc|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Ri(Uc,Hc),Hc|=r;else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ri(Uc,Hc),Hc|=e,null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Ri(Uc,Hc),Hc|=r;return Fs(e,t,i,n),t.child}function Bs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vs(e,t,n,r,i){var a=Wi(n)?Hi:Bi.current;return a=Ui(t,a),da(t,i),n=No(e,t,n,r,a,i),r=Po(),e!==null&&!Ps?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Ga&&r&&Va(t),t.flags|=1,Fs(e,t,n,i),t.child)}function Hs(e,t,n,r,i){if(Wi(n)){var a=!0;Ji(t)}else a=!1;if(da(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Da(t,n,r),ka(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=fa(l):(l=Wi(n)?Hi:Bi.current,l=Ui(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Oa(t,o,r,l),ma=!1;var f=t.memoizedState;o.state=f,xa(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Vi.current||ma?(typeof u==`function`&&(wa(t,n,u,r),c=t.memoizedState),(s=ma||Ea(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ga(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ra(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=fa(c):(c=Wi(n)?Hi:Bi.current,c=Ui(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Oa(t,o,r,c),ma=!1,f=t.memoizedState,o.state=f,xa(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Vi.current||ma?(typeof p==`function`&&(wa(t,n,p,r),m=t.memoizedState),(l=ma||Ea(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Us(e,t,n,r,a,i)}function Us(e,t,n,r,i,a){Bs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&Yi(t,n,!1),rc(e,t,a);r=t.stateNode,Ns.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ao(t,e.child,null,a),t.child=ao(t,null,s,a)):Fs(e,t,s,a),t.memoizedState=r.state,i&&Yi(t,n,!0),t.child}function Ws(e){var t=e.stateNode;t.pendingContext?Ki(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ki(e,t.context,!1),po(e,t.containerInfo)}function Gs(e,t,n,r,i){return $a(),eo(i),t.flags|=256,Fs(e,t,n,r),t.child}var Ks={dehydrated:null,treeContext:null,retryLane:0};function qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Js(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function Ys(e,t,n){var i=t.pendingProps,a=_o.current,o=!1,s=(t.flags&128)!=0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!=0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ri(_o,a&1),e===null)return Xa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=i.children,e=i.fallback,o?(i=t.mode,o=t.child,a={mode:`hidden`,children:a},!(i&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Ql(a,i,0,null),e=Zl(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qs(n),t.memoizedState=Ks,e):Xs(t,a));if(a=e.memoizedState,a!==null){if(c=a.dehydrated,c!==null){if(s)return t.flags&256?(t.flags&=-257,$s(e,t,n,Error(r(422)))):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,n,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&ao(t,e.child,null,n),t.child.memoizedState=qs(n),t.memoizedState=Ks,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))t=$s(e,t,n,null);else if(c.data===`$!`)t=$s(e,t,n,Error(r(419)));else if(i=(n&e.childLanes)!==0,Ps||i){if(i=zc,i!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}i=(o&(i.suspendedLanes|n))===0?o:0,i!==0&&i!==a.retryLane&&(a.retryLane=i,fl(e,i,-1))}Ol(),t=$s(e,t,n,Error(r(421)))}else c.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),c._reactRetry=t,t=null):(n=a.treeContext,Wa=xi(c.nextSibling),Ua=t,Ga=!0,Ka=null,n!==null&&(Pa[Fa++]=La,Pa[Fa++]=Ra,Pa[Fa++]=Ia,La=n.id,Ra=n.overflow,Ia=t),t=Xs(t,t.pendingProps.children),t.flags|=4096);return t}return o?(i=Qs(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?qs(n):Js(a,n),o.childLanes=e.childLanes&~n,t.memoizedState=Ks,i):(n=Zs(e,t,i.children,n),t.memoizedState=null,n)}return o?(i=Qs(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?qs(n):Js(a,n),o.childLanes=e.childLanes&~n,t.memoizedState=Ks,i):(n=Zs(e,t,i.children,n),t.memoizedState=null,n)}function Xs(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Zs(e,t,n,r){var i=e.child;return e=i.sibling,n=Yl(i,{mode:`visible`,children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Qs(e,t,n,r,i){var a=t.mode;e=e.child;var o=e.sibling,s={mode:`hidden`,children:n};return!(a&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=Yl(e,s),n.subtreeFlags=e.subtreeFlags&14680064),o===null?(r=Zl(r,a,i,null),r.flags|=2):r=Yl(o,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function $s(e,t,n,r){return r!==null&&eo(r),ao(t,e.child,null,n),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ua(e.return,t,n)}function tc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function nc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Fs(e,t,r.children,n),r=_o.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ec(e,n,t);else if(e.tag===19)ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ri(_o,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&vo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tc(t,!0,n,null,a);break;case`together`:tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ic(e,t,n){switch(t.tag){case 3:Ws(t),$a();break;case 5:ho(t);break;case 1:Wi(t.type)&&Ji(t);break;case 4:po(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ri(ia,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ri(_o,_o.current&1),e=rc(e,t,n),e===null?null:e.sibling):Ys(e,t,n):(Ri(_o,_o.current&1),t.flags|=128,null);Ri(_o,_o.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ri(_o,_o.current),r)break;return null;case 22:case 23:return t.lanes=0,zs(e,t,n)}return rc(e,t,n)}function ac(e,t){switch(Ha(t),t.tag){case 1:return Wi(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mo(),Li(Vi),Li(Bi),bo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return go(t),null;case 13:if(Li(_o),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Li(_o),null;case 4:return mo(),null;case 10:return la(t.type._context),null;case 22:case 23:return wl(),null;case 24:return null;default:return null}}var oc=!1,sc=!1,cc=typeof WeakSet==`function`?WeakSet:Set,X=null;function lc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Rl(e,t,n)}else n.current=null}function uc(e,t,n){try{n()}catch(n){Rl(e,t,n)}}var dc=!1;function fc(e,t){if(fi=nn,e=wr(),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(pi={focusedElem:e,selectionRange:n},nn=!1,X=t;X!==null;)if(t=X,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ra(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;if(y.nodeType===1)y.textContent=``;else if(y.nodeType===9){var b=y.body;b!=null&&(b.textContent=``)}break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Rl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return h=dc,dc=!1,h}function pc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&uc(t,n,a)}i=i.next}while(i!==r)}}function mc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function gc(e){var t=e.alternate;t!==null&&(e.alternate=null,gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wi],delete t[Ti],delete t[Di],delete t[Oi],delete t[ki])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _c(e){return e.tag===5||e.tag===3||e.tag===4}function vc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||_c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=di));else if(r!==4&&(e=e.child,e!==null))for(yc(e,t,n),e=e.sibling;e!==null;)yc(e,t,n),e=e.sibling}function bc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bc(e,t,n),e=e.sibling;e!==null;)bc(e,t,n),e=e.sibling}var xc=null,Sc=!1;function Cc(e,t,n){for(n=n.child;n!==null;)wc(e,t,n),n=n.sibling}function wc(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount==`function`)try{ft.onCommitFiberUnmount(dt,n)}catch{}switch(n.tag){case 5:sc||lc(n,t);case 6:var r=xc,i=Sc;xc=null,Cc(e,t,n),xc=r,Sc=i,xc!==null&&(Sc?(e=xc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xc.removeChild(n.stateNode));break;case 18:xc!==null&&(Sc?(e=xc,n=n.stateNode,e.nodeType===8?bi(e.parentNode,n):e.nodeType===1&&bi(e,n),en(e)):bi(xc,n.stateNode));break;case 4:r=xc,i=Sc,xc=n.stateNode.containerInfo,Sc=!0,Cc(e,t,n),xc=r,Sc=i;break;case 0:case 11:case 14:case 15:if(!sc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&uc(n,t,o),i=i.next}while(i!==r)}Cc(e,t,n);break;case 1:if(!sc&&(lc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Rl(n,t,e)}Cc(e,t,n);break;case 21:Cc(e,t,n);break;case 22:n.mode&1?(sc=(r=sc)||n.memoizedState!==null,Cc(e,t,n),sc=r):Cc(e,t,n);break;default:Cc(e,t,n)}}function Tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ec(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:xc=c.stateNode,Sc=!1;break a;case 3:xc=c.stateNode.containerInfo,Sc=!0;break a;case 4:xc=c.stateNode.containerInfo,Sc=!0;break a}c=c.return}if(xc===null)throw Error(r(160));wc(o,s,a),xc=null,Sc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Rl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dc(t,e),t=t.sibling}function Dc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ec(t,e),Oc(e),i&4){try{pc(3,e,e.return),mc(3,e)}catch(t){Rl(e,e.return,t)}try{pc(5,e,e.return)}catch(t){Rl(e,e.return,t)}}break;case 1:Ec(t,e),Oc(e),i&512&&n!==null&&lc(n,n.return);break;case 5:if(Ec(t,e),Oc(e),i&512&&n!==null&&lc(n,n.return),e.flags&32){var a=e.stateNode;try{ye(a,``)}catch(t){Rl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&G(a,o),Ee(c,s);var u=Ee(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Ce(a,f):d===`dangerouslySetInnerHTML`?ve(a,f):d===`children`?ye(a,f):b(a,d,f,u)}switch(c){case`input`:ce(a,o);break;case`textarea`:me(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?de(a,!!o.multiple,o.multiple?[]:``,!1):de(a,!!o.multiple,o.defaultValue,!0)):de(a,!!o.multiple,m,!1)}a[Ti]=o}catch(t){Rl(e,e.return,t)}}break;case 6:if(Ec(t,e),Oc(e),i&4){if(e.stateNode===null)throw Error(r(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(t){Rl(e,e.return,t)}}break;case 3:if(Ec(t,e),Oc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{en(t.containerInfo)}catch(t){Rl(e,e.return,t)}break;case 4:Ec(t,e),Oc(e);break;case 13:Ec(t,e),Oc(e),u=e.child,u.flags&8192&&u.memoizedState!==null&&(u.alternate===null||u.alternate.memoizedState===null)&&(Zc=it()),i&4&&Tc(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(sc=(d=sc)||u,Ec(t,e),sc=d):Ec(t,e),Oc(e),i&8192){d=e.memoizedState!==null;a:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{a=p.stateNode,d?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Se(`display`,s))}catch(t){Rl(e,e.return,t)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=d?``:p.memoizedProps}catch(t){Rl(e,e.return,t)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break a;for(;p.sibling===null;){if(p.return===null||p.return===e)break a;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}if(d&&!u&&e.mode&1)for(X=e,e=e.child;e!==null;){for(u=X=e;X!==null;){switch(d=X,f=d.child,d.tag){case 0:case 11:case 14:case 15:pc(4,d,d.return);break;case 1:if(lc(d,d.return),o=d.stateNode,typeof o.componentWillUnmount==`function`){p=d,m=d.return;try{a=p,o.props=a.memoizedProps,o.state=a.memoizedState,o.componentWillUnmount()}catch(e){Rl(p,m,e)}}break;case 5:lc(d,d.return);break;case 22:if(d.memoizedState!==null){Mc(u);continue}}f===null?Mc(u):(f.return=d,X=f)}e=e.sibling}}break;case 19:Ec(t,e),Oc(e),i&4&&Tc(e);break;case 21:break;default:Ec(t,e),Oc(e)}}function Oc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(_c(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(ye(a,``),i.flags&=-33),bc(e,vc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;yc(e,vc(e),o);break;default:throw Error(r(161))}}catch(t){Rl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kc(e,t,n){X=e,Ac(e,t,n)}function Ac(e,t,n){for(var r=(e.mode&1)!=0;X!==null;){var i=X,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||oc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||sc;s=oc;var l=sc;if(oc=o,(sc=c)&&!l)for(X=i;X!==null;)o=X,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Nc(i):(c.return=o,X=c);for(;a!==null;)X=a,Ac(a,t,n),a=a.sibling;X=i,oc=s,sc=l}jc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,X=a):jc(e,t,n)}}function jc(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:sc||mc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!sc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ra(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Sa(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Sa(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&en(f)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(r(163))}sc||t.flags&512&&hc(t)}catch(e){Rl(t,t.return,e)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Mc(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function Nc(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mc(4,t)}catch(e){Rl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Rl(t,i,e)}}var a=t.return;try{hc(t)}catch(e){Rl(t,a,e)}break;case 5:var o=t.return;try{hc(t)}catch(e){Rl(t,o,e)}}}catch(e){Rl(t,t.return,e)}if(t===e){X=null;break}var s=t.sibling;if(s!==null){s.return=t.return,X=s;break}X=t.return}}var Pc=Math.ceil,Fc=x.ReactCurrentDispatcher,Ic=x.ReactCurrentOwner,Lc=x.ReactCurrentBatchConfig,Rc=0,zc=null,Bc=null,Vc=0,Hc=0,Uc=Ii(0),Wc=0,Gc=null,Kc=0,qc=0,Jc=0,Yc=null,Xc=null,Zc=0,Qc=1/0,$c=null,el=!1,tl=null,nl=null,rl=!1,il=null,al=0,ol=0,sl=null,cl=-1,ll=0;function ul(){return Rc&6?it():cl===-1?cl=it():cl}function dl(e){return e.mode&1?Rc&2&&Vc!==0?Vc&-Vc:na.transition===null?(e=At,e===0?(e=window.event,e=e===void 0?16:ln(e.type),e):e):(ll===0&&(ll=Tt()),ll):1}function fl(e,t,n){if(50<ol)throw ol=0,sl=null,Error(r(185));var i=pl(e,t);return i===null?null:(Dt(i,t,n),(!(Rc&2)||i!==zc)&&(i===zc&&(!(Rc&2)&&(qc|=t),Wc===4&&bl(i,Vc)),hl(i,n),t===1&&Rc===0&&!(e.mode&1)&&(Qc=it()+500,Zi&&ta())),i)}function pl(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function ml(e){return(zc!==null||pa!==null)&&(e.mode&1)!=0&&(Rc&2)==0}function hl(e,t){var n=e.callbackNode;Ct(e,t);var r=xt(e,e===zc?Vc:0);if(r===0)n!==null&&tt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&tt(n),t===1)e.tag===0?ea(xl.bind(null,e)):$i(xl.bind(null,e)),vi(function(){Rc===0&&ta()}),n=null;else{switch(jt(r)){case 1:n=ot;break;case 4:n=st;break;case 16:n=ct;break;case 536870912:n=ut;break;default:n=ct}n=Wl(n,gl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gl(e,t){if(cl=-1,ll=0,Rc&6)throw Error(r(327));var n=e.callbackNode;if(Il()&&e.callbackNode!==n)return null;var i=xt(e,e===zc?Vc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=kl(e,i);else{t=i;var a=Rc;Rc|=2;var o=Dl();(zc!==e||Vc!==t)&&($c=null,Qc=it()+500,Tl(e,t));do try{jl();break}catch(t){El(e,t)}while(1);ca(),Fc.current=o,Rc=a,Bc===null?(zc=null,Vc=0,t=Wc):t=0}if(t!==0){if(t===2&&(a=wt(e),a!==0&&(i=a,t=_l(e,a))),t===1)throw n=Gc,Tl(e,0),bl(e,i),hl(e,it()),n;if(t===6)bl(e,i);else{if(a=e.current.alternate,!(i&30)&&!yl(a)&&(t=kl(e,i),t===2&&(o=wt(e),o!==0&&(i=o,t=_l(e,o))),t===1))throw n=Gc,Tl(e,0),bl(e,i),hl(e,it()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Pl(e,Xc,$c);break;case 3:if(bl(e,i),(i&130023424)===i&&(t=Zc+500-it(),10<t)){if(xt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){ul(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=hi(Pl.bind(null,e,Xc,$c),t);break}Pl(e,Xc,$c);break;case 4:if(bl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-mt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=it()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Pc(i/1960))-i,10<i){e.timeoutHandle=hi(Pl.bind(null,e,Xc,$c),i);break}Pl(e,Xc,$c);break;case 5:Pl(e,Xc,$c);break;default:throw Error(r(329))}}}return hl(e,it()),e.callbackNode===n?gl.bind(null,e):null}function _l(e,t){var n=Yc;return e.current.memoizedState.isDehydrated&&(Tl(e,t).flags|=256),e=kl(e,t),e!==2&&(t=Xc,Xc=n,t!==null&&vl(t)),e}function vl(e){Xc===null?Xc=e:Xc.push.apply(Xc,e)}function yl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bl(e,t){for(t&=~Jc,t&=~qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mt(t),r=1<<n;e[n]=-1,t&=~r}}function xl(e){if(Rc&6)throw Error(r(327));Il();var t=xt(e,0);if(!(t&1))return hl(e,it()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var i=wt(e);i!==0&&(t=i,n=_l(e,i))}if(n===1)throw n=Gc,Tl(e,0),bl(e,t),hl(e,it()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e,Xc,$c),hl(e,it()),null}function Sl(e,t){var n=Rc;Rc|=1;try{return e(t)}finally{Rc=n,Rc===0&&(Qc=it()+500,Zi&&ta())}}function Cl(e){il!==null&&il.tag===0&&!(Rc&6)&&Il();var t=Rc;Rc|=1;var n=Lc.transition,r=At;try{if(Lc.transition=null,At=1,e)return e()}finally{At=r,Lc.transition=n,Rc=t,!(Rc&6)&&ta()}}function wl(){Hc=Uc.current,Li(Uc)}function Tl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gi(n)),Bc!==null)for(n=Bc.return;n!==null;){var r=n;switch(Ha(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gi();break;case 3:mo(),Li(Vi),Li(Bi),bo();break;case 5:go(r);break;case 4:mo();break;case 13:Li(_o);break;case 19:Li(_o);break;case 10:la(r.type._context);break;case 22:case 23:wl()}n=n.return}if(zc=e,Bc=e=Yl(e.current,null),Vc=Hc=t,Wc=0,Gc=null,Jc=qc=Kc=0,Xc=Yc=null,pa!==null){for(t=0;t<pa.length;t++)if(n=pa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}pa=null}return e}function El(e,t){do{var n=Bc;try{if(ca(),xo.current=hs,Do){for(var i=wo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Do=!1}if(Co=0,Eo=To=wo=null,Oo=!1,ko=0,Ic.current=null,n===null||n.return===null){Wc=1,Gc=t,Bc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Vc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ts(s);if(m!==null){m.flags&=-257,Es(m,s,c,o,t),m.mode&1&&ws(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){ws(o,u,t),Ol();break a}l=Error(r(426))}}else if(Ga&&c.mode&1){var _=Ts(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Es(_,s,c,o,t),eo(l);break a}}o=l,Wc!==4&&(Wc=2),Yc===null?Yc=[o]:Yc.push(o),l=ys(l,c),c=s;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var v=Ss(c,l,t);ba(c,v);break a;case 1:o=l;var y=c.type,b=c.stateNode;if(!(c.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(nl===null||!nl.has(b)))){c.flags|=65536,t&=-t,c.lanes|=t;var x=Cs(c,o,t);ba(c,x);break a}}c=c.return}while(c!==null)}Nl(n)}catch(e){t=e,Bc===n&&n!==null&&(Bc=n=n.return);continue}break}while(1)}function Dl(){var e=Fc.current;return Fc.current=hs,e===null?hs:e}function Ol(){(Wc===0||Wc===3||Wc===2)&&(Wc=4),zc===null||!(Kc&268435455)&&!(qc&268435455)||bl(zc,Vc)}function kl(e,t){var n=Rc;Rc|=2;var i=Dl();(zc!==e||Vc!==t)&&($c=null,Tl(e,t));do try{Al();break}catch(t){El(e,t)}while(1);if(ca(),Rc=n,Fc.current=i,Bc!==null)throw Error(r(261));return zc=null,Vc=0,Wc}function Al(){for(;Bc!==null;)Ml(Bc)}function jl(){for(;Bc!==null&&!nt();)Ml(Bc)}function Ml(e){var t=Ul(e.alternate,e,Hc);e.memoizedProps=e.pendingProps,t===null?Nl(e):Bc=t,Ic.current=null}function Nl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ac(n,t),n!==null){n.flags&=32767,Bc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Wc=6,Bc=null;return}}else if(n=Ms(n,t,Hc),n!==null){Bc=n;return}if(t=t.sibling,t!==null){Bc=t;return}Bc=t=e}while(t!==null);Wc===0&&(Wc=5)}function Pl(e,t,n){var r=At,i=Lc.transition;try{Lc.transition=null,At=1,Fl(e,t,n,r)}finally{Lc.transition=i,At=r}return null}function Fl(e,t,n,i){do Il();while(il!==null);if(Rc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ot(e,o),e===zc&&(Bc=zc=null,Vc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rl||(rl=!0,Wl(ct,function(){return Il(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Lc.transition,Lc.transition=null;var s=At;At=1;var c=Rc;Rc|=4,Ic.current=null,fc(e,n),Dc(n,e),Er(pi),nn=!!fi,pi=fi=null,e.current=n,kc(n,e,a),rt(),Rc=c,At=s,Lc.transition=o}else e.current=n;if(rl&&(rl=!1,il=e,al=a),o=e.pendingLanes,o===0&&(nl=null),pt(n.stateNode,i),hl(e,it()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)i(t[n]);if(el)throw el=!1,e=tl,tl=null,e;return al&1&&e.tag!==0&&Il(),o=e.pendingLanes,o&1?e===sl?ol++:(ol=0,sl=e):ol=0,ta(),null}function Il(){if(il!==null){var e=jt(al),t=Lc.transition,n=At;try{if(Lc.transition=null,At=16>e?16:e,il===null)var i=!1;else{if(e=il,il=null,al=0,Rc&6)throw Error(r(331));var a=Rc;for(Rc|=4,X=e.current;X!==null;){var o=X,s=o.child;if(X.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(X=u;X!==null;){var d=X;switch(d.tag){case 0:case 11:case 15:pc(8,d,o)}var f=d.child;if(f!==null)f.return=d,X=f;else for(;X!==null;){d=X;var p=d.sibling,m=d.return;if(gc(d),d===u){X=null;break}if(p!==null){p.return=m,X=p;break}X=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}X=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,X=s;else b:for(;X!==null;){if(o=X,o.flags&2048)switch(o.tag){case 0:case 11:case 15:pc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,X=v;break b}X=o.return}}var y=e.current;for(X=y;X!==null;){s=X;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,X=b;else b:for(s=y;X!==null;){if(c=X,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:mc(9,c)}}catch(e){Rl(c,c.return,e)}if(c===s){X=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,X=x;break b}X=c.return}}if(Rc=a,ta(),ft&&typeof ft.onPostCommitFiberRoot==`function`)try{ft.onPostCommitFiberRoot(dt,e)}catch{}i=!0}return i}finally{At=n,Lc.transition=t}}return!1}function Ll(e,t,n){t=ys(n,t),t=Ss(e,t,1),va(e,t),t=ul(),e=pl(e,1),e!==null&&(Dt(e,1,t),hl(e,t))}function Rl(e,t,n){if(e.tag===3)Ll(e,e,n);else for(;t!==null;){if(t.tag===3){Ll(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nl===null||!nl.has(r))){e=ys(n,e),e=Cs(t,e,1),va(t,e),e=ul(),t=pl(t,1),t!==null&&(Dt(t,1,e),hl(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,zc===e&&(Vc&n)===n&&(Wc===4||Wc===3&&(Vc&130023424)===Vc&&500>it()-Zc?Tl(e,0):Jc|=n),hl(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=yt,yt<<=1,!(yt&130023424)&&(yt=4194304)):t=1);var n=ul();e=pl(e,t),e!==null&&(Dt(e,t,n),hl(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vi.current)Ps=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ps=!1,ic(e,t,n);Ps=!!(e.flags&131072)}else Ps=!1,Ga&&t.flags&1048576&&Ba(t,Na,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var a=Ui(t,Bi.current);da(t,n),a=No(null,t,i,e,a,n);var o=Po();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wi(i)?(o=!0,Ji(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ha(t),a.updater=Ta,t.stateNode=a,a._reactInternals=t,ka(t,i,e,n),t=Us(null,t,i,!0,o,n)):(t.tag=0,Ga&&o&&Va(t),Fs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=ra(i,e),a){case 0:t=Vs(null,t,i,e,n);break a;case 1:t=Hs(null,t,i,e,n);break a;case 11:t=Is(null,t,i,e,n);break a;case 14:t=Ls(null,t,i,ra(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Vs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Hs(e,t,i,a,n);case 3:a:{if(Ws(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,ga(e,t),xa(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Error(r(423)),t=Gs(e,t,i,n,a);break a}else if(i!==a){a=Error(r(424)),t=Gs(e,t,i,n,a);break a}else for(Wa=xi(t.stateNode.containerInfo.firstChild),Ua=t,Ga=!0,Ka=null,n=oo(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($a(),i===a){t=rc(e,t,n);break a}Fs(e,t,i,n)}t=t.child}return t;case 5:return ho(t),e===null&&Xa(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,mi(i,a)?s=null:o!==null&&mi(i,o)&&(t.flags|=32),Bs(e,t),Fs(e,t,s,n),t.child;case 6:return e===null&&Xa(t),null;case 13:return Ys(e,t,n);case 4:return po(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ao(t,null,i,n):Fs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Is(e,t,i,a,n);case 7:return Fs(e,t,t.pendingProps,n),t.child;case 8:return Fs(e,t,t.pendingProps.children,n),t.child;case 12:return Fs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Ri(ia,i._currentValue),i._currentValue=s,o!==null)if(yr(o.value,s)){if(o.children===a.children&&!Vi.current){t=rc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=_a(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ua(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),ua(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Fs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,da(t,n),a=fa(a),i=i(a),t.flags|=1,Fs(e,t,i,n),t.child;case 14:return i=t.type,a=ra(i,t.pendingProps),a=ra(i.type,a),Ls(e,t,i,a,n);case 15:return Rs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Wi(i)?(e=!0,Ji(t)):e=!1,da(t,n),Da(t,i,a),ka(t,i,a,n),Us(null,t,i,!0,e,n);case 19:return nc(e,t,n);case 22:return zs(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return et(e,t)}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return ql(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===M)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case w:return Zl(n.children,a,o,t);case T:s=8,a|=8;break;case E:return e=Kl(12,n,t,a|2),e.elementType=E,e.lanes=o,e;case A:return e=Kl(13,n,t,a),e.elementType=A,e.lanes=o,e;case j:return e=Kl(19,n,t,a),e.elementType=j,e.lanes=o,e;case P:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case D:s=10;break a;case O:s=9;break a;case k:s=11;break a;case M:s=14;break a;case N:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=P,e.lanes=n,e.stateNode={},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Et(0),this.expirationTimes=Et(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Et(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ha(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return zi;e=e._reactInternals;a:{if(Je(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Wi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Wi(n))return qi(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=ul(),i=dl(n),a=_a(r,i),a.callback=t??null,va(n,a),e.current.lanes=i,Dt(e,i,r),hl(e,r),e}function ou(e,t,n,r){var i=t.current,a=ul(),o=dl(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=_a(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),va(i,t),e=fl(i,o,a),e!==null&&ya(e,i,o),o}function su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cl(function(){ou(null,e,null,null)}),t[Ei]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wt.length&&t!==0&&t<Wt[n].priority;n++);Wt.splice(n,0,e),n===0&&Yt(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Ei]=o.current,ei(e.nodeType===8?e.parentNode:e),Cl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Ei]=c.current,ei(e.nodeType===8?e.parentNode:e),Cl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}Mt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bt(t.pendingLanes);n!==0&&(kt(t,n|1),hl(t,it()),!(Rc&6)&&(Qc=it()+500,ta()))}break;case 13:var r=ul();Cl(function(){return fl(e,1,r)}),lu(e,1)}},Nt=function(e){e.tag===13&&(fl(e,134217728,ul()),lu(e,134217728))},Pt=function(e){if(e.tag===13){var t=ul(),n=dl(e);fl(e,n,t),lu(e,n)}},Ft=function(){return At},It=function(e,t){var n=At;try{return At=e,t()}finally{At=n}},Oe=function(e,t,n){switch(t){case`input`:if(ce(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Ni(i);if(!a)throw Error(r(90));ae(i),ce(i,a)}}}break;case`textarea`:me(e,n);break;case`select`:t=n.value,t!=null&&de(e,!!n.multiple,t,!1)}},Ne=Sl,Pe=Cl;var yu={usingClientEntryPoint:!1,Events:[ji,Mi,Ni,je,Me,Sl]},bu={findFiberByHostInstance:Ai,bundleType:0,version:`18.1.0`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qe(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.1.0-next-22edb9f77-20220426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{dt=Su.inject(xu),ft=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Ei]=t.current,ei(e.nodeType===8?e.parentNode:e),new fu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=Qe(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Cl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Ei]=t.current,ei(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(Cl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ei]=null})}),!0):!1},e.unstable_batchedUpdates=Sl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.1.0-next-22edb9f77-20220426`})),Uu=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Hu()})),Wu=o((e=>{var t=Uu();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),Z=l(zu()),Gu=function(e){return e[e.Unclassified=0]=`Unclassified`,e[e.Primary=1]=`Primary`,e[e.Secondary=2]=`Secondary`,e[e.K12=3]=`K12`,e[e.Tertiary=4]=`Tertiary`,e[e.NonEducational=5]=`NonEducational`,e[e.Partners=6]=`Partners`,e[e.Internal=7]=`Internal`,e[e.Other=8]=`Other`,e[e.ClickView=254]=`ClickView`,e[e.System=255]=`System`,e}({}),Ku=function(e){return e.Unclassified=`Unclassified`,e.Primary=`Primary`,e.Secondary=`Secondary`,e.K12=`K12`,e.Tertiary=`Tertiary`,e.NonEducational=`NonEducational`,e.Partners=`Partners`,e.Internal=`Internal`,e.Other=`Other`,e.ClickView=`ClickView`,e.System=`System`,e}({});Gu.Primary,Gu.Secondary,Gu.Primary,Gu.Secondary,Gu.Secondary,Gu.Primary,Gu.Primary,Gu.Primary,Gu.Secondary,Gu.Primary;var qu=o((e=>{var t=zu(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),Q=o(((e,t)=>{t.exports=qu()}))();function Ju(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z`})})}function Yu(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`})})}function Xu(e){let t=!!e.ipAuthGuests?.length;return Z.useEffect(()=>{t?e.navigate({step:`username-or-guest`,backStep:null}):e.navigate({step:`username-input`,backStep:null})},[t]),(0,Q.jsx)(Q.Fragment,{})}var Zu={back:`_back_rcp4h_1`};function Qu(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z`})})}function $u(e){return(0,Q.jsxs)(`span`,{className:`${Zu.back} position-relative d-inline-flex flex-row cursor-pointer`,role:`button`,tabIndex:0,onClick:e.onClick,children:[(0,Q.jsx)(Qu,{}),(0,Q.jsx)(`span`,{children:`Back`})]})}function ed(...e){let t=[];for(let n of e)if(n)if(typeof n==`object`)for(let e of Object.keys(n))n[e]&&t.push(e);else typeof n==`string`&&t.push(n);return t.join(` `)}function td(e){let{onClickBack:t,children:n}=e,r=!!e.title?.length;return r||n||t?(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsxs)(`div`,{className:`text-left position-relative d-flex flex-column gap-3`,children:[!!t&&(0,Q.jsx)($u,{onClick:t}),r&&(0,Q.jsx)(`h1`,{className:ed(`h2`,e?.className?.title),children:e.title})]}),n&&(0,Q.jsx)(`p`,{className:ed(`text-start my-2`,e?.className?.description),children:n})]}):(0,Q.jsx)(Q.Fragment,{})}function nd(e){let{showSpinner:t,children:n,className:r,...i}=e,a=Z.useRef(null),[o,s]=Z.useState({});return Z.useEffect(()=>{let{width:e,height:t}=o;if(e&&t)return;let n=a.current,r=n.offsetHeight,i=n.offsetWidth;!r||!i||s({width:i,height:r})}),Z.useEffect(()=>{let{width:e,height:t}=o;if(!e||!t)return;let n=a.current;n.style.width=`${e+1}px`,n.style.height=`${t+1}px`},[o]),(0,Q.jsx)(`button`,{ref:a,disabled:t,className:`${r} d-flex justify-content-center align-items-center`,...i,children:t?(0,Q.jsx)(`span`,{className:`spinner-border`,role:`status`,children:(0,Q.jsx)(`span`,{className:`visually-hidden`,children:`Loading...`})}):n})}function rd(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z`})})}var id={back:`_back_fw24y_1`};function ad(e){switch(e){case`email`:return`Email`;case`username`:return`Username or email `;default:return null}}function od(e){switch(e){case`email`:return`Enter your email`;case`username`:return`Enter your username or email`;default:return null}}function sd(e){switch(e){case`email`:return`email`;case`username`:return`username email`;default:return null}}function cd(e){let t=!e.hideCloseButton&&typeof e.onClickClose==`function`,n=`form-control form-control-lg`;return e.isError&&(n+=` is-invalid`),e.additionalClassNames&&(n+=` `+e.additionalClassNames),(0,Q.jsxs)(`div`,{children:[!e.hideLabel&&(0,Q.jsx)(`label`,{htmlFor:e.name,children:ad(e.type)}),(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`input`,{className:n,type:`text`,"aria-label":od(e.type),placeholder:od(e.type),autoFocus:!0,value:e.value,onChange:e.onChange,disabled:e.disabled,autoComplete:sd(e.type),autoCorrect:`off`,autoCapitalize:`none`,spellCheck:`false`,name:e.name,id:e.name,"aria-invalid":e.ariaInvalid,"aria-errormessage":e.ariaErrorMessage}),t&&(0,Q.jsx)(`span`,{className:`${id.back} position-absolute cursor-pointer text-gray-800`,role:`button`,tabIndex:0,onClick:e.onClickClose,children:(0,Q.jsx)(rd,{})})]})]})}var ld={kbEmailInUse:`https://support.clickvieweducation.com/hc/articles/42460495601305`,verifyEmail:`https://support.clickvieweducation.com/hc/articles/42594760983705`,verifyEmailNotReceived:`https://support.clickvieweducation.com/hc/articles/43193378048665`,contactSupport:`https://www.clickvieweducation.com/contact-us`,marketingSite:{au:`https://www.clickvieweducation.com/en-au`,nz:`https://www.clickview.co.nz`,uk:`https://www.clickvieweducation.com/en-gb`,us:`https://www.clickvieweducation.com`,ca:`https://www.clickvieweducation.com/en-ca`}};function ud(e){return hd[e]||md}var dd=`If the error persists please contact ClickView Support.`,fd=`If the error persists please contact your ClickView Administrator.`,pd=`Please contact your ClickView Administrator for further assistance.`,md={message:`Oops! Something went wrong...`,additionalInformation:dd,errorImage:`default-v2.png`},hd={error:md,"invalid-token":{message:`This link is either invalid or expired.`,errorImage:`link-not-found-v2.png`},"invalid-code":{message:`This code is either invalid or expired.`,errorImage:`link-not-found-v2.png`},"validation-failure":{message:`The information provided is not valid.`,additionalInformation:dd,errorImage:`incorrect-information-v2.png`},"user.email-in-use-as-username":{message:`This email address is already in use by another account.`,moreInfoUrl:ld.kbEmailInUse,errorImage:`email-error-v2.png`},"user.not-found":{message:`Oh oh! We can't find this account.`,additionalInformation:pd,errorImage:`user-not-found-v2.png`},"user.disabled":{message:`Oops! Looks like this account has been deactivated.`,additionalInformation:pd,errorImage:`user-disabled-v2.png`},"user.no-login":{message:`This account does not have a login.`,additionalInformation:pd,errorImage:`access-forbidden-v2.png`},"user.invalid-password":{message:`The provided username or password is incorrect.`,errorImage:`access-forbidden-v2.png`},"user.same-password":{message:`The provided password is the same as the current password.`,errorImage:`access-forbidden-v2.png`},"user.password-too-short":{message:`The provided password is too short.`,errorImage:`access-forbidden-v2.png`},"user.not-activated":{message:`The account has not been activated. Please check your email for an activation link and try again.`,errorImage:`email-error-v2.png`},"user.already-activated":{message:`This account has already been activated.`,errorImage:`already-activated-v2.png`},"user.locked-out":{message:`Your account has temporarily been locked due to too many failed login attempts. Please try again in a few minutes.`,errorImage:`locked-account-v2.png`},"user.invalid-first-name":{message:`The provided first name is invalid.`,errorImage:`default-v2.png`},"user.invalid-surname":{message:`The provided surname is invalid.`,errorImage:`default-v2.png`},"user.invalid-jobtitle":{message:`The provided job title is incorrect.`,errorImage:`default-v2.png`},"user.no-external-user-data":{message:`Oops! We can't get the information from your IDP.`,errorImage:`default-v2.png`},"user.empty-first-name":{message:`The first name must be provided.`,errorImage:`default-v2.png`},"user.empty-surname":{message:`The surname must be provided.`,errorImage:`default-v2.png`},"user.display-name-too-long":{message:`The maximum length for display name is 70 characters.`,errorImage:`default-v2.png`},"user.display-name-too-short":{message:`The minimum length for display name is 2 characters.`,errorImage:`default-v2.png`},"user.unknown-user-type":{message:`The account type needs to be provided.`,errorImage:`default-v2.png`},"user.invalid-email":{message:`The provided email is invalid.`,errorImage:`email-error-v2.png`},"user.email-too-long":{message:`The maximum length for email is 255 characters.`,errorImage:`email-error-v2.png`},"user.email-already-exists":{message:`This email address is already in use by another account.`,errorImage:`email-error-v2.png`},"user.unknown-year-group":{message:`The year level or grade must be provided for student account.`,errorImage:`default-v2.png`},"customer.not-found":{message:`The customer of this account could not be found.`,errorImage:`not-found-v2.png`},"user.empty-customer":{message:`The customer mapping does not exist.`,errorImage:`default-v2.png`},"user.no-email":{message:`The account does not have an email.`,errorImage:`email-error-v2.png`},"user.email-not-allowed":{message:`Oops! That email won't work to sign in to ClickView. Try using your school account instead.`,errorImage:`email-error-v2.png`},"user.signup-not-allowed":{message:`Student sign up is currently not supported.`,errorImage:`default-v2.png`},"user.invalid-external-user-role":{message:`The external user role is not supported`,errorImage:`default-v2.png`},"user.user-type-not-matched":{message:`The provided user type does not match the existing user`,errorImage:`default-v2.png`},"user.already-logged-in":{message:`You already have an account on ClickView`,errorImage:`default-v2.png`},"login.error":{message:`Uh oh! We cannot log you in at this time.`,additionalInformation:dd,errorImage:`default-v2.png`},"login.invalid-login-state":{message:`Your session has expired.`,additionalInformation:`Please login and try again.`,errorImage:`incorrect-information-v2.png`},"login.no-ip":{message:`IP address could not be detected for IP auth`,errorImage:`default-v2.png`},"verify-email.error":{message:`There was an issue verifying your email address, please try again.`,additionalInformation:fd,errorImage:`email-error-v2.png`},"forgot-password.no-account":{message:`No account can be found for the provided username or email address.`},"forgot-password.no-verified-email":{message:`Your account needs to be linked to a verified email to receive a password reset link. `+pd},"idp.wonde-missing-data":{message:`MyLogin currently only supports logins via Wonde. Please contact ClickView support for assistance.`,errorImage:`default-v2.png`},"idp.rm-missing-data":{message:`Failed to retrieve data from RM Unify.`,errorImage:`default-v2.png`},"saml2.login":{message:`There was an issue processing your login. Please try again`,errorImage:`default-v2.png`},"saml2.configuration-error":{preferServerError:!0,message:`There was an issue with the saml configuration. Please contact ClickView support for assistance.`,errorImage:`default-v2.png`},"http.400":{message:`The information provided was not quite what we were looking for.`,errorImage:`incorrect-information-v2.png`},"http.401":{message:`Uh oh! You don't have permission to access this page.`,errorImage:`access-forbidden-v2.png`},"http.403":{message:`Uh oh! You don't have permission to access this page.`,errorImage:`access-forbidden-v2.png`},"http.404":{message:`Oops! Nothing to see here.`,errorImage:`not-found-v2.png`},"http.500":{message:`Shoot! Looks like theres smoke coming out of our servers.`,additionalInformation:dd,errorImage:`smoky-server-v2.png`}};function gd(){return`Value is required.`}var _d=class extends Error{constructor(e,t,n){super(`An error has occured with errorCode: ${e}`),this.userMessage=t,this.errorCode=e,this.traceId=n}};function vd(e){let t=e.errorCode,n;return n=t===`validation-failure`?gd():ud(t).message,new _d(t,n,e.traceId)}var yd=new class{getXsrfToken(){let e=decodeURIComponent(document.cookie).split(`;`);for(let t=0;t<e.length;t++){let n=e[t];for(;n.charAt(0)===` `;)n=n.substring(1);if(n.indexOf(`XSRF-TOKEN=`)===0)return n.substring(11,n.length)}return``}getHeaders(){return{"x-csrf-token":this.getXsrfToken(),"content-type":`application/json`}}handleResponse(e){return e.json().then(t=>{if(!e.ok)throw vd(t);return t})}get(e){return fetch(e).then(e=>this.handleResponse(e))}post(e,t){let n={method:`POST`,headers:this.getHeaders(),body:t&&JSON.stringify(t)};return fetch(e,n).then(e=>this.handleResponse(e))}},bd={banner:`_banner_hzr93_1`,pluginBanner:`_pluginBanner_hzr93_5`};function xd(e){let t=Ed[e.bannerType];return t?(0,Q.jsx)(t,{}):(0,Q.jsx)(Q.Fragment,{})}var Sd=()=>(0,Q.jsxs)(`div`,{className:`${bd.banner} rounded mb-4 p-2 text-center mx-auto`,children:[`If your email address is already in use, please\xA0`,(0,Q.jsx)(`a`,{href:ld.contactSupport,target:`_blank`,className:`info-link`,children:`contact ClickView Support`}),`.`]}),Cd=()=>(0,Q.jsxs)(`div`,{className:`${bd.banner} rounded mb-4 p-2 text-center mx-auto`,children:[`If you did not receive a verification email,\xA0`,(0,Q.jsx)(`a`,{href:ld.verifyEmailNotReceived,target:`_blank`,className:`info-link`,children:`please see our support article`}),`\xA0or\xA0`,(0,Q.jsx)(`a`,{href:ld.contactSupport,target:`_blank`,className:`info-link`,children:`contact ClickView Support`}),`\xA0for help.`]}),wd=()=>(0,Q.jsx)(`div`,{className:`${bd.pluginBanner} position-absolute w-100 h-auto`,children:(0,Q.jsx)(`div`,{className:`text-center`,children:(0,Q.jsx)(`span`,{className:`text-light d-inline-block py-3 h6 mb-0`,children:`🎓️ Embed classroom-ready videos from ClickView`})})});function Td(){return(0,Q.jsx)(`div`,{style:{height:`3.626rem`}})}var Ed={"email-in-use":Sd,"check-email":Cd,plugin:wd};function Dd(){return(0,Q.jsx)(`span`,{className:`cv-logo d-inline-block`,children:(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:`M317.302 140.594c38.928 22.475 38.928 78.663 0 101.137L87.93 374.159c-51.737 29.87-109.635-28.028-79.764-79.765l42.745-74.035a58.39 58.39 0 0 0 0-58.392L8.165 87.929C-21.705 36.193 36.193-21.705 87.93 8.165z`}),(0,Q.jsx)(`path`,{fill:`#313543`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})})}var Od=`/images/clickview-xmas-logo-2026.png`;function kd(){return(0,Q.jsx)(`span`,{className:`cv-logo d-inline-block`,children:(0,Q.jsx)(`img`,{className:`h-100`,alt:`ClickView Xmas logo`,src:Od})})}var Ad={logo:`_logo_1ermx_1`};function jd(){return(0,Q.jsx)(`span`,{className:`${Ad.logo} d-inline-block`,children:(0,Q.jsxs)(`svg`,{width:`5614`,height:`1080`,viewBox:`0 0 5614 1080`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Q.jsx)(`path`,{d:`M539.597 1046.49C819.546 1046.49 1046.49 819.546 1046.49 539.597C1046.49 259.647 819.546 32.7028 539.597 32.7028C259.647 32.7028 32.7028 259.647 32.7028 539.597C32.7028 819.546 259.647 1046.49 539.597 1046.49Z`,fill:`white`}),(0,Q.jsx)(`path`,{d:`M1079.19 539.597C1079.19 241.586 837.608 0 539.597 0C241.586 0 0 241.586 0 539.597C0 837.608 241.586 1079.19 539.597 1079.19C837.608 1079.19 1079.19 837.608 1079.19 539.597ZM1046.49 539.597C1046.49 819.546 819.546 1046.49 539.597 1046.49C259.647 1046.49 32.7028 819.546 32.7028 539.597C32.7028 259.647 259.647 32.7028 539.597 32.7028C819.546 32.7028 1046.49 259.647 1046.49 539.597Z`,fill:`white`}),(0,Q.jsx)(`path`,{d:`M1046.49 539.597C1046.49 593.776 1037.97 645.963 1022.24 694.922C1017.33 660.088 1006.25 609.777 981.18 554.42C951.089 487.981 856.61 391.753 792.815 331.385C836.145 338.82 878.846 348.412 919.763 364.156C959.259 379.376 998.207 402.218 1034.65 430.2C1042.4 465.442 1046.49 502.035 1046.49 539.597Z`,fill:`#ADE1F9`}),(0,Q.jsx)(`path`,{d:`M564.419 640.626C547.183 638.435 529.981 636.244 512.885 633.831C403.162 618.297 293.381 591.562 196.897 537.056C132.368 500.602 84.1434 458.368 49.694 409.024V408.966C50.3116 406.67 50.9293 404.398 51.5586 402.114C59.4717 376.067 94.4223 285.258 196.535 290.887C220.951 292.227 314.976 303.473 328.156 413.29C329.124 421.343 330.056 429.407 331.606 437.379C352.094 542.871 468.926 601.573 559.093 638.505C560.865 639.227 562.648 639.915 564.419 640.626Z`,fill:`#E1FAE1`}),(0,Q.jsx)(`path`,{d:`M1034.65 430.2C998.207 402.218 959.259 379.376 919.763 364.156C878.846 348.412 836.145 338.82 792.815 331.385C697.66 315.034 599.521 309.067 511.113 271.017C464.998 251.158 420.549 220.566 399.537 174.976C379.469 131.471 380.086 94.0032 393.885 62.5722C396.659 56.2557 402.159 51.5125 408.825 49.7411C450.547 38.6347 494.367 32.7028 539.597 32.7028C719.058 32.7028 876.76 125.97 966.822 266.693C998.405 316.013 1021.67 371.195 1034.65 430.2Z`,fill:`#32B3EF`}),(0,Q.jsx)(`path`,{d:`M935.846 855.713C842.264 972.86 697.823 1047.61 535.96 1046.47C256.484 1044.51 32.3176 818.362 32.7022 538.874C32.7605 493.983 38.6809 450.466 49.694 409.024C84.1434 458.368 132.368 500.602 196.897 537.056C293.381 591.562 403.162 618.297 512.885 633.831C529.981 636.244 547.183 638.435 564.419 640.626C648.235 651.254 732.68 661.859 807.849 699.257C864.115 727.25 914.053 775.72 938.922 832.16C942.36 839.968 941.183 849.035 935.846 855.713Z`,fill:`#5ABD5E`}),(0,Q.jsx)(`path`,{d:`M1334.39 666.764C1342.47 652.634 1354.29 641.1 1369.86 632.161C1385.43 623.221 1403.17 618.752 1423.06 618.752C1444.4 618.752 1463.58 623.798 1480.59 633.891C1497.61 643.983 1511.01 658.257 1520.82 676.713C1530.62 694.879 1535.52 716.074 1535.52 740.296C1535.52 764.23 1530.62 785.569 1520.82 804.312C1511.01 823.056 1497.46 837.618 1480.16 847.999C1463.15 858.38 1444.11 863.571 1423.06 863.571C1402.59 863.571 1384.57 859.101 1369 850.162C1353.71 841.223 1342.18 829.832 1334.39 815.991V859.678H1295.03V539.597H1334.39V666.764ZM1495.3 740.296C1495.3 722.418 1491.69 706.846 1484.48 693.582C1477.28 680.317 1467.47 670.224 1455.07 663.304C1442.96 656.383 1429.55 652.923 1414.85 652.923C1400.43 652.923 1387.02 656.527 1374.62 663.736C1362.51 670.657 1352.7 680.894 1345.21 694.447C1338 707.711 1334.39 723.139 1334.39 740.729C1334.39 758.607 1338 774.323 1345.21 787.876C1352.7 801.141 1362.51 811.377 1374.62 818.586C1387.02 825.507 1400.43 828.967 1414.85 828.967C1429.55 828.967 1442.96 825.507 1455.07 818.586C1467.47 811.377 1477.28 801.141 1484.48 787.876C1491.69 774.323 1495.3 758.463 1495.3 740.296Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1791.5 622.645L1648.76 971.274H1608.1L1654.81 857.083L1559.22 622.645H1602.91L1677.3 814.694L1750.84 622.645H1791.5Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1396.94 429.813C1377.61 429.813 1360.21 426.499 1344.74 419.87C1329.28 412.966 1317.13 403.299 1308.29 390.871C1299.45 378.443 1295.03 363.943 1295.03 347.372H1345.57C1346.68 359.8 1351.51 370.019 1360.07 378.028C1368.91 386.038 1381.2 390.042 1396.94 390.042C1413.24 390.042 1425.94 386.176 1435.06 378.443C1444.17 370.433 1448.73 360.214 1448.73 347.786C1448.73 338.12 1445.83 330.248 1440.03 324.172C1434.5 318.096 1427.46 313.401 1418.9 310.087C1410.61 306.773 1399.01 303.182 1384.1 299.316C1365.32 294.344 1349.99 289.373 1338.12 284.402C1326.52 279.154 1316.57 271.145 1308.29 260.374C1300 249.602 1295.86 235.241 1295.86 217.289C1295.86 200.718 1300 186.218 1308.29 173.79C1316.57 161.361 1328.17 151.833 1343.09 145.204C1358 138.576 1375.26 135.262 1394.87 135.262C1422.77 135.262 1445.55 142.304 1463.23 156.39C1481.18 170.199 1491.12 189.256 1493.06 213.56H1440.86C1440.03 203.065 1435.06 194.089 1425.94 186.632C1416.83 179.175 1404.81 175.447 1389.9 175.447C1376.37 175.447 1365.32 178.899 1356.76 185.804C1348.2 192.708 1343.92 202.651 1343.92 215.632C1343.92 224.47 1346.54 231.788 1351.79 237.588C1357.31 243.112 1364.22 247.531 1372.5 250.845C1380.79 254.159 1392.11 257.75 1406.47 261.616C1425.53 266.864 1441 272.111 1452.87 277.359C1465.02 282.606 1475.24 290.754 1483.53 301.801C1492.09 312.573 1496.37 327.072 1496.37 345.3C1496.37 359.938 1492.37 373.747 1484.36 386.728C1476.62 399.709 1465.16 410.204 1449.97 418.213C1435.06 425.946 1417.38 429.813 1396.94 429.813Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1607.2 237.174V363.529C1607.2 372.09 1609.13 378.305 1613 382.171C1617.14 385.762 1624.04 387.557 1633.71 387.557H1662.71V426.913H1625.42C1604.16 426.913 1587.86 421.942 1576.54 411.999C1565.22 402.056 1559.55 385.9 1559.55 363.529V237.174H1532.63V198.646H1559.55V141.89H1607.2V198.646H1662.71V237.174H1607.2Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1753.46 231.788C1760.37 220.189 1769.48 211.213 1780.81 204.86C1792.41 198.232 1806.08 194.918 1821.82 194.918V243.802H1809.81C1791.3 243.802 1777.22 248.498 1767.55 257.888C1758.16 267.278 1753.46 283.573 1753.46 306.773V426.913H1706.24V198.646H1753.46V231.788Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2074.44 307.187C2074.44 315.749 2073.89 323.482 2072.79 330.386H1898.37C1899.76 348.615 1906.52 363.252 1918.67 374.3C1930.83 385.347 1945.74 390.871 1963.42 390.871C1988.83 390.871 2006.78 380.238 2017.27 358.972H2068.23C2061.32 379.962 2048.76 397.223 2030.53 410.756C2012.58 424.013 1990.21 430.642 1963.42 430.642C1941.6 430.642 1921.99 425.808 1904.59 416.142C1887.47 406.199 1873.93 392.39 1863.99 374.714C1854.32 356.762 1849.49 336.048 1849.49 312.573C1849.49 289.097 1854.19 268.521 1863.58 250.845C1873.24 232.893 1886.64 219.084 1903.76 209.417C1921.16 199.751 1941.05 194.918 1963.42 194.918C1984.96 194.918 2004.15 199.613 2021 209.003C2037.85 218.393 2050.97 231.65 2060.36 248.774C2069.75 265.621 2074.44 285.092 2074.44 307.187ZM2025.14 292.273C2024.87 274.873 2018.65 260.926 2006.5 250.431C1994.35 239.936 1979.3 234.688 1961.34 234.688C1945.05 234.688 1931.1 239.936 1919.5 250.431C1907.9 260.65 1901 274.597 1898.79 292.273H2025.14Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2105.18 311.744C2105.18 288.821 2109.87 268.521 2119.26 250.845C2128.93 233.169 2141.91 219.498 2158.2 209.832C2174.78 199.889 2193 194.918 2212.89 194.918C2230.84 194.918 2246.45 198.508 2259.7 205.689C2273.24 212.594 2284.01 221.293 2292.02 231.788V198.646H2339.66V426.913H2292.02V392.942C2284.01 403.714 2273.1 412.69 2259.29 419.87C2245.48 427.051 2229.74 430.642 2212.06 430.642C2192.45 430.642 2174.5 425.67 2158.2 415.728C2141.91 405.509 2128.93 391.423 2119.26 373.471C2109.87 355.243 2105.18 334.667 2105.18 311.744ZM2292.02 312.573C2292.02 296.83 2288.7 283.159 2282.07 271.559C2275.72 259.959 2267.3 251.121 2256.8 245.045C2246.31 238.969 2234.98 235.931 2222.83 235.931C2210.68 235.931 2199.36 238.969 2188.86 245.045C2178.37 250.845 2169.8 259.545 2163.18 271.145C2156.82 282.468 2153.65 296.001 2153.65 311.744C2153.65 327.487 2156.82 341.296 2163.18 353.172C2169.8 365.048 2178.37 374.162 2188.86 380.514C2199.63 386.59 2210.96 389.628 2222.83 389.628C2234.98 389.628 2246.31 386.59 2256.8 380.514C2267.3 374.438 2275.72 365.6 2282.07 354C2288.7 342.124 2292.02 328.315 2292.02 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2678.01 194.918C2695.96 194.918 2711.98 198.646 2726.07 206.103C2740.43 213.56 2751.62 224.608 2759.63 239.245C2767.91 253.883 2772.05 271.559 2772.05 292.273V426.913H2725.24V299.316C2725.24 278.878 2720.13 263.273 2709.91 252.502C2699.69 241.455 2685.75 235.931 2668.07 235.931C2650.39 235.931 2636.31 241.455 2625.81 252.502C2615.59 263.273 2610.49 278.878 2610.49 299.316V426.913H2563.67V299.316C2563.67 278.878 2558.56 263.273 2548.34 252.502C2538.12 241.455 2524.18 235.931 2506.5 235.931C2488.83 235.931 2474.74 241.455 2464.25 252.502C2454.03 263.273 2448.92 278.878 2448.92 299.316V426.913H2401.69V198.646H2448.92V224.746C2456.65 215.355 2466.46 208.036 2478.33 202.789C2490.21 197.541 2502.91 194.918 2516.44 194.918C2534.67 194.918 2550.97 198.784 2565.33 206.517C2579.69 214.251 2590.74 225.436 2598.47 240.074C2605.38 226.265 2616.15 215.355 2630.79 207.346C2645.42 199.06 2661.17 194.918 2678.01 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2816.41 311.744C2816.41 288.821 2821.1 268.521 2830.49 250.845C2840.16 233.169 2853.14 219.498 2869.43 209.832C2886.01 199.889 2904.23 194.918 2924.12 194.918C2942.07 194.918 2957.68 198.508 2970.93 205.689C2984.47 212.594 2995.24 221.293 3003.25 231.788V198.646H3050.89V426.913H3003.25V392.942C2995.24 403.714 2984.33 412.69 2970.52 419.87C2956.71 427.051 2940.97 430.642 2923.29 430.642C2903.68 430.642 2885.73 425.67 2869.43 415.728C2853.14 405.509 2840.16 391.423 2830.49 373.471C2821.1 355.243 2816.41 334.667 2816.41 311.744ZM3003.25 312.573C3003.25 296.83 2999.93 283.159 2993.3 271.559C2986.95 259.959 2978.53 251.121 2968.03 245.045C2957.54 238.969 2946.21 235.931 2934.06 235.931C2921.91 235.931 2910.59 238.969 2900.09 245.045C2889.6 250.845 2881.03 259.545 2874.41 271.145C2868.05 282.468 2864.88 296.001 2864.88 311.744C2864.88 327.487 2868.05 341.296 2874.41 353.172C2881.03 365.048 2889.6 374.162 2900.09 380.514C2910.86 386.59 2922.19 389.628 2934.06 389.628C2946.21 389.628 2957.54 386.59 2968.03 380.514C2978.53 374.438 2986.95 365.6 2993.3 354C2999.93 342.124 3003.25 328.315 3003.25 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3160.15 232.617C3168.16 221.57 3179.07 212.594 3192.88 205.689C3206.96 198.508 3222.57 194.918 3239.69 194.918C3259.85 194.918 3278.08 199.751 3294.37 209.417C3310.67 219.084 3323.51 232.893 3332.9 250.845C3342.29 268.521 3346.99 288.821 3346.99 311.744C3346.99 334.667 3342.29 355.243 3332.9 373.471C3323.51 391.423 3310.53 405.509 3293.96 415.728C3277.66 425.67 3259.57 430.642 3239.69 430.642C3222.01 430.642 3206.27 427.189 3192.46 420.285C3178.93 413.38 3168.16 404.542 3160.15 393.771V426.913H3112.92V120.348H3160.15V232.617ZM3298.93 311.744C3298.93 296.001 3295.62 282.468 3288.99 271.145C3282.64 259.545 3274.07 250.845 3263.3 245.045C3252.81 238.969 3241.48 235.931 3229.33 235.931C3217.46 235.931 3206.13 238.969 3195.36 245.045C3184.87 251.121 3176.3 259.959 3169.68 271.559C3163.32 283.159 3160.15 296.83 3160.15 312.573C3160.15 328.315 3163.32 342.124 3169.68 354C3176.3 365.6 3184.87 374.438 3195.36 380.514C3206.13 386.59 3217.46 389.628 3229.33 389.628C3241.48 389.628 3252.81 386.59 3263.3 380.514C3274.07 374.162 3282.64 365.048 3288.99 353.172C3295.62 341.296 3298.93 327.487 3298.93 311.744Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3440.92 120.348V426.913H3393.69V120.348H3440.92Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3712.13 307.187C3712.13 315.749 3711.58 323.482 3710.48 330.386H3536.07C3537.45 348.615 3544.21 363.252 3556.36 374.3C3568.52 385.347 3583.43 390.871 3601.11 390.871C3626.52 390.871 3644.47 380.238 3654.96 358.972H3705.92C3699.01 379.962 3686.45 397.223 3668.22 410.756C3650.27 424.013 3627.9 430.642 3601.11 430.642C3579.29 430.642 3559.68 425.808 3542.28 416.142C3525.16 406.199 3511.62 392.39 3501.68 374.714C3492.01 356.762 3487.18 336.048 3487.18 312.573C3487.18 289.097 3491.88 268.521 3501.27 250.845C3510.93 232.893 3524.33 219.084 3541.45 209.417C3558.85 199.751 3578.74 194.918 3601.11 194.918C3622.65 194.918 3641.84 199.613 3658.69 209.003C3675.54 218.393 3688.66 231.65 3698.05 248.774C3707.44 265.621 3712.13 285.092 3712.13 307.187ZM3662.83 292.273C3662.56 274.873 3656.34 260.926 3644.19 250.431C3632.04 239.936 3616.99 234.688 3599.04 234.688C3582.74 234.688 3568.79 239.936 3557.19 250.431C3545.59 260.65 3538.69 274.597 3536.48 292.273H3662.83Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3913.45 388.8H4010.81V426.913H3866.23V138.99H3913.45V388.8Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4259.51 307.187C4259.51 315.749 4258.96 323.482 4257.86 330.386H4083.45C4084.83 348.615 4091.59 363.252 4103.75 374.3C4115.9 385.347 4130.81 390.871 4148.49 390.871C4173.9 390.871 4191.85 380.238 4202.34 358.972H4253.3C4246.4 379.962 4233.83 397.223 4215.6 410.756C4197.65 424.013 4175.28 430.642 4148.49 430.642C4126.67 430.642 4107.06 425.808 4089.66 416.142C4072.54 406.199 4059 392.39 4049.06 374.714C4039.39 356.762 4034.56 336.048 4034.56 312.573C4034.56 289.097 4039.26 268.521 4048.65 250.845C4058.31 232.893 4071.71 219.084 4088.83 209.417C4106.23 199.751 4126.12 194.918 4148.49 194.918C4170.03 194.918 4189.22 199.613 4206.07 209.003C4222.92 218.393 4236.04 231.65 4245.43 248.774C4254.82 265.621 4259.51 285.092 4259.51 307.187ZM4210.22 292.273C4209.94 274.873 4203.72 260.926 4191.57 250.431C4179.42 239.936 4164.37 234.688 4146.42 234.688C4130.12 234.688 4116.17 239.936 4104.57 250.431C4092.97 260.65 4086.07 274.597 4083.86 292.273H4210.22Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4290.25 311.744C4290.25 288.821 4294.94 268.521 4304.33 250.845C4314 233.169 4326.98 219.498 4343.28 209.832C4359.85 199.889 4378.07 194.918 4397.96 194.918C4415.91 194.918 4431.52 198.508 4444.77 205.689C4458.31 212.594 4469.08 221.293 4477.09 231.788V198.646H4524.73V426.913H4477.09V392.942C4469.08 403.714 4458.17 412.69 4444.36 419.87C4430.55 427.051 4414.81 430.642 4397.13 430.642C4377.52 430.642 4359.57 425.67 4343.28 415.728C4326.98 405.509 4314 391.423 4304.33 373.471C4294.94 355.243 4290.25 334.667 4290.25 311.744ZM4477.09 312.573C4477.09 296.83 4473.77 283.159 4467.14 271.559C4460.79 259.959 4452.37 251.121 4441.87 245.045C4431.38 238.969 4420.06 235.931 4407.9 235.931C4395.75 235.931 4384.43 238.969 4373.93 245.045C4363.44 250.845 4354.88 259.545 4348.25 271.145C4341.89 282.468 4338.72 296.001 4338.72 311.744C4338.72 327.487 4341.89 341.296 4348.25 353.172C4354.88 365.048 4363.44 374.162 4373.93 380.514C4384.7 386.59 4396.03 389.628 4407.9 389.628C4420.06 389.628 4431.38 386.59 4441.87 380.514C4452.37 374.438 4460.79 365.6 4467.14 354C4473.77 342.124 4477.09 328.315 4477.09 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4633.99 231.788C4640.89 220.189 4650.01 211.213 4661.33 204.86C4672.93 198.232 4686.6 194.918 4702.34 194.918V243.802H4690.33C4671.83 243.802 4657.74 248.498 4648.07 257.888C4638.68 267.278 4633.99 283.573 4633.99 306.773V426.913H4586.76V198.646H4633.99V231.788Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4860.93 194.918C4878.88 194.918 4894.9 198.646 4908.98 206.103C4923.34 213.56 4934.53 224.608 4942.54 239.245C4950.55 253.883 4954.55 271.559 4954.55 292.273V426.913H4907.74V299.316C4907.74 278.878 4902.63 263.273 4892.41 252.502C4882.19 241.455 4868.24 235.931 4850.57 235.931C4832.89 235.931 4818.81 241.455 4808.31 252.502C4798.09 263.273 4792.98 278.878 4792.98 299.316V426.913H4745.76V198.646H4792.98V224.746C4800.72 215.355 4810.52 208.036 4822.4 202.789C4834.55 197.541 4847.39 194.918 4860.93 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5038.82 168.404C5030.26 168.404 5023.08 165.504 5017.28 159.704C5011.48 153.904 5008.58 146.723 5008.58 138.162C5008.58 129.6 5011.48 122.419 5017.28 116.619C5023.08 110.819 5030.26 107.919 5038.82 107.919C5047.11 107.919 5054.15 110.819 5059.95 116.619C5065.75 122.419 5068.65 129.6 5068.65 138.162C5068.65 146.723 5065.75 153.904 5059.95 159.704C5054.15 165.504 5047.11 168.404 5038.82 168.404ZM5062.02 198.646V426.913H5014.79V198.646H5062.02Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5239.2 194.918C5257.15 194.918 5273.17 198.646 5287.25 206.103C5301.61 213.56 5312.8 224.608 5320.81 239.245C5328.82 253.883 5332.82 271.559 5332.82 292.273V426.913H5286.01V299.316C5286.01 278.878 5280.9 263.273 5270.68 252.502C5260.46 241.455 5246.52 235.931 5228.84 235.931C5211.16 235.931 5197.08 241.455 5186.58 252.502C5176.36 263.273 5171.25 278.878 5171.25 299.316V426.913H5124.03V198.646H5171.25V224.746C5178.99 215.355 5188.79 208.036 5200.67 202.789C5212.82 197.541 5225.66 194.918 5239.2 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5485.03 194.918C5502.71 194.918 5518.31 198.508 5531.85 205.689C5545.66 212.594 5556.43 221.293 5564.16 231.788V198.646H5611.8V430.642C5611.8 451.632 5607.38 470.274 5598.55 486.569C5589.71 503.14 5576.87 516.121 5560.02 525.511C5543.45 534.901 5523.56 539.597 5500.36 539.597C5469.43 539.597 5443.74 532.278 5423.31 517.64C5402.87 503.278 5391.27 483.669 5388.51 458.812H5435.32C5438.91 470.688 5446.51 480.217 5458.11 487.398C5469.98 494.855 5484.07 498.583 5500.36 498.583C5519.42 498.583 5534.75 492.783 5546.35 481.183C5558.22 469.584 5564.16 452.736 5564.16 430.642V392.528C5556.15 403.299 5545.24 412.413 5531.43 419.87C5517.9 427.051 5502.43 430.642 5485.03 430.642C5465.15 430.642 5446.92 425.67 5430.35 415.728C5414.05 405.509 5401.07 391.423 5391.41 373.471C5382.02 355.243 5377.32 334.667 5377.32 311.744C5377.32 288.821 5382.02 268.521 5391.41 250.845C5401.07 233.169 5414.05 219.498 5430.35 209.832C5446.92 199.889 5465.15 194.918 5485.03 194.918ZM5564.16 312.573C5564.16 296.83 5560.85 283.159 5554.22 271.559C5547.87 259.959 5539.44 251.121 5528.95 245.045C5518.45 238.969 5507.13 235.931 5494.98 235.931C5482.82 235.931 5471.5 238.969 5461.01 245.045C5450.51 250.845 5441.95 259.545 5435.32 271.145C5428.97 282.468 5425.79 296.001 5425.79 311.744C5425.79 327.487 5428.97 341.296 5435.32 353.172C5441.95 365.048 5450.51 374.162 5461.01 380.514C5471.78 386.59 5483.1 389.628 5494.98 389.628C5507.13 389.628 5518.45 386.59 5528.95 380.514C5539.44 374.438 5547.87 365.6 5554.22 354C5560.85 342.124 5564.16 328.315 5564.16 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2184.73 697.313C2217.58 716.28 2217.58 763.697 2184.73 782.664L1991.16 894.422C1947.5 919.63 1898.63 870.769 1923.84 827.107L1959.92 764.627C1968.72 749.381 1968.72 730.596 1959.92 715.35L1923.84 652.868C1898.63 609.206 1947.49 560.345 1991.16 585.553L2184.73 697.313Z`,fill:`#F8981D`}),(0,Q.jsx)(`path`,{d:`M2433.01 610.672C2460.47 610.672 2484.62 617.305 2505.32 630.7C2526.06 644.117 2541.15 663.145 2550.59 687.606L2552.75 693.183H2505.75L2504.65 690.796C2498.16 676.682 2488.82 665.936 2476.64 658.408L2476.55 658.351L2476.53 658.342C2465.01 651.11 2451.1 647.29 2434.62 647.058L2433.01 647.047C2416.54 647.047 2401.88 650.875 2388.95 658.458C2376.03 666.03 2365.87 676.833 2358.46 690.986L2358.45 691.01C2351.07 704.868 2347.3 721.321 2347.3 740.502C2347.3 759.417 2351.06 775.869 2358.43 789.973L2359.15 791.292L2359.85 792.528C2367.11 805.216 2376.81 815.077 2388.95 822.194C2401.88 829.776 2416.54 833.605 2433.01 833.605L2434.62 833.594C2451.16 833.367 2465.11 829.639 2476.66 822.584C2488.83 815.057 2498.16 804.314 2504.65 790.206L2505.75 787.821H2552.76L2550.59 793.409C2541.14 817.639 2526.05 836.542 2505.32 849.952L2505.25 850.001L2505.22 850.015C2484.54 863.133 2460.42 869.627 2433.01 869.627C2409.57 869.627 2388.1 864.183 2368.67 853.253L2368.65 853.241L2368.64 853.238L2368.54 853.182L2368.52 853.17C2349.38 842.002 2334.22 826.581 2323.09 806.976C2311.9 787.284 2306.35 765.091 2306.35 740.502C2306.35 715.913 2311.9 693.72 2323.09 674.028C2334.2 654.223 2349.33 638.697 2368.44 627.528L2368.46 627.518L2368.63 627.418C2388.07 616.242 2409.56 610.672 2433.01 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2637.06 869.627H2596.11V610.676H2637.06V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2728.31 869.627H2687.37V684.984H2728.31V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2708.2 610.672C2715.28 610.672 2721.38 613.266 2726.23 618.369L2726.7 618.851C2731.48 623.867 2733.89 630.021 2733.89 637.082C2733.89 644.372 2731.32 650.693 2726.23 655.795C2721.38 660.898 2715.28 663.492 2708.2 663.492C2700.9 663.492 2694.57 660.919 2689.47 655.814C2684.36 650.709 2681.79 644.381 2681.79 637.082C2681.79 629.784 2684.36 623.456 2689.47 618.351C2694.57 613.245 2700.9 610.672 2708.2 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3454.19 869.627H3413.24V684.984H3454.19V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3434.07 610.672C3441.15 610.672 3447.25 613.266 3452.1 618.369L3452.57 618.851C3457.35 623.867 3459.76 630.021 3459.76 637.082C3459.76 644.372 3457.19 650.693 3452.1 655.795C3447.25 660.898 3441.15 663.492 3434.07 663.492C3426.77 663.492 3420.44 660.919 3415.34 655.814C3410.23 650.709 3407.66 644.381 3407.66 637.082C3407.66 629.784 3410.23 623.456 3415.34 618.351C3420.44 613.245 3426.77 610.672 3434.07 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2855.46 684.984C2855.61 684.983 2855.92 684.978 2856.13 684.978H2856.15L2857.22 684.984C2857.4 684.983 2857.71 684.978 2857.95 684.978L2858.99 684.983C2880.69 685.145 2898.92 690.402 2913.4 701.052C2928.28 711.846 2938.05 726.831 2942.73 745.767L2943.99 750.851H2901.14L2900.29 747.879C2900.27 747.814 2900.27 747.804 2900.25 747.762C2897.15 740.415 2892.52 734.416 2886.35 729.698L2886.33 729.687L2886.26 729.634C2878.65 723.683 2869.09 720.5 2857.31 720.301L2856.12 720.292C2840.34 720.296 2827.83 726.106 2818.19 737.764L2818.19 737.775L2818.13 737.844C2815.18 741.35 2812.67 745.335 2810.59 749.816C2807.89 757.473 2806.49 766.507 2806.49 776.989L2806.49 777.999L2806.5 778.969C2806.67 788.881 2808.1 797.487 2810.72 804.846C2812.77 809.3 2815.25 813.277 2818.15 816.791C2827.79 828.486 2840.33 834.313 2856.13 834.313L2857.28 834.304C2869.11 834.117 2878.7 831.032 2886.32 825.282C2892.41 820.687 2897.07 814.545 2900.3 806.734C2900.3 806.722 2900.3 806.709 2900.31 806.691L2901.18 803.752H2944.1L2942.71 808.914C2937.8 827.227 2927.92 842.045 2913.12 853.21L2913 853.296L2912.97 853.314C2898.33 864.1 2880.25 869.453 2858.97 869.618L2857.95 869.622C2857.77 869.622 2857.51 869.619 2857.38 869.618L2856.15 869.626H2856.13C2855.8 869.626 2855.44 869.621 2855.16 869.618L2854.38 869.622H2854.37C2837.19 869.622 2821.74 865.856 2808.1 858.229L2808.08 858.218L2808.01 858.173C2794.99 850.75 2784.7 840.333 2777.17 827.004L2777.16 826.992L2777.16 826.98L2776.47 825.731L2776.46 825.719L2776.45 825.707C2769.08 812.144 2765.35 796.437 2765.12 778.71V778.69L2765.11 777.011V776.989C2765.11 758.76 2768.85 742.675 2776.46 728.875L2776.47 728.871L2777.16 727.621L2777.16 727.61L2777.17 727.598C2784.7 714.269 2794.99 703.852 2808.01 696.429L2808.08 696.384L2808.1 696.373C2821.74 688.745 2837.19 684.978 2854.37 684.978H2854.39L2855.46 684.984Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3263.09 819.015L3339.01 610.672H3382.34L3284.63 869.627H3241.19L3143.47 610.672H3187.17L3263.09 819.015Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3579.56 684.979C3596.39 684.979 3611.44 688.653 3624.61 696.112C3637.73 703.546 3647.83 713.861 3654.86 727.003L3655.42 728.02L3655.42 728.03L3655.43 728.041C3661.37 739.04 3664.7 751.247 3665.48 764.596C3665.59 766.624 3665.65 768.679 3665.65 770.757V770.77L3665.65 771.792V771.802C3665.61 777.049 3665.29 782.557 3664.7 788.323L3664.32 792.002H3532.34C3533.17 799.022 3534.91 805.217 3537.53 810.632C3539.52 813.939 3541.84 816.954 3544.48 819.682C3554.3 829.378 3566 834.224 3579.83 834.311C3591.23 834.266 3600.38 831.308 3607.58 825.684C3613.44 821.051 3617.94 815.284 3621.12 808.332L3622.21 805.936H3664.77L3663.31 811.144C3658.45 828.441 3648.71 842.604 3634.18 853.528L3634.17 853.535L3634.16 853.543L3634.15 853.552C3619.49 864.349 3601.42 869.626 3580.2 869.626C3580.13 869.626 3580.03 869.625 3580.03 869.625C3580.01 869.625 3579.99 869.624 3579.97 869.624L3579.58 869.626H3579.56C3562.72 869.626 3547.46 865.839 3533.91 858.186L3533.9 858.182L3533.89 858.177L3533.89 858.174L3533.88 858.171C3520.57 850.532 3510.09 839.729 3502.47 825.857L3502.46 825.832L3502.38 825.696C3494.98 811.95 3491.22 796.246 3490.99 778.694V778.673L3490.98 777.012V776.991C3490.98 758.771 3494.63 742.606 3502.06 728.618C3509.37 714.866 3519.58 704.213 3532.67 696.762L3533.3 696.41C3546.87 688.754 3562.33 684.979 3579.56 684.979ZM3578.13 720.288C3565.7 720.288 3555.27 724.021 3546.6 731.409C3539.22 737.84 3534.53 746.522 3532.67 757.745H3624C3623.45 750.675 3621.47 744.669 3618.16 739.612L3618.12 739.557L3618.12 739.549C3614.12 733.288 3608.67 728.594 3601.67 725.433L3601.65 725.428L3601.61 725.408L3601.57 725.389L3601.54 725.375C3594.62 722.008 3586.84 720.288 3578.13 720.288Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3892.36 869.627H3853.2L3815.15 744.253L3777.11 869.627H3737.96L3680 684.98H3721.46L3757.71 817.294L3796.83 684.98H3835.72L3873.87 817.207L3909.44 684.98L3949.85 684.978L3892.36 869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3022.18 756.349L3084.15 684.984H3136.42L3049.47 776.988L3136.72 869.627H3085.46L3022.18 798.395V869.627H2981.23V610.676H3022.18V756.349Z`,fill:`#313543`})]})})}var Md=function(e){return e.Default=`default`,e.Lite=`lite`,e.Exchange=`exchange`,e.Analytics=`analytics`,e.Cloud=`cloud`,e.Streamable=`streamable`,e.Xmas=`xmas`,e.Plugin=`plugin`,e.Curator=`curator`,e}({}),Nd=`ClickView`,Pd={default:{imageUrls:{default:[`/images/backgrounds/bg-1.png`,`/images/backgrounds/bg-2.png`,`/images/backgrounds/bg-3.png`,`/images/backgrounds/bg-4.png`,`/images/backgrounds/bg-5.png`]},imageType:`background`,logoComponent:Dd,bannerSpacer:Td,productName:Nd},lite:{imageUrls:{default:[`/images/backgrounds/products/lite-topic-1-v2.png`,`/images/backgrounds/products/lite-topic-2-v2.png`,`/images/backgrounds/products/lite-topic-3-v2.png`,`/images/backgrounds/products/lite-discover-1-v2.png`,`/images/backgrounds/products/lite-discover-2-v2.png`,`/images/backgrounds/products/lite-student-1-v2.png`,`/images/backgrounds/products/lite-student-2-v2.png`,`/images/backgrounds/products/lite-event-1-v2.png`]},imageType:`image`,logoComponent:Dd,backgroundColor:`#38A2E8`,bannerSpacer:Td,productName:Nd},exchange:{imageUrls:{default:[`/images/backgrounds/products/exchange-1-v2.png`]},imageType:`image`,logoComponent:Dd,backgroundColor:`#F8981D`,bannerSpacer:Td,productName:Nd},analytics:{imageUrls:{default:[`/images/backgrounds/products/analytics-1-v4.png`]},imageType:`image`,logoComponent:Dd,backgroundColor:`#4C68DB`,bannerSpacer:Td,productName:Nd},cloud:{imageUrls:{default:[`/images/backgrounds/products/cloud-1-v2.png`]},imageType:`image`,logoComponent:Dd,backgroundColor:`#40C2BB`,bannerSpacer:Td,productName:Nd},streamable:{imageUrls:{default:[`/images/backgrounds/products/streamable-1-v2.png`,`/images/backgrounds/products/streamable-2-v2.png`]},imageType:`image`,logoComponent:jd,backgroundColor:`#D6F0FC`,bannerSpacer:Td,productName:`Streamable Learning`},xmas:{imageUrls:{default:[`/images/backgrounds/xmas/2026-promo1-bg.png`,`/images/backgrounds/xmas/2026-promo2-bg.png`,`/images/backgrounds/xmas/2026-promo3-bg.png`,`/images/backgrounds/xmas/2026-promo4-bg.png`,`/images/backgrounds/xmas/2026-promo5-bg.png`,`/images/backgrounds/xmas/2026-promo6-bg.png`,`/images/backgrounds/xmas/2026-promo7-bg.png`]},imageType:`background`,logoComponent:kd,bannerSpacer:Td,productName:Nd},plugin:{imageUrls:{default:[]},imageType:`none`,logoComponent:Dd,bannerSpacer:Td,banner:`plugin`,productName:Nd},curator:{imageUrls:{default:[`/images/backgrounds/products/curator-1-v2.png`]},imageType:`image`,backgroundColor:`#49c5b1`,logoComponent:Dd,bannerSpacer:Td,productName:Nd,title:`Thank you for all the years of service, ClickView Central!`}},Fd={getDefinition(e){return Pd[e]||Pd[Md.Default]}},Id={success:e=>{window.location.href=e.data.redirectUrl},"continue-login":(e,t)=>{let{returnUrl:n}=t;yd.post(`/ajax/login/continue`,{returnUrl:n}).then(e=>Ld(e,t)).catch(e=>{throw e})}};function Ld(e,t,n){let r=Id[e.step];if(r){r(e,t);return}if(!NT[e.step])throw Error(`Unknown step '${e.step}'`);t.navigate({step:e.step,...n,...e.data})}function Rd(e){return(0,Q.jsxs)(`div`,{className:e.className,children:[`Don't have an account?\xA0`,(0,Q.jsx)(`a`,{className:`info-link btn-link`,href:e.signInUrl,children:`Create account`})]})}var zd={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:zd.getMemoryStorage()},getMemoryStorage(){let e=new Map;return{setItem(t,n){e.set(t,n)},getItem(t){return e.get(t)},removeItem(t){e.delete(t)},clear(){e.clear()},get length(){return e.size},key(t){return Array.from(e.values())[t]}}}},Bd=function(e){return e.LocalStorage=`localStorage`,e.SessionStorage=`sessionStorage`,e.MemoryStorage=`memoryStorage`,e}({}),Vd=class{constructor(e){if(this.cachePrefix=`_cv:`,this.expireTime=3600,this.type=e.type,this.hasSupport=this.hasBrowserSupport(),this.hasSupport)try{this.type===Bd.MemoryStorage?this.storage=zd.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(e){if(!this.hasSupport)return;let t=this.storage.getItem(e);try{return JSON.parse(t)}catch{return t}}set(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),typeof t==`string`?(this.storage.setItem(e,t),!0):(this.storage.setItem(e,JSON.stringify(t)),!0)}catch{return!1}}remove(e){if(this.hasSupport)return this.storage.removeItem(e)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(e,t,n=this.expireTime){this.cacheClean();let r={time:this.getCurrentTime()+n*1e3,data:t!=null&&t};return this.set(`${this.cachePrefix}${e}`,r)}cacheGet(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}cacheExists(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),!1):!0:!1}cacheRemove(e){return this.remove(`${this.cachePrefix}${e}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let e=0;e<this.storage.length;e++){let t=this.storage.key(e);if(t.indexOf(this.cachePrefix)===0){let e=this.get(t);e&&e.time&&this.isExpired(e)&&this.remove(t)}}}isExpired(e){return e.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type===Bd.MemoryStorage)return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}},Hd=class extends Vd{static get Instance(){return this.instance||=new this({type:Bd.LocalStorage})}},Ud=class extends Vd{static get Instance(){return this.instance||=new this({type:Bd.SessionStorage})}},Wd=class extends Vd{static get Instance(){return this.instance||=new this({type:Bd.MemoryStorage})}},Gd=Hd.Instance,Kd=Ud.Instance,qd=Wd.Instance,Jd=`r`,Yd=`cv:r`,Xd=`cv:r:e`,Zd=`referrer`,Qd=`cv:originalReferrer`,$d=28800,ef=[`internalReferrer`],tf={getDecodedAttributionData(){let e=Gd.cacheGet(Yd);return e&&Object.keys(e).length>0?e:nf()?.decoded},getEncodedAttributionData(){let e=Gd.cacheGet(Xd);return e?.length?e:nf().encoded},getProfileId(){return tf.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&lf(cf(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!af(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function nf(){let e=Gd.cacheGet(Yd),t=Gd.cacheGet(Xd);return af(e)?{encoded:t,decoded:e}:rf()}function rf(){Gd.cacheRemove(Yd),Gd.cacheRemove(Xd);let e=sf(),t=tf.decodeRValue(e);if(t)return lf(e,t),{decoded:t,encoded:e};let n={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:of()},r=cf(n);return lf(r,n),{decoded:n,encoded:r}}function af(e){return!e||typeof e!=`object`||Object.keys(e).length<ef.length?!1:ef.every(t=>typeof e[t]==`string`)}function of(){let e=Gd.cacheGet(Qd);if(e&&typeof e==`string`)return e;let t=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),n=e.has(Zd)&&e.get(Zd);e.has(Zd)&&e.get(Zd)&&(t=n)}return t&&Gd.cacheSet(Qd,t,$d),t}function sf(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(Jd))return e.get(Jd)}function cf(e){if(af(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function lf(e,t){try{Gd.cacheSet(Yd,t,$d),Gd.cacheSet(Xd,e,$d)}catch{console.error(`Could not store attribution data in session storage`)}}var uf=28800,df=`cv:utmparams`,ff=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],pf=ff.reduce((e,[t])=>({...e,[t]:t}),{}),mf={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return ff.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),hf(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{pf[n]&&(t[n]=e[n])}),hf(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=mf.getUtmParameters();return t?(ff.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function hf(e){if(Object.keys(e).length)return Gd.cacheSet(df,e,uf),e;let t=Gd.cacheGet(df);return t&&typeof t==`object`&&Object.keys(t).length?t:null}function gf(e){function t(t){yd.post(`/ajax/login/ip-auth`,{id:t.id,returnUrl:e.returnUrl}).then(t=>Ld(t,e)).catch(e=>{console.warn(e)})}function n(e){window.location.href=e.url}function r(){e.navigate({step:e.backStep})}function i(){if(!window.URLSearchParams)return e.signUpUrl;let t=mf.getURLSearchParams()||new URLSearchParams,n=tf.getEncodedAttributionData();return n&&t.set(`r`,n),e.signUpUrl+`?`+t.toString()}return{onClickIpAuthGuest:t,onClickProvider:n,onClickBack:e.backStep?r:null,getSignInUrl:i}}var _f={globalIdpButton:`_globalIdpButton_gzfrv_1`,globalIdpImage:`_globalIdpImage_gzfrv_5`};function vf(e){let{idp:t,onClick:n,backgroundColour:r=`F8981D`,foregroundColour:i=`FFF`,last:a,isGlobalIdp:o}=e,s=a?``:`mb-3`,c={backgroundColor:`#${t.backgroundColour||r}`,color:`#${t.foregroundColour||i}`},l={},u=o?`btn btn-lg btn-outline-dark w-100 ${s} ${_f.globalIdpButton}`:`btn btn-lg w-100 ${s}`,d=o?l:c,f=o?`Continue with ${t.name}`:t.name;return(0,Q.jsxs)(`button`,{className:u,style:d,onClick:()=>n(t),children:[o&&t.logoUrl&&(0,Q.jsx)(`img`,{src:t.logoUrl,className:_f.globalIdpImage,alt:`${t.name} logo`}),f]})}var yf={divider:`_divider_1q6pq_1`};function bf(e){let t=e.idps?.filter(e=>!!e.visible)||[];if(!t.length)return(0,Q.jsx)(Q.Fragment,{});function n(t){let n=window.location.pathname+window.location.search,r=`/challenge?idp=${t.id}&redirectUrl=`+encodeURIComponent(n);`attribution`in e&&(r+=`&attribution=`+encodeURIComponent(e.attribution)),window.location.href=r}return(0,Q.jsxs)(`div`,{className:`${e.className?e.className:``}`,children:[(0,Q.jsx)(`div`,{className:`my-4 border-bottom position-relative ${yf.divider}`}),t.map((t,r)=>(0,Q.jsx)(vf,{idp:t,onClick:`onClick`in e?e.onClick:n,attribution:`attribution`in e?e.attribution:null,isGlobalIdp:!0},r))]})}function xf(e){return(0,Q.jsx)(`span`,{id:`${e.name}Error`,className:`${e.className} invalid-feedback d-block`,role:`status`,children:e.children})}function Sf(e){let[t,n]=Z.useState(e.username||``),[r,i]=Z.useState(!1),[a,o]=Z.useState(``),s=Fd.getDefinition(e?.theme),c=s?.productName?`Sign in to ${s.productName}`:`Sign in`,l=!!e.globalIdps?.length,u=e.signUpUrl&&e.showSignUp,{onClickProvider:d,onClickBack:f,getSignInUrl:p}=gf(e);function m(n){if(n.preventDefault(),!t){o(`Please provide a username`);return}i(!0),yd.post(`/ajax/login/check-user`,{username:t,returnUrl:e.returnUrl}).then(n=>Ld(n,e,{username:t})).catch(e=>{i(!1),o(e.userMessage||`Something went wrong`)})}function h(e){n(e.target.value.trim()),e.target.value&&o(``)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:c,onClickBack:f}),(0,Q.jsxs)(`form`,{onSubmit:m,children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(cd,{name:`username`,type:`username`,isError:!!a,value:t,onChange:h,"aria-invalid":!!a,"aria-errormessage":`usernameError`}),!!a&&(0,Q.jsx)(xf,{name:`username`,children:a})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:r,children:`Continue`})]}),u&&(0,Q.jsx)(Rd,{className:`mt-4`,signInUrl:p()}),l&&(0,Q.jsx)(bf,{idps:e.globalIdps.map(e=>({...e,visible:!0})),onClick:d})]})}function Cf(e){let t=Fd.getDefinition(e?.theme),n=t?.productName?`Sign in to ${t.productName}`:`Sign in`,r=!!e.globalIdps?.length,i=e.signUpUrl&&e.showSignUp,{onClickIpAuthGuest:a,onClickProvider:o,onClickBack:s,getSignInUrl:c}=gf(e);function l(){e.navigate({step:`username-input`,backStep:`username`})}function u(){e.ipAuthGuests?.length===1?a(e.ipAuthGuests[0]):e.navigate({step:`guest-selection`,backStep:`username`})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:n,onClickBack:s}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100 mb-3`,showSpinner:!1,onClick:l,children:`Sign in with username or email`}),(0,Q.jsx)(nd,{className:`btn btn-outline-dark btn-lg w-100`,showSpinner:!1,onClick:u,children:`Sign in as guest`}),i&&(0,Q.jsx)(Rd,{className:`mt-4`,signInUrl:c()}),r&&(0,Q.jsx)(bf,{idps:e.globalIdps.map(e=>({...e,visible:!0})),onClick:o})]})}function wf(){return(0,Q.jsx)(`div`,{className:`svg-container`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z`})})})}var Tf={showIconOnHover:`_showIconOnHover_1ebbv_1`};function Ef({icon:e}){return(0,Q.jsx)(Q.Fragment,{children:e&&(0,Q.jsx)(`img`,{alt:`icon`,className:`w-100 h-100 border rounded-circle`,src:e})})}function Df(e){let{text:t,onClick:n,className:r,icon:i,iconColor:a=`dark`,showIconOnHover:o=!0}=e,s={},c;return c=typeof i==`function`?i:()=>(0,Q.jsx)(Ef,{icon:i}),(0,Q.jsx)(`button`,{className:ed(`btn btn-outline-dark btn-lg w-100 border-secondary`,o&&Tf.showIconOnHover,r),onClick:n,style:s,children:(0,Q.jsxs)(`div`,{className:`py-1 d-flex align-items-center`,children:[c&&(0,Q.jsx)(`span`,{className:`icon-circle rounded-circle text-white me-2 bg-${a} d-flex justify-content-center align-items-center`,children:(0,Q.jsx)(c,{})}),(0,Q.jsx)(`span`,{className:`h6 mb-0 w-75 text-start`,children:t}),(0,Q.jsx)(`span`,{className:`ms-auto`,children:(0,Q.jsx)(wf,{})})]})})}function Of(){return(0,Q.jsx)(`div`,{className:`svg-container lg`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 18 18`,className:`align-top`,children:(0,Q.jsx)(`path`,{d:`M12.648 14.798a.914.914 0 0 1-.908-.907c0-.497.411-.908.908-.908.496 0 .907.411.907.908a.914.914 0 0 1-.907.907zm0-1.044a.135.135 0 0 0-.137.137c0 .086.051.137.137.137.085 0 .137-.052.137-.137a.135.135 0 0 0-.137-.137zm0-.086a.38.38 0 0 1-.377-.376V8.805L8.81 6.94c-.187-.103-.256-.342-.153-.514.103-.188.342-.256.513-.154l3.665 1.97c.12.068.205.205.205.342v4.709a.384.384 0 0 1-.393.377zM8.966 10.62a.606.606 0 0 1-.171-.034l-7.072-3.39a.4.4 0 0 1-.223-.36c0-.154.086-.291.223-.342l7.14-3.254a.362.362 0 0 1 .325 0l7.09 3.254a.394.394 0 0 1 .222.342.357.357 0 0 1-.223.343l-7.14 3.407a.606.606 0 0 1-.171.034zM2.801 6.853l6.165 2.962 6.216-2.962-6.165-2.825zm6.113 6.096c-3.561 0-4.983-2.106-5.034-2.209a.486.486 0 0 1-.068-.205V8.138a.38.38 0 0 1 .376-.377.38.38 0 0 1 .377.377v2.277c.291.36 1.558 1.764 4.332 1.764 2.74 0 4.161-1.405 4.504-1.781V8.274a.38.38 0 0 1 .377-.376.38.38 0 0 1 .376.376v2.26a.429.429 0 0 1-.068.223c-.035.103-1.644 2.192-5.172 2.192z`,style:{strokeWidth:.0275199}})})})}var kf={buildAvatarUrl(e,t){if(e)return t.size?`${e}${e.includes(`?`)?`&`:`?`}size=${t.size}`:e}};function Af(e){return(0,Q.jsx)(`div`,{className:`d-flex flex-column gap-3`,children:e.ipAuthGuests.map(t=>(0,Q.jsx)(Df,{onClick:()=>{e.onClickGuest(t)},text:t.customer.name,icon:kf.buildAvatarUrl(t.customer.logoUrl,{size:`small`})||Of},t.id))})}function jf(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z`})})}var Mf={clearInput:`_clearInput_1l19p_1`,clearableInput:`_clearableInput_1l19p_8`},Nf=Z.forwardRef((e,t)=>{let{onClickClear:n,showClearButton:r,clearClassName:i,...a}=e;return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`input`,{...a,ref:t,className:`${e.className} ${Mf.clearableInput}`}),(!!e.value||r)&&(0,Q.jsx)(`span`,{className:`${Mf.clearInput} position-absolute cursor-pointer text-secondary ${i||``}`,role:`button`,onClick:n,onKeyDown:e=>e.key===`Enter`&&n(),tabIndex:0,children:(0,Q.jsx)(`div`,{className:`d-inline-block svg-container md`,children:(0,Q.jsx)(jf,{})})})]})});function Pf(e){let[t,n]=Z.useState(0),r=Z.useRef(null),[i,a]=Z.useState(!!e.hideInitially);function o(){r.current&&r.current.children[t-1]?.scrollIntoView({block:`center`})}function s(r){if(e.hideOnEnter&&a(!1),r.code===`ArrowDown`){r.stopPropagation(),r.preventDefault();let i=t+1;i>e.itemCount&&(i=1),n(i),o();return}if(r.code===`ArrowUp`){r.stopPropagation(),r.preventDefault();let i=t-1;i<=0&&(i=e.itemCount),n(i),o();return}if(r.code===`Enter`&&t>0){r.stopPropagation(),r.preventDefault(),e.onSelected(t-1),e.hideOnEnter&&a(!0);return}n(0)}function c(){e.hideOnBlur&&a(!1)}function l(){e.hideOnBlur&&a(!0)}return{selectedIndex:t,onKeyDown:s,containerRef:r,hide:i,onFocus:c,onBlur:l}}var Ff=Z.forwardRef((e,t)=>{function n(t){if(e.onKeyDown)return e.onKeyDown(t);if(t.key===` `&&t.preventDefault(),t.key===`Enter`||t.key===` `){if(e.disabled||!e.onClick)return;r(t)}}function r(...t){if(!(e.disabled||!e.onClick))return e.onClick(...t)}return(0,Q.jsx)(`div`,{...e,ref:t,role:`button`,tabIndex:e.tabIndex||0,className:`${e.className?e.className:``} ${e.disabled?``:`cursor-pointer`}`,onKeyDown:n,onClick:r,style:e.style?e.style:{},children:e.children})}),If={inputFocused:`_inputFocused_bwtre_1`,dropdown:`_dropdown_bwtre_4`,suggestionContainer:`_suggestionContainer_bwtre_7`,suggestionItem:`_suggestionItem_bwtre_16`,large:`_large_bwtre_20`,input:`_input_bwtre_1`,selected:`_selected_bwtre_39`,clearInput:`_clearInput_bwtre_43`,clear:`_clear_bwtre_43`};function Lf(e){let{items:t,getName:n,onItemClick:r,selectedIndex:i}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsx)(Ff,{className:`${If.suggestionItem} ${i-1===t?If.selected:``}`,onKeyDown:t=>t.key===`Enter`&&r(e),onMouseDown:()=>r(e),onClick:()=>r(e),children:n(e)},t))})}function Rf(e){let t=Z.useRef(null),[n,r]=Z.useState(``),[i,a]=Z.useState([]),{selectedIndex:o,onKeyDown:s,containerRef:c,hide:l,onBlur:u,onFocus:d}=Pf({onSelected:f,itemCount:e.cantFindText?e.items.length+1:e.items.length,hideOnBlur:!0,hideInitially:!0,hideOnEnter:!0});function f(t){if(t===i.length){e.onCantFind();return}let n=i[t];n&&v(n)}let p=!!e.item,m=e.cantFindText?i?.length+1:i?.length;Z.useEffect(()=>{if(!p){if(!n.length){_();return}if(!p&&n.length>1){_(n);return}}},[n,p]);function h(t){e.item&&e.clearData(),t!==n&&r(t)}function g(){h(``),t.current.focus()}function _(t){if(!t){a(e.items);return}a(e.items.filter(n=>e.getName(n).toLowerCase().includes(t.toLowerCase())))}function v(t){r(e.getName(t)),e.onSelect(t),a(e.items)}let y=m&&!e.disabled&&!l,b=`form-select ${y?If.inputFocused:If.input} ${If.clearInput} cursor-pointer`,x=`form-group position-relative`;return e.size===`lg`&&(b+=` form-select-lg`,x+=` ${If.large}`),(0,Q.jsxs)(`div`,{className:x,children:[(0,Q.jsx)(Nf,{id:e.id,value:n,onChange:e=>h(e.currentTarget.value),ref:t,className:b,type:`text`,autoComplete:`off`,placeholder:e.placeholder,disabled:e.disabled,onClickClear:g,onKeyDown:s,onFocus:d,onBlur:u,clearClassName:If.clear}),(0,Q.jsx)(`div`,{className:`position-absolute z-1 w-100 ${If.dropdown} ${l?`d-none`:``}`,children:(0,Q.jsxs)(`div`,{className:`${If.suggestionContainer} ${y?``:`d-none`}`,ref:c,children:[m&&(0,Q.jsx)(Lf,{items:i,onItemClick:v,getName:e.getName,selectedIndex:o}),e.cantFindText&&(0,Q.jsx)(`div`,{className:`info-link ${If.suggestionItem} ${o===i.length+1?If.selected:``}`,onKeyDown:t=>t.key===`Enter`&&e.onCantFind(),onMouseDown:e.onCantFind,onClick:e.onCantFind,children:e.cantFindText})]})})]})}function zf(e){let[t,n]=Z.useState(null);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`mb-3`,children:(0,Q.jsx)(Rf,{id:`guest`,item:t,items:e.ipAuthGuests,onSelect:e=>n(e),getName:e=>e.customer.name,clearData:()=>n(null),placeholder:`Select a school`,size:`lg`})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100`,disabled:!t,onClick:()=>{e.onClickGuest(t)},children:`Continue`})]})}var Bf=4;function Vf(e){return(0,Q.jsxs)(`div`,{className:ed(e.className),children:[(0,Q.jsx)(`p`,{className:`fw-medium`,children:`Which school would you like to sign in to as a guest?`}),e.ipAuthGuests.length>Bf?(0,Q.jsx)(zf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest}):(0,Q.jsx)(Af,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest})]})}function Hf(e){let{onClickIpAuthGuest:t,onClickBack:n}=gf(e);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Sign in as guest`,onClickBack:n}),(0,Q.jsx)(Vf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:t})]})}var Uf={revealPassword:`_revealPassword_11wqf_1`,passwordInput:`_passwordInput_11wqf_10`,passwordContainer:`_passwordContainer_11wqf_17`};function Wf(e){return e||`Password`}function Gf(e){let[t,n]=Z.useState(`password`),r=Z.useRef(null);function i(e){e.preventDefault(),n(t===`password`?`text`:`password`),r.current?.focus()}let a=`position-relative form-control form-control-lg ${Uf.passwordContainer}`;return e.hasError&&(a+=` ${e.hasError?`is-invalid`:``}`),e.className&&(a+=` ${e.className}`),(0,Q.jsxs)(`div`,{children:[!e.hideLabel&&(0,Q.jsx)(`label`,{htmlFor:e.id||e.name,children:Wf(e.label)}),(0,Q.jsxs)(`div`,{className:a,children:[(0,Q.jsx)(`input`,{className:`${Uf.passwordInput} border-0 w-100 h-100 outline-none rounded py-0 ps-0`,type:t,"aria-label":e.placeholder,placeholder:e.placeholder,autoFocus:e.autoFocus,value:e.value,onChange:e.onChange,name:e.name,autoComplete:e.autoComplete,ref:r,id:e.id||e.name}),(0,Q.jsx)(Ff,{className:`svg-container cursor-pointer ${Uf.revealPassword}`,onClick:i,children:t===`password`?(0,Q.jsx)(Yu,{}):(0,Q.jsx)(Ju,{})})]})]})}function Kf(e){let{returnUrl:t,navigate:n}=e,[r,i]=Z.useState(e.username),[a,o]=Z.useState(``),[s,c]=Z.useState(!1),[l,u]=Z.useState(``),d=!!e.username;function f(e){i(e.target.value.trim()),u(``)}function p(e){o(e.target.value),u(``)}function m(t){if(e.backStep){n({step:e.backStep,backStep:null});return}n({step:`username`,clearUsername:t})}function h(){n({step:`forgot-password`,backStep:`password`,username:r})}function g(n){if(n.preventDefault(),!r){u(`Please provide a username`);return}if(!a){u(`Please provide a password`);return}if(a.trim().length!==a.length){u(`Your password cannot start or end with a blank space`);return}c(!0),yd.post(`/ajax/login/password`,{username:r,password:a,returnUrl:t}).then(t=>Ld(t,e)).catch(e=>{c(!1),u(e.userMessage||`Something went wrong`)})}let _=Fd.getDefinition(e?.theme),v=_?.productName?`Sign in to ${_.productName}`:`Sign in`;return(0,Q.jsxs)(`form`,{onSubmit:g,children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:()=>m(!1),title:v}),(0,Q.jsx)(`div`,{className:`mb-3 position-relative`,children:(0,Q.jsx)(cd,{name:`username`,type:`username`,isError:!!l,value:r,disabled:d,onChange:f,hideCloseButton:!d,onClickClose:()=>m(!0)})}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(Gf,{placeholder:`Enter your password`,autoFocus:d,value:a,onChange:p,name:`current-password`,autoComplete:`current-password`,hasError:!!l,"aria-invalid":!!l,"aria-errormessage":`current-passwordError`}),!!l&&(0,Q.jsx)(xf,{name:`current-passwordError`,children:l})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:s,children:`Sign in`}),(0,Q.jsx)(`div`,{className:`text-start`,children:(0,Q.jsx)(`button`,{className:`btn btn-link text-info ps-0`,onClick:h,children:`Forgot your password?`})})]})}var qf=[`38A2E8`,`7A76E8`,`40BCC3`,`F7847B`];function Jf(e){let{navigate:t,idps:n,showPasswordLogin:r}=e,[i,a]=Z.useState(null);function o(e){window.location.href=e}function s(){t({step:`username`})}function c(){t({step:`password`,backStep:`select-idp`})}function l(e){o(e.url)}function u(){i&&o(i.url)}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{onClickBack:s,theme:e.theme,title:`To sign in, please select an option from the list below`}),n.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Rf,{id:`idp`,item:i,items:n,onSelect:a,getName:e=>e.name,clearData:()=>a(null),placeholder:`Select a school`,size:`lg`}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100`,disabled:!i,onClick:u,children:`Continue`})]}):n.map((e,t)=>(0,Q.jsx)(vf,{onClick:l,idp:{...e,visible:!0},backgroundColour:qf[t%qf.length],isGlobalIdp:!e.id.startsWith(`online:`)},t)),r&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 mt-2 no-sso-link`,onClick:c,children:`My school doesn't use Single Sign On`})]})}function Yf(e,t){Z.useEffect(()=>{if(e)return t.dispatch({type:`setBanner`,data:{bannerType:e}}),()=>{t.dispatch({type:`setBanner`,data:{bannerType:null}})}},[e])}var Xf=/^(([^<>()\[\]\\.,;:\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,}))$/,Zf=/^[\s\w,.?&;:@+'"!-=\\\/]+$/im,Qf=250,$f={isEmail(e){return Xf.test(e)},isValidLength(e){if(!e)return!1;let t=e.trim();return t.length>0&&t.length<=Qf},exceedsMaxLength(e){return e?e.trim().length>Qf:!1},containsValidText(e){return e?Zf.test(e):!0},isPasswordValid(e,t,n){return e.length?n&&!t.length?[!1,`Password confirmation is required.`]:n&&e!==t?[!1,`Password confirmation does not match.`]:e.trim().length===e.length?[!0]:[!1,`Your password cannot start or end with a blank space`]:[!1,`Password is required.`]}};function ep(e){let{navigate:t,backStep:n}=e,[r,i]=Z.useState(e.email||``),[a,o]=Z.useState(!1),[s,c]=Z.useState(``);Yf(`email-in-use`,e);let{productName:l}=Fd.getDefinition(e.theme);function u(){t({step:n||`username`})}function d(){t({step:`verify-email-skip-reason`,backStep:`verify-email`})}function f(e){i(e.target.value)}function p(t){if(t.preventDefault(),!r){c(`Please provide an email`);return}if(!$f.isEmail(r)){c(`The email address provided is invalid`);return}o(!0),yd.post(`/ajax/login/send-verify-email-code`,{email:r}).then(t=>Ld(t,e,{email:r})).catch(e=>{o(!1),c(e.userMessage||`Something went wrong`)})}return(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsxs)(`form`,{onSubmit:p,children:[(0,Q.jsx)(td,{onClickBack:u,theme:e.theme,title:`Verify your email`,className:{description:`mt-0 mb-0`},children:(0,Q.jsxs)(`span`,{className:`d-inline-block`,children:[`Have peace of mind that your account is secure and you’re receiving the best experience out of ${l}.`,`\xA0`,(0,Q.jsx)(`a`,{className:`text-info cursor-pointer`,target:`_blank`,href:ld.verifyEmail,children:`Learn more.`})]})}),(0,Q.jsx)(cd,{isError:!!s,type:`email`,value:r,onChange:f,name:`email`,ariaInvalid:!!s,ariaErrorMessage:`emailError`}),!!s&&(0,Q.jsx)(xf,{name:`email`,children:s}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100 mt-4`,type:`submit`,showSpinner:a,children:`Verify`}),e.canSkip&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info mt-2 ps-0`,onClick:d,children:`Skip for now`})]})})}var tp={input:`_input_1vtt8_1`},np=/^[0-9]$/,rp=/^\d+$/,ip=8,ap=function(e){return e.One=`verify-1`,e.Two=`verify-2`,e.Three=`verify-3`,e.Four=`verify-4`,e.Five=`verify-5`,e.Six=`verify-6`,e}(ap||{});function op(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(``),[a,o]=Z.useState(``),[s,c]=Z.useState(``),[l,u]=Z.useState(``),[d,f]=Z.useState(``),p=Z.useRef(null),m=Z.useRef(null),h=Z.useRef(null),g=Z.useRef(null),_=Z.useRef(null),v=Z.useRef(null);Z.useEffect(()=>{let n=(t||`X`)+(r||`X`)+(a||`X`)+(s||`X`)+(l||`X`)+(d||`X`),i=n.length===6&&n.indexOf(`X`)===-1;e.onChange(n,i)},[t,r,a,s,l,d]);let y={[ap.One]:{getNext:()=>y[ap.Two],getPrevious:()=>null,value:t,setState:n,focus:()=>p.current.focus()},[ap.Two]:{getNext:()=>y[ap.Three],getPrevious:()=>y[ap.One],value:r,setState:i,focus:()=>m.current.focus()},[ap.Three]:{getNext:()=>y[ap.Four],getPrevious:()=>y[ap.Two],value:a,setState:o,focus:()=>h.current.focus()},[ap.Four]:{getNext:()=>y[ap.Five],getPrevious:()=>y[ap.Three],value:s,setState:c,focus:()=>g.current.focus()},[ap.Five]:{getNext:()=>y[ap.Six],getPrevious:()=>y[ap.Four],value:l,setState:u,focus:()=>_.current.focus()},[ap.Six]:{getNext:()=>null,getPrevious:()=>y[ap.Five],value:d,setState:f,focus:()=>v.current.focus()}};function b(e,t){if(!np.test(e.key)&&e.keyCode!==ip)return;let n=y[t];if(e.keyCode===ip){n.setState(``),n.getPrevious()?.focus();return}if(e.currentTarget.selectionStart>0){let t=n.getNext();if(!t)return;t.setState(e.key),t.getNext()?t.getNext().focus():t.focus();return}n.setState(e.key),n.getNext()?.focus()}function x(e,t){e.preventDefault();let n=e.clipboardData.getData(`text`).trim();if(!rp.test(n))return;let r=n.split(``);if(r.length===6){let e=y[ap.One];for(let t of r)e.setState(t),e=e.getNext(),e?.focus();return}let i=y[t];i.value&&i.getNext()&&(i=i.getNext());do i.focus(),i.setState(r.shift()),i=i.getNext();while(r.length&&i)}let S={className:`form-control mx-1 text-center form-control-lg p-3 fs-4 ${tp.input} ${e.hasError?`is-invalid`:``}`,autoCorrect:`off`,inputMode:`numeric`,pattern:`[0-9]*`,autoCapitalize:`off`,autoComplete:`off`,"aria-invalid":!!e.hasError};return(0,Q.jsxs)(`fieldset`,{className:`d-flex justify-content-between mx-n1`,"aria-describedby":`verificationCodeError`,children:[(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.One),onKeyDown:e=>b(e,ap.One),value:t,ref:p,onChange:()=>{},autoComplete:`off`,...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Two),onKeyDown:e=>b(e,ap.Two),value:r,ref:m,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Three),onKeyDown:e=>b(e,ap.Three),value:a,ref:h,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Four),onKeyDown:e=>b(e,ap.Four),value:s,ref:g,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Five),onKeyDown:e=>b(e,ap.Five),value:l,ref:_,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Six),onKeyDown:e=>b(e,ap.Six),value:d,ref:v,onChange:()=>{},...S})]})}function sp(e){let{theme:t,title:n,description:r,onBack:i,onResend:a,onSkip:o,submit:s,canSkip:c}=e,[l,u]=Z.useState(``),[d,f]=Z.useState(!1),[p,m]=Z.useState(``),[h,g]=Z.useState(!1);Z.useEffect(()=>{h&&v()},[h]);function _(e,t){u(``),m(e),g(t)}function v(e){if(e?.preventDefault(),!h){u(`Incomplete code`);return}f(!0),s(p).catch(e=>{f(!1),u(e.userMessage||`Something went wrong`)})}return(0,Q.jsxs)(`form`,{onSubmit:v,children:[(0,Q.jsx)(td,{onClickBack:i,theme:t,title:n,children:r}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(op,{onChange:_,hasError:!!l}),!!l&&(0,Q.jsx)(xf,{name:`verificationCode`,children:l})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:d,disabled:!h,children:`Continue`}),(0,Q.jsxs)(`div`,{className:`d-flex justify-content-between mt-3`,children:[o&&c&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 flex-shrink-0`,onClick:o,children:`Skip for now`}),a&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 flex-shrink-0`,onClick:a,children:`Resend code`})]})]})}function cp(e){let{navigate:t,email:n,theme:r}=e;Yf(`check-email`,e);function i(){t({step:`verify-email`})}function a(){t({step:`verify-email-skip-reason`,backStep:`verify-email-check-code`})}function o(){t({step:`verify-email`,email:n})}function s(t){return yd.post(`/ajax/login/verify-email`,{code:t,email:n}).then(n=>Ld(n,e,{code:t}))}return(0,Q.jsx)(sp,{navigate:t,theme:r,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`Please enter the `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code we've sent to `,(0,Q.jsx)(`strong`,{children:n})]}),onBack:i,onResend:o,submit:s,onSkip:a,...e})}function lp(){return(0,Q.jsx)(`img`,{className:`img-fluid mx-auto d-block mt-4`,alt:`Success`,src:`/images/success-tick-v2.png`,style:{maxWidth:`304px`}})}function up(e){let{returnUrl:t}=e;return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Your email has been verified`,className:{title:`text-center`}}),(0,Q.jsx)(`div`,{className:`my-5`,children:(0,Q.jsx)(lp,{})}),t&&(0,Q.jsx)(`a`,{role:`button`,href:t,className:`btn btn-dark btn-lg w-100`,children:`Continue`})]})}function dp(e){let{navigate:t,backStep:n}=e,[r,i]=Z.useState(e.email||``),[a,o]=Z.useState(!1),[s,c]=Z.useState(``);function l(e){i(e.target.value.trim())}function u(t){if(t.preventDefault(),!r){c(`Please provide an email address`);return}if(!$f.isEmail(r)){c(`The email address provided is invalid`);return}o(!0),yd.post(`/ajax/login/send-recovery-code`,{email:r}).then(t=>Ld(t,e,{email:r})).catch(e=>{o(!1),c(e.userMessage||`Something went wrong`)})}function d(){t({step:n})}return(0,Q.jsxs)(`form`,{onSubmit:u,children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:n&&d,title:`Forgot your password?`,children:`Enter your email below to receive password reset instructions`}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(cd,{name:`email`,value:r,type:`email`,onChange:l,isError:!!s,"aria-invalid":!!s,"aria-errormessage":`emailError`}),!!s&&(0,Q.jsx)(xf,{name:`email`,children:s})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:a,children:`Send`}),(0,Q.jsx)(`p`,{className:`text-start mt-3`,children:`Single Sign On customers should contact their network administrator to reset their password.`})]})}function fp(e){let{navigate:t,email:n,theme:r}=e;function i(){t({step:`forgot-password`})}function a(){t({step:`forgot-password`,email:n})}function o(t){return yd.post(`/ajax/login/check-recovery-code`,{code:t,email:n}).then(n=>Ld(n,e,{code:t}))}return(0,Q.jsx)(sp,{navigate:t,theme:r,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`If we can reset your password, we've sent a `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code to the email address provided`]}),submit:o,onBack:i,onResend:a,...e})}function pp(e){let{error:t,spinner:n,onClickContinue:r}=e;return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme}),(0,Q.jsx)(lp,{}),(0,Q.jsx)(`p`,{className:`text-center mb-4 mt-2`,children:`Your password has been updated`}),t&&(0,Q.jsx)(`p`,{className:`text-danger text-center mb-4 mt-2`,children:t}),(0,Q.jsx)(nd,{className:`btn btn-lg w-100 btn-dark`,showSpinner:n,onClick:r,children:`Continue`})]})}function mp(e){let{submit:t}=e,[n,r]=Z.useState(``),[i,a]=Z.useState(``),[o,s]=Z.useState(``),[c,l]=Z.useState(!1),[u,d]=Z.useState(null),{productName:f}=Fd.getDefinition(e.theme);function p(e){r(e.target.value),s(``)}function m(e){a(e.target.value),s(``)}function h(){let[e,t]=$f.isPasswordValid(n,i,!0);return t&&s(t),e}function g(e){e.preventDefault(),h()&&(l(!0),t(i).then(e=>{l(!1),d(e)}).catch(e=>{l(!1),s(e.userMessage||`Something went wrong`)}))}function _(){try{l(!0),Ld(u,e)}catch(e){l(!1),s(e.userMessage||`Something went wrong`)}}return u?(0,Q.jsx)(pp,{error:o,spinner:c,onClickContinue:_,theme:e.theme}):(0,Q.jsxs)(`form`,{onSubmit:g,children:[(0,Q.jsxs)(td,{onClickBack:e.onClickBack,theme:e.theme,title:e.heading,children:[`Create a new password to secure your `,(0,Q.jsx)(`strong`,{children:f}),` account`]}),(0,Q.jsxs)(`div`,{className:`mb-4`,children:[(0,Q.jsx)(Gf,{className:`mb-3`,placeholder:`Enter your new password`,autoFocus:!0,value:n,onChange:p,name:`new-password`,autoComplete:`new-password`,hasError:!!o,"aria-invalid":!!o,"aria-errormessage":`new-passwordError`}),(0,Q.jsx)(Gf,{id:`confirm-new-password`,label:`Confirm Password`,placeholder:`Enter your password confirmation`,value:i,onChange:m,name:`new-password`,autoComplete:`new-password`,hasError:!!o,"aria-invalid":!!o,"aria-errormessage":`new-passwordError`}),!!o&&(0,Q.jsx)(xf,{name:`new-password`,children:o})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:c,children:`Update password`})]})}function hp(e){let{email:t,code:n,navigate:r}=e;function i(e){return yd.post(`/ajax/login/reset-password`,{email:t,code:n,newPassword:e})}function a(){r({step:`forgot-password`,backStep:`username`})}return(0,Q.jsx)(mp,{heading:`Reset password`,submit:i,onClickBack:a,...e})}function gp(e){function t(e){return yd.post(`/ajax/login/change-password`,{newPassword:e})}return(0,Q.jsx)(mp,{heading:`Change password`,submit:t,...e})}function _p(e){let{navigate:t,backStep:n}=e,[r]=Z.useState(e.userId||``),[i,a]=Z.useState(e.username||``),[o,s]=Z.useState(!1),[c,l]=Z.useState(``);function u(e){a(e.target.value.trim())}function d(t){if(t.preventDefault(),!i){l(`Please provide an email or username`);return}s(!0),yd.post(`/ajax/login/send-self-activation-code`,{userId:r}).then(t=>Ld(t,e,{userId:r,username:i})).catch(e=>{s(!1),l(e.userMessage||`Something went wrong`)})}function f(){t({step:n})}return(0,Q.jsxs)(`form`,{onSubmit:d,children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:n&&f,title:`Verify your email`,children:`We will send you a verification code to your email to activate your account.`}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(cd,{name:`email`,value:i,type:`username`,disabled:!0,onChange:u,isError:!!c,"aria-invalid":!!c,"aria-errormessage":`emailError`}),!!c&&(0,Q.jsx)(xf,{name:`email`,children:c})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:o,children:`Send verification code`}),(0,Q.jsx)(`p`,{className:`text-start mt-3`,children:`Single Sign On customers should contact their network administrator to activate their account.`})]})}function vp(e){let{navigate:t,userId:n,username:r,theme:i}=e;function a(){t({step:`self-activation`})}function o(){t({step:`self-activation`,userId:n})}function s(t){return yd.post(`/ajax/login/check-self-activation-code`,{code:t,userId:n}).then(n=>Ld(n,e,{code:t}))}return(0,Q.jsx)(sp,{navigate:t,theme:i,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`Please enter the `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code we've sent to `,(0,Q.jsx)(`strong`,{children:r})]}),submit:s,onBack:a,onResend:o,...e})}var yp={badge:`_badge_1l0uk_1`};function bp(e){return(0,Q.jsx)(`span`,{className:`rounded-pill d-inline-block mb-1 badge-white border border-dark rounded-pill ${yp.badge}`,children:e.children})}function xp(e){let{navigate:t}=e;function n(){t({step:e.backStep})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:e.backStep?n:null,className:{description:`text-center`},children:!!e.email&&(0,Q.jsx)(bp,{children:e.email})}),(0,Q.jsx)(`span`,{className:`h4 mb-3 d-block text-center`,children:`Contact Support`}),(0,Q.jsxs)(`p`,{className:`text-center`,children:[`Please get in touch with our `,(0,Q.jsx)(`strong`,{children:`Product Support Team`}),` by emailing `,(0,Q.jsx)(`a`,{className:`text-info`,href:`mailto:support@clickvieweducation.com`,children:`support@clickvieweducation.com`}),` for further assistance.`]})]})}function Sp(e){let t=ud(e.errorCode);return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(td,{theme:e.theme}),(0,Q.jsx)(`img`,{className:`img-fluid mb-4`,alt:`error`,src:`/images/errors/${t.errorImage||`default-v2.png`}`}),(0,Q.jsxs)(`div`,{className:`d-flex flex-column gap-3`,children:[(0,Q.jsx)(`h1`,{className:`h3 mb-0`,children:t.preferServerError?e.message:t.message}),!!t.additionalInformation&&(0,Q.jsx)(`p`,{className:`mb-0`,children:t.additionalInformation}),!!t.moreInfoUrl&&(0,Q.jsx)(`p`,{className:`mb-0`,children:(0,Q.jsx)(`a`,{href:t.moreInfoUrl,className:`text-info`,children:`Learn more`})}),(0,Q.jsx)(Cp,{errorCode:e.errorCode,traceId:e.traceId})]})]})}function Cp(e){return(0,Q.jsxs)(`div`,{className:`text-secondary small w-100`,children:[(0,Q.jsxs)(`p`,{className:`m-0`,children:[`Error Code: `,e.errorCode]}),(0,Q.jsxs)(`p`,{className:`m-0`,children:[`RequestId: `,e.traceId]})]})}function wp(e){let{token:t,email:n,userId:r,navigate:i}=e,[a,o]=Z.useState(!1);function s(){o(!0),yd.post(`/ajax/verify-email`,{token:t,email:n,userId:r}).then(t=>Ld(t,e)).catch(()=>{i({step:`error`,errorCode:`invalid-token`})})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(td,{theme:e.theme,title:`Before you proceed...`,children:[`Your email address `,(0,Q.jsx)(`strong`,{children:n}),` is already in use with another account. By continuing you will remove your email from the other account.`]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`button`,showSpinner:a,onClick:s,children:`Continue anyway`})]})}function Tp(e){let{email:t,code:n,navigate:r}=e,[i,a]=Z.useState(!1);function o(){r({step:`verify-email`,email:t})}function s(){a(!0),yd.post(`/ajax/login/verify-email`,{email:t,code:n,acknowledgeEmailInUse:!0}).then(t=>Ld(t,e)).catch(()=>{r({step:`error`,errorCode:`invalid-token`})})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(td,{onClickBack:o,theme:e.theme,title:`Before you proceed...`,children:[`Your email address `,(0,Q.jsx)(`strong`,{children:t}),` is already in use with another account. By continuing you will remove your email from the other account.`]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`button`,showSpinner:i,onClick:s,children:`Continue anyway`})]})}var Ep=function(e){return e.NotNow=`not-now`,e.NoEmail=`no-email`,e.EmailNotReceived=`email-not-received`,e.Other=`other`,e}(Ep||{});function Dp(e){let{returnUrl:t,navigate:n,backStep:r}=e,[i,a]=Z.useState(),[o,s]=Z.useState(),[c,l]=Z.useState(!1),[u,d]=Z.useState(``),{productName:f}=Fd.getDefinition(e.theme);function p(){return i===Ep.Other?$f.containsValidText(o)&&$f.isValidLength(o):Object.values(Ep).includes(i)}function m(){n({step:r||`verify-email`})}function h(e){a(e)}function g(e){let t=e.target.value,n=``;$f.containsValidText(t)?$f.exceedsMaxLength(t)&&(n=`Your reason is too long`):n=`Your reason contains an invalid character or symbol`,d(n),s(t)}function _(n){if(n.preventDefault(),!p())return;l(!0);let r=i===`other`?`other:${o}`:i;yd.post(`/ajax/login/skip-verify-email`,{reason:r,returnUrl:t}).then(t=>Ld(t,e)).catch(e=>{l(!1),d(e.userMessage||`Something went wrong`)})}return(0,Q.jsxs)(`form`,{onSubmit:_,children:[(0,Q.jsx)(td,{onClickBack:m,theme:e.theme,title:`Let us know why you aren't able to verify`,className:{description:`mt-0 mb-0`},children:`Verifying will increase the security of your account and improve features on ClickView.`}),(0,Q.jsxs)(`div`,{className:`mb-4`,children:[(0,Q.jsxs)(`div`,{className:`form-check my-3`,children:[(0,Q.jsx)(`input`,{className:`form-check-input`,type:`radio`,id:`not-now`,name:`not-now`,checked:i===`not-now`,onChange:()=>h(Ep.NotNow)}),(0,Q.jsx)(`label`,{className:`form-check-label`,htmlFor:`not-now`,children:`Not the right time`})]}),(0,Q.jsxs)(`div`,{className:`form-check my-3`,children:[(0,Q.jsx)(`input`,{className:`form-check-input`,type:`radio`,id:`no-email`,name:`no-email`,checked:i===`no-email`,onChange:()=>h(Ep.NoEmail)}),(0,Q.jsx)(`label`,{className:`form-check-label`,htmlFor:`no-email`,children:`I don't have an email address`})]}),(0,Q.jsxs)(`div`,{className:`form-check my-3`,children:[(0,Q.jsx)(`input`,{className:`form-check-input`,type:`radio`,id:`email-not-received`,name:`email-not-received`,checked:i===`email-not-received`,onChange:()=>h(Ep.EmailNotReceived)}),(0,Q.jsx)(`label`,{className:`form-check-label`,htmlFor:`email-not-received`,children:`I didn't receive a verification email`})]}),(0,Q.jsxs)(`div`,{className:`form-check mt-3 mb-2`,children:[(0,Q.jsx)(`input`,{className:`form-check-input`,type:`radio`,id:`other`,name:`other`,checked:i===`other`,onChange:()=>h(Ep.Other)}),(0,Q.jsx)(`label`,{className:`form-check-label`,htmlFor:`other`,children:`Other reasons (please specify)`})]}),i===`other`&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`input`,{className:`form-control form-control-lg ${u?`is-invalid`:``}`,type:`text`,placeholder:`Enter your reason`,name:`reason`,onChange:g,autoComplete:`off`,"aria-invalid":!!u,"aria-errormessage":`reasonError`}),!!u&&(0,Q.jsx)(xf,{name:`reason`,children:u})]})]}),(0,Q.jsxs)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,disabled:!p(),showSpinner:c,children:[`Continue to `,f]})]})}function Op(e){let{logoutId:t}=e,[n,r]=Z.useState(!1),{productName:i}=Fd.getDefinition(e.theme);function a(){r(!0)}return(0,Q.jsxs)(`form`,{onSubmit:a,action:`/logout`,method:`post`,children:[(0,Q.jsxs)(td,{theme:e.theme,title:`Logout`,children:[`Would you like to logout of `,i,`?`]}),(0,Q.jsx)(`input`,{type:`hidden`,name:`logoutId`,value:t||``}),(0,Q.jsx)(`input`,{type:`hidden`,name:`__RequestVerificationToken`,value:yd.getXsrfToken()}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:n,children:`Yes`})]})}function kp(e){let{postLogoutRedirectUri:t,clientName:n,signOutIframeUrl:r,automaticRedirectAfterSignOut:i}=e;return Z.useEffect(()=>{!i||!t||(window.location.href=t)},[i,t]),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Logged out`,children:`You are now logged out.`}),t&&(0,Q.jsxs)(`p`,{children:[`Click `,(0,Q.jsx)(`a`,{href:t,className:`text-info`,children:`here`}),` to return to the `,n,` application.`]}),r&&(0,Q.jsx)(`iframe`,{width:0,height:0,frameBorder:0,src:r})]})}function Ap(e){let{navigate:t,organisation:n,orgCustomers:r,backStep:i}=e,[a,o]=Z.useState(null),[s,c]=Z.useState(null);async function l(t){try{await yd.post(`/ajax/external/join-organisation-customer`,{customerId:t}),Ld(await yd.post(`/ajax/login/select-customer`,{customerId:t}),e)}catch(e){c(e.userMessage||`Something went wrong. Please try again.`)}}function u(e){l(e.id)}function d(){t({step:`contact-support`,backStep:`organisation-select-customer`})}function f(){a&&l(a.id)}function p(){t({step:`select-customer`,backStep:`organisation-select-customer`})}function m(){t({step:i,backStep:null})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:i&&m}),(0,Q.jsxs)(`span`,{className:`h4 mb-3 d-block text-left`,children:[`To sign in, select a school from `,n.name]}),!!e.email&&(0,Q.jsx)(`p`,{className:`text-left`,children:(0,Q.jsx)(bp,{children:e.email})}),!!r?.length&&(0,Q.jsx)(`div`,{className:`mb-4`,children:r.length>10?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Schools`}),(0,Q.jsx)(`div`,{className:`mb-3`,children:(0,Q.jsx)(Rf,{id:`school`,item:a,items:r,onSelect:o,getName:e=>e.name,clearData:()=>o(null),placeholder:`Select a school`,size:`lg`,cantFindText:`My school is not listed`,onCantFind:d})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-4`,disabled:!a,onClick:f,children:`Continue`})]}):(0,Q.jsxs)(`div`,{children:[r.map((e,t)=>(0,Q.jsx)(Df,{onClick:()=>u(e),text:e.name,icon:kf.buildAvatarUrl(e.logoUrl,{size:`small`})||Of,className:`mb-3`,iconColor:`dark`},t)),(0,Q.jsx)(`button`,{className:`text-info`,onClick:d,children:`My school is not listed`})]})}),e.hasExistingCustomers&&!i&&(0,Q.jsxs)(`button`,{className:`h5 d-flex w-100`,onClick:p,children:[`View my existing schools`,(0,Q.jsx)(`span`,{className:`ms-auto`,children:(0,Q.jsx)(wf,{})})]}),s&&(0,Q.jsx)(`div`,{className:`text-danger text-center`,children:s})]})}function jp(e){if(!e)return{firstName:``,surname:``,source:``};let t=e.split(` `).filter(e=>e.length);return{firstName:t.shift(),surname:t.join(` `),source:e}}function Mp(e){let{value:t,onChange:n,error:r,autoFocus:i}=e;return Z.useEffect(()=>{e.onChange(jp(e.value))},[]),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`label`,{htmlFor:`name`,children:`Full name`}),(0,Q.jsx)(`input`,{className:`form-control form-control-lg ${!!r&&`is-invalid`}`,type:`text`,name:`name`,id:`name`,value:t,placeholder:`Enter your full name`,autoFocus:i,autoComplete:`name`,onChange:e=>n(jp(e.target.value)),"aria-errormessage":`nameError`}),!!r&&(0,Q.jsx)(xf,{name:`name`,children:r})]})}var $=function(e){return e.AU=`au`,e.NZ=`nz`,e.UK=`uk`,e.US=`us`,e.CA=`ca`,e}({}),Np=[`Teacher`,`Librarian / Teacher Librarian`,`Curriculum Coordinator`,`Digital Technology Coordinator`,`SSO / SLSO`,`IT`,`Head of Department`,`Head of Subject`,`Assistant Principal`,`Deputy Principal`,`Principal`,`Business Manager`],Pp=[`Teacher`,`Librarian / Teacher Librarian`,`IT/LRC`,`e-Learning/ICT Coordinator`,`Head of Key Stage`,`Head of Department`,`Subject Lead`,`Assistant Head Teacher`,`Deputy Head Teacher`,`Head Teacher`],Fp=[`Teacher`,`Librarian / Teacher Librarian`,`Head of Department`,`Instructional Technology Specialist`,`Curriculum Coordinator`,`School Leadership`,`District Leadership`,`Academic Coach`,`Principal`,`IT / IT Specialist`],Ip=[`Teacher`,`Librarian / Teacher Librarian`,`Curriculum Leader`,`e-Learning Coordinator`,`IT`,`Head of Department`,`Head of Faculty`,`Learning Support`,`Learning Assistant`,`Deputy Principal`,`Assistant Principal`,`Principal`],Lp=[`Teacher`,`Librarian / Teacher Librarian`,`Educational Assistant (EA)`,`Learning Support Teacher / Resource Teacher`,`Department Head / Manager`,`Curriculum Coordinator / Consultant`,`School Counsellor / Guidance Counsellor`,`Vice-Principal`,`Principal`,`Superintendent`,`Director of Education`],Rp=[`Professor`,`Lecturer`,`Course Coordinator / Administrator`,`Digital Learning Manager`,`Tutor`,`Teaching Fellow`,`Librarian`,`Learning Technologist`,`Teaching Assistant`,`Researcher`,`IT`],zp=[`Professor`,`Lecturer`,`Course Coordinator / Administrator`,`Digital Learning Manager`,`Tutor`,`Teaching Fellow`,`Librarian`,`Learning Technologist`,`Teacher`,`Teaching Assistant`,`Researcher`,`IT`],Bp={[$.AU]:Np,[$.NZ]:Ip,[$.UK]:Pp,[$.US]:Fp,[$.CA]:Lp},Vp={[$.AU]:Rp,[$.UK]:zp};function Hp(e){let t=e.countryCode?.toLowerCase();return e.isTertiary?Vp[t]||Rp:Bp[t]||Fp}function Up(e){return e?.toLowerCase().includes(`student`)||e?.toLowerCase().includes(`parent`)}var Wp=`OTHER`;function Gp(e){let{error:t,onChange:n,countryCode:r,isTertiary:i,autoFocus:a}=e,[o,s]=Z.useState(``),[c,l]=Z.useState(``),u=Hp({countryCode:r,isTertiary:i});function d(e){s(e.target.value),l(``),n(e.target.value===Wp?``:e.target.value)}function f(e){l(e.target.value),n(e.target.value)}let p=o===Wp;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`label`,{htmlFor:`jobTitle`,children:`Job Title`}),(0,Q.jsxs)(`select`,{className:`form-select form-select-lg ${o.length?`text-dark`:`text-secondary`} ${!!t&&`is-invalid`}`,value:o,placeholder:`Role`,onChange:d,autoFocus:a,name:`jobTitle`,id:`jobTitle`,"aria-invalid":!!t&&!p,"aria-errormessage":t&&!p?`jobTitleError`:void 0,children:[(0,Q.jsx)(`option`,{value:``,disabled:!0,className:`text-secondary`,children:`What do you do?`}),u.map((e,t)=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},t)),(0,Q.jsx)(`option`,{value:Wp,className:`text-dark`,children:`Other`})]}),!!t&&!p&&(0,Q.jsx)(xf,{name:`jobTitle`,children:t})]}),p&&(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`input`,{className:`form-control form-control-lg ${!!t&&`is-invalid`}`,type:`text`,value:c,placeholder:`Enter your role`,autoFocus:!0,onChange:f,name:`role`,"aria-invalid":!!t,"aria-errormessage":`roleError`}),!!t&&(0,Q.jsx)(xf,{name:`role`,children:t})]})]})}function Kp(e){let{allowNameChange:t,allowJobTitleChange:n,errors:r,spinner:i,countryCode:a,setErrors:o}=e,[s,c]=Z.useState(),[l,u]=Z.useState(``),[d,f]=Z.useState(``),[p,m]=Z.useState(``);function h(e){f(e.target.value),o({...r,password:``})}function g(e){m(e.target.value),o({...r,password:``})}function _(e){c(e),o({...r,fullName:``})}function v(e){u(e),o({...r,jobTitle:``})}function y(r){r.preventDefault();let i={password:d,confirmPassword:p};t&&(i.firstName=s.firstName,i.surname=s.surname),n&&(i.jobTitle=l),e.onSubmit(i)}function b(){return t?`fullName`:n?`jobTitle`:`password`}let x=b();return(0,Q.jsxs)(`form`,{onSubmit:y,children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[t&&(0,Q.jsx)(Mp,{value:s?.source||``,onChange:_,error:r.fullName,autoFocus:x===`fullName`}),n&&(0,Q.jsx)(Gp,{error:r.jobTitle,onChange:v,countryCode:a,autoFocus:x===`jobTitle`,isTertiary:e.isTertiary}),(0,Q.jsx)(Gf,{placeholder:`Enter your password`,value:d,onChange:h,name:`new-password`,autoComplete:`new-password`,hasError:!!r.password,autoFocus:x===`password`,"aria-errormessage":`new-passwordError`,className:ed(e.requireConfirmPassword&&`mb-3`)}),e.requireConfirmPassword&&(0,Q.jsx)(Gf,{id:`confirm-new-password`,label:`Confirm password`,placeholder:`Enter your password confirmation`,value:p,onChange:g,name:`new-password`,autoComplete:`new-password`,hasError:!!r.password,"aria-invalid":!!r.password,"aria-errormessage":`new-passwordError`}),!!r.password&&(0,Q.jsx)(xf,{name:`new-password`,children:r.password})]}),!!r.default&&(0,Q.jsx)(`div`,{className:`text-danger my-3`,children:r.default}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:i,children:`Get Started`})]})}var qp=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Jp=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Yp=o(((e,t)=>{var n=Jp();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Xp=o(((e,t)=>{var n=Yp(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Zp=o(((e,t)=>{var n=Yp();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Qp=o(((e,t)=>{var n=Yp();function r(e){return n(this.__data__,e)>-1}t.exports=r})),$p=o(((e,t)=>{var n=Yp();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),em=o(((e,t)=>{var n=qp(),r=Xp(),i=Zp(),a=Qp(),o=$p();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),tm=o(((e,t)=>{var n=em();function r(){this.__data__=new n,this.size=0}t.exports=r})),nm=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),rm=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),im=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),am=o(((e,t)=>{t.exports=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis})),om=o(((e,t)=>{var n=am(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),sm=o(((e,t)=>{t.exports=om().Symbol})),cm=o(((e,t)=>{var n=sm(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),lm=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),um=o(((e,t)=>{var n=sm(),r=cm(),i=lm(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),dm=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),fm=o(((e,t)=>{var n=um(),r=dm(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),pm=o(((e,t)=>{t.exports=om()[`__core-js_shared__`]})),mm=o(((e,t)=>{var n=pm(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),hm=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),gm=o(((e,t)=>{var n=fm(),r=mm(),i=dm(),a=hm(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),_m=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),vm=o(((e,t)=>{var n=gm(),r=_m();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),ym=o(((e,t)=>{t.exports=vm()(om(),`Map`)})),bm=o(((e,t)=>{t.exports=vm()(Object,`create`)})),xm=o(((e,t)=>{var n=bm();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),Sm=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n})),Cm=o(((e,t)=>{var n=bm(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),wm=o(((e,t)=>{var n=bm(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Tm=o(((e,t)=>{var n=bm(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i})),Em=o(((e,t)=>{var n=xm(),r=Sm(),i=Cm(),a=wm(),o=Tm();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Dm=o(((e,t)=>{var n=Em(),r=em(),i=ym();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Om=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),km=o(((e,t)=>{var n=Om();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Am=o(((e,t)=>{var n=km();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r})),jm=o(((e,t)=>{var n=km();function r(e){return n(this,e).get(e)}t.exports=r})),Mm=o(((e,t)=>{var n=km();function r(e){return n(this,e).has(e)}t.exports=r})),Nm=o(((e,t)=>{var n=km();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Pm=o(((e,t)=>{var n=Dm(),r=Am(),i=jm(),a=Mm(),o=Nm();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Fm=o(((e,t)=>{var n=em(),r=ym(),i=Pm(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),Im=o(((e,t)=>{var n=em(),r=tm(),i=nm(),a=rm(),o=im(),s=Fm();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),Lm=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),Rm=o(((e,t)=>{var n=vm();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),zm=o(((e,t)=>{var n=Rm();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),Bm=o(((e,t)=>{var n=zm(),r=Jp(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),Vm=o(((e,t)=>{var n=Bm(),r=zm();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),Hm=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),Um=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Wm=o(((e,t)=>{var n=um(),r=Um(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Gm=o(((e,t)=>{var n=Wm(),r=Um(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Km=o(((e,t)=>{t.exports=Array.isArray})),qm=o(((e,t)=>{function n(){return!1}t.exports=n})),Jm=o(((e,t)=>{var n=om(),r=qm(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),Ym=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),Xm=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Zm=o(((e,t)=>{var n=um(),r=Xm(),i=Um(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),Qm=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),$m=o(((e,t)=>{var n=am(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),eh=o(((e,t)=>{var n=Zm(),r=Qm(),i=$m(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),th=o(((e,t)=>{var n=Hm(),r=Gm(),i=Km(),a=Jm(),o=Ym(),s=eh(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),nh=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),rh=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),ih=o(((e,t)=>{t.exports=rh()(Object.keys,Object)})),ah=o(((e,t)=>{var n=nh(),r=ih(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),oh=o(((e,t)=>{var n=fm(),r=Xm();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),sh=o(((e,t)=>{var n=th(),r=ah(),i=oh();function a(e){return i(e)?n(e):r(e)}t.exports=a})),ch=o(((e,t)=>{var n=Vm(),r=sh();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),lh=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),uh=o(((e,t)=>{var n=dm(),r=nh(),i=lh(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),dh=o(((e,t)=>{var n=th(),r=uh(),i=oh();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),fh=o(((e,t)=>{var n=Vm(),r=dh();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),ph=o(((e,t)=>{var n=om(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),mh=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),hh=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),gh=o(((e,t)=>{function n(){return[]}t.exports=n})),_h=o(((e,t)=>{var n=hh(),r=gh(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),vh=o(((e,t)=>{var n=Vm(),r=_h();function i(e,t){return n(e,r(e),t)}t.exports=i})),yh=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),bh=o(((e,t)=>{t.exports=rh()(Object.getPrototypeOf,Object)})),xh=o(((e,t)=>{var n=yh(),r=bh(),i=_h(),a=gh();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),Sh=o(((e,t)=>{var n=Vm(),r=xh();function i(e,t){return n(e,r(e),t)}t.exports=i})),Ch=o(((e,t)=>{var n=yh(),r=Km();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),wh=o(((e,t)=>{var n=Ch(),r=_h(),i=sh();function a(e){return n(e,i,r)}t.exports=a})),Th=o(((e,t)=>{var n=Ch(),r=xh(),i=dh();function a(e){return n(e,i,r)}t.exports=a})),Eh=o(((e,t)=>{t.exports=vm()(om(),`DataView`)})),Dh=o(((e,t)=>{t.exports=vm()(om(),`Promise`)})),Oh=o(((e,t)=>{t.exports=vm()(om(),`Set`)})),kh=o(((e,t)=>{t.exports=vm()(om(),`WeakMap`)})),Ah=o(((e,t)=>{var n=Eh(),r=ym(),i=Dh(),a=Oh(),o=kh(),s=um(),c=hm(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),jh=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),Mh=o(((e,t)=>{t.exports=om().Uint8Array})),Nh=o(((e,t)=>{var n=Mh();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),Ph=o(((e,t)=>{var n=Nh();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),Fh=o(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),Ih=o(((e,t)=>{var n=sm(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),Lh=o(((e,t)=>{var n=Nh();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),Rh=o(((e,t)=>{var n=Nh(),r=Ph(),i=Fh(),a=Ih(),o=Lh(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),zh=o(((e,t)=>{var n=dm(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),Bh=o(((e,t)=>{var n=zh(),r=bh(),i=nh();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),Vh=o(((e,t)=>{var n=Ah(),r=Um(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Hh=o(((e,t)=>{var n=Vh(),r=Qm(),i=$m(),a=i&&i.isMap;t.exports=a?r(a):n})),Uh=o(((e,t)=>{var n=Ah(),r=Um(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Wh=o(((e,t)=>{var n=Uh(),r=Qm(),i=$m(),a=i&&i.isSet;t.exports=a?r(a):n})),Gh=o(((e,t)=>{var n=Im(),r=Lm(),i=Bm(),a=ch(),o=fh(),s=ph(),c=mh(),l=vh(),u=Sh(),d=wh(),f=Th(),p=Ah(),m=jh(),h=Rh(),g=Bh(),_=Km(),v=Jm(),y=Hh(),b=dm(),x=Wh(),S=sh(),C=dh(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,F=`[object Number]`,I=`[object Object]`,L=`[object RegExp]`,R=`[object Set]`,z=`[object String]`,B=`[object Symbol]`,V=`[object WeakMap]`,H=`[object ArrayBuffer]`,ee=`[object DataView]`,U=`[object Float32Array]`,te=`[object Float64Array]`,ne=`[object Int8Array]`,re=`[object Int16Array]`,ie=`[object Int32Array]`,ae=`[object Uint8Array]`,oe=`[object Uint8ClampedArray]`,W=`[object Uint16Array]`,se=`[object Uint32Array]`,G={};G[D]=G[O]=G[H]=G[ee]=G[k]=G[A]=G[U]=G[te]=G[ne]=G[re]=G[ie]=G[P]=G[F]=G[I]=G[L]=G[R]=G[z]=G[B]=G[ae]=G[oe]=G[W]=G[se]=!0,G[j]=G[M]=G[V]=!1;function ce(e,t,O,k,A,j){var P,F=t&w,L=t&T,R=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var z=_(e);if(z){if(P=m(e),!F)return c(e,P)}else{var B=p(e),V=B==M||B==N;if(v(e))return s(e,F);if(B==I||B==D||V&&!A){if(P=L||V?{}:g(e),!F)return L?u(e,o(P,e)):l(e,a(P,e))}else{if(!G[B])return A?e:{};P=h(e,B,F)}}j||=new n;var H=j.get(e);if(H)return H;j.set(e,P),x(e)?e.forEach(function(n){P.add(ce(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,ce(n,t,O,r,e,j))});var ee=z?void 0:(R?L?f:d:L?C:S)(e);return r(ee||e,function(n,r){ee&&(r=n,n=e[r]),i(P,r,ce(n,t,O,r,e,j))}),P}t.exports=ce})),Kh=o(((e,t)=>{var n=Gh(),r=1,i=4;function a(e){return n(e,r|i)}t.exports=a})),qh=o(((e,t)=>{var n=um(),r=Um(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Jh=o(((e,t)=>{var n=Km(),r=qh(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),Yh=o(((e,t)=>{var n=Pm(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),Xh=o(((e,t)=>{var n=Yh(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Zh=o(((e,t)=>{var n=Xh(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Qh=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),$h=o(((e,t)=>{var n=sm(),r=Qh(),i=Km(),a=qh(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),eg=o(((e,t)=>{var n=$h();function r(e){return e==null?``:n(e)}t.exports=r})),tg=o(((e,t)=>{var n=Km(),r=Jh(),i=Zh(),a=eg();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),ng=o(((e,t)=>{var n=qh(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),rg=o(((e,t)=>{var n=tg(),r=ng();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),ig=o(((e,t)=>{var n=rg();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),ag=o(((e,t)=>{var n=zm(),r=Jp();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),og=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),sg=o(((e,t)=>{t.exports=og()()})),cg=o(((e,t)=>{var n=oh(),r=Um();function i(e){return r(e)&&n(e)}t.exports=i})),lg=o(((e,t)=>{var n=um(),r=bh(),i=Um(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),ug=o(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),dg=o(((e,t)=>{var n=Vm(),r=dh();function i(e){return n(e,r(e))}t.exports=i})),fg=o(((e,t)=>{var n=ag(),r=ph(),i=Lh(),a=mh(),o=Bh(),s=Gm(),c=Km(),l=cg(),u=Jm(),d=fm(),f=dm(),p=lg(),m=eh(),h=ug(),g=dg();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),O=!D&&u(C),k=!D&&!O&&m(C);T=C,D||O||k?c(S)?T=S:l(S)?T=a(S):O?(E=!1,T=r(C,!0)):k?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),pg=o(((e,t)=>{var n=Im(),r=ag(),i=sg(),a=fg(),o=dm(),s=dh(),c=ug();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),mg=o(((e,t)=>{function n(e){return e}t.exports=n})),hg=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),gg=o(((e,t)=>{var n=hg(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),_g=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),vg=o(((e,t)=>{var n=_g(),r=Rm(),i=mg();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),yg=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),bg=o(((e,t)=>{var n=vg();t.exports=yg()(n)})),xg=o(((e,t)=>{var n=mg(),r=gg(),i=bg();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),Sg=o(((e,t)=>{var n=Jp(),r=oh(),i=Ym(),a=dm();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),Cg=o(((e,t)=>{var n=xg(),r=Sg();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),wg=l(o(((e,t)=>{var n=pg();t.exports=Cg()(function(e,t,r){n(e,t,r)})}))()),Tg=l(ig()),Eg=l(Kh()),Dg=`1.13.7`,Og=typeof self==`object`&&self.self===self&&self||typeof globalThis==`object`&&globalThis.global===globalThis&&globalThis||Function(`return this`)()||{},kg=Array.prototype,Ag=Object.prototype,jg=typeof Symbol<`u`?Symbol.prototype:null,Mg=kg.push,Ng=kg.slice,Pg=Ag.toString,Fg=Ag.hasOwnProperty,Ig=typeof ArrayBuffer<`u`,Lg=typeof DataView<`u`,Rg=Array.isArray,zg=Object.keys,Bg=Object.create,Vg=Ig&&ArrayBuffer.isView,Hg=isNaN,Ug=isFinite,Wg=!{toString:null}.propertyIsEnumerable(`toString`),Gg=[`valueOf`,`isPrototypeOf`,`toString`,`propertyIsEnumerable`,`hasOwnProperty`,`toLocaleString`],Kg=2**53-1;function qg(e,t){return t=t==null?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var a=Array(t+1);for(i=0;i<t;i++)a[i]=arguments[i];return a[t]=r,e.apply(this,a)}}function Jg(e){var t=typeof e;return t===`function`||t===`object`&&!!e}function Yg(e){return e===null}function Xg(e){return e===void 0}function Zg(e){return e===!0||e===!1||Pg.call(e)===`[object Boolean]`}function Qg(e){return!!(e&&e.nodeType===1)}function $g(e){var t=`[object `+e+`]`;return function(e){return Pg.call(e)===t}}var e_=$g(`String`),t_=$g(`Number`),n_=$g(`Date`),r_=$g(`RegExp`),i_=$g(`Error`),a_=$g(`Symbol`),o_=$g(`ArrayBuffer`),s_=$g(`Function`),c_=Og.document&&Og.document.childNodes;typeof/./!=`function`&&typeof Int8Array!=`object`&&typeof c_!=`function`&&(s_=function(e){return typeof e==`function`||!1});var l_=s_,u_=$g(`Object`),d_=Lg&&(!/\[native code\]/.test(String(DataView))||u_(new DataView(new ArrayBuffer(8)))),f_=typeof Map<`u`&&u_(new Map),p_=$g(`DataView`);function m_(e){return e!=null&&l_(e.getInt8)&&o_(e.buffer)}var h_=d_?m_:p_,g_=Rg||$g(`Array`);function __(e,t){return e!=null&&Fg.call(e,t)}var v_=$g(`Arguments`);(function(){v_(arguments)||(v_=function(e){return __(e,`callee`)})})();var y_=v_;function b_(e){return!a_(e)&&Ug(e)&&!isNaN(parseFloat(e))}function x_(e){return t_(e)&&Hg(e)}function S_(e){return function(){return e}}function C_(e){return function(t){var n=e(t);return typeof n==`number`&&n>=0&&n<=Kg}}function w_(e){return function(t){return t?.[e]}}var T_=w_(`byteLength`),E_=C_(T_),D_=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function O_(e){return Vg?Vg(e)&&!h_(e):E_(e)&&D_.test(Pg.call(e))}var k_=Ig?O_:S_(!1),A_=w_(`length`);function j_(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]===!0},push:function(n){return t[n]=!0,e.push(n)}}}function M_(e,t){t=j_(t);var n=Gg.length,r=e.constructor,i=l_(r)&&r.prototype||Ag,a=`constructor`;for(__(e,a)&&!t.contains(a)&&t.push(a);n--;)a=Gg[n],a in e&&e[a]!==i[a]&&!t.contains(a)&&t.push(a)}function N_(e){if(!Jg(e))return[];if(zg)return zg(e);var t=[];for(var n in e)__(e,n)&&t.push(n);return Wg&&M_(e,t),t}function P_(e){if(e==null)return!0;var t=A_(e);return typeof t==`number`&&(g_(e)||e_(e)||y_(e))?t===0:A_(N_(e))===0}function F_(e,t){var n=N_(t),r=n.length;if(e==null)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0}function I_(e){if(e instanceof I_)return e;if(!(this instanceof I_))return new I_(e);this._wrapped=e}I_.VERSION=Dg,I_.prototype.value=function(){return this._wrapped},I_.prototype.valueOf=I_.prototype.toJSON=I_.prototype.value,I_.prototype.toString=function(){return String(this._wrapped)};function L_(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,T_(e))}var R_=`[object DataView]`;function z_(e,t,n,r){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;return i!==`function`&&i!==`object`&&typeof t!=`object`?!1:B_(e,t,n,r)}function B_(e,t,n,r){e instanceof I_&&(e=e._wrapped),t instanceof I_&&(t=t._wrapped);var i=Pg.call(e);if(i!==Pg.call(t))return!1;if(d_&&i==`[object Object]`&&h_(e)){if(!h_(t))return!1;i=R_}switch(i){case`[object RegExp]`:case`[object String]`:return``+e==``+t;case`[object Number]`:return+e==+e?+e==0?1/e==1/t:+e==+t:+t!=+t;case`[object Date]`:case`[object Boolean]`:return+e==+t;case`[object Symbol]`:return jg.valueOf.call(e)===jg.valueOf.call(t);case`[object ArrayBuffer]`:case R_:return B_(L_(e),L_(t),n,r)}var a=i===`[object Array]`;if(!a&&k_(e)){if(T_(e)!==T_(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;a=!0}if(!a){if(typeof e!=`object`||typeof t!=`object`)return!1;var o=e.constructor,s=t.constructor;if(o!==s&&!(l_(o)&&o instanceof o&&l_(s)&&s instanceof s)&&`constructor`in e&&`constructor`in t)return!1}n||=[],r||=[];for(var c=n.length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),a){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!z_(e[c],t[c],n,r))return!1}else{var l=N_(e),u;if(c=l.length,N_(t).length!==c)return!1;for(;c--;)if(u=l[c],!(__(t,u)&&z_(e[u],t[u],n,r)))return!1}return n.pop(),r.pop(),!0}function V_(e,t){return z_(e,t)}function H_(e){if(!Jg(e))return[];var t=[];for(var n in e)t.push(n);return Wg&&M_(e,t),t}function U_(e){var t=A_(e);return function(n){if(n==null||A_(H_(n)))return!1;for(var r=0;r<t;r++)if(!l_(n[e[r]]))return!1;return e!==Y_||!l_(n[W_])}}var W_=`forEach`,G_=`has`,K_=[`clear`,`delete`],q_=[`get`,G_,`set`],J_=K_.concat(W_,q_),Y_=K_.concat(q_),X_=[`add`].concat(K_,W_,G_),Z_=f_?U_(J_):$g(`Map`),Q_=f_?U_(Y_):$g(`WeakMap`),$_=f_?U_(X_):$g(`Set`),ev=$g(`WeakSet`);function tv(e){for(var t=N_(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function nv(e){for(var t=N_(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function rv(e){for(var t={},n=N_(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function iv(e){var t=[];for(var n in e)l_(e[n])&&t.push(n);return t.sort()}function av(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||n==null)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),s=o.length,c=0;c<s;c++){var l=o[c];(!t||n[l]===void 0)&&(n[l]=a[l])}return n}}var ov=av(H_),sv=av(N_),cv=av(H_,!0);function lv(){return function(){}}function uv(e){if(!Jg(e))return{};if(Bg)return Bg(e);var t=lv();t.prototype=e;var n=new t;return t.prototype=null,n}function dv(e,t){var n=uv(e);return t&&sv(n,t),n}function fv(e){return Jg(e)?g_(e)?e.slice():ov({},e):e}function pv(e,t){return t(e),e}function mv(e){return g_(e)?e:[e]}I_.toPath=mv;function hv(e){return I_.toPath(e)}function gv(e,t){for(var n=t.length,r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}function _v(e,t,n){var r=gv(e,hv(t));return Xg(r)?n:r}function vv(e,t){t=hv(t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(!__(e,i))return!1;e=e[i]}return!!n}function yv(e){return e}function bv(e){return e=sv({},e),function(t){return F_(t,e)}}function xv(e){return e=hv(e),function(t){return gv(t,e)}}function Sv(e,t,n){if(t===void 0)return e;switch(n??3){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}}function Cv(e,t,n){return e==null?yv:l_(e)?Sv(e,t,n):Jg(e)&&!g_(e)?bv(e):xv(e)}function wv(e,t){return Cv(e,t,1/0)}I_.iteratee=wv;function Tv(e,t,n){return I_.iteratee===wv?Cv(e,t,n):I_.iteratee(e,t)}function Ev(e,t,n){t=Tv(t,n);for(var r=N_(e),i=r.length,a={},o=0;o<i;o++){var s=r[o];a[s]=t(e[s],s,e)}return a}function Dv(){}function Ov(e){return e==null?Dv:function(t){return _v(e,t)}}function kv(e,t,n){var r=Array(Math.max(0,e));t=Sv(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Av(e,t){return t??(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}var jv=Date.now||function(){return new Date().getTime()};function Mv(e){var t=function(t){return e[t]},n=`(?:`+N_(e).join(`|`)+`)`,r=RegExp(n),i=RegExp(n,`g`);return function(e){return e=e==null?``:``+e,r.test(e)?e.replace(i,t):e}}var Nv={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#x27;`,"`":`&#x60;`},Pv=Mv(Nv),Fv=Mv(rv(Nv)),Iv=I_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Lv=/(.)^/,Rv={"'":`'`,"\\":`\\`,"\r":`r`,"\n":`n`,"\u2028":`u2028`,"\u2029":`u2029`},zv=/\\|'|\r|\n|\u2028|\u2029/g;function Bv(e){return`\\`+Rv[e]}var Vv=/^\s*(\w|\$)+\s*$/;function Hv(e,t,n){!t&&n&&(t=n),t=cv({},t,I_.templateSettings);var r=RegExp([(t.escape||Lv).source,(t.interpolate||Lv).source,(t.evaluate||Lv).source].join(`|`)+`|$`,`g`),i=0,a=`__p+='`;e.replace(r,function(t,n,r,o,s){return a+=e.slice(i,s).replace(zv,Bv),i=s+t.length,n?a+=`'+
12
+ `+e.stack}return{value:e,source:t,stack:i}}function bs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var xs=typeof WeakMap==`function`?WeakMap:Map;function Ss(e,t,n){n=_a(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){el||(el=!0,tl=r),bs(e,t)},n}function Cs(e,t,n){n=_a(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){bs(e,t),typeof r!=`function`&&(nl===null?nl=new Set([this]):nl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function ws(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zl.bind(null,e,t,n),t.then(e,e))}function Ts(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Es(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_a(-1,1),t.tag=2,va(n,t))),n.lanes|=1),e)}var Ds=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,fo(co.current);var o=null;switch(n){case`input`:i=W(e,i),r=W(e,r),o=[];break;case`select`:i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),o=[];break;case`textarea`:i=fe(e,i),r=fe(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=di)}Te(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&Zr(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ks=function(e,t,n,r){n!==r&&(t.flags|=4)};function As(e,t){if(!Ga)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function js(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ms(e,t,n){var i=t.pendingProps;switch(Ha(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return js(t),null;case 1:return Wi(t.type)&&Gi(),js(t),null;case 3:return i=t.stateNode,mo(),Li(Vi),Li(Bi),bo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ka!==null&&(vl(Ka),Ka=null))),js(t),null;case 5:go(t);var o=fo(uo.current);if(n=t.type,e!==null&&t.stateNode!=null)Os(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return js(t),null}if(e=fo(co.current),Qa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[wi]=t,i[Ti]=s,e=(t.mode&1)!=0,n){case`dialog`:Zr(`cancel`,i),Zr(`close`,i);break;case`iframe`:case`object`:case`embed`:Zr(`load`,i);break;case`video`:case`audio`:for(o=0;o<qr.length;o++)Zr(qr[o],i);break;case`source`:Zr(`error`,i);break;case`img`:case`image`:case`link`:Zr(`error`,i),Zr(`load`,i);break;case`details`:Zr(`toggle`,i);break;case`input`:se(i,s),Zr(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},Zr(`invalid`,i);break;case`textarea`:pe(i,s),Zr(`invalid`,i)}for(var c in Te(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&ui(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&ui(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&Zr(`scroll`,i)}switch(n){case`input`:ie(i),le(i,s,!0);break;case`textarea`:ie(i),he(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=di)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=q(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[wi]=t,e[Ti]=i,Ds(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ee(n,i),n){case`dialog`:Zr(`cancel`,e),Zr(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:Zr(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<qr.length;o++)Zr(qr[o],e);o=i;break;case`source`:Zr(`error`,e),o=i;break;case`img`:case`image`:case`link`:Zr(`error`,e),Zr(`load`,e),o=i;break;case`details`:Zr(`toggle`,e),o=i;break;case`input`:se(e,i),o=W(e,i),Zr(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=L({},i,{value:void 0}),Zr(`invalid`,e);break;case`textarea`:pe(e,i),o=fe(e,i),Zr(`invalid`,e);break;default:o=i}for(s in Te(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Ce(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&ve(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&ye(e,u):typeof u==`number`&&ye(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&Zr(`scroll`,e):u!=null&&b(e,s,u,c))}switch(n){case`input`:ie(e),le(e,i,!1);break;case`textarea`:ie(e),he(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+te(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&de(e,!!i.multiple,i.defaultValue,!0):de(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=di)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return js(t),null;case 6:if(e&&t.stateNode!=null)ks(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=fo(uo.current),fo(co.current),Qa(t)){if(i=t.stateNode,n=t.memoizedProps,i[wi]=t,(s=i.nodeValue!==n)&&(e=Ua,e!==null))switch(e.tag){case 3:ui(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ui(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[wi]=t,t.stateNode=i}return js(t),null;case 13:if(Li(_o),i=t.memoizedState,Ga&&Wa!==null&&t.mode&1&&!(t.flags&128)){for(i=Wa;i;)i=xi(i.nextSibling);return $a(),t.flags|=98560,t}if(i!==null&&i.dehydrated!==null){if(i=Qa(t),e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(r(317));i[wi]=t}else $a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;return js(t),null}return Ka!==null&&(vl(Ka),Ka=null),t.flags&128?(t.lanes=n,t):(i=i!==null,n=!1,e===null?Qa(t):n=e.memoizedState!==null,i!==n&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||_o.current&1?Wc===0&&(Wc=3):Ol())),t.updateQueue!==null&&(t.flags|=4),js(t),null);case 4:return mo(),e===null&&ei(t.stateNode.containerInfo),js(t),null;case 10:return la(t.type._context),js(t),null;case 17:return Wi(t.type)&&Gi(),js(t),null;case 19:if(Li(_o),s=t.memoizedState,s===null)return js(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)As(s,!1);else{if(Wc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=vo(e),c!==null){for(t.flags|=128,As(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ri(_o,_o.current&1|2),t.child}e=e.sibling}s.tail!==null&&it()>Qc&&(t.flags|=128,i=!0,As(s,!1),t.lanes=4194304)}else{if(!i)if(e=vo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),As(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Ga)return js(t),null}else 2*it()-s.renderingStartTime>Qc&&n!==1073741824&&(t.flags|=128,i=!0,As(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(js(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=it(),t.sibling=null,n=_o.current,Ri(_o,i?n&1|2:n&1),t);case 22:case 23:return wl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Hc&1073741824&&(js(t),t.subtreeFlags&6&&(t.flags|=8192)):js(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}var Ns=x.ReactCurrentOwner,Ps=!1;function Fs(e,t,n,r){t.child=e===null?oo(t,null,n,r):ao(t,e.child,n,r)}function Is(e,t,n,r,i){n=n.render;var a=t.ref;return da(t,i),r=No(e,t,n,r,a,i),n=Po(),e!==null&&!Ps?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Ga&&n&&Va(t),t.flags|=1,Fs(e,t,r,i),t.child)}function Ls(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Rs(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return rc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function Rs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref)if(Ps=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ps=!0);else return t.lanes=e.lanes,rc(e,t,i)}return Vs(e,t,n,r,i)}function zs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ri(Uc,Hc),Hc|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Ri(Uc,Hc),Hc|=r;else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ri(Uc,Hc),Hc|=e,null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Ri(Uc,Hc),Hc|=r;return Fs(e,t,i,n),t.child}function Bs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vs(e,t,n,r,i){var a=Wi(n)?Hi:Bi.current;return a=Ui(t,a),da(t,i),n=No(e,t,n,r,a,i),r=Po(),e!==null&&!Ps?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Ga&&r&&Va(t),t.flags|=1,Fs(e,t,n,i),t.child)}function Hs(e,t,n,r,i){if(Wi(n)){var a=!0;Ji(t)}else a=!1;if(da(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Da(t,n,r),ka(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=fa(l):(l=Wi(n)?Hi:Bi.current,l=Ui(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Oa(t,o,r,l),ma=!1;var f=t.memoizedState;o.state=f,xa(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Vi.current||ma?(typeof u==`function`&&(wa(t,n,u,r),c=t.memoizedState),(s=ma||Ea(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ga(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ra(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=fa(c):(c=Wi(n)?Hi:Bi.current,c=Ui(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Oa(t,o,r,c),ma=!1,f=t.memoizedState,o.state=f,xa(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Vi.current||ma?(typeof p==`function`&&(wa(t,n,p,r),m=t.memoizedState),(l=ma||Ea(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Us(e,t,n,r,a,i)}function Us(e,t,n,r,i,a){Bs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&Yi(t,n,!1),rc(e,t,a);r=t.stateNode,Ns.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ao(t,e.child,null,a),t.child=ao(t,null,s,a)):Fs(e,t,s,a),t.memoizedState=r.state,i&&Yi(t,n,!0),t.child}function Ws(e){var t=e.stateNode;t.pendingContext?Ki(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ki(e,t.context,!1),po(e,t.containerInfo)}function Gs(e,t,n,r,i){return $a(),eo(i),t.flags|=256,Fs(e,t,n,r),t.child}var Ks={dehydrated:null,treeContext:null,retryLane:0};function qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Js(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function Ys(e,t,n){var i=t.pendingProps,a=_o.current,o=!1,s=(t.flags&128)!=0,c;if((c=s)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!=0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ri(_o,a&1),e===null)return Xa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=i.children,e=i.fallback,o?(i=t.mode,o=t.child,a={mode:`hidden`,children:a},!(i&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Ql(a,i,0,null),e=Zl(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qs(n),t.memoizedState=Ks,e):Xs(t,a));if(a=e.memoizedState,a!==null){if(c=a.dehydrated,c!==null){if(s)return t.flags&256?(t.flags&=-257,$s(e,t,n,Error(r(422)))):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,n,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&ao(t,e.child,null,n),t.child.memoizedState=qs(n),t.memoizedState=Ks,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))t=$s(e,t,n,null);else if(c.data===`$!`)t=$s(e,t,n,Error(r(419)));else if(i=(n&e.childLanes)!==0,Ps||i){if(i=zc,i!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}i=(o&(i.suspendedLanes|n))===0?o:0,i!==0&&i!==a.retryLane&&(a.retryLane=i,fl(e,i,-1))}Ol(),t=$s(e,t,n,Error(r(421)))}else c.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),c._reactRetry=t,t=null):(n=a.treeContext,Wa=xi(c.nextSibling),Ua=t,Ga=!0,Ka=null,n!==null&&(Pa[Fa++]=La,Pa[Fa++]=Ra,Pa[Fa++]=Ia,La=n.id,Ra=n.overflow,Ia=t),t=Xs(t,t.pendingProps.children),t.flags|=4096);return t}return o?(i=Qs(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?qs(n):Js(a,n),o.childLanes=e.childLanes&~n,t.memoizedState=Ks,i):(n=Zs(e,t,i.children,n),t.memoizedState=null,n)}return o?(i=Qs(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?qs(n):Js(a,n),o.childLanes=e.childLanes&~n,t.memoizedState=Ks,i):(n=Zs(e,t,i.children,n),t.memoizedState=null,n)}function Xs(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Zs(e,t,n,r){var i=e.child;return e=i.sibling,n=Yl(i,{mode:`visible`,children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Qs(e,t,n,r,i){var a=t.mode;e=e.child;var o=e.sibling,s={mode:`hidden`,children:n};return!(a&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=Yl(e,s),n.subtreeFlags=e.subtreeFlags&14680064),o===null?(r=Zl(r,a,i,null),r.flags|=2):r=Yl(o,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function $s(e,t,n,r){return r!==null&&eo(r),ao(t,e.child,null,n),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ua(e.return,t,n)}function tc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function nc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Fs(e,t,r.children,n),r=_o.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ec(e,n,t);else if(e.tag===19)ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ri(_o,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&vo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tc(t,!0,n,null,a);break;case`together`:tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ic(e,t,n){switch(t.tag){case 3:Ws(t),$a();break;case 5:ho(t);break;case 1:Wi(t.type)&&Ji(t);break;case 4:po(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ri(ia,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ri(_o,_o.current&1),e=rc(e,t,n),e===null?null:e.sibling):Ys(e,t,n):(Ri(_o,_o.current&1),t.flags|=128,null);Ri(_o,_o.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ri(_o,_o.current),r)break;return null;case 22:case 23:return t.lanes=0,zs(e,t,n)}return rc(e,t,n)}function ac(e,t){switch(Ha(t),t.tag){case 1:return Wi(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mo(),Li(Vi),Li(Bi),bo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return go(t),null;case 13:if(Li(_o),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Li(_o),null;case 4:return mo(),null;case 10:return la(t.type._context),null;case 22:case 23:return wl(),null;case 24:return null;default:return null}}var oc=!1,sc=!1,cc=typeof WeakSet==`function`?WeakSet:Set,X=null;function lc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Rl(e,t,n)}else n.current=null}function uc(e,t,n){try{n()}catch(n){Rl(e,t,n)}}var dc=!1;function fc(e,t){if(fi=nn,e=wr(),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(pi={focusedElem:e,selectionRange:n},nn=!1,X=t;X!==null;)if(t=X,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ra(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;if(y.nodeType===1)y.textContent=``;else if(y.nodeType===9){var b=y.body;b!=null&&(b.textContent=``)}break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Rl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return h=dc,dc=!1,h}function pc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&uc(t,n,a)}i=i.next}while(i!==r)}}function mc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function gc(e){var t=e.alternate;t!==null&&(e.alternate=null,gc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wi],delete t[Ti],delete t[Di],delete t[Oi],delete t[ki])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _c(e){return e.tag===5||e.tag===3||e.tag===4}function vc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||_c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=di));else if(r!==4&&(e=e.child,e!==null))for(yc(e,t,n),e=e.sibling;e!==null;)yc(e,t,n),e=e.sibling}function bc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bc(e,t,n),e=e.sibling;e!==null;)bc(e,t,n),e=e.sibling}var xc=null,Sc=!1;function Cc(e,t,n){for(n=n.child;n!==null;)wc(e,t,n),n=n.sibling}function wc(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount==`function`)try{ft.onCommitFiberUnmount(dt,n)}catch{}switch(n.tag){case 5:sc||lc(n,t);case 6:var r=xc,i=Sc;xc=null,Cc(e,t,n),xc=r,Sc=i,xc!==null&&(Sc?(e=xc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xc.removeChild(n.stateNode));break;case 18:xc!==null&&(Sc?(e=xc,n=n.stateNode,e.nodeType===8?bi(e.parentNode,n):e.nodeType===1&&bi(e,n),en(e)):bi(xc,n.stateNode));break;case 4:r=xc,i=Sc,xc=n.stateNode.containerInfo,Sc=!0,Cc(e,t,n),xc=r,Sc=i;break;case 0:case 11:case 14:case 15:if(!sc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&uc(n,t,o),i=i.next}while(i!==r)}Cc(e,t,n);break;case 1:if(!sc&&(lc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Rl(n,t,e)}Cc(e,t,n);break;case 21:Cc(e,t,n);break;case 22:n.mode&1?(sc=(r=sc)||n.memoizedState!==null,Cc(e,t,n),sc=r):Cc(e,t,n);break;default:Cc(e,t,n)}}function Tc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ec(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:xc=c.stateNode,Sc=!1;break a;case 3:xc=c.stateNode.containerInfo,Sc=!0;break a;case 4:xc=c.stateNode.containerInfo,Sc=!0;break a}c=c.return}if(xc===null)throw Error(r(160));wc(o,s,a),xc=null,Sc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Rl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dc(t,e),t=t.sibling}function Dc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ec(t,e),Oc(e),i&4){try{pc(3,e,e.return),mc(3,e)}catch(t){Rl(e,e.return,t)}try{pc(5,e,e.return)}catch(t){Rl(e,e.return,t)}}break;case 1:Ec(t,e),Oc(e),i&512&&n!==null&&lc(n,n.return);break;case 5:if(Ec(t,e),Oc(e),i&512&&n!==null&&lc(n,n.return),e.flags&32){var a=e.stateNode;try{ye(a,``)}catch(t){Rl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&G(a,o),Ee(c,s);var u=Ee(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Ce(a,f):d===`dangerouslySetInnerHTML`?ve(a,f):d===`children`?ye(a,f):b(a,d,f,u)}switch(c){case`input`:ce(a,o);break;case`textarea`:me(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?de(a,!!o.multiple,o.multiple?[]:``,!1):de(a,!!o.multiple,o.defaultValue,!0)):de(a,!!o.multiple,m,!1)}a[Ti]=o}catch(t){Rl(e,e.return,t)}}break;case 6:if(Ec(t,e),Oc(e),i&4){if(e.stateNode===null)throw Error(r(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(t){Rl(e,e.return,t)}}break;case 3:if(Ec(t,e),Oc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{en(t.containerInfo)}catch(t){Rl(e,e.return,t)}break;case 4:Ec(t,e),Oc(e);break;case 13:Ec(t,e),Oc(e),u=e.child,u.flags&8192&&u.memoizedState!==null&&(u.alternate===null||u.alternate.memoizedState===null)&&(Zc=it()),i&4&&Tc(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(sc=(d=sc)||u,Ec(t,e),sc=d):Ec(t,e),Oc(e),i&8192){d=e.memoizedState!==null;a:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{a=p.stateNode,d?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Se(`display`,s))}catch(t){Rl(e,e.return,t)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=d?``:p.memoizedProps}catch(t){Rl(e,e.return,t)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break a;for(;p.sibling===null;){if(p.return===null||p.return===e)break a;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}if(d&&!u&&e.mode&1)for(X=e,e=e.child;e!==null;){for(u=X=e;X!==null;){switch(d=X,f=d.child,d.tag){case 0:case 11:case 14:case 15:pc(4,d,d.return);break;case 1:if(lc(d,d.return),o=d.stateNode,typeof o.componentWillUnmount==`function`){p=d,m=d.return;try{a=p,o.props=a.memoizedProps,o.state=a.memoizedState,o.componentWillUnmount()}catch(e){Rl(p,m,e)}}break;case 5:lc(d,d.return);break;case 22:if(d.memoizedState!==null){Mc(u);continue}}f===null?Mc(u):(f.return=d,X=f)}e=e.sibling}}break;case 19:Ec(t,e),Oc(e),i&4&&Tc(e);break;case 21:break;default:Ec(t,e),Oc(e)}}function Oc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(_c(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(ye(a,``),i.flags&=-33),bc(e,vc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;yc(e,vc(e),o);break;default:throw Error(r(161))}}catch(t){Rl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kc(e,t,n){X=e,Ac(e,t,n)}function Ac(e,t,n){for(var r=(e.mode&1)!=0;X!==null;){var i=X,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||oc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||sc;s=oc;var l=sc;if(oc=o,(sc=c)&&!l)for(X=i;X!==null;)o=X,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Nc(i):(c.return=o,X=c);for(;a!==null;)X=a,Ac(a,t,n),a=a.sibling;X=i,oc=s,sc=l}jc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,X=a):jc(e,t,n)}}function jc(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:sc||mc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!sc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ra(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Sa(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Sa(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&en(f)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(r(163))}sc||t.flags&512&&hc(t)}catch(e){Rl(t,t.return,e)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Mc(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function Nc(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mc(4,t)}catch(e){Rl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Rl(t,i,e)}}var a=t.return;try{hc(t)}catch(e){Rl(t,a,e)}break;case 5:var o=t.return;try{hc(t)}catch(e){Rl(t,o,e)}}}catch(e){Rl(t,t.return,e)}if(t===e){X=null;break}var s=t.sibling;if(s!==null){s.return=t.return,X=s;break}X=t.return}}var Pc=Math.ceil,Fc=x.ReactCurrentDispatcher,Ic=x.ReactCurrentOwner,Lc=x.ReactCurrentBatchConfig,Rc=0,zc=null,Bc=null,Vc=0,Hc=0,Uc=Ii(0),Wc=0,Gc=null,Kc=0,qc=0,Jc=0,Yc=null,Xc=null,Zc=0,Qc=1/0,$c=null,el=!1,tl=null,nl=null,rl=!1,il=null,al=0,ol=0,sl=null,cl=-1,ll=0;function ul(){return Rc&6?it():cl===-1?cl=it():cl}function dl(e){return e.mode&1?Rc&2&&Vc!==0?Vc&-Vc:na.transition===null?(e=At,e===0?(e=window.event,e=e===void 0?16:ln(e.type),e):e):(ll===0&&(ll=Tt()),ll):1}function fl(e,t,n){if(50<ol)throw ol=0,sl=null,Error(r(185));var i=pl(e,t);return i===null?null:(Dt(i,t,n),(!(Rc&2)||i!==zc)&&(i===zc&&(!(Rc&2)&&(qc|=t),Wc===4&&bl(i,Vc)),hl(i,n),t===1&&Rc===0&&!(e.mode&1)&&(Qc=it()+500,Zi&&ta())),i)}function pl(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function ml(e){return(zc!==null||pa!==null)&&(e.mode&1)!=0&&(Rc&2)==0}function hl(e,t){var n=e.callbackNode;Ct(e,t);var r=xt(e,e===zc?Vc:0);if(r===0)n!==null&&tt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&tt(n),t===1)e.tag===0?ea(xl.bind(null,e)):$i(xl.bind(null,e)),vi(function(){Rc===0&&ta()}),n=null;else{switch(jt(r)){case 1:n=ot;break;case 4:n=st;break;case 16:n=ct;break;case 536870912:n=ut;break;default:n=ct}n=Wl(n,gl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gl(e,t){if(cl=-1,ll=0,Rc&6)throw Error(r(327));var n=e.callbackNode;if(Il()&&e.callbackNode!==n)return null;var i=xt(e,e===zc?Vc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=kl(e,i);else{t=i;var a=Rc;Rc|=2;var o=Dl();(zc!==e||Vc!==t)&&($c=null,Qc=it()+500,Tl(e,t));do try{jl();break}catch(t){El(e,t)}while(1);ca(),Fc.current=o,Rc=a,Bc===null?(zc=null,Vc=0,t=Wc):t=0}if(t!==0){if(t===2&&(a=wt(e),a!==0&&(i=a,t=_l(e,a))),t===1)throw n=Gc,Tl(e,0),bl(e,i),hl(e,it()),n;if(t===6)bl(e,i);else{if(a=e.current.alternate,!(i&30)&&!yl(a)&&(t=kl(e,i),t===2&&(o=wt(e),o!==0&&(i=o,t=_l(e,o))),t===1))throw n=Gc,Tl(e,0),bl(e,i),hl(e,it()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Pl(e,Xc,$c);break;case 3:if(bl(e,i),(i&130023424)===i&&(t=Zc+500-it(),10<t)){if(xt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){ul(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=hi(Pl.bind(null,e,Xc,$c),t);break}Pl(e,Xc,$c);break;case 4:if(bl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-mt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=it()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Pc(i/1960))-i,10<i){e.timeoutHandle=hi(Pl.bind(null,e,Xc,$c),i);break}Pl(e,Xc,$c);break;case 5:Pl(e,Xc,$c);break;default:throw Error(r(329))}}}return hl(e,it()),e.callbackNode===n?gl.bind(null,e):null}function _l(e,t){var n=Yc;return e.current.memoizedState.isDehydrated&&(Tl(e,t).flags|=256),e=kl(e,t),e!==2&&(t=Xc,Xc=n,t!==null&&vl(t)),e}function vl(e){Xc===null?Xc=e:Xc.push.apply(Xc,e)}function yl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bl(e,t){for(t&=~Jc,t&=~qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mt(t),r=1<<n;e[n]=-1,t&=~r}}function xl(e){if(Rc&6)throw Error(r(327));Il();var t=xt(e,0);if(!(t&1))return hl(e,it()),null;var n=kl(e,t);if(e.tag!==0&&n===2){var i=wt(e);i!==0&&(t=i,n=_l(e,i))}if(n===1)throw n=Gc,Tl(e,0),bl(e,t),hl(e,it()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pl(e,Xc,$c),hl(e,it()),null}function Sl(e,t){var n=Rc;Rc|=1;try{return e(t)}finally{Rc=n,Rc===0&&(Qc=it()+500,Zi&&ta())}}function Cl(e){il!==null&&il.tag===0&&!(Rc&6)&&Il();var t=Rc;Rc|=1;var n=Lc.transition,r=At;try{if(Lc.transition=null,At=1,e)return e()}finally{At=r,Lc.transition=n,Rc=t,!(Rc&6)&&ta()}}function wl(){Hc=Uc.current,Li(Uc)}function Tl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gi(n)),Bc!==null)for(n=Bc.return;n!==null;){var r=n;switch(Ha(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gi();break;case 3:mo(),Li(Vi),Li(Bi),bo();break;case 5:go(r);break;case 4:mo();break;case 13:Li(_o);break;case 19:Li(_o);break;case 10:la(r.type._context);break;case 22:case 23:wl()}n=n.return}if(zc=e,Bc=e=Yl(e.current,null),Vc=Hc=t,Wc=0,Gc=null,Jc=qc=Kc=0,Xc=Yc=null,pa!==null){for(t=0;t<pa.length;t++)if(n=pa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}pa=null}return e}function El(e,t){do{var n=Bc;try{if(ca(),xo.current=hs,Do){for(var i=wo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Do=!1}if(Co=0,Eo=To=wo=null,Oo=!1,ko=0,Ic.current=null,n===null||n.return===null){Wc=1,Gc=t,Bc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Vc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ts(s);if(m!==null){m.flags&=-257,Es(m,s,c,o,t),m.mode&1&&ws(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){ws(o,u,t),Ol();break a}l=Error(r(426))}}else if(Ga&&c.mode&1){var _=Ts(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Es(_,s,c,o,t),eo(l);break a}}o=l,Wc!==4&&(Wc=2),Yc===null?Yc=[o]:Yc.push(o),l=ys(l,c),c=s;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var v=Ss(c,l,t);ba(c,v);break a;case 1:o=l;var y=c.type,b=c.stateNode;if(!(c.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(nl===null||!nl.has(b)))){c.flags|=65536,t&=-t,c.lanes|=t;var x=Cs(c,o,t);ba(c,x);break a}}c=c.return}while(c!==null)}Nl(n)}catch(e){t=e,Bc===n&&n!==null&&(Bc=n=n.return);continue}break}while(1)}function Dl(){var e=Fc.current;return Fc.current=hs,e===null?hs:e}function Ol(){(Wc===0||Wc===3||Wc===2)&&(Wc=4),zc===null||!(Kc&268435455)&&!(qc&268435455)||bl(zc,Vc)}function kl(e,t){var n=Rc;Rc|=2;var i=Dl();(zc!==e||Vc!==t)&&($c=null,Tl(e,t));do try{Al();break}catch(t){El(e,t)}while(1);if(ca(),Rc=n,Fc.current=i,Bc!==null)throw Error(r(261));return zc=null,Vc=0,Wc}function Al(){for(;Bc!==null;)Ml(Bc)}function jl(){for(;Bc!==null&&!nt();)Ml(Bc)}function Ml(e){var t=Ul(e.alternate,e,Hc);e.memoizedProps=e.pendingProps,t===null?Nl(e):Bc=t,Ic.current=null}function Nl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ac(n,t),n!==null){n.flags&=32767,Bc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Wc=6,Bc=null;return}}else if(n=Ms(n,t,Hc),n!==null){Bc=n;return}if(t=t.sibling,t!==null){Bc=t;return}Bc=t=e}while(t!==null);Wc===0&&(Wc=5)}function Pl(e,t,n){var r=At,i=Lc.transition;try{Lc.transition=null,At=1,Fl(e,t,n,r)}finally{Lc.transition=i,At=r}return null}function Fl(e,t,n,i){do Il();while(il!==null);if(Rc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ot(e,o),e===zc&&(Bc=zc=null,Vc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rl||(rl=!0,Wl(ct,function(){return Il(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Lc.transition,Lc.transition=null;var s=At;At=1;var c=Rc;Rc|=4,Ic.current=null,fc(e,n),Dc(n,e),Er(pi),nn=!!fi,pi=fi=null,e.current=n,kc(n,e,a),rt(),Rc=c,At=s,Lc.transition=o}else e.current=n;if(rl&&(rl=!1,il=e,al=a),o=e.pendingLanes,o===0&&(nl=null),pt(n.stateNode,i),hl(e,it()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)i(t[n]);if(el)throw el=!1,e=tl,tl=null,e;return al&1&&e.tag!==0&&Il(),o=e.pendingLanes,o&1?e===sl?ol++:(ol=0,sl=e):ol=0,ta(),null}function Il(){if(il!==null){var e=jt(al),t=Lc.transition,n=At;try{if(Lc.transition=null,At=16>e?16:e,il===null)var i=!1;else{if(e=il,il=null,al=0,Rc&6)throw Error(r(331));var a=Rc;for(Rc|=4,X=e.current;X!==null;){var o=X,s=o.child;if(X.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(X=u;X!==null;){var d=X;switch(d.tag){case 0:case 11:case 15:pc(8,d,o)}var f=d.child;if(f!==null)f.return=d,X=f;else for(;X!==null;){d=X;var p=d.sibling,m=d.return;if(gc(d),d===u){X=null;break}if(p!==null){p.return=m,X=p;break}X=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}X=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,X=s;else b:for(;X!==null;){if(o=X,o.flags&2048)switch(o.tag){case 0:case 11:case 15:pc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,X=v;break b}X=o.return}}var y=e.current;for(X=y;X!==null;){s=X;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,X=b;else b:for(s=y;X!==null;){if(c=X,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:mc(9,c)}}catch(e){Rl(c,c.return,e)}if(c===s){X=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,X=x;break b}X=c.return}}if(Rc=a,ta(),ft&&typeof ft.onPostCommitFiberRoot==`function`)try{ft.onPostCommitFiberRoot(dt,e)}catch{}i=!0}return i}finally{At=n,Lc.transition=t}}return!1}function Ll(e,t,n){t=ys(n,t),t=Ss(e,t,1),va(e,t),t=ul(),e=pl(e,1),e!==null&&(Dt(e,1,t),hl(e,t))}function Rl(e,t,n){if(e.tag===3)Ll(e,e,n);else for(;t!==null;){if(t.tag===3){Ll(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nl===null||!nl.has(r))){e=ys(n,e),e=Cs(t,e,1),va(t,e),e=ul(),t=pl(t,1),t!==null&&(Dt(t,1,e),hl(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,zc===e&&(Vc&n)===n&&(Wc===4||Wc===3&&(Vc&130023424)===Vc&&500>it()-Zc?Tl(e,0):Jc|=n),hl(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=yt,yt<<=1,!(yt&130023424)&&(yt=4194304)):t=1);var n=ul();e=pl(e,t),e!==null&&(Dt(e,t,n),hl(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vi.current)Ps=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ps=!1,ic(e,t,n);Ps=!!(e.flags&131072)}else Ps=!1,Ga&&t.flags&1048576&&Ba(t,Na,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var a=Ui(t,Bi.current);da(t,n),a=No(null,t,i,e,a,n);var o=Po();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wi(i)?(o=!0,Ji(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ha(t),a.updater=Ta,t.stateNode=a,a._reactInternals=t,ka(t,i,e,n),t=Us(null,t,i,!0,o,n)):(t.tag=0,Ga&&o&&Va(t),Fs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=ra(i,e),a){case 0:t=Vs(null,t,i,e,n);break a;case 1:t=Hs(null,t,i,e,n);break a;case 11:t=Is(null,t,i,e,n);break a;case 14:t=Ls(null,t,i,ra(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Vs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Hs(e,t,i,a,n);case 3:a:{if(Ws(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,ga(e,t),xa(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Error(r(423)),t=Gs(e,t,i,n,a);break a}else if(i!==a){a=Error(r(424)),t=Gs(e,t,i,n,a);break a}else for(Wa=xi(t.stateNode.containerInfo.firstChild),Ua=t,Ga=!0,Ka=null,n=oo(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($a(),i===a){t=rc(e,t,n);break a}Fs(e,t,i,n)}t=t.child}return t;case 5:return ho(t),e===null&&Xa(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,mi(i,a)?s=null:o!==null&&mi(i,o)&&(t.flags|=32),Bs(e,t),Fs(e,t,s,n),t.child;case 6:return e===null&&Xa(t),null;case 13:return Ys(e,t,n);case 4:return po(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ao(t,null,i,n):Fs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),Is(e,t,i,a,n);case 7:return Fs(e,t,t.pendingProps,n),t.child;case 8:return Fs(e,t,t.pendingProps.children,n),t.child;case 12:return Fs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Ri(ia,i._currentValue),i._currentValue=s,o!==null)if(yr(o.value,s)){if(o.children===a.children&&!Vi.current){t=rc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=_a(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ua(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),ua(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Fs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,da(t,n),a=fa(a),i=i(a),t.flags|=1,Fs(e,t,i,n),t.child;case 14:return i=t.type,a=ra(i,t.pendingProps),a=ra(i.type,a),Ls(e,t,i,a,n);case 15:return Rs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ra(i,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Wi(i)?(e=!0,Ji(t)):e=!1,da(t,n),Da(t,i,a),ka(t,i,a,n),Us(null,t,i,!0,e,n);case 19:return nc(e,t,n);case 22:return zs(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return et(e,t)}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return ql(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===M)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case w:return Zl(n.children,a,o,t);case T:s=8,a|=8;break;case E:return e=Kl(12,n,t,a|2),e.elementType=E,e.lanes=o,e;case A:return e=Kl(13,n,t,a),e.elementType=A,e.lanes=o,e;case j:return e=Kl(19,n,t,a),e.elementType=j,e.lanes=o,e;case P:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case D:s=10;break a;case O:s=9;break a;case k:s=11;break a;case M:s=14;break a;case N:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=P,e.lanes=n,e.stateNode={},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Et(0),this.expirationTimes=Et(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Et(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ha(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return zi;e=e._reactInternals;a:{if(Je(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Wi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Wi(n))return qi(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=ul(),i=dl(n),a=_a(r,i),a.callback=t??null,va(n,a),e.current.lanes=i,Dt(e,i,r),hl(e,r),e}function ou(e,t,n,r){var i=t.current,a=ul(),o=dl(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=_a(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),va(i,t),e=fl(i,o,a),e!==null&&ya(e,i,o),o}function su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cl(function(){ou(null,e,null,null)}),t[Ei]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ft();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wt.length&&t!==0&&t<Wt[n].priority;n++);Wt.splice(n,0,e),n===0&&Yt(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Ei]=o.current,ei(e.nodeType===8?e.parentNode:e),Cl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Ei]=c.current,ei(e.nodeType===8?e.parentNode:e),Cl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}Mt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bt(t.pendingLanes);n!==0&&(kt(t,n|1),hl(t,it()),!(Rc&6)&&(Qc=it()+500,ta()))}break;case 13:var r=ul();Cl(function(){return fl(e,1,r)}),lu(e,1)}},Nt=function(e){e.tag===13&&(fl(e,134217728,ul()),lu(e,134217728))},Pt=function(e){if(e.tag===13){var t=ul(),n=dl(e);fl(e,n,t),lu(e,n)}},Ft=function(){return At},It=function(e,t){var n=At;try{return At=e,t()}finally{At=n}},Oe=function(e,t,n){switch(t){case`input`:if(ce(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Ni(i);if(!a)throw Error(r(90));ae(i),ce(i,a)}}}break;case`textarea`:me(e,n);break;case`select`:t=n.value,t!=null&&de(e,!!n.multiple,t,!1)}},Ne=Sl,Pe=Cl;var yu={usingClientEntryPoint:!1,Events:[ji,Mi,Ni,je,Me,Sl]},bu={findFiberByHostInstance:Ai,bundleType:0,version:`18.1.0`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qe(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.1.0-next-22edb9f77-20220426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{dt=Su.inject(xu),ft=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Ei]=t.current,ei(e.nodeType===8?e.parentNode:e),new fu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=Qe(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Cl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Ei]=t.current,ei(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(Cl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ei]=null})}),!0):!1},e.unstable_batchedUpdates=Sl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.1.0-next-22edb9f77-20220426`})),Uu=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Hu()})),Wu=o((e=>{var t=Uu();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),Z=l(zu()),Gu=function(e){return e[e.Unclassified=0]=`Unclassified`,e[e.Primary=1]=`Primary`,e[e.Secondary=2]=`Secondary`,e[e.K12=3]=`K12`,e[e.Tertiary=4]=`Tertiary`,e[e.NonEducational=5]=`NonEducational`,e[e.Partners=6]=`Partners`,e[e.Internal=7]=`Internal`,e[e.Other=8]=`Other`,e[e.ClickView=254]=`ClickView`,e[e.System=255]=`System`,e}({}),Ku=function(e){return e.Unclassified=`Unclassified`,e.Primary=`Primary`,e.Secondary=`Secondary`,e.K12=`K12`,e.Tertiary=`Tertiary`,e.NonEducational=`NonEducational`,e.Partners=`Partners`,e.Internal=`Internal`,e.Other=`Other`,e.ClickView=`ClickView`,e.System=`System`,e}({});Gu.Primary,Gu.Secondary,Gu.Primary,Gu.Secondary,Gu.Secondary,Gu.Primary,Gu.Primary,Gu.Primary,Gu.Secondary,Gu.Primary;var qu=o((e=>{var t=zu(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),Q=o(((e,t)=>{t.exports=qu()}))();function Ju(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z`})})}function Yu(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`})})}function Xu(e){let t=!!e.ipAuthGuests?.length;return Z.useEffect(()=>{t?e.navigate({step:`username-or-guest`,backStep:null}):e.navigate({step:`username-input`,backStep:null})},[t]),(0,Q.jsx)(Q.Fragment,{})}var Zu={back:`_back_rcp4h_1`};function Qu(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z`})})}function $u(e){return(0,Q.jsxs)(`span`,{className:`${Zu.back} position-relative d-inline-flex flex-row cursor-pointer`,role:`button`,tabIndex:0,onClick:e.onClick,children:[(0,Q.jsx)(Qu,{}),(0,Q.jsx)(`span`,{children:`Back`})]})}function ed(...e){let t=[];for(let n of e)if(n)if(typeof n==`object`)for(let e of Object.keys(n))n[e]&&t.push(e);else typeof n==`string`&&t.push(n);return t.join(` `)}function td(e){let{onClickBack:t,children:n}=e,r=!!e.title?.length;return r||n||t?(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsxs)(`div`,{className:`text-left position-relative d-flex flex-column gap-3`,children:[!!t&&(0,Q.jsx)($u,{onClick:t}),r&&(0,Q.jsx)(`h1`,{className:ed(`h2`,e?.className?.title),children:e.title})]}),n&&(0,Q.jsx)(`p`,{className:ed(`text-start my-2`,e?.className?.description),children:n})]}):(0,Q.jsx)(Q.Fragment,{})}function nd(e){let{showSpinner:t,children:n,className:r,...i}=e,a=Z.useRef(null),[o,s]=Z.useState({});return Z.useEffect(()=>{let{width:e,height:t}=o;if(e&&t)return;let n=a.current,r=n.offsetHeight,i=n.offsetWidth;!r||!i||s({width:i,height:r})}),Z.useEffect(()=>{let{width:e,height:t}=o;if(!e||!t)return;let n=a.current;n.style.width=`${e+1}px`,n.style.height=`${t+1}px`},[o]),(0,Q.jsx)(`button`,{ref:a,disabled:t,className:`${r} d-flex justify-content-center align-items-center`,...i,children:t?(0,Q.jsx)(`span`,{className:`spinner-border`,role:`status`,children:(0,Q.jsx)(`span`,{className:`visually-hidden`,children:`Loading...`})}):n})}function rd(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z`})})}var id={back:`_back_fw24y_1`};function ad(e){switch(e){case`email`:return`Email`;case`username`:return`Username or email `;default:return null}}function od(e){switch(e){case`email`:return`Enter your email`;case`username`:return`Enter your username or email`;default:return null}}function sd(e){switch(e){case`email`:return`email`;case`username`:return`username email`;default:return null}}function cd(e){let t=!e.hideCloseButton&&typeof e.onClickClose==`function`,n=`form-control form-control-lg`;return e.isError&&(n+=` is-invalid`),e.additionalClassNames&&(n+=` `+e.additionalClassNames),(0,Q.jsxs)(`div`,{children:[!e.hideLabel&&(0,Q.jsx)(`label`,{htmlFor:e.name,children:ad(e.type)}),(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`input`,{className:n,type:`text`,"aria-label":od(e.type),placeholder:od(e.type),autoFocus:!0,value:e.value,onChange:e.onChange,disabled:e.disabled,autoComplete:sd(e.type),autoCorrect:`off`,autoCapitalize:`none`,spellCheck:`false`,name:e.name,id:e.name,"aria-invalid":e.ariaInvalid,"aria-errormessage":e.ariaErrorMessage}),t&&(0,Q.jsx)(`span`,{className:`${id.back} position-absolute cursor-pointer text-gray-800`,role:`button`,tabIndex:0,onClick:e.onClickClose,children:(0,Q.jsx)(rd,{})})]})]})}var ld={kbEmailInUse:`https://support.clickvieweducation.com/hc/articles/42460495601305`,verifyEmail:`https://support.clickvieweducation.com/hc/articles/42594760983705`,verifyEmailNotReceived:`https://support.clickvieweducation.com/hc/articles/43193378048665`,contactSupport:`https://www.clickvieweducation.com/contact-us`,marketingSite:{au:`https://www.clickvieweducation.com/en-au`,nz:`https://www.clickview.co.nz`,uk:`https://www.clickvieweducation.com/en-gb`,us:`https://www.clickvieweducation.com`,ca:`https://www.clickvieweducation.com/en-ca`}};function ud(e){return hd[e]||md}var dd=`If the error persists please contact ClickView Support.`,fd=`If the error persists please contact your ClickView Administrator.`,pd=`Please contact your ClickView Administrator for further assistance.`,md={message:`Oops! Something went wrong...`,additionalInformation:dd,errorImage:`default-v2.png`},hd={error:md,"invalid-token":{message:`This link is either invalid or expired.`,errorImage:`link-not-found-v2.png`},"invalid-code":{message:`This code is either invalid or expired.`,errorImage:`link-not-found-v2.png`},"validation-failure":{message:`The information provided is not valid.`,additionalInformation:dd,errorImage:`incorrect-information-v2.png`},"user.email-in-use-as-username":{message:`This email address is already in use by another account.`,moreInfoUrl:ld.kbEmailInUse,errorImage:`email-error-v2.png`},"user.not-found":{message:`Oh oh! We can't find this account.`,additionalInformation:pd,errorImage:`user-not-found-v2.png`},"user.disabled":{message:`Oops! Looks like this account has been deactivated.`,additionalInformation:pd,errorImage:`user-disabled-v2.png`},"user.no-login":{message:`This account does not have a login.`,additionalInformation:pd,errorImage:`access-forbidden-v2.png`},"user.invalid-password":{message:`The provided username or password is incorrect.`,errorImage:`access-forbidden-v2.png`},"user.same-password":{message:`The provided password is the same as the current password.`,errorImage:`access-forbidden-v2.png`},"user.password-too-short":{message:`The provided password is too short.`,errorImage:`access-forbidden-v2.png`},"user.not-activated":{message:`The account has not been activated. Please check your email for an activation link and try again.`,errorImage:`email-error-v2.png`},"user.already-activated":{message:`This account has already been activated.`,errorImage:`already-activated-v2.png`},"user.locked-out":{message:`Your account has temporarily been locked due to too many failed login attempts. Please try again in a few minutes.`,errorImage:`locked-account-v2.png`},"user.invalid-first-name":{message:`The provided first name is invalid.`,errorImage:`default-v2.png`},"user.invalid-surname":{message:`The provided surname is invalid.`,errorImage:`default-v2.png`},"user.invalid-jobtitle":{message:`The provided job title is incorrect.`,errorImage:`default-v2.png`},"user.no-external-user-data":{message:`Oops! We can't get the information from your IDP.`,errorImage:`default-v2.png`},"user.empty-first-name":{message:`The first name must be provided.`,errorImage:`default-v2.png`},"user.empty-surname":{message:`The surname must be provided.`,errorImage:`default-v2.png`},"user.display-name-too-long":{message:`The maximum length for display name is 70 characters.`,errorImage:`default-v2.png`},"user.display-name-too-short":{message:`The minimum length for display name is 2 characters.`,errorImage:`default-v2.png`},"user.unknown-user-type":{message:`The account type needs to be provided.`,errorImage:`default-v2.png`},"user.invalid-email":{message:`The provided email is invalid.`,errorImage:`email-error-v2.png`},"user.email-too-long":{message:`The maximum length for email is 255 characters.`,errorImage:`email-error-v2.png`},"user.email-already-exists":{message:`This email address is already in use by another account.`,errorImage:`email-error-v2.png`},"user.unknown-year-group":{message:`The year level or grade must be provided for student account.`,errorImage:`default-v2.png`},"customer.not-found":{message:`The customer of this account could not be found.`,errorImage:`not-found-v2.png`},"user.empty-customer":{message:`The customer mapping does not exist.`,errorImage:`default-v2.png`},"user.no-email":{message:`The account does not have an email.`,errorImage:`email-error-v2.png`},"user.email-not-allowed":{message:`Oops! That email won't work to sign in to ClickView. Try using your school account instead.`,errorImage:`email-error-v2.png`},"user.signup-not-allowed":{message:`Student sign up is currently not supported.`,errorImage:`default-v2.png`},"user.invalid-external-user-role":{message:`The external user role is not supported`,errorImage:`default-v2.png`},"user.user-type-not-matched":{message:`The provided user type does not match the existing user`,errorImage:`default-v2.png`},"user.already-logged-in":{message:`You already have an account on ClickView`,errorImage:`default-v2.png`},"login.error":{message:`Uh oh! We cannot log you in at this time.`,additionalInformation:dd,errorImage:`default-v2.png`},"login.invalid-login-state":{message:`Your session has expired.`,additionalInformation:`Please login and try again.`,errorImage:`incorrect-information-v2.png`},"login.no-ip":{message:`IP address could not be detected for IP auth`,errorImage:`default-v2.png`},"verify-email.error":{message:`There was an issue verifying your email address, please try again.`,additionalInformation:fd,errorImage:`email-error-v2.png`},"forgot-password.no-account":{message:`No account can be found for the provided username or email address.`},"forgot-password.no-verified-email":{message:`Your account needs to be linked to a verified email to receive a password reset link. `+pd},"idp.wonde-missing-data":{message:`MyLogin currently only supports logins via Wonde. Please contact ClickView support for assistance.`,errorImage:`default-v2.png`},"idp.rm-missing-data":{message:`Failed to retrieve data from RM Unify.`,errorImage:`default-v2.png`},"saml2.login":{message:`There was an issue processing your login. Please try again`,errorImage:`default-v2.png`},"saml2.configuration-error":{preferServerError:!0,message:`There was an issue with the saml configuration. Please contact ClickView support for assistance.`,errorImage:`default-v2.png`},"http.400":{message:`The information provided was not quite what we were looking for.`,errorImage:`incorrect-information-v2.png`},"http.401":{message:`Uh oh! You don't have permission to access this page.`,errorImage:`access-forbidden-v2.png`},"http.403":{message:`Uh oh! You don't have permission to access this page.`,errorImage:`access-forbidden-v2.png`},"http.404":{message:`Oops! Nothing to see here.`,errorImage:`not-found-v2.png`},"http.500":{message:`Shoot! Looks like theres smoke coming out of our servers.`,additionalInformation:dd,errorImage:`smoky-server-v2.png`}};function gd(){return`Value is required.`}var _d=class extends Error{constructor(e,t,n){super(`An error has occured with errorCode: ${e}`),this.userMessage=t,this.errorCode=e,this.traceId=n}};function vd(e){let t=e.errorCode,n;return n=t===`validation-failure`?gd():ud(t).message,new _d(t,n,e.traceId)}var yd=new class{getXsrfToken(){let e=decodeURIComponent(document.cookie).split(`;`);for(let t=0;t<e.length;t++){let n=e[t];for(;n.charAt(0)===` `;)n=n.substring(1);if(n.indexOf(`XSRF-TOKEN=`)===0)return n.substring(11,n.length)}return``}getHeaders(){return{"x-csrf-token":this.getXsrfToken(),"content-type":`application/json`}}handleResponse(e){return e.json().then(t=>{if(!e.ok)throw vd(t);return t})}get(e){return fetch(e).then(e=>this.handleResponse(e))}post(e,t){let n={method:`POST`,headers:this.getHeaders(),body:t&&JSON.stringify(t)};return fetch(e,n).then(e=>this.handleResponse(e))}},bd={banner:`_banner_hzr93_1`,pluginBanner:`_pluginBanner_hzr93_5`};function xd(e){let t=Ed[e.bannerType];return t?(0,Q.jsx)(t,{}):(0,Q.jsx)(Q.Fragment,{})}var Sd=()=>(0,Q.jsxs)(`div`,{className:`${bd.banner} rounded mb-4 p-2 text-center mx-auto`,children:[`If your email address is already in use, please\xA0`,(0,Q.jsx)(`a`,{href:ld.contactSupport,target:`_blank`,className:`info-link`,children:`contact ClickView Support`}),`.`]}),Cd=()=>(0,Q.jsxs)(`div`,{className:`${bd.banner} rounded mb-4 p-2 text-center mx-auto`,children:[`If you did not receive a verification email,\xA0`,(0,Q.jsx)(`a`,{href:ld.verifyEmailNotReceived,target:`_blank`,className:`info-link`,children:`please see our support article`}),`\xA0or\xA0`,(0,Q.jsx)(`a`,{href:ld.contactSupport,target:`_blank`,className:`info-link`,children:`contact ClickView Support`}),`\xA0for help.`]}),wd=()=>(0,Q.jsx)(`div`,{className:`${bd.pluginBanner} position-absolute w-100 h-auto`,children:(0,Q.jsx)(`div`,{className:`text-center`,children:(0,Q.jsx)(`span`,{className:`text-light d-inline-block py-3 h6 mb-0`,children:`🎓️ Embed classroom-ready videos from ClickView`})})});function Td(){return(0,Q.jsx)(`div`,{style:{height:`3.626rem`}})}var Ed={"email-in-use":Sd,"check-email":Cd,plugin:wd};function Dd(){return(0,Q.jsx)(`span`,{className:`cv-logo d-inline-block`,children:(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:`M317.302 140.594c38.928 22.475 38.928 78.663 0 101.137L87.93 374.159c-51.737 29.87-109.635-28.028-79.764-79.765l42.745-74.035a58.39 58.39 0 0 0 0-58.392L8.165 87.929C-21.705 36.193 36.193-21.705 87.93 8.165z`}),(0,Q.jsx)(`path`,{fill:`#313543`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})})}var Od=`/images/clickview-xmas-logo-2026.png`;function kd(){return(0,Q.jsx)(`span`,{className:`cv-logo d-inline-block`,children:(0,Q.jsx)(`img`,{className:`h-100`,alt:`ClickView Xmas logo`,src:Od})})}var Ad={logo:`_logo_1ermx_1`};function jd(){return(0,Q.jsx)(`span`,{className:`${Ad.logo} d-inline-block`,children:(0,Q.jsxs)(`svg`,{width:`5614`,height:`1080`,viewBox:`0 0 5614 1080`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Q.jsx)(`path`,{d:`M539.597 1046.49C819.546 1046.49 1046.49 819.546 1046.49 539.597C1046.49 259.647 819.546 32.7028 539.597 32.7028C259.647 32.7028 32.7028 259.647 32.7028 539.597C32.7028 819.546 259.647 1046.49 539.597 1046.49Z`,fill:`white`}),(0,Q.jsx)(`path`,{d:`M1079.19 539.597C1079.19 241.586 837.608 0 539.597 0C241.586 0 0 241.586 0 539.597C0 837.608 241.586 1079.19 539.597 1079.19C837.608 1079.19 1079.19 837.608 1079.19 539.597ZM1046.49 539.597C1046.49 819.546 819.546 1046.49 539.597 1046.49C259.647 1046.49 32.7028 819.546 32.7028 539.597C32.7028 259.647 259.647 32.7028 539.597 32.7028C819.546 32.7028 1046.49 259.647 1046.49 539.597Z`,fill:`white`}),(0,Q.jsx)(`path`,{d:`M1046.49 539.597C1046.49 593.776 1037.97 645.963 1022.24 694.922C1017.33 660.088 1006.25 609.777 981.18 554.42C951.089 487.981 856.61 391.753 792.815 331.385C836.145 338.82 878.846 348.412 919.763 364.156C959.259 379.376 998.207 402.218 1034.65 430.2C1042.4 465.442 1046.49 502.035 1046.49 539.597Z`,fill:`#ADE1F9`}),(0,Q.jsx)(`path`,{d:`M564.419 640.626C547.183 638.435 529.981 636.244 512.885 633.831C403.162 618.297 293.381 591.562 196.897 537.056C132.368 500.602 84.1434 458.368 49.694 409.024V408.966C50.3116 406.67 50.9293 404.398 51.5586 402.114C59.4717 376.067 94.4223 285.258 196.535 290.887C220.951 292.227 314.976 303.473 328.156 413.29C329.124 421.343 330.056 429.407 331.606 437.379C352.094 542.871 468.926 601.573 559.093 638.505C560.865 639.227 562.648 639.915 564.419 640.626Z`,fill:`#E1FAE1`}),(0,Q.jsx)(`path`,{d:`M1034.65 430.2C998.207 402.218 959.259 379.376 919.763 364.156C878.846 348.412 836.145 338.82 792.815 331.385C697.66 315.034 599.521 309.067 511.113 271.017C464.998 251.158 420.549 220.566 399.537 174.976C379.469 131.471 380.086 94.0032 393.885 62.5722C396.659 56.2557 402.159 51.5125 408.825 49.7411C450.547 38.6347 494.367 32.7028 539.597 32.7028C719.058 32.7028 876.76 125.97 966.822 266.693C998.405 316.013 1021.67 371.195 1034.65 430.2Z`,fill:`#32B3EF`}),(0,Q.jsx)(`path`,{d:`M935.846 855.713C842.264 972.86 697.823 1047.61 535.96 1046.47C256.484 1044.51 32.3176 818.362 32.7022 538.874C32.7605 493.983 38.6809 450.466 49.694 409.024C84.1434 458.368 132.368 500.602 196.897 537.056C293.381 591.562 403.162 618.297 512.885 633.831C529.981 636.244 547.183 638.435 564.419 640.626C648.235 651.254 732.68 661.859 807.849 699.257C864.115 727.25 914.053 775.72 938.922 832.16C942.36 839.968 941.183 849.035 935.846 855.713Z`,fill:`#5ABD5E`}),(0,Q.jsx)(`path`,{d:`M1334.39 666.764C1342.47 652.634 1354.29 641.1 1369.86 632.161C1385.43 623.221 1403.17 618.752 1423.06 618.752C1444.4 618.752 1463.58 623.798 1480.59 633.891C1497.61 643.983 1511.01 658.257 1520.82 676.713C1530.62 694.879 1535.52 716.074 1535.52 740.296C1535.52 764.23 1530.62 785.569 1520.82 804.312C1511.01 823.056 1497.46 837.618 1480.16 847.999C1463.15 858.38 1444.11 863.571 1423.06 863.571C1402.59 863.571 1384.57 859.101 1369 850.162C1353.71 841.223 1342.18 829.832 1334.39 815.991V859.678H1295.03V539.597H1334.39V666.764ZM1495.3 740.296C1495.3 722.418 1491.69 706.846 1484.48 693.582C1477.28 680.317 1467.47 670.224 1455.07 663.304C1442.96 656.383 1429.55 652.923 1414.85 652.923C1400.43 652.923 1387.02 656.527 1374.62 663.736C1362.51 670.657 1352.7 680.894 1345.21 694.447C1338 707.711 1334.39 723.139 1334.39 740.729C1334.39 758.607 1338 774.323 1345.21 787.876C1352.7 801.141 1362.51 811.377 1374.62 818.586C1387.02 825.507 1400.43 828.967 1414.85 828.967C1429.55 828.967 1442.96 825.507 1455.07 818.586C1467.47 811.377 1477.28 801.141 1484.48 787.876C1491.69 774.323 1495.3 758.463 1495.3 740.296Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1791.5 622.645L1648.76 971.274H1608.1L1654.81 857.083L1559.22 622.645H1602.91L1677.3 814.694L1750.84 622.645H1791.5Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1396.94 429.813C1377.61 429.813 1360.21 426.499 1344.74 419.87C1329.28 412.966 1317.13 403.299 1308.29 390.871C1299.45 378.443 1295.03 363.943 1295.03 347.372H1345.57C1346.68 359.8 1351.51 370.019 1360.07 378.028C1368.91 386.038 1381.2 390.042 1396.94 390.042C1413.24 390.042 1425.94 386.176 1435.06 378.443C1444.17 370.433 1448.73 360.214 1448.73 347.786C1448.73 338.12 1445.83 330.248 1440.03 324.172C1434.5 318.096 1427.46 313.401 1418.9 310.087C1410.61 306.773 1399.01 303.182 1384.1 299.316C1365.32 294.344 1349.99 289.373 1338.12 284.402C1326.52 279.154 1316.57 271.145 1308.29 260.374C1300 249.602 1295.86 235.241 1295.86 217.289C1295.86 200.718 1300 186.218 1308.29 173.79C1316.57 161.361 1328.17 151.833 1343.09 145.204C1358 138.576 1375.26 135.262 1394.87 135.262C1422.77 135.262 1445.55 142.304 1463.23 156.39C1481.18 170.199 1491.12 189.256 1493.06 213.56H1440.86C1440.03 203.065 1435.06 194.089 1425.94 186.632C1416.83 179.175 1404.81 175.447 1389.9 175.447C1376.37 175.447 1365.32 178.899 1356.76 185.804C1348.2 192.708 1343.92 202.651 1343.92 215.632C1343.92 224.47 1346.54 231.788 1351.79 237.588C1357.31 243.112 1364.22 247.531 1372.5 250.845C1380.79 254.159 1392.11 257.75 1406.47 261.616C1425.53 266.864 1441 272.111 1452.87 277.359C1465.02 282.606 1475.24 290.754 1483.53 301.801C1492.09 312.573 1496.37 327.072 1496.37 345.3C1496.37 359.938 1492.37 373.747 1484.36 386.728C1476.62 399.709 1465.16 410.204 1449.97 418.213C1435.06 425.946 1417.38 429.813 1396.94 429.813Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1607.2 237.174V363.529C1607.2 372.09 1609.13 378.305 1613 382.171C1617.14 385.762 1624.04 387.557 1633.71 387.557H1662.71V426.913H1625.42C1604.16 426.913 1587.86 421.942 1576.54 411.999C1565.22 402.056 1559.55 385.9 1559.55 363.529V237.174H1532.63V198.646H1559.55V141.89H1607.2V198.646H1662.71V237.174H1607.2Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M1753.46 231.788C1760.37 220.189 1769.48 211.213 1780.81 204.86C1792.41 198.232 1806.08 194.918 1821.82 194.918V243.802H1809.81C1791.3 243.802 1777.22 248.498 1767.55 257.888C1758.16 267.278 1753.46 283.573 1753.46 306.773V426.913H1706.24V198.646H1753.46V231.788Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2074.44 307.187C2074.44 315.749 2073.89 323.482 2072.79 330.386H1898.37C1899.76 348.615 1906.52 363.252 1918.67 374.3C1930.83 385.347 1945.74 390.871 1963.42 390.871C1988.83 390.871 2006.78 380.238 2017.27 358.972H2068.23C2061.32 379.962 2048.76 397.223 2030.53 410.756C2012.58 424.013 1990.21 430.642 1963.42 430.642C1941.6 430.642 1921.99 425.808 1904.59 416.142C1887.47 406.199 1873.93 392.39 1863.99 374.714C1854.32 356.762 1849.49 336.048 1849.49 312.573C1849.49 289.097 1854.19 268.521 1863.58 250.845C1873.24 232.893 1886.64 219.084 1903.76 209.417C1921.16 199.751 1941.05 194.918 1963.42 194.918C1984.96 194.918 2004.15 199.613 2021 209.003C2037.85 218.393 2050.97 231.65 2060.36 248.774C2069.75 265.621 2074.44 285.092 2074.44 307.187ZM2025.14 292.273C2024.87 274.873 2018.65 260.926 2006.5 250.431C1994.35 239.936 1979.3 234.688 1961.34 234.688C1945.05 234.688 1931.1 239.936 1919.5 250.431C1907.9 260.65 1901 274.597 1898.79 292.273H2025.14Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2105.18 311.744C2105.18 288.821 2109.87 268.521 2119.26 250.845C2128.93 233.169 2141.91 219.498 2158.2 209.832C2174.78 199.889 2193 194.918 2212.89 194.918C2230.84 194.918 2246.45 198.508 2259.7 205.689C2273.24 212.594 2284.01 221.293 2292.02 231.788V198.646H2339.66V426.913H2292.02V392.942C2284.01 403.714 2273.1 412.69 2259.29 419.87C2245.48 427.051 2229.74 430.642 2212.06 430.642C2192.45 430.642 2174.5 425.67 2158.2 415.728C2141.91 405.509 2128.93 391.423 2119.26 373.471C2109.87 355.243 2105.18 334.667 2105.18 311.744ZM2292.02 312.573C2292.02 296.83 2288.7 283.159 2282.07 271.559C2275.72 259.959 2267.3 251.121 2256.8 245.045C2246.31 238.969 2234.98 235.931 2222.83 235.931C2210.68 235.931 2199.36 238.969 2188.86 245.045C2178.37 250.845 2169.8 259.545 2163.18 271.145C2156.82 282.468 2153.65 296.001 2153.65 311.744C2153.65 327.487 2156.82 341.296 2163.18 353.172C2169.8 365.048 2178.37 374.162 2188.86 380.514C2199.63 386.59 2210.96 389.628 2222.83 389.628C2234.98 389.628 2246.31 386.59 2256.8 380.514C2267.3 374.438 2275.72 365.6 2282.07 354C2288.7 342.124 2292.02 328.315 2292.02 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2678.01 194.918C2695.96 194.918 2711.98 198.646 2726.07 206.103C2740.43 213.56 2751.62 224.608 2759.63 239.245C2767.91 253.883 2772.05 271.559 2772.05 292.273V426.913H2725.24V299.316C2725.24 278.878 2720.13 263.273 2709.91 252.502C2699.69 241.455 2685.75 235.931 2668.07 235.931C2650.39 235.931 2636.31 241.455 2625.81 252.502C2615.59 263.273 2610.49 278.878 2610.49 299.316V426.913H2563.67V299.316C2563.67 278.878 2558.56 263.273 2548.34 252.502C2538.12 241.455 2524.18 235.931 2506.5 235.931C2488.83 235.931 2474.74 241.455 2464.25 252.502C2454.03 263.273 2448.92 278.878 2448.92 299.316V426.913H2401.69V198.646H2448.92V224.746C2456.65 215.355 2466.46 208.036 2478.33 202.789C2490.21 197.541 2502.91 194.918 2516.44 194.918C2534.67 194.918 2550.97 198.784 2565.33 206.517C2579.69 214.251 2590.74 225.436 2598.47 240.074C2605.38 226.265 2616.15 215.355 2630.79 207.346C2645.42 199.06 2661.17 194.918 2678.01 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2816.41 311.744C2816.41 288.821 2821.1 268.521 2830.49 250.845C2840.16 233.169 2853.14 219.498 2869.43 209.832C2886.01 199.889 2904.23 194.918 2924.12 194.918C2942.07 194.918 2957.68 198.508 2970.93 205.689C2984.47 212.594 2995.24 221.293 3003.25 231.788V198.646H3050.89V426.913H3003.25V392.942C2995.24 403.714 2984.33 412.69 2970.52 419.87C2956.71 427.051 2940.97 430.642 2923.29 430.642C2903.68 430.642 2885.73 425.67 2869.43 415.728C2853.14 405.509 2840.16 391.423 2830.49 373.471C2821.1 355.243 2816.41 334.667 2816.41 311.744ZM3003.25 312.573C3003.25 296.83 2999.93 283.159 2993.3 271.559C2986.95 259.959 2978.53 251.121 2968.03 245.045C2957.54 238.969 2946.21 235.931 2934.06 235.931C2921.91 235.931 2910.59 238.969 2900.09 245.045C2889.6 250.845 2881.03 259.545 2874.41 271.145C2868.05 282.468 2864.88 296.001 2864.88 311.744C2864.88 327.487 2868.05 341.296 2874.41 353.172C2881.03 365.048 2889.6 374.162 2900.09 380.514C2910.86 386.59 2922.19 389.628 2934.06 389.628C2946.21 389.628 2957.54 386.59 2968.03 380.514C2978.53 374.438 2986.95 365.6 2993.3 354C2999.93 342.124 3003.25 328.315 3003.25 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3160.15 232.617C3168.16 221.57 3179.07 212.594 3192.88 205.689C3206.96 198.508 3222.57 194.918 3239.69 194.918C3259.85 194.918 3278.08 199.751 3294.37 209.417C3310.67 219.084 3323.51 232.893 3332.9 250.845C3342.29 268.521 3346.99 288.821 3346.99 311.744C3346.99 334.667 3342.29 355.243 3332.9 373.471C3323.51 391.423 3310.53 405.509 3293.96 415.728C3277.66 425.67 3259.57 430.642 3239.69 430.642C3222.01 430.642 3206.27 427.189 3192.46 420.285C3178.93 413.38 3168.16 404.542 3160.15 393.771V426.913H3112.92V120.348H3160.15V232.617ZM3298.93 311.744C3298.93 296.001 3295.62 282.468 3288.99 271.145C3282.64 259.545 3274.07 250.845 3263.3 245.045C3252.81 238.969 3241.48 235.931 3229.33 235.931C3217.46 235.931 3206.13 238.969 3195.36 245.045C3184.87 251.121 3176.3 259.959 3169.68 271.559C3163.32 283.159 3160.15 296.83 3160.15 312.573C3160.15 328.315 3163.32 342.124 3169.68 354C3176.3 365.6 3184.87 374.438 3195.36 380.514C3206.13 386.59 3217.46 389.628 3229.33 389.628C3241.48 389.628 3252.81 386.59 3263.3 380.514C3274.07 374.162 3282.64 365.048 3288.99 353.172C3295.62 341.296 3298.93 327.487 3298.93 311.744Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3440.92 120.348V426.913H3393.69V120.348H3440.92Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3712.13 307.187C3712.13 315.749 3711.58 323.482 3710.48 330.386H3536.07C3537.45 348.615 3544.21 363.252 3556.36 374.3C3568.52 385.347 3583.43 390.871 3601.11 390.871C3626.52 390.871 3644.47 380.238 3654.96 358.972H3705.92C3699.01 379.962 3686.45 397.223 3668.22 410.756C3650.27 424.013 3627.9 430.642 3601.11 430.642C3579.29 430.642 3559.68 425.808 3542.28 416.142C3525.16 406.199 3511.62 392.39 3501.68 374.714C3492.01 356.762 3487.18 336.048 3487.18 312.573C3487.18 289.097 3491.88 268.521 3501.27 250.845C3510.93 232.893 3524.33 219.084 3541.45 209.417C3558.85 199.751 3578.74 194.918 3601.11 194.918C3622.65 194.918 3641.84 199.613 3658.69 209.003C3675.54 218.393 3688.66 231.65 3698.05 248.774C3707.44 265.621 3712.13 285.092 3712.13 307.187ZM3662.83 292.273C3662.56 274.873 3656.34 260.926 3644.19 250.431C3632.04 239.936 3616.99 234.688 3599.04 234.688C3582.74 234.688 3568.79 239.936 3557.19 250.431C3545.59 260.65 3538.69 274.597 3536.48 292.273H3662.83Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3913.45 388.8H4010.81V426.913H3866.23V138.99H3913.45V388.8Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4259.51 307.187C4259.51 315.749 4258.96 323.482 4257.86 330.386H4083.45C4084.83 348.615 4091.59 363.252 4103.75 374.3C4115.9 385.347 4130.81 390.871 4148.49 390.871C4173.9 390.871 4191.85 380.238 4202.34 358.972H4253.3C4246.4 379.962 4233.83 397.223 4215.6 410.756C4197.65 424.013 4175.28 430.642 4148.49 430.642C4126.67 430.642 4107.06 425.808 4089.66 416.142C4072.54 406.199 4059 392.39 4049.06 374.714C4039.39 356.762 4034.56 336.048 4034.56 312.573C4034.56 289.097 4039.26 268.521 4048.65 250.845C4058.31 232.893 4071.71 219.084 4088.83 209.417C4106.23 199.751 4126.12 194.918 4148.49 194.918C4170.03 194.918 4189.22 199.613 4206.07 209.003C4222.92 218.393 4236.04 231.65 4245.43 248.774C4254.82 265.621 4259.51 285.092 4259.51 307.187ZM4210.22 292.273C4209.94 274.873 4203.72 260.926 4191.57 250.431C4179.42 239.936 4164.37 234.688 4146.42 234.688C4130.12 234.688 4116.17 239.936 4104.57 250.431C4092.97 260.65 4086.07 274.597 4083.86 292.273H4210.22Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4290.25 311.744C4290.25 288.821 4294.94 268.521 4304.33 250.845C4314 233.169 4326.98 219.498 4343.28 209.832C4359.85 199.889 4378.07 194.918 4397.96 194.918C4415.91 194.918 4431.52 198.508 4444.77 205.689C4458.31 212.594 4469.08 221.293 4477.09 231.788V198.646H4524.73V426.913H4477.09V392.942C4469.08 403.714 4458.17 412.69 4444.36 419.87C4430.55 427.051 4414.81 430.642 4397.13 430.642C4377.52 430.642 4359.57 425.67 4343.28 415.728C4326.98 405.509 4314 391.423 4304.33 373.471C4294.94 355.243 4290.25 334.667 4290.25 311.744ZM4477.09 312.573C4477.09 296.83 4473.77 283.159 4467.14 271.559C4460.79 259.959 4452.37 251.121 4441.87 245.045C4431.38 238.969 4420.06 235.931 4407.9 235.931C4395.75 235.931 4384.43 238.969 4373.93 245.045C4363.44 250.845 4354.88 259.545 4348.25 271.145C4341.89 282.468 4338.72 296.001 4338.72 311.744C4338.72 327.487 4341.89 341.296 4348.25 353.172C4354.88 365.048 4363.44 374.162 4373.93 380.514C4384.7 386.59 4396.03 389.628 4407.9 389.628C4420.06 389.628 4431.38 386.59 4441.87 380.514C4452.37 374.438 4460.79 365.6 4467.14 354C4473.77 342.124 4477.09 328.315 4477.09 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4633.99 231.788C4640.89 220.189 4650.01 211.213 4661.33 204.86C4672.93 198.232 4686.6 194.918 4702.34 194.918V243.802H4690.33C4671.83 243.802 4657.74 248.498 4648.07 257.888C4638.68 267.278 4633.99 283.573 4633.99 306.773V426.913H4586.76V198.646H4633.99V231.788Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M4860.93 194.918C4878.88 194.918 4894.9 198.646 4908.98 206.103C4923.34 213.56 4934.53 224.608 4942.54 239.245C4950.55 253.883 4954.55 271.559 4954.55 292.273V426.913H4907.74V299.316C4907.74 278.878 4902.63 263.273 4892.41 252.502C4882.19 241.455 4868.24 235.931 4850.57 235.931C4832.89 235.931 4818.81 241.455 4808.31 252.502C4798.09 263.273 4792.98 278.878 4792.98 299.316V426.913H4745.76V198.646H4792.98V224.746C4800.72 215.355 4810.52 208.036 4822.4 202.789C4834.55 197.541 4847.39 194.918 4860.93 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5038.82 168.404C5030.26 168.404 5023.08 165.504 5017.28 159.704C5011.48 153.904 5008.58 146.723 5008.58 138.162C5008.58 129.6 5011.48 122.419 5017.28 116.619C5023.08 110.819 5030.26 107.919 5038.82 107.919C5047.11 107.919 5054.15 110.819 5059.95 116.619C5065.75 122.419 5068.65 129.6 5068.65 138.162C5068.65 146.723 5065.75 153.904 5059.95 159.704C5054.15 165.504 5047.11 168.404 5038.82 168.404ZM5062.02 198.646V426.913H5014.79V198.646H5062.02Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5239.2 194.918C5257.15 194.918 5273.17 198.646 5287.25 206.103C5301.61 213.56 5312.8 224.608 5320.81 239.245C5328.82 253.883 5332.82 271.559 5332.82 292.273V426.913H5286.01V299.316C5286.01 278.878 5280.9 263.273 5270.68 252.502C5260.46 241.455 5246.52 235.931 5228.84 235.931C5211.16 235.931 5197.08 241.455 5186.58 252.502C5176.36 263.273 5171.25 278.878 5171.25 299.316V426.913H5124.03V198.646H5171.25V224.746C5178.99 215.355 5188.79 208.036 5200.67 202.789C5212.82 197.541 5225.66 194.918 5239.2 194.918Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M5485.03 194.918C5502.71 194.918 5518.31 198.508 5531.85 205.689C5545.66 212.594 5556.43 221.293 5564.16 231.788V198.646H5611.8V430.642C5611.8 451.632 5607.38 470.274 5598.55 486.569C5589.71 503.14 5576.87 516.121 5560.02 525.511C5543.45 534.901 5523.56 539.597 5500.36 539.597C5469.43 539.597 5443.74 532.278 5423.31 517.64C5402.87 503.278 5391.27 483.669 5388.51 458.812H5435.32C5438.91 470.688 5446.51 480.217 5458.11 487.398C5469.98 494.855 5484.07 498.583 5500.36 498.583C5519.42 498.583 5534.75 492.783 5546.35 481.183C5558.22 469.584 5564.16 452.736 5564.16 430.642V392.528C5556.15 403.299 5545.24 412.413 5531.43 419.87C5517.9 427.051 5502.43 430.642 5485.03 430.642C5465.15 430.642 5446.92 425.67 5430.35 415.728C5414.05 405.509 5401.07 391.423 5391.41 373.471C5382.02 355.243 5377.32 334.667 5377.32 311.744C5377.32 288.821 5382.02 268.521 5391.41 250.845C5401.07 233.169 5414.05 219.498 5430.35 209.832C5446.92 199.889 5465.15 194.918 5485.03 194.918ZM5564.16 312.573C5564.16 296.83 5560.85 283.159 5554.22 271.559C5547.87 259.959 5539.44 251.121 5528.95 245.045C5518.45 238.969 5507.13 235.931 5494.98 235.931C5482.82 235.931 5471.5 238.969 5461.01 245.045C5450.51 250.845 5441.95 259.545 5435.32 271.145C5428.97 282.468 5425.79 296.001 5425.79 311.744C5425.79 327.487 5428.97 341.296 5435.32 353.172C5441.95 365.048 5450.51 374.162 5461.01 380.514C5471.78 386.59 5483.1 389.628 5494.98 389.628C5507.13 389.628 5518.45 386.59 5528.95 380.514C5539.44 374.438 5547.87 365.6 5554.22 354C5560.85 342.124 5564.16 328.315 5564.16 312.573Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2184.73 697.313C2217.58 716.28 2217.58 763.697 2184.73 782.664L1991.16 894.422C1947.5 919.63 1898.63 870.769 1923.84 827.107L1959.92 764.627C1968.72 749.381 1968.72 730.596 1959.92 715.35L1923.84 652.868C1898.63 609.206 1947.49 560.345 1991.16 585.553L2184.73 697.313Z`,fill:`#F8981D`}),(0,Q.jsx)(`path`,{d:`M2433.01 610.672C2460.47 610.672 2484.62 617.305 2505.32 630.7C2526.06 644.117 2541.15 663.145 2550.59 687.606L2552.75 693.183H2505.75L2504.65 690.796C2498.16 676.682 2488.82 665.936 2476.64 658.408L2476.55 658.351L2476.53 658.342C2465.01 651.11 2451.1 647.29 2434.62 647.058L2433.01 647.047C2416.54 647.047 2401.88 650.875 2388.95 658.458C2376.03 666.03 2365.87 676.833 2358.46 690.986L2358.45 691.01C2351.07 704.868 2347.3 721.321 2347.3 740.502C2347.3 759.417 2351.06 775.869 2358.43 789.973L2359.15 791.292L2359.85 792.528C2367.11 805.216 2376.81 815.077 2388.95 822.194C2401.88 829.776 2416.54 833.605 2433.01 833.605L2434.62 833.594C2451.16 833.367 2465.11 829.639 2476.66 822.584C2488.83 815.057 2498.16 804.314 2504.65 790.206L2505.75 787.821H2552.76L2550.59 793.409C2541.14 817.639 2526.05 836.542 2505.32 849.952L2505.25 850.001L2505.22 850.015C2484.54 863.133 2460.42 869.627 2433.01 869.627C2409.57 869.627 2388.1 864.183 2368.67 853.253L2368.65 853.241L2368.64 853.238L2368.54 853.182L2368.52 853.17C2349.38 842.002 2334.22 826.581 2323.09 806.976C2311.9 787.284 2306.35 765.091 2306.35 740.502C2306.35 715.913 2311.9 693.72 2323.09 674.028C2334.2 654.223 2349.33 638.697 2368.44 627.528L2368.46 627.518L2368.63 627.418C2388.07 616.242 2409.56 610.672 2433.01 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2637.06 869.627H2596.11V610.676H2637.06V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2728.31 869.627H2687.37V684.984H2728.31V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2708.2 610.672C2715.28 610.672 2721.38 613.266 2726.23 618.369L2726.7 618.851C2731.48 623.867 2733.89 630.021 2733.89 637.082C2733.89 644.372 2731.32 650.693 2726.23 655.795C2721.38 660.898 2715.28 663.492 2708.2 663.492C2700.9 663.492 2694.57 660.919 2689.47 655.814C2684.36 650.709 2681.79 644.381 2681.79 637.082C2681.79 629.784 2684.36 623.456 2689.47 618.351C2694.57 613.245 2700.9 610.672 2708.2 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3454.19 869.627H3413.24V684.984H3454.19V869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3434.07 610.672C3441.15 610.672 3447.25 613.266 3452.1 618.369L3452.57 618.851C3457.35 623.867 3459.76 630.021 3459.76 637.082C3459.76 644.372 3457.19 650.693 3452.1 655.795C3447.25 660.898 3441.15 663.492 3434.07 663.492C3426.77 663.492 3420.44 660.919 3415.34 655.814C3410.23 650.709 3407.66 644.381 3407.66 637.082C3407.66 629.784 3410.23 623.456 3415.34 618.351C3420.44 613.245 3426.77 610.672 3434.07 610.672Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M2855.46 684.984C2855.61 684.983 2855.92 684.978 2856.13 684.978H2856.15L2857.22 684.984C2857.4 684.983 2857.71 684.978 2857.95 684.978L2858.99 684.983C2880.69 685.145 2898.92 690.402 2913.4 701.052C2928.28 711.846 2938.05 726.831 2942.73 745.767L2943.99 750.851H2901.14L2900.29 747.879C2900.27 747.814 2900.27 747.804 2900.25 747.762C2897.15 740.415 2892.52 734.416 2886.35 729.698L2886.33 729.687L2886.26 729.634C2878.65 723.683 2869.09 720.5 2857.31 720.301L2856.12 720.292C2840.34 720.296 2827.83 726.106 2818.19 737.764L2818.19 737.775L2818.13 737.844C2815.18 741.35 2812.67 745.335 2810.59 749.816C2807.89 757.473 2806.49 766.507 2806.49 776.989L2806.49 777.999L2806.5 778.969C2806.67 788.881 2808.1 797.487 2810.72 804.846C2812.77 809.3 2815.25 813.277 2818.15 816.791C2827.79 828.486 2840.33 834.313 2856.13 834.313L2857.28 834.304C2869.11 834.117 2878.7 831.032 2886.32 825.282C2892.41 820.687 2897.07 814.545 2900.3 806.734C2900.3 806.722 2900.3 806.709 2900.31 806.691L2901.18 803.752H2944.1L2942.71 808.914C2937.8 827.227 2927.92 842.045 2913.12 853.21L2913 853.296L2912.97 853.314C2898.33 864.1 2880.25 869.453 2858.97 869.618L2857.95 869.622C2857.77 869.622 2857.51 869.619 2857.38 869.618L2856.15 869.626H2856.13C2855.8 869.626 2855.44 869.621 2855.16 869.618L2854.38 869.622H2854.37C2837.19 869.622 2821.74 865.856 2808.1 858.229L2808.08 858.218L2808.01 858.173C2794.99 850.75 2784.7 840.333 2777.17 827.004L2777.16 826.992L2777.16 826.98L2776.47 825.731L2776.46 825.719L2776.45 825.707C2769.08 812.144 2765.35 796.437 2765.12 778.71V778.69L2765.11 777.011V776.989C2765.11 758.76 2768.85 742.675 2776.46 728.875L2776.47 728.871L2777.16 727.621L2777.16 727.61L2777.17 727.598C2784.7 714.269 2794.99 703.852 2808.01 696.429L2808.08 696.384L2808.1 696.373C2821.74 688.745 2837.19 684.978 2854.37 684.978H2854.39L2855.46 684.984Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3263.09 819.015L3339.01 610.672H3382.34L3284.63 869.627H3241.19L3143.47 610.672H3187.17L3263.09 819.015Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3579.56 684.979C3596.39 684.979 3611.44 688.653 3624.61 696.112C3637.73 703.546 3647.83 713.861 3654.86 727.003L3655.42 728.02L3655.42 728.03L3655.43 728.041C3661.37 739.04 3664.7 751.247 3665.48 764.596C3665.59 766.624 3665.65 768.679 3665.65 770.757V770.77L3665.65 771.792V771.802C3665.61 777.049 3665.29 782.557 3664.7 788.323L3664.32 792.002H3532.34C3533.17 799.022 3534.91 805.217 3537.53 810.632C3539.52 813.939 3541.84 816.954 3544.48 819.682C3554.3 829.378 3566 834.224 3579.83 834.311C3591.23 834.266 3600.38 831.308 3607.58 825.684C3613.44 821.051 3617.94 815.284 3621.12 808.332L3622.21 805.936H3664.77L3663.31 811.144C3658.45 828.441 3648.71 842.604 3634.18 853.528L3634.17 853.535L3634.16 853.543L3634.15 853.552C3619.49 864.349 3601.42 869.626 3580.2 869.626C3580.13 869.626 3580.03 869.625 3580.03 869.625C3580.01 869.625 3579.99 869.624 3579.97 869.624L3579.58 869.626H3579.56C3562.72 869.626 3547.46 865.839 3533.91 858.186L3533.9 858.182L3533.89 858.177L3533.89 858.174L3533.88 858.171C3520.57 850.532 3510.09 839.729 3502.47 825.857L3502.46 825.832L3502.38 825.696C3494.98 811.95 3491.22 796.246 3490.99 778.694V778.673L3490.98 777.012V776.991C3490.98 758.771 3494.63 742.606 3502.06 728.618C3509.37 714.866 3519.58 704.213 3532.67 696.762L3533.3 696.41C3546.87 688.754 3562.33 684.979 3579.56 684.979ZM3578.13 720.288C3565.7 720.288 3555.27 724.021 3546.6 731.409C3539.22 737.84 3534.53 746.522 3532.67 757.745H3624C3623.45 750.675 3621.47 744.669 3618.16 739.612L3618.12 739.557L3618.12 739.549C3614.12 733.288 3608.67 728.594 3601.67 725.433L3601.65 725.428L3601.61 725.408L3601.57 725.389L3601.54 725.375C3594.62 722.008 3586.84 720.288 3578.13 720.288Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3892.36 869.627H3853.2L3815.15 744.253L3777.11 869.627H3737.96L3680 684.98H3721.46L3757.71 817.294L3796.83 684.98H3835.72L3873.87 817.207L3909.44 684.98L3949.85 684.978L3892.36 869.627Z`,fill:`#313543`}),(0,Q.jsx)(`path`,{d:`M3022.18 756.349L3084.15 684.984H3136.42L3049.47 776.988L3136.72 869.627H3085.46L3022.18 798.395V869.627H2981.23V610.676H3022.18V756.349Z`,fill:`#313543`})]})})}var Md=function(e){return e.Default=`default`,e.Lite=`lite`,e.Exchange=`exchange`,e.Analytics=`analytics`,e.Cloud=`cloud`,e.Streamable=`streamable`,e.Xmas=`xmas`,e.Plugin=`plugin`,e.Curator=`curator`,e}({}),Nd=`ClickView`,Pd={default:{imageUrls:{default:[`/images/backgrounds/bg-1.png`,`/images/backgrounds/bg-2.png`,`/images/backgrounds/bg-3.png`,`/images/backgrounds/bg-4.png`,`/images/backgrounds/bg-5.png`]},imageType:`background`,logoComponent:Dd,bannerSpacer:Td,productName:Nd},lite:{imageUrls:{default:[`/images/backgrounds/products/lite-topic-1-v2.png`,`/images/backgrounds/products/lite-topic-2-v2.png`,`/images/backgrounds/products/lite-topic-3-v2.png`,`/images/backgrounds/products/lite-discover-1-v2.png`,`/images/backgrounds/products/lite-discover-2-v2.png`,`/images/backgrounds/products/lite-student-1-v2.png`,`/images/backgrounds/products/lite-student-2-v2.png`,`/images/backgrounds/products/lite-event-1-v2.png`]},imageType:`image`,logoComponent:Dd,backgroundColor:`#38A2E8`,bannerSpacer:Td,productName:Nd},exchange:{imageUrls:{default:[`/images/backgrounds/products/exchange-1-v2.png`]},imageType:`image`,logoComponent:Dd,backgroundColor:`#F8981D`,bannerSpacer:Td,productName:Nd},analytics:{imageUrls:{default:[`/images/backgrounds/products/analytics-1-v4.png`]},imageType:`image`,logoComponent:Dd,backgroundColor:`#4C68DB`,bannerSpacer:Td,productName:Nd},cloud:{imageUrls:{default:[`/images/backgrounds/products/cloud-1-v2.png`]},imageType:`image`,logoComponent:Dd,backgroundColor:`#40C2BB`,bannerSpacer:Td,productName:Nd},streamable:{imageUrls:{default:[`/images/backgrounds/products/streamable-1-v2.png`,`/images/backgrounds/products/streamable-2-v2.png`]},imageType:`image`,logoComponent:jd,backgroundColor:`#D6F0FC`,bannerSpacer:Td,productName:`Streamable Learning`},xmas:{imageUrls:{default:[`/images/backgrounds/xmas/2026-promo1-bg.png`,`/images/backgrounds/xmas/2026-promo2-bg.png`,`/images/backgrounds/xmas/2026-promo3-bg.png`,`/images/backgrounds/xmas/2026-promo4-bg.png`,`/images/backgrounds/xmas/2026-promo5-bg.png`,`/images/backgrounds/xmas/2026-promo6-bg.png`,`/images/backgrounds/xmas/2026-promo7-bg.png`]},imageType:`background`,logoComponent:kd,bannerSpacer:Td,productName:Nd},plugin:{imageUrls:{default:[]},imageType:`none`,logoComponent:Dd,bannerSpacer:Td,banner:`plugin`,productName:Nd},curator:{imageUrls:{default:[`/images/backgrounds/products/curator-1-v2.png`]},imageType:`image`,backgroundColor:`#49c5b1`,logoComponent:Dd,bannerSpacer:Td,productName:Nd,title:`Thank you for all the years of service, ClickView Central!`}},Fd={getDefinition(e){return Pd[e]||Pd[Md.Default]}},Id={success:e=>{window.location.href=e.data.redirectUrl},"continue-login":(e,t)=>{let{returnUrl:n}=t;yd.post(`/ajax/login/continue`,{returnUrl:n}).then(e=>Ld(e,t)).catch(e=>{throw e})}};function Ld(e,t,n){let r=Id[e.step];if(r){r(e,t);return}if(!fT[e.step])throw Error(`Unknown step '${e.step}'`);t.navigate({step:e.step,...n,...e.data})}function Rd(e){return(0,Q.jsxs)(`div`,{className:e.className,children:[`Don't have an account?\xA0`,(0,Q.jsx)(`a`,{className:`info-link btn-link`,href:e.signInUrl,children:`Create account`})]})}var zd={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:zd.getMemoryStorage()},getMemoryStorage(){let e=new Map;return{setItem(t,n){e.set(t,n)},getItem(t){return e.get(t)},removeItem(t){e.delete(t)},clear(){e.clear()},get length(){return e.size},key(t){return Array.from(e.values())[t]}}}},Bd=function(e){return e.LocalStorage=`localStorage`,e.SessionStorage=`sessionStorage`,e.MemoryStorage=`memoryStorage`,e}({}),Vd=class{constructor(e){if(this.cachePrefix=`_cv:`,this.expireTime=3600,this.type=e.type,this.hasSupport=this.hasBrowserSupport(),this.hasSupport)try{this.type===Bd.MemoryStorage?this.storage=zd.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(e){if(!this.hasSupport)return;let t=this.storage.getItem(e);try{return JSON.parse(t)}catch{return t}}set(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),typeof t==`string`?(this.storage.setItem(e,t),!0):(this.storage.setItem(e,JSON.stringify(t)),!0)}catch{return!1}}remove(e){if(this.hasSupport)return this.storage.removeItem(e)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(e,t,n=this.expireTime){this.cacheClean();let r={time:this.getCurrentTime()+n*1e3,data:t!=null&&t};return this.set(`${this.cachePrefix}${e}`,r)}cacheGet(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}cacheExists(e){let t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),!1):!0:!1}cacheRemove(e){return this.remove(`${this.cachePrefix}${e}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let e=0;e<this.storage.length;e++){let t=this.storage.key(e);if(t.indexOf(this.cachePrefix)===0){let e=this.get(t);e&&e.time&&this.isExpired(e)&&this.remove(t)}}}isExpired(e){return e.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type===Bd.MemoryStorage)return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}},Hd=class extends Vd{static get Instance(){return this.instance||=new this({type:Bd.LocalStorage})}},Ud=class extends Vd{static get Instance(){return this.instance||=new this({type:Bd.SessionStorage})}},Wd=class extends Vd{static get Instance(){return this.instance||=new this({type:Bd.MemoryStorage})}},Gd=Hd.Instance,Kd=Ud.Instance,qd=Wd.Instance,Jd=`r`,Yd=`cv:r`,Xd=`cv:r:e`,Zd=`referrer`,Qd=`cv:originalReferrer`,$d=28800,ef=[`internalReferrer`],tf={getDecodedAttributionData(){let e=Gd.cacheGet(Yd);return e&&Object.keys(e).length>0?e:nf()?.decoded},getEncodedAttributionData(){let e=Gd.cacheGet(Xd);return e?.length?e:nf().encoded},getProfileId(){return tf.getDecodedAttributionData()?.profileId??null},setAttributionData(e){e&&lf(cf(e),e)},decodeRValue(e){if(e)try{let t=atob(e),n=JSON.parse(t);if(!af(n))throw Error(`Decoded R value is invalid: ${JSON.stringify(n)}`);return n}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}};function nf(){let e=Gd.cacheGet(Yd),t=Gd.cacheGet(Xd);return af(e)?{encoded:t,decoded:e}:rf()}function rf(){Gd.cacheRemove(Yd),Gd.cacheRemove(Xd);let e=sf(),t=tf.decodeRValue(e);if(t)return lf(e,t),{decoded:t,encoded:e};let n={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:of()},r=cf(n);return lf(r,n),{decoded:n,encoded:r}}function af(e){return!e||typeof e!=`object`||Object.keys(e).length<ef.length?!1:ef.every(t=>typeof e[t]==`string`)}function of(){let e=Gd.cacheGet(Qd);if(e&&typeof e==`string`)return e;let t=document.referrer??``;if(window.URLSearchParams){let e=new URLSearchParams(window.location.search),n=e.has(Zd)&&e.get(Zd);e.has(Zd)&&e.get(Zd)&&(t=n)}return t&&Gd.cacheSet(Qd,t,$d),t}function sf(){if(!window.URLSearchParams)return;let e=new URLSearchParams(window.location.search);if(e.has(Jd))return e.get(Jd)}function cf(e){if(af(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function lf(e,t){try{Gd.cacheSet(Yd,t,$d),Gd.cacheSet(Xd,e,$d)}catch{console.error(`Could not store attribution data in session storage`)}}var uf=28800,df=`cv:utmparams`,ff=[[`source`,`utm_source`],[`medium`,`utm_medium`],[`campaign`,`utm_campaign`],[`term`,`utm_term`],[`content`,`utm_content`]],pf=ff.reduce((e,[t])=>({...e,[t]:t}),{}),mf={getUtmParameters(){if(!window.URLSearchParams)return null;let e=new URLSearchParams(window.location.search),t={};return ff.forEach(([n,r])=>{e.has(r)&&(t[n]=e.get(r))}),hf(t)},setUtmParameters(e){if(!e)return;let t={};return Object.keys(e).forEach(n=>{pf[n]&&(t[n]=e[n])}),hf(t)},getURLSearchParams(){if(!window.URLSearchParams)return null;let e=new URLSearchParams,t=mf.getUtmParameters();return t?(ff.forEach(([n,r])=>{t[n]&&e.set(r,t[n])}),e):null}};function hf(e){if(Object.keys(e).length)return Gd.cacheSet(df,e,uf),e;let t=Gd.cacheGet(df);return t&&typeof t==`object`&&Object.keys(t).length?t:null}function gf(e){function t(t){yd.post(`/ajax/login/ip-auth`,{id:t.id,returnUrl:e.returnUrl}).then(t=>Ld(t,e)).catch(e=>{console.warn(e)})}function n(e){window.location.href=e.url}function r(){e.navigate({step:e.backStep})}function i(){if(!window.URLSearchParams)return e.signUpUrl;let t=mf.getURLSearchParams()||new URLSearchParams,n=tf.getEncodedAttributionData();return n&&t.set(`r`,n),e.signUpUrl+`?`+t.toString()}return{onClickIpAuthGuest:t,onClickProvider:n,onClickBack:e.backStep?r:null,getSignInUrl:i}}var _f={globalIdpButton:`_globalIdpButton_gzfrv_1`,globalIdpImage:`_globalIdpImage_gzfrv_5`};function vf(e){let{idp:t,onClick:n,backgroundColour:r=`F8981D`,foregroundColour:i=`FFF`,last:a,isGlobalIdp:o}=e,s=a?``:`mb-3`,c={backgroundColor:`#${t.backgroundColour||r}`,color:`#${t.foregroundColour||i}`},l={},u=o?`btn btn-lg btn-outline-dark w-100 ${s} ${_f.globalIdpButton}`:`btn btn-lg w-100 ${s}`,d=o?l:c,f=o?`Continue with ${t.name}`:t.name;return(0,Q.jsxs)(`button`,{className:u,style:d,onClick:()=>n(t),children:[o&&t.logoUrl&&(0,Q.jsx)(`img`,{src:t.logoUrl,className:_f.globalIdpImage,alt:`${t.name} logo`}),f]})}var yf={divider:`_divider_1q6pq_1`};function bf(e){let t=e.idps?.filter(e=>!!e.visible)||[];if(!t.length)return(0,Q.jsx)(Q.Fragment,{});function n(t){let n=window.location.pathname+window.location.search,r=`/challenge?idp=${t.id}&redirectUrl=`+encodeURIComponent(n);`attribution`in e&&(r+=`&attribution=`+encodeURIComponent(e.attribution)),window.location.href=r}return(0,Q.jsxs)(`div`,{className:`${e.className?e.className:``}`,children:[(0,Q.jsx)(`div`,{className:`my-4 border-bottom position-relative ${yf.divider}`}),t.map((t,r)=>(0,Q.jsx)(vf,{idp:t,onClick:`onClick`in e?e.onClick:n,attribution:`attribution`in e?e.attribution:null,isGlobalIdp:!0},r))]})}function xf(e){return(0,Q.jsx)(`span`,{id:`${e.name}Error`,className:`${e.className} invalid-feedback d-block`,role:`status`,children:e.children})}function Sf(e){let[t,n]=Z.useState(e.username||``),[r,i]=Z.useState(!1),[a,o]=Z.useState(``),s=Fd.getDefinition(e?.theme),c=s?.productName?`Sign in to ${s.productName}`:`Sign in`,l=!!e.globalIdps?.length,u=e.signUpUrl&&e.showSignUp,{onClickProvider:d,onClickBack:f,getSignInUrl:p}=gf(e);function m(n){if(n.preventDefault(),!t){o(`Please provide a username`);return}i(!0),yd.post(`/ajax/login/check-user`,{username:t,returnUrl:e.returnUrl}).then(n=>Ld(n,e,{username:t})).catch(e=>{i(!1),o(e.userMessage||`Something went wrong`)})}function h(e){n(e.target.value.trim()),e.target.value&&o(``)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:c,onClickBack:f}),(0,Q.jsxs)(`form`,{onSubmit:m,children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(cd,{name:`username`,type:`username`,isError:!!a,value:t,onChange:h,"aria-invalid":!!a,"aria-errormessage":`usernameError`}),!!a&&(0,Q.jsx)(xf,{name:`username`,children:a})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:r,children:`Continue`})]}),u&&(0,Q.jsx)(Rd,{className:`mt-4`,signInUrl:p()}),l&&(0,Q.jsx)(bf,{idps:e.globalIdps.map(e=>({...e,visible:!0})),onClick:d})]})}function Cf(e){let t=Fd.getDefinition(e?.theme),n=t?.productName?`Sign in to ${t.productName}`:`Sign in`,r=!!e.globalIdps?.length,i=e.signUpUrl&&e.showSignUp,{onClickIpAuthGuest:a,onClickProvider:o,onClickBack:s,getSignInUrl:c}=gf(e);function l(){e.navigate({step:`username-input`,backStep:`username`})}function u(){e.ipAuthGuests?.length===1?a(e.ipAuthGuests[0]):e.navigate({step:`guest-selection`,backStep:`username`})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:n,onClickBack:s}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100 mb-3`,showSpinner:!1,onClick:l,children:`Sign in with username or email`}),(0,Q.jsx)(nd,{className:`btn btn-outline-dark btn-lg w-100`,showSpinner:!1,onClick:u,children:`Sign in as guest`}),i&&(0,Q.jsx)(Rd,{className:`mt-4`,signInUrl:c()}),r&&(0,Q.jsx)(bf,{idps:e.globalIdps.map(e=>({...e,visible:!0})),onClick:o})]})}function wf(){return(0,Q.jsx)(`div`,{className:`svg-container`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z`})})})}var Tf={showIconOnHover:`_showIconOnHover_1ebbv_1`};function Ef({icon:e}){return(0,Q.jsx)(Q.Fragment,{children:e&&(0,Q.jsx)(`img`,{alt:`icon`,className:`w-100 h-100 border rounded-circle`,src:e})})}function Df(e){let{text:t,onClick:n,className:r,icon:i,iconColor:a=`dark`,showIconOnHover:o=!0}=e,s={},c;return c=typeof i==`function`?i:()=>(0,Q.jsx)(Ef,{icon:i}),(0,Q.jsx)(`button`,{className:ed(`btn btn-outline-dark btn-lg w-100 border-secondary`,o&&Tf.showIconOnHover,r),onClick:n,style:s,children:(0,Q.jsxs)(`div`,{className:`py-1 d-flex align-items-center`,children:[c&&(0,Q.jsx)(`span`,{className:`icon-circle rounded-circle text-white me-2 bg-${a} d-flex justify-content-center align-items-center`,children:(0,Q.jsx)(c,{})}),(0,Q.jsx)(`span`,{className:`h6 mb-0 w-75 text-start`,children:t}),(0,Q.jsx)(`span`,{className:`ms-auto`,children:(0,Q.jsx)(wf,{})})]})})}function Of(){return(0,Q.jsx)(`div`,{className:`svg-container lg`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 18 18`,className:`align-top`,children:(0,Q.jsx)(`path`,{d:`M12.648 14.798a.914.914 0 0 1-.908-.907c0-.497.411-.908.908-.908.496 0 .907.411.907.908a.914.914 0 0 1-.907.907zm0-1.044a.135.135 0 0 0-.137.137c0 .086.051.137.137.137.085 0 .137-.052.137-.137a.135.135 0 0 0-.137-.137zm0-.086a.38.38 0 0 1-.377-.376V8.805L8.81 6.94c-.187-.103-.256-.342-.153-.514.103-.188.342-.256.513-.154l3.665 1.97c.12.068.205.205.205.342v4.709a.384.384 0 0 1-.393.377zM8.966 10.62a.606.606 0 0 1-.171-.034l-7.072-3.39a.4.4 0 0 1-.223-.36c0-.154.086-.291.223-.342l7.14-3.254a.362.362 0 0 1 .325 0l7.09 3.254a.394.394 0 0 1 .222.342.357.357 0 0 1-.223.343l-7.14 3.407a.606.606 0 0 1-.171.034zM2.801 6.853l6.165 2.962 6.216-2.962-6.165-2.825zm6.113 6.096c-3.561 0-4.983-2.106-5.034-2.209a.486.486 0 0 1-.068-.205V8.138a.38.38 0 0 1 .376-.377.38.38 0 0 1 .377.377v2.277c.291.36 1.558 1.764 4.332 1.764 2.74 0 4.161-1.405 4.504-1.781V8.274a.38.38 0 0 1 .377-.376.38.38 0 0 1 .376.376v2.26a.429.429 0 0 1-.068.223c-.035.103-1.644 2.192-5.172 2.192z`,style:{strokeWidth:.0275199}})})})}var kf={buildAvatarUrl(e,t){if(e)return t.size?`${e}${e.includes(`?`)?`&`:`?`}size=${t.size}`:e}};function Af(e){return(0,Q.jsx)(`div`,{className:`d-flex flex-column gap-3`,children:e.ipAuthGuests.map(t=>(0,Q.jsx)(Df,{onClick:()=>{e.onClickGuest(t)},text:t.customer.name,icon:kf.buildAvatarUrl(t.customer.logoUrl,{size:`small`})||Of},t.id))})}function jf(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z`})})}var Mf={clearInput:`_clearInput_1l19p_1`,clearableInput:`_clearableInput_1l19p_8`},Nf=Z.forwardRef((e,t)=>{let{onClickClear:n,showClearButton:r,clearClassName:i,...a}=e;return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[(0,Q.jsx)(`input`,{...a,ref:t,className:`${e.className} ${Mf.clearableInput}`}),(!!e.value||r)&&(0,Q.jsx)(`span`,{className:`${Mf.clearInput} position-absolute cursor-pointer text-secondary ${i||``}`,role:`button`,onClick:n,onKeyDown:e=>e.key===`Enter`&&n(),tabIndex:0,children:(0,Q.jsx)(`div`,{className:`d-inline-block svg-container md`,children:(0,Q.jsx)(jf,{})})})]})});function Pf(e){let[t,n]=Z.useState(0),r=Z.useRef(null),[i,a]=Z.useState(!!e.hideInitially);function o(){r.current&&r.current.children[t-1]?.scrollIntoView({block:`center`})}function s(r){if(e.hideOnEnter&&a(!1),r.code===`ArrowDown`){r.stopPropagation(),r.preventDefault();let i=t+1;i>e.itemCount&&(i=1),n(i),o();return}if(r.code===`ArrowUp`){r.stopPropagation(),r.preventDefault();let i=t-1;i<=0&&(i=e.itemCount),n(i),o();return}if(r.code===`Enter`&&t>0){r.stopPropagation(),r.preventDefault(),e.onSelected(t-1),e.hideOnEnter&&a(!0);return}n(0)}function c(){e.hideOnBlur&&a(!1)}function l(){e.hideOnBlur&&a(!0)}return{selectedIndex:t,onKeyDown:s,containerRef:r,hide:i,onFocus:c,onBlur:l}}var Ff=Z.forwardRef((e,t)=>{function n(t){if(e.onKeyDown)return e.onKeyDown(t);if(t.key===` `&&t.preventDefault(),t.key===`Enter`||t.key===` `){if(e.disabled||!e.onClick)return;r(t)}}function r(...t){if(!(e.disabled||!e.onClick))return e.onClick(...t)}return(0,Q.jsx)(`div`,{...e,ref:t,role:`button`,tabIndex:e.tabIndex||0,className:`${e.className?e.className:``} ${e.disabled?``:`cursor-pointer`}`,onKeyDown:n,onClick:r,style:e.style?e.style:{},children:e.children})}),If={inputFocused:`_inputFocused_bwtre_1`,dropdown:`_dropdown_bwtre_4`,suggestionContainer:`_suggestionContainer_bwtre_7`,suggestionItem:`_suggestionItem_bwtre_16`,large:`_large_bwtre_20`,input:`_input_bwtre_1`,selected:`_selected_bwtre_39`,clearInput:`_clearInput_bwtre_43`,clear:`_clear_bwtre_43`};function Lf(e){let{items:t,getName:n,onItemClick:r,selectedIndex:i}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsx)(Ff,{className:`${If.suggestionItem} ${i-1===t?If.selected:``}`,onKeyDown:t=>t.key===`Enter`&&r(e),onMouseDown:()=>r(e),onClick:()=>r(e),children:n(e)},t))})}function Rf(e){let t=Z.useRef(null),[n,r]=Z.useState(``),[i,a]=Z.useState([]),{selectedIndex:o,onKeyDown:s,containerRef:c,hide:l,onBlur:u,onFocus:d}=Pf({onSelected:f,itemCount:e.cantFindText?e.items.length+1:e.items.length,hideOnBlur:!0,hideInitially:!0,hideOnEnter:!0});function f(t){if(t===i.length){e.onCantFind();return}let n=i[t];n&&v(n)}let p=!!e.item,m=e.cantFindText?i?.length+1:i?.length;Z.useEffect(()=>{if(!p){if(!n.length){_();return}if(!p&&n.length>1){_(n);return}}},[n,p]);function h(t){e.item&&e.clearData(),t!==n&&r(t)}function g(){h(``),t.current.focus()}function _(t){if(!t){a(e.items);return}a(e.items.filter(n=>e.getName(n).toLowerCase().includes(t.toLowerCase())))}function v(t){r(e.getName(t)),e.onSelect(t),a(e.items)}let y=m&&!e.disabled&&!l,b=`form-select ${y?If.inputFocused:If.input} ${If.clearInput} cursor-pointer`,x=`form-group position-relative`;return e.size===`lg`&&(b+=` form-select-lg`,x+=` ${If.large}`),(0,Q.jsxs)(`div`,{className:x,children:[(0,Q.jsx)(Nf,{id:e.id,value:n,onChange:e=>h(e.currentTarget.value),ref:t,className:b,type:`text`,autoComplete:`off`,placeholder:e.placeholder,disabled:e.disabled,onClickClear:g,onKeyDown:s,onFocus:d,onBlur:u,clearClassName:If.clear}),(0,Q.jsx)(`div`,{className:`position-absolute z-1 w-100 ${If.dropdown} ${l?`d-none`:``}`,children:(0,Q.jsxs)(`div`,{className:`${If.suggestionContainer} ${y?``:`d-none`}`,ref:c,children:[m&&(0,Q.jsx)(Lf,{items:i,onItemClick:v,getName:e.getName,selectedIndex:o}),e.cantFindText&&(0,Q.jsx)(`div`,{className:`info-link ${If.suggestionItem} ${o===i.length+1?If.selected:``}`,onKeyDown:t=>t.key===`Enter`&&e.onCantFind(),onMouseDown:e.onCantFind,onClick:e.onCantFind,children:e.cantFindText})]})})]})}function zf(e){let[t,n]=Z.useState(null);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`mb-3`,children:(0,Q.jsx)(Rf,{id:`guest`,item:t,items:e.ipAuthGuests,onSelect:e=>n(e),getName:e=>e.customer.name,clearData:()=>n(null),placeholder:`Select a school`,size:`lg`})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100`,disabled:!t,onClick:()=>{e.onClickGuest(t)},children:`Continue`})]})}var Bf=4;function Vf(e){return(0,Q.jsxs)(`div`,{className:ed(e.className),children:[(0,Q.jsx)(`p`,{className:`fw-medium`,children:`Which school would you like to sign in to as a guest?`}),e.ipAuthGuests.length>Bf?(0,Q.jsx)(zf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest}):(0,Q.jsx)(Af,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest})]})}function Hf(e){let{onClickIpAuthGuest:t,onClickBack:n}=gf(e);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Sign in as guest`,onClickBack:n}),(0,Q.jsx)(Vf,{ipAuthGuests:e.ipAuthGuests,onClickGuest:t})]})}var Uf={revealPassword:`_revealPassword_11wqf_1`,passwordInput:`_passwordInput_11wqf_10`,passwordContainer:`_passwordContainer_11wqf_17`};function Wf(e){return e||`Password`}function Gf(e){let[t,n]=Z.useState(`password`),r=Z.useRef(null);function i(e){e.preventDefault(),n(t===`password`?`text`:`password`),r.current?.focus()}let a=`position-relative form-control form-control-lg ${Uf.passwordContainer}`;return e.hasError&&(a+=` ${e.hasError?`is-invalid`:``}`),e.className&&(a+=` ${e.className}`),(0,Q.jsxs)(`div`,{children:[!e.hideLabel&&(0,Q.jsx)(`label`,{htmlFor:e.id||e.name,children:Wf(e.label)}),(0,Q.jsxs)(`div`,{className:a,children:[(0,Q.jsx)(`input`,{className:`${Uf.passwordInput} border-0 w-100 h-100 outline-none rounded py-0 ps-0`,type:t,"aria-label":e.placeholder,placeholder:e.placeholder,autoFocus:e.autoFocus,value:e.value,onChange:e.onChange,name:e.name,autoComplete:e.autoComplete,ref:r,id:e.id||e.name}),(0,Q.jsx)(Ff,{className:`svg-container cursor-pointer ${Uf.revealPassword}`,onClick:i,children:t===`password`?(0,Q.jsx)(Yu,{}):(0,Q.jsx)(Ju,{})})]})]})}function Kf(e){let{returnUrl:t,navigate:n}=e,[r,i]=Z.useState(e.username),[a,o]=Z.useState(``),[s,c]=Z.useState(!1),[l,u]=Z.useState(``),d=!!e.username;function f(e){i(e.target.value.trim()),u(``)}function p(e){o(e.target.value),u(``)}function m(t){if(e.backStep){n({step:e.backStep,backStep:null});return}n({step:`username`,clearUsername:t})}function h(){n({step:`forgot-password`,backStep:`password`,username:r})}function g(n){if(n.preventDefault(),!r){u(`Please provide a username`);return}if(!a){u(`Please provide a password`);return}if(a.trim().length!==a.length){u(`Your password cannot start or end with a blank space`);return}c(!0),yd.post(`/ajax/login/password`,{username:r,password:a,returnUrl:t}).then(t=>Ld(t,e)).catch(e=>{c(!1),u(e.userMessage||`Something went wrong`)})}let _=Fd.getDefinition(e?.theme),v=_?.productName?`Sign in to ${_.productName}`:`Sign in`;return(0,Q.jsxs)(`form`,{onSubmit:g,children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:()=>m(!1),title:v}),(0,Q.jsx)(`div`,{className:`mb-3 position-relative`,children:(0,Q.jsx)(cd,{name:`username`,type:`username`,isError:!!l,value:r,disabled:d,onChange:f,hideCloseButton:!d,onClickClose:()=>m(!0)})}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(Gf,{placeholder:`Enter your password`,autoFocus:d,value:a,onChange:p,name:`current-password`,autoComplete:`current-password`,hasError:!!l,"aria-invalid":!!l,"aria-errormessage":`current-passwordError`}),!!l&&(0,Q.jsx)(xf,{name:`current-passwordError`,children:l})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:s,children:`Sign in`}),(0,Q.jsx)(`div`,{className:`text-start`,children:(0,Q.jsx)(`button`,{className:`btn btn-link text-info ps-0`,onClick:h,children:`Forgot your password?`})})]})}var qf=[`38A2E8`,`7A76E8`,`40BCC3`,`F7847B`];function Jf(e){let{navigate:t,idps:n,showPasswordLogin:r}=e,[i,a]=Z.useState(null);function o(e){window.location.href=e}function s(){t({step:`username`})}function c(){t({step:`password`,backStep:`select-idp`})}function l(e){o(e.url)}function u(){i&&o(i.url)}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{onClickBack:s,theme:e.theme,title:`To sign in, please select an option from the list below`}),n.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Rf,{id:`idp`,item:i,items:n,onSelect:a,getName:e=>e.name,clearData:()=>a(null),placeholder:`Select a school`,size:`lg`}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100`,disabled:!i,onClick:u,children:`Continue`})]}):n.map((e,t)=>(0,Q.jsx)(vf,{onClick:l,idp:{...e,visible:!0},backgroundColour:qf[t%qf.length],isGlobalIdp:!e.id.startsWith(`online:`)},t)),r&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 mt-2 no-sso-link`,onClick:c,children:`My school doesn't use Single Sign On`})]})}function Yf(e,t){Z.useEffect(()=>{if(e)return t.dispatch({type:`setBanner`,data:{bannerType:e}}),()=>{t.dispatch({type:`setBanner`,data:{bannerType:null}})}},[e])}var Xf=/^(([^<>()\[\]\\.,;:\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,}))$/,Zf=/^[\s\w,.?&;:@+'"!-=\\\/]+$/im,Qf=250,$f={isEmail(e){return Xf.test(e)},isValidLength(e){if(!e)return!1;let t=e.trim();return t.length>0&&t.length<=Qf},exceedsMaxLength(e){return e?e.trim().length>Qf:!1},containsValidText(e){return e?Zf.test(e):!0},isPasswordValid(e,t,n){return e.length?n&&!t.length?[!1,`Password confirmation is required.`]:n&&e!==t?[!1,`Password confirmation does not match.`]:e.trim().length===e.length?[!0]:[!1,`Your password cannot start or end with a blank space`]:[!1,`Password is required.`]}};function ep(e){let{navigate:t,backStep:n}=e,[r,i]=Z.useState(e.email||``),[a,o]=Z.useState(!1),[s,c]=Z.useState(``);Yf(`email-in-use`,e);let{productName:l}=Fd.getDefinition(e.theme);function u(){t({step:n||`username`})}function d(){t({step:`verify-email-skip-reason`,backStep:`verify-email`})}function f(e){i(e.target.value)}function p(t){if(t.preventDefault(),!r){c(`Please provide an email`);return}if(!$f.isEmail(r)){c(`The email address provided is invalid`);return}o(!0),yd.post(`/ajax/login/send-verify-email-code`,{email:r}).then(t=>Ld(t,e,{email:r})).catch(e=>{o(!1),c(e.userMessage||`Something went wrong`)})}return(0,Q.jsx)(Q.Fragment,{children:(0,Q.jsxs)(`form`,{onSubmit:p,children:[(0,Q.jsx)(td,{onClickBack:u,theme:e.theme,title:`Verify your email`,className:{description:`mt-0 mb-0`},children:(0,Q.jsxs)(`span`,{className:`d-inline-block`,children:[`Have peace of mind that your account is secure and you’re receiving the best experience out of ${l}.`,`\xA0`,(0,Q.jsx)(`a`,{className:`text-info cursor-pointer`,target:`_blank`,href:ld.verifyEmail,children:`Learn more.`})]})}),(0,Q.jsx)(cd,{isError:!!s,type:`email`,value:r,onChange:f,name:`email`,ariaInvalid:!!s,ariaErrorMessage:`emailError`}),!!s&&(0,Q.jsx)(xf,{name:`email`,children:s}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100 mt-4`,type:`submit`,showSpinner:a,children:`Verify`}),e.canSkip&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info mt-2 ps-0`,onClick:d,children:`Skip for now`})]})})}var tp={input:`_input_1vtt8_1`},np=/^[0-9]$/,rp=/^\d+$/,ip=8,ap=function(e){return e.One=`verify-1`,e.Two=`verify-2`,e.Three=`verify-3`,e.Four=`verify-4`,e.Five=`verify-5`,e.Six=`verify-6`,e}(ap||{});function op(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(``),[a,o]=Z.useState(``),[s,c]=Z.useState(``),[l,u]=Z.useState(``),[d,f]=Z.useState(``),p=Z.useRef(null),m=Z.useRef(null),h=Z.useRef(null),g=Z.useRef(null),_=Z.useRef(null),v=Z.useRef(null);Z.useEffect(()=>{let n=(t||`X`)+(r||`X`)+(a||`X`)+(s||`X`)+(l||`X`)+(d||`X`),i=n.length===6&&n.indexOf(`X`)===-1;e.onChange(n,i)},[t,r,a,s,l,d]);let y={[ap.One]:{getNext:()=>y[ap.Two],getPrevious:()=>null,value:t,setState:n,focus:()=>p.current.focus()},[ap.Two]:{getNext:()=>y[ap.Three],getPrevious:()=>y[ap.One],value:r,setState:i,focus:()=>m.current.focus()},[ap.Three]:{getNext:()=>y[ap.Four],getPrevious:()=>y[ap.Two],value:a,setState:o,focus:()=>h.current.focus()},[ap.Four]:{getNext:()=>y[ap.Five],getPrevious:()=>y[ap.Three],value:s,setState:c,focus:()=>g.current.focus()},[ap.Five]:{getNext:()=>y[ap.Six],getPrevious:()=>y[ap.Four],value:l,setState:u,focus:()=>_.current.focus()},[ap.Six]:{getNext:()=>null,getPrevious:()=>y[ap.Five],value:d,setState:f,focus:()=>v.current.focus()}};function b(e,t){if(!np.test(e.key)&&e.keyCode!==ip)return;let n=y[t];if(e.keyCode===ip){n.setState(``),n.getPrevious()?.focus();return}if(e.currentTarget.selectionStart>0){let t=n.getNext();if(!t)return;t.setState(e.key),t.getNext()?t.getNext().focus():t.focus();return}n.setState(e.key),n.getNext()?.focus()}function x(e,t){e.preventDefault();let n=e.clipboardData.getData(`text`).trim();if(!rp.test(n))return;let r=n.split(``);if(r.length===6){let e=y[ap.One];for(let t of r)e.setState(t),e=e.getNext(),e?.focus();return}let i=y[t];i.value&&i.getNext()&&(i=i.getNext());do i.focus(),i.setState(r.shift()),i=i.getNext();while(r.length&&i)}let S={className:`form-control mx-1 text-center form-control-lg p-3 fs-4 ${tp.input} ${e.hasError?`is-invalid`:``}`,autoCorrect:`off`,inputMode:`numeric`,pattern:`[0-9]*`,autoCapitalize:`off`,autoComplete:`off`,"aria-invalid":!!e.hasError};return(0,Q.jsxs)(`fieldset`,{className:`d-flex justify-content-between mx-n1`,"aria-describedby":`verificationCodeError`,children:[(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.One),onKeyDown:e=>b(e,ap.One),value:t,ref:p,onChange:()=>{},autoComplete:`off`,...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Two),onKeyDown:e=>b(e,ap.Two),value:r,ref:m,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Three),onKeyDown:e=>b(e,ap.Three),value:a,ref:h,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Four),onKeyDown:e=>b(e,ap.Four),value:s,ref:g,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Five),onKeyDown:e=>b(e,ap.Five),value:l,ref:_,onChange:()=>{},...S}),(0,Q.jsx)(`input`,{onPaste:e=>x(e,ap.Six),onKeyDown:e=>b(e,ap.Six),value:d,ref:v,onChange:()=>{},...S})]})}function sp(e){let{theme:t,title:n,description:r,onBack:i,onResend:a,onSkip:o,submit:s,canSkip:c}=e,[l,u]=Z.useState(``),[d,f]=Z.useState(!1),[p,m]=Z.useState(``),[h,g]=Z.useState(!1);Z.useEffect(()=>{h&&v()},[h]);function _(e,t){u(``),m(e),g(t)}function v(e){if(e?.preventDefault(),!h){u(`Incomplete code`);return}f(!0),s(p).catch(e=>{f(!1),u(e.userMessage||`Something went wrong`)})}return(0,Q.jsxs)(`form`,{onSubmit:v,children:[(0,Q.jsx)(td,{onClickBack:i,theme:t,title:n,children:r}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(op,{onChange:_,hasError:!!l}),!!l&&(0,Q.jsx)(xf,{name:`verificationCode`,children:l})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:d,disabled:!h,children:`Continue`}),(0,Q.jsxs)(`div`,{className:`d-flex justify-content-between mt-3`,children:[o&&c&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 flex-shrink-0`,onClick:o,children:`Skip for now`}),a&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0 flex-shrink-0`,onClick:a,children:`Resend code`})]})]})}function cp(e){let{navigate:t,email:n,theme:r}=e;Yf(`check-email`,e);function i(){t({step:`verify-email`})}function a(){t({step:`verify-email-skip-reason`,backStep:`verify-email-check-code`})}function o(){t({step:`verify-email`,email:n})}function s(t){return yd.post(`/ajax/login/verify-email`,{code:t,email:n}).then(n=>Ld(n,e,{code:t}))}return(0,Q.jsx)(sp,{navigate:t,theme:r,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`Please enter the `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code we've sent to `,(0,Q.jsx)(`strong`,{children:n})]}),onBack:i,onResend:o,submit:s,onSkip:a,...e})}function lp(){return(0,Q.jsx)(`img`,{className:`img-fluid mx-auto d-block mt-4`,alt:`Success`,src:`/images/success-tick-v2.png`,style:{maxWidth:`304px`}})}function up(e){let{returnUrl:t}=e;return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Your email has been verified`,className:{title:`text-center`}}),(0,Q.jsx)(`div`,{className:`my-5`,children:(0,Q.jsx)(lp,{})}),t&&(0,Q.jsx)(`a`,{role:`button`,href:t,className:`btn btn-dark btn-lg w-100`,children:`Continue`})]})}function dp(e){let{navigate:t,backStep:n}=e,[r,i]=Z.useState(e.email||``),[a,o]=Z.useState(!1),[s,c]=Z.useState(``);function l(e){i(e.target.value.trim())}function u(t){if(t.preventDefault(),!r){c(`Please provide an email address`);return}if(!$f.isEmail(r)){c(`The email address provided is invalid`);return}o(!0),yd.post(`/ajax/login/send-recovery-code`,{email:r}).then(t=>Ld(t,e,{email:r})).catch(e=>{o(!1),c(e.userMessage||`Something went wrong`)})}function d(){t({step:n})}return(0,Q.jsxs)(`form`,{onSubmit:u,children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:n&&d,title:`Forgot your password?`,children:`Enter your email below to receive password reset instructions`}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(cd,{name:`email`,value:r,type:`email`,onChange:l,isError:!!s,"aria-invalid":!!s,"aria-errormessage":`emailError`}),!!s&&(0,Q.jsx)(xf,{name:`email`,children:s})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:a,children:`Send`}),(0,Q.jsx)(`p`,{className:`text-start mt-3`,children:`Single Sign On customers should contact their network administrator to reset their password.`})]})}function fp(e){let{navigate:t,email:n,theme:r}=e;function i(){t({step:`forgot-password`})}function a(){t({step:`forgot-password`,email:n})}function o(t){return yd.post(`/ajax/login/check-recovery-code`,{code:t,email:n}).then(n=>Ld(n,e,{code:t}))}return(0,Q.jsx)(sp,{navigate:t,theme:r,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`If we can reset your password, we've sent a `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code to the email address provided`]}),submit:o,onBack:i,onResend:a,...e})}function pp(e){let{error:t,spinner:n,onClickContinue:r}=e;return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme}),(0,Q.jsx)(lp,{}),(0,Q.jsx)(`p`,{className:`text-center mb-4 mt-2`,children:`Your password has been updated`}),t&&(0,Q.jsx)(`p`,{className:`text-danger text-center mb-4 mt-2`,children:t}),(0,Q.jsx)(nd,{className:`btn btn-lg w-100 btn-dark`,showSpinner:n,onClick:r,children:`Continue`})]})}function mp(e){let{submit:t}=e,[n,r]=Z.useState(``),[i,a]=Z.useState(``),[o,s]=Z.useState(``),[c,l]=Z.useState(!1),[u,d]=Z.useState(null),{productName:f}=Fd.getDefinition(e.theme);function p(e){r(e.target.value),s(``)}function m(e){a(e.target.value),s(``)}function h(){let[e,t]=$f.isPasswordValid(n,i,!0);return t&&s(t),e}function g(e){e.preventDefault(),h()&&(l(!0),t(i).then(e=>{l(!1),d(e)}).catch(e=>{l(!1),s(e.userMessage||`Something went wrong`)}))}function _(){try{l(!0),Ld(u,e)}catch(e){l(!1),s(e.userMessage||`Something went wrong`)}}return u?(0,Q.jsx)(pp,{error:o,spinner:c,onClickContinue:_,theme:e.theme}):(0,Q.jsxs)(`form`,{onSubmit:g,children:[(0,Q.jsxs)(td,{onClickBack:e.onClickBack,theme:e.theme,title:e.heading,children:[`Create a new password to secure your `,(0,Q.jsx)(`strong`,{children:f}),` account`]}),(0,Q.jsxs)(`div`,{className:`mb-4`,children:[(0,Q.jsx)(Gf,{className:`mb-3`,placeholder:`Enter your new password`,autoFocus:!0,value:n,onChange:p,name:`new-password`,autoComplete:`new-password`,hasError:!!o,"aria-invalid":!!o,"aria-errormessage":`new-passwordError`}),(0,Q.jsx)(Gf,{id:`confirm-new-password`,label:`Confirm Password`,placeholder:`Enter your password confirmation`,value:i,onChange:m,name:`new-password`,autoComplete:`new-password`,hasError:!!o,"aria-invalid":!!o,"aria-errormessage":`new-passwordError`}),!!o&&(0,Q.jsx)(xf,{name:`new-password`,children:o})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:c,children:`Update password`})]})}function hp(e){let{email:t,code:n,navigate:r}=e;function i(e){return yd.post(`/ajax/login/reset-password`,{email:t,code:n,newPassword:e})}function a(){r({step:`forgot-password`,backStep:`username`})}return(0,Q.jsx)(mp,{heading:`Reset password`,submit:i,onClickBack:a,...e})}function gp(e){function t(e){return yd.post(`/ajax/login/change-password`,{newPassword:e})}return(0,Q.jsx)(mp,{heading:`Change password`,submit:t,...e})}function _p(e){let{navigate:t,backStep:n}=e,[r]=Z.useState(e.userId||``),[i,a]=Z.useState(e.username||``),[o,s]=Z.useState(!1),[c,l]=Z.useState(``);function u(e){a(e.target.value.trim())}function d(t){if(t.preventDefault(),!i){l(`Please provide an email or username`);return}s(!0),yd.post(`/ajax/login/send-self-activation-code`,{userId:r}).then(t=>Ld(t,e,{userId:r,username:i})).catch(e=>{s(!1),l(e.userMessage||`Something went wrong`)})}function f(){t({step:n})}return(0,Q.jsxs)(`form`,{onSubmit:d,children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:n&&f,title:`Verify your email`,children:`We will send you a verification code to your email to activate your account.`}),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(cd,{name:`email`,value:i,type:`username`,disabled:!0,onChange:u,isError:!!c,"aria-invalid":!!c,"aria-errormessage":`emailError`}),!!c&&(0,Q.jsx)(xf,{name:`email`,children:c})]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:o,children:`Send verification code`}),(0,Q.jsx)(`p`,{className:`text-start mt-3`,children:`Single Sign On customers should contact their network administrator to activate their account.`})]})}function vp(e){let{navigate:t,userId:n,username:r,theme:i}=e;function a(){t({step:`self-activation`})}function o(){t({step:`self-activation`,userId:n})}function s(t){return yd.post(`/ajax/login/check-self-activation-code`,{code:t,userId:n}).then(n=>Ld(n,e,{code:t}))}return(0,Q.jsx)(sp,{navigate:t,theme:i,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`Please enter the `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code we've sent to `,(0,Q.jsx)(`strong`,{children:r})]}),submit:s,onBack:a,onResend:o,...e})}var yp={badge:`_badge_1l0uk_1`};function bp(e){return(0,Q.jsx)(`span`,{className:`rounded-pill d-inline-block mb-1 badge-white border border-dark rounded-pill ${yp.badge}`,children:e.children})}function xp(e){let{navigate:t}=e;function n(){t({step:e.backStep})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:e.backStep?n:null,className:{description:`text-center`},children:!!e.email&&(0,Q.jsx)(bp,{children:e.email})}),(0,Q.jsx)(`span`,{className:`h4 mb-3 d-block text-center`,children:`Contact Support`}),(0,Q.jsxs)(`p`,{className:`text-center`,children:[`Please get in touch with our `,(0,Q.jsx)(`strong`,{children:`Product Support Team`}),` by emailing `,(0,Q.jsx)(`a`,{className:`text-info`,href:`mailto:support@clickvieweducation.com`,children:`support@clickvieweducation.com`}),` for further assistance.`]})]})}function Sp(e){let t=ud(e.errorCode);return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(td,{theme:e.theme}),(0,Q.jsx)(`img`,{className:`img-fluid mb-4`,alt:`error`,src:`/images/errors/${t.errorImage||`default-v2.png`}`}),(0,Q.jsxs)(`div`,{className:`d-flex flex-column gap-3`,children:[(0,Q.jsx)(`h1`,{className:`h3 mb-0`,children:t.preferServerError?e.message:t.message}),!!t.additionalInformation&&(0,Q.jsx)(`p`,{className:`mb-0`,children:t.additionalInformation}),!!t.moreInfoUrl&&(0,Q.jsx)(`p`,{className:`mb-0`,children:(0,Q.jsx)(`a`,{href:t.moreInfoUrl,className:`text-info`,children:`Learn more`})}),(0,Q.jsx)(Cp,{errorCode:e.errorCode,traceId:e.traceId})]})]})}function Cp(e){return(0,Q.jsxs)(`div`,{className:`text-secondary small w-100`,children:[(0,Q.jsxs)(`p`,{className:`m-0`,children:[`Error Code: `,e.errorCode]}),(0,Q.jsxs)(`p`,{className:`m-0`,children:[`RequestId: `,e.traceId]})]})}function wp(e){let{token:t,email:n,userId:r,navigate:i}=e,[a,o]=Z.useState(!1);function s(){o(!0),yd.post(`/ajax/verify-email`,{token:t,email:n,userId:r}).then(t=>Ld(t,e)).catch(()=>{i({step:`error`,errorCode:`invalid-token`})})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(td,{theme:e.theme,title:`Before you proceed...`,children:[`Your email address `,(0,Q.jsx)(`strong`,{children:n}),` is already in use with another account. By continuing you will remove your email from the other account.`]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`button`,showSpinner:a,onClick:s,children:`Continue anyway`})]})}function Tp(e){let{email:t,code:n,navigate:r}=e,[i,a]=Z.useState(!1);function o(){r({step:`verify-email`,email:t})}function s(){a(!0),yd.post(`/ajax/login/verify-email`,{email:t,code:n,acknowledgeEmailInUse:!0}).then(t=>Ld(t,e)).catch(()=>{r({step:`error`,errorCode:`invalid-token`})})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(td,{onClickBack:o,theme:e.theme,title:`Before you proceed...`,children:[`Your email address `,(0,Q.jsx)(`strong`,{children:t}),` is already in use with another account. By continuing you will remove your email from the other account.`]}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`button`,showSpinner:i,onClick:s,children:`Continue anyway`})]})}var Ep=function(e){return e.NotNow=`not-now`,e.NoEmail=`no-email`,e.EmailNotReceived=`email-not-received`,e.Other=`other`,e}(Ep||{});function Dp(e){let{returnUrl:t,navigate:n,backStep:r}=e,[i,a]=Z.useState(),[o,s]=Z.useState(),[c,l]=Z.useState(!1),[u,d]=Z.useState(``),{productName:f}=Fd.getDefinition(e.theme);function p(){return i===Ep.Other?$f.containsValidText(o)&&$f.isValidLength(o):Object.values(Ep).includes(i)}function m(){n({step:r||`verify-email`})}function h(e){a(e)}function g(e){let t=e.target.value,n=``;$f.containsValidText(t)?$f.exceedsMaxLength(t)&&(n=`Your reason is too long`):n=`Your reason contains an invalid character or symbol`,d(n),s(t)}function _(n){if(n.preventDefault(),!p())return;l(!0);let r=i===`other`?`other:${o}`:i;yd.post(`/ajax/login/skip-verify-email`,{reason:r,returnUrl:t}).then(t=>Ld(t,e)).catch(e=>{l(!1),d(e.userMessage||`Something went wrong`)})}return(0,Q.jsxs)(`form`,{onSubmit:_,children:[(0,Q.jsx)(td,{onClickBack:m,theme:e.theme,title:`Let us know why you aren't able to verify`,className:{description:`mt-0 mb-0`},children:`Verifying will increase the security of your account and improve features on ClickView.`}),(0,Q.jsxs)(`div`,{className:`mb-4`,children:[(0,Q.jsxs)(`div`,{className:`form-check my-3`,children:[(0,Q.jsx)(`input`,{className:`form-check-input`,type:`radio`,id:`not-now`,name:`not-now`,checked:i===`not-now`,onChange:()=>h(Ep.NotNow)}),(0,Q.jsx)(`label`,{className:`form-check-label`,htmlFor:`not-now`,children:`Not the right time`})]}),(0,Q.jsxs)(`div`,{className:`form-check my-3`,children:[(0,Q.jsx)(`input`,{className:`form-check-input`,type:`radio`,id:`no-email`,name:`no-email`,checked:i===`no-email`,onChange:()=>h(Ep.NoEmail)}),(0,Q.jsx)(`label`,{className:`form-check-label`,htmlFor:`no-email`,children:`I don't have an email address`})]}),(0,Q.jsxs)(`div`,{className:`form-check my-3`,children:[(0,Q.jsx)(`input`,{className:`form-check-input`,type:`radio`,id:`email-not-received`,name:`email-not-received`,checked:i===`email-not-received`,onChange:()=>h(Ep.EmailNotReceived)}),(0,Q.jsx)(`label`,{className:`form-check-label`,htmlFor:`email-not-received`,children:`I didn't receive a verification email`})]}),(0,Q.jsxs)(`div`,{className:`form-check mt-3 mb-2`,children:[(0,Q.jsx)(`input`,{className:`form-check-input`,type:`radio`,id:`other`,name:`other`,checked:i===`other`,onChange:()=>h(Ep.Other)}),(0,Q.jsx)(`label`,{className:`form-check-label`,htmlFor:`other`,children:`Other reasons (please specify)`})]}),i===`other`&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`input`,{className:`form-control form-control-lg ${u?`is-invalid`:``}`,type:`text`,placeholder:`Enter your reason`,name:`reason`,onChange:g,autoComplete:`off`,"aria-invalid":!!u,"aria-errormessage":`reasonError`}),!!u&&(0,Q.jsx)(xf,{name:`reason`,children:u})]})]}),(0,Q.jsxs)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,disabled:!p(),showSpinner:c,children:[`Continue to `,f]})]})}function Op(e){let{logoutId:t}=e,[n,r]=Z.useState(!1),{productName:i}=Fd.getDefinition(e.theme);function a(){r(!0)}return(0,Q.jsxs)(`form`,{onSubmit:a,action:`/logout`,method:`post`,children:[(0,Q.jsxs)(td,{theme:e.theme,title:`Logout`,children:[`Would you like to logout of `,i,`?`]}),(0,Q.jsx)(`input`,{type:`hidden`,name:`logoutId`,value:t||``}),(0,Q.jsx)(`input`,{type:`hidden`,name:`__RequestVerificationToken`,value:yd.getXsrfToken()}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:n,children:`Yes`})]})}function kp(e){let{postLogoutRedirectUri:t,clientName:n,signOutIframeUrl:r,automaticRedirectAfterSignOut:i}=e;return Z.useEffect(()=>{!i||!t||(window.location.href=t)},[i,t]),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Logged out`,children:`You are now logged out.`}),t&&(0,Q.jsxs)(`p`,{children:[`Click `,(0,Q.jsx)(`a`,{href:t,className:`text-info`,children:`here`}),` to return to the `,n,` application.`]}),r&&(0,Q.jsx)(`iframe`,{width:0,height:0,frameBorder:0,src:r})]})}function Ap(e){let{navigate:t,organisation:n,orgCustomers:r,backStep:i}=e,[a,o]=Z.useState(null),[s,c]=Z.useState(null);async function l(t){try{await yd.post(`/ajax/external/join-organisation-customer`,{customerId:t}),Ld(await yd.post(`/ajax/login/select-customer`,{customerId:t}),e)}catch(e){c(e.userMessage||`Something went wrong. Please try again.`)}}function u(e){l(e.id)}function d(){t({step:`contact-support`,backStep:`organisation-select-customer`})}function f(){a&&l(a.id)}function p(){t({step:`select-customer`,backStep:`organisation-select-customer`})}function m(){t({step:i,backStep:null})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:i&&m}),(0,Q.jsxs)(`span`,{className:`h4 mb-3 d-block text-left`,children:[`To sign in, select a school from `,n.name]}),!!e.email&&(0,Q.jsx)(`p`,{className:`text-left`,children:(0,Q.jsx)(bp,{children:e.email})}),!!r?.length&&(0,Q.jsx)(`div`,{className:`mb-4`,children:r.length>10?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Schools`}),(0,Q.jsx)(`div`,{className:`mb-3`,children:(0,Q.jsx)(Rf,{id:`school`,item:a,items:r,onSelect:o,getName:e=>e.name,clearData:()=>o(null),placeholder:`Select a school`,size:`lg`,cantFindText:`My school is not listed`,onCantFind:d})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-4`,disabled:!a,onClick:f,children:`Continue`})]}):(0,Q.jsxs)(`div`,{children:[r.map((e,t)=>(0,Q.jsx)(Df,{onClick:()=>u(e),text:e.name,icon:kf.buildAvatarUrl(e.logoUrl,{size:`small`})||Of,className:`mb-3`,iconColor:`dark`},t)),(0,Q.jsx)(`button`,{className:`text-info`,onClick:d,children:`My school is not listed`})]})}),e.hasExistingCustomers&&!i&&(0,Q.jsxs)(`button`,{className:`h5 d-flex w-100`,onClick:p,children:[`View my existing schools`,(0,Q.jsx)(`span`,{className:`ms-auto`,children:(0,Q.jsx)(wf,{})})]}),s&&(0,Q.jsx)(`div`,{className:`text-danger text-center`,children:s})]})}function jp(e){if(!e)return{firstName:``,surname:``,source:``};let t=e.split(` `).filter(e=>e.length);return{firstName:t.shift(),surname:t.join(` `),source:e}}function Mp(e){let{value:t,onChange:n,error:r,autoFocus:i}=e;return Z.useEffect(()=>{e.onChange(jp(e.value))},[]),(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`label`,{htmlFor:`name`,children:`Full name`}),(0,Q.jsx)(`input`,{className:`form-control form-control-lg ${!!r&&`is-invalid`}`,type:`text`,name:`name`,id:`name`,value:t,placeholder:`Enter your full name`,autoFocus:i,autoComplete:`name`,onChange:e=>n(jp(e.target.value)),"aria-errormessage":`nameError`}),!!r&&(0,Q.jsx)(xf,{name:`name`,children:r})]})}var $=function(e){return e.AU=`au`,e.NZ=`nz`,e.UK=`uk`,e.US=`us`,e.CA=`ca`,e}({}),Np=[`Teacher`,`Librarian / Teacher Librarian`,`Curriculum Coordinator`,`Digital Technology Coordinator`,`SSO / SLSO`,`IT`,`Head of Department`,`Head of Subject`,`Assistant Principal`,`Deputy Principal`,`Principal`,`Business Manager`],Pp=[`Teacher`,`Librarian / Teacher Librarian`,`IT/LRC`,`e-Learning/ICT Coordinator`,`Head of Key Stage`,`Head of Department`,`Subject Lead`,`Assistant Head Teacher`,`Deputy Head Teacher`,`Head Teacher`],Fp=[`Teacher`,`Librarian / Teacher Librarian`,`Head of Department`,`Instructional Technology Specialist`,`Curriculum Coordinator`,`School Leadership`,`District Leadership`,`Academic Coach`,`Principal`,`IT / IT Specialist`],Ip=[`Teacher`,`Librarian / Teacher Librarian`,`Curriculum Leader`,`e-Learning Coordinator`,`IT`,`Head of Department`,`Head of Faculty`,`Learning Support`,`Learning Assistant`,`Deputy Principal`,`Assistant Principal`,`Principal`],Lp=[`Teacher`,`Librarian / Teacher Librarian`,`Educational Assistant (EA)`,`Learning Support Teacher / Resource Teacher`,`Department Head / Manager`,`Curriculum Coordinator / Consultant`,`School Counsellor / Guidance Counsellor`,`Vice-Principal`,`Principal`,`Superintendent`,`Director of Education`],Rp=[`Professor`,`Lecturer`,`Course Coordinator / Administrator`,`Digital Learning Manager`,`Tutor`,`Teaching Fellow`,`Librarian`,`Learning Technologist`,`Teaching Assistant`,`Researcher`,`IT`],zp=[`Professor`,`Lecturer`,`Course Coordinator / Administrator`,`Digital Learning Manager`,`Tutor`,`Teaching Fellow`,`Librarian`,`Learning Technologist`,`Teacher`,`Teaching Assistant`,`Researcher`,`IT`],Bp={[$.AU]:Np,[$.NZ]:Ip,[$.UK]:Pp,[$.US]:Fp,[$.CA]:Lp},Vp={[$.AU]:Rp,[$.UK]:zp};function Hp(e){let t=e.countryCode?.toLowerCase();return e.isTertiary?Vp[t]||Rp:Bp[t]||Fp}function Up(e){return e?.toLowerCase().includes(`student`)||e?.toLowerCase().includes(`parent`)}var Wp=`OTHER`;function Gp(e){let{error:t,onChange:n,countryCode:r,isTertiary:i,autoFocus:a}=e,[o,s]=Z.useState(``),[c,l]=Z.useState(``),u=Hp({countryCode:r,isTertiary:i});function d(e){s(e.target.value),l(``),n(e.target.value===Wp?``:e.target.value)}function f(e){l(e.target.value),n(e.target.value)}let p=o===Wp;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`label`,{htmlFor:`jobTitle`,children:`Job Title`}),(0,Q.jsxs)(`select`,{className:`form-select form-select-lg ${o.length?`text-dark`:`text-secondary`} ${!!t&&`is-invalid`}`,value:o,placeholder:`Role`,onChange:d,autoFocus:a,name:`jobTitle`,id:`jobTitle`,"aria-invalid":!!t&&!p,"aria-errormessage":t&&!p?`jobTitleError`:void 0,children:[(0,Q.jsx)(`option`,{value:``,disabled:!0,className:`text-secondary`,children:`What do you do?`}),u.map((e,t)=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},t)),(0,Q.jsx)(`option`,{value:Wp,className:`text-dark`,children:`Other`})]}),!!t&&!p&&(0,Q.jsx)(xf,{name:`jobTitle`,children:t})]}),p&&(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`input`,{className:`form-control form-control-lg ${!!t&&`is-invalid`}`,type:`text`,value:c,placeholder:`Enter your role`,autoFocus:!0,onChange:f,name:`role`,"aria-invalid":!!t,"aria-errormessage":`roleError`}),!!t&&(0,Q.jsx)(xf,{name:`role`,children:t})]})]})}function Kp(e){let{allowNameChange:t,allowJobTitleChange:n,errors:r,spinner:i,countryCode:a,setErrors:o}=e,[s,c]=Z.useState(),[l,u]=Z.useState(``),[d,f]=Z.useState(``),[p,m]=Z.useState(``);function h(e){f(e.target.value),o({...r,password:``})}function g(e){m(e.target.value),o({...r,password:``})}function _(e){c(e),o({...r,fullName:``})}function v(e){u(e),o({...r,jobTitle:``})}function y(r){r.preventDefault();let i={password:d,confirmPassword:p};t&&(i.firstName=s.firstName,i.surname=s.surname),n&&(i.jobTitle=l),e.onSubmit(i)}function b(){return t?`fullName`:n?`jobTitle`:`password`}let x=b();return(0,Q.jsxs)(`form`,{onSubmit:y,children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[t&&(0,Q.jsx)(Mp,{value:s?.source||``,onChange:_,error:r.fullName,autoFocus:x===`fullName`}),n&&(0,Q.jsx)(Gp,{error:r.jobTitle,onChange:v,countryCode:a,autoFocus:x===`jobTitle`,isTertiary:e.isTertiary}),(0,Q.jsx)(Gf,{placeholder:`Enter your password`,value:d,onChange:h,name:`new-password`,autoComplete:`new-password`,hasError:!!r.password,autoFocus:x===`password`,"aria-errormessage":`new-passwordError`,className:ed(e.requireConfirmPassword&&`mb-3`)}),e.requireConfirmPassword&&(0,Q.jsx)(Gf,{id:`confirm-new-password`,label:`Confirm password`,placeholder:`Enter your password confirmation`,value:p,onChange:g,name:`new-password`,autoComplete:`new-password`,hasError:!!r.password,"aria-invalid":!!r.password,"aria-errormessage":`new-passwordError`}),!!r.password&&(0,Q.jsx)(xf,{name:`new-password`,children:r.password})]}),!!r.default&&(0,Q.jsx)(`div`,{className:`text-danger my-3`,children:r.default}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:i,children:`Get Started`})]})}var qp=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Jp=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Yp=o(((e,t)=>{var n=Jp();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Xp=o(((e,t)=>{var n=Yp(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Zp=o(((e,t)=>{var n=Yp();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Qp=o(((e,t)=>{var n=Yp();function r(e){return n(this.__data__,e)>-1}t.exports=r})),$p=o(((e,t)=>{var n=Yp();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),em=o(((e,t)=>{var n=qp(),r=Xp(),i=Zp(),a=Qp(),o=$p();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),tm=o(((e,t)=>{var n=em();function r(){this.__data__=new n,this.size=0}t.exports=r})),nm=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),rm=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),im=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),am=o(((e,t)=>{t.exports=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis})),om=o(((e,t)=>{var n=am(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),sm=o(((e,t)=>{t.exports=om().Symbol})),cm=o(((e,t)=>{var n=sm(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),lm=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),um=o(((e,t)=>{var n=sm(),r=cm(),i=lm(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),dm=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),fm=o(((e,t)=>{var n=um(),r=dm(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),pm=o(((e,t)=>{t.exports=om()[`__core-js_shared__`]})),mm=o(((e,t)=>{var n=pm(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),hm=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),gm=o(((e,t)=>{var n=fm(),r=mm(),i=dm(),a=hm(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),_m=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),vm=o(((e,t)=>{var n=gm(),r=_m();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),ym=o(((e,t)=>{t.exports=vm()(om(),`Map`)})),bm=o(((e,t)=>{t.exports=vm()(Object,`create`)})),xm=o(((e,t)=>{var n=bm();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),Sm=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n})),Cm=o(((e,t)=>{var n=bm(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),wm=o(((e,t)=>{var n=bm(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Tm=o(((e,t)=>{var n=bm(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i})),Em=o(((e,t)=>{var n=xm(),r=Sm(),i=Cm(),a=wm(),o=Tm();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Dm=o(((e,t)=>{var n=Em(),r=em(),i=ym();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Om=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),km=o(((e,t)=>{var n=Om();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Am=o(((e,t)=>{var n=km();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r})),jm=o(((e,t)=>{var n=km();function r(e){return n(this,e).get(e)}t.exports=r})),Mm=o(((e,t)=>{var n=km();function r(e){return n(this,e).has(e)}t.exports=r})),Nm=o(((e,t)=>{var n=km();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Pm=o(((e,t)=>{var n=Dm(),r=Am(),i=jm(),a=Mm(),o=Nm();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Fm=o(((e,t)=>{var n=em(),r=ym(),i=Pm(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),Im=o(((e,t)=>{var n=em(),r=tm(),i=nm(),a=rm(),o=im(),s=Fm();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),Lm=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),Rm=o(((e,t)=>{var n=vm();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),zm=o(((e,t)=>{var n=Rm();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),Bm=o(((e,t)=>{var n=zm(),r=Jp(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),Vm=o(((e,t)=>{var n=Bm(),r=zm();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),Hm=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),Um=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Wm=o(((e,t)=>{var n=um(),r=Um(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Gm=o(((e,t)=>{var n=Wm(),r=Um(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Km=o(((e,t)=>{t.exports=Array.isArray})),qm=o(((e,t)=>{function n(){return!1}t.exports=n})),Jm=o(((e,t)=>{var n=om(),r=qm(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),Ym=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),Xm=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Zm=o(((e,t)=>{var n=um(),r=Xm(),i=Um(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),Qm=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),$m=o(((e,t)=>{var n=am(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),eh=o(((e,t)=>{var n=Zm(),r=Qm(),i=$m(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),th=o(((e,t)=>{var n=Hm(),r=Gm(),i=Km(),a=Jm(),o=Ym(),s=eh(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),nh=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),rh=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),ih=o(((e,t)=>{t.exports=rh()(Object.keys,Object)})),ah=o(((e,t)=>{var n=nh(),r=ih(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),oh=o(((e,t)=>{var n=fm(),r=Xm();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),sh=o(((e,t)=>{var n=th(),r=ah(),i=oh();function a(e){return i(e)?n(e):r(e)}t.exports=a})),ch=o(((e,t)=>{var n=Vm(),r=sh();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),lh=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),uh=o(((e,t)=>{var n=dm(),r=nh(),i=lh(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),dh=o(((e,t)=>{var n=th(),r=uh(),i=oh();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),fh=o(((e,t)=>{var n=Vm(),r=dh();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),ph=o(((e,t)=>{var n=om(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),mh=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),hh=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),gh=o(((e,t)=>{function n(){return[]}t.exports=n})),_h=o(((e,t)=>{var n=hh(),r=gh(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),vh=o(((e,t)=>{var n=Vm(),r=_h();function i(e,t){return n(e,r(e),t)}t.exports=i})),yh=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),bh=o(((e,t)=>{t.exports=rh()(Object.getPrototypeOf,Object)})),xh=o(((e,t)=>{var n=yh(),r=bh(),i=_h(),a=gh();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),Sh=o(((e,t)=>{var n=Vm(),r=xh();function i(e,t){return n(e,r(e),t)}t.exports=i})),Ch=o(((e,t)=>{var n=yh(),r=Km();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),wh=o(((e,t)=>{var n=Ch(),r=_h(),i=sh();function a(e){return n(e,i,r)}t.exports=a})),Th=o(((e,t)=>{var n=Ch(),r=xh(),i=dh();function a(e){return n(e,i,r)}t.exports=a})),Eh=o(((e,t)=>{t.exports=vm()(om(),`DataView`)})),Dh=o(((e,t)=>{t.exports=vm()(om(),`Promise`)})),Oh=o(((e,t)=>{t.exports=vm()(om(),`Set`)})),kh=o(((e,t)=>{t.exports=vm()(om(),`WeakMap`)})),Ah=o(((e,t)=>{var n=Eh(),r=ym(),i=Dh(),a=Oh(),o=kh(),s=um(),c=hm(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),jh=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),Mh=o(((e,t)=>{t.exports=om().Uint8Array})),Nh=o(((e,t)=>{var n=Mh();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),Ph=o(((e,t)=>{var n=Nh();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),Fh=o(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),Ih=o(((e,t)=>{var n=sm(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),Lh=o(((e,t)=>{var n=Nh();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),Rh=o(((e,t)=>{var n=Nh(),r=Ph(),i=Fh(),a=Ih(),o=Lh(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),zh=o(((e,t)=>{var n=dm(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),Bh=o(((e,t)=>{var n=zh(),r=bh(),i=nh();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),Vh=o(((e,t)=>{var n=Ah(),r=Um(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Hh=o(((e,t)=>{var n=Vh(),r=Qm(),i=$m(),a=i&&i.isMap;t.exports=a?r(a):n})),Uh=o(((e,t)=>{var n=Ah(),r=Um(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Wh=o(((e,t)=>{var n=Uh(),r=Qm(),i=$m(),a=i&&i.isSet;t.exports=a?r(a):n})),Gh=o(((e,t)=>{var n=Im(),r=Lm(),i=Bm(),a=ch(),o=fh(),s=ph(),c=mh(),l=vh(),u=Sh(),d=wh(),f=Th(),p=Ah(),m=jh(),h=Rh(),g=Bh(),_=Km(),v=Jm(),y=Hh(),b=dm(),x=Wh(),S=sh(),C=dh(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,F=`[object Number]`,I=`[object Object]`,L=`[object RegExp]`,R=`[object Set]`,z=`[object String]`,B=`[object Symbol]`,V=`[object WeakMap]`,H=`[object ArrayBuffer]`,ee=`[object DataView]`,U=`[object Float32Array]`,te=`[object Float64Array]`,ne=`[object Int8Array]`,re=`[object Int16Array]`,ie=`[object Int32Array]`,ae=`[object Uint8Array]`,oe=`[object Uint8ClampedArray]`,W=`[object Uint16Array]`,se=`[object Uint32Array]`,G={};G[D]=G[O]=G[H]=G[ee]=G[k]=G[A]=G[U]=G[te]=G[ne]=G[re]=G[ie]=G[P]=G[F]=G[I]=G[L]=G[R]=G[z]=G[B]=G[ae]=G[oe]=G[W]=G[se]=!0,G[j]=G[M]=G[V]=!1;function ce(e,t,O,k,A,j){var P,F=t&w,L=t&T,R=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var z=_(e);if(z){if(P=m(e),!F)return c(e,P)}else{var B=p(e),V=B==M||B==N;if(v(e))return s(e,F);if(B==I||B==D||V&&!A){if(P=L||V?{}:g(e),!F)return L?u(e,o(P,e)):l(e,a(P,e))}else{if(!G[B])return A?e:{};P=h(e,B,F)}}j||=new n;var H=j.get(e);if(H)return H;j.set(e,P),x(e)?e.forEach(function(n){P.add(ce(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,ce(n,t,O,r,e,j))});var ee=z?void 0:(R?L?f:d:L?C:S)(e);return r(ee||e,function(n,r){ee&&(r=n,n=e[r]),i(P,r,ce(n,t,O,r,e,j))}),P}t.exports=ce})),Kh=o(((e,t)=>{var n=Gh(),r=1,i=4;function a(e){return n(e,r|i)}t.exports=a})),qh=o(((e,t)=>{var n=um(),r=Um(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Jh=o(((e,t)=>{var n=Km(),r=qh(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),Yh=o(((e,t)=>{var n=Pm(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),Xh=o(((e,t)=>{var n=Yh(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Zh=o(((e,t)=>{var n=Xh(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Qh=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),$h=o(((e,t)=>{var n=sm(),r=Qh(),i=Km(),a=qh(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),eg=o(((e,t)=>{var n=$h();function r(e){return e==null?``:n(e)}t.exports=r})),tg=o(((e,t)=>{var n=Km(),r=Jh(),i=Zh(),a=eg();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),ng=o(((e,t)=>{var n=qh(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),rg=o(((e,t)=>{var n=tg(),r=ng();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),ig=l(o(((e,t)=>{var n=rg();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r}))()),ag=l(Kh()),og=`1.13.7`,sg=typeof self==`object`&&self.self===self&&self||typeof globalThis==`object`&&globalThis.global===globalThis&&globalThis||Function(`return this`)()||{},cg=Array.prototype,lg=Object.prototype,ug=typeof Symbol<`u`?Symbol.prototype:null,dg=cg.push,fg=cg.slice,pg=lg.toString,mg=lg.hasOwnProperty,hg=typeof ArrayBuffer<`u`,gg=typeof DataView<`u`,_g=Array.isArray,vg=Object.keys,yg=Object.create,bg=hg&&ArrayBuffer.isView,xg=isNaN,Sg=isFinite,Cg=!{toString:null}.propertyIsEnumerable(`toString`),wg=[`valueOf`,`isPrototypeOf`,`toString`,`propertyIsEnumerable`,`hasOwnProperty`,`toLocaleString`],Tg=2**53-1;function Eg(e,t){return t=t==null?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var a=Array(t+1);for(i=0;i<t;i++)a[i]=arguments[i];return a[t]=r,e.apply(this,a)}}function Dg(e){var t=typeof e;return t===`function`||t===`object`&&!!e}function Og(e){return e===null}function kg(e){return e===void 0}function Ag(e){return e===!0||e===!1||pg.call(e)===`[object Boolean]`}function jg(e){return!!(e&&e.nodeType===1)}function Mg(e){var t=`[object `+e+`]`;return function(e){return pg.call(e)===t}}var Ng=Mg(`String`),Pg=Mg(`Number`),Fg=Mg(`Date`),Ig=Mg(`RegExp`),Lg=Mg(`Error`),Rg=Mg(`Symbol`),zg=Mg(`ArrayBuffer`),Bg=Mg(`Function`),Vg=sg.document&&sg.document.childNodes;typeof/./!=`function`&&typeof Int8Array!=`object`&&typeof Vg!=`function`&&(Bg=function(e){return typeof e==`function`||!1});var Hg=Bg,Ug=Mg(`Object`),Wg=gg&&(!/\[native code\]/.test(String(DataView))||Ug(new DataView(new ArrayBuffer(8)))),Gg=typeof Map<`u`&&Ug(new Map),Kg=Mg(`DataView`);function qg(e){return e!=null&&Hg(e.getInt8)&&zg(e.buffer)}var Jg=Wg?qg:Kg,Yg=_g||Mg(`Array`);function Xg(e,t){return e!=null&&mg.call(e,t)}var Zg=Mg(`Arguments`);(function(){Zg(arguments)||(Zg=function(e){return Xg(e,`callee`)})})();var Qg=Zg;function $g(e){return!Rg(e)&&Sg(e)&&!isNaN(parseFloat(e))}function e_(e){return Pg(e)&&xg(e)}function t_(e){return function(){return e}}function n_(e){return function(t){var n=e(t);return typeof n==`number`&&n>=0&&n<=Tg}}function r_(e){return function(t){return t?.[e]}}var i_=r_(`byteLength`),a_=n_(i_),o_=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function s_(e){return bg?bg(e)&&!Jg(e):a_(e)&&o_.test(pg.call(e))}var c_=hg?s_:t_(!1),l_=r_(`length`);function u_(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]===!0},push:function(n){return t[n]=!0,e.push(n)}}}function d_(e,t){t=u_(t);var n=wg.length,r=e.constructor,i=Hg(r)&&r.prototype||lg,a=`constructor`;for(Xg(e,a)&&!t.contains(a)&&t.push(a);n--;)a=wg[n],a in e&&e[a]!==i[a]&&!t.contains(a)&&t.push(a)}function f_(e){if(!Dg(e))return[];if(vg)return vg(e);var t=[];for(var n in e)Xg(e,n)&&t.push(n);return Cg&&d_(e,t),t}function p_(e){if(e==null)return!0;var t=l_(e);return typeof t==`number`&&(Yg(e)||Ng(e)||Qg(e))?t===0:l_(f_(e))===0}function m_(e,t){var n=f_(t),r=n.length;if(e==null)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0}function h_(e){if(e instanceof h_)return e;if(!(this instanceof h_))return new h_(e);this._wrapped=e}h_.VERSION=og,h_.prototype.value=function(){return this._wrapped},h_.prototype.valueOf=h_.prototype.toJSON=h_.prototype.value,h_.prototype.toString=function(){return String(this._wrapped)};function g_(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,i_(e))}var __=`[object DataView]`;function v_(e,t,n,r){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;return i!==`function`&&i!==`object`&&typeof t!=`object`?!1:y_(e,t,n,r)}function y_(e,t,n,r){e instanceof h_&&(e=e._wrapped),t instanceof h_&&(t=t._wrapped);var i=pg.call(e);if(i!==pg.call(t))return!1;if(Wg&&i==`[object Object]`&&Jg(e)){if(!Jg(t))return!1;i=__}switch(i){case`[object RegExp]`:case`[object String]`:return``+e==``+t;case`[object Number]`:return+e==+e?+e==0?1/e==1/t:+e==+t:+t!=+t;case`[object Date]`:case`[object Boolean]`:return+e==+t;case`[object Symbol]`:return ug.valueOf.call(e)===ug.valueOf.call(t);case`[object ArrayBuffer]`:case __:return y_(g_(e),g_(t),n,r)}var a=i===`[object Array]`;if(!a&&c_(e)){if(i_(e)!==i_(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;a=!0}if(!a){if(typeof e!=`object`||typeof t!=`object`)return!1;var o=e.constructor,s=t.constructor;if(o!==s&&!(Hg(o)&&o instanceof o&&Hg(s)&&s instanceof s)&&`constructor`in e&&`constructor`in t)return!1}n||=[],r||=[];for(var c=n.length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),a){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!v_(e[c],t[c],n,r))return!1}else{var l=f_(e),u;if(c=l.length,f_(t).length!==c)return!1;for(;c--;)if(u=l[c],!(Xg(t,u)&&v_(e[u],t[u],n,r)))return!1}return n.pop(),r.pop(),!0}function b_(e,t){return v_(e,t)}function x_(e){if(!Dg(e))return[];var t=[];for(var n in e)t.push(n);return Cg&&d_(e,t),t}function S_(e){var t=l_(e);return function(n){if(n==null||l_(x_(n)))return!1;for(var r=0;r<t;r++)if(!Hg(n[e[r]]))return!1;return e!==O_||!Hg(n[C_])}}var C_=`forEach`,w_=`has`,T_=[`clear`,`delete`],E_=[`get`,w_,`set`],D_=T_.concat(C_,E_),O_=T_.concat(E_),k_=[`add`].concat(T_,C_,w_),A_=Gg?S_(D_):Mg(`Map`),j_=Gg?S_(O_):Mg(`WeakMap`),M_=Gg?S_(k_):Mg(`Set`),N_=Mg(`WeakSet`);function P_(e){for(var t=f_(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function F_(e){for(var t=f_(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function I_(e){for(var t={},n=f_(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function L_(e){var t=[];for(var n in e)Hg(e[n])&&t.push(n);return t.sort()}function R_(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||n==null)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),s=o.length,c=0;c<s;c++){var l=o[c];(!t||n[l]===void 0)&&(n[l]=a[l])}return n}}var z_=R_(x_),B_=R_(f_),V_=R_(x_,!0);function H_(){return function(){}}function U_(e){if(!Dg(e))return{};if(yg)return yg(e);var t=H_();t.prototype=e;var n=new t;return t.prototype=null,n}function W_(e,t){var n=U_(e);return t&&B_(n,t),n}function G_(e){return Dg(e)?Yg(e)?e.slice():z_({},e):e}function K_(e,t){return t(e),e}function q_(e){return Yg(e)?e:[e]}h_.toPath=q_;function J_(e){return h_.toPath(e)}function Y_(e,t){for(var n=t.length,r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}function X_(e,t,n){var r=Y_(e,J_(t));return kg(r)?n:r}function Z_(e,t){t=J_(t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(!Xg(e,i))return!1;e=e[i]}return!!n}function Q_(e){return e}function $_(e){return e=B_({},e),function(t){return m_(t,e)}}function ev(e){return e=J_(e),function(t){return Y_(t,e)}}function tv(e,t,n){if(t===void 0)return e;switch(n??3){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}}function nv(e,t,n){return e==null?Q_:Hg(e)?tv(e,t,n):Dg(e)&&!Yg(e)?$_(e):ev(e)}function rv(e,t){return nv(e,t,1/0)}h_.iteratee=rv;function iv(e,t,n){return h_.iteratee===rv?nv(e,t,n):h_.iteratee(e,t)}function av(e,t,n){t=iv(t,n);for(var r=f_(e),i=r.length,a={},o=0;o<i;o++){var s=r[o];a[s]=t(e[s],s,e)}return a}function ov(){}function sv(e){return e==null?ov:function(t){return X_(e,t)}}function cv(e,t,n){var r=Array(Math.max(0,e));t=tv(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function lv(e,t){return t??(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}var uv=Date.now||function(){return new Date().getTime()};function dv(e){var t=function(t){return e[t]},n=`(?:`+f_(e).join(`|`)+`)`,r=RegExp(n),i=RegExp(n,`g`);return function(e){return e=e==null?``:``+e,r.test(e)?e.replace(i,t):e}}var fv={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#x27;`,"`":`&#x60;`},pv=dv(fv),mv=dv(I_(fv)),hv=h_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},gv=/(.)^/,_v={"'":`'`,"\\":`\\`,"\r":`r`,"\n":`n`,"\u2028":`u2028`,"\u2029":`u2029`},vv=/\\|'|\r|\n|\u2028|\u2029/g;function yv(e){return`\\`+_v[e]}var bv=/^\s*(\w|\$)+\s*$/;function xv(e,t,n){!t&&n&&(t=n),t=V_({},t,h_.templateSettings);var r=RegExp([(t.escape||gv).source,(t.interpolate||gv).source,(t.evaluate||gv).source].join(`|`)+`|$`,`g`),i=0,a=`__p+='`;e.replace(r,function(t,n,r,o,s){return a+=e.slice(i,s).replace(vv,yv),i=s+t.length,n?a+=`'+
13
13
  ((__t=(`+n+`))==null?'':_.escape(__t))+
14
14
  '`:r?a+=`'+
15
15
  ((__t=(`+r+`))==null?'':__t)+
16
16
  '`:o&&(a+=`';
17
17
  `+o+`
18
18
  __p+='`),t}),a+=`';
19
- `;var o=t.variable;if(o){if(!Vv.test(o))throw Error(`variable is not a bare identifier: `+o)}else a=`with(obj||{}){
19
+ `;var o=t.variable;if(o){if(!bv.test(o))throw Error(`variable is not a bare identifier: `+o)}else a=`with(obj||{}){
20
20
  `+a+`}
21
21
  `,o=`obj`;a=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
22
22
  `+a+`return __p;
23
- `;var s;try{s=Function(o,`_`,a)}catch(e){throw e.source=a,e}var c=function(e){return s.call(this,e,I_)};return c.source=`function(`+o+`){
24
- `+a+`}`,c}function Uv(e,t,n){t=hv(t);var r=t.length;if(!r)return l_(n)?n.call(e):n;for(var i=0;i<r;i++){var a=e?.[t[i]];a===void 0&&(a=n,i=r),e=l_(a)?a.call(e):a}return e}var Wv=0;function Gv(e){var t=++Wv+``;return e?e+t:t}function Kv(e){var t=I_(e);return t._chain=!0,t}function qv(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=uv(e.prototype),o=e.apply(a,i);return Jg(o)?o:a}var Jv=qg(function(e,t){var n=Jv.placeholder,r=function(){for(var i=0,a=t.length,o=Array(a),s=0;s<a;s++)o[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)o.push(arguments[i++]);return qv(e,r,this,this,o)};return r});Jv.placeholder=I_;var Yv=qg(function(e,t,n){if(!l_(e))throw TypeError(`Bind must be called on a function`);var r=qg(function(i){return qv(e,r,t,this,n.concat(i))});return r}),Xv=C_(A_);function Zv(e,t,n,r){if(r||=[],!t&&t!==0)t=1/0;else if(t<=0)return r.concat(e);for(var i=r.length,a=0,o=A_(e);a<o;a++){var s=e[a];if(Xv(s)&&(g_(s)||y_(s)))if(t>1)Zv(s,t-1,n,r),i=r.length;else for(var c=0,l=s.length;c<l;)r[i++]=s[c++];else n||(r[i++]=s)}return r}var Qv=qg(function(e,t){t=Zv(t,!1,!1);var n=t.length;if(n<1)throw Error(`bindAll must be passed function names`);for(;n--;){var r=t[n];e[r]=Yv(e[r],e)}return e});function $v(e,t){var n=function(r){var i=n.cache,a=``+(t?t.apply(this,arguments):r);return __(i,a)||(i[a]=e.apply(this,arguments)),i[a]};return n.cache={},n}var ey=qg(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),ty=Jv(ey,I_,1);function ny(e,t,n){var r,i,a,o,s=0;n||={};var c=function(){s=n.leading===!1?0:jv(),r=null,o=e.apply(i,a),r||(i=a=null)},l=function(){var l=jv();!s&&n.leading===!1&&(s=l);var u=t-(l-s);return i=this,a=arguments,u<=0||u>t?(r&&=(clearTimeout(r),null),s=l,o=e.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}function ry(e,t,n){var r,i,a,o,s,c=function(){var l=jv()-i;t>l?r=setTimeout(c,t-l):(r=null,n||(o=e.apply(s,a)),r||(a=s=null))},l=qg(function(l){return s=this,a=l,i=jv(),r||(r=setTimeout(c,t),n&&(o=e.apply(s,a))),o});return l.cancel=function(){clearTimeout(r),r=a=s=null},l}function iy(e,t){return Jv(t,e)}function ay(e){return function(){return!e.apply(this,arguments)}}function oy(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function sy(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function cy(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var ly=Jv(cy,2);function uy(e,t,n){t=Tv(t,n);for(var r=N_(e),i,a=0,o=r.length;a<o;a++)if(i=r[a],t(e[i],i,e))return i}function dy(e){return function(t,n,r){n=Tv(n,r);for(var i=A_(t),a=e>0?0:i-1;a>=0&&a<i;a+=e)if(n(t[a],a,t))return a;return-1}}var fy=dy(1),py=dy(-1);function my(e,t,n,r){n=Tv(n,r,1);for(var i=n(t),a=0,o=A_(e);a<o;){var s=Math.floor((a+o)/2);n(e[s])<i?a=s+1:o=s}return a}function hy(e,t,n){return function(r,i,a){var o=0,s=A_(r);if(typeof a==`number`)e>0?o=a>=0?a:Math.max(a+s,o):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return a=n(r,i),r[a]===i?a:-1;if(i!==i)return a=t(Ng.call(r,o,s),x_),a>=0?a+o:-1;for(a=e>0?o:s-1;a>=0&&a<s;a+=e)if(r[a]===i)return a;return-1}}var gy=hy(1,fy,my),_y=hy(-1,py);function vy(e,t,n){var r=(Xv(e)?fy:uy)(e,t,n);if(r!==void 0&&r!==-1)return e[r]}function yy(e,t){return vy(e,bv(t))}function by(e,t,n){t=Sv(t,n);var r,i;if(Xv(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=N_(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e}function xy(e,t,n){t=Tv(t,n);for(var r=!Xv(e)&&N_(e),i=(r||e).length,a=Array(i),o=0;o<i;o++){var s=r?r[o]:o;a[o]=t(e[s],s,e)}return a}function Sy(e){var t=function(t,n,r,i){var a=!Xv(t)&&N_(t),o=(a||t).length,s=e>0?0:o-1;for(i||(r=t[a?a[s]:s],s+=e);s>=0&&s<o;s+=e){var c=a?a[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var a=arguments.length>=3;return t(e,Sv(n,i,4),r,a)}}var Cy=Sy(1),wy=Sy(-1);function Ty(e,t,n){var r=[];return t=Tv(t,n),by(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function Ey(e,t,n){return Ty(e,ay(Tv(t)),n)}function Dy(e,t,n){t=Tv(t,n);for(var r=!Xv(e)&&N_(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0}function Oy(e,t,n){t=Tv(t,n);for(var r=!Xv(e)&&N_(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1}function ky(e,t,n,r){return Xv(e)||(e=tv(e)),(typeof n!=`number`||r)&&(n=0),gy(e,t,n)>=0}var Ay=qg(function(e,t,n){var r,i;return l_(t)?i=t:(t=hv(t),r=t.slice(0,-1),t=t[t.length-1]),xy(e,function(e){var a=i;if(!a){if(r&&r.length&&(e=gv(e,r)),e==null)return;a=e[t]}return a==null?a:a.apply(e,n)})});function jy(e,t){return xy(e,xv(t))}function My(e,t){return Ty(e,bv(t))}function Ny(e,t,n){var r=-1/0,i=-1/0,a,o;if(t==null||typeof t==`number`&&typeof e[0]!=`object`&&e!=null){e=Xv(e)?e:tv(e);for(var s=0,c=e.length;s<c;s++)a=e[s],a!=null&&a>r&&(r=a)}else t=Tv(t,n),by(e,function(e,n,a){o=t(e,n,a),(o>i||o===-1/0&&r===-1/0)&&(r=e,i=o)});return r}function Py(e,t,n){var r=1/0,i=1/0,a,o;if(t==null||typeof t==`number`&&typeof e[0]!=`object`&&e!=null){e=Xv(e)?e:tv(e);for(var s=0,c=e.length;s<c;s++)a=e[s],a!=null&&a<r&&(r=a)}else t=Tv(t,n),by(e,function(e,n,a){o=t(e,n,a),(o<i||o===1/0&&r===1/0)&&(r=e,i=o)});return r}var Fy=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Iy(e){return e?g_(e)?Ng.call(e):e_(e)?e.match(Fy):Xv(e)?xy(e,yv):tv(e):[]}function Ly(e,t,n){if(t==null||n)return Xv(e)||(e=tv(e)),e[Av(e.length-1)];var r=Iy(e),i=A_(r);t=Math.max(Math.min(t,i),0);for(var a=i-1,o=0;o<t;o++){var s=Av(o,a),c=r[o];r[o]=r[s],r[s]=c}return r.slice(0,t)}function Ry(e){return Ly(e,1/0)}function zy(e,t,n){var r=0;return t=Tv(t,n),jy(xy(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||n===void 0)return 1;if(n<r||r===void 0)return-1}return e.index-t.index}),`value`)}function By(e,t){return function(n,r,i){var a=t?[[],[]]:{};return r=Tv(r,i),by(n,function(t,i){e(a,t,r(t,i,n))}),a}}var Vy=By(function(e,t,n){__(e,n)?e[n].push(t):e[n]=[t]}),Hy=By(function(e,t,n){e[n]=t}),Uy=By(function(e,t,n){__(e,n)?e[n]++:e[n]=1}),Wy=By(function(e,t,n){e[n?0:1].push(t)},!0);function Gy(e){return e==null?0:Xv(e)?e.length:N_(e).length}function Ky(e,t,n){return t in n}var qy=qg(function(e,t){var n={},r=t[0];if(e==null)return n;l_(r)?(t.length>1&&(r=Sv(r,t[1])),t=H_(e)):(r=Ky,t=Zv(t,!1,!1),e=Object(e));for(var i=0,a=t.length;i<a;i++){var o=t[i],s=e[o];r(s,o,e)&&(n[o]=s)}return n}),Jy=qg(function(e,t){var n=t[0],r;return l_(n)?(n=ay(n),t.length>1&&(r=t[1])):(t=xy(Zv(t,!1,!1),String),n=function(e,n){return!ky(t,n)}),qy(e,n,r)});function Yy(e,t,n){return Ng.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))}function Xy(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[0]:Yy(e,e.length-t)}function Zy(e,t,n){return Ng.call(e,t==null||n?1:t)}function Qy(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[e.length-1]:Zy(e,Math.max(0,e.length-t))}function $y(e){return Ty(e,Boolean)}function eb(e,t){return Zv(e,t,!1)}var tb=qg(function(e,t){return t=Zv(t,!0,!0),Ty(e,function(e){return!ky(t,e)})}),nb=qg(function(e,t){return tb(e,t)});function rb(e,t,n,r){Zg(t)||(r=n,n=t,t=!1),n!=null&&(n=Tv(n,r));for(var i=[],a=[],o=0,s=A_(e);o<s;o++){var c=e[o],l=n?n(c,o,e):c;t&&!n?((!o||a!==l)&&i.push(c),a=l):n?ky(a,l)||(a.push(l),i.push(c)):ky(i,c)||i.push(c)}return i}var ib=qg(function(e){return rb(Zv(e,!0,!0))});function ab(e){for(var t=[],n=arguments.length,r=0,i=A_(e);r<i;r++){var a=e[r];if(!ky(t,a)){var o;for(o=1;o<n&&ky(arguments[o],a);o++);o===n&&t.push(a)}}return t}function ob(e){for(var t=e&&Ny(e,A_).length||0,n=Array(t),r=0;r<t;r++)n[r]=jy(e,r);return n}var sb=qg(ob);function cb(e,t){for(var n={},r=0,i=A_(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function lb(e,t,n){t??(t=e||0,e=0),n||=t<e?-1:1;for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i}function ub(e,t){if(t==null||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(Ng.call(e,r,r+=t));return n}function db(e,t){return e._chain?I_(t).chain():t}function fb(e){return by(iv(e),function(t){var n=I_[t]=e[t];I_.prototype[t]=function(){var e=[this._wrapped];return Mg.apply(e,arguments),db(this,n.apply(I_,e))}}),I_}by([`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=kg[e];I_.prototype[e]=function(){var n=this._wrapped;return n!=null&&(t.apply(n,arguments),(e===`shift`||e===`splice`)&&n.length===0&&delete n[0]),db(this,n)}}),by([`concat`,`join`,`slice`],function(e){var t=kg[e];I_.prototype[e]=function(){var e=this._wrapped;return e!=null&&(e=t.apply(e,arguments)),db(this,e)}});var pb=I_,mb=fb(s({VERSION:()=>Dg,after:()=>sy,all:()=>Dy,allKeys:()=>H_,any:()=>Oy,assign:()=>sv,before:()=>cy,bind:()=>Yv,bindAll:()=>Qv,chain:()=>Kv,chunk:()=>ub,clone:()=>fv,collect:()=>xy,compact:()=>$y,compose:()=>oy,constant:()=>S_,contains:()=>ky,countBy:()=>Uy,create:()=>dv,debounce:()=>ry,default:()=>pb,defaults:()=>cv,defer:()=>ty,delay:()=>ey,detect:()=>vy,difference:()=>tb,drop:()=>Zy,each:()=>by,escape:()=>Pv,every:()=>Dy,extend:()=>ov,extendOwn:()=>sv,filter:()=>Ty,find:()=>vy,findIndex:()=>fy,findKey:()=>uy,findLastIndex:()=>py,findWhere:()=>yy,first:()=>Xy,flatten:()=>eb,foldl:()=>Cy,foldr:()=>wy,forEach:()=>by,functions:()=>iv,get:()=>_v,groupBy:()=>Vy,has:()=>vv,head:()=>Xy,identity:()=>yv,include:()=>ky,includes:()=>ky,indexBy:()=>Hy,indexOf:()=>gy,initial:()=>Yy,inject:()=>Cy,intersection:()=>ab,invert:()=>rv,invoke:()=>Ay,isArguments:()=>y_,isArray:()=>g_,isArrayBuffer:()=>o_,isBoolean:()=>Zg,isDataView:()=>h_,isDate:()=>n_,isElement:()=>Qg,isEmpty:()=>P_,isEqual:()=>V_,isError:()=>i_,isFinite:()=>b_,isFunction:()=>l_,isMap:()=>Z_,isMatch:()=>F_,isNaN:()=>x_,isNull:()=>Yg,isNumber:()=>t_,isObject:()=>Jg,isRegExp:()=>r_,isSet:()=>$_,isString:()=>e_,isSymbol:()=>a_,isTypedArray:()=>k_,isUndefined:()=>Xg,isWeakMap:()=>Q_,isWeakSet:()=>ev,iteratee:()=>wv,keys:()=>N_,last:()=>Qy,lastIndexOf:()=>_y,map:()=>xy,mapObject:()=>Ev,matcher:()=>bv,matches:()=>bv,max:()=>Ny,memoize:()=>$v,methods:()=>iv,min:()=>Py,mixin:()=>fb,negate:()=>ay,noop:()=>Dv,now:()=>jv,object:()=>cb,omit:()=>Jy,once:()=>ly,pairs:()=>nv,partial:()=>Jv,partition:()=>Wy,pick:()=>qy,pluck:()=>jy,property:()=>xv,propertyOf:()=>Ov,random:()=>Av,range:()=>lb,reduce:()=>Cy,reduceRight:()=>wy,reject:()=>Ey,rest:()=>Zy,restArguments:()=>qg,result:()=>Uv,sample:()=>Ly,select:()=>Ty,shuffle:()=>Ry,size:()=>Gy,some:()=>Oy,sortBy:()=>zy,sortedIndex:()=>my,tail:()=>Zy,take:()=>Xy,tap:()=>pv,template:()=>Hv,templateSettings:()=>Iv,throttle:()=>ny,times:()=>kv,toArray:()=>Iy,toPath:()=>mv,transpose:()=>ob,unescape:()=>Fv,union:()=>ib,uniq:()=>rb,unique:()=>rb,uniqueId:()=>Gv,unzip:()=>ob,values:()=>tv,where:()=>My,without:()=>nb,wrap:()=>iy,zip:()=>sb}));mb._=mb;var hb={isEmpty(e){return P_(e)},values(e){return tv(e)},keys(e){return N_(e)},deepClone(e){return(0,Eg.default)(e)},getEnumKeys(e){return Object.keys(e).filter(e=>!(parseInt(e)>=0))},isObject(e){return Jg(e)},isEqual(e,t){return V_(e,t)},omit(e,t){return Jy(e,t)},pick(e,t){return qy(e,t)},removeEmptyKeys(e){return Object.entries(e).filter(([,e])=>e!=null).reduce((e,[t,n])=>({...e,[t]:n}),{})},flattenObjectToString(e,t=``,n=`,`){return Object.keys(e).sort().map(n=>{let r=t?`${t}.${n}`:n;return typeof e[n]==`object`&&!Array.isArray(e[n])?hb.flattenObjectToString(e[n],r):`${r}:${e[n]}`}).join(n)},get(e,t,n){return(0,Tg.default)(e,t,n)},swapKeysAndValues(e){return Object.entries(e).reduce((e,[t,n])=>({...e,[n]:t}),{})},merge(e,t){return(0,wg.default)({},e,t)}},gb=function(e){return e[e.Unclassified=0]=`Unclassified`,e[e.Active=1]=`Active`,e[e.Prospect=2]=`Prospect`,e[e.LostCustomer=3]=`LostCustomer`,e[e.Disabled=4]=`Disabled`,e[e.Other=5]=`Other`,e}({}),_b=function(e){return e.Unclassified=`Unclassified`,e.Active=`Active`,e.Prospect=`Prospect`,e.LostCustomer=`LostCustomer`,e.Disabled=`Disabled`,e.Other=`Other`,e}({}),vb={[Ku.Unclassified]:Gu.Unclassified,[Ku.Primary]:Gu.Primary,[Ku.Secondary]:Gu.Secondary,[Ku.K12]:Gu.K12,[Ku.Tertiary]:Gu.Tertiary,[Ku.NonEducational]:Gu.NonEducational,[Ku.Partners]:Gu.Partners,[Ku.Internal]:Gu.Internal,[Ku.Other]:Gu.Other,[Ku.ClickView]:Gu.ClickView,[Ku.System]:Gu.System},yb=hb.swapKeysAndValues(vb),bb={[_b.Unclassified]:gb.Unclassified,[_b.Active]:gb.Active,[_b.Prospect]:gb.Prospect,[_b.LostCustomer]:gb.LostCustomer,[_b.Disabled]:gb.Disabled,[_b.Other]:gb.Other},xb=hb.swapKeysAndValues(bb),Sb={getCustomerType(e){return typeof e==`string`?vb[e]||Gu.Unclassified:e},getCustomerTypeString(e){return yb[e]||Ku.Unclassified},getCustomerStatusString(e){return xb[e]||_b.Unclassified}};function Cb(e){switch(e.errorCode.toString()){case`user.invalid-first-name`:case`user.invalid-surname`:return{fullName:e.userMessage};case`user.invalid-password`:case`user.same-password`:case`user.password-too-short`:return{password:e.userMessage};case`user.invalid-jobtitle`:return{default:e.userMessage};default:return{}}}function wb(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({}),{productName:a}=Fd.getDefinition(e.theme);function o(t){let{jobTitle:n,password:a,confirmPassword:o}=t,{firstName:s,surname:c}=t,l={},[u,d]=$f.isPasswordValid(a,o,e.requireConfirmPassword);return u||(l.password=d),e.allowNameChange&&(!s||!c)&&(l.fullName=`Please enter your full name.`),e.allowJobTitleChange&&!n?.length&&(l.jobTitle=`Please enter your role..`),i({...r,...l}),!Object.keys(l).length}function s(t){if(!o(t))return;let r={token:e.token,appLink:e.appLink,userId:e.userId,email:e.email,password:t.password};e.allowNameChange&&(r.firstName=t.firstName,r.surname=t.surname),e.allowJobTitleChange&&(r.jobTitle=t.jobTitle),n(!0),yd.post(`/ajax/activate/complete`,r).then(t=>Ld(t,e)).catch(c)}function c(e){n(!1);let t=Cb(e);i({...r,...t})}let l=e.customers?.some(e=>Sb.getCustomerType(e.customerType)===Gu.Tertiary);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Welcome to ${a}`,children:`Create a password to login and get started`}),(0,Q.jsx)(Kp,{allowNameChange:e.allowNameChange,allowJobTitleChange:e.allowJobTitleChange,errors:r,setErrors:i,onSubmit:s,spinner:t,requireConfirmPassword:e.requireConfirmPassword,countryCode:e.countryCode,isTertiary:l})]})}function Tb(e){return(0,Q.jsx)(`div`,{className:`svg-container d-flex justify-content-center align-items-center ${e.className}`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M18.7827 5.19245C19.0472 5.47531 19.074 5.96669 18.8425 6.28996L9.93345 18.7344C9.81748 18.8964 9.65175 18.9924 9.47572 18.9996C9.29969 19.0067 9.12911 18.9244 9.00457 18.7722L5.18639 14.1055C4.93787 13.8018 4.93787 13.3093 5.18639 13.0056C5.4349 12.7019 5.83783 12.7019 6.08634 13.0056L9.42354 17.0844L17.8847 5.26562C18.1161 4.94235 18.5182 4.90959 18.7827 5.19245Z`})})})}var Eb={name:`_name_bthu2_1`,background:`_background_bthu2_4`,spinnerButton:`_spinnerButton_bthu2_7`,containerNotJoined:`_containerNotJoined_bthu2_11`,checkCircle:`_checkCircle_bthu2_18`,checkIcon:`_checkIcon_bthu2_22`,logo:`_logo_bthu2_27`};function Db(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(!1),[a,o]=Z.useState(!1),s;s=typeof e.icon==`function`?e.icon:()=>(0,Q.jsx)(`img`,{alt:`icon`,className:`w-100 h-100 border rounded-circle border`,src:e.icon});function c(){n(!0),e.onClickJoin().then(()=>i(!0)).finally(()=>n(!1))}function l(){let t=`py-2 btn btn-lg mb-3 w-100`;return r?{onClick:e.onClickLogin,role:`button`,tabIndex:0,className:`${t} bg-light-blue`}:{className:`${t} bg-light-blue cursor-default ${Eb.containerNotJoined}`}}return(0,Q.jsx)(`div`,{...l(),children:(0,Q.jsxs)(`div`,{className:`py-1 d-flex align-items-center`,children:[!a&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`span`,{className:`icon-circle rounded-circle text-white me-2 bg-blue d-flex justify-content-center align-items-center ${Eb.logo}`,children:(0,Q.jsx)(s,{})}),(0,Q.jsx)(`span`,{className:`h6 mb-0 text-start me-2 ${Eb.name}`,children:e.customerName})]}),r&&(0,Q.jsxs)(`div`,{className:`d-flex align-items-center ms-auto`,children:[(0,Q.jsx)(`div`,{className:`rounded-circle bg-green text-white me-2 d-flex align-items-center justify-content-center ${Eb.checkCircle}`,children:(0,Q.jsx)(Tb,{className:Eb.checkIcon})}),(0,Q.jsx)(`div`,{className:`font-size-normal fw-semibold`,children:`Joined`}),(0,Q.jsx)(`span`,{className:`ms-1`,children:(0,Q.jsx)(wf,{})})]}),!r&&!a&&(0,Q.jsxs)(`span`,{className:`ms-auto d-flex align-items-center`,children:[(0,Q.jsx)(nd,{onClick:c,className:`btn btn-outline-dark font-weight-600 text-nowrap ${Eb.spinnerButton}`,showSpinner:t,children:`Accept invite`}),e.canDeletePendingInvites&&(0,Q.jsx)(`button`,{onClick:()=>o(!0),className:`btn btn-link p-0 mx-1`,children:(0,Q.jsx)(`div`,{className:`svg-container`,children:(0,Q.jsx)(rd,{})})})]}),!r&&a&&(0,Q.jsxs)(`div`,{className:`font-size-normal d-flex align-items-center text-nowrap py-1`,children:[(0,Q.jsx)(`div`,{children:`Are you sure?`}),`\xA0`,(0,Q.jsx)(`button`,{className:`btn btn-link text-danger p-0`,onClick:e.onClickReject,children:`Decline invitation`}),`\xA0|\xA0`,(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0`,onClick:()=>o(!1),children:`Go back`})]})]})})}function Ob(e){let{navigate:t,customers:n,returnUrl:r,isChangeCustomer:i,organisation:a,backStep:o,email:s}=e,[c,l]=Z.useState(null),[u,d]=Z.useState(null),[f,p]=Z.useState([]),m=e.pendingInvites?.filter(e=>!f.includes(e.customerId))??[],h=!!a&&!o;function g(){if(!s){t({step:`verify-email`,canSkip:!1});return}e.navigate({step:`prospect-select`,backStep:`select-customer`})}function _(t){let n=i?`/ajax/change-customer`:`/ajax/login/select-customer`;yd.post(n,{customerId:t,returnUrl:r}).then(t=>Ld(t,e,{backStep:`select-customer`})).catch(e=>{d(e.userMessage||`Something went wrong. Please try again.`)})}function v(e){_(e.id)}function y(){c&&_(c.id)}function b(e){return new Promise((t,n)=>{yd.post(`/ajax/login/accept-invite`,{userProfileId:e}).then(t).catch(e=>{d(e.userMessage||`Something went wrong. Please try again.`),n()})})}function x(e,t){yd.post(`/ajax/login/deny-invite`,{userProfileId:t}).then(()=>{p(t=>t.concat(e))}).catch(e=>{d(e.userMessage||`Something went wrong. Please try again.`)})}function S(){t({step:`organisation-select-customer`,backStep:`select-customer`})}function C(){t({step:o,backStep:null})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:o&&C,title:`Welcome back ${e.firstName||``} 👋`,children:!!e.email&&(0,Q.jsx)(bp,{children:e.email})}),(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Schools`}),n?.length?(0,Q.jsx)(Q.Fragment,{children:n.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`mb-3`,children:(0,Q.jsx)(Rf,{id:`school`,item:c,items:n,onSelect:l,getName:e=>e.name,clearData:()=>l(null),placeholder:`Select a school`,size:`lg`})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,disabled:!c,onClick:y,children:`Continue`})]}):(0,Q.jsx)(Q.Fragment,{children:n?.map((e,t)=>(0,Q.jsx)(Df,{onClick:()=>v(e),text:e.name,icon:kf.buildAvatarUrl(e.logoUrl,{size:`small`})||Of,className:`mb-3`},t))})}):(0,Q.jsxs)(`div`,{className:`border border-secondary-subtle rounded-3 w-100 p-3 mb-3 d-flex align-items-center`,children:[(0,Q.jsx)(`span`,{className:`icon-circle rounded-circle text-white me-2 bg-secondary d-flex justify-content-center align-items-center`,children:(0,Q.jsx)(Of,{})}),(0,Q.jsx)(`span`,{className:`mb-0 fst-italic text-secondary`,children:`You currently don't have access to any schools`})]}),!!m?.length&&(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Pending Invitations`}),m.map(t=>(0,Q.jsx)(Db,{customerName:t.name,icon:kf.buildAvatarUrl(t.logoUrl,{size:`small`})||Of,onClickJoin:()=>b(t.userProfileId),onClickReject:()=>x(t.customerId,t.userProfileId),onClickLogin:()=>_(t.customerId),canDeletePendingInvites:e.canDeletePendingInvites},t.userProfileId))]}),!n?.length&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Waiting on a school admin?`}),(0,Q.jsx)(`p`,{className:`text-secondary mb-0`,children:s?(0,Q.jsxs)(Q.Fragment,{children:[`Ask them to invite `,(0,Q.jsx)(`strong`,{children:s}),` to access your school.`]}):(0,Q.jsx)(Q.Fragment,{children:`Speak to your school admin to get added in their ClickView admin console.`})})]}),e.showCreateProspect&&(0,Q.jsx)(`hr`,{}),e.showCreateProspect&&(0,Q.jsxs)(`div`,{className:`d-flex align-items-center justify-content-between mb-3`,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Evaluating ClickView on your own?`}),(0,Q.jsx)(`p`,{className:`text-secondary mb-0`,children:`Start a free trial.`})]}),(0,Q.jsx)(`button`,{className:`btn btn-outline-dark font-weight-600 text-nowrap ms-3`,onClick:g,children:`Start trial`})]}),!h&&ld.contactSupport&&(0,Q.jsxs)(`p`,{className:`text-center text-secondary mt-5`,children:[`Stuck, or think this is wrong? `,(0,Q.jsx)(`a`,{href:ld.contactSupport,target:`_blank`,children:`Contact support`})]})]}),h&&(0,Q.jsx)(`div`,{className:`text-center mt-3`,children:(0,Q.jsxs)(`button`,{className:`btn btn-link text-info`,onClick:S,children:[`Sign into another school in `,(0,Q.jsx)(`strong`,{children:a.name})]})}),u&&(0,Q.jsx)(`div`,{className:`text-danger text-center`,children:u})]})}var kb=ld.marketingSite,Ab=function(e){return e.Demo=`/contact-us/sales`,e.DemoUK=`/contact-us/trial/`,e.DemoNZ=`/contact-us/`,e.Upgrade=`/contact-us/trial-upgrade/`,e}(Ab||{}),jb={[$.NZ]:Ab.DemoNZ,[$.UK]:Ab.DemoUK,[$.AU]:Ab.Demo,[$.US]:Ab.Demo,[$.CA]:Ab.Demo};function Mb(e,t){let{email:n,firstName:r,surname:i,salesforceId:a,countryCode:o}=e;if(!n)return null;let s=kb[o.toLowerCase()]||kb[$.US];if(!s)return null;let c={email:n};return r&&(c.fname=r),i&&(c.sname=i),a&&(c.id=a),`${s}${t}?${new URLSearchParams(c).toString()}`}function Nb(e){let t=jb[e.countryCode.toLowerCase()]||jb[$.US];return t?Mb(e,t):null}function Pb(e){return Mb(e,Ab.Upgrade)}function Fb(e){return!(!e||e.toLowerCase()===`teacher`)}var Ib={[$.AU]:`02 9509 2600`,[$.UK]:`+44 (0)333 207 6595`,[$.NZ]:`09 916 1156`,[$.US]:`+1 (312) 763-9491`,[$.CA]:`+1 (312) 763-9491`};function Lb(e){let{email:t,firstName:n,surname:r,jobTitle:i,countryCode:a,salesforceId:o,userType:s}=e,c={email:t,firstName:n,surname:r,countryCode:a,salesforceId:o},l=Ib[a.toLowerCase()]||Ib[$.US],u=Nb(c),d=Pb(c),{productName:f}=Fd.getDefinition(e.theme);return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(td,{theme:e.theme}),(0,Q.jsx)(`img`,{className:`img-fluid mb-4`,alt:`error`,src:`/images/errors/trial-expired.png`}),(0,Q.jsxs)(`h1`,{className:`h2`,children:[`Your `,f,` trial has ended`]}),s===`Learner`?(0,Q.jsx)(Q.Fragment,{}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`p`,{children:[`Learn more about how to upgrade and access all features available on `,f,`.`]}),(0,Q.jsx)(`div`,{className:`text-center`,children:u&&Fb(i)?(0,Q.jsx)(`a`,{href:u,className:`btn btn-lg btn-dark`,children:`Book a call`}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`a`,{href:d,className:`btn btn-lg btn-dark w-100`,children:`Request upgrade`}),l&&(0,Q.jsxs)(`p`,{children:[`or `,(0,Q.jsx)(`br`,{}),`Speak to a team member on `,(0,Q.jsx)(`b`,{children:(0,Q.jsx)(`a`,{href:`tel:${l}`,children:l})})]})]})})]})]})}var Rb=o(((e,t)=>{(function(){var e,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?t.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},n=process.hrtime,e=function(){var e=n();return e[0]*1e9+e[1]},i=e(),o=process.uptime()*1e9,a=i-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(e)})),zb=o(((e,t)=>{for(var n=Rb(),r=typeof window>`u`?globalThis:window,i=[`moz`,`webkit`],a=`AnimationFrame`,o=r[`request`+a],s=r[`cancel`+a]||r[`cancelRequest`+a],c=0;!o&&c<i.length;c++)o=r[i[c]+`Request`+a],s=r[i[c]+`Cancel`+a]||r[i[c]+`CancelRequest`+a];if(!o||!s){var l=0,u=0,d=[],f=1e3/60;o=function(e){if(d.length===0){var t=n(),r=Math.max(0,f-(t-l));l=r+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return d.push({handle:++u,callback:e,cancelled:!1}),u},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return o.call(r,e)},t.exports.cancel=function(){s.apply(r,arguments)},t.exports.polyfill=function(e){e||=r,e.requestAnimationFrame=o,e.cancelAnimationFrame=s}})),Bb=o(((e,t)=>{var n=null,r=[`Webkit`,`Moz`,`O`,`ms`];t.exports=function(e){n||=document.createElement(`div`);var t=n.style;if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),a=r.length;a>=0;a--){var o=r[a]+i;if(o in t)return o}return!1}})),Vb=o(((e,t)=>{t.exports=a;var n=/\s/,r=/(_|-|\.|:)/,i=/([a-z][A-Z]|[A-Z][a-z])/;function a(e){return n.test(e)?e.toLowerCase():r.test(e)?(s(e)||e).toLowerCase():i.test(e)?l(e).toLowerCase():e.toLowerCase()}var o=/[\W_]+(.|$)/g;function s(e){return e.replace(o,function(e,t){return t?` `+t:``})}var c=/(.)([A-Z]+)/g;function l(e){return e.replace(c,function(e,t,n){return t+` `+n.toLowerCase().split(``).join(` `)})}})),Hb=o(((e,t)=>{var n=Vb();t.exports=r;function r(e){return n(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?` `+t:``}).trim()}})),Ub=o(((e,t)=>{var n=Hb();t.exports=r;function r(e){return n(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}})),Wb=o(((e,t)=>{var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};t.exports=function(e,t){return typeof t==`number`&&!n[e]?t+`px`:t}})),Gb=o(((e,t)=>{var n=Bb(),r=Ub(),i={float:`cssFloat`},a=Wb();function o(e,t,n){var r=i[t];if(r===void 0&&(r=c(t)),r){if(n===void 0)return e.style[r];e.style[r]=a(r,n)}}function s(e,t){for(var n in t)t.hasOwnProperty(n)&&o(e,n,t[n])}function c(e){var t=r(e),a=n(t);return i[t]=i[e]=i[a]=a,a}function l(){arguments.length===2?typeof arguments[1]==`string`?arguments[0].style.cssText=arguments[1]:s(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}t.exports=l,t.exports.set=l,t.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(t,n){return t[n]=o(e,n||``),t},{}):o(e,t||``)}})),Kb=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),qb=o(((e,t)=>{var n=Kb();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Jb=o(((e,t)=>{t.exports=qb()()})),Yb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){return typeof e==`string`}})),Xb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var t=n(Gb());function n(e){return e&&e.__esModule?e:{default:e}}var r=!1;function i(){if((!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])&&r!==!1)return r;if(typeof document<`u`){var e=document.createElement(`div`);(0,t.default)(e,{width:100,height:100,position:`absolute`,top:-9999,overflow:`scroll`,MsOverflowStyle:`scrollbar`}),document.body.appendChild(e),r=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else r=0;return r||0}})),Zb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(){return!1}})),Qb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}})),$b=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}})),ex=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.containerStyleDefault={position:`relative`,overflow:`hidden`,width:`100%`,height:`100%`},e.containerStyleAutoHeight={height:`auto`},e.viewStyleDefault={position:`absolute`,top:0,left:0,right:0,bottom:0,overflow:`scroll`,WebkitOverflowScrolling:`touch`},e.viewStyleAutoHeight={position:`relative`,top:void 0,left:void 0,right:void 0,bottom:void 0},e.viewStyleUniversalInitial={overflow:`hidden`,marginRight:0,marginBottom:0},e.trackHorizontalStyleDefault={position:`absolute`,height:6},e.trackVerticalStyleDefault={position:`absolute`,width:6},e.thumbHorizontalStyleDefault={position:`relative`,display:`block`,height:`100%`},e.thumbVerticalStyleDefault={position:`relative`,display:`block`,width:`100%`},e.disableSelectStyle={userSelect:`none`},e.disableSelectStyleReset={userSelect:``}})),tx=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.renderViewDefault=a,e.renderTrackHorizontalDefault=o,e.renderTrackVerticalDefault=s,e.renderThumbHorizontalDefault=c,e.renderThumbVerticalDefault=l;var n=r(zu());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return n.default.createElement(`div`,e)}function o(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{right:2,bottom:2,left:2,borderRadius:3});return n.default.createElement(`div`,t({style:o},a))}function s(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{right:2,bottom:2,top:2,borderRadius:3});return n.default.createElement(`div`,t({style:o},a))}function c(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{cursor:`pointer`,borderRadius:`inherit`,backgroundColor:`rgba(0,0,0,.2)`});return n.default.createElement(`div`,t({style:o},a))}function l(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{cursor:`pointer`,borderRadius:`inherit`,backgroundColor:`rgba(0,0,0,.2)`});return n.default.createElement(`div`,t({style:o},a))}})),nx=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=zb(),i=h(r),a=h(Gb()),o=zu(),s=h(Jb()),c=h(Yb()),l=h(Xb()),u=h(Zb()),d=h(Qb()),f=h($b()),p=ex(),m=tx();function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function v(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function y(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=function(e){y(s,e);function s(e){var t;_(this,s);var n=[...arguments].slice(1),r=v(this,(t=s.__proto__||Object.getPrototypeOf(s)).call.apply(t,[this,e].concat(n)));return r.getScrollLeft=r.getScrollLeft.bind(r),r.getScrollTop=r.getScrollTop.bind(r),r.getScrollWidth=r.getScrollWidth.bind(r),r.getScrollHeight=r.getScrollHeight.bind(r),r.getClientWidth=r.getClientWidth.bind(r),r.getClientHeight=r.getClientHeight.bind(r),r.getValues=r.getValues.bind(r),r.getThumbHorizontalWidth=r.getThumbHorizontalWidth.bind(r),r.getThumbVerticalHeight=r.getThumbVerticalHeight.bind(r),r.getScrollLeftForOffset=r.getScrollLeftForOffset.bind(r),r.getScrollTopForOffset=r.getScrollTopForOffset.bind(r),r.scrollLeft=r.scrollLeft.bind(r),r.scrollTop=r.scrollTop.bind(r),r.scrollToLeft=r.scrollToLeft.bind(r),r.scrollToTop=r.scrollToTop.bind(r),r.scrollToRight=r.scrollToRight.bind(r),r.scrollToBottom=r.scrollToBottom.bind(r),r.handleTrackMouseEnter=r.handleTrackMouseEnter.bind(r),r.handleTrackMouseLeave=r.handleTrackMouseLeave.bind(r),r.handleHorizontalTrackMouseDown=r.handleHorizontalTrackMouseDown.bind(r),r.handleVerticalTrackMouseDown=r.handleVerticalTrackMouseDown.bind(r),r.handleHorizontalThumbMouseDown=r.handleHorizontalThumbMouseDown.bind(r),r.handleVerticalThumbMouseDown=r.handleVerticalThumbMouseDown.bind(r),r.handleWindowResize=r.handleWindowResize.bind(r),r.handleScroll=r.handleScroll.bind(r),r.handleDrag=r.handleDrag.bind(r),r.handleDragEnd=r.handleDragEnd.bind(r),r.state={didMountUniversal:!1},r}return n(s,[{key:`componentDidMount`,value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:`componentDidMountUniversal`,value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:`componentDidUpdate`,value:function(){this.update()}},{key:`componentWillUnmount`,value:function(){this.removeListeners(),(0,r.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:`getScrollLeft`,value:function(){return this.view?this.view.scrollLeft:0}},{key:`getScrollTop`,value:function(){return this.view?this.view.scrollTop:0}},{key:`getScrollWidth`,value:function(){return this.view?this.view.scrollWidth:0}},{key:`getScrollHeight`,value:function(){return this.view?this.view.scrollHeight:0}},{key:`getClientWidth`,value:function(){return this.view?this.view.clientWidth:0}},{key:`getClientHeight`,value:function(){return this.view?this.view.clientHeight:0}},{key:`getValues`,value:function(){var e=this.view||{},t=e.scrollLeft,n=t===void 0?0:t,r=e.scrollTop,i=r===void 0?0:r,a=e.scrollWidth,o=a===void 0?0:a,s=e.scrollHeight,c=s===void 0?0:s,l=e.clientWidth,u=l===void 0?0:l,d=e.clientHeight,f=d===void 0?0:d;return{left:n/(o-u)||0,top:i/(c-f)||0,scrollLeft:n,scrollTop:i,scrollWidth:o,scrollHeight:c,clientWidth:u,clientHeight:f}}},{key:`getThumbHorizontalWidth`,value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,a=r.clientWidth,o=(0,d.default)(this.trackHorizontal),s=Math.ceil(a/i*o);return o<=s?0:t||Math.max(s,n)}},{key:`getThumbVerticalHeight`,value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollHeight,a=r.clientHeight,o=(0,f.default)(this.trackVertical),s=Math.ceil(a/i*o);return o<=s?0:t||Math.max(s,n)}},{key:`getScrollLeftForOffset`,value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,d.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:`getScrollTopForOffset`,value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,f.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:`scrollLeft`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:`scrollTop`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:`scrollToLeft`,value:function(){this.view&&(this.view.scrollLeft=0)}},{key:`scrollToTop`,value:function(){this.view&&(this.view.scrollTop=0)}},{key:`scrollToRight`,value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:`scrollToBottom`,value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:`addListeners`,value:function(){if(!(typeof document>`u`||!this.view)){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.addEventListener(`scroll`,this.handleScroll),(0,l.default)()&&(t.addEventListener(`mouseenter`,this.handleTrackMouseEnter),t.addEventListener(`mouseleave`,this.handleTrackMouseLeave),t.addEventListener(`mousedown`,this.handleHorizontalTrackMouseDown),n.addEventListener(`mouseenter`,this.handleTrackMouseEnter),n.addEventListener(`mouseleave`,this.handleTrackMouseLeave),n.addEventListener(`mousedown`,this.handleVerticalTrackMouseDown),r.addEventListener(`mousedown`,this.handleHorizontalThumbMouseDown),i.addEventListener(`mousedown`,this.handleVerticalThumbMouseDown),window.addEventListener(`resize`,this.handleWindowResize))}}},{key:`removeListeners`,value:function(){if(!(typeof document>`u`||!this.view)){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.removeEventListener(`scroll`,this.handleScroll),(0,l.default)()&&(t.removeEventListener(`mouseenter`,this.handleTrackMouseEnter),t.removeEventListener(`mouseleave`,this.handleTrackMouseLeave),t.removeEventListener(`mousedown`,this.handleHorizontalTrackMouseDown),n.removeEventListener(`mouseenter`,this.handleTrackMouseEnter),n.removeEventListener(`mouseleave`,this.handleTrackMouseLeave),n.removeEventListener(`mousedown`,this.handleVerticalTrackMouseDown),r.removeEventListener(`mousedown`,this.handleHorizontalThumbMouseDown),i.removeEventListener(`mousedown`,this.handleVerticalThumbMouseDown),window.removeEventListener(`resize`,this.handleWindowResize),this.teardownDragging())}}},{key:`handleScroll`,value:function(e){var t=this,n=this.props,r=n.onScroll,i=n.onScrollFrame;r&&r(e),this.update(function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(e)}),this.detectScrolling()}},{key:`handleScrollStart`,value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:`handleScrollStartAutoHide`,value:function(){this.props.autoHide&&this.showTracks()}},{key:`handleScrollStop`,value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:`handleScrollStopAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`handleWindowResize`,value:function(){(0,l.default)(!1),this.forceUpdate()}},{key:`handleHorizontalTrackMouseDown`,value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,i=this.getThumbHorizontalWidth(),a=Math.abs(r-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}},{key:`handleVerticalTrackMouseDown`,value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,i=this.getThumbVerticalHeight(),a=Math.abs(r-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(a)}},{key:`handleHorizontalThumbMouseDown`,value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX;this.prevPageX=t.offsetWidth-(n-t.getBoundingClientRect().left)}},{key:`handleVerticalThumbMouseDown`,value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY;this.prevPageY=t.offsetHeight-(n-t.getBoundingClientRect().top)}},{key:`setupDragging`,value:function(){(0,a.default)(document.body,p.disableSelectStyle),document.addEventListener(`mousemove`,this.handleDrag),document.addEventListener(`mouseup`,this.handleDragEnd),document.onselectstart=u.default}},{key:`teardownDragging`,value:function(){(0,a.default)(document.body,p.disableSelectStyleReset),document.removeEventListener(`mousemove`,this.handleDrag),document.removeEventListener(`mouseup`,this.handleDragEnd),document.onselectstart=void 0}},{key:`handleDragStart`,value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:`handleDrag`,value:function(e){if(this.prevPageX){var t=e.clientX,n=this.trackHorizontal.getBoundingClientRect().left,r=this.getThumbHorizontalWidth()-this.prevPageX,i=-n+t-r;this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){var a=e.clientY,o=this.trackVertical.getBoundingClientRect().top,s=this.getThumbVerticalHeight()-this.prevPageY,c=-o+a-s;this.view.scrollTop=this.getScrollTopForOffset(c)}return!1}},{key:`handleDragEnd`,value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:`handleDragEndAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`handleTrackMouseEnter`,value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:`handleTrackMouseEnterAutoHide`,value:function(){this.props.autoHide&&this.showTracks()}},{key:`handleTrackMouseLeave`,value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:`handleTrackMouseLeaveAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`showTracks`,value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:`hideTracks`,value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,a.default)(e.trackHorizontal,{opacity:0}),(0,a.default)(e.trackVertical,{opacity:0})},t)}}},{key:`detectScrolling`,value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:`raf`,value:function(e){var t=this;this.requestFrame&&i.default.cancel(this.requestFrame),this.requestFrame=(0,i.default)(function(){t.requestFrame=void 0,e()})}},{key:`update`,value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:`_update`,value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,i=this.getValues();if((0,l.default)()){var o=i.scrollLeft,s=i.clientWidth,c=i.scrollWidth,u=(0,d.default)(this.trackHorizontal),p=this.getThumbHorizontalWidth(),m={width:p,transform:`translateX(`+o/(c-s)*(u-p)+`px)`},h=i.scrollTop,g=i.clientHeight,_=i.scrollHeight,v=(0,f.default)(this.trackVertical),y=this.getThumbVerticalHeight(),b={height:y,transform:`translateY(`+h/(_-g)*(v-y)+`px)`};if(r){var x={visibility:c>s?`visible`:`hidden`},S={visibility:_>g?`visible`:`hidden`};(0,a.default)(this.trackHorizontal,x),(0,a.default)(this.trackVertical,S)}(0,a.default)(this.thumbHorizontal,m),(0,a.default)(this.thumbVertical,b)}n&&n(i),typeof e==`function`&&e(i)}},{key:`render`,value:function(){var e=this,n=(0,l.default)(),r=this.props;r.onScroll,r.onScrollFrame,r.onScrollStart,r.onScrollStop,r.onUpdate;var i=r.renderView,a=r.renderTrackHorizontal,s=r.renderTrackVertical,u=r.renderThumbHorizontal,d=r.renderThumbVertical,f=r.tagName;r.hideTracksWhenNotNeeded;var m=r.autoHide;r.autoHideTimeout;var h=r.autoHideDuration;r.thumbSize,r.thumbMinSize;var _=r.universal,v=r.autoHeight,y=r.autoHeightMin,b=r.autoHeightMax,x=r.style,S=r.children,C=g(r,[`onScroll`,`onScrollFrame`,`onScrollStart`,`onScrollStop`,`onUpdate`,`renderView`,`renderTrackHorizontal`,`renderTrackVertical`,`renderThumbHorizontal`,`renderThumbVertical`,`tagName`,`hideTracksWhenNotNeeded`,`autoHide`,`autoHideTimeout`,`autoHideDuration`,`thumbSize`,`thumbMinSize`,`universal`,`autoHeight`,`autoHeightMin`,`autoHeightMax`,`style`,`children`]),w=this.state.didMountUniversal,T=t({},p.containerStyleDefault,v&&t({},p.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),x),E=t({},p.viewStyleDefault,{marginRight:n?-n:0,marginBottom:n?-n:0},v&&t({},p.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?`calc(`+y+` + `+n+`px)`:y+n,maxHeight:(0,c.default)(b)?`calc(`+b+` + `+n+`px)`:b+n}),v&&_&&!w&&{minHeight:y,maxHeight:b},_&&!w&&p.viewStyleUniversalInitial),D={transition:`opacity `+h+`ms`,opacity:0},O=t({},p.trackHorizontalStyleDefault,m&&D,(!n||_&&!w)&&{display:`none`}),k=t({},p.trackVerticalStyleDefault,m&&D,(!n||_&&!w)&&{display:`none`});return(0,o.createElement)(f,t({},C,{style:T,ref:function(t){e.container=t}}),[(0,o.cloneElement)(i({style:E}),{key:`view`,ref:function(t){e.view=t}},S),(0,o.cloneElement)(a({style:O}),{key:`trackHorizontal`,ref:function(t){e.trackHorizontal=t}},(0,o.cloneElement)(u({style:p.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,o.cloneElement)(s({style:k}),{key:`trackVertical`,ref:function(t){e.trackVertical=t}},(0,o.cloneElement)(d({style:p.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),s}(o.Component);e.default=b,b.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},b.defaultProps={renderView:m.renderViewDefault,renderTrackHorizontal:m.renderTrackHorizontalDefault,renderTrackVertical:m.renderTrackVerticalDefault,renderThumbHorizontal:m.renderThumbHorizontalDefault,renderThumbVertical:m.renderThumbVerticalDefault,tagName:`div`,thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})),rx=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scrollbars=void 0;var t=n(nx());function n(e){return e&&e.__esModule?e:{default:e}}e.default=t.default,e.Scrollbars=t.default}))(),ix={avatar:`_avatar_14f3v_1`,circle:`_circle_14f3v_1`};function ax(e){return e.logoUrl?(0,Q.jsx)(`div`,{className:`h-100`,children:(0,Q.jsx)(`img`,{alt:e.customerName,className:`rounded-circle ${ix.avatar}`,src:e.logoUrl})}):(0,Q.jsx)(`div`,{className:`${ix.circle} ${e.colourClass||`bg-ultramarine`} text-white rounded-circle`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`svg-container lg`,children:(0,Q.jsx)(`path`,{d:`M 19.53125,14.5438 H 16.9875 v -4.28056 l 0.34144,0.15522 c 0.0629,0.0286 0.12884,0.0421 0.19372,0.0421 0.17815,0 0.34843,-0.10215 0.427,-0.2749 0.10712,-0.23569 0.003,-0.51357 -0.23278,-0.62069 L 12.46875,7.17941 V 5.43956 h 1.53962 c 0.25885,0 0.46875,-0.20987 0.46875,-0.46875 V 4.46875 C 14.47712,4.20987 14.26722,4 14.00837,4 H 12 C 11.74116,4 11.53125,4.20987 11.53125,4.46875 V 7.17941 L 6.28316,9.56494 c -0.23566,0.10712 -0.33991,0.385 -0.23272,0.62068 0.10706,0.23569 0.385,0.33985 0.62065,0.23275 l 0.34144,-0.15521 v 4.28059 H 4.46875 C 4.20991,14.54375 4,14.75362 4,15.0125 v 4.51875 C 4,19.79012 4.20991,20 4.46875,20 h 3.0125 3.0125 3.01244 3.0125 3.01256 C 19.79016,20.00005 20,19.79017 20,19.5313 V 15.01255 C 20,14.75367 19.79016,14.5438 19.53125,14.5438 Z M 7.0125,19.06255 H 4.9375 V 15.4813 h 2.075 z m 6.02497,0 h -2.07494 v -2.07497 h 2.07494 z m 3.01253,-4.05 v 4.05 h -2.075 v -2.54372 c 0,-0.25887 -0.20984,-0.46875 -0.46875,-0.46875 h -3.01244 c -0.25884,0 -0.46875,0.20988 -0.46875,0.46875 v 2.54372 h -2.075 v -4.05 H 7.95 V 9.83708 L 12,7.99617 16.05,9.83708 Z m 3.0125,4.05 h -2.075 V 15.4813 h 2.075 z M 12,10.0608 c -1.089,0 -1.97497,0.88594 -1.97497,1.97497 0,1.089 0.88597,1.975 1.97497,1.975 1.08906,0 1.97497,-0.886 1.97497,-1.975 0,-1.08903 -0.88594,-1.97497 -1.97497,-1.97497 z m 0,3.01244 c -0.57203,0 -1.03747,-0.46544 -1.03747,-1.0375 0,-0.57203 0.46544,-1.03747 1.03747,-1.03747 0.57209,0 1.03747,0.4654 1.03747,1.03747 0,0.57209 -0.46541,1.0375 -1.03747,1.0375 z`})})})}var ox=[`second`,`minute`,`hour`,`day`,`week`,`month`,`year`];function sx(e,t){if(t===0)return[`just now`,`right now`];var n=ox[Math.floor(t/2)];return e>1&&(n+=`s`),[e+` `+n+` ago`,`in `+e+` `+n]}var cx=[`秒`,`分钟`,`小时`,`天`,`周`,`个月`,`年`];function lx(e,t){if(t===0)return[`刚刚`,`片刻后`];var n=cx[~~(t/2)];return[e+` `+n+`前`,e+` `+n+`后`]}var ux={},dx=function(e,t){ux[e]=t},fx=function(e){return ux[e]||ux.en_US},px=[60,60,24,7,365/7/12,12];function mx(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||``).trim().replace(/\.\d+/,``).replace(/-/,`/`).replace(/-/,`/`).replace(/(\d)T(\d)/,`$1 $2`).replace(/Z/,` UTC`).replace(/([+-]\d\d):?(\d\d)/,` $1$2`),new Date(e))}function hx(e,t){var n=e<0?1:0;e=Math.abs(e);for(var r=e,i=0;e>=px[i]&&i<px.length;i++)e/=px[i];return e=Math.floor(e),i*=2,e>(i===0?9:1)&&(i+=1),t(e,i,r)[n].replace(`%s`,e.toString())}function gx(e,t){return((t?mx(t):new Date)-+mx(e))/1e3}var _x=function(e,t,n){return hx(gx(e,n&&n.relativeDate),fx(t))};dx(`en_US`,sx),dx(`zh_CN`,lx);var vx={tile:`_tile_wesrn_1`,avatar:`_avatar_wesrn_5`,email:`_email_wesrn_9`,subheading:`_subheading_wesrn_12`};function yx(e){let t=kf.buildAvatarUrl(e.avatarUrl,{size:`small`});return(0,Q.jsxs)(`div`,{className:`container my-4 p-3 rounded-3 ${vx.tile}`,children:[(0,Q.jsx)(`p`,{className:`${vx.subheading} mb-0`,children:`Account:`}),(0,Q.jsxs)(`div`,{className:`d-flex align-items-center pb-3`,children:[(0,Q.jsx)(`div`,{className:`h-100`,children:(0,Q.jsx)(`img`,{alt:`Avatar`,className:`rounded-circle ${vx.avatar}`,src:t})}),(0,Q.jsxs)(`div`,{className:`ms-2`,children:[(0,Q.jsxs)(`p`,{className:`mb-1 text-break mt-2`,children:[e.firstName,` `,e.surname]}),(0,Q.jsx)(`p`,{className:`mb-1 ${vx.email}`,children:e.email}),(0,Q.jsx)(`p`,{className:`m-0 text-secondary`,children:e.lastSignInTime?(0,Q.jsxs)(Q.Fragment,{children:[`Last logged in `,_x(e.lastSignInTime)]}):(0,Q.jsx)(Q.Fragment,{children:`No login history`})})]})]}),(0,Q.jsx)(`p`,{className:vx.subheading,children:`Has access to:`}),e.customers?.length?(0,Q.jsx)(rx.Scrollbars,{autoHeightMax:200,autoHeight:!0,children:(0,Q.jsx)(`div`,{className:`mb-n2`,children:e.customers.map(e=>(0,Q.jsxs)(`div`,{className:`d-flex align-items-center mb-2`,children:[(0,Q.jsx)(ax,{logoUrl:kf.buildAvatarUrl(e.logoUrl,{size:`small`}),customerName:e.name}),(0,Q.jsx)(`p`,{className:`mb-0 ms-2 text-break`,children:e.name})]},e.id))})}):(0,Q.jsxs)(`div`,{className:`d-flex align-items-center`,children:[(0,Q.jsx)(ax,{logoUrl:``,colourClass:`bg-gray-500`}),(0,Q.jsx)(`p`,{className:`mb-0 ms-2 text-break text-secondary`,children:`No schools`})]})]})}function bx(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(!1);function a(){i(!0);let t={userId:e.userId,email:e.email,idpId:e.idpId,externalUserId:e.externalUserId};yd.post(`/ajax/external/link-account`,t).then(t=>Ld(t,e)).catch(e=>{i(!1),n(e.userMessage||`Something went wrong`)})}function o(){yd.post(`/ajax/external/continue`,{returnUrl:e.returnUrl,createWithoutEmail:!0}).then(t=>Ld(t,e,{createWithoutEmail:!0})).catch(e=>{i(!1),n(e.userMessage||`Something went wrong`)})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`It looks like you already have an account`,children:`We've found an existing account using the same email - would you like to link your accounts?`}),(0,Q.jsx)(yx,{firstName:e.firstName,surname:e.surname,avatarUrl:e.avatarUrl,email:e.email,lastSignInTime:e.lastSignInTime,customers:e.customers}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,showSpinner:r,type:`button`,onClick:a,children:`Link existing account`}),!!t&&(0,Q.jsx)(xf,{name:`linkAccount`,children:t}),e.showCreateNewAccount&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 mt-2 no-sso-link`,onClick:o,children:`Create new account`})]})}function xx(e){let{navigate:t,userId:n,email:r,externalUserId:i,idpId:a,returnUrl:o,theme:s}=e;function c(){t({step:`link-account`})}function l(){return yd.post(`/ajax/external/continue`,{returnUrl:o}).then(t=>Ld(t,e))}function u(e){return yd.post(`/ajax/external/link-account-code`,{code:e,userId:n,email:r,idpId:a,externalUserId:i}).then(l)}return(0,Q.jsx)(sp,{navigate:t,theme:s,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`Please enter the `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code we've sent to `,(0,Q.jsx)(`strong`,{children:r})]}),submit:u,onBack:c,...e})}function Sx(e){let{value:t,onChange:n,error:r,autoFocus:i}=e;return(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`label`,{htmlFor:`username`,children:`Email`}),(0,Q.jsx)(`input`,{className:`form-control form-control-lg ${!!r&&`is-invalid`}`,type:`email`,name:`username`,id:`username`,value:t,placeholder:`Enter your email`,autoFocus:!!i,onChange:e=>n(e.target.value),disabled:e.disabled,"aria-invalid":!!r,"aria-errormessage":`usernameError`}),!!r&&(0,Q.jsx)(xf,{name:`username`,children:r})]})}function Cx(e){let[t,n]=Z.useState(e.email||``),[r,i]=Z.useState({source:e.firstName||``}),[a,o]=Z.useState(``),[s,c]=Z.useState(``);function l(t){i(t),e.setErrors({...e.errors,fullName:``})}function u(t){o(t.target.value),e.setErrors({...e.errors,password:``})}function d(t){n(t),e.setErrors({...e.errors,email:``})}function f(t){c(t),e.setErrors({...e.errors,jobTitle:``})}function p(n){n.preventDefault();let{firstName:i,surname:o}=r,c={firstName:i,surname:o,password:a,email:t};e.allowJobTitleChange&&(c.jobTitle=s),e.onSubmit(c)}let m=!e.email,h=e.errors.general||!m&&e.errors.email;return(0,Q.jsxs)(`form`,{onSubmit:p,children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(Mp,{value:r.source||``,onChange:l,error:e.errors.fullName,autoFocus:!0}),m&&(0,Q.jsx)(Sx,{value:t,onChange:d,error:e.errors.email,disabled:!!e.email}),e.allowJobTitleChange&&(0,Q.jsx)(Gp,{error:e.errors.jobTitle,onChange:f,countryCode:e.countryCode,autoFocus:!1,isTertiary:Sb.getCustomerType(e.customerType)===Gu.Tertiary}),(0,Q.jsx)(Gf,{placeholder:`Enter your password`,value:a,onChange:u,name:`new-password`,autoComplete:`new-password`,hasError:!!e.errors.password,"aria-invalid":!!e.errors.password,"aria-errormessage":`new-passwordError`}),!!e.errors.password&&(0,Q.jsx)(xf,{name:`new-password`,children:e.errors.password})]}),!!h&&(0,Q.jsx)(`div`,{className:`text-danger my-3`,children:h}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:e.spinner,children:`Get Started`})]})}function wx(e){switch(e.errorCode.toString()){case`user.invalid-first-name`:case`user.invalid-surname`:return{fullName:e.userMessage};case`user.invalid-password`:case`user.same-password`:case`user.password-too-short`:return{password:e.userMessage};case`user.invalid-email`:return{email:e.userMessage};case`invalid-token`:case`user.already-activated`:return{general:e.userMessage};case`user.invalid-jobtitle`:return{jobTitle:e.userMessage};default:return{}}}function Tx(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({}),{productName:a}=Fd.getDefinition(e.theme);function o(t){let{firstName:n,surname:a,email:o,jobTitle:s,password:c}=t,l={},[u,d]=$f.isPasswordValid(c,``,!1);return u||(l.password=d),!e.email&&!$f.isEmail(o)&&(l.email=`Please enter a valid email.`),(!n||!a)&&(l.fullName=`Please enter your full name.`),e.allowJobTitleChange&&!s?.length&&(l.jobTitle=`Please enter your role..`),i({...r,...l}),!Object.keys(l).length}function s(t){if(!o(t))return;let r={email:e.email||t.email,firstName:t.firstName,surname:t.surname,invitationToken:e.invitationToken,password:t.password};e.allowJobTitleChange&&(r.jobTitle=t.jobTitle),n(!0),yd.post(`/ajax/invite`,r).then(t=>Ld(t,e)).catch(c)}function c(e){n(!1);let t=wx(e);i({...r,...t})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Welcome to ${a}!`,children:(0,Q.jsx)(`p`,{children:`Please fill out the form below to create your account`})}),(0,Q.jsx)(Cx,{allowJobTitleChange:e.allowJobTitleChange,countryCode:e.countryCode,email:e.email,firstName:e.firstName,spinner:t,errors:r,setErrors:i,onSubmit:s,customerType:e.customer?.customerType})]})}function Ex(e){let{returnUrl:t,customer:n}=e;return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`div`,{className:`d-flex justify-content-center my-5 px-2 px-lg-4`,children:(0,Q.jsx)(`img`,{src:`/images/invites/invite-accepted-v2.png`,className:`w-100 mx-auto h-auto`})}),(0,Q.jsx)(`div`,{className:`mb-3 d-flex justify-content-center`,children:(0,Q.jsx)(ax,{logoUrl:n.logoUrl,customerName:n.name})}),(0,Q.jsx)(td,{theme:e.theme,className:{title:`text-center`,description:`text-center`},title:`Welcome to`,children:n.name}),t&&(0,Q.jsx)(`a`,{role:`button`,href:t,className:`btn btn-dark btn-lg w-100 text-decoration-none`,children:`Continue`})]})}var Dx={selected:`_selected_1ryhi_1`};function Ox(e){let{returnUrl:t,navigate:n}=e,[r,i]=Z.useState(null),{productName:a}=Fd.getDefinition(e.theme);function o(){if(!r)return;let i={returnUrl:t,userType:r===`staff`?1:2,createWithoutEmail:!!e.createWithoutEmail};yd.post(`/ajax/external/continue`,i).then(t=>Ld(t,e,{createWithoutEmail:!1})).catch(e=>{n({step:`error`,errorCode:e.errorCode,traceId:e.traceId})})}let s=`btn btn-lg w-100 mb-3 border-dark`;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Let's get you started with ${a}`}),(0,Q.jsx)(`button`,{className:`${s} ${r===`staff`?Dx.selected:``}`,onClick:()=>i(`staff`),children:`I am an educator`}),(0,Q.jsx)(`button`,{className:`${s} ${r===`learner`?Dx.selected:``}`,onClick:()=>i(`learner`),children:`I am a student`}),(0,Q.jsx)(`button`,{className:`btn btn-dark btn-lg w-100`,disabled:!r,onClick:o,children:`Continue`})]})}var kx=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e[`@clickview/braze-client`]=r():n[`@clickview/braze-client`]=r()})(self,(()=>(()=>{var e,t,n={8322:e=>{e.exports=function(e){var t=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`a`,`b`,`c`,`d`,`e`,`f`];function n(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&i|~r&a)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|a>>>20)+n|0)&n|~a&r)+t[2]+606105819|0)<<17|i>>>15)+a|0)&a|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&i|~r&a)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|a>>>20)+n|0)&n|~a&r)+t[6]-1473231341|0)<<17|i>>>15)+a|0)&a|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&i|~r&a)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|a>>>20)+n|0)&n|~a&r)+t[10]-42063|0)<<17|i>>>15)+a|0)&a|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&i|~r&a)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|a>>>20)+n|0)&n|~a&r)+t[14]-1502002290|0)<<17|i>>>15)+a|0)&a|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&a|i&~a)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|a>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+a|0)&n|a&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&a|i&~a)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|a>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+a|0)&n|a&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&a|i&~a)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|a>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+a|0)&n|a&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&a|i&~a)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|a>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+a|0)&n|a&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r^i^a)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|a>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+a|0)^a^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r^i^a)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|a>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+a|0)^a^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r^i^a)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|a>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+a|0)^a^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r^i^a)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|a>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+a|0)^a^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((a=((a+=(r^((n=((n+=(i^(r|~a))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|a>>>22)+n|0)^((i=((i+=(n^(a|~r))+t[14]-1416354905|0)<<15|i>>>17)+a|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((a=((a+=(r^((n=((n+=(i^(r|~a))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|a>>>22)+n|0)^((i=((i+=(n^(a|~r))+t[10]-1051523|0)<<15|i>>>17)+a|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((a=((a+=(r^((n=((n+=(i^(r|~a))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|a>>>22)+n|0)^((i=((i+=(n^(a|~r))+t[6]-1560198380|0)<<15|i>>>17)+a|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((a=((a+=(r^((n=((n+=(i^(r|~a))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|a>>>22)+n|0)^((i=((i+=(n^(a|~r))+t[2]+718787259|0)<<15|i>>>17)+a|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=a+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function a(e){var t,i,a,o,s,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(n(u,a),t=0;t<16;t+=1)a[t]=0;return o=(o=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(o[2],16),c=parseInt(o[1],16)||0,a[14]=s,a[15]=c,n(u,a),u}function o(e){var n,r=``;for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=o(e[t]);return e.join(``)}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function u(){this.reset()}return s(a(`hello`)),typeof ArrayBuffer>`u`||ArrayBuffer.prototype.slice||function(){function e(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(t,n){var r,i,a,o,s=this.byteLength,c=e(t,s),l=s;return n!==void 0&&(l=e(n,s)),c>l?new ArrayBuffer(0):(r=l-c,i=new ArrayBuffer(r),a=new Uint8Array(i),o=new Uint8Array(this,c,r),a.set(o),i)}}(),u.prototype.append=function(e){return this.appendBinary(c(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,n,r=this._buff,i=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)a[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(a,i),n=s(this._hash),e&&(n=l(n)),this.reset(),n},u.prototype.reset=function(){return this._buff=``,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,i,a,o=t;if(e[o>>2]|=128<<(o%4<<3),o>55)for(n(this._hash,e),o=0;o<16;o+=1)e[o]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),a=parseInt(r[1],16)||0,e[14]=i,e[15]=a,n(this._hash,e)},u.hash=function(e,t){return u.hashBinary(c(e),t)},u.hashBinary=function(e,t){var n=s(a(e));return t?l(n):n},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,r,a,o,s,c=(r=this._buff.buffer,a=e,o=!0,(s=new Uint8Array(r.byteLength+a.byteLength)).set(new Uint8Array(r)),s.set(new Uint8Array(a),r.byteLength),o?s:s.buffer),l=c.length;for(this._length+=e.byteLength,t=64;t<=l;t+=64)n(this._hash,i(c.subarray(t-64,t)));return this._buff=t-64<l?new Uint8Array(c.buffer.slice(t-64)):new Uint8Array,this},u.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)a[t>>2]|=r[t]<<(t%4<<3);return this._finish(a,i),n=s(this._hash),e&&(n=l(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,i=new ArrayBuffer(r),a=new Uint8Array(i);for(n=0;n<r;n+=1)a[n]=e.charCodeAt(n);return t?a:i}(e.buff,!0),u.prototype.setState.call(this,e)},u.ArrayBuffer.prototype.destroy=u.prototype.destroy,u.ArrayBuffer.prototype._finish=u.prototype._finish,u.ArrayBuffer.hash=function(e,t){var r=s(function(e){var t,r,a,o,s,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)a[t>>2]|=e[t]<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(n(u,a),t=0;t<16;t+=1)a[t]=0;return o=(o=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(o[2],16),c=parseInt(o[1],16)||0,a[14]=s,a[15]=c,n(u,a),u}(new Uint8Array(e)));return t?l(r):r},u}()},2730:(e,t,n)=>{n.d(t,{G:()=>r,r:()=>i});let r={CustomEvent:`ce`,Pr:`p`,_u:`pc`,vc:`ca`,Ea:`i`,qs:`ie`,M:`cci`,R:`ccic`,I:`ccc`,F:`ccd`,ql:`ss`,xl:`se`,Oi:`si`,Ei:`sc`,Gi:`sbc`,Cc:`sfe`,mo:`iec`,Uu:`lr`,zu:`uae`,O:`ci`,$:`cc`,Ju:`lcaa`,Eu:`lcar`,On:`inc`,Ln:`add`,Rn:`rem`,$n:`set`,Bn:`ncam`,Ku:`sgu`,Fr:`ffi`},i={Ar:`feed_displayed`,Ec:`content_cards_displayed`}},7070:(e,t,n)=>{n.d(t,{Z:()=>r});let r={W:function(){let e=(e=!1)=>{let t=(Math.random().toString(16)+`000000000`).substr(2,8);return e?`-`+t.substr(0,4)+`-`+t.substr(4,4):t};return e()+e(!0)+e(!0)+e()}}},5522:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e,t){this.database=e,this.vd=t,this.parent=typeof window>`u`?self:window,this.database=e,this.vd=t}Dd(){if(`indexedDB`in this.parent)return this.parent.indexedDB}isSupported(){try{if(this.Dd()==null)return!1;{let e=this.Dd()?.open(`Braze IndexedDB Support Test`);if(e&&(e.onupgradeneeded=()=>e.result.close(),e.onsuccess=()=>e.result.close()),typeof window<`u`){let e=window,t=e.chrome||e.browser||e.pd;if(t&&t.runtime&&t.runtime.id)return this.vd.info(`Not using IndexedDB for storage because we are running inside an extension`),!1}return!0}}catch(e){return this.vd.info(`Not using IndexedDB for storage due to following error: `+e),!1}}Bd(e,t){let n=this.Dd()?.open(this.database.Sd,this.database.VERSION);if(n==null)return typeof t==`function`&&t(),!1;let r=this;return n.onupgradeneeded=e=>{r.vd.info(`Upgrading indexedDB `+r.database.Sd+` to v`+r.database.VERSION+`...`);let t=e.target?.result;for(let e in r.database.ss){let n=e;r.database.ss.hasOwnProperty(e)&&!t.objectStoreNames.contains(r.database.ss[n])&&t.createObjectStore(r.database.ss[n])}},n.onsuccess=n=>{let i=n.target?.result;i.onversionchange=()=>{i.close(),typeof t==`function`&&t(),r.vd.error(`Needed to close the database unexpectedly because of an upgrade in another tab`)},e(i)},n.onerror=e=>{let n=e;return r.vd.info(`Could not open indexedDB `+r.database.Sd+` v`+r.database.VERSION+`: `+n.target?.errorCode),typeof t==`function`&&t(),!0},!0}setItem(e,t,n,r,i){if(!this.isSupported())return typeof i==`function`&&i(),!1;let a=this;return this.Bd((o=>{if(!o.objectStoreNames.contains(e))return a.vd.error(`Could not store object `+t+` in `+e+` on indexedDB `+a.database.Sd+` - `+e+` is not a valid objectStore`),typeof i==`function`&&i(),void o.close();let s=o.transaction([e],`readwrite`);s.oncomplete=()=>o.close();let c=s.objectStore(e).put(n,t);c.onerror=()=>{a.vd.error(`Could not store object `+t+` in `+e+` on indexedDB `+a.database.Sd),typeof i==`function`&&i()},c.onsuccess=()=>{typeof r==`function`&&r()}}),i)}getItem(e,t,n){if(!this.isSupported())return!1;let r=this;return this.Bd((i=>{if(!i.objectStoreNames.contains(e))return r.vd.error(`Could not retrieve object `+t+` in `+e+` on indexedDB `+r.database.Sd+` - `+e+` is not a valid objectStore`),void i.close();let a=i.transaction([e],`readonly`);a.oncomplete=()=>i.close();let o=a.objectStore(e).get(t);o.onerror=()=>{r.vd.error(`Could not retrieve object `+t+` in `+e+` on indexedDB `+r.database.Sd)},o.onsuccess=e=>{let t=e.target?.result;t!=null&&n(t)}}))}jr(e,t,n){if(!this.isSupported())return typeof n==`function`&&n(),!1;let r=this;return this.Bd((i=>{if(!i.objectStoreNames.contains(e))return r.vd.error(`Could not retrieve last record from `+e+` on indexedDB `+r.database.Sd+` - `+e+` is not a valid objectStore`),typeof n==`function`&&n(),void i.close();let a=i.transaction([e],`readonly`);a.oncomplete=()=>i.close();let o=a.objectStore(e).openCursor(null,`prev`);o.onerror=()=>{r.vd.error(`Could not open cursor for `+e+` on indexedDB `+r.database.Sd),typeof n==`function`&&n()},o.onsuccess=e=>{let r=e.target?.result;r!=null&&r.value!=null&&r.key!=null?t(r.key,r.value):typeof n==`function`&&n()}}),n)}re(e,t){if(!this.isSupported())return!1;let n=this;return this.Bd((r=>{if(!r.objectStoreNames.contains(e))return n.vd.error(`Could not delete record `+t+` from `+e+` on indexedDB `+n.database.Sd+` - `+e+` is not a valid objectStore`),void r.close();let i=r.transaction([e],`readwrite`);i.oncomplete=()=>r.close(),i.objectStore(e).delete(t).onerror=()=>{n.vd.error(`Could not delete record `+t+` from `+e+` on indexedDB `+n.database.Sd)}}))}Zt(e,t){if(!this.isSupported())return!1;let n=this;return this.Bd((r=>{if(!r.objectStoreNames.contains(e))return n.vd.error(`Could not retrieve objects from `+e+` on indexedDB `+n.database.Sd+` - `+e+` is not a valid objectStore`),void r.close();let i=r.transaction([e],`readwrite`);i.oncomplete=()=>r.close();let a=i.objectStore(e),o=a.openCursor(),s=[];o.onerror=()=>{s.length>0?(n.vd.info(`Cursor closed midway through for `+e+` on indexedDB `+n.database.Sd),t(s)):n.vd.error(`Could not open cursor for `+e+` on indexedDB `+n.database.Sd)},o.onsuccess=e=>{let n=e.target?.result;n==null?s.length>0&&t(s):(n.value!=null&&n.key!=null&&(a.delete(n.key).onsuccess=()=>{s.push(n.value)}),typeof n.continue==`function`&&n.continue())}}))}clearData(){if(!this.isSupported())return!1;let e=[];for(let t in this.database.ss){let n=t;this.database.ss.hasOwnProperty(t)&&this.database.ss[n]!==this.database.ss.ae&&e.push(this.database.ss[n])}let t=this;return this.Bd((function(n){let r=n.transaction(e,`readwrite`);r.oncomplete=()=>n.close();for(let n=0;n<e.length;n++){let i=e[n];r.objectStore(i).clear().onerror=function(){t.vd.error(`Could not clear `+this.source.name+` on indexedDB `+t.database.Sd)}}r.onerror=function(){t.vd.error(`Could not clear object stores on indexedDB `+t.database.Sd)}}))}}r.Yt={Qt:{Sd:`AppboyServiceWorkerAsyncStorage`,VERSION:6,ss:{$a:`data`,hr:`pushClicks`,cu:`pushSubscribed`,Cd:`fallbackDevice`,ts:`cardUpdates`,ae:`optOut`,wr:`pendingData`,jh:`sdkAuthenticationSignature`},ie:1}}},335:(e,t,n)=>{n.d(t,{Z:()=>i});let r={init:function(e){e===void 0&&r.zg!==void 0||(r.zg=!!e),r.t||=!0},destroy:function(){r.t=!1,r.zg=void 0,r.vd=void 0},setLogger:function(e){typeof e==`function`?(r.init(),r.vd=e):r.info(`Ignoring setLogger call since logger is not a function`)},toggleLogging:function(){r.init(),r.zg?(console.log(`Disabling Braze logging`),r.zg=!1):(console.log(`Enabled Braze logging`),r.zg=!0)},info:function(e){if(r.zg){let t=`Braze: `+e;r.vd==null?console.log(t):r.vd(t)}},warn:function(e){if(r.zg){let t=`Braze SDK Warning: `+e+` (v5.3.1)`;r.vd==null?console.warn(t):r.vd(t)}},error:function(e){if(r.zg){let t=`Braze SDK Error: `+e+` (v5.3.1)`;r.vd==null?console.error(t):r.vd(t)}}},i=r},7529:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(5563),i=n(9179),a=n(4673),o=n(335),s=n(2730),c=n(5966);class l{constructor(e){this.u=e,this.u=e}h(e,t){let n=new a.Z;if(e.p(),e.url==null||e.url===``)return o.Z.info(`Card ${e.id} has no url. Not logging click to Braze servers.`),n;if(t&&e.id&&this.u){let t=this.u.j(c.I.C.v)||{};t[e.id]=!0,this.u.k(c.I.C.v,t)}let r=this.D([e]);if(r==null)return n;let l=t?s.G.I:s.G.$;return i.Z.q(l,r)}B(e){let t=new a.Z;if(!e.N())return o.Z.info(`Card ${e.id} refused this dismissal. Ignoring analytics event.`),t;if(e.id&&this.u){let t=this.u.j(c.I.C.A)||{};t[e.id]=!0,this.u.k(c.I.C.A,t)}let n=this.D([e]);return n==null?t:i.Z.q(s.G.F,n)}G(e,t){let n=new a.Z(!0),o=[],l=[],u={};this.u&&(u=t?this.u.j(c.I.C.H)||{}:this.u.j(c.I.C.J)||{});for(let t of e)t.K(),t instanceof r.Z?l.push(t):o.push(t),t.id&&(u[t.id]=!0);let d=this.D(o),f=this.D(l);if(d==null&&f==null)return n.L=!1,n;if(this.u&&(t?this.u.k(c.I.C.H,u):this.u.k(c.I.C.J,u)),d!=null){let e=t?s.G.M:s.G.O,r=i.Z.q(e,d);n.P(r)}if(f!=null&&t){let e=i.Z.q(s.G.R,f);n.P(e)}return n}D(e){let t,n=null;for(let r=0;r<e.length;r++)t=e[r].id,t!=null&&t!==``&&(n||={},n.ids=n.ids||[],n.ids.push(t));return n}}var u=n(5825);let d={t:!1,i:null,m:()=>(d.o(),d.i||=new l(u.ZP.l()),d.i),o:()=>{d.t||=(u.ZP.g(d),!0)},destroy:()=>{d.i=null,d.t=!1}},f=d},5608:(e,t,n)=>{n.d(t,{CG:()=>m,Dj:()=>h,Ji:()=>l,Zw:()=>d,pq:()=>f,ql:()=>c,rW:()=>u,sv:()=>p});var r=n(5242),i=n(1507),a=n(420),o=n(2080),s=n(7070);function c(e){return e!=null&&!!e.getAttribute(`data-ab-had-top-impression`)}function l(e){e?.setAttribute(`data-ab-had-top-impression`,`true`)}function u(e){return e!=null&&!!e.getAttribute(`data-ab-had-bottom-impression`)}function d(e){e?.setAttribute(`data-ab-had-bottom-impression`,`true`)}function f(e){if(e!=null){let t=e.querySelectorAll(`.ab-unread-indicator`)[0];t!=null&&(t.className+=` read`)}}function p(e){return e.getAttribute(`data-ab-card-id`)}function m(e,t){let n=t.querySelectorAll(`.ab-image-area`),r,i=0;n.length>0&&(i=n[0].offsetWidth);for(let t of e)if(r=t.T,r&&t.imageUrl&&typeof t.aspectRatio==`number`){let e=i/t.aspectRatio;e&&(r.style.height=`${e}px`)}}function h(e,t,n){let c=document.createElement(`div`);c.className=`ab-card ab-effect-card `+e._,e.id&&(c.setAttribute(`data-ab-card-id`,e.id),c.setAttribute(`id`,e.id)),c.setAttribute(`role`,`article`),c.setAttribute(`tabindex`,`0`);let l=``,u=!1;e.url&&e.url!==``&&(l=e.url,u=!0);let d=r=>(f(c),u&&(t(e),(0,a.S)(l,n,r)),!1);if(e.pinned){let e=document.createElement(`div`);e.className=`ab-pinned-indicator`;let t=document.createElement(`i`);t.className=`fa fa-star`,e.appendChild(t),c.appendChild(e)}if(e.imageUrl&&e.imageUrl!==``){let t=document.createElement(`div`);t.className=`ab-image-area`;let n=document.createElement(`img`);if(n.setAttribute(`src`,e.imageUrl),n.onload=()=>{c.style.height=`auto`},function(e,t){let n=``;e.title||e.description||(n=`Feed Image`),t.setAttribute(`alt`,n)}(e,n),t.appendChild(n),c.className+=` with-image`,u&&!e.S){let e=document.createElement(`a`);e.setAttribute(`href`,l),e.onclick=d,e.appendChild(t),c.appendChild(e)}else c.appendChild(t)}let p=document.createElement(`div`);if(p.className=`ab-card-body`,e.dismissible){e.logCardDismissal=()=>(0,o.K)(e);let t=(0,r.B)(`Dismiss Card`,void 0,e.dismissCard.bind(e));c.appendChild(t),(0,i.FZ)(p,i.mQ.U,(e=>{c.className+=` ab-swiped-left`,t.onclick(e)})),(0,i.FZ)(p,i.mQ.V,(e=>{c.className+=` ab-swiped-right`,t.onclick(e)}))}let m=``,h=!1;if(e.title&&e.title!==``&&(m=e.title,h=!0),h){let e=document.createElement(`h1`);if(e.className=`ab-title`,e.id=s.Z.W(),c.setAttribute(`aria-labelledby`,e.id),u){let t=document.createElement(`a`);t.setAttribute(`href`,l),t.onclick=d,t.appendChild(document.createTextNode(m)),e.appendChild(t)}else e.appendChild(document.createTextNode(m));p.appendChild(e)}let g=document.createElement(`div`);if(g.className=h?`ab-description`:`ab-description ab-no-title`,g.id=s.Z.W(),c.setAttribute(`aria-describedby`,g.id),e.description&&g.appendChild(document.createTextNode(e.description)),u){let t=document.createElement(`div`);t.className=`ab-url-area`;let n=document.createElement(`a`);n.setAttribute(`href`,l),e.linkText&&n.appendChild(document.createTextNode(e.linkText)),n.onclick=d,t.appendChild(n),g.appendChild(t)}p.appendChild(g),c.appendChild(p);let _=document.createElement(`div`);return _.className=`ab-unread-indicator`,e.viewed&&(_.className+=` read`),c.appendChild(_),e.T=c,c}},1280:(e,t,n)=>{n.d(t,{d:()=>c});var r=n(2857),i=n(7529),a=n(7671),o=n(5825),s=n(335);function c(e,t){return!!o.ZP.X()&&(e instanceof r.Z?i.Z.m().h(e,t).L:(s.Z.error(`card `+a.U4),!1))}},2080:(e,t,n)=>{n.d(t,{K:()=>c});var r=n(2857),i=n(7529),a=n(7671),o=n(5825),s=n(335);function c(e){return!!o.ZP.X()&&(e instanceof r.Z?i.Z.m().B(e).L:(s.Z.error(`card `+a.U4),!1))}},1066:(e,t,n)=>{n.d(t,{p:()=>l});var r=n(2857),i=n(7529),a=n(5825),o=n(2893),s=n(7671),c=n(335);function l(e,t){if(!a.ZP.X())return!1;if(!(0,o.kJ)(e))return c.Z.error(`cards must be an array`),!1;for(let t of e)if(!(t instanceof r.Z))return c.Z.error(`Each card in cards ${s.U4}`),!1;return i.Z.m().G(e,t).L}},2857:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(7750),i=n(7671),a=n(4663),o=n(335);class s{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.id=e,this.viewed=t,this.title=n,this.imageUrl=r,this.description=i,this.created=a,this.updated=o,this.categories=s,this.expiresAt=c,this.url=l,this.linkText=u,this.aspectRatio=d,this.extras=f,this.pinned=p,this.dismissible=m,this.clicked=h,this.id=e,this.viewed=t||!1,this.title=n||``,this.imageUrl=r,this.description=i||``,this.created=a||null,this.updated=o||null,this.categories=s||[],this.expiresAt=c||null,this.url=l,this.linkText=u,d==null?this.aspectRatio=null:(d=parseFloat(d.toString()),this.aspectRatio=isNaN(d)?null:d),this.extras=f||{},this.pinned=p||!1,this.dismissible=m||!1,this.dismissed=!1,this.clicked=h||!1,this.isControl=!1,this.test=!1,this.Et=null,this.Tt=null}subscribeToClickedEvent(e){return this.Nt().It(e)}subscribeToDismissedEvent(e){return this.St().It(e)}removeSubscription(e){this.Nt().removeSubscription(e),this.St().removeSubscription(e)}removeAllSubscriptions(){this.Nt().removeAllSubscriptions(),this.St().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;typeof this.logCardDismissal==`function`&&this.logCardDismissal();let e=this.T;!e&&this.id&&(e=document.getElementById(this.id)),e&&(e.style.height=e.offsetHeight+`px`,e.className+=` ab-hide`,setTimeout((function(){e&&e.parentNode&&(e.style.height=`0`,e.style.margin=`0`,setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),s.At))}),i.rF))}Nt(){return this.Et??=new a.Z,this.Et}St(){return this.Tt??=new a.Z,this.Tt}K(){this.viewed=!0}p(){this.viewed=!0,this.clicked=!0,this.Nt().Dt()}N(){return!(!this.dismissible||this.dismissed||(this.dismissed=!0,this.St().Dt(),0))}Ct(e){if(e==null||e[s.Rt.ht]!==this.id)return!0;if(e[s.Rt.Lt])return!1;if(e[s.Rt.nt]!=null&&this.updated!=null&&parseInt(e[s.Rt.nt])<(0,r.FX)(this.updated.valueOf()))return!0;if(e[s.Rt.et]&&!this.viewed&&(this.viewed=!0),e[s.Rt.zt]&&!this.clicked&&(this.clicked=e[s.Rt.zt]),e[s.Rt.rt]!=null&&(this.title=e[s.Rt.rt]),e[s.Rt.ot]!=null&&(this.imageUrl=e[s.Rt.ot]),e[s.Rt.ct]!=null&&(this.description=e[s.Rt.ct]),e[s.Rt.nt]!=null){let t=(0,r.X2)(e[s.Rt.nt]);t!=null&&(this.updated=t)}if(e[s.Rt.lt]!=null){let t;t=e[s.Rt.lt]===s._t?null:(0,r.X2)(e[s.Rt.lt]),this.expiresAt=t}if(e[s.Rt.URL]!=null&&(this.url=e[s.Rt.URL]),e[s.Rt.ft]!=null&&(this.linkText=e[s.Rt.ft]),e[s.Rt.xt]!=null){let t=parseFloat(e[s.Rt.xt].toString());this.aspectRatio=isNaN(t)?null:t}return e[s.Rt.bt]!=null&&(this.extras=e[s.Rt.bt]),e[s.Rt.gt]!=null&&(this.pinned=e[s.Rt.gt]),e[s.Rt.jt]!=null&&(this.dismissible=e[s.Rt.jt]),e[s.Rt.kt]!=null&&(this.test=e[s.Rt.kt]),!0}Y(){o.Z.error(`Must be implemented in a subclass`)}}s._t=-1,s.Rt={ht:`id`,et:`v`,jt:`db`,Lt:`r`,nt:`ca`,gt:`p`,lt:`ea`,bt:`e`,Z:`tp`,ot:`i`,rt:`tt`,ct:`ds`,URL:`u`,ft:`dm`,xt:`ar`,zt:`cl`,kt:`t`},s.it={st:`captioned_image`,Ot:`text_announcement`,Mt:`short_news`,Pt:`banner_image`,Ut:`control`},s.tt={ht:`id`,et:`v`,jt:`db`,dt:`cr`,nt:`ca`,gt:`p`,ut:`t`,lt:`ea`,bt:`e`,Z:`tp`,ot:`i`,rt:`tt`,ct:`ds`,URL:`u`,ft:`dm`,xt:`ar`,zt:`cl`,kt:`s`},s.Gt={Xt:`ADVERTISING`,vt:`ANNOUNCEMENTS`,Vt:`NEWS`,Wt:`SOCIAL`},s.At=400},5563:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(2857);class i extends r.Z{constructor(e,t,n,r,i,a){super(e,t,null,null,null,null,n,null,r,null,null,null,i,a),this.isControl=!0,this._=`ab-control-card`,this.S=!1}Y(){let e={};return e[r.Z.tt.Z]=r.Z.it.Ut,e[r.Z.tt.ht]=this.id,e[r.Z.tt.et]=this.viewed,e[r.Z.tt.nt]=this.updated,e[r.Z.tt.lt]=this.expiresAt,e[r.Z.tt.bt]=this.extras,e[r.Z.tt.gt]=this.pinned,e[r.Z.tt.kt]=this.test,e}}},5899:(e,t,n)=>{n.d(t,{xA:()=>d,D5:()=>f,rN:()=>p});var r=n(2857);class i extends r.Z{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){super(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h),this._=`ab-classic-card`,this.S=!0}Y(){let e={};return e[r.Z.tt.Z]=r.Z.it.Mt,e[r.Z.tt.ht]=this.id,e[r.Z.tt.et]=this.viewed,e[r.Z.tt.rt]=this.title,e[r.Z.tt.ot]=this.imageUrl,e[r.Z.tt.ct]=this.description,e[r.Z.tt.nt]=this.updated,e[r.Z.tt.dt]=this.created,e[r.Z.tt.ut]=this.categories,e[r.Z.tt.lt]=this.expiresAt,e[r.Z.tt.URL]=this.url,e[r.Z.tt.ft]=this.linkText,e[r.Z.tt.xt]=this.aspectRatio,e[r.Z.tt.bt]=this.extras,e[r.Z.tt.gt]=this.pinned,e[r.Z.tt.jt]=this.dismissible,e[r.Z.tt.zt]=this.clicked,e[r.Z.tt.kt]=this.test,e}}class a extends r.Z{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){super(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h),this._=`ab-captioned-image`,this.S=!0,this.test=!1}Y(){let e={};return e[r.Z.tt.Z]=r.Z.it.st,e[r.Z.tt.ht]=this.id,e[r.Z.tt.et]=this.viewed,e[r.Z.tt.rt]=this.title,e[r.Z.tt.ot]=this.imageUrl,e[r.Z.tt.ct]=this.description,e[r.Z.tt.nt]=this.updated,e[r.Z.tt.dt]=this.created,e[r.Z.tt.ut]=this.categories,e[r.Z.tt.lt]=this.expiresAt,e[r.Z.tt.URL]=this.url,e[r.Z.tt.ft]=this.linkText,e[r.Z.tt.xt]=this.aspectRatio,e[r.Z.tt.bt]=this.extras,e[r.Z.tt.gt]=this.pinned,e[r.Z.tt.jt]=this.dismissible,e[r.Z.tt.zt]=this.clicked,e[r.Z.tt.kt]=this.test,e}}class o extends r.Z{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p){super(e,t,null,n,null,r,i,a,o,s,c,l,u,d,f,p),this._=`ab-image-only`,this.S=!1,this.test=!1}Y(){let e={};return e[r.Z.tt.Z]=r.Z.it.Pt,e[r.Z.tt.ht]=this.id,e[r.Z.tt.et]=this.viewed,e[r.Z.tt.ot]=this.imageUrl,e[r.Z.tt.nt]=this.updated,e[r.Z.tt.dt]=this.created,e[r.Z.tt.ut]=this.categories,e[r.Z.tt.lt]=this.expiresAt,e[r.Z.tt.URL]=this.url,e[r.Z.tt.ft]=this.linkText,e[r.Z.tt.xt]=this.aspectRatio,e[r.Z.tt.bt]=this.extras,e[r.Z.tt.gt]=this.pinned,e[r.Z.tt.jt]=this.dismissible,e[r.Z.tt.zt]=this.clicked,e[r.Z.tt.kt]=this.test,e}}var s=n(5563),c=n(7750),l=n(335);function u(e,t,n,c,u,d,f,p,m,h,g,_,v,y,b,x,S,C){let w;if(t===r.Z.it.Ot||t===r.Z.it.Mt)w=new i(e,n,c,u,d,f,p,m,h,g,_,v,y,b,x,S);else if(t===r.Z.it.st)w=new a(e,n,c,u,d,f,p,m,h,g,_,v,y,b,x,S);else if(t===r.Z.it.Pt)w=new o(e,n,u,f,p,m,h,g,_,v,y,b,x,S);else{if(t!==r.Z.it.Ut)return l.Z.error(`Ignoring card with unknown type `+t),null;w=new s.Z(e,n,p,h,y,b)}return C&&(w.test=C),w}function d(e){if(e[r.Z.Rt.Lt])return null;let t=e[r.Z.Rt.ht],n=e[r.Z.Rt.Z],i=e[r.Z.Rt.et],a=e[r.Z.Rt.rt],o=e[r.Z.Rt.ot],s=e[r.Z.Rt.ct],l=(0,c.X2)(e[r.Z.Rt.nt]),d=l,f;return f=e[r.Z.Rt.lt]===r.Z._t?null:(0,c.X2)(e[r.Z.Rt.lt]),u(t,n,i,a,o,s,d,l,null,f,e[r.Z.Rt.URL],e[r.Z.Rt.ft],e[r.Z.Rt.xt],e[r.Z.Rt.bt],e[r.Z.Rt.gt],e[r.Z.Rt.jt],e[r.Z.Rt.zt],e[r.Z.Rt.kt]||!1)}function f(e){return u(e.id,e.type,e.viewed,e.title,e.image,e.description,(0,c.X2)(e.created),(0,c.X2)(e.updated),e.categories,(0,c.X2)(e.expires_at),e.url,e.domain,e.aspect_ratio,e.extras,!1,!1)}function p(e){return u(e[r.Z.tt.ht],e[r.Z.tt.Z],e[r.Z.tt.et],e[r.Z.tt.rt],e[r.Z.tt.ot],e[r.Z.tt.ct],(0,c.Rd)(e[r.Z.tt.dt]),(0,c.Rd)(e[r.Z.tt.nt]),e[r.Z.tt.ut],(0,c.Rd)(e[r.Z.tt.lt]),e[r.Z.tt.URL],e[r.Z.tt.ft],e[r.Z.tt.xt],e[r.Z.tt.bt],e[r.Z.tt.gt],e[r.Z.tt.jt],e[r.Z.tt.zt],e[r.Z.tt.kt]||!1)||void 0}},4790:(e,t,n)=>{n.r(t),n.d(t,{changeUser:()=>c});var r=n(5825),i=n(8548),a=n(335),o=n(7615),s=n(3905);function c(e,t){if(!r.ZP.X())return;if(e==null||e.length===0||e!=e)return void a.Z.error(`changeUser requires a non-empty userId.`);if((0,i.E)(e)>o.Z.lr)return void a.Z.error(`Rejected user id "${e}" because it is longer than ${o.Z.lr} bytes.`);if(t!=null&&!(0,s.ro)(t,`set signature for new user`,`signature`))return;let n=r.ZP.cr();n&&n.changeUser(e.toString(),r.ZP.gr(),t)}},6243:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(5825);function i(){if(r.ZP.X())return r.ZP.pr()}},420:(e,t,n)=>{n.d(t,{S:()=>f});var r=n(335),i=n(7671),a=n(5825),o=n(3046),s=n(3695),c=n(5806),l=n(3905),u=n(5319),d=n(6243);function f(e,t,f){if(a.ZP.X())if(l.y9.test(e)){let t=(0,o.OL)(e);if(!t)return;let f=e=>{if(!(0,l.zR)(e))return void r.Z.error(`Decoded Braze Action json is invalid: ${JSON.stringify(e,null,2)}`);let t=o.A9.properties.type,p=o.A9.properties.oo,m=o.A9.properties.eo,h=e[t];if(h===o.A9.types.ro){let t=e[p];for(let e of t)f(e)}else{let t=e[m],l,f;switch(h){case o.A9.types.logCustomEvent:Promise.resolve().then(n.bind(n,1454)).then((({logCustomEvent:e})=>{a.ZP.so()?(f=Array.prototype.slice.call(t),e(...f)):r.Z.error(i.Go)}));break;case o.A9.types.requestPushPermission:Promise.resolve().then(n.bind(n,2261)).then((({requestPushPermission:e})=>{a.ZP.so()?s.Z.browser===`Safari`&&s.Z.OS===c.T.io?window.navigator.standalone&&e():e():r.Z.error(i.Go)}));break;case o.A9.types.setEmailNotificationSubscriptionType:case o.A9.types.setPushNotificationSubscriptionType:case o.A9.types.setCustomUserAttribute:case o.A9.types.addToSubscriptionGroup:case o.A9.types.removeFromSubscriptionGroup:case o.A9.types.addToCustomAttributeArray:case o.A9.types.removeFromCustomAttributeArray:l=(0,d.P)(),l&&l[h](...Array.prototype.slice.call(t));break;case o.A9.types.no:case o.A9.types.ao:f=Array.prototype.slice.call(t),u.SD.openUri(...f);break;default:r.Z.info(`Ignoring unknown Braze Action: ${h}`)}}};f(t)}else u.SD.openUri(e,t,f)}},1454:(e,t,n)=>{n.r(t),n.d(t,{logCustomEvent:()=>d});var r=n(5825),i=n(9179),a=n(335),o=n(2730),s=n(4365),c=n(9342),l=n(3905),u=n(7671);function d(e,t){if(!r.ZP.X())return!1;if(e==null||e.length<=0)return a.Z.error(`logCustomEvent requires a non-empty eventName, got "${e}". Ignoring event.`),!1;if(!(0,l.zM)(e,`log custom event`,`the event name`))return!1;let[n,d]=(0,l.lg)(t,u._P,`eventProperties`,`log custom event "${e}"`,`event`);if(!n)return!1;let f=r.ZP.ir();if(f&&f.me(e))return a.Z.info(`Custom Event "${e}" is blocklisted, ignoring.`),!1;let p=i.Z.q(o.G.CustomEvent,{n:e,p:d});if(p.L){a.Z.info(`Logged custom event "${e}".`);for(let n of p.ge)c.n.rr().fe(s.Z.ue,[e,t],n)}return p.L}},4650:(e,t,n)=>{n.r(t),n.d(t,{requestImmediateDataFlush:()=>i});var r=n(5825);function i(e){if(!r.ZP.X())return;let t=r.ZP.cr();t&&t.requestImmediateDataFlush(e)}},3340:(e,t,n)=>{n.d(t,{V:()=>f,q:()=>d});var r=n(1792),i=n(8376),a=n(4410),o=n(1090),s=n(4072),c=n(3811),l=n(6616),u=n(335);function d(e){if(!e)return null;if(e.is_control)return i.Z.fromJson(e);let t=e.type;t!=null&&(t=t.toUpperCase());let n=e.message,d=e.text_align_message,f=e.slide_from,p=e.extras,m=e.trigger_id,h=e.click_action,g=e.uri,_=e.open_target,v=e.message_close,y=e.duration,b=e.icon,x=e.image_url,S=e.image_style,C=e.icon_color,w=e.icon_bg_color,T=e.bg_color,E=e.text_color,D=e.close_btn_color,O=e.header,k=e.text_align_header,A=e.header_text_color,j=e.frame_color,M=[],N=e.btns;N??=[];for(let e=0;e<N.length;e++)M.push(s.Z.fromJson(N[e]));let P=e.crop_type,F=e.orientation,I=e.animate_in,L=e.animate_out,R=e.html_id,z=e.css;R!=null&&R!==``&&z!=null&&z!==``||(R=void 0,z=void 0);let B=e.message_extras,V;if(t===c.Z.it||t===r.Z.qe.Ve)V=new c.Z(n,d,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,I,L,O,k,A,j,M,P,R,z,B);else if(t===a.Z.it)V=new a.Z(n,d,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,I,L,O,k,A,j,M,P,F,R,z,B);else if(t===l.Z.it)V=new l.Z(n,d,f,p,m,h,g,_,v,y,b,x,C,w,T,E,D,I,L,R,z,B);else{if(t!==o.Z.it&&t!==r.Z.qe.$e&&t!==r.Z.qe.We)return void u.Z.error(`Ignoring message with unknown type `+t);{let t=e.message_fields;V=new o.Z(n,p,m,v,y,I,L,j,R,z,t,B),V.trusted=e.trusted||!1}}return V.we=t,V}function f(e){let t=[];for(let n of e)t.push(new s.Z(n.text,n.backgroundColor,n.textColor,n.borderColor,n.clickAction,n.uri,n.id));return t}},1087:(e,t,n)=>{n.d(t,{Z:()=>D});var r=n(1843),i=n(5825),a=n(8376),o=n(1090),s=n(1792),c=n(4072),l=n(9179),u=n(3340),d=n(6504),f=n(4673),p=n(2730),m=n(335),h=n(4663),g=n(2246),_=n(3905),v=n(3046),y=n(4556),b=n(6870),x=n(5966),S=n(4410),C=n(3811),w=n(6616);class T{constructor(e,t,n,r){this.qt=e,this.ri=t,this.u=n,this.wt=r,this.qt=e,this.ri=t,this.u=n,this.wt=r,this._e=new h.Z,i.ZP.$t(this._e),this.Xe=1e3,this.Ye=6e4,this.Ze=null}Mi(){return this._e}_i(e){return this._e.It(e)}Pi(){return this.Ze}$i(e){this.Ze=e}q(e,t,n,r){let i=new f.Z,s;if(e instanceof a.Z)s={trigger_ids:[e.triggerId]};else{if(t===p.G.Ei||e instanceof o.Z&&t===p.G.Gi){if(!e.p(r))return m.Z.info(`This in-app message has already received a click. Ignoring analytics event.`),i}else if(t===p.G.Oi&&!e.K())return m.Z.info(`This in-app message has already received an impression. Ignoring analytics event.`),i;s=this.Xi(e)}return s==null?i:(e.messageExtras&&(s.message_extras=e.messageExtras),n!=null&&(s.bid=n),l.Z.q(t,s))}Hi(e,t){let n=new f.Z;if(!e.p())return m.Z.info(`This in-app message button has already received a click. Ignoring analytics event.`),n;let r=this.Xi(t);return r==null?n:e.id===c.Z.Ji?(m.Z.info(`This in-app message button does not have a tracking id. Not logging event to Braze servers.`),n):(e.id!=null&&(r.bid=e.id),l.Z.q(p.G.Gi,r))}Ki(e){let t=e.messageFields;return t!=null&&t.is_push_primer||!1}Li(e){if(!(e instanceof s.Z))return;let t=e=>{if(!e)return;let t=(0,v.OL)(e);return(0,v.je)(t)?(0,v.Tu)(v.yi.Qi,`In-App Message`):(0,v.zA)(t)&&!y.Z.Vi()?(0,v.Tu)(v.yi.Wi,`In-App Message`):void 0};if(this.Ki(e)&&!y.Z.Vi())return`In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.`;let n=e.buttons||[],r;for(let e of n)if(e.clickAction===s.Z.ClickAction.URI&&e.uri&&_.y9.test(e.uri)&&(r=t(e.uri),r))return r;return e.clickAction===s.Z.ClickAction.URI&&e.uri&&_.y9.test(e.uri)?t(e.uri):void 0}Yi(e,t,n,i){let a=this.qt;if(!a)return;let o=a.Zi(!1,!1),s=a.Js(o);s.template={trigger_id:e.triggerId,trigger_event_type:t},n!=null&&(s.template.data=n.Ir());let c=a.$s(s,b.Z.Ps.Mr);a.Xs(s,((a=-1)=>{if(!this.qt)return;let o=new Date().valueOf();b.Z._s(this.u,b.Z.Ps.Mr,o),a!==-1&&c.push([`X-Braze-Req-Tokens-Remaining`,a.toString()]),r.Z.Gs({url:`${this.qt.Hs()}/template/`,data:s,headers:c,L:t=>{if(b.Z.Qs(this.u,b.Z.Ps.Mr,1),!this.qt.Ks(s,t,c))return void(typeof e.Tr==`function`&&e.Tr());if(this.qt.Os(),t==null||t.templated_message==null)return;let n=t.templated_message;if(n.type!==g.Z._r.Br)return;let r=(0,u.q)(n.data);if(r==null)return;let i=this.Li(r);if(i)return m.Z.error(i),void(typeof e.Tr==`function`&&e.Tr());typeof e.Er==`function`&&e.Er(r)},error:r=>{let a=`getting user personalization for message ${e.triggerId}`;if(new Date().valueOf()-e.Gr<e.Nr){b.Z.Ys(this.u,b.Z.Ps.Mr);let r=Math.min(e.Nr,this.Ye),o=this.Xe;i??=o;let s=Math.min(r,(0,d.R)(o,3*i));a+=`. Retrying in ${s} ms`,setTimeout((()=>{this.Yi(e,t,n,s)}),s)}this.qt.Vs(r,a)}})}),b.Z.Ps.Mr)}Xi(e){if(e.triggerId==null)return m.Z.info(`The in-app message has no analytics id. Not logging event to Braze servers.`),null;let t={};return e.triggerId!=null&&(t.trigger_ids=[e.triggerId]),t}je(e){return!!this.u&&!(!(e&&e instanceof s.Z&&e.constructor!==s.Z)||e instanceof a.Z)&&this.u.k(x.I.C.Cr,e.Y())}Ue(){if(!this.u)return null;let e=this.u.j(x.I.C.Cr);if(!e)return null;let t;switch(e.type){case s.Z.qe.Or:t=S.Z.Xr(e);break;case s.Z.qe.Hr:case s.Z.qe.$e:case s.Z.qe.We:t=o.Z.Xr(e);break;case s.Z.qe.Jr:case s.Z.qe.Ve:t=C.Z.Xr(e);break;case s.Z.qe.Kr:t=w.Z.Xr(e)}return t&&this.Lr(),t}Lr(){this.u&&this.u.ti(x.I.C.Cr)}}let E={i:null,t:!1,m:()=>(E.o(),E.i||=new T(i.ZP.nr(),i.ZP.zr(),i.ZP.l(),i.ZP.er()),E.i),o:()=>{E.t||=(i.ZP.g(E),!0)},destroy:()=>{E.i=null,E.t=!1}},D=E},8376:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e,t){this.triggerId=e,this.messageExtras=t,this.triggerId=e,this.messageExtras=t,this.extras={},this.isControl=!0}static fromJson(e){return new r(e.trigger_id,e.message_extras)}}},4410:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3340),i=n(1792);class a extends i.Z{constructor(e,t,n,r,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k){c||=i.Z.DismissType.MANUAL,E||=i.Z.Orientation.PORTRAIT,super(e,t,void 0,n,r,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T||=i.Z.CropType.CENTER_CROP,E,D,O,k),this.De=i.Z.TextAlignment.CENTER}Y(){return super.Y(a.it)}static Xr(e){return new a(e[i.Z.tt.Vr],e[i.Z.tt.Wr],e[i.Z.tt.bt],e[i.Z.tt.Yr],e[i.Z.tt.Zr],e[i.Z.tt.URI],e[i.Z.tt.ea],e[i.Z.tt.ra],e[i.Z.tt.sa],e[i.Z.tt.ta],e[i.Z.tt.ot],e[i.Z.tt.ia],e[i.Z.tt.aa],e[i.Z.tt.oa],e[i.Z.tt.pa],e[i.Z.tt.ma],e[i.Z.tt.na],e[i.Z.tt.ua],e[i.Z.tt.ca],e[i.Z.tt.fa],e[i.Z.tt.da],e[i.Z.tt.la],e[i.Z.tt.ga],(0,r.V)(e[i.Z.tt.ja]),e[i.Z.tt.xa],e[i.Z.tt.za],e[i.Z.tt.ha],e[i.Z.tt.CSS],e[i.Z.tt.va])}}a.it=i.Z.qe.Or},1090:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(1792);class i extends r.Z{constructor(e,t,n,i,a,o,s,c,l,u,d,f){super(e,void 0,void 0,t,n,void 0,void 0,void 0,i||=r.Z.DismissType.MANUAL,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,o,s,void 0,void 0,void 0,c,void 0,void 0,void 0,l,u,f),this.messageFields=d,this.messageFields=d}do(){return!1}p(e){if(this.we===r.Z.qe.Hr){if(this.vo)return!1;this.vo=!0}return this.Et.Dt(e),!0}Y(){let e=super.Y(i.it);return e[r.Z.tt.uo]=this.messageFields,e}static Xr(e){return new i(e[r.Z.tt.Vr],e[r.Z.tt.bt],e[r.Z.tt.Yr],e[r.Z.tt.ra],e[r.Z.tt.sa],e[r.Z.tt.ua],e[r.Z.tt.ca],e[r.Z.tt.ga],e[r.Z.tt.ha],e[r.Z.tt.CSS],e[r.Z.tt.uo],e[r.Z.tt.va])}}i.it=r.Z.qe.Hr},4072:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1792),i=n(4663);class a{constructor(e,t,n,o,s,c,l){this.text=e,this.backgroundColor=t,this.textColor=n,this.borderColor=o,this.clickAction=s,this.uri=c,this.id=l,this.text=e||``,this.backgroundColor=t||r.Z.th.sh,this.textColor=n||r.Z.th.ih,this.borderColor=o||this.backgroundColor,this.clickAction=s||r.Z.ClickAction.NONE,this.uri=c,l??=a.Ji,this.id=l,this.vo=!1,this.Et=new i.Z}subscribeToClickedEvent(e){return this.Et.It(e)}removeSubscription(e){this.Et.removeSubscription(e)}removeAllSubscriptions(){this.Et.removeAllSubscriptions()}p(){return!this.vo&&(this.vo=!0,this.Et.Dt(),!0)}static fromJson(e){return new a(e.text,e.bg_color,e.text_color,e.border_color,e.click_action,e.uri,e.id)}}a.Ji=-1},1792:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(5825),i=n(3695),a=n(1507),o=n(7429),s=n(4663),c=n(7048);class l{constructor(e,t,n,r,i,a,o,c,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j){this.message=e,this.messageAlignment=t,this.slideFrom=n,this.extras=r,this.triggerId=i,this.clickAction=a,this.uri=o,this.openTarget=c,this.dismissType=u,this.duration=d,this.icon=f,this.imageUrl=p,this.imageStyle=m,this.iconColor=h,this.iconBackgroundColor=g,this.backgroundColor=_,this.textColor=v,this.closeButtonColor=y,this.animateIn=b,this.animateOut=x,this.header=S,this.headerAlignment=C,this.headerTextColor=w,this.frameColor=T,this.buttons=E,this.cropType=D,this.orientation=O,this.htmlId=k,this.css=A,this.messageExtras=j,this.message=e,this.messageAlignment=t||l.TextAlignment.CENTER,this.duration=d||5e3,this.slideFrom=n||l.SlideFrom.BOTTOM,this.extras=r||{},this.triggerId=i,this.clickAction=a||l.ClickAction.NONE,this.uri=o,this.openTarget=c||l.OpenTarget.NONE,this.dismissType=u||l.DismissType.AUTO_DISMISS,this.icon=f,this.imageUrl=p,this.imageStyle=m||l.ImageStyle.TOP,this.iconColor=h||l.th.ih,this.iconBackgroundColor=g||l.th.sh,this.backgroundColor=_||l.th.ih,this.textColor=v||l.th.hh,this.closeButtonColor=y||l.th.eh,this.animateIn=b,this.animateIn??=!0,this.animateOut=x,this.animateOut??=!0,this.header=S,this.headerAlignment=C||l.TextAlignment.CENTER,this.headerTextColor=w||l.th.hh,this.frameColor=T||l.th.Eh,this.buttons=E||[],this.cropType=D||l.CropType.FIT_CENTER,this.orientation=O,this.htmlId=k,this.css=A,this.isControl=!1,this.messageExtras=j,this.nh=!1,this.Th=!1,this.vo=!1,this.oh=!1,this.Me=null,this.ke=null,this.Et=new s.Z,this.rh=new s.Z,this.De=l.TextAlignment.CENTER}subscribeToClickedEvent(e){return this.Et.It(e)}subscribeToDismissedEvent(e){return this.rh.It(e)}removeSubscription(e){this.Et.removeSubscription(e),this.rh.removeSubscription(e)}removeAllSubscriptions(){this.Et.removeAllSubscriptions(),this.rh.removeAllSubscriptions()}closeMessage(){this.Ae(this.Me)}ze(){return!0}do(){return this.ze()}xe(){return this.htmlId!=null&&this.htmlId.length>4}Ce(){return this.xe()&&this.css!=null&&this.css.length>0}ve(){if(this.xe()&&this.Ce())return this.htmlId+`-css`}K(){return!this.Th&&(this.Th=!0,!0)}Ur(){return this.Th}p(e){return!this.vo&&(this.vo=!0,this.Et.Dt(),!0)}N(){return!this.oh&&(this.oh=!0,this.rh.Dt(),!0)}hide(e){if(e&&e.parentNode){let t=e.closest(`.ab-iam-root`);if(t??=e,this.ze()&&t.parentNode!=null){let e=t.parentNode.classList;e&&e.contains(l.lh)&&e.remove(l.lh),document.body.removeEventListener(`touchmove`,l.uh)}t.className=t.className.replace(l.ah,l.Ih)}return this.animateOut||!1}Ae(e,t){if(e==null)return;let n;this.Me=null,n=e.className.indexOf(`ab-in-app-message`)===-1?e.getElementsByClassName(`ab-in-app-message`)[0]:e;let r=!1;n&&(r=this.hide(n));let a=document.body,o;a!=null&&(o=a.scrollTop);let s=()=>{if(e&&e.parentNode){let t=e.closest(`.ab-iam-root`);t??=e,t.parentNode&&t.parentNode.removeChild(t)}let n=this.ve();if(n!=null){let e=document.getElementById(n);e&&e.parentNode&&e.parentNode.removeChild(e)}a!=null&&i.Z.browser===`Safari`&&(a.scrollTop=o),t?t():this.N()};r?setTimeout(s,l.Ah):s(),this.ke&&this.ke.focus()}Je(){return document.createTextNode(this.message||``)}Ge(e){let t=``;this.message||this.header||!this.ze()||(t=`Modal Image`),e.setAttribute(`alt`,t)}static uh(e){if(e.targetTouches&&e.targetTouches.length>1)return;let t=e.target;t&&t.classList&&t.classList.contains(`ab-message-text`)&&t.scrollHeight>t.clientHeight||document.querySelector(`.${l.lh}`)&&e.cancelable&&e.preventDefault()}Oh(e){let t=e.parentNode;this.ze()&&t!=null&&this.orientation!==l.Orientation.LANDSCAPE&&(t.classList!=null&&t.classList.add(l.lh),document.body.addEventListener(`touchmove`,l.uh,!!(0,a.QZ)()&&{passive:!1})),e.className+=` `+l.ah}static _h(e){if(e.keyCode===o.m.mh&&!r.ZP.nn(r.JY.Lh)&&document.querySelectorAll(`.ab-modal-interactions`).length>0){let e=document.getElementsByClassName(`ab-html-message`),t=!1;for(let n of e){let e=null;(0,c.f)(n)&&n.contentWindow&&(e=n.contentWindow.document.getElementsByClassName(`ab-programmatic-close-button`)[0]),e!=null&&((0,a.$j)(e),t=!0)}if(!t){let e=document.querySelectorAll(`.ab-modal-interactions > .ab-close-button`)[0];e!=null&&(0,a.$j)(e)}}}Nh(){this.nh||r.ZP.nn(r.JY.Lh)||(document.addEventListener(`keydown`,l._h,!1),r.ZP.Sh((()=>{document.removeEventListener(`keydown`,l._h)})),this.nh=!0)}Y(e){let t={};return e?(t[l.tt.Vr]=this.message,t[l.tt.Wr]=this.messageAlignment,t[l.tt.Rh]=this.slideFrom,t[l.tt.bt]=this.extras,t[l.tt.Yr]=this.triggerId,t[l.tt.Zr]=this.clickAction,t[l.tt.URI]=this.uri,t[l.tt.ea]=this.openTarget,t[l.tt.ra]=this.dismissType,t[l.tt.sa]=this.duration,t[l.tt.ta]=this.icon,t[l.tt.ot]=this.imageUrl,t[l.tt.ia]=this.imageStyle,t[l.tt.aa]=this.iconColor,t[l.tt.oa]=this.iconBackgroundColor,t[l.tt.pa]=this.backgroundColor,t[l.tt.ma]=this.textColor,t[l.tt.na]=this.closeButtonColor,t[l.tt.ua]=this.animateIn,t[l.tt.ca]=this.animateOut,t[l.tt.fa]=this.header,t[l.tt.da]=this.headerAlignment,t[l.tt.la]=this.headerTextColor,t[l.tt.ga]=this.frameColor,t[l.tt.ja]=this.buttons,t[l.tt.xa]=this.cropType,t[l.tt.za]=this.orientation,t[l.tt.ha]=this.htmlId,t[l.tt.CSS]=this.css,t[l.tt.Z]=e,t[l.tt.va]=this.messageExtras,t):t}}l.th={hh:4281545523,ih:4294967295,sh:4278219733,Mh:4293914607,Dh:4283782485,Eh:3224580915,eh:4288387995},l.Be={Ch:`hd`,Le:`ias`,dh:`of`,Uh:`do`,bh:`umt`,Ph:`tf`,ph:`te`},l.SlideFrom={TOP:`TOP`,BOTTOM:`BOTTOM`},l.ClickAction={NEWS_FEED:`NEWS_FEED`,URI:`URI`,NONE:`NONE`},l.DismissType={AUTO_DISMISS:`AUTO_DISMISS`,MANUAL:`SWIPE`},l.OpenTarget={NONE:`NONE`,BLANK:`BLANK`},l.ImageStyle={TOP:`TOP`,GRAPHIC:`GRAPHIC`},l.Orientation={PORTRAIT:`PORTRAIT`,LANDSCAPE:`LANDSCAPE`},l.TextAlignment={START:`START`,CENTER:`CENTER`,END:`END`},l.CropType={CENTER_CROP:`CENTER_CROP`,FIT_CENTER:`FIT_CENTER`},l.qe={Kr:`SLIDEUP`,Jr:`MODAL`,Ve:`MODAL_STYLED`,Or:`FULL`,Hr:`WEB_HTML`,$e:`HTML`,We:`HTML_FULL`},l.Ah=500,l.fh=200,l.ah=`ab-show`,l.Ih=`ab-hide`,l.lh=`ab-pause-scrolling`,l.tt={Vr:`m`,Wr:`ma`,Rh:`sf`,bt:`e`,Yr:`ti`,Zr:`ca`,URI:`u`,ea:`oa`,ra:`dt`,sa:`d`,ta:`i`,ot:`iu`,ia:`is`,aa:`ic`,oa:`ibc`,pa:`bc`,ma:`tc`,na:`cbc`,ua:`ai`,ca:`ao`,fa:`h`,da:`ha`,la:`htc`,ga:`fc`,ja:`b`,xa:`ct`,za:`o`,ha:`hi`,CSS:`css`,Z:`type`,uo:`messageFields`,va:`me`}},3811:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3340),i=n(1792);class a extends i.Z{constructor(e,t,n,r,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O){super(e,t,void 0,n,r,a,o,s,c||=i.Z.DismissType.MANUAL,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T||=i.Z.CropType.FIT_CENTER,void 0,E,D,O),this.De=i.Z.TextAlignment.CENTER}Y(){return super.Y(a.it)}static Xr(e){return new a(e[i.Z.tt.Vr],e[i.Z.tt.Wr],e[i.Z.tt.bt],e[i.Z.tt.Yr],e[i.Z.tt.Zr],e[i.Z.tt.URI],e[i.Z.tt.ea],e[i.Z.tt.ra],e[i.Z.tt.sa],e[i.Z.tt.ta],e[i.Z.tt.ot],e[i.Z.tt.ia],e[i.Z.tt.aa],e[i.Z.tt.oa],e[i.Z.tt.pa],e[i.Z.tt.ma],e[i.Z.tt.na],e[i.Z.tt.ua],e[i.Z.tt.ca],e[i.Z.tt.fa],e[i.Z.tt.da],e[i.Z.tt.la],e[i.Z.tt.ga],(0,r.V)(e[i.Z.tt.ja]),e[i.Z.tt.xa],e[i.Z.tt.ha],e[i.Z.tt.CSS],e[i.Z.tt.va])}}a.it=i.Z.qe.Jr},6616:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1792),i=n(1507);class a extends r.Z{constructor(e,t,n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S){g||=r.Z.th.Dh,h||=r.Z.th.Mh,super(e,t||=r.Z.TextAlignment.START,n,i,a,o,s,c,l,u,d,f,void 0,p,m,h,g,_,v,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b,x,S),this.De=r.Z.TextAlignment.START}ze(){return!1}Je(){let e=document.createElement(`span`);return e.appendChild(document.createTextNode(this.message||``)),e}Oh(e){let t=e.getElementsByClassName(`ab-in-app-message`)[0];i.lP.po(t,!0,!0)||(this.slideFrom===r.Z.SlideFrom.TOP?t.style.top=`0px`:t.style.bottom=`0px`),super.Oh(e)}Y(){return super.Y(a.it)}static Xr(e){return new a(e[r.Z.tt.Vr],e[r.Z.tt.Wr],e[r.Z.tt.Rh],e[r.Z.tt.bt],e[r.Z.tt.Yr],e[r.Z.tt.Zr],e[r.Z.tt.URI],e[r.Z.tt.ea],e[r.Z.tt.ra],e[r.Z.tt.sa],e[r.Z.tt.ta],e[r.Z.tt.ot],e[r.Z.tt.aa],e[r.Z.tt.oa],e[r.Z.tt.pa],e[r.Z.tt.ma],e[r.Z.tt.na],e[r.Z.tt.ua],e[r.Z.tt.ca],e[r.Z.tt.ha],e[r.Z.tt.CSS],e[r.Z.tt.va])}}a.it=r.Z.qe.Kr},7048:(e,t,n)=>{n.d(t,{E:()=>i,f:()=>r});let r=e=>e!==null&&e.tagName===`IFRAME`;function i(e){var t;if(e.tagName===`SCRIPT`)(t=e.parentNode)==null||t.replaceChild(function(e){let t=document.createElement(`script`);t.text=e.innerHTML;for(let n of e.attributes)t.setAttribute(n.name,n.value);return t}(e),e);else for(let t of e.childNodes)i(t);return e}},4127:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var r=n(5825),i=n(2893),a=n(3552),o=n(335);let s=function(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/\-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;++e)r[e]=n.charCodeAt(e);return r};var c=n(5966),l=n(7615),u=n(5319),d=n(4556),f=n(8031);class p{constructor(e,t,n,r,i,a,o,s,c,l){this.sn=e,this.rn=t,this.on=n,this.un=i,this.an=a,this.yt=o,this.cn=s,this.hn=c,this.u=l,this.sn=e,this.rn=t,this.on=n,this.fn=r+`/safari/`+t,this.un=i||`/service-worker.js`,this.an=a,this.yt=o,this.cn=s||!1,this.hn=c||!1,this.u=l,this.ln=d.Z.dn(),this.pn=d.Z.bn()}mn(){return this.hn}yn(e,t,n,r,i){e.unsubscribe().then((e=>{e?this.vn(t,n,r,i):(o.Z.error(`Failed to unsubscribe device from push.`),typeof i==`function`&&i(!1))})).catch((e=>{o.Z.error(`Push unsubscription error: `+e),typeof i==`function`&&i(!1)}))}gn(e,t,n){var r;let i=(e=>{if(typeof e==`string`)return e;if(e.endpoint.indexOf(`https://android.googleapis.com/gcm/send`)!==0)return e.endpoint;let t=e.endpoint,n=e;return n.wn&&e.endpoint.indexOf(n.wn)===-1&&(t=e.endpoint+`/`+n.wn),t})(e),a=null,s=null,c=e;if(c.getKey!=null)try{let e=Array.from(new Uint8Array(c.getKey(`p256dh`))),t=Array.from(new Uint8Array(c.getKey(`auth`)));a=btoa(String.fromCharCode.apply(null,e)),s=btoa(String.fromCharCode.apply(null,t))}catch(e){o.Z.error((0,f.e)(e))}let l=(e=>{let t;return e.options&&(t=e.options.applicationServerKey)&&t.byteLength&&t.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(t)))).replace(/\+/g,`-`).replace(/\//g,`_`):null})(c);(r=this.sn)==null||r.kn(i,t,a,s,l),i&&typeof n==`function`&&n(i,a,s)}Pn(){var e;(e=this.sn)==null||e.Dn(!0)}Sn(e,t){var n;(n=this.sn)==null||n.Dn(!1),o.Z.info(e),typeof t==`function`&&t(!1)}An(e,t,n,r){if(t.permission===`default`)try{window.safari.pushNotification.requestPermission(this.fn,e,{api_key:this.rn,device_id:this.on?.ce().id||``},(t=>{t.permission===`granted`&&this.sn&&this.sn.setPushNotificationSubscriptionType(l.Z.NotificationSubscriptionTypes.OPTED_IN),this.An(e,t,n,r)}))}catch(e){this.Sn(`Could not request permission for push: `+e,r)}else t.permission===`denied`?this.Sn(`The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.`,r):t.permission===`granted`&&(o.Z.info(`Device successfully subscribed to push.`),this.gn(t.deviceToken,new Date,n))}requestPermission(e,t,n){let r=r=>{switch(r){case`granted`:typeof e==`function`&&e();return;case`default`:typeof t==`function`&&t();return;case`denied`:typeof n==`function`&&n();return;default:o.Z.error(`Received unexpected permission result `+r)}},i=!1;if(window.Notification.permission!==`default`)r(Notification.permission);else{let e=window.Notification.requestPermission((e=>{i&&r(e)}));e?e.then((e=>{r(e)})):i=!0}}vn(e,t,n,r){let i={userVisibleOnly:!0};t!=null&&(i.applicationServerKey=t),e.pushManager.subscribe(i).then((e=>{o.Z.info(`Device successfully subscribed to push.`),this.gn(e,new Date,n)})).catch((e=>{d.Z.isPushBlocked()?(o.Z.info(`Permission for push notifications was denied.`),typeof r==`function`&&r(!1)):(o.Z.error(`Push subscription failed: `+e),typeof r==`function`&&r(!0))}))}jn(){return this.cn?navigator.serviceWorker.getRegistration(this.un):navigator.serviceWorker.register(this.un).then((()=>navigator.serviceWorker.ready.then((e=>(e&&typeof e.update==`function`&&e.update().catch((e=>{o.Z.info(`ServiceWorker update failed: `+e)})),e)))))}xn(e){this.cn||(e.unregister(),o.Z.info(`Service worker successfully unregistered.`))}subscribe(e,t){if(!d.Z.isPushSupported())return o.Z.info(p.Nn),void(typeof t==`function`&&t(!1));if(this.ln){if(!this.cn&&window.location!=null){let e=this.un;e.indexOf(window.location.host)===-1&&(e=window.location.host+e),e.indexOf(window.location.protocol)===-1&&(e=window.location.protocol+`//`+e);let n=e.substr(0,e.lastIndexOf(`/`)+1);if(u.SD.Un().indexOf(n)!==0)return o.Z.error(`Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from `+window.location.pathname+` but service worker is at `+e+`)`),void(typeof t==`function`&&t(!0))}if(d.Z.isPushBlocked())return void this.Sn(`Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.`,t);if(this.yt&&!this.yt.Wn()&&this.yt.ii()===0)return o.Z.info(`Waiting for VAPID key from server config before subscribing to push.`),void this.yt._n((()=>{this.subscribe(e,t)}));let n=()=>{o.Z.info(`Permission for push notifications was denied.`),typeof t==`function`&&t(!1)},r=()=>{let e=`Permission for push notifications was ignored.`;d.Z.isPushBlocked()&&(e+=` The browser has automatically blocked further permission requests for a period (probably 1 week).`),o.Z.info(e),typeof t==`function`&&t(!0)},f=d.Z.isPushPermissionGranted();this.requestPermission(()=>{!f&&this.sn&&this.sn.setPushNotificationSubscriptionType(l.Z.NotificationSubscriptionTypes.OPTED_IN),this.jn().then((n=>{if(n==null)return o.Z.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void(typeof t==`function`&&t(!0));n.pushManager.getSubscription().then((r=>{let l=null;if(this.yt?.Wn()!=null&&(l=s(this.yt.Wn())),r){let s,u=null,d=null;if(this.u&&(s=this.u.j(c.I.C.In)),s&&!(0,i.kJ)(s)){let e;try{e=a.Z.qn(s).Vn}catch{e=null}e==null||isNaN(e.getTime())||e.getTime()===0||(u=e,d=new Date(u),d.setMonth(u.getMonth()+6))}l!=null&&r.options&&r.options.applicationServerKey&&r.options.applicationServerKey.byteLength&&r.options.applicationServerKey.byteLength>0&&!(0,i.Xy)(l,new Uint8Array(r.options.applicationServerKey))?(r.options.applicationServerKey.byteLength>12?o.Z.info(`Device was already subscribed to push using a different VAPID provider, creating new subscription.`):o.Z.info(`Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription.`),this.yn(r,n,l,e,t)):r.expirationTime&&new Date(r.expirationTime).valueOf()<=new Date().valueOf()?(o.Z.info(`Push subscription is expired, creating new subscription.`),this.yn(r,n,l,e,t)):s&&(0,i.kJ)(s)?this.yn(r,n,l,e,t):d==null?(o.Z.info(`No push subscription creation date found, creating new subscription.`),this.yn(r,n,l,e,t)):d.valueOf()<=new Date().valueOf()?(o.Z.info(`Push subscription older than 6 months, creating new subscription.`),this.yn(r,n,l,e,t)):(o.Z.info(`Device already subscribed to push, sending existing subscription to backend.`),this.gn(r,u,e))}else this.vn(n,l,e,t)})).catch((e=>{o.Z.error(`Error checking current push subscriptions: `+e)}))})).catch((e=>{o.Z.error(`ServiceWorker registration failed: `+e)}))},r,n)}else if(this.pn){if(this.an==null||this.an===``)return o.Z.error(`You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari`),void(typeof t==`function`&&t(!0));let n=window.safari.pushNotification.permission(this.an);this.An(this.an,n,e,t)}}unsubscribe(e,t){if(!d.Z.isPushSupported())return o.Z.info(p.Nn),void(typeof t==`function`&&t());this.ln?navigator.serviceWorker.getRegistration(this.un).then((n=>{n?n.pushManager.getSubscription().then((r=>{r?(this.Pn(),r.unsubscribe().then((r=>{r?(o.Z.info(`Device successfully unsubscribed from push.`),typeof e==`function`&&e()):(o.Z.error(`Failed to unsubscribe device from push.`),typeof t==`function`&&t()),this.xn(n)})).catch((e=>{o.Z.error(`Push unsubscription error: `+e),typeof t==`function`&&t()}))):(o.Z.info(`Device already unsubscribed from push.`),typeof e==`function`&&e())})).catch((e=>{o.Z.error(`Error unsubscribing from push: `+e),typeof t==`function`&&t()})):(o.Z.info(`Device already unsubscribed from push.`),typeof e==`function`&&e())})):this.pn&&(this.Pn(),o.Z.info(`Device unsubscribed from push.`),typeof e==`function`&&e())}}p.Nn=`Push notifications are not supported in this browser.`;let m={t:!1,i:null,m:()=>(m.o(),m.i||=new p(r.ZP.pr(),r.ZP.ba(),r.ZP.te(),r.ZP.Hs(),r.ZP.nn(r.JY.wa),r.ZP.nn(r.JY.ya),r.ZP.ir(),r.ZP.nn(r.JY.Ma),r.ZP.nn(r.JY._a),r.ZP.l()),m.i),o:()=>{m.t||=(r.ZP.g(m),!0)},destroy:()=>{m.i=null,m.t=!1}},h=m},2261:(e,t,n)=>{n.r(t),n.d(t,{requestPushPermission:()=>a});var r=n(5825),i=n(4127);function a(e,t){if(r.ZP.X())return i.default.m().subscribe(((t,n,i)=>{let a=r.ZP.cr();a&&a.requestImmediateDataFlush(),typeof e==`function`&&e(t,n,i)}),t)}},7824:(e,t,n)=>{n.r(t),n.d(t,{unregisterPush:()=>a});var r=n(5825),i=n(4127);function a(e,t){if(r.ZP.X())return i.default.m().unsubscribe(e,t)}},4556:(e,t,n)=>{n.d(t,{Z:()=>i});let r={dn:()=>`serviceWorker`in navigator&&typeof ServiceWorkerRegistration<`u`&&`showNotification`in ServiceWorkerRegistration.prototype&&`PushManager`in window,bn:()=>`safari`in window&&`pushNotification`in window.safari&&typeof window.safari.pushNotification.permission==`function`&&typeof window.safari.pushNotification.requestPermission==`function`,isPushSupported:()=>r.dn()||r.bn(),isPushBlocked:()=>{let e=r.isPushSupported()&&`Notification`in window&&window.Notification!=null&&window.Notification.permission!=null&&window.Notification.permission===`denied`,t=r.isPushSupported()&&(!(`Notification`in window)||window.Notification==null);return e||t},isPushPermissionGranted:()=>r.isPushSupported()&&`Notification`in window&&window.Notification!=null&&window.Notification.permission!=null&&window.Notification.permission===`granted`,Vi:()=>!r.isPushBlocked()&&r.isPushSupported()&&!r.isPushPermissionGranted()},i=r},7615:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(2893),i=n(335),a=n(2730),o=n(3905),s=n(7671),c=n(7750);class l{constructor(e,t){this.wt=e,this.zi=t,this.wt=e,this.zi=t}getUserId(e){let t=this.wt.getUserId();if(typeof e!=`function`)return t;i.Z.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),e(t)}addAlias(e,t){return!(0,o.ro)(e,`add alias`,`the alias`,!1)||e.length<=0?(i.Z.error(`addAlias requires a non-empty alias`),!1):!(0,o.ro)(t,`add alias`,`the label`,!1)||t.length<=0?(i.Z.error(`addAlias requires a non-empty label`),!1):this.zi.Cn(e,t).L}setFirstName(e){return!!(0,o.ro)(e,`set first name`,`the firstName`,!0)&&this.wt.nu(`first_name`,e)}setLastName(e){return!!(0,o.ro)(e,`set last name`,`the lastName`,!0)&&this.wt.nu(`last_name`,e)}setEmail(e){return e===null||(0,o.vV)(e)?this.wt.nu(`email`,e):(i.Z.error(`Cannot set email address - "${e}" did not pass RFC-5322 validation.`),!1)}setGender(e){return typeof e==`string`&&(e=e.toLowerCase()),!(e!==null&&!(0,r.fk)(l.Genders,e,`Gender "${e}" is not a valid gender.`,`User.Genders`))&&this.wt.nu(`gender`,e)}setDateOfBirth(e,t,n){return e===null&&t===null&&n===null?this.wt.nu(`dob`,null):(e=e==null?null:parseInt(e.toString()),t=t==null?null:parseInt(t.toString()),n=n==null?null:parseInt(n.toString()),e==null||t==null||n==null||isNaN(e)||isNaN(t)||isNaN(n)||t>12||t<1||n>31||n<1?(i.Z.error(`Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);`),!1):this.wt.nu(`dob`,`${e}-${t}-${n}`))}setCountry(e){return!!(0,o.ro)(e,`set country`,`the country`,!0)&&this.wt.nu(`country`,e)}setHomeCity(e){return!!(0,o.ro)(e,`set home city`,`the homeCity`,!0)&&this.wt.nu(`home_city`,e)}setLanguage(e){return!!(0,o.ro)(e,`set language`,`the language`,!0)&&this.wt.nu(`language`,e)}setEmailNotificationSubscriptionType(e){return!!(0,r.fk)(l.NotificationSubscriptionTypes,e,`Email notification setting "${e}" is not a valid subscription type.`,`User.NotificationSubscriptionTypes`)&&this.wt.nu(`email_subscribe`,e)}setPushNotificationSubscriptionType(e){return!!(0,r.fk)(l.NotificationSubscriptionTypes,e,`Push notification setting "${e}" is not a valid subscription type.`,`User.NotificationSubscriptionTypes`)&&this.wt.nu(`push_subscribe`,e)}setPhoneNumber(e){return!!(0,o.ro)(e,`set phone number`,`the phoneNumber`,!0)&&(e===null||e.match(l.En)?this.wt.nu(`phone`,e):(i.Z.error(`Cannot set phone number - "${e}" did not pass validation.`),!1))}setLastKnownLocation(e,t,n,r,a){return e==null||t==null?(i.Z.error(`Cannot set last-known location - latitude and longitude are required.`),!1):(e=parseFloat(e.toString()),t=parseFloat(t.toString()),n!=null&&(n=parseFloat(n.toString())),r!=null&&(r=parseFloat(r.toString())),a!=null&&(a=parseFloat(a.toString())),isNaN(e)||isNaN(t)||n!=null&&isNaN(n)||r!=null&&isNaN(r)||a!=null&&isNaN(a)?(i.Z.error(`Cannot set last-known location - all supplied parameters must be numeric.`),!1):e>90||e<-90||t>180||t<-180?(i.Z.error(`Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively.`),!1):n!=null&&n<0||a!=null&&a<0?(i.Z.error(`Cannot set last-known location - accuracy and altitudeAccuracy may not be negative.`),!1):this.zi.setLastKnownLocation(this.wt.getUserId(),e,t,r,n,a).L)}setCustomUserAttribute(e,t,n){if(!(0,o.bj)(e))return!1;let i=t=>{let[n]=(0,o.lg)(t,s.db,`attribute value`,`set custom user attribute "${e}"`,`custom user attribute`);return n};if((0,r.kJ)(t)){let[n,r]=(0,o.$g)(e,t);if(!n&&!r&&t.length!==0)return!1;if(n||t.length===0)return this.zi.Fn(a.G.$n,e,t).L;for(let e of t)if(!i(e))return!1}else if((0,r.Kn)(t)){if(!i(t))return!1;if(n)return this.zi.Fn(a.G.Bn,e,t).L}else if(t===void 0||!(0,o.UO)(t)||((0,r.J_)(t)&&(t=(0,c.BT)(t)),typeof t==`string`&&!(0,o.zM)(t,`set custom user attribute "${e}"`,`the element in the given array`)))return!1;return this.wt.setCustomUserAttribute(e,t)}addToCustomAttributeArray(e,t){return!!(0,o.zM)(e,`add to custom user attribute array`,`the given key`)&&!(t!=null&&!(0,o.zM)(t,`add to custom user attribute array`,`the given value`))&&this.zi.Fn(a.G.Ln,e,t).L}removeFromCustomAttributeArray(e,t){return!!(0,o.zM)(e,`remove from custom user attribute array`,`the given key`)&&!(t!=null&&!(0,o.zM)(t,`remove from custom user attribute array`,`the given value`))&&this.zi.Fn(a.G.Rn,e,t).L}incrementCustomUserAttribute(e,t){if(!(0,o.zM)(e,`increment custom user attribute`,`the given key`))return!1;t??=1;let n=parseInt(t.toString());return isNaN(n)||n!==parseFloat(t.toString())?(i.Z.error(`Cannot increment custom user attribute because the given incrementValue "${t}" is not an integer.`),!1):this.zi.Fn(a.G.On,e,n).L}setCustomLocationAttribute(e,t,n){return!!(0,o.zM)(e,`set custom location attribute`,`the given key`)&&((t!==null||n!==null)&&(t=t==null?null:parseFloat(t.toString()),n=n==null?null:parseFloat(n.toString()),t==null&&n!=null||t!=null&&n==null||t!=null&&(isNaN(t)||t>90||t<-90)||n!=null&&(isNaN(n)||n>180||n<-180))?(i.Z.error(`Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by ±90 and ±180 respectively, or must both be null for removal.`),!1):this.zi.Gn(e,t,n).L)}addToSubscriptionGroup(e){return!(0,o.ro)(e,`add user to subscription group`,`subscription group ID`,!1)||e.length<=0?(i.Z.error(`addToSubscriptionGroup requires a non-empty subscription group ID`),!1):this.zi.Hn(e,l.Kn.SUBSCRIBED).L}removeFromSubscriptionGroup(e){return!(0,o.ro)(e,`remove user from subscription group`,`subscription group ID`,!1)||e.length<=0?(i.Z.error(`removeFromSubscriptionGroup requires a non-empty subscription group ID`),!1):this.zi.Hn(e,l.Kn.UNSUBSCRIBED).L}kn(e,t,n,r,i){this.wt.kn(e,t,n,r,i),this.zi.Mn()}Dn(e){this.wt.Dn(e)}}l.Genders={MALE:`m`,FEMALE:`f`,OTHER:`o`,UNKNOWN:`u`,NOT_APPLICABLE:`n`,PREFER_NOT_TO_SAY:`p`},l.NotificationSubscriptionTypes={OPTED_IN:`opted_in`,SUBSCRIBED:`subscribed`,UNSUBSCRIBED:`unsubscribed`},l.En=/^[0-9 .\\(\\)\\+\\-]+$/,l.Kn={SUBSCRIBED:`subscribed`,UNSUBSCRIBED:`unsubscribed`},l.Yn=`user_id`,l.lu=`custom`,l.lr=997},67:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(335),i=n(5563);class a{constructor(e,t){this.cards=e,this.lastUpdated=t,this.cards=e,this.lastUpdated=t}getUnreadCardCount(){let e=0;for(let t of this.cards)t.viewed||t instanceof i.Z||e++;return e}dr(){r.Z.error(`Must be implemented in a subclass`)}logCardImpressions(e){r.Z.error(`Must be implemented in a subclass`)}logCardClick(e){r.Z.error(`Must be implemented in a subclass`)}sr(){r.Z.error(`Must be implemented in a subclass`)}}a.ur=6e4,a.Ah=500,a.Co=1e4},158:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(){}Ns(e){}changeUser(e=!1){}clearData(e=!1){}}},7671:(e,t,n)=>{n.d(t,{De:()=>i,Fz:()=>r,Go:()=>l,S6:()=>m,Tt:()=>p,U4:()=>a,Up:()=>u,Y$:()=>d,_P:()=>s,dH:()=>f,db:()=>c,rF:()=>o});let r=100,i=`inAppMessage must be an InAppMessage object`,a=`must be a Card object`,o=500,s=`logCustomEvent`,c=`setCustomUserAttribute`,l=`Braze must be initialized before calling methods.`,u=30,d=30,f=72e5,p=3,m=1},9179:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(335),i=n(5825),a=n(7559),o=n(4673);let s={q:(e,t,n)=>{let s=new o.Z,c=i.ZP.zr();if(!c)return r.Z.info(`Not logging event with type "${e}" because the current session ID could not be found.`),s;let l=c.wo();return s.ge.push(new a.Z(n||i.ZP.er()?.getUserId(),e,new Date().valueOf(),l,t)),s.L=i.ZP.l()?.xo(s.ge)||!1,s}}},1311:(e,t,n)=>{n.d(t,{cP:()=>b,tQ:()=>S,cz:()=>w,Yz:()=>E,cV:()=>T,GB:()=>O,Of:()=>D});var r=n(67),i=n(5608),a=n(1507),o=n(5563),s=n(2857),c=n(2893),l=n(7429),u=n(5825),d=n(3695),f=n(335);let p={en:{NO_CARDS_MESSAGE:`We have no updates for you at this time.<br/>Please check again later.`,FEED_TIMEOUT_MESSAGE:`Sorry, this refresh timed out.<br/>Please try again later.`},ar:{NO_CARDS_MESSAGE:`ليس لدينا أي تحديث. يرجى التحقق مرة أخرى لاحقاً`,FEED_TIMEOUT_MESSAGE:`يرجى تكرار المحاولة لاحقا`},cs:{NO_CARDS_MESSAGE:`V tuto chvíli pro vás nemáme žádné aktualizace.<br/>Zkontrolujte prosím znovu později.`,FEED_TIMEOUT_MESSAGE:`Prosím zkuste to znovu později.`},da:{NO_CARDS_MESSAGE:`Vi har ingen updates.<br/>Prøv venligst senere.`,FEED_TIMEOUT_MESSAGE:`Prøv venligst senere.`},de:{NO_CARDS_MESSAGE:`Derzeit sind keine Updates verfügbar.<br/>Bitte später noch einmal versuchen.`,FEED_TIMEOUT_MESSAGE:`Bitte später noch einmal versuchen.`},es:{NO_CARDS_MESSAGE:`No tenemos actualizaciones.<br/>Por favor compruébelo más tarde.`,FEED_TIMEOUT_MESSAGE:`Por favor inténtelo más tarde.`},"es-mx":{NO_CARDS_MESSAGE:`No tenemos ninguna actualización.<br/>Vuelva a verificar más tarde.`,FEED_TIMEOUT_MESSAGE:`Por favor, vuelva a intentarlo más tarde.`},et:{NO_CARDS_MESSAGE:`Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.`,FEED_TIMEOUT_MESSAGE:`Palun proovige hiljem uuesti.`},fi:{NO_CARDS_MESSAGE:`Päivityksiä ei ole saatavilla.<br/>Tarkista myöhemmin uudelleen.`,FEED_TIMEOUT_MESSAGE:`Yritä myöhemmin uudelleen.`},fr:{NO_CARDS_MESSAGE:`Aucune mise à jour disponible.<br/>Veuillez vérifier ultérieurement.`,FEED_TIMEOUT_MESSAGE:`Veuillez réessayer ultérieurement.`},he:{NO_CARDS_MESSAGE:`.אין לנו עדכונים. בבקשה בדוק שוב בקרוב`,FEED_TIMEOUT_MESSAGE:`.בבקשה נסה שוב בקרוב`},hi:{NO_CARDS_MESSAGE:`हमारे पास कोई अपडेट नहीं हैं। कृपया बाद में फिर से जाँच करें.।`,FEED_TIMEOUT_MESSAGE:`कृपया बाद में दोबारा प्रयास करें।.`},id:{NO_CARDS_MESSAGE:`Kami tidak memiliki pembaruan. Coba lagi nanti.`,FEED_TIMEOUT_MESSAGE:`Coba lagi nanti.`},it:{NO_CARDS_MESSAGE:`Non ci sono aggiornamenti.<br/>Ricontrollare più tardi.`,FEED_TIMEOUT_MESSAGE:`Riprovare più tardi.`},ja:{NO_CARDS_MESSAGE:`アップデートはありません。<br/>後でもう一度確認してください。`,FEED_TIMEOUT_MESSAGE:`後でもう一度試してください。`},ko:{NO_CARDS_MESSAGE:`업데이트가 없습니다. 다음에 다시 확인해 주십시오.`,FEED_TIMEOUT_MESSAGE:`나중에 다시 시도해 주십시오.`},ms:{NO_CARDS_MESSAGE:`Tiada kemas kini. Sila periksa kemudian.`,FEED_TIMEOUT_MESSAGE:`Sila cuba kemudian.`},nl:{NO_CARDS_MESSAGE:`Er zijn geen updates.<br/>Probeer het later opnieuw.`,FEED_TIMEOUT_MESSAGE:`Probeer het later opnieuw.`},no:{NO_CARDS_MESSAGE:`Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.`,FEED_TIMEOUT_MESSAGE:`Vennligst prøv igjen senere.`},pl:{NO_CARDS_MESSAGE:`Brak aktualizacji.<br/>Proszę sprawdzić ponownie później.`,FEED_TIMEOUT_MESSAGE:`Proszę spróbować ponownie później.`},pt:{NO_CARDS_MESSAGE:`Não temos atualizações.<br/>Por favor, verifique mais tarde.`,FEED_TIMEOUT_MESSAGE:`Por favor, tente mais tarde.`},"pt-br":{NO_CARDS_MESSAGE:`Não temos nenhuma atualização.<br/>Verifique novamente mais tarde.`,FEED_TIMEOUT_MESSAGE:`Tente novamente mais tarde.`},ru:{NO_CARDS_MESSAGE:`Обновления недоступны.<br/>Пожалуйста, проверьте снова позже.`,FEED_TIMEOUT_MESSAGE:`Пожалуйста, повторите попытку позже.`},sv:{NO_CARDS_MESSAGE:`Det finns inga uppdateringar.<br/>Försök igen senare.`,FEED_TIMEOUT_MESSAGE:`Försök igen senare.`},th:{NO_CARDS_MESSAGE:`เราไม่มีการอัพเดต กรุณาตรวจสอบภายหลัง.`,FEED_TIMEOUT_MESSAGE:`กรุณาลองใหม่ภายหลัง.`},uk:{NO_CARDS_MESSAGE:`Оновлення недоступні.<br/>ласка, перевірте знову пізніше.`,FEED_TIMEOUT_MESSAGE:`Будь ласка, спробуйте ще раз пізніше.`},vi:{NO_CARDS_MESSAGE:`Chúng tôi không có cập nhật nào.<br/>Vui lòng kiểm tra lại sau.`,FEED_TIMEOUT_MESSAGE:`Vui lòng thử lại sau.`},"zh-hk":{NO_CARDS_MESSAGE:`暫時沒有更新.<br/>請稍候再試.`,FEED_TIMEOUT_MESSAGE:`請稍候再試.`},"zh-hans":{NO_CARDS_MESSAGE:`暂时没有更新.<br/>请稍后再试.`,FEED_TIMEOUT_MESSAGE:`请稍候再试.`},"zh-hant":{NO_CARDS_MESSAGE:`暫時沒有更新.<br/>請稍候再試.`,FEED_TIMEOUT_MESSAGE:`請稍候再試.`},"zh-tw":{NO_CARDS_MESSAGE:`暫時沒有更新.<br/>請稍候再試.`,FEED_TIMEOUT_MESSAGE:`請稍候再試.`},zh:{NO_CARDS_MESSAGE:`暂时没有更新.<br/>请稍后再试.`,FEED_TIMEOUT_MESSAGE:`请稍候再试.`}};class m{constructor(e,t=!1){if(this.language=e,e!=null&&(e=e.toLowerCase()),e!=null&&p[e]==null){let t=e.indexOf(`-`);t>0&&(e=e.substring(0,t))}if(p[e]==null){let n=`Braze does not yet have a localization for language `+e+`, defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.`;t?f.Z.error(n):f.Z.info(n),e=`en`}this.language=e}get(e){return p[this.language][e]}}let h={t:!1,i:null,m:()=>{if(h.o(),!h.i){let e=d.Z.language,t=!1;u.ZP.nn(u.JY.zn)&&(e=u.ZP.nn(u.JY.zn),t=!0),h.i=new m(e,t)}return h.i},o:()=>{h.t||=(u.ZP.g(h),!0)},destroy:()=>{h.i=null,h.t=!1}},g=h;var _=n(7070),v=n(3905),y=n(3046);let b=`data-last-requested-refresh`,x={};function S(e){e&&(e.className=e.className.replace(`ab-show`,`ab-hide`),setTimeout((()=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),r.Z.Ah));let t=e.getAttribute(`data-update-subscription-id`);var n;t!=null&&(n=t,u.ZP.X()&&u.ZP.removeSubscription(n));let i=e.getAttribute(`data-listener-id`);i!=null&&(window.removeEventListener(`scroll`,x[i]),delete x[i])}function C(e,t){let n=document.createElement(`div`);if(n.className=`ab-feed-body`,n.setAttribute(`aria-label`,`Feed`),n.setAttribute(`role`,`feed`),e.lastUpdated==null){let e=document.createElement(`div`);e.className=`ab-no-cards-message`;let t=document.createElement(`i`);t.className=`fa fa-spinner fa-spin fa-4x ab-initial-spinner`,e.appendChild(t),n.appendChild(e)}else{let r=!1,a=t=>e.logCardClick(t);for(let s of e.cards){let c=s instanceof o.Z;!c||e.dr()?(n.appendChild((0,i.Dj)(s,a,t)),r||=!c):f.Z.error(`Received a control card for a legacy news feed. Control cards are only supported with content cards.`)}if(!r){let e=document.createElement(`div`);e.className=`ab-no-cards-message`,e.innerHTML=g.m().get(`NO_CARDS_MESSAGE`)||``,e.setAttribute(`role`,`article`),n.appendChild(e)}}return n}function w(e,t){if(e!=null&&t!=null){let n=[],r=t.querySelectorAll(`.ab-card`);e.yo||={};for(let t=0;t<r.length;t++){let o=(0,i.sv)(r[t]),s=(0,a.rJ)(r[t]),c=(0,a.Fr)(r[t]);if(e.yo[o]){s||c||(0,i.pq)(r[t]);continue}let l=(0,i.ql)(r[t]),u=(0,i.rW)(r[t]),d=l,f=u;if(!l&&s&&(l=!0,(0,i.Ji)(r[t])),!u&&c&&(u=!0,(0,i.Zw)(r[t])),l&&u){if(d&&f)continue;for(let t of e.cards)if(t.id===o){e.yo[t.id]=!0,n.push(t);break}}}n.length>0&&e.logCardImpressions(n)}}function T(e,t){if(e==null||t==null)return;t.setAttribute(`aria-busy`,`true`);let n=t.querySelectorAll(`.ab-refresh-button`)[0];n!=null&&(n.className+=` fa-spin`);let i=new Date().valueOf().toString();t.setAttribute(`data-last-requested-refresh`,i),setTimeout((()=>{if(t.getAttribute(`data-last-requested-refresh`)===i){let e=t.querySelectorAll(`.fa-spin`);for(let t=0;t<e.length;t++)e[t].className=e[t].className.replace(/fa-spin/g,``);let n=t.querySelectorAll(`.ab-initial-spinner`)[0];if(n!=null){let e=document.createElement(`span`);e.innerHTML=g.m().get(`FEED_TIMEOUT_MESSAGE`)||``,n.parentNode!=null&&(n.parentNode.appendChild(e),n.parentNode.removeChild(n))}t.getAttribute(`aria-busy`)===`true`&&t.setAttribute(`aria-busy`,`false`)}}),r.Z.Co),e.sr()}function E(e,t,n){let r=document.createElement(`div`);r.className=`ab-feed ab-hide ab-effect-slide`,r.setAttribute(`role`,`dialog`),r.setAttribute(`aria-label`,`Feed`),r.setAttribute(`tabindex`,`-1`);let i=document.createElement(`div`);i.className=`ab-feed-buttons-wrapper`,i.setAttribute(`role`,`group`),r.appendChild(i);let a=document.createElement(`i`);a.className=`fa fa-times ab-close-button`,a.setAttribute(`aria-label`,`Close Feed`),a.setAttribute(`tabindex`,`0`),a.setAttribute(`role`,`button`);let o=e=>{S(r),e.stopPropagation()};a.addEventListener(`keydown`,(e=>{e.keyCode!==l.m.Fo&&e.keyCode!==l.m.To||o(e)})),a.onclick=o;let s=document.createElement(`i`);s.className=`fa fa-refresh ab-refresh-button`,e&&e.lastUpdated==null&&(s.className+=` fa-spin`),s.setAttribute(`aria-label`,`Refresh Feed`),s.setAttribute(`tabindex`,`0`),s.setAttribute(`role`,`button`);let c=t=>{T(e,r),t.stopPropagation()};s.addEventListener(`keydown`,(e=>{e.keyCode!==l.m.Fo&&e.keyCode!==l.m.To||c(e)})),s.onclick=c,i.appendChild(s),i.appendChild(a),r.appendChild(C(e,t));let u=()=>w(e,r);if(r.addEventListener(`scroll`,u),!n){window.addEventListener(`scroll`,u);let e=_.Z.W();x[e]=u,r.setAttribute(`data-listener-id`,e)}return r}function D(e,t,n,r,i){if(!(0,c.kJ)(t))return;let a=[];for(let e of t)if(e instanceof s.Z){if(e.url&&v.y9.test(e.url)){let t=(0,y.OL)(e.url);if((0,y.je)(t)){f.Z.error((0,y.Tu)(y.yi.Qi,`Content Card`));continue}}a.push(e)}if(e.cards=a,e.lastUpdated=n,r!=null)if(r.setAttribute(`aria-busy`,`false`),e.lastUpdated==null)S(r);else{let t=r.querySelectorAll(`.ab-feed-body`)[0];if(t!=null){let n=C(e,i);t.parentNode&&t.parentNode.replaceChild(n,t),w(e,n.parentNode)}}}function O(e,t){e&&t.setAttribute(`data-update-subscription-id`,e)}},5825:(e,t,n)=>{n.d(t,{JY:()=>U,ZP:()=>te});var r=n(5966),i=n(4663),a=n(5522),o=n(335);class s{constructor(e,t,n){this.u=e,this.Jn=t,this.Qn=n,this.u=e,this.Jn=t||!1,this.Qn=n,this.Xn=new i.Z,this.Zn=0,this.gh=1}Fh(){return this.Jn}kh(){return this.u.j(r.I.C.wh)}setSdkAuthenticationSignature(e){let t=this.kh();this.u.k(r.I.C.wh,e);let n=a.Z.Yt.Qt;new a.Z(n,o.Z).setItem(n.ss.jh,this.gh,e),t!==e&&this.Os()}xh(){this.u.ti(r.I.C.wh);let e=a.Z.Yt.Qt;new a.Z(e,o.Z).re(e.ss.jh,this.gh)}subscribeToSdkAuthenticationFailures(e){return this.Qn.It(e)}qh(e){this.Qn.Dt(e)}yh(){this.Xn.removeAllSubscriptions()}Bh(){this.Zn+=1}Gh(){return this.Zn}Os(){this.Zn=0}}var c=n(158),l=n(3695);class u{constructor(e){this.id=e,this.id=e}Ir(){let e={};return this.browser!=null&&(e.browser=this.browser),this.Ia!=null&&(e.browser_version=this.Ia),this.os!=null&&(e.os_version=this.os),this.resolution!=null&&(e.resolution=this.resolution),this.language!=null&&(e.locale=this.language),this.timeZone!=null&&(e.time_zone=this.timeZone),this.userAgent!=null&&(e.user_agent=this.userAgent),e}}let d={BROWSER:`browser`,BROWSER_VERSION:`browserVersion`,OS:`os`,RESOLUTION:`resolution`,LANGUAGE:`language`,TIME_ZONE:`timeZone`,USER_AGENT:`userAgent`};var f=n(2308),p=n(7070),m=n(2893),h=n(8031);class g{constructor(e,t){this.u=e,this.ka=t,this.u=e,t??=(0,m.VO)(d),this.ka=t}ce(e=!0){let t=this.u.tu(r.I.iu.Uo);t??(t=new f.Z(p.Z.W()),e&&this.u.uu(r.I.iu.Uo,t));let n=new u(t.eu);for(let e=0;e<this.ka.length;e++)switch(this.ka[e]){case d.BROWSER:n.browser=l.Z.browser;break;case d.BROWSER_VERSION:n.Ia=l.Z.version;break;case d.OS:n.os=this.Ta();break;case d.RESOLUTION:n.Da=screen.width+`x`+screen.height;break;case d.LANGUAGE:n.language=l.Z.language;break;case d.TIME_ZONE:n.timeZone=this.Sa(new Date);break;case d.USER_AGENT:n.userAgent=l.Z.userAgent}return n}Ta(){if(l.Z.Oa())return l.Z.Oa();let e=this.u.j(r.I.C.Ca);return e&&e.os_version?e.os_version:l.Z.Ta()}Sa(e){let t=!1;if(typeof Intl<`u`&&typeof Intl.DateTimeFormat==`function`)try{if(typeof Intl.DateTimeFormat().resolvedOptions==`function`){let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e!=null&&e!==``)return e}}catch(e){o.Z.info(`Intl.DateTimeFormat threw an error, cannot detect user's time zone:`+(0,h.e)(e)),t=!0}if(t)return``;let n=e.getTimezoneOffset();return this.Fa(n)}Fa(e){let t=Math.trunc(e/60),n=Math.trunc(e%60),r=`GMT`;return e!==0&&(r+=e<0?`+`:`-`,r+=(`00`+Math.abs(t)).slice(-2)+`:`+(`00`+Math.abs(n)).slice(-2)),r}}var _=n(3826),v=n(7559),y=n(7750),b=n(9179),x=n(2730),S=n(6870),C=n(7671),w=n(8982);class T{constructor(e,t,n,r,i,a,o,s,c,l,u,d){this.on=e,this.u=t,this.zo=n,this.wt=r,this.ri=i,this.yt=a,this.rn=o,this.Go=s,this.Wo=c,this.Vo=l,this.appVersion=u,this.Xh=d,this.$h=e=>e==null?``:`${e} `,this.on=e,this.u=t,this.zo=n,this.wt=r,this.ri=i,this.yt=a,this.rn=o,this.Go=s,this.Wo=c,this.Vo=l,this.appVersion=u,this.Xh=d,this.Hh=[`npm`]}Js(e,t=!1,n=!1){let i=this.on.ce(!n),a=i.Ir(),o=this.u.j(r.I.C.Ca);(0,m.Xy)(o,a)||(e.device=a),e.api_key=this.rn,e.time=(0,y.FX)(new Date().valueOf(),!0);let s=this.u.j(r.I.C.Yh)||[],c=this.u.j(r.I.C.Jh)||``;if(this.Hh.length>0&&(!(0,m.Xy)(s,this.Hh)||c!==this.ri.Si())&&(e.sdk_metadata=this.Hh),e.sdk_version=this.Wo,this.Vo&&(e.sdk_flavor=this.Vo),e.app_version=this.appVersion,e.app_version_code=this.Xh,e.device_id=i.id,t){let t=this.wt.getUserId();t!=null&&(e.user_id=t)}if(!e.user_id&&!this.zo.Fh()){let t=(0,w.q)(this.u);t&&(e.alias=t)}return e}Ks(e,t,n){let r=t.auth_error,i=t.error;if(!r&&!i)return!0;if(r){let t;this.zo.Bh();let i={errorCode:r.error_code};for(let e of n)(0,m.kJ)(e)&&e[0]===`X-Braze-Auth-Signature`&&(i.signature=e[1]);e.respond_with&&e.respond_with.user_id?i.userId=e.respond_with.user_id:e.user_id&&(i.userId=e.user_id);let a=r.reason;return a?(i.reason=a,t=`due to ${a}`):t=`with error code ${r.error_code}.`,this.zo.Fh()||(t+=` Please use the "enableSdkAuthentication" initialization option to enable authentication.`),o.Z.error(`SDK Authentication failed ${t}`),this.Qh(e.events||[],e.attributes||[]),this.zo.qh(i),!1}if(i){let n,r=i;switch(r){case _.Z.Zh:return n=`Received successful response with empty body.`,b.Z.q(x.G.qs,{e:n}),o.Z.info(n),!1;case _.Z.Ra:return n=`Received successful response with invalid JSON`,b.Z.q(x.G.qs,{e:n+`: `+t.response}),o.Z.info(n),!1;case _.Z.qa:r=`The API key "${e.api_key}" is invalid for the baseUrl ${this.Go}`;break;case _.Z.Aa:r=`Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.`;break;case _.Z.Ba:r=`No device identifier. Please contact support@braze.com`}o.Z.error(`Backend error: `+r)}return!1}Na(e,t,n,r){return!!(e&&e.length!==0||t&&t.length!==0||n||r)}Xa(e,t,n,r,i=!1){let a=[],o=e=>e||``,s=o(this.wt.getUserId()),c=this.Zi(e,t),l=[],u=[],d,f=null;if(n.length>0){let e=[];for(let t of n){if(d=t.Ir(),this.zo.Fh()){if(s&&!d.user_id){f||={},f.events||=[],f.events.push(d);continue}if(o(d.user_id)!==s){u.push(d);continue}}e.push(d)}e.length>0&&(c.events=e)}if(r.length>0){let e=[];for(let t of r)t&&(this.zo.Fh()&&o(t.user_id)!==s?l.push(t):e.push(t));e.length>0&&(c.attributes=e)}if(this.Qh(u,l),c=this.Js(c,!0,i),f){f=this.Js(f,!1,i);let e={requestData:f,headers:this.$s(f,S.Z.Ps.$a)};a.push(e)}if(c&&!this.Na(c.events,c.attributes,e,t))return f?a:null;let p={requestData:c,headers:this.$s(c,S.Z.Ps.$a)};return a.push(p),a}Qh(e,t){if(e){let t=[];for(let n of e){let e=v.Z.fromJson(n);e.time=(0,y.Pn)(e.time),t.push(e)}this.u.xo(t)}if(t)for(let e of t)this.u.La(e)}Vs(e,t){let n=`HTTP error `;e!=null&&(n+=e+` `),n+=t,o.Z.error(n)}qr(e){return b.Z.q(x.G.Ea,{n:e})}Zi(e,t,n){let r={};e&&(r.feed=!0),t&&(r.triggers=!0);let i=n??this.wt.getUserId();if(i&&(r.user_id=i),!r.user_id&&!this.zo.Fh()){let e=(0,w.q)(this.u);e&&(r.alias=e)}return r.config={config_time:this.yt.ii()},{respond_with:r}}Ka(e){let t=new Date().valueOf(),n=C.dH.toString(),r=S.Z.Pa(this.u,e);return r!==-1&&(n=(t-r).toString()),n}$s(e,t,n=!1){let i=[[`X-Braze-Api-Key`,this.rn]],a=this.Ka(t);i.push([`X-Braze-Last-Req-Ms-Ago`,a]);let o=S.Z.Ua(this.u,t).toString();i.push([`X-Braze-Req-Attempt`,o]);let s=!1;if(e.respond_with!=null&&e.respond_with.triggers&&(i.push([`X-Braze-TriggersRequest`,`true`]),s=!0),e.respond_with!=null&&e.respond_with.feed&&(i.push([`X-Braze-FeedRequest`,`true`]),s=!0),t===S.Z.Ps.Bs){i.push([`X-Braze-ContentCardsRequest`,`true`]);let e=this.u.j(r.I.C.As);e&&n||(e=0,this.u.k(r.I.C.As,e)),i.push([`BRAZE-SYNC-RETRY-COUNT`,e.toString()]),s=!0}if(t===S.Z.Ps.bi&&(i.push([`X-Braze-FeatureFlagsRequest`,`true`]),s=!0),s&&i.push([`X-Braze-DataRequest`,`true`]),this.zo.Fh()){let e=this.zo.kh();e!=null&&i.push([`X-Braze-Auth-Signature`,e])}return i}Ga(e,t,n,r){window.setTimeout((()=>{o.Z.info(`Retrying rate limited ${this.$h(r)}SDK request.`),this.Xs(t,n,r)}),e)}Xs(e,t,n,i){if(!this.Ha(n))return o.Z.info(`${this.$h(n)}SDK request being rate limited.`),void(typeof i==`function`&&i());let a=this.Wa();if(!a.Ya)return o.Z.info(`${this.$h(n)}SDK request being rate limited. Request will be retried in ${Math.trunc(a.Ja/1e3)} seconds.`),void this.Ga(a.Ja,e,t,n);this.u.k(r.I.C.Qa,new Date().valueOf());let s=e.device;s&&s.os_version instanceof Promise?s.os_version.then((n=>{e.device.os_version=n,t(a.Va)})):t(a.Va)}Za(e){var t;(t=this.u)==null||t.k(r.I.C.au,e)}du(e,t){let n=this.fu();n??={},n[e]=t,this.u.k(r.I.C.vu,n)}Ru(){return this.u?.j(r.I.C.au)}fu(){return this.u?.j(r.I.C.vu)}gu(e,t,n,r,i=``){let a;if(i){let e=this.fu();a=e==null||isNaN(e[i])?t:e[i]}else a=this.Ru(),(a==null||isNaN(a))&&(a=t);let o=(e-r)/1e3;return a=Math.min(a+o/n,t),a}pu(e,t){return Math.max(0,(1-e)*t*1e3)}bu(e,t=``){let n={Ya:!0,Va:-1,Ja:0};if(e??=!0,!e&&!t)return n;let i,a,o=null;if(e)o=this.u?.j(r.I.C.Qa);else{let e=S.Z.qu(this.u);if(e==null||e[t]==null)return n;o=e[t]}if(o==null||isNaN(o)||(e?(i=this.yt?.Au()||-1,a=this.yt?.Du()||-1):(i=this.yt?.Tu(t)||-1,a=this.yt?.ku(t)||-1),i===-1||a===-1))return n;let s=new Date().valueOf(),c=this.gu(s,i,a,o,t);return c<1?(n.Ya=!1,n.Ja=this.pu(c,a),n):(c=Math.trunc(c)-1,n.Va=c,e?this.Za(c):this.du(t,c),n)}Wa(){return this.bu(!0)}Ha(e){let t=this.bu(!1,e);return!(t&&!t.Ya)}Os(){this.zo.Os()}Hs(){return this.Go}addSdkMetadata(e){for(let t of e)this.Hh.indexOf(t)===-1&&this.Hh.push(t)}}var E=n(1843),D=n(6504),O=n(4673),k=n(4556);class A{constructor(e,t,n,r,a,o,s,c,l,u){this.rn=e,this.baseUrl=t,this.ri=n,this.on=r,this.wt=a,this.yt=o,this.u=s,this.wu=c,this.zo=l,this.qt=u,this.rn=e,this.baseUrl=t,this.yu=0,this.fE=s.dE()||0,this.ju=null,this.ri=n,this.on=r,this.wt=a,this.yt=o,this.u=s,this.zo=l,this.qt=u,this.wu=c,this.Su=new i.Z,this.$u=null,this.Cu=50,this.Fu=!1}Lu(e,t){return!e&&!t&&this.zo.Gh()>=this.Cu}Mu(e){let t=this.ri.Gl();if(e.length>0){let n=this.wt.getUserId();for(let r of e){let e=!r.userId&&!n||r.userId===n;r.type===x.G.ql&&e&&(t=!0)}}return t}Pu(e=!1,t=!1,n=!0,i,a,s,c=!1,l=!1){n&&this.xu();let u=this.u.AE(),d=this.u.OE(),f=!1,p=(e,t,o=-1)=>{let c=!1,l=new Date().valueOf();S.Z._s(this.u,S.Z.Ps.$a,l),o!==-1&&t.push([`X-Braze-Req-Tokens-Remaining`,o.toString()]),E.Z.Gs({url:this.baseUrl+`/data/`,data:e,headers:t,L:n=>{e.respond_with!=null&&e.respond_with.triggers&&(this.yu=Math.max(this.yu-1,0)),this.qt.Ks(e,n,t)?(this.zo.Os(),this.yt.al(n),e.respond_with!=null&&e.respond_with.user_id!=this.wt.getUserId()||(e.device!=null&&this.u.k(r.I.C.Ca,e.device),e.sdk_metadata!=null&&(this.u.k(r.I.C.Yh,e.sdk_metadata),this.u.k(r.I.C.Jh,this.ri.Si())),this.wu(n),S.Z.Qs(this.u,S.Z.Ps.$a,1),typeof i==`function`&&i())):n.auth_error&&(c=!0)},error:()=>{e.respond_with!=null&&e.respond_with.triggers&&(this.yu=Math.max(this.yu-1,0)),this.qt.Qh(e.events,e.attributes),typeof a==`function`&&a()},Ws:e=>{if(typeof s==`function`&&s(e),n&&!f){if(e&&!c)this.Iu();else{S.Z.Ys(this.u,S.Z.Ps.$a);let e=this.ju;(e==null||e<1e3*this.fE)&&(e=1e3*this.fE),this.Iu(Math.min(3e5,(0,D.R)(1e3*this.fE,3*e)))}f=!0}}})},m=this.Mu(u),h=t||m;if(this.Lu(c,m))return void o.Z.info(`Declining to flush data due to 50 consecutive authentication failures`);if(n&&!this.qt.Na(u,d,e,h))return this.Iu(),void(typeof s==`function`&&s(!0));let g=this.qt.Xa(e,h,u,d,l);h&&this.yu++;let _=!1;if(g)for(let e of g)this.qt.Xs(e.requestData,(t=>p(e.requestData,e.headers,t)),S.Z.Ps.$a,a),_=!0;this.zo.Fh()&&n&&!_?this.Iu():m&&(o.Z.info(`Invoking new session subscriptions`),this.Su.Dt())}Nu(){return this.yu>0}Iu(e=1e3*this.fE){this.Fu||(this.xu(),this.$u=window.setTimeout((()=>{if(document.hidden){let e=`visibilitychange`,t=()=>{document.hidden||(document.removeEventListener(e,t,!1),this.Pu())};document.addEventListener(e,t,!1)}else this.Pu()}),e),this.ju=e)}xu(){this.$u!=null&&(clearTimeout(this.$u),this.$u=null)}initialize(){this.Fu=!1,this.Iu()}destroy(){this.Su.removeAllSubscriptions(),this.zo.yh(),this.xu(),this.Fu=!0,this.Pu(void 0,void 0,!1,void 0,void 0,void 0,void 0,!0),this.$u=null}mr(e){return this.Su.It(e)}openSession(){let e=this.ri.Si()!==this.ri.wo();e&&(this.u.cE(r.I.iu.Uo),this.u.cE(r.I.iu.su)),this.Pu(void 0,!1,void 0,(()=>{this.u.ti(r.I.C.vi)})),this.Mn(),e&&Promise.resolve().then(n.bind(n,4127)).then((e=>{if(this.Fu)return;let t=e.default.m();if(t!=null&&(k.Z.isPushPermissionGranted()||k.Z.isPushBlocked())){let e=()=>{t.mn()?o.Z.info(`Push token maintenance is disabled, not refreshing token for backend.`):t.subscribe()},n=(t,n)=>{n&&e()},i=()=>{let t=this.u.j(r.I.C.In);(t==null||t)&&e()},s=a.Z.Yt.Qt;new a.Z(s,o.Z).jr(s.ss.cu,n,i)}}))}Ou(){this.u.ti(r.I.C.gi),this.u.ti(r.I.C.ws),this.u.ti(r.I.C.Cr)}changeUser(e,t,n){let i=this.wt.getUserId();if(i!==e){this.ri.yl(),this.Ou(),i!=null&&this.Pu(void 0,!1,void 0,void 0,void 0),this.wt.ou(e),n?this.zo.setSdkAuthenticationSignature(n):this.zo.xh();for(let e=0;e<t.length;e++)t[e].changeUser(i==null);i!=null&&this.u.ti(r.I.C.J),this.u.ti(r.I.C.Ca),this.u.ti(r.I.C.nE),this.u.ti(r.I.C._E),this.openSession(),o.Z.info(`Changed user to "`+e+`".`)}else{let t=`Doing nothing.`;n&&this.zo.kh()!==n&&(this.zo.setSdkAuthenticationSignature(n),t=`Updated SDK authentication signature`),o.Z.info(`Current user is already ${e}. ${t}`)}}requestImmediateDataFlush(e){this.xu(),this.ri.wo(),this.Pu(void 0,void 0,void 0,void 0,(()=>{o.Z.error(`Failed to flush data, request will be retried automatically.`)}),e,!0)}requestFeedRefresh(){this.ri.wo(),this.Pu(!0)}$r(e,t){this.ri.wo(),o.Z.info(`Requesting explicit trigger refresh.`),this.Pu(void 0,!0,void 0,e,t)}Cn(e,t){let n=x.G.zu,i={a:e,l:t},a=b.Z.q(n,i);return a&&(o.Z.info(`Logged alias ${e} with label ${t}`),this.u.k(r.I.C._E,i)),a}Fn(e,t,n){if(this.yt.hu(t))return o.Z.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new O.Z;let r={key:t,value:n},i=b.Z.q(e,r);if(i){let e=typeof n==`object`?JSON.stringify(n,null,2):n;o.Z.info(`Logged custom attribute: ${t} with value: ${e}`)}return i}setLastKnownLocation(e,t,n,r,i,a){let s={latitude:t,longitude:n};r!=null&&(s.altitude=r),i!=null&&(s.ll_accuracy=i),a!=null&&(s.alt_accuracy=a);let c=b.Z.q(x.G.Uu,s,e||void 0);return c&&o.Z.info(`Set user last known location as ${JSON.stringify(s,null,2)}`),c}kr(e,t){let n=this.ri.wo();return new v.Z(this.wt.getUserId(),x.G._u,e,n,{cid:t})}Bu(e,t){return new a.Z(e,t)}Mn(){let e=a.Z.Yt.Qt;this.Bu(e,o.Z).setItem(e.ss.$a,1,{baseUrl:this.baseUrl,data:{api_key:this.rn,device_id:this.on.ce().id},userId:this.wt.getUserId(),sdkAuthEnabled:this.zo.Fh()})}yr(e){for(let t of e)if(t.api_key===this.rn)this.qt.Qh(t.events,t.attributes);else{let e=a.Z.Yt.Qt;new a.Z(e,o.Z).setItem(e.ss.wr,p.Z.W(),t)}}Gn(e,t,n){if(this.yt.hu(e))return o.Z.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new O.Z;let r,i;return t===null&&n===null?(r=x.G.Eu,i={key:e}):(r=x.G.Ju,i={key:e,latitude:t,longitude:n}),b.Z.q(r,i)}Hn(e,t){let n={group_id:e,status:t};return b.Z.q(x.G.Ku,n)}}class j{constructor(e=0,t=[],n=[],r=[],i=null,a=null,o={enabled:!1},s={enabled:!1,refresh_rate_limit:void 0},c={enabled:!0,capacity:C.Up,refill_rate:C.Y$,endpoint_overrides:{}}){this.hl=e,this.gl=t,this.fl=n,this.bl=r,this.Rl=i,this.cl=a,this.ml=o,this.hi=s,this.ol=c,this.hl=e,this.gl=t,this.fl=n,this.bl=r,this.Rl=i,this.cl=a,this.ml=o,this.hi=s,this.ol=c}Y(){return{s:`5.3.1`,l:this.hl,e:this.gl,a:this.fl,p:this.bl,m:this.Rl,v:this.cl,c:this.ml,f:this.hi,grl:this.ol}}static qn(e){let t=e.l;return e.s!==`5.3.1`&&(t=0),new j(t,e.e,e.a,e.p,e.m,e.v,e.c,e.f,e.grl)}}class M{constructor(e){this.u=e,this.u=e,this.tl=new i.Z,this.el=new i.Z,this.il=new i.Z,this.sl=null,this.rl=null}ll(){if(this.rl==null){let e=this.u.j(r.I.C.ul);this.rl=e==null?new j:j.qn(e)}return this.rl}ii(){return this.ll().hl}al(e){if(e!=null&&e.config!=null){let t=e.config;if(t.time>this.ll().hl){let e=new j(t.time,t.events_blacklist,t.attributes_blacklist,t.purchases_blacklist,t.messaging_session_timeout,t.vapid_public_key,t.content_cards,t.feature_flags,(e=>e??this.ll().ol)(t.global_request_rate_limit)),n=!1;e.cl!=null&&this.Wn()!==e.cl&&(n=!0);let i=!1;e.ml.enabled!=null&&this.si()!==e.ml.enabled&&(i=!0);let a=!1;e.hi.enabled!=null&&this.ci()!==e.hi.enabled&&(a=!0),this.rl=e,this.u.k(r.I.C.ul,e.Y()),n&&this.tl.Dt(),i&&this.el.Dt(),a&&this.il.Dt()}}}_n(e){let t=this.tl.It(e);return this.sl&&this.tl.removeSubscription(this.sl),this.sl=t,t}Is(e){return this.el.It(e)}ji(e){return this.il.It(e)}me(e){return this.ll().gl.indexOf(e)!==-1}hu(e){return this.ll().fl.indexOf(e)!==-1}Dr(e){return this.ll().bl.indexOf(e)!==-1}dl(){return this.ll().Rl}Wn(){return this.ll().cl}si(){return this.ll().ml.enabled||!1}Cl(){let e=this.ll().ol;return!(!e||e.enabled==null)&&e.enabled}Au(){if(!this.Cl())return-1;let e=this.ll().ol;return e.capacity==null||e.capacity<10?-1:e.capacity}Du(){if(!this.Cl())return-1;let e=this.ll().ol;return e.refill_rate==null||e.refill_rate<=0?-1:e.refill_rate}vl(e){let t=this.ll().ol.endpoint_overrides;return t==null?null:t[e]}Tu(e){let t=this.vl(e);return t==null||isNaN(t.capacity)||t.capacity<=0?-1:t.capacity}ku(e){let t=this.vl(e);return t==null||isNaN(t.refill_rate)||t.refill_rate<=0?-1:t.refill_rate}ci(){return this.ll().hi.enabled&&this.Ri()==null?(b.Z.q(x.G.qs,{e:`Missing feature flag refresh_rate_limit.`}),!1):this.ll().hi.enabled||!1}Ri(){return this.ll().hi.refresh_rate_limit}}class N{constructor(e,t,n,r){this.u=e,this.wt=t,this.yt=n,this.wl=r,this.u=e,this.wt=t,this.yt=n,this.Sl=1e3,(r==null||isNaN(r))&&(r=1800),r<this.Sl/1e3&&(o.Z.info(`Specified session timeout of `+r+`s is too small, using the minimum session timeout of `+this.Sl/1e3+`s instead.`),r=this.Sl/1e3),this.wl=r}jl(e,t){return new v.Z(this.wt.getUserId(),x.G.xl,e,t.eu,{d:(0,y.FX)(e-t.Dl)})}Si(){let e=this.u.tu(r.I.iu.El);return e==null?null:e.eu}Gl(){let e=new Date().valueOf(),t=this.yt.dl(),n=this.u.j(r.I.C.Nl);if(n!=null&&t==null)return!1;let i=!1;return n==null?i=!0:t!=null&&(i=e-n>1e3*t),i&&this.u.k(r.I.C.Nl,e),i}zl(e,t){return t==null||t.Hl==null||!(e-t.Dl<this.Sl)&&t.Hl<e}wo(){let e=new Date().valueOf(),t=e+1e3*this.wl,n=this.u.tu(r.I.iu.El);if(this.zl(e,n)){let i=`Generating session start event with time `+e;if(n!=null){let e=n.Wl;e-n.Dl<this.Sl&&(e=n.Dl+this.Sl),this.u.kl(this.jl(e,n)),i+=` (old session ended `+e+`)`}i+=`. Will expire `+t.valueOf(),o.Z.info(i);let a=new f.Z(p.Z.W(),t);return this.u.kl(new v.Z(this.wt.getUserId(),x.G.ql,e,a.eu)),this.u.uu(r.I.iu.El,a),this.u.j(r.I.C.Nl)??this.u.k(r.I.C.Nl,e),a.eu}if(n!=null)return n.Wl=e,n.Hl=t,this.u.uu(r.I.iu.El,n),n.eu}yl(){let e=this.u.tu(r.I.iu.El);e!=null&&(this.u.Al(r.I.iu.El),this.u.kl(this.jl(new Date().valueOf(),e)))}}let P={Qo:function(e,t=!1){let n=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(r.I.C.ec,`true`),localStorage.getItem(r.I.C.ec)&&(localStorage.removeItem(r.I.C.ec),n=!0)}catch(e){if(!(e instanceof Error&&(e.name===`QuotaExceededError`||e.name===`NS_ERROR_DOM_QUOTA_REACHED`)&&localStorage.length>0))throw e;n=!0}}catch{o.Z.info(`Local Storage not supported!`)}let i=P.oc(),a=new r.Z.tc(e,i&&!t,n),s;return s=n?new r.Z.rc(e):new r.Z.ac,new r.Z(a,s)},oc:function(){return navigator.cookieEnabled||`cookie`in document&&(document.cookie.length>0||(document.cookie=`test`).indexOf.call(document.cookie,`test`)>-1)}},F=P;var I=n(9342),L=n(8548),R=n(3552),z=n(7615);class B{constructor(e,t){this.yt=e,this.u=t,this.yt=e,this.u=t}getUserId(){let e=this.u.tu(r.I.iu.su);if(e==null)return null;let t=e.eu,n=(0,L.E)(t);if(n>z.Z.lr){for(;n>z.Z.lr;)t=t.slice(0,t.length-1),n=(0,L.E)(t);e.eu=t,this.u.uu(r.I.iu.su,e)}return t}ou(e){let t=this.getUserId()==null;this.u.uu(r.I.iu.su,new f.Z(e)),t&&this.u.ru(e)}setCustomUserAttribute(e,t){if(this.yt.hu(e))return o.Z.info(`Custom Attribute "`+e+`" is blocklisted, ignoring.`),!1;let n={};return n[e]=t,this.nu(z.Z.lu,n,!0)}nu(e,t,n=!1,r=!1){let i=this.u.mu(this.getUserId(),e,t),a=``,s=e,c=t;return n&&(a=` custom`,typeof t==`object`&&(s=Object.keys(t)[0],c=t[s],typeof c==`object`&&(c=JSON.stringify(c,null,2)))),!r&&i&&o.Z.info(`Logged${a} attribute ${s} with value ${c}`),i}kn(e,t,n,i,s){this.nu(`push_token`,e,!1,!0),this.nu(`custom_push_public_key`,n,!1,!0),this.nu(`custom_push_user_auth`,i,!1,!0),this.nu(`custom_push_vapid_public_key`,s,!1,!0);let c=a.Z.Yt.Qt,l=new a.Z(c,o.Z),u=new R.Z(e,t,n,i,s);this.u.k(r.I.C.In,u.Y()),l.setItem(c.ss.cu,c.ie,!0)}Dn(e){if(this.nu(`push_token`,null,!1,!0),this.nu(`custom_push_public_key`,null,!1,!0),this.nu(`custom_push_user_auth`,null,!1,!0),this.nu(`custom_push_vapid_public_key`,null,!1,!0),e){let e=a.Z.Yt.Qt,t=new a.Z(e,o.Z);this.u.k(r.I.C.In,!1),t.setItem(e.ss.cu,e.ie,!1)}}}var V=n(1148),H=n(5319);let ee={Eo:`allowCrawlerActivity`,_o:`baseUrl`,Io:`noCookies`,Ao:`devicePropertyAllowlist`,_a:`disablePushTokenMaintenance`,So:`enableLogging`,No:`enableSdkAuthentication`,Ma:`manageServiceWorkerExternally`,Oo:`minimumIntervalBetweenTriggerActionsInSeconds`,Po:`sessionTimeoutInSeconds`,Ro:`appVersion`,Lo:`appVersionNumber`,wa:`serviceWorkerLocation`,ya:`safariWebsitePushId`,zn:`localization`,bo:`contentSecurityNonce`,Do:`allowUserSuppliedJavascript`,jo:`inAppMessageZIndex`,ho:`openInAppMessagesInNewTab`,en:`openNewsFeedCardsInNewTab`,Lh:`requireExplicitInAppMessageDismissal`,Mo:`doNotLoadFontAwesome`,Uo:`deviceId`,Bo:`sdkFlavor`,tn:`openCardsInNewTab`},U={Eo:`allowCrawlerActivity`,_o:`baseUrl`,Io:`noCookies`,Ao:`devicePropertyAllowlist`,_a:`disablePushTokenMaintenance`,So:`enableLogging`,No:`enableSdkAuthentication`,Ma:`manageServiceWorkerExternally`,Oo:`minimumIntervalBetweenTriggerActionsInSeconds`,Po:`sessionTimeoutInSeconds`,Ro:`appVersion`,Lo:`appVersionNumber`,wa:`serviceWorkerLocation`,ya:`safariWebsitePushId`,zn:`localization`,bo:`contentSecurityNonce`,Do:`allowUserSuppliedJavascript`,jo:`inAppMessageZIndex`,ho:`openInAppMessagesInNewTab`,tn:`openCardsInNewTab`,en:`openNewsFeedCardsInNewTab`,Lh:`requireExplicitInAppMessageDismissal`,Mo:`doNotLoadFontAwesome`,Uo:`deviceId`,Bo:`sdkFlavor`},te=new class{constructor(){this.rn=``,this.Wo=``,this.Vo=void 0,this.zo=null,this.on=null,this.qt=null,this.zi=null,this.yt=null,this.ri=null,this.u=null,this.wt=null,this.Go=``,this.Ko=!1,this.$o=!1,this.qo=new i.Z,this.Jo=new i.Z,this.options={},this.Yo=[],this.Ho=[],this._e=[],this.Wo=`5.3.1`}Xo(e){this.qo.It(e)}Sh(e){this.Jo.It(e)}initialize(e,t){if(this.so())return o.Z.info(`Braze has already been initialized with an API key.`),!0;this.options=t||{};let a=this.nn(U.So),c=(0,V.L)(H.SD.Un());if(c&&c.brazeLogging===`true`&&(a=!0),o.Z.init(a),o.Z.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),e==null||e===``||typeof e!=`string`)return o.Z.error(`Braze requires a valid API key to be initialized.`),!1;this.rn=e;let u=this.nn(U._o);if(u==null||u===``||typeof u!=`string`)return o.Z.error(`Braze requires a valid baseUrl to be initialized.`),!1;!1===/^https?:/.test(u)&&(u=`https://${u}`);let p=u;if(u=document.createElement(`a`),u.href=p,u.pathname===`/`&&(u=`${u}api/v3`),this.Go=u.toString(),l.Z.Zo&&!this.nn(U.Eo))return o.Z.info(`Ignoring activity from crawler bot `+navigator.userAgent),this.$o=!0,!1;let h=this.nn(U.Io)||!1;if(this.u=F.Qo(e,h),h&&this.u.Wh(e),new r.Z.ee(null,!0).br(r.I.se))return o.Z.info(`Ignoring all activity due to previous opt out`),this.$o=!0,!1;for(let e of(0,m.XP)(this.options))(0,m.VO)(ee).indexOf(e)===-1&&o.Z.warn(`Ignoring unknown initialization option '${e}'.`);let _=[`mparticle`,`wordpress`,`tealium`];if(this.nn(U.Bo)!=null){let e=this.nn(U.Bo);_.indexOf(e)===-1?o.Z.error(`Invalid sdk flavor passed: `+e):this.Vo=e}let v=this.nn(ee.Ao);if(v!=null)if((0,m.kJ)(v)){let e=[];for(let t=0;t<v.length;t++)(0,m.fk)(d,v[t],`devicePropertyAllowlist contained an invalid value.`,`DeviceProperties`)&&e.push(v[t]);v=e}else o.Z.error(`devicePropertyAllowlist must be an array. Defaulting to all properties.`),v=null;let y=this.nn(U.Uo);if(y){let e=new f.Z(y);this.u.uu(r.I.iu.Uo,e)}this.on=new g(this.u,v),this.yt=new M(this.u),this.wt=new B(this.yt,this.u),this.ri=new N(this.u,this.wt,this.yt,this.nn(U.Po));let b=new i.Z;return this.zo=new s(this.u,this.nn(U.No),b),this.$t(b),this.qt=new T(this.on,this.u,this.zo,this.wt,this.ri,this.yt,this.rn,this.Go,this.Wo,this.Vo||``,this.nn(U.Ro),this.nn(U.Lo)),this.zi=new A(this.rn,this.Go,this.ri,this.on,this.wt,this.yt,this.u,(e=>{if(this.so())for(let t of this.gr())t.Ns(e)}),this.zo,this.qt),this.zi.initialize(),h||this.u.Vh(),o.Z.info(`Initialized for the Braze backend at "${this.nn(U._o)}" with API key "${this.rn}".`),I.n.o(),this.yt.ji((()=>{var e;this.Ko&&(e=this.yt)!=null&&e.ci()&&n.e(787).then(n.bind(n,9787)).then((e=>{this.Ko&&(0,e.default)()}))})),this.zi.mr((()=>{var e;this.Ko&&(e=this.yt)!=null&&e.ci()&&n.e(787).then(n.bind(n,9787)).then((e=>{this.Ko&&(0,e.default)(void 0,void 0,!0)}))})),this.qo.Dt(this.options),this.Ko=!0,!0}destroy(e){if(o.Z.destroy(),this.so()){this.Jo.Dt(),this.Jo.removeAllSubscriptions();for(let e of this.Yo)e.destroy();this.Yo=[];for(let e of this.Ho)e.clearData(!1);this.Ho=[],this.removeAllSubscriptions(),this._e=[],this.zi!=null&&this.zi.destroy(),this.zi=null,this.zo=null,this.on=null,this.qt=null,this.yt=null,this.ri=null,this.wt=null,this.options={},this.Vo=void 0,this.Ko=!1,this.$o=!1,e&&(this.u=null)}}X(){return!(this.Kh()||!this.so()&&(console.warn(C.Go),1))}ba(){return this.rn}Sr(){return this.zo}Hs(){return this.Go}te(){return this.on}nr(){return this.qt}nn(e){return this.options[e]}gr(){return this.Ho}cr(){return this.zi}ir(){return this.yt}zr(){return this.ri}l(){return this.u}pr(){if(this.wt&&this.zi)return new z.Z(this.wt,this.zi)}er(){return this.wt}tr(){return!0===this.nn(U.Do)}g(e){let t=!1;for(let n of this.Yo)n===e&&(t=!0);t||this.Yo.push(e)}ar(e){let t=!1;for(let n of this.Ho)n.constructor===e.constructor&&(t=!0);e instanceof c.Z&&!t&&this.Ho.push(e)}$t(e){e instanceof i.Z&&this._e.push(e)}removeAllSubscriptions(){if(this.X())for(let e of this._e)e.removeAllSubscriptions()}removeSubscription(e){if(this.X())for(let t of this._e)t.removeSubscription(e)}oe(e){this.$o=e}so(){return this.Ko}Kh(){return this.$o}Ds(){return this.Wo}}},5966:(e,t,n)=>{n.d(t,{I:()=>d,Z:()=>f});var r=n(7559),i=n(2308),a=n(2893),o=n(2730),s=n(335),c=n(7615),l=n(3695),u=n(8031);let d={iu:{su:`ab.storage.userId`,Uo:`ab.storage.deviceId`,El:`ab.storage.sessionId`},C:{ec:`ab.test`,tE:`ab.storage.events`,eE:`ab.storage.attributes`,sE:`ab.storage.attributes.anonymous_user`,Ca:`ab.storage.device`,Yh:`ab.storage.sdk_metadata`,Jh:`ab.storage.session_id_for_cached_metadata`,In:`ab.storage.pushToken`,Ui:`ab.storage.newsFeed`,ki:`ab.storage.lastNewsFeedRefresh`,J:`ab.storage.cardImpressions`,ul:`ab.storage.serverConfig`,rE:`ab.storage.triggers`,oE:`ab.storage.triggers.ts`,Nl:`ab.storage.messagingSessionStart`,ws:`ab.storage.cc`,gs:`ab.storage.ccLastFullSync`,ys:`ab.storage.ccLastCardUpdated`,nE:`ab.storage.ccRateLimitCurrentTokenCount`,au:`ab.storage.globalRateLimitCurrentTokenCount`,vu:`ab.storage.dynamicRateLimitCurrentTokenCount`,v:`ab.storage.ccClicks`,H:`ab.storage.ccImpressions`,A:`ab.storage.ccDismissals`,aE:`ab.storage.lastDisplayedTriggerTimesById`,iE:`ab.storage.lastDisplayedTriggerTime`,EE:`ab.storage.triggerFireInstancesById`,wh:`ab.storage.signature`,As:`ab.storage.brazeSyncRetryCount`,Ss:`ab.storage.sdkVersion`,gi:`ab.storage.ff`,vi:`ab.storage.ffImpressions`,xi:`ab.storage.ffLastRefreshAt`,Di:`ab.storage.ff.sessionId`,lE:`ab.storage.lastReqToEndpoint`,SE:`ab.storage.requestAttempts`,Cr:`ab.storage.deferredIam`,Qa:`ab.storage.lastSdkReq`,_E:`ab.storage.alias`},se:`ab.optOut`};class f{constructor(e,t){this.uE=e,this.TE=t,this.uE=e,this.TE=t}Wh(e){let t=(0,a.XP)(d.iu),n=new f.ee(e);for(let e of t)n.remove(d.iu[e])}uu(e,t){let n=null;t!=null&&t instanceof i.Z&&(n=t.Y()),this.uE.store(e,n)}cE(e){let t=this.tu(e);t!=null&&(t.Wl=new Date().valueOf(),this.uu(e,t))}tu(e){let t=this.uE.br(e),n=(e=>{let t;try{t=JSON.parse(e)}catch{t=null}return t})(t),r;if(n)r=i.Z.qn(n)||null,r&&this.uu(e,r);else{let n=i.Z.hE(t);r=i.Z.qn(n)||null,n!==t&&r&&this.uu(e,r)}return r}Al(e){this.uE.remove(e)}Vh(){let e=(0,a.XP)(d.iu),t;for(let n of e)t=this.tu(d.iu[n]),t!=null&&this.uu(d.iu[n],t)}xo(e){let t;if(e==null||e.length===0)return!1;t=(0,a.kJ)(e)?e:[e];let n=this.TE.br(d.C.tE);n!=null&&(0,a.kJ)(n)||(n=[]);for(let e=0;e<t.length;e++)n.push(t[e].Y());return this.TE.store(d.C.tE,n)}kl(e){return e!=null&&this.xo([e])}AE(){let e=this.TE.br(d.C.tE);this.TE.remove(d.C.tE),e??=[];let t=[],n=!1,i=null;if((0,a.kJ)(e))for(let n=0;n<e.length;n++)r.Z.RE(e[n])?t.push(r.Z.qn(e[n])):i=n;else n=!0;if(n||i!=null){let a=`Stored events could not be deserialized as Events`;n&&(a+=`, was `+Object.prototype.toString.call(e)+` not an array`),i!=null&&(a+=`, value at index `+i+` does not look like an event`),a+=`, serialized values were of type `+typeof e+`: `+JSON.stringify(e),t.push(new r.Z(null,o.G.qs,new Date().valueOf(),null,{e:a}))}return t}k(e,t){return!!(0,a.fk)(d.C,e,`StorageManager cannot store object.`,`STORAGE_KEYS.OBJECTS`)&&this.TE.store(e,t)}j(e){return!!(0,a.fk)(d.C,e,`StorageManager cannot retrieve object.`,`STORAGE_KEYS.OBJECTS`)&&this.TE.br(e)}ti(e){return!!(0,a.fk)(d.C,e,`StorageManager cannot remove object.`,`STORAGE_KEYS.OBJECTS`)&&(this.TE.remove(e),!0)}clearData(){let e=(0,a.XP)(d.iu),t=(0,a.XP)(d.C);for(let t=0;t<e.length;t++){let n=e[t];this.uE.remove(d.iu[n])}for(let e=0;e<t.length;e++){let n=t[e];this.TE.remove(d.C[n])}}gE(e){return e||d.C.sE}La(e){let t=this.TE.br(d.C.eE);t??={};let n=this.gE(e[c.Z.Yn]),r=t[n];for(let i in e)i!==c.Z.Yn&&(t[n]==null||r&&r[i]==null)&&this.mu(e[c.Z.Yn],i,e[i])}mu(e,t,n){let r=this.TE.br(d.C.eE);r??={};let i=this.gE(e),a=r[i];if(a??(a={},e!=null&&(a[c.Z.Yn]=e)),t===c.Z.lu){a[t]??(a[t]={});for(let e in n)a[t][e]=n[e]}else a[t]=n;return r[i]=a,this.TE.store(d.C.eE,r)}OE(){let e=this.TE.br(d.C.eE);this.TE.remove(d.C.eE);let t=[];for(let n in e)e[n]!=null&&t.push(e[n]);return t}ru(e){let t=this.TE.br(d.C.eE);if(t!=null){let n=this.gE(null),r=t[n];r!=null&&(t[n]=void 0,this.TE.store(d.C.eE,t),r[c.Z.Yn]=e,this.La(r))}let n=this.tu(d.iu.El),r=null;n!=null&&(r=n.eu);let i=this.AE();if(i!=null)for(let t=0;t<i.length;t++){let n=i[t];n.userId==null&&n.sessionId==r&&(n.userId=e),this.kl(n)}}dE(){return this.TE.fE}}f.rc=class{constructor(e){this.rn=e,this.rn=e,this.fE=l.Z.IE()?3:10}bE(e){return e+`.`+this.rn}store(e,t){let n={v:t};try{return localStorage.setItem(this.bE(e),JSON.stringify(n)),!0}catch(e){return s.Z.info(`Storage failure: `+(0,u.e)(e)),!1}}br(e){try{let t=null,n=localStorage.getItem(this.bE(e));return n!=null&&(t=JSON.parse(n)),t==null?null:t.v}catch(e){return s.Z.info(`Storage retrieval failure: `+(0,u.e)(e)),null}}remove(e){try{localStorage.removeItem(this.bE(e))}catch(e){return s.Z.info(`Storage removal failure: `+(0,u.e)(e)),!1}}},f.ac=class{constructor(){this.mE={},this.KE=5242880,this.fE=3}store(e,t){let n={value:t},r=this.YE(t);return r>this.KE?(s.Z.info(`Storage failure: object is ≈`+r+` bytes which is greater than the max of `+this.KE),!1):(this.mE[e]=n,!0)}YE(e){let t=[],n=[e],r=0;for(;n.length;){let e=n.pop();if(typeof e==`boolean`)r+=4;else if(typeof e==`string`)r+=2*e.length;else if(typeof e==`number`)r+=8;else if(typeof e==`object`&&t.indexOf(e)===-1){let r,i;t.push(e);for(let t in e)i=e,r=t,n.push(i[r])}}return r}br(e){let t=this.mE[e];return t==null?null:t.value}remove(e){this.mE[e]=null}},f.ee=class{constructor(e,t){this.rn=e,this.NE=t,this.rn=e,this.CE=this.GE(),this.DE=576e3,this.NE=!!t}bE(e){return this.rn==null?e:e+`.`+this.rn}GE(){let e=0,t=document.location.hostname,n=t.split(`.`),r=`ab._gd`;for(;e<n.length-1&&document.cookie.indexOf(r+`=ab._gd`)===-1;)e++,t=`.`+n.slice(-1-e).join(`.`),document.cookie=r+`=ab._gd;domain=`+t+`;`;return document.cookie=r+`=;expires=`+new Date(0).toUTCString()+`;domain=`+t+`;`,t}ne(){let e=new Date;return e.setTime(e.getTime()+60*this.DE*1e3),e.getFullYear()}ME(){let e=(0,a.VO)(d.iu),t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n];for(;r.charAt(0)===` `;)r=r.substring(1);let i=!1;for(let t=0;t<e.length;t++)if(r.indexOf(e[t])===0){i=!0;break}if(i){let e=r.split(`=`)[0];e.indexOf(`.`+this.rn)===-1&&this.pE(e)}}}store(e,t){this.ME();let n=new Date;n.setTime(n.getTime()+60*this.DE*1e3);let r=`expires=`+n.toUTCString(),i=`domain=`+this.CE,a;a=this.NE?t:encodeURIComponent(t);let o=this.bE(e)+`=`+a+`;`+r+`;`+i+`;path=/`;return o.length>=4093?(s.Z.info(`Storage failure: string is `+o.length+` chars which is too large to store as a cookie.`),!1):(document.cookie=o,!0)}br(e){let t=[],n=this.bE(e)+`=`,r=document.cookie.split(`;`);for(let i=0;i<r.length;i++){let a=r[i];for(;a.charAt(0)===` `;)a=a.substring(1);if(a.indexOf(n)===0)try{let e;e=this.NE?a.substring(n.length,a.length):decodeURIComponent(a.substring(n.length,a.length)),t.push(e)}catch(t){return s.Z.info(`Storage retrieval failure: `+(0,u.e)(t)),this.remove(e),null}}return t.length>0?t[t.length-1]:null}remove(e){this.pE(this.bE(e))}pE(e){let t=e+`=;expires=`+new Date(0).toUTCString();document.cookie=t,document.cookie=t+`;path=/`;let n=t+`;domain=`+this.CE;document.cookie=n,document.cookie=n+`;path=/`}},f.tc=class{constructor(e,t,n){this.rn=e,this.vE=[],t&&this.vE.push(new f.ee(e)),n&&this.vE.push(new f.rc(e)),this.vE.push(new f.ac)}store(e,t){let n=!0;for(let r=0;r<this.vE.length;r++)n=this.vE[r].store(e,t)&&n;return n}br(e){for(let t=0;t<this.vE.length;t++){let n=this.vE[t].br(e);if(n!=null)return n}return null}remove(e){new f.ee(this.rn).remove(e);for(let t=0;t<this.vE.length;t++)this.vE[t].remove(e)}}},4663:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(7070);class i{constructor(){this._e={}}It(e){if(typeof e!=`function`)return null;let t=r.Z.W();return this._e[t]=e,t}removeSubscription(e){delete this._e[e]}removeAllSubscriptions(){this._e={}}ic(){return Object.keys(this._e).length}Dt(e){let t=[];for(let n in this._e){let r=this._e[n];t.push(r(e))}return t}}},8982:(e,t,n)=>{n.d(t,{q:()=>i});var r=n(5966);function i(e){let t=e?.j(r.I.C._E),n;return t&&(n={label:t.l,name:t.a}),n}},3826:(e,t,n)=>{n.d(t,{Z:()=>r});let r={qa:`invalid_api_key`,Aa:`blacklisted`,Ba:`no_device_identifier`,Ra:`invalid_json_response`,Zh:`empty_response`,__:`sdk_auth_error`}},7559:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(5825),i=n(8982),a=n(2893),o=n(7750);class s{constructor(e,t,n,r,i){this.userId=e,this.type=t,this.time=n,this.sessionId=r,this.data=i,this.userId=e,this.type=t,this.time=(0,o._0)(n),this.sessionId=r,this.data=i}Ir(){let e={name:this.type,time:(0,o.FX)(this.time),data:this.data||{},session_id:this.sessionId};this.userId!=null&&(e.user_id=this.userId);let t=r.ZP.Sr()?.Fh()||!1;if(!e.user_id&&!t){let t=(0,i.q)(r.ZP.l());t&&(e.alias=t)}return e}Y(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(e){return new s(e.user_id,e.name,e.time,e.session_id,e.data)}static RE(e){return e!=null&&(0,a.Kn)(e)&&e.t!=null&&e.t!==``}static qn(e){return new s(e.u,e.t,e.ts,e.s,e.d)}}},2308:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(7070),i=n(335),a=n(2893),o=n(8031);class s{constructor(e,t,n){this.eu=e,e??=r.Z.W(),!n||isNaN(n)?this.Dl=new Date().valueOf():this.Dl=n,this.eu=e,this.Wl=new Date().valueOf(),this.Hl=t}Y(){return`g:${encodeURIComponent(this.eu)}|e:${this.Hl}|c:${this.Dl}|l:${this.Wl}`}static hE(e){if(typeof e!=`string`)return null;let t=e.lastIndexOf(`|e:`),n=e.substring(0,t),r=n.split(`g:`)[1],i;return i=/[|:]/.test(r)?encodeURIComponent(r):r,e.replace(n,`g:${i}`)}static qn(e){let t;if(typeof e==`string`)try{let n=e.split(`|`);if(!(0,a.kJ)(n)||n.length!==4)return null;let r=e=>e.split(`:`)[1],i=e=>{let t=parseInt(r(e));if(!isNaN(t))return t};t=new s(decodeURIComponent(r(n[0])),i(n[1]),i(n[2])),t.Wl=i(n[3])}catch(t){i.Z.info(`Unable to parse cookie string ${e}, failed with error: ${(0,o.e)(t)}`)}else{if(e==null||e.g==null)return null;t=new s(e.g,e.e,e.c),t.Wl=e.l}return t}}},3552:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(7750);class i{constructor(e,t,n,r,i){this.endpoint=e,this.Vn=t,this.publicKey=n,this.Vl=r,this.cl=i,this.endpoint=e||null,this.Vn=t||null,this.publicKey=n||null,this.Vl=r||null,this.cl=i||null}Y(){return{e:this.endpoint,c:this.Vn,p:this.publicKey,u:this.Vl,v:this.cl}}static qn(e){return new i(e.e,(0,r.Rd)(e.c),e.p,e.u,e.v)}}},4673:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=!1,t=[]){this.L=e,this.ge=t,this.L=e,this.ge=t}P(e){this.L=this.L&&e.L,this.ge.push(...e.ge)}}},4365:(e,t,n)=>{n.d(t,{Z:()=>r});let r={OPEN:`open`,Rr:`purchase`,vr:`push_click`,ue:`custom_event`,Qr:`iam_click`,kt:`test`}},2246:(e,t,n)=>{n.d(t,{Z:()=>_});var r=n(7750),i=n(335);class a{constructor(e){this.Bl=e,this.Bl=e}Jl(e){return this.Bl==null||this.Bl===e[0]}static fromJson(e){return new a(e?e.event_name:null)}Y(){return this.Bl}}var o=n(2893);class s{constructor(e,t,n,i){this.Tl=e,this._l=t,this.comparator=n,this.Ll=i,this.Tl=e,this._l=t,this.comparator=n,this.Ll=i,this._l===s.Ol.Il&&this.comparator!==s.Ql.Ul&&this.comparator!==s.Ql.Xl&&this.comparator!==s.Ql.Fl&&this.comparator!==s.Ql.Kl&&(this.Ll=(0,r.X2)(this.Ll))}Jl(e){let t=null;switch(e!=null&&(t=e[this.Tl]),this.comparator){case s.Ql.Pl:return t!=null&&t.valueOf()===this.Ll.valueOf();case s.Ql.Yl:return t==null||t.valueOf()!==this.Ll.valueOf();case s.Ql.Zl:return t!=null&&typeof t==typeof this.Ll&&t>this.Ll;case s.Ql.Ul:return this._l===s.Ol.Il?t!=null&&(0,o.J_)(t)&&(0,r.$N)(t)<=this.Ll.valueOf():t!=null&&typeof t==typeof this.Ll&&t>=this.Ll;case s.Ql.$l:return t!=null&&typeof t==typeof this.Ll&&t<this.Ll;case s.Ql.Xl:return this._l===s.Ol.Il?t!=null&&(0,o.J_)(t)&&(0,r.$N)(t)>=this.Ll.valueOf():t!=null&&typeof t==typeof this.Ll&&t<=this.Ll;case s.Ql.Hu:return t!=null&&typeof t==`string`&&typeof t==typeof this.Ll&&t.match(this.Ll)!=null;case s.Ql.Qu:return t!=null;case s.Ql.Xu:return t==null;case s.Ql.Fl:return t!=null&&(0,o.J_)(t)&&(0,r.yo)(t)<this.Ll;case s.Ql.Kl:return t!=null&&(0,o.J_)(t)&&(0,r.yo)(t)>this.Ll;case s.Ql.Gu:return t==null||typeof t!=typeof this.Ll||typeof t!=`string`||t.match(this.Ll)==null}return!1}static fromJson(e){return new s(e.property_key,e.property_type,e.comparator,e.property_value)}Y(){let e=this.Ll;return(0,o.J_)(this.Ll)&&(e=(0,r.FX)(e.valueOf())),{k:this.Tl,t:this._l,c:this.comparator,v:e}}static qn(e){return new s(e.k,e.t,e.c,e.v)}}s.Ol={Vu:`boolean`,Wu:`number`,Yu:`string`,Il:`date`},s.Ql={Pl:1,Yl:2,Zl:3,Ul:4,$l:5,Xl:6,Hu:10,Qu:11,Xu:12,Fl:15,Kl:16,Gu:17};class c{constructor(e){this.filters=e,this.filters=e}Jl(e){let t=!0;for(let n=0;n<this.filters.length;n++){let r=this.filters[n],i=!1;for(let t=0;t<r.length;t++)if(r[t].Jl(e)){i=!0;break}if(!i){t=!1;break}}return t}static fromJson(e){if(e==null||!(0,o.kJ)(e))return null;let t=[];for(let n=0;n<e.length;n++){let r=[],i=e[n];for(let e=0;e<i.length;e++)r.push(s.fromJson(i[e]));t.push(r)}return new c(t)}Y(){let e=[];for(let t=0;t<this.filters.length;t++){let n=this.filters[t],r=[];for(let e=0;e<n.length;e++)r.push(n[e].Y());e.push(r)}return e}static qn(e){let t=[];for(let n=0;n<e.length;n++){let r=[],i=e[n];for(let e=0;e<i.length;e++)r.push(s.qn(i[e]));t.push(r)}return new c(t)}}class l{constructor(e,t){this.Bl=e,this.Ml=t,this.Bl=e,this.Ml=t}Jl(e){if(this.Bl==null||this.Ml==null)return!1;let t=e[0],n=e[1];return t===this.Bl&&this.Ml.Jl(n)}static fromJson(e){return new l(e?e.event_name:null,e?c.fromJson(e.property_filters):null)}Y(){return{e:this.Bl,pf:this.Ml?this.Ml.Y():null}}}class u{constructor(e,t){this.Zu=e,this.tf=t,this.Zu=e,this.tf=t}Jl(e){if(this.Zu==null)return!1;let t=g.if(e[0],this.Zu);if(!t)return!1;let n=this.tf==null||this.tf.length===0;if(this.tf!=null){for(let t=0;t<this.tf.length;t++)if(this.tf[t]===e[1]){n=!0;break}}return t&&n}static fromJson(e){return new u(e?e.id:null,e?e.buttons:null)}Y(){return this.Zu}}class d{constructor(e){this.productId=e,this.productId=e}Jl(e){return this.productId==null||e[0]===this.productId}static fromJson(e){return new d(e?e.product_id:null)}Y(){return this.productId}}class f{constructor(e,t){this.productId=e,this.Ml=t,this.productId=e,this.Ml=t}Jl(e){if(this.productId==null||this.Ml==null)return!1;let t=e[0],n=e[1];return t===this.productId&&this.Ml.Jl(n)}static fromJson(e){return new f(e?e.product_id:null,e?c.fromJson(e.property_filters):null)}Y(){return{id:this.productId,pf:this.Ml?this.Ml.Y():null}}}class p{constructor(e){this.Zu=e,this.Zu=e}Jl(e){return this.Zu==null||g.if(e[0],this.Zu)}static fromJson(e){return new p(e?e.campaign_id:null)}Y(){return this.Zu}}var m=n(4365),h=n(8031);class g{constructor(e,t){this.type=e,this.data=t,this.type=e,this.data=t}sc(e,t){return g.cc[this.type]===e&&(this.data==null||this.data.Jl(t))}static if(e,t){let n=null;try{n=window.atob(e)}catch(t){return i.Z.info(`Failed to unencode analytics id `+e+`: `+(0,h.e)(t)),!1}return t===n.split(`_`)[0]}static fromJson(e){let t=e.type,n=null;switch(t){case g._r.OPEN:case g._r.kt:break;case g._r.Rr:n=d.fromJson(e.data);break;case g._r.nc:n=f.fromJson(e.data);break;case g._r.vr:n=p.fromJson(e.data);break;case g._r.ue:n=a.fromJson(e.data);break;case g._r.lc:n=l.fromJson(e.data);break;case g._r.Qr:n=u.fromJson(e.data)}return new g(t,n)}Y(){return{t:this.type,d:this.data?this.data.Y():null}}static qn(e){let t,n=null;switch(e.t){case g._r.OPEN:case g._r.kt:break;case g._r.Rr:n=new d(e.d);break;case g._r.nc:t=e.d||{},n=new f(t.id,c.qn(t.pf||[]));break;case g._r.vr:n=new p(e.d);break;case g._r.ue:n=new a(e.d);break;case g._r.lc:t=e.d||{},n=new l(t.e,c.qn(t.pf||[]));break;case g._r.Qr:n=new u(e.d)}return new g(e.t,n)}}g._r={OPEN:`open`,Rr:`purchase`,nc:`purchase_property`,vr:`push_click`,ue:`custom_event`,lc:`custom_event_property`,Qr:`iam_click`,kt:`test`},g.cc={},g.cc[g._r.OPEN]=m.Z.OPEN,g.cc[g._r.Rr]=m.Z.Rr,g.cc[g._r.nc]=m.Z.Rr,g.cc[g._r.vr]=m.Z.vr,g.cc[g._r.ue]=m.Z.ue,g.cc[g._r.lc]=m.Z.ue,g.cc[g._r.Qr]=m.Z.Qr,g.cc[g._r.kt]=m.Z.kt;class _{constructor(e,t=[],n,r,i=0,a,o,s=0,c=_.td,l,u,d){this.id=e,this.sd=t,this.startTime=n,this.endTime=r,this.priority=i,this.type=a,this.data=o,this.ed=s,this.rd=c,this.Nr=l,this.hd=u,this.od=d,this.id=e,this.sd=t||[],n===void 0&&(n=null),this.startTime=n,r===void 0&&(r=null),this.endTime=r,this.priority=i||0,this.type=a,this.ed=s||0,l??=1e3*(this.ed+30),this.Nr=l,this.data=o,c!=null&&(this.rd=c),this.hd=u,this.od=d||null}nd(e){return this.od==null||this.rd!==_.td&&e-this.od>=1e3*this.rd}ad(e){this.od=e}ud(e){let t=e+1e3*this.ed;return Math.max(t-new Date().valueOf(),0)}dd(e){let t=new Date().valueOf()-e,n=e==null||isNaN(t)||this.Nr==null||t<this.Nr;return n||i.Z.info(`Trigger action ${this.type} is no longer eligible for display - fired ${t}ms ago and has a timeout of ${this.Nr}ms.`),!n}static fromJson(e){let t=e.id,n=[];for(let t=0;t<e.trigger_condition.length;t++)n.push(g.fromJson(e.trigger_condition[t]));let i=(0,r.X2)(e.start_time),a=(0,r.X2)(e.end_time),s=e.priority,c=e.type,l=e.delay,u=e.re_eligibility,d=e.timeout,f=e.data,p=e.min_seconds_since_last_trigger;return(0,o.fk)(_._r,c,`Could not construct Trigger from server data`,`Trigger.Types`)?new _(t,n,i,a,s,c,f,l,u,d,p):null}Y(){let e=[];for(let t=0;t<this.sd.length;t++)e.push(this.sd[t].Y());return{i:this.id,c:e,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ed,r:this.rd,tm:this.Nr,ss:this.hd,ld:this.od}}static qn(e){let t=[],n=e.c||[];for(let e=0;e<n.length;e++)t.push(g.qn(n[e]));return new _(e.i,t,(0,r.Rd)(e.s),(0,r.Rd)(e.e),e.p,e.t,e.da,e.d,e.r,e.tm,e.ss,e.ld)}}_._r={Br:`inapp`,md:`templated_iam`},_.td=-1},9342:(e,t,n)=>{n.d(t,{n:()=>h});var r=n(1087),i=n(5825),a=n(158),o=n(3340),s=n(7559),c=n(2893),l=n(5966);class u{constructor(e,t,n,r,i){this.triggerId=e,this.Er=t,this.Tr=n,this.Gr=r,this.Nr=i,this.triggerId=e,this.Er=t,this.Tr=n,this.Gr=r,this.Nr=i}static fromJson(e,t,n,r,i){return e==null||e.trigger_id==null?null:new u(e.trigger_id,t,n,r,i)}}var d=n(2246),f=n(4365),p=n(335);class m extends a.Z{constructor(e,t,n,r,i){super(),this.tg=e,this.Jt=t,this.u=n,this.zi=r,this.ig=i,this.tg=e,this.Jt=t,this.u=n,this.zi=r,this.ig=i,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.u){this.hg=this.u.j(l.I.C.iE)||this.hg,this.ng=this.u.j(l.I.C.EE)||this.ng,this.og=this.u.j(l.I.C.aE)||this.og;for(let e=0;e<this.triggers.length;e++){let t=this.triggers[e];t.id&&this.og[t.id]!=null&&t.ad(this.og[t.id])}}}ag(){if(!this.u)return;this.lg=this.u.j(l.I.C.oE)||0;let e=this.u.j(l.I.C.rE)||[],t=[];for(let n=0;n<e.length;n++)t.push(d.Z.qn(e[n]));this.triggers=t,this.fg()}gg(){let e=this,t=function(t,n,r,i,a){return function(){e.cg(t,n,r,i,a)}},n={};for(let e of this.triggers)e.id&&(n[e.id]=e);let r=!1;for(let e=0;e<this.triggers.length;e++){let i=this.triggers[e];if(i.id&&this.ng[i.id]!=null){let e=this.ng[i.id],a=[];for(let r=0;r<e.length;r++){let o=e[r],l=i.ud(o.Gr||0);if(l>0){let e,r;a.push(o),o.ug!=null&&(e=o.ug),o.dg!=null&&s.Z.RE(o.dg)&&(r=s.Z.qn(o.dg));let u=[];if(o.pg&&(0,c.kJ)(o.pg))for(let e=0;e<o.pg.length;e++){let t=n[o.pg[e]];t!=null&&u.push(t)}this.eg.push(window.setTimeout(t(i,o.Gr||0,e,r,u),l))}}this.ng[i.id].length>a.length&&(this.ng[i.id]=a,r=!0,this.ng[i.id].length===0&&delete this.ng[i.id])}}r&&this.u&&this.u.k(l.I.C.EE,this.ng)}mg(){if(!this.u)return;let e=[];for(let t=0;t<this.triggers.length;t++)e.push(this.triggers[t].Y());this.lg=new Date().valueOf(),this.u.k(l.I.C.rE,e),this.u.k(l.I.C.oE,this.lg)}bg(){this.u&&((this.u.j(l.I.C.oE)||0)>this.lg?this.ag():this.fg())}Ns(e){let t=!1;if(e!=null&&e.triggers){this.ig.Lr(),this.fg();let n={},r={};this.triggers=[];for(let i=0;i<e.triggers.length;i++){let a=d.Z.fromJson(e.triggers[i]);if(a){a.id&&this.og[a.id]!=null&&(a.ad(this.og[a.id]),n[a.id]=this.og[a.id]),a.id&&this.ng[a.id]!=null&&(r[a.id]=this.ng[a.id]);for(let e=0;e<a.sd.length;e++)if(a.sd[e].sc(f.Z.kt,null)){t=!0;break}this.triggers.push(a)}}(0,c.Xy)(this.og,n)||(this.og=n,this.u&&this.u.k(l.I.C.aE,this.og)),(0,c.Xy)(this.ng,r)||(this.ng=r,this.u&&this.u.k(l.I.C.EE,this.ng)),this.mg(),t&&(p.Z.info(`Trigger with test condition found, firing test.`),this.fe(f.Z.kt)),this.fe(f.Z.OPEN);let i=this.sg,a;this.sg=[];for(let e=0;e<i.length;e++)a=Array.prototype.slice.call(i[e]),this.fe(...a)}}cg(e,t,n,r,i){let a=r=>{this.fg();let i=new Date().valueOf();e.dd(t)||(!1===navigator.onLine&&e.type===d.Z._r.Br&&r.imageUrl?p.Z.info(`Not showing ${e.type} trigger action ${e.id} due to offline state.`):e.nd(i)&&this.wg(e,i,n)?this.Jt.ic()===0?p.Z.info(`Not displaying trigger ${e.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Jt.Dt([r]),this.yg(e,i)):p.Z.info(`Not displaying trigger ${e.id} because display time fell outside of the acceptable time window.`))},s=()=>{this.fg();let a=i.pop();if(a!=null)if(this.Tg(a,t,n,r,i),a.dd(t)){let e=`Server aborted in-app message display, but the timeout on fallback trigger ${a.id} has already elapsed.`;i.length>0&&(e+=` Continuing to fall back.`),p.Z.info(e),s()}else{p.Z.info(`Server aborted in-app message display. Falling back to lower priority ${a.type} trigger action ${e.id}.`);let o=1e3*a.ed-(new Date().valueOf()-t);o>0?this.eg.push(window.setTimeout((()=>{this.cg(a,t,n,r,i)}),o)):this.cg(a,t,n,r,i)}},c,l,f;switch(e.type){case d.Z._r.Br:if(c=(0,o.q)(e.data),c==null){p.Z.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}if(l=this.ig.Li(c),l){p.Z.error(l),s();break}a(c);break;case d.Z._r.md:if(f=u.fromJson(e.data,a,s,t,e.Nr||0),f==null){p.Z.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}this.ig.Yi(f,n,r);break;default:p.Z.error(`Trigger ${e.id} was of unexpected type ${e.type}, ignoring.`)}}fe(e,t=null,n){if(!(0,c.fk)(f.Z,e,`Cannot fire trigger action.`,`TriggerEvents`))return;if(this.zi&&this.zi.Nu())return p.Z.info(`Trigger sync is currently in progress, awaiting sync completion before firing trigger event.`),void this.sg.push(arguments);this.bg();let r=new Date().valueOf(),i=r-(this.hg||0),a=!0,o=!0,s=[];for(let n=0;n<this.triggers.length;n++){let i=this.triggers[n],c=r+1e3*i.ed;if(i.nd(c)&&(i.startTime==null||i.startTime.valueOf()<=r)&&(i.endTime==null||i.endTime.valueOf()>=r)){let n=!1;for(let r=0;r<i.sd.length;r++)if(i.sd[r].sc(e,t)){n=!0;break}n&&(a=!1,this.wg(i,c,e)&&(o=!1,s.push(i)))}}if(a)return void p.Z.info(`Trigger event ${e} did not match any trigger conditions.`);if(o)return void p.Z.info(`Ignoring ${e} trigger event because a trigger was displayed ${i/1e3}s ago.`);s.sort(((e,t)=>e.priority-t.priority));let l=s.pop();l!=null&&(p.Z.info(`Firing ${l.type} trigger action ${l.id} from trigger event ${e}.`),this.Tg(l,r,e,n,s),l.ed===0?this.cg(l,r,e,n,s):this.eg.push(window.setTimeout((()=>{this.cg(l,r,e,n,s)}),1e3*l.ed)))}changeUser(e=!1){if(this.triggers=[],this.u&&this.u.ti(l.I.C.rE),!e){this.sg=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[],this.u&&(this.u.ti(l.I.C.iE),this.u.ti(l.I.C.aE),this.u.ti(l.I.C.EE))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[]}wg(e,t,n){if(this.hg==null)return!0;if(n===f.Z.kt)return p.Z.info(`Ignoring minimum interval between trigger because it is a test type.`),!0;let r=e.hd;return r??=this.tg,t-this.hg>=1e3*r}Tg(e,t,n,r,i){this.fg(),e.id&&(this.ng[e.id]=this.ng[e.id]||[]);let a={},o;a.Gr=t,a.ug=n,r!=null&&(o=r.Y()),a.dg=o;let s=[];for(let e of i)e.id&&s.push(e.id);a.pg=s,e.id&&this.ng[e.id].push(a),this.u&&this.u.k(l.I.C.EE,this.ng)}yg(e,t){this.fg(),e.ad(t),this.hg=t,e.id&&(this.og[e.id]=t),this.u&&(this.u.k(l.I.C.iE,t),this.u.k(l.I.C.aE,this.og))}}let h={t:!1,provider:null,rr:()=>(h.o(),h.provider||h.rg(),h.provider),rg:()=>{h.provider||(h.provider=new m(i.ZP.nn(i.JY.Oo)??30,r.Z.m().Mi(),i.ZP.l(),i.ZP.cr(),r.Z.m()),i.ZP.ar(h.provider))},o:()=>{h.t||=(h.rg(),i.ZP.g(h),!0)},destroy:()=>{h.provider=null,h.t=!1}}},5333:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(5825);function i(e,t,n){let i=e||document.querySelector(`head`),a=`ab-${t}-css-definitions-${`5.3.1`.replace(/\./g,`-`)}`;if(!i)return;let o=i.ownerDocument||document;if(o.getElementById(a)==null){let e=o.createElement(`style`);e.innerHTML=n||``,e.id=a;let t=r.ZP.nn(r.JY.bo);t!=null&&e.setAttribute(`nonce`,t),i.appendChild(e)}}},6959:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(5333),i=n(6524);function a(){(0,r.e)(void 0,`feed`,`body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:9011;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}.ab-feed .ab-card.ab-image-only .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px;padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}`),(0,i.N)()}},6524:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(5825);function i(){if(r.ZP.nn(r.JY.Mo))return;let e=`https://use.fontawesome.com/7f85a56ba4.css`;if(document.querySelector(`link[rel=stylesheet][href="`+e+`"]`)===null){let t=document.createElement(`link`);t.setAttribute(`rel`,`stylesheet`),t.setAttribute(`href`,e),document.getElementsByTagName(`head`)[0].appendChild(t)}}},3046:(e,t,n)=>{n.d(t,{A9:()=>s,OL:()=>u,Tu:()=>l,je:()=>f,yi:()=>c,zA:()=>p});var r=n(335),i=n(8031),a=n(8548),o=n(3905);let s={types:{ro:`container`,logCustomEvent:`logCustomEvent`,setEmailNotificationSubscriptionType:`setEmailNotificationSubscriptionType`,setPushNotificationSubscriptionType:`setPushNotificationSubscriptionType`,setCustomUserAttribute:`setCustomUserAttribute`,requestPushPermission:`requestPushPermission`,addToSubscriptionGroup:`addToSubscriptionGroup`,removeFromSubscriptionGroup:`removeFromSubscriptionGroup`,addToCustomAttributeArray:`addToCustomAttributeArray`,removeFromCustomAttributeArray:`removeFromCustomAttributeArray`,no:`openLink`,ao:`openLinkInWebView`},properties:{type:`type`,oo:`steps`,eo:`args`}},c={Qi:`unknownBrazeAction`,Wi:`noPushPrompt`},l=(e,t)=>{switch(e){case c.Qi:return`${t} contains an unknown braze action type and will not be displayed.`;case c.Wi:return`${t} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return``}};function u(e){try{let t=e.match(o.y9),n=t?t[0].length:null,i=n?e.substring(n):null;if(n==null||n>e.length-1||!i)return void r.Z.error(`Did not find base64 encoded brazeAction in url to process : ${e}`);let s=(0,a.T)(i);return s?JSON.parse(s):void r.Z.error(`Failed to decode base64 encoded brazeAction: ${i}`)}catch(t){r.Z.error(`Failed to process brazeAction URL ${e} : ${(0,i.e)(t)}`);return}}function d(e,t){let n=!1;if(t){for(let r of t)if(n||=e(r),n)return!0}return!1}function f(e){let t=s.properties.type,n=s.properties.oo;try{if(e==null)return!0;let r=e[t];return r===s.types.ro?d(f,e[n]):!(0,o.OM)(r)}catch{return!0}}function p(e){if(!e||!(0,o.zR)(e))return!1;let t=s.properties.type,n=s.properties.oo,r=e[t];return r===s.types.ro?d(p,e[n]):r===s.types.requestPushPermission}},3695:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(2893);class i{constructor(){}ef(){}rf(){}Ta(e){}static sf(e,t){if(e&&t){if(e=e.toLowerCase(),(0,r.kJ)(t.ff)){for(let n=0;n<t.ff.length;n++)if(e.indexOf(t.ff[n].toLowerCase())!==-1)return t.identity}else if(e.indexOf(t.ff.toLowerCase())!==-1)return t.identity}}}var a=n(5806);class o extends i{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){let e=this.hc();this.browser=e.browser||`Unknown Browser`,this.version=e.version||`Unknown Version`}this.OS=null}ef(){return this.browser}rf(){return this.version}Ta(e){if(this.OS)return Promise.resolve(this.OS);let t=t=>{for(let n=0;n<e.length;n++){let r=o.sf(t,e[n]);if(r)return this.OS=r,this.OS}return t};return this.userAgentData.platform?Promise.resolve(t(this.userAgentData.platform)):this.getHighEntropyValues().then((e=>e.platform?t(e.platform):navigator.platform)).catch((()=>navigator.platform))}hc(){let e={},t=this.userAgentData.brands;if(t&&t.length)for(let n of t){let t=this.uc(a.s),r=n.brand.match(t);if(r&&r.length>0){e.browser=r[0],e.version=n.version;break}}return e}uc(e){let t=[];for(let n in e){let r=n;t.push(e[r])}return RegExp(`(`+t.join(`|`)+`)`,`i`)}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues([`platform`]):Promise.reject()}}class s extends i{constructor(){super(),this.fd=s.hc(navigator.userAgent||``)}ef(){return this.fd[0]||`Unknown Browser`}rf(){return this.fd[1]||`Unknown Version`}Ta(e){for(let t=0;t<e.length;t++){let n=e[t].string,r=s.sf(n,e[t]);if(r)return r===a.T.Pg&&navigator.maxTouchPoints>1&&(r=a.T.io),Promise.resolve(r)}return Promise.resolve(navigator.platform)}static hc(e){let t,n=e.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(e.indexOf(`(Web0S; Linux/SmartTV)`)!==-1)return[`LG Smart TV`,null];if(e.indexOf(`CrKey`)!==-1)return[`Chromecast`,null];if(e.indexOf(`BRAVIA`)!==-1||e.indexOf(`SonyCEBrowser`)!==-1||e.indexOf(`SonyDTV`)!==-1)return[`Sony Smart TV`,null];if(e.indexOf(`PhilipsTV`)!==-1)return[`Philips Smart TV`,null];if(e.match(/\b(Roku)\b/))return[`Roku`,null];if(e.match(/\bAFTM\b/))return[`Amazon Fire Stick`,null];if(n[1]===a.s.rO&&(t=e.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),t!=null))return t=t.slice(1),t[0]=t[0].replace(`OPR`,a.s.oO),t[0]=t[0].replace(`EdgA`,a.s.eO),t[0]===`Edg`&&(t[0]=a.s.eO),[t[0],t[1]];if(n[1]===a.s.Bg&&(t=e.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),t!=null))return t=t.slice(1),t[0]=t[0].replace(`EdgiOS`,a.s.eO),[t[0],t[1]];if(n=n[2]?[n[1],n[2]]:[null,null],n[0]===a.s.Bg&&(t=e.match(/version\/(\.?\d+(\.\d+)*)/i))!=null&&n.splice(1,1,t[1]),(t=e.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))!=null&&n.splice(1,1,t[2]),n[0]===a.s.oO&&(t=e.match(/mini\/(\.?\d+(\.\d+)*)/i))!=null)return[`Opera Mini`,t[1]||``];if(n[0]){let e=n[0].toLowerCase();e===`crios`&&(n[0]=a.s.rO),e===`tizen`&&(n[0]=`Samsung Smart TV`,n[1]=null),e===`samsungbrowser`&&(n[0]=`Samsung Browser`)}return n}}class c{constructor(){this.Sg=new(navigator.userAgentData?o:s),this.userAgent=navigator.userAgent,this.browser=this.Sg.ef(),this.version=this.Sg.rf(),this.OS=null,this.Ta().then((e=>this.OS=e));let e=navigator;this.language=(e.userLanguage||e.language||e.browserLanguage||e.systemLanguage||``).toLowerCase(),this.Zo=c.vg(this.userAgent)}IE(){return this.browser===a.s.Bg}Oa(){return this.OS||null}Ta(){return this.OS?Promise.resolve(this.OS):this.Sg.Ta(c.kg).then((e=>(this.OS=e,e)))}static vg(e){e=e.toLowerCase();let t=[`googlebot`,`bingbot`,`slurp`,`duckduckbot`,`baiduspider`,`yandex`,`facebookexternalhit`,`sogou`,`ia_archiver`,`https://github.com/prerender/prerender`,`aolbuild`,`bingpreview`,`msnbot`,`adsbot`,`mediapartners-google`,`teoma`,`taiko`];for(let n=0;n<t.length;n++)if(e.indexOf(t[n])!==-1)return!0;return!1}}c.kg=[{string:navigator.platform,ff:`Win`,identity:a.T.Og},{string:navigator.platform,ff:`Mac`,identity:a.T.Pg},{string:navigator.platform,ff:`BlackBerry`,identity:`BlackBerry`},{string:navigator.platform,ff:`FreeBSD`,identity:`FreeBSD`},{string:navigator.platform,ff:`OpenBSD`,identity:`OpenBSD`},{string:navigator.platform,ff:`Nintendo`,identity:`Nintendo`},{string:navigator.platform,ff:`SunOS`,identity:`SunOS`},{string:navigator.platform,ff:`PlayStation`,identity:`PlayStation`},{string:navigator.platform,ff:`X11`,identity:`X11`},{string:navigator.userAgent,ff:[`iPhone`,`iPad`,`iPod`],identity:a.T.io},{string:navigator.platform,ff:`Pike v`,identity:a.T.io},{string:navigator.userAgent,ff:[`Web0S`],identity:`WebOS`},{string:navigator.platform,ff:[`Linux armv7l`,`Android`],identity:a.T.xg},{string:navigator.userAgent,ff:[`Android`],identity:a.T.xg},{string:navigator.platform,ff:`Linux`,identity:`Linux`}];let l=new c},2893:(e,t,n)=>{n.d(t,{J_:()=>s,Kn:()=>c,VO:()=>i,XP:()=>u,Xy:()=>d,fk:()=>a,jV:()=>l,kJ:()=>o});var r=n(335);function i(e){let t=[],n;for(let r in e)n=r,Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==void 0&&t.push(e[n]);return t}function a(e,t,n,a){let o=i(e);return o.indexOf(t)!==-1||(r.Z.error(`${n} Valid values from ${a} are "${o.join(`"/"`)}".`),!1)}function o(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`}function s(e){return Object.prototype.toString.call(e)===`[object Date]`}function c(e){return Object.prototype.toString.call(e)===`[object Object]`}function l(e,...t){e??=[];let n=[],r=arguments.length;for(let t=0,i=e.length;t<i;t++){let i=e[t];if(n.indexOf(i)!==-1)continue;let a=1;for(a=1;a<r&&arguments[a].indexOf(i)!==-1;a++);a===r&&n.push(i)}return n}function u(e){let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}function d(e,t){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return e===t;let n=e.toString();if(n!==t.toString())return!1;switch(n){case`[object RegExp]`:case`[object String]`:return``+e==``+t;case`[object Number]`:return+e==+e?+e==0?1/e==1/t:+e==+t:+t!=+t;case`[object Date]`:case`[object Boolean]`:return+e==+t}let r=n===`[object Array]`;if(!r){if(typeof e!=`object`||typeof t!=`object`)return!1;let n=e.constructor,r=t.constructor;if(n!==r&&!(typeof n==`function`&&n instanceof n&&typeof r==`function`&&r instanceof r)&&`constructor`in e&&`constructor`in t)return!1}let i=[],a=[],o=i.length;for(;o--;)if(i[o]===e)return a[o]===t;if(i.push(e),a.push(t),r){if(o=e.length,o!==t.length)return!1;for(;o--;)if(!d(e[o],t[o]))return!1}else{let n=u(e),r;if(o=n.length,u(t).length!==o)return!1;for(;o--;)if(r=n[o],!Object.prototype.hasOwnProperty.call(t,r)||!d(e[r],t[r]))return!1}return i.pop(),a.pop(),!0}},5242:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(1507),i=n(7429);function a(e,t,n){let a=document.createElement(`button`);a.setAttribute(`aria-label`,e),a.setAttribute(`tabindex`,`0`),a.setAttribute(`role`,`button`),(0,r.lj)(a,`touchstart`),a.className=`ab-close-button`;let o=(0,r.MK)(`0 0 15 15`,`M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z`,t);return a.appendChild(o),a.addEventListener(`keydown`,(e=>{e.keyCode!==i.m.Fo&&e.keyCode!==i.m.To||(n(),e.stopPropagation())})),a.onclick=e=>{n(),e.stopPropagation()},a}},7750:(e,t,n)=>{n.d(t,{$N:()=>u,BT:()=>s,FX:()=>i,Pn:()=>a,Rd:()=>c,X2:()=>o,_0:()=>l,yo:()=>d});var r=n(2893);function i(e,t=!1){let n=e/1e3;return t&&(n=Math.floor(n)),n}function a(e){return 1e3*e}function o(e){if(e==null)return null;let t=parseInt(e.toString());return isNaN(t)?null:new Date(1e3*t)}function s(e){return e!=null&&(0,r.J_)(e)?e.toISOString().replace(/\.[0-9]{3}Z$/,``):e}function c(e){return e==null||e===``?null:new Date(e)}function l(e){return e==null||e===``?new Date().valueOf():e}function u(e){return(new Date().valueOf()-e.valueOf())/1e3}function d(e){return(e.valueOf()-new Date().valueOf())/1e3}},5806:(e,t,n)=>{n.d(t,{T:()=>i,s:()=>r});let r={rO:`Chrome`,eO:`Edge`,oO:`Opera`,Bg:`Safari`,OO:`Firefox`},i={xg:`Android`,io:`iOS`,Pg:`Mac`,Og:`Windows`}},1507:(e,t,n)=>{n.d(t,{$j:()=>d,FZ:()=>f,Fr:()=>u,MK:()=>p,QZ:()=>s,lP:()=>a,lj:()=>c,mQ:()=>o,rJ:()=>l});var r=n(335),i=n(8031);let a={dc:null,po:function(e,t=!1,n=!1,r=!1){if(e==null)return!1;t||=!1,n||=!1;let i=e.getBoundingClientRect();return i!=null&&(i.top>=0&&i.top<=(window.innerHeight||document.documentElement.clientHeight)||!t)&&(i.left>=0||!r)&&(i.bottom>=0&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!n)&&(i.right<=(window.innerWidth||document.documentElement.clientWidth)||!r)}},o={Re:`up`,Se:`down`,U:`left`,V:`right`};function s(){if(a.dc==null){a.dc=!1;try{let e=Object.defineProperty({},`passive`,{get:()=>{a.dc=!0}});window.addEventListener(`testPassive`,(()=>{}),e),window.removeEventListener(`testPassive`,(()=>{}),e)}catch(e){r.Z.error((0,i.e)(e))}}return a.dc}function c(e,t,n=(()=>{})){e.addEventListener(t,n,!!s()&&{passive:!0})}function l(e){return a.po(e,!0,!1,!1)}function u(e){return a.po(e,!1,!0,!1)}function d(e){if(e.onclick){let t=document.createEvent(`MouseEvents`);t.initEvent(`click`,!0,!0),e.onclick.apply(e,[t])}}function f(e,t,n){let r=null,i=null;c(e,`touchstart`,(e=>{r=e.touches[0].clientX,i=e.touches[0].clientY})),c(e,`touchmove`,(a=>{if(r==null||i==null)return;let s=r-a.touches[0].clientX,c=i-a.touches[0].clientY;Math.abs(s)>Math.abs(c)&&Math.abs(s)>=25?((s>0&&t===o.U||s<0&&t===o.V)&&n(a),r=null,i=null):Math.abs(c)>=25&&((c>0&&t===o.Re&&e.scrollTop===e.scrollHeight-e.offsetHeight||c<0&&t===o.Se&&e.scrollTop===0)&&n(a),r=null,i=null)}))}function p(e,t,n){let r=`http://www.w3.org/2000/svg`,i=document.createElementNS(r,`svg`);i.setAttribute(`viewBox`,e),i.setAttribute(`xmlns`,r);let a=document.createElementNS(r,`path`);return a.setAttribute(`d`,t),n!=null&&a.setAttribute(`fill`,n),i.appendChild(a),i}},8031:(e,t,n)=>{n.d(t,{e:()=>r});let r=e=>e instanceof Error?e.message:String(e)},7429:(e,t,n)=>{n.d(t,{m:()=>r});let r={Fo:32,lo:9,To:13,mh:27}},6504:(e,t,n)=>{n.d(t,{R:()=>r});let r=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e)},1843:(e,t,n)=>{n.d(t,{D:()=>o,Z:()=>s});var r=n(335),i=n(3826),a=n(8031);let o=e=>{let t={},n=e.toString().split(`\r
23
+ `;var s;try{s=Function(o,`_`,a)}catch(e){throw e.source=a,e}var c=function(e){return s.call(this,e,h_)};return c.source=`function(`+o+`){
24
+ `+a+`}`,c}function Sv(e,t,n){t=J_(t);var r=t.length;if(!r)return Hg(n)?n.call(e):n;for(var i=0;i<r;i++){var a=e?.[t[i]];a===void 0&&(a=n,i=r),e=Hg(a)?a.call(e):a}return e}var Cv=0;function wv(e){var t=++Cv+``;return e?e+t:t}function Tv(e){var t=h_(e);return t._chain=!0,t}function Ev(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=U_(e.prototype),o=e.apply(a,i);return Dg(o)?o:a}var Dv=Eg(function(e,t){var n=Dv.placeholder,r=function(){for(var i=0,a=t.length,o=Array(a),s=0;s<a;s++)o[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)o.push(arguments[i++]);return Ev(e,r,this,this,o)};return r});Dv.placeholder=h_;var Ov=Eg(function(e,t,n){if(!Hg(e))throw TypeError(`Bind must be called on a function`);var r=Eg(function(i){return Ev(e,r,t,this,n.concat(i))});return r}),kv=n_(l_);function Av(e,t,n,r){if(r||=[],!t&&t!==0)t=1/0;else if(t<=0)return r.concat(e);for(var i=r.length,a=0,o=l_(e);a<o;a++){var s=e[a];if(kv(s)&&(Yg(s)||Qg(s)))if(t>1)Av(s,t-1,n,r),i=r.length;else for(var c=0,l=s.length;c<l;)r[i++]=s[c++];else n||(r[i++]=s)}return r}var jv=Eg(function(e,t){t=Av(t,!1,!1);var n=t.length;if(n<1)throw Error(`bindAll must be passed function names`);for(;n--;){var r=t[n];e[r]=Ov(e[r],e)}return e});function Mv(e,t){var n=function(r){var i=n.cache,a=``+(t?t.apply(this,arguments):r);return Xg(i,a)||(i[a]=e.apply(this,arguments)),i[a]};return n.cache={},n}var Nv=Eg(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),Pv=Dv(Nv,h_,1);function Fv(e,t,n){var r,i,a,o,s=0;n||={};var c=function(){s=n.leading===!1?0:uv(),r=null,o=e.apply(i,a),r||(i=a=null)},l=function(){var l=uv();!s&&n.leading===!1&&(s=l);var u=t-(l-s);return i=this,a=arguments,u<=0||u>t?(r&&=(clearTimeout(r),null),s=l,o=e.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}function Iv(e,t,n){var r,i,a,o,s,c=function(){var l=uv()-i;t>l?r=setTimeout(c,t-l):(r=null,n||(o=e.apply(s,a)),r||(a=s=null))},l=Eg(function(l){return s=this,a=l,i=uv(),r||(r=setTimeout(c,t),n&&(o=e.apply(s,a))),o});return l.cancel=function(){clearTimeout(r),r=a=s=null},l}function Lv(e,t){return Dv(t,e)}function Rv(e){return function(){return!e.apply(this,arguments)}}function zv(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Bv(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Vv(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Hv=Dv(Vv,2);function Uv(e,t,n){t=iv(t,n);for(var r=f_(e),i,a=0,o=r.length;a<o;a++)if(i=r[a],t(e[i],i,e))return i}function Wv(e){return function(t,n,r){n=iv(n,r);for(var i=l_(t),a=e>0?0:i-1;a>=0&&a<i;a+=e)if(n(t[a],a,t))return a;return-1}}var Gv=Wv(1),Kv=Wv(-1);function qv(e,t,n,r){n=iv(n,r,1);for(var i=n(t),a=0,o=l_(e);a<o;){var s=Math.floor((a+o)/2);n(e[s])<i?a=s+1:o=s}return a}function Jv(e,t,n){return function(r,i,a){var o=0,s=l_(r);if(typeof a==`number`)e>0?o=a>=0?a:Math.max(a+s,o):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return a=n(r,i),r[a]===i?a:-1;if(i!==i)return a=t(fg.call(r,o,s),e_),a>=0?a+o:-1;for(a=e>0?o:s-1;a>=0&&a<s;a+=e)if(r[a]===i)return a;return-1}}var Yv=Jv(1,Gv,qv),Xv=Jv(-1,Kv);function Zv(e,t,n){var r=(kv(e)?Gv:Uv)(e,t,n);if(r!==void 0&&r!==-1)return e[r]}function Qv(e,t){return Zv(e,$_(t))}function $v(e,t,n){t=tv(t,n);var r,i;if(kv(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=f_(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e}function ey(e,t,n){t=iv(t,n);for(var r=!kv(e)&&f_(e),i=(r||e).length,a=Array(i),o=0;o<i;o++){var s=r?r[o]:o;a[o]=t(e[s],s,e)}return a}function ty(e){var t=function(t,n,r,i){var a=!kv(t)&&f_(t),o=(a||t).length,s=e>0?0:o-1;for(i||(r=t[a?a[s]:s],s+=e);s>=0&&s<o;s+=e){var c=a?a[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var a=arguments.length>=3;return t(e,tv(n,i,4),r,a)}}var ny=ty(1),ry=ty(-1);function iy(e,t,n){var r=[];return t=iv(t,n),$v(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function ay(e,t,n){return iy(e,Rv(iv(t)),n)}function oy(e,t,n){t=iv(t,n);for(var r=!kv(e)&&f_(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0}function sy(e,t,n){t=iv(t,n);for(var r=!kv(e)&&f_(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1}function cy(e,t,n,r){return kv(e)||(e=P_(e)),(typeof n!=`number`||r)&&(n=0),Yv(e,t,n)>=0}var ly=Eg(function(e,t,n){var r,i;return Hg(t)?i=t:(t=J_(t),r=t.slice(0,-1),t=t[t.length-1]),ey(e,function(e){var a=i;if(!a){if(r&&r.length&&(e=Y_(e,r)),e==null)return;a=e[t]}return a==null?a:a.apply(e,n)})});function uy(e,t){return ey(e,ev(t))}function dy(e,t){return iy(e,$_(t))}function fy(e,t,n){var r=-1/0,i=-1/0,a,o;if(t==null||typeof t==`number`&&typeof e[0]!=`object`&&e!=null){e=kv(e)?e:P_(e);for(var s=0,c=e.length;s<c;s++)a=e[s],a!=null&&a>r&&(r=a)}else t=iv(t,n),$v(e,function(e,n,a){o=t(e,n,a),(o>i||o===-1/0&&r===-1/0)&&(r=e,i=o)});return r}function py(e,t,n){var r=1/0,i=1/0,a,o;if(t==null||typeof t==`number`&&typeof e[0]!=`object`&&e!=null){e=kv(e)?e:P_(e);for(var s=0,c=e.length;s<c;s++)a=e[s],a!=null&&a<r&&(r=a)}else t=iv(t,n),$v(e,function(e,n,a){o=t(e,n,a),(o<i||o===1/0&&r===1/0)&&(r=e,i=o)});return r}var my=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function hy(e){return e?Yg(e)?fg.call(e):Ng(e)?e.match(my):kv(e)?ey(e,Q_):P_(e):[]}function gy(e,t,n){if(t==null||n)return kv(e)||(e=P_(e)),e[lv(e.length-1)];var r=hy(e),i=l_(r);t=Math.max(Math.min(t,i),0);for(var a=i-1,o=0;o<t;o++){var s=lv(o,a),c=r[o];r[o]=r[s],r[s]=c}return r.slice(0,t)}function _y(e){return gy(e,1/0)}function vy(e,t,n){var r=0;return t=iv(t,n),uy(ey(e,function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||n===void 0)return 1;if(n<r||r===void 0)return-1}return e.index-t.index}),`value`)}function yy(e,t){return function(n,r,i){var a=t?[[],[]]:{};return r=iv(r,i),$v(n,function(t,i){e(a,t,r(t,i,n))}),a}}var by=yy(function(e,t,n){Xg(e,n)?e[n].push(t):e[n]=[t]}),xy=yy(function(e,t,n){e[n]=t}),Sy=yy(function(e,t,n){Xg(e,n)?e[n]++:e[n]=1}),Cy=yy(function(e,t,n){e[n?0:1].push(t)},!0);function wy(e){return e==null?0:kv(e)?e.length:f_(e).length}function Ty(e,t,n){return t in n}var Ey=Eg(function(e,t){var n={},r=t[0];if(e==null)return n;Hg(r)?(t.length>1&&(r=tv(r,t[1])),t=x_(e)):(r=Ty,t=Av(t,!1,!1),e=Object(e));for(var i=0,a=t.length;i<a;i++){var o=t[i],s=e[o];r(s,o,e)&&(n[o]=s)}return n}),Dy=Eg(function(e,t){var n=t[0],r;return Hg(n)?(n=Rv(n),t.length>1&&(r=t[1])):(t=ey(Av(t,!1,!1),String),n=function(e,n){return!cy(t,n)}),Ey(e,n,r)});function Oy(e,t,n){return fg.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))}function ky(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[0]:Oy(e,e.length-t)}function Ay(e,t,n){return fg.call(e,t==null||n?1:t)}function jy(e,t,n){return e==null||e.length<1?t==null||n?void 0:[]:t==null||n?e[e.length-1]:Ay(e,Math.max(0,e.length-t))}function My(e){return iy(e,Boolean)}function Ny(e,t){return Av(e,t,!1)}var Py=Eg(function(e,t){return t=Av(t,!0,!0),iy(e,function(e){return!cy(t,e)})}),Fy=Eg(function(e,t){return Py(e,t)});function Iy(e,t,n,r){Ag(t)||(r=n,n=t,t=!1),n!=null&&(n=iv(n,r));for(var i=[],a=[],o=0,s=l_(e);o<s;o++){var c=e[o],l=n?n(c,o,e):c;t&&!n?((!o||a!==l)&&i.push(c),a=l):n?cy(a,l)||(a.push(l),i.push(c)):cy(i,c)||i.push(c)}return i}var Ly=Eg(function(e){return Iy(Av(e,!0,!0))});function Ry(e){for(var t=[],n=arguments.length,r=0,i=l_(e);r<i;r++){var a=e[r];if(!cy(t,a)){var o;for(o=1;o<n&&cy(arguments[o],a);o++);o===n&&t.push(a)}}return t}function zy(e){for(var t=e&&fy(e,l_).length||0,n=Array(t),r=0;r<t;r++)n[r]=uy(e,r);return n}var By=Eg(zy);function Vy(e,t){for(var n={},r=0,i=l_(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Hy(e,t,n){t??(t=e||0,e=0),n||=t<e?-1:1;for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i}function Uy(e,t){if(t==null||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(fg.call(e,r,r+=t));return n}function Wy(e,t){return e._chain?h_(t).chain():t}function Gy(e){return $v(L_(e),function(t){var n=h_[t]=e[t];h_.prototype[t]=function(){var e=[this._wrapped];return dg.apply(e,arguments),Wy(this,n.apply(h_,e))}}),h_}$v([`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=cg[e];h_.prototype[e]=function(){var n=this._wrapped;return n!=null&&(t.apply(n,arguments),(e===`shift`||e===`splice`)&&n.length===0&&delete n[0]),Wy(this,n)}}),$v([`concat`,`join`,`slice`],function(e){var t=cg[e];h_.prototype[e]=function(){var e=this._wrapped;return e!=null&&(e=t.apply(e,arguments)),Wy(this,e)}});var Ky=h_,qy=Gy(s({VERSION:()=>og,after:()=>Bv,all:()=>oy,allKeys:()=>x_,any:()=>sy,assign:()=>B_,before:()=>Vv,bind:()=>Ov,bindAll:()=>jv,chain:()=>Tv,chunk:()=>Uy,clone:()=>G_,collect:()=>ey,compact:()=>My,compose:()=>zv,constant:()=>t_,contains:()=>cy,countBy:()=>Sy,create:()=>W_,debounce:()=>Iv,default:()=>Ky,defaults:()=>V_,defer:()=>Pv,delay:()=>Nv,detect:()=>Zv,difference:()=>Py,drop:()=>Ay,each:()=>$v,escape:()=>pv,every:()=>oy,extend:()=>z_,extendOwn:()=>B_,filter:()=>iy,find:()=>Zv,findIndex:()=>Gv,findKey:()=>Uv,findLastIndex:()=>Kv,findWhere:()=>Qv,first:()=>ky,flatten:()=>Ny,foldl:()=>ny,foldr:()=>ry,forEach:()=>$v,functions:()=>L_,get:()=>X_,groupBy:()=>by,has:()=>Z_,head:()=>ky,identity:()=>Q_,include:()=>cy,includes:()=>cy,indexBy:()=>xy,indexOf:()=>Yv,initial:()=>Oy,inject:()=>ny,intersection:()=>Ry,invert:()=>I_,invoke:()=>ly,isArguments:()=>Qg,isArray:()=>Yg,isArrayBuffer:()=>zg,isBoolean:()=>Ag,isDataView:()=>Jg,isDate:()=>Fg,isElement:()=>jg,isEmpty:()=>p_,isEqual:()=>b_,isError:()=>Lg,isFinite:()=>$g,isFunction:()=>Hg,isMap:()=>A_,isMatch:()=>m_,isNaN:()=>e_,isNull:()=>Og,isNumber:()=>Pg,isObject:()=>Dg,isRegExp:()=>Ig,isSet:()=>M_,isString:()=>Ng,isSymbol:()=>Rg,isTypedArray:()=>c_,isUndefined:()=>kg,isWeakMap:()=>j_,isWeakSet:()=>N_,iteratee:()=>rv,keys:()=>f_,last:()=>jy,lastIndexOf:()=>Xv,map:()=>ey,mapObject:()=>av,matcher:()=>$_,matches:()=>$_,max:()=>fy,memoize:()=>Mv,methods:()=>L_,min:()=>py,mixin:()=>Gy,negate:()=>Rv,noop:()=>ov,now:()=>uv,object:()=>Vy,omit:()=>Dy,once:()=>Hv,pairs:()=>F_,partial:()=>Dv,partition:()=>Cy,pick:()=>Ey,pluck:()=>uy,property:()=>ev,propertyOf:()=>sv,random:()=>lv,range:()=>Hy,reduce:()=>ny,reduceRight:()=>ry,reject:()=>ay,rest:()=>Ay,restArguments:()=>Eg,result:()=>Sv,sample:()=>gy,select:()=>iy,shuffle:()=>_y,size:()=>wy,some:()=>sy,sortBy:()=>vy,sortedIndex:()=>qv,tail:()=>Ay,take:()=>ky,tap:()=>K_,template:()=>xv,templateSettings:()=>hv,throttle:()=>Fv,times:()=>cv,toArray:()=>hy,toPath:()=>q_,transpose:()=>zy,unescape:()=>mv,union:()=>Ly,uniq:()=>Iy,unique:()=>Iy,uniqueId:()=>wv,unzip:()=>zy,values:()=>P_,where:()=>dy,without:()=>Fy,wrap:()=>Lv,zip:()=>By}));qy._=qy;var Jy={isEmpty(e){return p_(e)},values(e){return P_(e)},keys(e){return f_(e)},deepClone(e){return(0,ag.default)(e)},getEnumKeys(e){return Object.keys(e).filter(e=>!(parseInt(e)>=0))},isObject(e){return Dg(e)},isEqual(e,t){return b_(e,t)},omit(e,t){return Dy(e,t)},pick(e,t){return Ey(e,t)},removeEmptyKeys(e){return Object.entries(e).filter(([,e])=>e!=null).reduce((e,[t,n])=>({...e,[t]:n}),{})},flattenObjectToString(e,t=``,n=`,`){return Object.keys(e).sort().map(n=>{let r=t?`${t}.${n}`:n;return typeof e[n]==`object`&&!Array.isArray(e[n])?Jy.flattenObjectToString(e[n],r):`${r}:${e[n]}`}).join(n)},get(e,t,n){return(0,ig.default)(e,t,n)},swapKeysAndValues(e){return Object.entries(e).reduce((e,[t,n])=>({...e,[n]:t}),{})}},Yy=function(e){return e[e.Unclassified=0]=`Unclassified`,e[e.Active=1]=`Active`,e[e.Prospect=2]=`Prospect`,e[e.LostCustomer=3]=`LostCustomer`,e[e.Disabled=4]=`Disabled`,e[e.Other=5]=`Other`,e}({}),Xy=function(e){return e.Unclassified=`Unclassified`,e.Active=`Active`,e.Prospect=`Prospect`,e.LostCustomer=`LostCustomer`,e.Disabled=`Disabled`,e.Other=`Other`,e}({}),Zy={[Ku.Unclassified]:Gu.Unclassified,[Ku.Primary]:Gu.Primary,[Ku.Secondary]:Gu.Secondary,[Ku.K12]:Gu.K12,[Ku.Tertiary]:Gu.Tertiary,[Ku.NonEducational]:Gu.NonEducational,[Ku.Partners]:Gu.Partners,[Ku.Internal]:Gu.Internal,[Ku.Other]:Gu.Other,[Ku.ClickView]:Gu.ClickView,[Ku.System]:Gu.System},Qy=Jy.swapKeysAndValues(Zy),$y={[Xy.Unclassified]:Yy.Unclassified,[Xy.Active]:Yy.Active,[Xy.Prospect]:Yy.Prospect,[Xy.LostCustomer]:Yy.LostCustomer,[Xy.Disabled]:Yy.Disabled,[Xy.Other]:Yy.Other},eb=Jy.swapKeysAndValues($y),tb={getCustomerType(e){return typeof e==`string`?Zy[e]||Gu.Unclassified:e},getCustomerTypeString(e){return Qy[e]||Ku.Unclassified},getCustomerStatusString(e){return eb[e]||Xy.Unclassified}};function nb(e){switch(e.errorCode.toString()){case`user.invalid-first-name`:case`user.invalid-surname`:return{fullName:e.userMessage};case`user.invalid-password`:case`user.same-password`:case`user.password-too-short`:return{password:e.userMessage};case`user.invalid-jobtitle`:return{default:e.userMessage};default:return{}}}function rb(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({}),{productName:a}=Fd.getDefinition(e.theme);function o(t){let{jobTitle:n,password:a,confirmPassword:o}=t,{firstName:s,surname:c}=t,l={},[u,d]=$f.isPasswordValid(a,o,e.requireConfirmPassword);return u||(l.password=d),e.allowNameChange&&(!s||!c)&&(l.fullName=`Please enter your full name.`),e.allowJobTitleChange&&!n?.length&&(l.jobTitle=`Please enter your role..`),i({...r,...l}),!Object.keys(l).length}function s(t){if(!o(t))return;let r={token:e.token,appLink:e.appLink,userId:e.userId,email:e.email,password:t.password};e.allowNameChange&&(r.firstName=t.firstName,r.surname=t.surname),e.allowJobTitleChange&&(r.jobTitle=t.jobTitle),n(!0),yd.post(`/ajax/activate/complete`,r).then(t=>Ld(t,e)).catch(c)}function c(e){n(!1);let t=nb(e);i({...r,...t})}let l=e.customers?.some(e=>tb.getCustomerType(e.customerType)===Gu.Tertiary);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Welcome to ${a}`,children:`Create a password to login and get started`}),(0,Q.jsx)(Kp,{allowNameChange:e.allowNameChange,allowJobTitleChange:e.allowJobTitleChange,errors:r,setErrors:i,onSubmit:s,spinner:t,requireConfirmPassword:e.requireConfirmPassword,countryCode:e.countryCode,isTertiary:l})]})}function ib(e){return(0,Q.jsx)(`div`,{className:`svg-container d-flex justify-content-center align-items-center ${e.className}`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`M18.7827 5.19245C19.0472 5.47531 19.074 5.96669 18.8425 6.28996L9.93345 18.7344C9.81748 18.8964 9.65175 18.9924 9.47572 18.9996C9.29969 19.0067 9.12911 18.9244 9.00457 18.7722L5.18639 14.1055C4.93787 13.8018 4.93787 13.3093 5.18639 13.0056C5.4349 12.7019 5.83783 12.7019 6.08634 13.0056L9.42354 17.0844L17.8847 5.26562C18.1161 4.94235 18.5182 4.90959 18.7827 5.19245Z`})})})}var ab={name:`_name_bthu2_1`,background:`_background_bthu2_4`,spinnerButton:`_spinnerButton_bthu2_7`,containerNotJoined:`_containerNotJoined_bthu2_11`,checkCircle:`_checkCircle_bthu2_18`,checkIcon:`_checkIcon_bthu2_22`,logo:`_logo_bthu2_27`};function ob(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(!1),[a,o]=Z.useState(!1),s;s=typeof e.icon==`function`?e.icon:()=>(0,Q.jsx)(`img`,{alt:`icon`,className:`w-100 h-100 border rounded-circle border`,src:e.icon});function c(){n(!0),e.onClickJoin().then(()=>i(!0)).finally(()=>n(!1))}function l(){let t=`py-2 btn btn-lg mb-3 w-100`;return r?{onClick:e.onClickLogin,role:`button`,tabIndex:0,className:`${t} bg-light-blue`}:{className:`${t} bg-light-blue cursor-default ${ab.containerNotJoined}`}}return(0,Q.jsx)(`div`,{...l(),children:(0,Q.jsxs)(`div`,{className:`py-1 d-flex align-items-center`,children:[!a&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`span`,{className:`icon-circle rounded-circle text-white me-2 bg-blue d-flex justify-content-center align-items-center ${ab.logo}`,children:(0,Q.jsx)(s,{})}),(0,Q.jsx)(`span`,{className:`h6 mb-0 text-start me-2 ${ab.name}`,children:e.customerName})]}),r&&(0,Q.jsxs)(`div`,{className:`d-flex align-items-center ms-auto`,children:[(0,Q.jsx)(`div`,{className:`rounded-circle bg-green text-white me-2 d-flex align-items-center justify-content-center ${ab.checkCircle}`,children:(0,Q.jsx)(ib,{className:ab.checkIcon})}),(0,Q.jsx)(`div`,{className:`font-size-normal fw-semibold`,children:`Joined`}),(0,Q.jsx)(`span`,{className:`ms-1`,children:(0,Q.jsx)(wf,{})})]}),!r&&!a&&(0,Q.jsxs)(`span`,{className:`ms-auto d-flex align-items-center`,children:[(0,Q.jsx)(nd,{onClick:c,className:`btn btn-outline-dark font-weight-600 text-nowrap ${ab.spinnerButton}`,showSpinner:t,children:`Accept invite`}),e.canDeletePendingInvites&&(0,Q.jsx)(`button`,{onClick:()=>o(!0),className:`btn btn-link p-0 mx-1`,children:(0,Q.jsx)(`div`,{className:`svg-container`,children:(0,Q.jsx)(rd,{})})})]}),!r&&a&&(0,Q.jsxs)(`div`,{className:`font-size-normal d-flex align-items-center text-nowrap py-1`,children:[(0,Q.jsx)(`div`,{children:`Are you sure?`}),`\xA0`,(0,Q.jsx)(`button`,{className:`btn btn-link text-danger p-0`,onClick:e.onClickReject,children:`Decline invitation`}),`\xA0|\xA0`,(0,Q.jsx)(`button`,{className:`btn btn-link text-info p-0`,onClick:()=>o(!1),children:`Go back`})]})]})})}function sb(e){let{navigate:t,customers:n,returnUrl:r,isChangeCustomer:i,organisation:a,backStep:o,email:s}=e,[c,l]=Z.useState(null),[u,d]=Z.useState(null),[f,p]=Z.useState([]),m=e.pendingInvites?.filter(e=>!f.includes(e.customerId))??[],h=!!a&&!o;function g(){if(!s){t({step:`verify-email`,canSkip:!1});return}e.navigate({step:`prospect-select`,backStep:`select-customer`})}function _(t){let n=i?`/ajax/change-customer`:`/ajax/login/select-customer`;yd.post(n,{customerId:t,returnUrl:r}).then(t=>Ld(t,e,{backStep:`select-customer`})).catch(e=>{d(e.userMessage||`Something went wrong. Please try again.`)})}function v(e){_(e.id)}function y(){c&&_(c.id)}function b(e){return new Promise((t,n)=>{yd.post(`/ajax/login/accept-invite`,{userProfileId:e}).then(t).catch(e=>{d(e.userMessage||`Something went wrong. Please try again.`),n()})})}function x(e,t){yd.post(`/ajax/login/deny-invite`,{userProfileId:t}).then(()=>{p(t=>t.concat(e))}).catch(e=>{d(e.userMessage||`Something went wrong. Please try again.`)})}function S(){t({step:`organisation-select-customer`,backStep:`select-customer`})}function C(){t({step:o,backStep:null})}return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:o&&C,title:`Welcome back ${e.firstName||``} 👋`,children:!!e.email&&(0,Q.jsx)(bp,{children:e.email})}),(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Schools`}),n?.length?(0,Q.jsx)(Q.Fragment,{children:n.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:`mb-3`,children:(0,Q.jsx)(Rf,{id:`school`,item:c,items:n,onSelect:l,getName:e=>e.name,clearData:()=>l(null),placeholder:`Select a school`,size:`lg`})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,disabled:!c,onClick:y,children:`Continue`})]}):(0,Q.jsx)(Q.Fragment,{children:n?.map((e,t)=>(0,Q.jsx)(Df,{onClick:()=>v(e),text:e.name,icon:kf.buildAvatarUrl(e.logoUrl,{size:`small`})||Of,className:`mb-3`},t))})}):(0,Q.jsxs)(`div`,{className:`border border-secondary-subtle rounded-3 w-100 p-3 mb-3 d-flex align-items-center`,children:[(0,Q.jsx)(`span`,{className:`icon-circle rounded-circle text-white me-2 bg-secondary d-flex justify-content-center align-items-center`,children:(0,Q.jsx)(Of,{})}),(0,Q.jsx)(`span`,{className:`mb-0 fst-italic text-secondary`,children:`You currently don't have access to any schools`})]}),!!m?.length&&(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Pending Invitations`}),m.map(t=>(0,Q.jsx)(ob,{customerName:t.name,icon:kf.buildAvatarUrl(t.logoUrl,{size:`small`})||Of,onClickJoin:()=>b(t.userProfileId),onClickReject:()=>x(t.customerId,t.userProfileId),onClickLogin:()=>_(t.customerId),canDeletePendingInvites:e.canDeletePendingInvites},t.userProfileId))]}),!n?.length&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Waiting on a school admin?`}),(0,Q.jsx)(`p`,{className:`text-secondary mb-0`,children:s?(0,Q.jsxs)(Q.Fragment,{children:[`Ask them to invite `,(0,Q.jsx)(`strong`,{children:s}),` to access your school.`]}):(0,Q.jsx)(Q.Fragment,{children:`Speak to your school admin to get added in their ClickView admin console.`})})]}),e.showCreateProspect&&(0,Q.jsx)(`hr`,{}),e.showCreateProspect&&(0,Q.jsxs)(`div`,{className:`d-flex align-items-center justify-content-between mb-3`,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`p`,{className:`font-weight-600 mb-1`,children:`Evaluating ClickView on your own?`}),(0,Q.jsx)(`p`,{className:`text-secondary mb-0`,children:`Start a free trial.`})]}),(0,Q.jsx)(`button`,{className:`btn btn-outline-dark font-weight-600 text-nowrap ms-3`,onClick:g,children:`Start trial`})]}),!h&&ld.contactSupport&&(0,Q.jsxs)(`p`,{className:`text-center text-secondary mt-5`,children:[`Stuck, or think this is wrong? `,(0,Q.jsx)(`a`,{href:ld.contactSupport,target:`_blank`,children:`Contact support`})]})]}),h&&(0,Q.jsx)(`div`,{className:`text-center mt-3`,children:(0,Q.jsxs)(`button`,{className:`btn btn-link text-info`,onClick:S,children:[`Sign into another school in `,(0,Q.jsx)(`strong`,{children:a.name})]})}),u&&(0,Q.jsx)(`div`,{className:`text-danger text-center`,children:u})]})}var cb=ld.marketingSite,lb=function(e){return e.Demo=`/contact-us/sales`,e.DemoUK=`/contact-us/trial/`,e.DemoNZ=`/contact-us/`,e.Upgrade=`/contact-us/trial-upgrade/`,e}(lb||{}),ub={[$.NZ]:lb.DemoNZ,[$.UK]:lb.DemoUK,[$.AU]:lb.Demo,[$.US]:lb.Demo,[$.CA]:lb.Demo};function db(e,t){let{email:n,firstName:r,surname:i,salesforceId:a,countryCode:o}=e;if(!n)return null;let s=cb[o.toLowerCase()]||cb[$.US];if(!s)return null;let c={email:n};return r&&(c.fname=r),i&&(c.sname=i),a&&(c.id=a),`${s}${t}?${new URLSearchParams(c).toString()}`}function fb(e){let t=ub[e.countryCode.toLowerCase()]||ub[$.US];return t?db(e,t):null}function pb(e){return db(e,lb.Upgrade)}function mb(e){return!(!e||e.toLowerCase()===`teacher`)}var hb={[$.AU]:`02 9509 2600`,[$.UK]:`+44 (0)333 207 6595`,[$.NZ]:`09 916 1156`,[$.US]:`+1 (312) 763-9491`,[$.CA]:`+1 (312) 763-9491`};function gb(e){let{email:t,firstName:n,surname:r,jobTitle:i,countryCode:a,salesforceId:o,userType:s}=e,c={email:t,firstName:n,surname:r,countryCode:a,salesforceId:o},l=hb[a.toLowerCase()]||hb[$.US],u=fb(c),d=pb(c),{productName:f}=Fd.getDefinition(e.theme);return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(td,{theme:e.theme}),(0,Q.jsx)(`img`,{className:`img-fluid mb-4`,alt:`error`,src:`/images/errors/trial-expired.png`}),(0,Q.jsxs)(`h1`,{className:`h2`,children:[`Your `,f,` trial has ended`]}),s===`Learner`?(0,Q.jsx)(Q.Fragment,{}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`p`,{children:[`Learn more about how to upgrade and access all features available on `,f,`.`]}),(0,Q.jsx)(`div`,{className:`text-center`,children:u&&mb(i)?(0,Q.jsx)(`a`,{href:u,className:`btn btn-lg btn-dark`,children:`Book a call`}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`a`,{href:d,className:`btn btn-lg btn-dark w-100`,children:`Request upgrade`}),l&&(0,Q.jsxs)(`p`,{children:[`or `,(0,Q.jsx)(`br`,{}),`Speak to a team member on `,(0,Q.jsx)(`b`,{children:(0,Q.jsx)(`a`,{href:`tel:${l}`,children:l})})]})]})})]})]})}var _b=o(((e,t)=>{(function(){var e,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?t.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},n=process.hrtime,e=function(){var e=n();return e[0]*1e9+e[1]},i=e(),o=process.uptime()*1e9,a=i-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(e)})),vb=o(((e,t)=>{for(var n=_b(),r=typeof window>`u`?globalThis:window,i=[`moz`,`webkit`],a=`AnimationFrame`,o=r[`request`+a],s=r[`cancel`+a]||r[`cancelRequest`+a],c=0;!o&&c<i.length;c++)o=r[i[c]+`Request`+a],s=r[i[c]+`Cancel`+a]||r[i[c]+`CancelRequest`+a];if(!o||!s){var l=0,u=0,d=[],f=1e3/60;o=function(e){if(d.length===0){var t=n(),r=Math.max(0,f-(t-l));l=r+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return d.push({handle:++u,callback:e,cancelled:!1}),u},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return o.call(r,e)},t.exports.cancel=function(){s.apply(r,arguments)},t.exports.polyfill=function(e){e||=r,e.requestAnimationFrame=o,e.cancelAnimationFrame=s}})),yb=o(((e,t)=>{var n=null,r=[`Webkit`,`Moz`,`O`,`ms`];t.exports=function(e){n||=document.createElement(`div`);var t=n.style;if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),a=r.length;a>=0;a--){var o=r[a]+i;if(o in t)return o}return!1}})),bb=o(((e,t)=>{t.exports=a;var n=/\s/,r=/(_|-|\.|:)/,i=/([a-z][A-Z]|[A-Z][a-z])/;function a(e){return n.test(e)?e.toLowerCase():r.test(e)?(s(e)||e).toLowerCase():i.test(e)?l(e).toLowerCase():e.toLowerCase()}var o=/[\W_]+(.|$)/g;function s(e){return e.replace(o,function(e,t){return t?` `+t:``})}var c=/(.)([A-Z]+)/g;function l(e){return e.replace(c,function(e,t,n){return t+` `+n.toLowerCase().split(``).join(` `)})}})),xb=o(((e,t)=>{var n=bb();t.exports=r;function r(e){return n(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?` `+t:``}).trim()}})),Sb=o(((e,t)=>{var n=xb();t.exports=r;function r(e){return n(e).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}})),Cb=o(((e,t)=>{var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};t.exports=function(e,t){return typeof t==`number`&&!n[e]?t+`px`:t}})),wb=o(((e,t)=>{var n=yb(),r=Sb(),i={float:`cssFloat`},a=Cb();function o(e,t,n){var r=i[t];if(r===void 0&&(r=c(t)),r){if(n===void 0)return e.style[r];e.style[r]=a(r,n)}}function s(e,t){for(var n in t)t.hasOwnProperty(n)&&o(e,n,t[n])}function c(e){var t=r(e),a=n(t);return i[t]=i[e]=i[a]=a,a}function l(){arguments.length===2?typeof arguments[1]==`string`?arguments[0].style.cssText=arguments[1]:s(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}t.exports=l,t.exports.set=l,t.exports.get=function(e,t){return Array.isArray(t)?t.reduce(function(t,n){return t[n]=o(e,n||``),t},{}):o(e,t||``)}})),Tb=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Eb=o(((e,t)=>{var n=Tb();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Db=o(((e,t)=>{t.exports=Eb()()})),Ob=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){return typeof e==`string`}})),kb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var t=n(wb());function n(e){return e&&e.__esModule?e:{default:e}}var r=!1;function i(){if((!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])&&r!==!1)return r;if(typeof document<`u`){var e=document.createElement(`div`);(0,t.default)(e,{width:100,height:100,position:`absolute`,top:-9999,overflow:`scroll`,MsOverflowStyle:`scrollbar`}),document.body.appendChild(e),r=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else r=0;return r||0}})),Ab=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(){return!1}})),jb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,i=n.paddingRight;return t-parseFloat(r)-parseFloat(i)}})),Mb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,i=n.paddingBottom;return t-parseFloat(r)-parseFloat(i)}})),Nb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.containerStyleDefault={position:`relative`,overflow:`hidden`,width:`100%`,height:`100%`},e.containerStyleAutoHeight={height:`auto`},e.viewStyleDefault={position:`absolute`,top:0,left:0,right:0,bottom:0,overflow:`scroll`,WebkitOverflowScrolling:`touch`},e.viewStyleAutoHeight={position:`relative`,top:void 0,left:void 0,right:void 0,bottom:void 0},e.viewStyleUniversalInitial={overflow:`hidden`,marginRight:0,marginBottom:0},e.trackHorizontalStyleDefault={position:`absolute`,height:6},e.trackVerticalStyleDefault={position:`absolute`,width:6},e.thumbHorizontalStyleDefault={position:`relative`,display:`block`,height:`100%`},e.thumbVerticalStyleDefault={position:`relative`,display:`block`,width:`100%`},e.disableSelectStyle={userSelect:`none`},e.disableSelectStyleReset={userSelect:``}})),Pb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.renderViewDefault=a,e.renderTrackHorizontalDefault=o,e.renderTrackVerticalDefault=s,e.renderThumbHorizontalDefault=c,e.renderThumbVerticalDefault=l;var n=r(zu());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return n.default.createElement(`div`,e)}function o(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{right:2,bottom:2,left:2,borderRadius:3});return n.default.createElement(`div`,t({style:o},a))}function s(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{right:2,bottom:2,top:2,borderRadius:3});return n.default.createElement(`div`,t({style:o},a))}function c(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{cursor:`pointer`,borderRadius:`inherit`,backgroundColor:`rgba(0,0,0,.2)`});return n.default.createElement(`div`,t({style:o},a))}function l(e){var r=e.style,a=i(e,[`style`]),o=t({},r,{cursor:`pointer`,borderRadius:`inherit`,backgroundColor:`rgba(0,0,0,.2)`});return n.default.createElement(`div`,t({style:o},a))}})),Fb=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=vb(),i=h(r),a=h(wb()),o=zu(),s=h(Db()),c=h(Ob()),l=h(kb()),u=h(Ab()),d=h(jb()),f=h(Mb()),p=Nb(),m=Pb();function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function v(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function y(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=function(e){y(s,e);function s(e){var t;_(this,s);var n=[...arguments].slice(1),r=v(this,(t=s.__proto__||Object.getPrototypeOf(s)).call.apply(t,[this,e].concat(n)));return r.getScrollLeft=r.getScrollLeft.bind(r),r.getScrollTop=r.getScrollTop.bind(r),r.getScrollWidth=r.getScrollWidth.bind(r),r.getScrollHeight=r.getScrollHeight.bind(r),r.getClientWidth=r.getClientWidth.bind(r),r.getClientHeight=r.getClientHeight.bind(r),r.getValues=r.getValues.bind(r),r.getThumbHorizontalWidth=r.getThumbHorizontalWidth.bind(r),r.getThumbVerticalHeight=r.getThumbVerticalHeight.bind(r),r.getScrollLeftForOffset=r.getScrollLeftForOffset.bind(r),r.getScrollTopForOffset=r.getScrollTopForOffset.bind(r),r.scrollLeft=r.scrollLeft.bind(r),r.scrollTop=r.scrollTop.bind(r),r.scrollToLeft=r.scrollToLeft.bind(r),r.scrollToTop=r.scrollToTop.bind(r),r.scrollToRight=r.scrollToRight.bind(r),r.scrollToBottom=r.scrollToBottom.bind(r),r.handleTrackMouseEnter=r.handleTrackMouseEnter.bind(r),r.handleTrackMouseLeave=r.handleTrackMouseLeave.bind(r),r.handleHorizontalTrackMouseDown=r.handleHorizontalTrackMouseDown.bind(r),r.handleVerticalTrackMouseDown=r.handleVerticalTrackMouseDown.bind(r),r.handleHorizontalThumbMouseDown=r.handleHorizontalThumbMouseDown.bind(r),r.handleVerticalThumbMouseDown=r.handleVerticalThumbMouseDown.bind(r),r.handleWindowResize=r.handleWindowResize.bind(r),r.handleScroll=r.handleScroll.bind(r),r.handleDrag=r.handleDrag.bind(r),r.handleDragEnd=r.handleDragEnd.bind(r),r.state={didMountUniversal:!1},r}return n(s,[{key:`componentDidMount`,value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:`componentDidMountUniversal`,value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:`componentDidUpdate`,value:function(){this.update()}},{key:`componentWillUnmount`,value:function(){this.removeListeners(),(0,r.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:`getScrollLeft`,value:function(){return this.view?this.view.scrollLeft:0}},{key:`getScrollTop`,value:function(){return this.view?this.view.scrollTop:0}},{key:`getScrollWidth`,value:function(){return this.view?this.view.scrollWidth:0}},{key:`getScrollHeight`,value:function(){return this.view?this.view.scrollHeight:0}},{key:`getClientWidth`,value:function(){return this.view?this.view.clientWidth:0}},{key:`getClientHeight`,value:function(){return this.view?this.view.clientHeight:0}},{key:`getValues`,value:function(){var e=this.view||{},t=e.scrollLeft,n=t===void 0?0:t,r=e.scrollTop,i=r===void 0?0:r,a=e.scrollWidth,o=a===void 0?0:a,s=e.scrollHeight,c=s===void 0?0:s,l=e.clientWidth,u=l===void 0?0:l,d=e.clientHeight,f=d===void 0?0:d;return{left:n/(o-u)||0,top:i/(c-f)||0,scrollLeft:n,scrollTop:i,scrollWidth:o,scrollHeight:c,clientWidth:u,clientHeight:f}}},{key:`getThumbHorizontalWidth`,value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollWidth,a=r.clientWidth,o=(0,d.default)(this.trackHorizontal),s=Math.ceil(a/i*o);return o<=s?0:t||Math.max(s,n)}},{key:`getThumbVerticalHeight`,value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,i=r.scrollHeight,a=r.clientHeight,o=(0,f.default)(this.trackVertical),s=Math.ceil(a/i*o);return o<=s?0:t||Math.max(s,n)}},{key:`getScrollLeftForOffset`,value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,d.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:`getScrollTopForOffset`,value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,f.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:`scrollLeft`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:`scrollTop`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:`scrollToLeft`,value:function(){this.view&&(this.view.scrollLeft=0)}},{key:`scrollToTop`,value:function(){this.view&&(this.view.scrollTop=0)}},{key:`scrollToRight`,value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:`scrollToBottom`,value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:`addListeners`,value:function(){if(!(typeof document>`u`||!this.view)){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.addEventListener(`scroll`,this.handleScroll),(0,l.default)()&&(t.addEventListener(`mouseenter`,this.handleTrackMouseEnter),t.addEventListener(`mouseleave`,this.handleTrackMouseLeave),t.addEventListener(`mousedown`,this.handleHorizontalTrackMouseDown),n.addEventListener(`mouseenter`,this.handleTrackMouseEnter),n.addEventListener(`mouseleave`,this.handleTrackMouseLeave),n.addEventListener(`mousedown`,this.handleVerticalTrackMouseDown),r.addEventListener(`mousedown`,this.handleHorizontalThumbMouseDown),i.addEventListener(`mousedown`,this.handleVerticalThumbMouseDown),window.addEventListener(`resize`,this.handleWindowResize))}}},{key:`removeListeners`,value:function(){if(!(typeof document>`u`||!this.view)){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,i=this.thumbVertical;e.removeEventListener(`scroll`,this.handleScroll),(0,l.default)()&&(t.removeEventListener(`mouseenter`,this.handleTrackMouseEnter),t.removeEventListener(`mouseleave`,this.handleTrackMouseLeave),t.removeEventListener(`mousedown`,this.handleHorizontalTrackMouseDown),n.removeEventListener(`mouseenter`,this.handleTrackMouseEnter),n.removeEventListener(`mouseleave`,this.handleTrackMouseLeave),n.removeEventListener(`mousedown`,this.handleVerticalTrackMouseDown),r.removeEventListener(`mousedown`,this.handleHorizontalThumbMouseDown),i.removeEventListener(`mousedown`,this.handleVerticalThumbMouseDown),window.removeEventListener(`resize`,this.handleWindowResize),this.teardownDragging())}}},{key:`handleScroll`,value:function(e){var t=this,n=this.props,r=n.onScroll,i=n.onScrollFrame;r&&r(e),this.update(function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,i&&i(e)}),this.detectScrolling()}},{key:`handleScrollStart`,value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:`handleScrollStartAutoHide`,value:function(){this.props.autoHide&&this.showTracks()}},{key:`handleScrollStop`,value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:`handleScrollStopAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`handleWindowResize`,value:function(){(0,l.default)(!1),this.forceUpdate()}},{key:`handleHorizontalTrackMouseDown`,value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,i=this.getThumbHorizontalWidth(),a=Math.abs(r-n)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}},{key:`handleVerticalTrackMouseDown`,value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,i=this.getThumbVerticalHeight(),a=Math.abs(r-n)-i/2;this.view.scrollTop=this.getScrollTopForOffset(a)}},{key:`handleHorizontalThumbMouseDown`,value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX;this.prevPageX=t.offsetWidth-(n-t.getBoundingClientRect().left)}},{key:`handleVerticalThumbMouseDown`,value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY;this.prevPageY=t.offsetHeight-(n-t.getBoundingClientRect().top)}},{key:`setupDragging`,value:function(){(0,a.default)(document.body,p.disableSelectStyle),document.addEventListener(`mousemove`,this.handleDrag),document.addEventListener(`mouseup`,this.handleDragEnd),document.onselectstart=u.default}},{key:`teardownDragging`,value:function(){(0,a.default)(document.body,p.disableSelectStyleReset),document.removeEventListener(`mousemove`,this.handleDrag),document.removeEventListener(`mouseup`,this.handleDragEnd),document.onselectstart=void 0}},{key:`handleDragStart`,value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:`handleDrag`,value:function(e){if(this.prevPageX){var t=e.clientX,n=this.trackHorizontal.getBoundingClientRect().left,r=this.getThumbHorizontalWidth()-this.prevPageX,i=-n+t-r;this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){var a=e.clientY,o=this.trackVertical.getBoundingClientRect().top,s=this.getThumbVerticalHeight()-this.prevPageY,c=-o+a-s;this.view.scrollTop=this.getScrollTopForOffset(c)}return!1}},{key:`handleDragEnd`,value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:`handleDragEndAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`handleTrackMouseEnter`,value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:`handleTrackMouseEnterAutoHide`,value:function(){this.props.autoHide&&this.showTracks()}},{key:`handleTrackMouseLeave`,value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:`handleTrackMouseLeaveAutoHide`,value:function(){this.props.autoHide&&this.hideTracks()}},{key:`showTracks`,value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:`hideTracks`,value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,a.default)(e.trackHorizontal,{opacity:0}),(0,a.default)(e.trackVertical,{opacity:0})},t)}}},{key:`detectScrolling`,value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))}},{key:`raf`,value:function(e){var t=this;this.requestFrame&&i.default.cancel(this.requestFrame),this.requestFrame=(0,i.default)(function(){t.requestFrame=void 0,e()})}},{key:`update`,value:function(e){var t=this;this.raf(function(){return t._update(e)})}},{key:`_update`,value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,i=this.getValues();if((0,l.default)()){var o=i.scrollLeft,s=i.clientWidth,c=i.scrollWidth,u=(0,d.default)(this.trackHorizontal),p=this.getThumbHorizontalWidth(),m={width:p,transform:`translateX(`+o/(c-s)*(u-p)+`px)`},h=i.scrollTop,g=i.clientHeight,_=i.scrollHeight,v=(0,f.default)(this.trackVertical),y=this.getThumbVerticalHeight(),b={height:y,transform:`translateY(`+h/(_-g)*(v-y)+`px)`};if(r){var x={visibility:c>s?`visible`:`hidden`},S={visibility:_>g?`visible`:`hidden`};(0,a.default)(this.trackHorizontal,x),(0,a.default)(this.trackVertical,S)}(0,a.default)(this.thumbHorizontal,m),(0,a.default)(this.thumbVertical,b)}n&&n(i),typeof e==`function`&&e(i)}},{key:`render`,value:function(){var e=this,n=(0,l.default)(),r=this.props;r.onScroll,r.onScrollFrame,r.onScrollStart,r.onScrollStop,r.onUpdate;var i=r.renderView,a=r.renderTrackHorizontal,s=r.renderTrackVertical,u=r.renderThumbHorizontal,d=r.renderThumbVertical,f=r.tagName;r.hideTracksWhenNotNeeded;var m=r.autoHide;r.autoHideTimeout;var h=r.autoHideDuration;r.thumbSize,r.thumbMinSize;var _=r.universal,v=r.autoHeight,y=r.autoHeightMin,b=r.autoHeightMax,x=r.style,S=r.children,C=g(r,[`onScroll`,`onScrollFrame`,`onScrollStart`,`onScrollStop`,`onUpdate`,`renderView`,`renderTrackHorizontal`,`renderTrackVertical`,`renderThumbHorizontal`,`renderThumbVertical`,`tagName`,`hideTracksWhenNotNeeded`,`autoHide`,`autoHideTimeout`,`autoHideDuration`,`thumbSize`,`thumbMinSize`,`universal`,`autoHeight`,`autoHeightMin`,`autoHeightMax`,`style`,`children`]),w=this.state.didMountUniversal,T=t({},p.containerStyleDefault,v&&t({},p.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),x),E=t({},p.viewStyleDefault,{marginRight:n?-n:0,marginBottom:n?-n:0},v&&t({},p.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?`calc(`+y+` + `+n+`px)`:y+n,maxHeight:(0,c.default)(b)?`calc(`+b+` + `+n+`px)`:b+n}),v&&_&&!w&&{minHeight:y,maxHeight:b},_&&!w&&p.viewStyleUniversalInitial),D={transition:`opacity `+h+`ms`,opacity:0},O=t({},p.trackHorizontalStyleDefault,m&&D,(!n||_&&!w)&&{display:`none`}),k=t({},p.trackVerticalStyleDefault,m&&D,(!n||_&&!w)&&{display:`none`});return(0,o.createElement)(f,t({},C,{style:T,ref:function(t){e.container=t}}),[(0,o.cloneElement)(i({style:E}),{key:`view`,ref:function(t){e.view=t}},S),(0,o.cloneElement)(a({style:O}),{key:`trackHorizontal`,ref:function(t){e.trackHorizontal=t}},(0,o.cloneElement)(u({style:p.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,o.cloneElement)(s({style:k}),{key:`trackVertical`,ref:function(t){e.trackVertical=t}},(0,o.cloneElement)(d({style:p.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),s}(o.Component);e.default=b,b.propTypes={onScroll:s.default.func,onScrollFrame:s.default.func,onScrollStart:s.default.func,onScrollStop:s.default.func,onUpdate:s.default.func,renderView:s.default.func,renderTrackHorizontal:s.default.func,renderTrackVertical:s.default.func,renderThumbHorizontal:s.default.func,renderThumbVertical:s.default.func,tagName:s.default.string,thumbSize:s.default.number,thumbMinSize:s.default.number,hideTracksWhenNotNeeded:s.default.bool,autoHide:s.default.bool,autoHideTimeout:s.default.number,autoHideDuration:s.default.number,autoHeight:s.default.bool,autoHeightMin:s.default.oneOfType([s.default.number,s.default.string]),autoHeightMax:s.default.oneOfType([s.default.number,s.default.string]),universal:s.default.bool,style:s.default.object,children:s.default.node},b.defaultProps={renderView:m.renderViewDefault,renderTrackHorizontal:m.renderTrackHorizontalDefault,renderTrackVertical:m.renderTrackVerticalDefault,renderThumbHorizontal:m.renderThumbHorizontalDefault,renderThumbVertical:m.renderThumbVerticalDefault,tagName:`div`,thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})),Ib=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scrollbars=void 0;var t=n(Fb());function n(e){return e&&e.__esModule?e:{default:e}}e.default=t.default,e.Scrollbars=t.default}))(),Lb={avatar:`_avatar_14f3v_1`,circle:`_circle_14f3v_1`};function Rb(e){return e.logoUrl?(0,Q.jsx)(`div`,{className:`h-100`,children:(0,Q.jsx)(`img`,{alt:e.customerName,className:`rounded-circle ${Lb.avatar}`,src:e.logoUrl})}):(0,Q.jsx)(`div`,{className:`${Lb.circle} ${e.colourClass||`bg-ultramarine`} text-white rounded-circle`,children:(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:`svg-container lg`,children:(0,Q.jsx)(`path`,{d:`M 19.53125,14.5438 H 16.9875 v -4.28056 l 0.34144,0.15522 c 0.0629,0.0286 0.12884,0.0421 0.19372,0.0421 0.17815,0 0.34843,-0.10215 0.427,-0.2749 0.10712,-0.23569 0.003,-0.51357 -0.23278,-0.62069 L 12.46875,7.17941 V 5.43956 h 1.53962 c 0.25885,0 0.46875,-0.20987 0.46875,-0.46875 V 4.46875 C 14.47712,4.20987 14.26722,4 14.00837,4 H 12 C 11.74116,4 11.53125,4.20987 11.53125,4.46875 V 7.17941 L 6.28316,9.56494 c -0.23566,0.10712 -0.33991,0.385 -0.23272,0.62068 0.10706,0.23569 0.385,0.33985 0.62065,0.23275 l 0.34144,-0.15521 v 4.28059 H 4.46875 C 4.20991,14.54375 4,14.75362 4,15.0125 v 4.51875 C 4,19.79012 4.20991,20 4.46875,20 h 3.0125 3.0125 3.01244 3.0125 3.01256 C 19.79016,20.00005 20,19.79017 20,19.5313 V 15.01255 C 20,14.75367 19.79016,14.5438 19.53125,14.5438 Z M 7.0125,19.06255 H 4.9375 V 15.4813 h 2.075 z m 6.02497,0 h -2.07494 v -2.07497 h 2.07494 z m 3.01253,-4.05 v 4.05 h -2.075 v -2.54372 c 0,-0.25887 -0.20984,-0.46875 -0.46875,-0.46875 h -3.01244 c -0.25884,0 -0.46875,0.20988 -0.46875,0.46875 v 2.54372 h -2.075 v -4.05 H 7.95 V 9.83708 L 12,7.99617 16.05,9.83708 Z m 3.0125,4.05 h -2.075 V 15.4813 h 2.075 z M 12,10.0608 c -1.089,0 -1.97497,0.88594 -1.97497,1.97497 0,1.089 0.88597,1.975 1.97497,1.975 1.08906,0 1.97497,-0.886 1.97497,-1.975 0,-1.08903 -0.88594,-1.97497 -1.97497,-1.97497 z m 0,3.01244 c -0.57203,0 -1.03747,-0.46544 -1.03747,-1.0375 0,-0.57203 0.46544,-1.03747 1.03747,-1.03747 0.57209,0 1.03747,0.4654 1.03747,1.03747 0,0.57209 -0.46541,1.0375 -1.03747,1.0375 z`})})})}var zb=[`second`,`minute`,`hour`,`day`,`week`,`month`,`year`];function Bb(e,t){if(t===0)return[`just now`,`right now`];var n=zb[Math.floor(t/2)];return e>1&&(n+=`s`),[e+` `+n+` ago`,`in `+e+` `+n]}var Vb=[`秒`,`分钟`,`小时`,`天`,`周`,`个月`,`年`];function Hb(e,t){if(t===0)return[`刚刚`,`片刻后`];var n=Vb[~~(t/2)];return[e+` `+n+`前`,e+` `+n+`后`]}var Ub={},Wb=function(e,t){Ub[e]=t},Gb=function(e){return Ub[e]||Ub.en_US},Kb=[60,60,24,7,365/7/12,12];function qb(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||``).trim().replace(/\.\d+/,``).replace(/-/,`/`).replace(/-/,`/`).replace(/(\d)T(\d)/,`$1 $2`).replace(/Z/,` UTC`).replace(/([+-]\d\d):?(\d\d)/,` $1$2`),new Date(e))}function Jb(e,t){var n=e<0?1:0;e=Math.abs(e);for(var r=e,i=0;e>=Kb[i]&&i<Kb.length;i++)e/=Kb[i];return e=Math.floor(e),i*=2,e>(i===0?9:1)&&(i+=1),t(e,i,r)[n].replace(`%s`,e.toString())}function Yb(e,t){return((t?qb(t):new Date)-+qb(e))/1e3}var Xb=function(e,t,n){return Jb(Yb(e,n&&n.relativeDate),Gb(t))};Wb(`en_US`,Bb),Wb(`zh_CN`,Hb);var Zb={tile:`_tile_wesrn_1`,avatar:`_avatar_wesrn_5`,email:`_email_wesrn_9`,subheading:`_subheading_wesrn_12`};function Qb(e){let t=kf.buildAvatarUrl(e.avatarUrl,{size:`small`});return(0,Q.jsxs)(`div`,{className:`container my-4 p-3 rounded-3 ${Zb.tile}`,children:[(0,Q.jsx)(`p`,{className:`${Zb.subheading} mb-0`,children:`Account:`}),(0,Q.jsxs)(`div`,{className:`d-flex align-items-center pb-3`,children:[(0,Q.jsx)(`div`,{className:`h-100`,children:(0,Q.jsx)(`img`,{alt:`Avatar`,className:`rounded-circle ${Zb.avatar}`,src:t})}),(0,Q.jsxs)(`div`,{className:`ms-2`,children:[(0,Q.jsxs)(`p`,{className:`mb-1 text-break mt-2`,children:[e.firstName,` `,e.surname]}),(0,Q.jsx)(`p`,{className:`mb-1 ${Zb.email}`,children:e.email}),(0,Q.jsx)(`p`,{className:`m-0 text-secondary`,children:e.lastSignInTime?(0,Q.jsxs)(Q.Fragment,{children:[`Last logged in `,Xb(e.lastSignInTime)]}):(0,Q.jsx)(Q.Fragment,{children:`No login history`})})]})]}),(0,Q.jsx)(`p`,{className:Zb.subheading,children:`Has access to:`}),e.customers?.length?(0,Q.jsx)(Ib.Scrollbars,{autoHeightMax:200,autoHeight:!0,children:(0,Q.jsx)(`div`,{className:`mb-n2`,children:e.customers.map(e=>(0,Q.jsxs)(`div`,{className:`d-flex align-items-center mb-2`,children:[(0,Q.jsx)(Rb,{logoUrl:kf.buildAvatarUrl(e.logoUrl,{size:`small`}),customerName:e.name}),(0,Q.jsx)(`p`,{className:`mb-0 ms-2 text-break`,children:e.name})]},e.id))})}):(0,Q.jsxs)(`div`,{className:`d-flex align-items-center`,children:[(0,Q.jsx)(Rb,{logoUrl:``,colourClass:`bg-gray-500`}),(0,Q.jsx)(`p`,{className:`mb-0 ms-2 text-break text-secondary`,children:`No schools`})]})]})}function $b(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(!1);function a(){i(!0);let t={userId:e.userId,email:e.email,idpId:e.idpId,externalUserId:e.externalUserId};yd.post(`/ajax/external/link-account`,t).then(t=>Ld(t,e)).catch(e=>{i(!1),n(e.userMessage||`Something went wrong`)})}function o(){yd.post(`/ajax/external/continue`,{returnUrl:e.returnUrl,createWithoutEmail:!0}).then(t=>Ld(t,e,{createWithoutEmail:!0})).catch(e=>{i(!1),n(e.userMessage||`Something went wrong`)})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`It looks like you already have an account`,children:`We've found an existing account using the same email - would you like to link your accounts?`}),(0,Q.jsx)(Qb,{firstName:e.firstName,surname:e.surname,avatarUrl:e.avatarUrl,email:e.email,lastSignInTime:e.lastSignInTime,customers:e.customers}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,showSpinner:r,type:`button`,onClick:a,children:`Link existing account`}),!!t&&(0,Q.jsx)(xf,{name:`linkAccount`,children:t}),e.showCreateNewAccount&&(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 mt-2 no-sso-link`,onClick:o,children:`Create new account`})]})}function ex(e){let{navigate:t,userId:n,email:r,externalUserId:i,idpId:a,returnUrl:o,theme:s}=e;function c(){t({step:`link-account`})}function l(){return yd.post(`/ajax/external/continue`,{returnUrl:o}).then(t=>Ld(t,e))}function u(e){return yd.post(`/ajax/external/link-account-code`,{code:e,userId:n,email:r,idpId:a,externalUserId:i}).then(l)}return(0,Q.jsx)(sp,{navigate:t,theme:s,title:`Enter code`,description:(0,Q.jsxs)(Q.Fragment,{children:[`Please enter the `,(0,Q.jsx)(`strong`,{children:`6 digit`}),` code we've sent to `,(0,Q.jsx)(`strong`,{children:r})]}),submit:u,onBack:c,...e})}function tx(e){let{value:t,onChange:n,error:r,autoFocus:i}=e;return(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`label`,{htmlFor:`username`,children:`Email`}),(0,Q.jsx)(`input`,{className:`form-control form-control-lg ${!!r&&`is-invalid`}`,type:`email`,name:`username`,id:`username`,value:t,placeholder:`Enter your email`,autoFocus:!!i,onChange:e=>n(e.target.value),disabled:e.disabled,"aria-invalid":!!r,"aria-errormessage":`usernameError`}),!!r&&(0,Q.jsx)(xf,{name:`username`,children:r})]})}function nx(e){let[t,n]=Z.useState(e.email||``),[r,i]=Z.useState({source:e.firstName||``}),[a,o]=Z.useState(``),[s,c]=Z.useState(``);function l(t){i(t),e.setErrors({...e.errors,fullName:``})}function u(t){o(t.target.value),e.setErrors({...e.errors,password:``})}function d(t){n(t),e.setErrors({...e.errors,email:``})}function f(t){c(t),e.setErrors({...e.errors,jobTitle:``})}function p(n){n.preventDefault();let{firstName:i,surname:o}=r,c={firstName:i,surname:o,password:a,email:t};e.allowJobTitleChange&&(c.jobTitle=s),e.onSubmit(c)}let m=!e.email,h=e.errors.general||!m&&e.errors.email;return(0,Q.jsxs)(`form`,{onSubmit:p,children:[(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(Mp,{value:r.source||``,onChange:l,error:e.errors.fullName,autoFocus:!0}),m&&(0,Q.jsx)(tx,{value:t,onChange:d,error:e.errors.email,disabled:!!e.email}),e.allowJobTitleChange&&(0,Q.jsx)(Gp,{error:e.errors.jobTitle,onChange:f,countryCode:e.countryCode,autoFocus:!1,isTertiary:tb.getCustomerType(e.customerType)===Gu.Tertiary}),(0,Q.jsx)(Gf,{placeholder:`Enter your password`,value:a,onChange:u,name:`new-password`,autoComplete:`new-password`,hasError:!!e.errors.password,"aria-invalid":!!e.errors.password,"aria-errormessage":`new-passwordError`}),!!e.errors.password&&(0,Q.jsx)(xf,{name:`new-password`,children:e.errors.password})]}),!!h&&(0,Q.jsx)(`div`,{className:`text-danger my-3`,children:h}),(0,Q.jsx)(nd,{className:`btn btn-dark btn-lg w-100`,type:`submit`,showSpinner:e.spinner,children:`Get Started`})]})}function rx(e){switch(e.errorCode.toString()){case`user.invalid-first-name`:case`user.invalid-surname`:return{fullName:e.userMessage};case`user.invalid-password`:case`user.same-password`:case`user.password-too-short`:return{password:e.userMessage};case`user.invalid-email`:return{email:e.userMessage};case`invalid-token`:case`user.already-activated`:return{general:e.userMessage};case`user.invalid-jobtitle`:return{jobTitle:e.userMessage};default:return{}}}function ix(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({}),{productName:a}=Fd.getDefinition(e.theme);function o(t){let{firstName:n,surname:a,email:o,jobTitle:s,password:c}=t,l={},[u,d]=$f.isPasswordValid(c,``,!1);return u||(l.password=d),!e.email&&!$f.isEmail(o)&&(l.email=`Please enter a valid email.`),(!n||!a)&&(l.fullName=`Please enter your full name.`),e.allowJobTitleChange&&!s?.length&&(l.jobTitle=`Please enter your role..`),i({...r,...l}),!Object.keys(l).length}function s(t){if(!o(t))return;let r={email:e.email||t.email,firstName:t.firstName,surname:t.surname,invitationToken:e.invitationToken,password:t.password};e.allowJobTitleChange&&(r.jobTitle=t.jobTitle),n(!0),yd.post(`/ajax/invite`,r).then(t=>Ld(t,e)).catch(c)}function c(e){n(!1);let t=rx(e);i({...r,...t})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Welcome to ${a}!`,children:(0,Q.jsx)(`p`,{children:`Please fill out the form below to create your account`})}),(0,Q.jsx)(nx,{allowJobTitleChange:e.allowJobTitleChange,countryCode:e.countryCode,email:e.email,firstName:e.firstName,spinner:t,errors:r,setErrors:i,onSubmit:s,customerType:e.customer?.customerType})]})}function ax(e){let{returnUrl:t,customer:n}=e;return(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`div`,{className:`d-flex justify-content-center my-5 px-2 px-lg-4`,children:(0,Q.jsx)(`img`,{src:`/images/invites/invite-accepted-v2.png`,className:`w-100 mx-auto h-auto`})}),(0,Q.jsx)(`div`,{className:`mb-3 d-flex justify-content-center`,children:(0,Q.jsx)(Rb,{logoUrl:n.logoUrl,customerName:n.name})}),(0,Q.jsx)(td,{theme:e.theme,className:{title:`text-center`,description:`text-center`},title:`Welcome to`,children:n.name}),t&&(0,Q.jsx)(`a`,{role:`button`,href:t,className:`btn btn-dark btn-lg w-100 text-decoration-none`,children:`Continue`})]})}var ox={selected:`_selected_1ryhi_1`};function sx(e){let{returnUrl:t,navigate:n}=e,[r,i]=Z.useState(null),{productName:a}=Fd.getDefinition(e.theme);function o(){if(!r)return;let i={returnUrl:t,userType:r===`staff`?1:2,createWithoutEmail:!!e.createWithoutEmail};yd.post(`/ajax/external/continue`,i).then(t=>Ld(t,e,{createWithoutEmail:!1})).catch(e=>{n({step:`error`,errorCode:e.errorCode,traceId:e.traceId})})}let s=`btn btn-lg w-100 mb-3 border-dark`;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,title:`Let's get you started with ${a}`}),(0,Q.jsx)(`button`,{className:`${s} ${r===`staff`?ox.selected:``}`,onClick:()=>i(`staff`),children:`I am an educator`}),(0,Q.jsx)(`button`,{className:`${s} ${r===`learner`?ox.selected:``}`,onClick:()=>i(`learner`),children:`I am a student`}),(0,Q.jsx)(`button`,{className:`btn btn-dark btn-lg w-100`,disabled:!r,onClick:o,children:`Continue`})]})}var cx=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e[`@clickview/braze-client`]=r():n[`@clickview/braze-client`]=r()})(self,(()=>(()=>{var e,t,n={8322:e=>{e.exports=function(e){var t=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`a`,`b`,`c`,`d`,`e`,`f`];function n(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&i|~r&a)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|a>>>20)+n|0)&n|~a&r)+t[2]+606105819|0)<<17|i>>>15)+a|0)&a|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&i|~r&a)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|a>>>20)+n|0)&n|~a&r)+t[6]-1473231341|0)<<17|i>>>15)+a|0)&a|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&i|~r&a)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|a>>>20)+n|0)&n|~a&r)+t[10]-42063|0)<<17|i>>>15)+a|0)&a|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&i|~r&a)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|a>>>20)+n|0)&n|~a&r)+t[14]-1502002290|0)<<17|i>>>15)+a|0)&a|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&a|i&~a)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|a>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+a|0)&n|a&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&a|i&~a)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|a>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+a|0)&n|a&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&a|i&~a)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|a>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+a|0)&n|a&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r&a|i&~a)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|a>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+a|0)&n|a&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r^i^a)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|a>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+a|0)^a^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r^i^a)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|a>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+a|0)^a^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r^i^a)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|a>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+a|0)^a^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((a=((a+=((n=((n+=(r^i^a)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|a>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+a|0)^a^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((a=((a+=(r^((n=((n+=(i^(r|~a))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|a>>>22)+n|0)^((i=((i+=(n^(a|~r))+t[14]-1416354905|0)<<15|i>>>17)+a|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((a=((a+=(r^((n=((n+=(i^(r|~a))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|a>>>22)+n|0)^((i=((i+=(n^(a|~r))+t[10]-1051523|0)<<15|i>>>17)+a|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((a=((a+=(r^((n=((n+=(i^(r|~a))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|a>>>22)+n|0)^((i=((i+=(n^(a|~r))+t[6]-1560198380|0)<<15|i>>>17)+a|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((a=((a+=(r^((n=((n+=(i^(r|~a))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|a>>>22)+n|0)^((i=((i+=(n^(a|~r))+t[2]+718787259|0)<<15|i>>>17)+a|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=a+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function a(e){var t,i,a,o,s,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(n(u,a),t=0;t<16;t+=1)a[t]=0;return o=(o=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(o[2],16),c=parseInt(o[1],16)||0,a[14]=s,a[15]=c,n(u,a),u}function o(e){var n,r=``;for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=o(e[t]);return e.join(``)}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function u(){this.reset()}return s(a(`hello`)),typeof ArrayBuffer>`u`||ArrayBuffer.prototype.slice||function(){function e(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(t,n){var r,i,a,o,s=this.byteLength,c=e(t,s),l=s;return n!==void 0&&(l=e(n,s)),c>l?new ArrayBuffer(0):(r=l-c,i=new ArrayBuffer(r),a=new Uint8Array(i),o=new Uint8Array(this,c,r),a.set(o),i)}}(),u.prototype.append=function(e){return this.appendBinary(c(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,n,r=this._buff,i=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)a[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(a,i),n=s(this._hash),e&&(n=l(n)),this.reset(),n},u.prototype.reset=function(){return this._buff=``,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,i,a,o=t;if(e[o>>2]|=128<<(o%4<<3),o>55)for(n(this._hash,e),o=0;o<16;o+=1)e[o]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),a=parseInt(r[1],16)||0,e[14]=i,e[15]=a,n(this._hash,e)},u.hash=function(e,t){return u.hashBinary(c(e),t)},u.hashBinary=function(e,t){var n=s(a(e));return t?l(n):n},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,r,a,o,s,c=(r=this._buff.buffer,a=e,o=!0,(s=new Uint8Array(r.byteLength+a.byteLength)).set(new Uint8Array(r)),s.set(new Uint8Array(a),r.byteLength),o?s:s.buffer),l=c.length;for(this._length+=e.byteLength,t=64;t<=l;t+=64)n(this._hash,i(c.subarray(t-64,t)));return this._buff=t-64<l?new Uint8Array(c.buffer.slice(t-64)):new Uint8Array,this},u.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)a[t>>2]|=r[t]<<(t%4<<3);return this._finish(a,i),n=s(this._hash),e&&(n=l(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,i=new ArrayBuffer(r),a=new Uint8Array(i);for(n=0;n<r;n+=1)a[n]=e.charCodeAt(n);return t?a:i}(e.buff,!0),u.prototype.setState.call(this,e)},u.ArrayBuffer.prototype.destroy=u.prototype.destroy,u.ArrayBuffer.prototype._finish=u.prototype._finish,u.ArrayBuffer.hash=function(e,t){var r=s(function(e){var t,r,a,o,s,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)a[t>>2]|=e[t]<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(n(u,a),t=0;t<16;t+=1)a[t]=0;return o=(o=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(o[2],16),c=parseInt(o[1],16)||0,a[14]=s,a[15]=c,n(u,a),u}(new Uint8Array(e)));return t?l(r):r},u}()},2730:(e,t,n)=>{n.d(t,{G:()=>r,r:()=>i});let r={CustomEvent:`ce`,Pr:`p`,_u:`pc`,vc:`ca`,Ea:`i`,qs:`ie`,M:`cci`,R:`ccic`,I:`ccc`,F:`ccd`,ql:`ss`,xl:`se`,Oi:`si`,Ei:`sc`,Gi:`sbc`,Cc:`sfe`,mo:`iec`,Uu:`lr`,zu:`uae`,O:`ci`,$:`cc`,Ju:`lcaa`,Eu:`lcar`,On:`inc`,Ln:`add`,Rn:`rem`,$n:`set`,Bn:`ncam`,Ku:`sgu`,Fr:`ffi`},i={Ar:`feed_displayed`,Ec:`content_cards_displayed`}},7070:(e,t,n)=>{n.d(t,{Z:()=>r});let r={W:function(){let e=(e=!1)=>{let t=(Math.random().toString(16)+`000000000`).substr(2,8);return e?`-`+t.substr(0,4)+`-`+t.substr(4,4):t};return e()+e(!0)+e(!0)+e()}}},5522:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e,t){this.database=e,this.vd=t,this.parent=typeof window>`u`?self:window,this.database=e,this.vd=t}Dd(){if(`indexedDB`in this.parent)return this.parent.indexedDB}isSupported(){try{if(this.Dd()==null)return!1;{let e=this.Dd()?.open(`Braze IndexedDB Support Test`);if(e&&(e.onupgradeneeded=()=>e.result.close(),e.onsuccess=()=>e.result.close()),typeof window<`u`){let e=window,t=e.chrome||e.browser||e.pd;if(t&&t.runtime&&t.runtime.id)return this.vd.info(`Not using IndexedDB for storage because we are running inside an extension`),!1}return!0}}catch(e){return this.vd.info(`Not using IndexedDB for storage due to following error: `+e),!1}}Bd(e,t){let n=this.Dd()?.open(this.database.Sd,this.database.VERSION);if(n==null)return typeof t==`function`&&t(),!1;let r=this;return n.onupgradeneeded=e=>{r.vd.info(`Upgrading indexedDB `+r.database.Sd+` to v`+r.database.VERSION+`...`);let t=e.target?.result;for(let e in r.database.ss){let n=e;r.database.ss.hasOwnProperty(e)&&!t.objectStoreNames.contains(r.database.ss[n])&&t.createObjectStore(r.database.ss[n])}},n.onsuccess=n=>{let i=n.target?.result;i.onversionchange=()=>{i.close(),typeof t==`function`&&t(),r.vd.error(`Needed to close the database unexpectedly because of an upgrade in another tab`)},e(i)},n.onerror=e=>{let n=e;return r.vd.info(`Could not open indexedDB `+r.database.Sd+` v`+r.database.VERSION+`: `+n.target?.errorCode),typeof t==`function`&&t(),!0},!0}setItem(e,t,n,r,i){if(!this.isSupported())return typeof i==`function`&&i(),!1;let a=this;return this.Bd((o=>{if(!o.objectStoreNames.contains(e))return a.vd.error(`Could not store object `+t+` in `+e+` on indexedDB `+a.database.Sd+` - `+e+` is not a valid objectStore`),typeof i==`function`&&i(),void o.close();let s=o.transaction([e],`readwrite`);s.oncomplete=()=>o.close();let c=s.objectStore(e).put(n,t);c.onerror=()=>{a.vd.error(`Could not store object `+t+` in `+e+` on indexedDB `+a.database.Sd),typeof i==`function`&&i()},c.onsuccess=()=>{typeof r==`function`&&r()}}),i)}getItem(e,t,n){if(!this.isSupported())return!1;let r=this;return this.Bd((i=>{if(!i.objectStoreNames.contains(e))return r.vd.error(`Could not retrieve object `+t+` in `+e+` on indexedDB `+r.database.Sd+` - `+e+` is not a valid objectStore`),void i.close();let a=i.transaction([e],`readonly`);a.oncomplete=()=>i.close();let o=a.objectStore(e).get(t);o.onerror=()=>{r.vd.error(`Could not retrieve object `+t+` in `+e+` on indexedDB `+r.database.Sd)},o.onsuccess=e=>{let t=e.target?.result;t!=null&&n(t)}}))}jr(e,t,n){if(!this.isSupported())return typeof n==`function`&&n(),!1;let r=this;return this.Bd((i=>{if(!i.objectStoreNames.contains(e))return r.vd.error(`Could not retrieve last record from `+e+` on indexedDB `+r.database.Sd+` - `+e+` is not a valid objectStore`),typeof n==`function`&&n(),void i.close();let a=i.transaction([e],`readonly`);a.oncomplete=()=>i.close();let o=a.objectStore(e).openCursor(null,`prev`);o.onerror=()=>{r.vd.error(`Could not open cursor for `+e+` on indexedDB `+r.database.Sd),typeof n==`function`&&n()},o.onsuccess=e=>{let r=e.target?.result;r!=null&&r.value!=null&&r.key!=null?t(r.key,r.value):typeof n==`function`&&n()}}),n)}re(e,t){if(!this.isSupported())return!1;let n=this;return this.Bd((r=>{if(!r.objectStoreNames.contains(e))return n.vd.error(`Could not delete record `+t+` from `+e+` on indexedDB `+n.database.Sd+` - `+e+` is not a valid objectStore`),void r.close();let i=r.transaction([e],`readwrite`);i.oncomplete=()=>r.close(),i.objectStore(e).delete(t).onerror=()=>{n.vd.error(`Could not delete record `+t+` from `+e+` on indexedDB `+n.database.Sd)}}))}Zt(e,t){if(!this.isSupported())return!1;let n=this;return this.Bd((r=>{if(!r.objectStoreNames.contains(e))return n.vd.error(`Could not retrieve objects from `+e+` on indexedDB `+n.database.Sd+` - `+e+` is not a valid objectStore`),void r.close();let i=r.transaction([e],`readwrite`);i.oncomplete=()=>r.close();let a=i.objectStore(e),o=a.openCursor(),s=[];o.onerror=()=>{s.length>0?(n.vd.info(`Cursor closed midway through for `+e+` on indexedDB `+n.database.Sd),t(s)):n.vd.error(`Could not open cursor for `+e+` on indexedDB `+n.database.Sd)},o.onsuccess=e=>{let n=e.target?.result;n==null?s.length>0&&t(s):(n.value!=null&&n.key!=null&&(a.delete(n.key).onsuccess=()=>{s.push(n.value)}),typeof n.continue==`function`&&n.continue())}}))}clearData(){if(!this.isSupported())return!1;let e=[];for(let t in this.database.ss){let n=t;this.database.ss.hasOwnProperty(t)&&this.database.ss[n]!==this.database.ss.ae&&e.push(this.database.ss[n])}let t=this;return this.Bd((function(n){let r=n.transaction(e,`readwrite`);r.oncomplete=()=>n.close();for(let n=0;n<e.length;n++){let i=e[n];r.objectStore(i).clear().onerror=function(){t.vd.error(`Could not clear `+this.source.name+` on indexedDB `+t.database.Sd)}}r.onerror=function(){t.vd.error(`Could not clear object stores on indexedDB `+t.database.Sd)}}))}}r.Yt={Qt:{Sd:`AppboyServiceWorkerAsyncStorage`,VERSION:6,ss:{$a:`data`,hr:`pushClicks`,cu:`pushSubscribed`,Cd:`fallbackDevice`,ts:`cardUpdates`,ae:`optOut`,wr:`pendingData`,jh:`sdkAuthenticationSignature`},ie:1}}},335:(e,t,n)=>{n.d(t,{Z:()=>i});let r={init:function(e){e===void 0&&r.zg!==void 0||(r.zg=!!e),r.t||=!0},destroy:function(){r.t=!1,r.zg=void 0,r.vd=void 0},setLogger:function(e){typeof e==`function`?(r.init(),r.vd=e):r.info(`Ignoring setLogger call since logger is not a function`)},toggleLogging:function(){r.init(),r.zg?(console.log(`Disabling Braze logging`),r.zg=!1):(console.log(`Enabled Braze logging`),r.zg=!0)},info:function(e){if(r.zg){let t=`Braze: `+e;r.vd==null?console.log(t):r.vd(t)}},warn:function(e){if(r.zg){let t=`Braze SDK Warning: `+e+` (v5.3.1)`;r.vd==null?console.warn(t):r.vd(t)}},error:function(e){if(r.zg){let t=`Braze SDK Error: `+e+` (v5.3.1)`;r.vd==null?console.error(t):r.vd(t)}}},i=r},7529:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(5563),i=n(9179),a=n(4673),o=n(335),s=n(2730),c=n(5966);class l{constructor(e){this.u=e,this.u=e}h(e,t){let n=new a.Z;if(e.p(),e.url==null||e.url===``)return o.Z.info(`Card ${e.id} has no url. Not logging click to Braze servers.`),n;if(t&&e.id&&this.u){let t=this.u.j(c.I.C.v)||{};t[e.id]=!0,this.u.k(c.I.C.v,t)}let r=this.D([e]);if(r==null)return n;let l=t?s.G.I:s.G.$;return i.Z.q(l,r)}B(e){let t=new a.Z;if(!e.N())return o.Z.info(`Card ${e.id} refused this dismissal. Ignoring analytics event.`),t;if(e.id&&this.u){let t=this.u.j(c.I.C.A)||{};t[e.id]=!0,this.u.k(c.I.C.A,t)}let n=this.D([e]);return n==null?t:i.Z.q(s.G.F,n)}G(e,t){let n=new a.Z(!0),o=[],l=[],u={};this.u&&(u=t?this.u.j(c.I.C.H)||{}:this.u.j(c.I.C.J)||{});for(let t of e)t.K(),t instanceof r.Z?l.push(t):o.push(t),t.id&&(u[t.id]=!0);let d=this.D(o),f=this.D(l);if(d==null&&f==null)return n.L=!1,n;if(this.u&&(t?this.u.k(c.I.C.H,u):this.u.k(c.I.C.J,u)),d!=null){let e=t?s.G.M:s.G.O,r=i.Z.q(e,d);n.P(r)}if(f!=null&&t){let e=i.Z.q(s.G.R,f);n.P(e)}return n}D(e){let t,n=null;for(let r=0;r<e.length;r++)t=e[r].id,t!=null&&t!==``&&(n||={},n.ids=n.ids||[],n.ids.push(t));return n}}var u=n(5825);let d={t:!1,i:null,m:()=>(d.o(),d.i||=new l(u.ZP.l()),d.i),o:()=>{d.t||=(u.ZP.g(d),!0)},destroy:()=>{d.i=null,d.t=!1}},f=d},5608:(e,t,n)=>{n.d(t,{CG:()=>m,Dj:()=>h,Ji:()=>l,Zw:()=>d,pq:()=>f,ql:()=>c,rW:()=>u,sv:()=>p});var r=n(5242),i=n(1507),a=n(420),o=n(2080),s=n(7070);function c(e){return e!=null&&!!e.getAttribute(`data-ab-had-top-impression`)}function l(e){e?.setAttribute(`data-ab-had-top-impression`,`true`)}function u(e){return e!=null&&!!e.getAttribute(`data-ab-had-bottom-impression`)}function d(e){e?.setAttribute(`data-ab-had-bottom-impression`,`true`)}function f(e){if(e!=null){let t=e.querySelectorAll(`.ab-unread-indicator`)[0];t!=null&&(t.className+=` read`)}}function p(e){return e.getAttribute(`data-ab-card-id`)}function m(e,t){let n=t.querySelectorAll(`.ab-image-area`),r,i=0;n.length>0&&(i=n[0].offsetWidth);for(let t of e)if(r=t.T,r&&t.imageUrl&&typeof t.aspectRatio==`number`){let e=i/t.aspectRatio;e&&(r.style.height=`${e}px`)}}function h(e,t,n){let c=document.createElement(`div`);c.className=`ab-card ab-effect-card `+e._,e.id&&(c.setAttribute(`data-ab-card-id`,e.id),c.setAttribute(`id`,e.id)),c.setAttribute(`role`,`article`),c.setAttribute(`tabindex`,`0`);let l=``,u=!1;e.url&&e.url!==``&&(l=e.url,u=!0);let d=r=>(f(c),u&&(t(e),(0,a.S)(l,n,r)),!1);if(e.pinned){let e=document.createElement(`div`);e.className=`ab-pinned-indicator`;let t=document.createElement(`i`);t.className=`fa fa-star`,e.appendChild(t),c.appendChild(e)}if(e.imageUrl&&e.imageUrl!==``){let t=document.createElement(`div`);t.className=`ab-image-area`;let n=document.createElement(`img`);if(n.setAttribute(`src`,e.imageUrl),n.onload=()=>{c.style.height=`auto`},function(e,t){let n=``;e.title||e.description||(n=`Feed Image`),t.setAttribute(`alt`,n)}(e,n),t.appendChild(n),c.className+=` with-image`,u&&!e.S){let e=document.createElement(`a`);e.setAttribute(`href`,l),e.onclick=d,e.appendChild(t),c.appendChild(e)}else c.appendChild(t)}let p=document.createElement(`div`);if(p.className=`ab-card-body`,e.dismissible){e.logCardDismissal=()=>(0,o.K)(e);let t=(0,r.B)(`Dismiss Card`,void 0,e.dismissCard.bind(e));c.appendChild(t),(0,i.FZ)(p,i.mQ.U,(e=>{c.className+=` ab-swiped-left`,t.onclick(e)})),(0,i.FZ)(p,i.mQ.V,(e=>{c.className+=` ab-swiped-right`,t.onclick(e)}))}let m=``,h=!1;if(e.title&&e.title!==``&&(m=e.title,h=!0),h){let e=document.createElement(`h1`);if(e.className=`ab-title`,e.id=s.Z.W(),c.setAttribute(`aria-labelledby`,e.id),u){let t=document.createElement(`a`);t.setAttribute(`href`,l),t.onclick=d,t.appendChild(document.createTextNode(m)),e.appendChild(t)}else e.appendChild(document.createTextNode(m));p.appendChild(e)}let g=document.createElement(`div`);if(g.className=h?`ab-description`:`ab-description ab-no-title`,g.id=s.Z.W(),c.setAttribute(`aria-describedby`,g.id),e.description&&g.appendChild(document.createTextNode(e.description)),u){let t=document.createElement(`div`);t.className=`ab-url-area`;let n=document.createElement(`a`);n.setAttribute(`href`,l),e.linkText&&n.appendChild(document.createTextNode(e.linkText)),n.onclick=d,t.appendChild(n),g.appendChild(t)}p.appendChild(g),c.appendChild(p);let _=document.createElement(`div`);return _.className=`ab-unread-indicator`,e.viewed&&(_.className+=` read`),c.appendChild(_),e.T=c,c}},1280:(e,t,n)=>{n.d(t,{d:()=>c});var r=n(2857),i=n(7529),a=n(7671),o=n(5825),s=n(335);function c(e,t){return!!o.ZP.X()&&(e instanceof r.Z?i.Z.m().h(e,t).L:(s.Z.error(`card `+a.U4),!1))}},2080:(e,t,n)=>{n.d(t,{K:()=>c});var r=n(2857),i=n(7529),a=n(7671),o=n(5825),s=n(335);function c(e){return!!o.ZP.X()&&(e instanceof r.Z?i.Z.m().B(e).L:(s.Z.error(`card `+a.U4),!1))}},1066:(e,t,n)=>{n.d(t,{p:()=>l});var r=n(2857),i=n(7529),a=n(5825),o=n(2893),s=n(7671),c=n(335);function l(e,t){if(!a.ZP.X())return!1;if(!(0,o.kJ)(e))return c.Z.error(`cards must be an array`),!1;for(let t of e)if(!(t instanceof r.Z))return c.Z.error(`Each card in cards ${s.U4}`),!1;return i.Z.m().G(e,t).L}},2857:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(7750),i=n(7671),a=n(4663),o=n(335);class s{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.id=e,this.viewed=t,this.title=n,this.imageUrl=r,this.description=i,this.created=a,this.updated=o,this.categories=s,this.expiresAt=c,this.url=l,this.linkText=u,this.aspectRatio=d,this.extras=f,this.pinned=p,this.dismissible=m,this.clicked=h,this.id=e,this.viewed=t||!1,this.title=n||``,this.imageUrl=r,this.description=i||``,this.created=a||null,this.updated=o||null,this.categories=s||[],this.expiresAt=c||null,this.url=l,this.linkText=u,d==null?this.aspectRatio=null:(d=parseFloat(d.toString()),this.aspectRatio=isNaN(d)?null:d),this.extras=f||{},this.pinned=p||!1,this.dismissible=m||!1,this.dismissed=!1,this.clicked=h||!1,this.isControl=!1,this.test=!1,this.Et=null,this.Tt=null}subscribeToClickedEvent(e){return this.Nt().It(e)}subscribeToDismissedEvent(e){return this.St().It(e)}removeSubscription(e){this.Nt().removeSubscription(e),this.St().removeSubscription(e)}removeAllSubscriptions(){this.Nt().removeAllSubscriptions(),this.St().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;typeof this.logCardDismissal==`function`&&this.logCardDismissal();let e=this.T;!e&&this.id&&(e=document.getElementById(this.id)),e&&(e.style.height=e.offsetHeight+`px`,e.className+=` ab-hide`,setTimeout((function(){e&&e.parentNode&&(e.style.height=`0`,e.style.margin=`0`,setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),s.At))}),i.rF))}Nt(){return this.Et??=new a.Z,this.Et}St(){return this.Tt??=new a.Z,this.Tt}K(){this.viewed=!0}p(){this.viewed=!0,this.clicked=!0,this.Nt().Dt()}N(){return!(!this.dismissible||this.dismissed||(this.dismissed=!0,this.St().Dt(),0))}Ct(e){if(e==null||e[s.Rt.ht]!==this.id)return!0;if(e[s.Rt.Lt])return!1;if(e[s.Rt.nt]!=null&&this.updated!=null&&parseInt(e[s.Rt.nt])<(0,r.FX)(this.updated.valueOf()))return!0;if(e[s.Rt.et]&&!this.viewed&&(this.viewed=!0),e[s.Rt.zt]&&!this.clicked&&(this.clicked=e[s.Rt.zt]),e[s.Rt.rt]!=null&&(this.title=e[s.Rt.rt]),e[s.Rt.ot]!=null&&(this.imageUrl=e[s.Rt.ot]),e[s.Rt.ct]!=null&&(this.description=e[s.Rt.ct]),e[s.Rt.nt]!=null){let t=(0,r.X2)(e[s.Rt.nt]);t!=null&&(this.updated=t)}if(e[s.Rt.lt]!=null){let t;t=e[s.Rt.lt]===s._t?null:(0,r.X2)(e[s.Rt.lt]),this.expiresAt=t}if(e[s.Rt.URL]!=null&&(this.url=e[s.Rt.URL]),e[s.Rt.ft]!=null&&(this.linkText=e[s.Rt.ft]),e[s.Rt.xt]!=null){let t=parseFloat(e[s.Rt.xt].toString());this.aspectRatio=isNaN(t)?null:t}return e[s.Rt.bt]!=null&&(this.extras=e[s.Rt.bt]),e[s.Rt.gt]!=null&&(this.pinned=e[s.Rt.gt]),e[s.Rt.jt]!=null&&(this.dismissible=e[s.Rt.jt]),e[s.Rt.kt]!=null&&(this.test=e[s.Rt.kt]),!0}Y(){o.Z.error(`Must be implemented in a subclass`)}}s._t=-1,s.Rt={ht:`id`,et:`v`,jt:`db`,Lt:`r`,nt:`ca`,gt:`p`,lt:`ea`,bt:`e`,Z:`tp`,ot:`i`,rt:`tt`,ct:`ds`,URL:`u`,ft:`dm`,xt:`ar`,zt:`cl`,kt:`t`},s.it={st:`captioned_image`,Ot:`text_announcement`,Mt:`short_news`,Pt:`banner_image`,Ut:`control`},s.tt={ht:`id`,et:`v`,jt:`db`,dt:`cr`,nt:`ca`,gt:`p`,ut:`t`,lt:`ea`,bt:`e`,Z:`tp`,ot:`i`,rt:`tt`,ct:`ds`,URL:`u`,ft:`dm`,xt:`ar`,zt:`cl`,kt:`s`},s.Gt={Xt:`ADVERTISING`,vt:`ANNOUNCEMENTS`,Vt:`NEWS`,Wt:`SOCIAL`},s.At=400},5563:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(2857);class i extends r.Z{constructor(e,t,n,r,i,a){super(e,t,null,null,null,null,n,null,r,null,null,null,i,a),this.isControl=!0,this._=`ab-control-card`,this.S=!1}Y(){let e={};return e[r.Z.tt.Z]=r.Z.it.Ut,e[r.Z.tt.ht]=this.id,e[r.Z.tt.et]=this.viewed,e[r.Z.tt.nt]=this.updated,e[r.Z.tt.lt]=this.expiresAt,e[r.Z.tt.bt]=this.extras,e[r.Z.tt.gt]=this.pinned,e[r.Z.tt.kt]=this.test,e}}},5899:(e,t,n)=>{n.d(t,{xA:()=>d,D5:()=>f,rN:()=>p});var r=n(2857);class i extends r.Z{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){super(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h),this._=`ab-classic-card`,this.S=!0}Y(){let e={};return e[r.Z.tt.Z]=r.Z.it.Mt,e[r.Z.tt.ht]=this.id,e[r.Z.tt.et]=this.viewed,e[r.Z.tt.rt]=this.title,e[r.Z.tt.ot]=this.imageUrl,e[r.Z.tt.ct]=this.description,e[r.Z.tt.nt]=this.updated,e[r.Z.tt.dt]=this.created,e[r.Z.tt.ut]=this.categories,e[r.Z.tt.lt]=this.expiresAt,e[r.Z.tt.URL]=this.url,e[r.Z.tt.ft]=this.linkText,e[r.Z.tt.xt]=this.aspectRatio,e[r.Z.tt.bt]=this.extras,e[r.Z.tt.gt]=this.pinned,e[r.Z.tt.jt]=this.dismissible,e[r.Z.tt.zt]=this.clicked,e[r.Z.tt.kt]=this.test,e}}class a extends r.Z{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){super(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h),this._=`ab-captioned-image`,this.S=!0,this.test=!1}Y(){let e={};return e[r.Z.tt.Z]=r.Z.it.st,e[r.Z.tt.ht]=this.id,e[r.Z.tt.et]=this.viewed,e[r.Z.tt.rt]=this.title,e[r.Z.tt.ot]=this.imageUrl,e[r.Z.tt.ct]=this.description,e[r.Z.tt.nt]=this.updated,e[r.Z.tt.dt]=this.created,e[r.Z.tt.ut]=this.categories,e[r.Z.tt.lt]=this.expiresAt,e[r.Z.tt.URL]=this.url,e[r.Z.tt.ft]=this.linkText,e[r.Z.tt.xt]=this.aspectRatio,e[r.Z.tt.bt]=this.extras,e[r.Z.tt.gt]=this.pinned,e[r.Z.tt.jt]=this.dismissible,e[r.Z.tt.zt]=this.clicked,e[r.Z.tt.kt]=this.test,e}}class o extends r.Z{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p){super(e,t,null,n,null,r,i,a,o,s,c,l,u,d,f,p),this._=`ab-image-only`,this.S=!1,this.test=!1}Y(){let e={};return e[r.Z.tt.Z]=r.Z.it.Pt,e[r.Z.tt.ht]=this.id,e[r.Z.tt.et]=this.viewed,e[r.Z.tt.ot]=this.imageUrl,e[r.Z.tt.nt]=this.updated,e[r.Z.tt.dt]=this.created,e[r.Z.tt.ut]=this.categories,e[r.Z.tt.lt]=this.expiresAt,e[r.Z.tt.URL]=this.url,e[r.Z.tt.ft]=this.linkText,e[r.Z.tt.xt]=this.aspectRatio,e[r.Z.tt.bt]=this.extras,e[r.Z.tt.gt]=this.pinned,e[r.Z.tt.jt]=this.dismissible,e[r.Z.tt.zt]=this.clicked,e[r.Z.tt.kt]=this.test,e}}var s=n(5563),c=n(7750),l=n(335);function u(e,t,n,c,u,d,f,p,m,h,g,_,v,y,b,x,S,C){let w;if(t===r.Z.it.Ot||t===r.Z.it.Mt)w=new i(e,n,c,u,d,f,p,m,h,g,_,v,y,b,x,S);else if(t===r.Z.it.st)w=new a(e,n,c,u,d,f,p,m,h,g,_,v,y,b,x,S);else if(t===r.Z.it.Pt)w=new o(e,n,u,f,p,m,h,g,_,v,y,b,x,S);else{if(t!==r.Z.it.Ut)return l.Z.error(`Ignoring card with unknown type `+t),null;w=new s.Z(e,n,p,h,y,b)}return C&&(w.test=C),w}function d(e){if(e[r.Z.Rt.Lt])return null;let t=e[r.Z.Rt.ht],n=e[r.Z.Rt.Z],i=e[r.Z.Rt.et],a=e[r.Z.Rt.rt],o=e[r.Z.Rt.ot],s=e[r.Z.Rt.ct],l=(0,c.X2)(e[r.Z.Rt.nt]),d=l,f;return f=e[r.Z.Rt.lt]===r.Z._t?null:(0,c.X2)(e[r.Z.Rt.lt]),u(t,n,i,a,o,s,d,l,null,f,e[r.Z.Rt.URL],e[r.Z.Rt.ft],e[r.Z.Rt.xt],e[r.Z.Rt.bt],e[r.Z.Rt.gt],e[r.Z.Rt.jt],e[r.Z.Rt.zt],e[r.Z.Rt.kt]||!1)}function f(e){return u(e.id,e.type,e.viewed,e.title,e.image,e.description,(0,c.X2)(e.created),(0,c.X2)(e.updated),e.categories,(0,c.X2)(e.expires_at),e.url,e.domain,e.aspect_ratio,e.extras,!1,!1)}function p(e){return u(e[r.Z.tt.ht],e[r.Z.tt.Z],e[r.Z.tt.et],e[r.Z.tt.rt],e[r.Z.tt.ot],e[r.Z.tt.ct],(0,c.Rd)(e[r.Z.tt.dt]),(0,c.Rd)(e[r.Z.tt.nt]),e[r.Z.tt.ut],(0,c.Rd)(e[r.Z.tt.lt]),e[r.Z.tt.URL],e[r.Z.tt.ft],e[r.Z.tt.xt],e[r.Z.tt.bt],e[r.Z.tt.gt],e[r.Z.tt.jt],e[r.Z.tt.zt],e[r.Z.tt.kt]||!1)||void 0}},4790:(e,t,n)=>{n.r(t),n.d(t,{changeUser:()=>c});var r=n(5825),i=n(8548),a=n(335),o=n(7615),s=n(3905);function c(e,t){if(!r.ZP.X())return;if(e==null||e.length===0||e!=e)return void a.Z.error(`changeUser requires a non-empty userId.`);if((0,i.E)(e)>o.Z.lr)return void a.Z.error(`Rejected user id "${e}" because it is longer than ${o.Z.lr} bytes.`);if(t!=null&&!(0,s.ro)(t,`set signature for new user`,`signature`))return;let n=r.ZP.cr();n&&n.changeUser(e.toString(),r.ZP.gr(),t)}},6243:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(5825);function i(){if(r.ZP.X())return r.ZP.pr()}},420:(e,t,n)=>{n.d(t,{S:()=>f});var r=n(335),i=n(7671),a=n(5825),o=n(3046),s=n(3695),c=n(5806),l=n(3905),u=n(5319),d=n(6243);function f(e,t,f){if(a.ZP.X())if(l.y9.test(e)){let t=(0,o.OL)(e);if(!t)return;let f=e=>{if(!(0,l.zR)(e))return void r.Z.error(`Decoded Braze Action json is invalid: ${JSON.stringify(e,null,2)}`);let t=o.A9.properties.type,p=o.A9.properties.oo,m=o.A9.properties.eo,h=e[t];if(h===o.A9.types.ro){let t=e[p];for(let e of t)f(e)}else{let t=e[m],l,f;switch(h){case o.A9.types.logCustomEvent:Promise.resolve().then(n.bind(n,1454)).then((({logCustomEvent:e})=>{a.ZP.so()?(f=Array.prototype.slice.call(t),e(...f)):r.Z.error(i.Go)}));break;case o.A9.types.requestPushPermission:Promise.resolve().then(n.bind(n,2261)).then((({requestPushPermission:e})=>{a.ZP.so()?s.Z.browser===`Safari`&&s.Z.OS===c.T.io?window.navigator.standalone&&e():e():r.Z.error(i.Go)}));break;case o.A9.types.setEmailNotificationSubscriptionType:case o.A9.types.setPushNotificationSubscriptionType:case o.A9.types.setCustomUserAttribute:case o.A9.types.addToSubscriptionGroup:case o.A9.types.removeFromSubscriptionGroup:case o.A9.types.addToCustomAttributeArray:case o.A9.types.removeFromCustomAttributeArray:l=(0,d.P)(),l&&l[h](...Array.prototype.slice.call(t));break;case o.A9.types.no:case o.A9.types.ao:f=Array.prototype.slice.call(t),u.SD.openUri(...f);break;default:r.Z.info(`Ignoring unknown Braze Action: ${h}`)}}};f(t)}else u.SD.openUri(e,t,f)}},1454:(e,t,n)=>{n.r(t),n.d(t,{logCustomEvent:()=>d});var r=n(5825),i=n(9179),a=n(335),o=n(2730),s=n(4365),c=n(9342),l=n(3905),u=n(7671);function d(e,t){if(!r.ZP.X())return!1;if(e==null||e.length<=0)return a.Z.error(`logCustomEvent requires a non-empty eventName, got "${e}". Ignoring event.`),!1;if(!(0,l.zM)(e,`log custom event`,`the event name`))return!1;let[n,d]=(0,l.lg)(t,u._P,`eventProperties`,`log custom event "${e}"`,`event`);if(!n)return!1;let f=r.ZP.ir();if(f&&f.me(e))return a.Z.info(`Custom Event "${e}" is blocklisted, ignoring.`),!1;let p=i.Z.q(o.G.CustomEvent,{n:e,p:d});if(p.L){a.Z.info(`Logged custom event "${e}".`);for(let n of p.ge)c.n.rr().fe(s.Z.ue,[e,t],n)}return p.L}},4650:(e,t,n)=>{n.r(t),n.d(t,{requestImmediateDataFlush:()=>i});var r=n(5825);function i(e){if(!r.ZP.X())return;let t=r.ZP.cr();t&&t.requestImmediateDataFlush(e)}},3340:(e,t,n)=>{n.d(t,{V:()=>f,q:()=>d});var r=n(1792),i=n(8376),a=n(4410),o=n(1090),s=n(4072),c=n(3811),l=n(6616),u=n(335);function d(e){if(!e)return null;if(e.is_control)return i.Z.fromJson(e);let t=e.type;t!=null&&(t=t.toUpperCase());let n=e.message,d=e.text_align_message,f=e.slide_from,p=e.extras,m=e.trigger_id,h=e.click_action,g=e.uri,_=e.open_target,v=e.message_close,y=e.duration,b=e.icon,x=e.image_url,S=e.image_style,C=e.icon_color,w=e.icon_bg_color,T=e.bg_color,E=e.text_color,D=e.close_btn_color,O=e.header,k=e.text_align_header,A=e.header_text_color,j=e.frame_color,M=[],N=e.btns;N??=[];for(let e=0;e<N.length;e++)M.push(s.Z.fromJson(N[e]));let P=e.crop_type,F=e.orientation,I=e.animate_in,L=e.animate_out,R=e.html_id,z=e.css;R!=null&&R!==``&&z!=null&&z!==``||(R=void 0,z=void 0);let B=e.message_extras,V;if(t===c.Z.it||t===r.Z.qe.Ve)V=new c.Z(n,d,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,I,L,O,k,A,j,M,P,R,z,B);else if(t===a.Z.it)V=new a.Z(n,d,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,I,L,O,k,A,j,M,P,F,R,z,B);else if(t===l.Z.it)V=new l.Z(n,d,f,p,m,h,g,_,v,y,b,x,C,w,T,E,D,I,L,R,z,B);else{if(t!==o.Z.it&&t!==r.Z.qe.$e&&t!==r.Z.qe.We)return void u.Z.error(`Ignoring message with unknown type `+t);{let t=e.message_fields;V=new o.Z(n,p,m,v,y,I,L,j,R,z,t,B),V.trusted=e.trusted||!1}}return V.we=t,V}function f(e){let t=[];for(let n of e)t.push(new s.Z(n.text,n.backgroundColor,n.textColor,n.borderColor,n.clickAction,n.uri,n.id));return t}},1087:(e,t,n)=>{n.d(t,{Z:()=>D});var r=n(1843),i=n(5825),a=n(8376),o=n(1090),s=n(1792),c=n(4072),l=n(9179),u=n(3340),d=n(6504),f=n(4673),p=n(2730),m=n(335),h=n(4663),g=n(2246),_=n(3905),v=n(3046),y=n(4556),b=n(6870),x=n(5966),S=n(4410),C=n(3811),w=n(6616);class T{constructor(e,t,n,r){this.qt=e,this.ri=t,this.u=n,this.wt=r,this.qt=e,this.ri=t,this.u=n,this.wt=r,this._e=new h.Z,i.ZP.$t(this._e),this.Xe=1e3,this.Ye=6e4,this.Ze=null}Mi(){return this._e}_i(e){return this._e.It(e)}Pi(){return this.Ze}$i(e){this.Ze=e}q(e,t,n,r){let i=new f.Z,s;if(e instanceof a.Z)s={trigger_ids:[e.triggerId]};else{if(t===p.G.Ei||e instanceof o.Z&&t===p.G.Gi){if(!e.p(r))return m.Z.info(`This in-app message has already received a click. Ignoring analytics event.`),i}else if(t===p.G.Oi&&!e.K())return m.Z.info(`This in-app message has already received an impression. Ignoring analytics event.`),i;s=this.Xi(e)}return s==null?i:(e.messageExtras&&(s.message_extras=e.messageExtras),n!=null&&(s.bid=n),l.Z.q(t,s))}Hi(e,t){let n=new f.Z;if(!e.p())return m.Z.info(`This in-app message button has already received a click. Ignoring analytics event.`),n;let r=this.Xi(t);return r==null?n:e.id===c.Z.Ji?(m.Z.info(`This in-app message button does not have a tracking id. Not logging event to Braze servers.`),n):(e.id!=null&&(r.bid=e.id),l.Z.q(p.G.Gi,r))}Ki(e){let t=e.messageFields;return t!=null&&t.is_push_primer||!1}Li(e){if(!(e instanceof s.Z))return;let t=e=>{if(!e)return;let t=(0,v.OL)(e);return(0,v.je)(t)?(0,v.Tu)(v.yi.Qi,`In-App Message`):(0,v.zA)(t)&&!y.Z.Vi()?(0,v.Tu)(v.yi.Wi,`In-App Message`):void 0};if(this.Ki(e)&&!y.Z.Vi())return`In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.`;let n=e.buttons||[],r;for(let e of n)if(e.clickAction===s.Z.ClickAction.URI&&e.uri&&_.y9.test(e.uri)&&(r=t(e.uri),r))return r;return e.clickAction===s.Z.ClickAction.URI&&e.uri&&_.y9.test(e.uri)?t(e.uri):void 0}Yi(e,t,n,i){let a=this.qt;if(!a)return;let o=a.Zi(!1,!1),s=a.Js(o);s.template={trigger_id:e.triggerId,trigger_event_type:t},n!=null&&(s.template.data=n.Ir());let c=a.$s(s,b.Z.Ps.Mr);a.Xs(s,((a=-1)=>{if(!this.qt)return;let o=new Date().valueOf();b.Z._s(this.u,b.Z.Ps.Mr,o),a!==-1&&c.push([`X-Braze-Req-Tokens-Remaining`,a.toString()]),r.Z.Gs({url:`${this.qt.Hs()}/template/`,data:s,headers:c,L:t=>{if(b.Z.Qs(this.u,b.Z.Ps.Mr,1),!this.qt.Ks(s,t,c))return void(typeof e.Tr==`function`&&e.Tr());if(this.qt.Os(),t==null||t.templated_message==null)return;let n=t.templated_message;if(n.type!==g.Z._r.Br)return;let r=(0,u.q)(n.data);if(r==null)return;let i=this.Li(r);if(i)return m.Z.error(i),void(typeof e.Tr==`function`&&e.Tr());typeof e.Er==`function`&&e.Er(r)},error:r=>{let a=`getting user personalization for message ${e.triggerId}`;if(new Date().valueOf()-e.Gr<e.Nr){b.Z.Ys(this.u,b.Z.Ps.Mr);let r=Math.min(e.Nr,this.Ye),o=this.Xe;i??=o;let s=Math.min(r,(0,d.R)(o,3*i));a+=`. Retrying in ${s} ms`,setTimeout((()=>{this.Yi(e,t,n,s)}),s)}this.qt.Vs(r,a)}})}),b.Z.Ps.Mr)}Xi(e){if(e.triggerId==null)return m.Z.info(`The in-app message has no analytics id. Not logging event to Braze servers.`),null;let t={};return e.triggerId!=null&&(t.trigger_ids=[e.triggerId]),t}je(e){return!!this.u&&!(!(e&&e instanceof s.Z&&e.constructor!==s.Z)||e instanceof a.Z)&&this.u.k(x.I.C.Cr,e.Y())}Ue(){if(!this.u)return null;let e=this.u.j(x.I.C.Cr);if(!e)return null;let t;switch(e.type){case s.Z.qe.Or:t=S.Z.Xr(e);break;case s.Z.qe.Hr:case s.Z.qe.$e:case s.Z.qe.We:t=o.Z.Xr(e);break;case s.Z.qe.Jr:case s.Z.qe.Ve:t=C.Z.Xr(e);break;case s.Z.qe.Kr:t=w.Z.Xr(e)}return t&&this.Lr(),t}Lr(){this.u&&this.u.ti(x.I.C.Cr)}}let E={i:null,t:!1,m:()=>(E.o(),E.i||=new T(i.ZP.nr(),i.ZP.zr(),i.ZP.l(),i.ZP.er()),E.i),o:()=>{E.t||=(i.ZP.g(E),!0)},destroy:()=>{E.i=null,E.t=!1}},D=E},8376:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e,t){this.triggerId=e,this.messageExtras=t,this.triggerId=e,this.messageExtras=t,this.extras={},this.isControl=!0}static fromJson(e){return new r(e.trigger_id,e.message_extras)}}},4410:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3340),i=n(1792);class a extends i.Z{constructor(e,t,n,r,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k){c||=i.Z.DismissType.MANUAL,E||=i.Z.Orientation.PORTRAIT,super(e,t,void 0,n,r,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T||=i.Z.CropType.CENTER_CROP,E,D,O,k),this.De=i.Z.TextAlignment.CENTER}Y(){return super.Y(a.it)}static Xr(e){return new a(e[i.Z.tt.Vr],e[i.Z.tt.Wr],e[i.Z.tt.bt],e[i.Z.tt.Yr],e[i.Z.tt.Zr],e[i.Z.tt.URI],e[i.Z.tt.ea],e[i.Z.tt.ra],e[i.Z.tt.sa],e[i.Z.tt.ta],e[i.Z.tt.ot],e[i.Z.tt.ia],e[i.Z.tt.aa],e[i.Z.tt.oa],e[i.Z.tt.pa],e[i.Z.tt.ma],e[i.Z.tt.na],e[i.Z.tt.ua],e[i.Z.tt.ca],e[i.Z.tt.fa],e[i.Z.tt.da],e[i.Z.tt.la],e[i.Z.tt.ga],(0,r.V)(e[i.Z.tt.ja]),e[i.Z.tt.xa],e[i.Z.tt.za],e[i.Z.tt.ha],e[i.Z.tt.CSS],e[i.Z.tt.va])}}a.it=i.Z.qe.Or},1090:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(1792);class i extends r.Z{constructor(e,t,n,i,a,o,s,c,l,u,d,f){super(e,void 0,void 0,t,n,void 0,void 0,void 0,i||=r.Z.DismissType.MANUAL,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,o,s,void 0,void 0,void 0,c,void 0,void 0,void 0,l,u,f),this.messageFields=d,this.messageFields=d}do(){return!1}p(e){if(this.we===r.Z.qe.Hr){if(this.vo)return!1;this.vo=!0}return this.Et.Dt(e),!0}Y(){let e=super.Y(i.it);return e[r.Z.tt.uo]=this.messageFields,e}static Xr(e){return new i(e[r.Z.tt.Vr],e[r.Z.tt.bt],e[r.Z.tt.Yr],e[r.Z.tt.ra],e[r.Z.tt.sa],e[r.Z.tt.ua],e[r.Z.tt.ca],e[r.Z.tt.ga],e[r.Z.tt.ha],e[r.Z.tt.CSS],e[r.Z.tt.uo],e[r.Z.tt.va])}}i.it=r.Z.qe.Hr},4072:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1792),i=n(4663);class a{constructor(e,t,n,o,s,c,l){this.text=e,this.backgroundColor=t,this.textColor=n,this.borderColor=o,this.clickAction=s,this.uri=c,this.id=l,this.text=e||``,this.backgroundColor=t||r.Z.th.sh,this.textColor=n||r.Z.th.ih,this.borderColor=o||this.backgroundColor,this.clickAction=s||r.Z.ClickAction.NONE,this.uri=c,l??=a.Ji,this.id=l,this.vo=!1,this.Et=new i.Z}subscribeToClickedEvent(e){return this.Et.It(e)}removeSubscription(e){this.Et.removeSubscription(e)}removeAllSubscriptions(){this.Et.removeAllSubscriptions()}p(){return!this.vo&&(this.vo=!0,this.Et.Dt(),!0)}static fromJson(e){return new a(e.text,e.bg_color,e.text_color,e.border_color,e.click_action,e.uri,e.id)}}a.Ji=-1},1792:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(5825),i=n(3695),a=n(1507),o=n(7429),s=n(4663),c=n(7048);class l{constructor(e,t,n,r,i,a,o,c,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j){this.message=e,this.messageAlignment=t,this.slideFrom=n,this.extras=r,this.triggerId=i,this.clickAction=a,this.uri=o,this.openTarget=c,this.dismissType=u,this.duration=d,this.icon=f,this.imageUrl=p,this.imageStyle=m,this.iconColor=h,this.iconBackgroundColor=g,this.backgroundColor=_,this.textColor=v,this.closeButtonColor=y,this.animateIn=b,this.animateOut=x,this.header=S,this.headerAlignment=C,this.headerTextColor=w,this.frameColor=T,this.buttons=E,this.cropType=D,this.orientation=O,this.htmlId=k,this.css=A,this.messageExtras=j,this.message=e,this.messageAlignment=t||l.TextAlignment.CENTER,this.duration=d||5e3,this.slideFrom=n||l.SlideFrom.BOTTOM,this.extras=r||{},this.triggerId=i,this.clickAction=a||l.ClickAction.NONE,this.uri=o,this.openTarget=c||l.OpenTarget.NONE,this.dismissType=u||l.DismissType.AUTO_DISMISS,this.icon=f,this.imageUrl=p,this.imageStyle=m||l.ImageStyle.TOP,this.iconColor=h||l.th.ih,this.iconBackgroundColor=g||l.th.sh,this.backgroundColor=_||l.th.ih,this.textColor=v||l.th.hh,this.closeButtonColor=y||l.th.eh,this.animateIn=b,this.animateIn??=!0,this.animateOut=x,this.animateOut??=!0,this.header=S,this.headerAlignment=C||l.TextAlignment.CENTER,this.headerTextColor=w||l.th.hh,this.frameColor=T||l.th.Eh,this.buttons=E||[],this.cropType=D||l.CropType.FIT_CENTER,this.orientation=O,this.htmlId=k,this.css=A,this.isControl=!1,this.messageExtras=j,this.nh=!1,this.Th=!1,this.vo=!1,this.oh=!1,this.Me=null,this.ke=null,this.Et=new s.Z,this.rh=new s.Z,this.De=l.TextAlignment.CENTER}subscribeToClickedEvent(e){return this.Et.It(e)}subscribeToDismissedEvent(e){return this.rh.It(e)}removeSubscription(e){this.Et.removeSubscription(e),this.rh.removeSubscription(e)}removeAllSubscriptions(){this.Et.removeAllSubscriptions(),this.rh.removeAllSubscriptions()}closeMessage(){this.Ae(this.Me)}ze(){return!0}do(){return this.ze()}xe(){return this.htmlId!=null&&this.htmlId.length>4}Ce(){return this.xe()&&this.css!=null&&this.css.length>0}ve(){if(this.xe()&&this.Ce())return this.htmlId+`-css`}K(){return!this.Th&&(this.Th=!0,!0)}Ur(){return this.Th}p(e){return!this.vo&&(this.vo=!0,this.Et.Dt(),!0)}N(){return!this.oh&&(this.oh=!0,this.rh.Dt(),!0)}hide(e){if(e&&e.parentNode){let t=e.closest(`.ab-iam-root`);if(t??=e,this.ze()&&t.parentNode!=null){let e=t.parentNode.classList;e&&e.contains(l.lh)&&e.remove(l.lh),document.body.removeEventListener(`touchmove`,l.uh)}t.className=t.className.replace(l.ah,l.Ih)}return this.animateOut||!1}Ae(e,t){if(e==null)return;let n;this.Me=null,n=e.className.indexOf(`ab-in-app-message`)===-1?e.getElementsByClassName(`ab-in-app-message`)[0]:e;let r=!1;n&&(r=this.hide(n));let a=document.body,o;a!=null&&(o=a.scrollTop);let s=()=>{if(e&&e.parentNode){let t=e.closest(`.ab-iam-root`);t??=e,t.parentNode&&t.parentNode.removeChild(t)}let n=this.ve();if(n!=null){let e=document.getElementById(n);e&&e.parentNode&&e.parentNode.removeChild(e)}a!=null&&i.Z.browser===`Safari`&&(a.scrollTop=o),t?t():this.N()};r?setTimeout(s,l.Ah):s(),this.ke&&this.ke.focus()}Je(){return document.createTextNode(this.message||``)}Ge(e){let t=``;this.message||this.header||!this.ze()||(t=`Modal Image`),e.setAttribute(`alt`,t)}static uh(e){if(e.targetTouches&&e.targetTouches.length>1)return;let t=e.target;t&&t.classList&&t.classList.contains(`ab-message-text`)&&t.scrollHeight>t.clientHeight||document.querySelector(`.${l.lh}`)&&e.cancelable&&e.preventDefault()}Oh(e){let t=e.parentNode;this.ze()&&t!=null&&this.orientation!==l.Orientation.LANDSCAPE&&(t.classList!=null&&t.classList.add(l.lh),document.body.addEventListener(`touchmove`,l.uh,!!(0,a.QZ)()&&{passive:!1})),e.className+=` `+l.ah}static _h(e){if(e.keyCode===o.m.mh&&!r.ZP.nn(r.JY.Lh)&&document.querySelectorAll(`.ab-modal-interactions`).length>0){let e=document.getElementsByClassName(`ab-html-message`),t=!1;for(let n of e){let e=null;(0,c.f)(n)&&n.contentWindow&&(e=n.contentWindow.document.getElementsByClassName(`ab-programmatic-close-button`)[0]),e!=null&&((0,a.$j)(e),t=!0)}if(!t){let e=document.querySelectorAll(`.ab-modal-interactions > .ab-close-button`)[0];e!=null&&(0,a.$j)(e)}}}Nh(){this.nh||r.ZP.nn(r.JY.Lh)||(document.addEventListener(`keydown`,l._h,!1),r.ZP.Sh((()=>{document.removeEventListener(`keydown`,l._h)})),this.nh=!0)}Y(e){let t={};return e?(t[l.tt.Vr]=this.message,t[l.tt.Wr]=this.messageAlignment,t[l.tt.Rh]=this.slideFrom,t[l.tt.bt]=this.extras,t[l.tt.Yr]=this.triggerId,t[l.tt.Zr]=this.clickAction,t[l.tt.URI]=this.uri,t[l.tt.ea]=this.openTarget,t[l.tt.ra]=this.dismissType,t[l.tt.sa]=this.duration,t[l.tt.ta]=this.icon,t[l.tt.ot]=this.imageUrl,t[l.tt.ia]=this.imageStyle,t[l.tt.aa]=this.iconColor,t[l.tt.oa]=this.iconBackgroundColor,t[l.tt.pa]=this.backgroundColor,t[l.tt.ma]=this.textColor,t[l.tt.na]=this.closeButtonColor,t[l.tt.ua]=this.animateIn,t[l.tt.ca]=this.animateOut,t[l.tt.fa]=this.header,t[l.tt.da]=this.headerAlignment,t[l.tt.la]=this.headerTextColor,t[l.tt.ga]=this.frameColor,t[l.tt.ja]=this.buttons,t[l.tt.xa]=this.cropType,t[l.tt.za]=this.orientation,t[l.tt.ha]=this.htmlId,t[l.tt.CSS]=this.css,t[l.tt.Z]=e,t[l.tt.va]=this.messageExtras,t):t}}l.th={hh:4281545523,ih:4294967295,sh:4278219733,Mh:4293914607,Dh:4283782485,Eh:3224580915,eh:4288387995},l.Be={Ch:`hd`,Le:`ias`,dh:`of`,Uh:`do`,bh:`umt`,Ph:`tf`,ph:`te`},l.SlideFrom={TOP:`TOP`,BOTTOM:`BOTTOM`},l.ClickAction={NEWS_FEED:`NEWS_FEED`,URI:`URI`,NONE:`NONE`},l.DismissType={AUTO_DISMISS:`AUTO_DISMISS`,MANUAL:`SWIPE`},l.OpenTarget={NONE:`NONE`,BLANK:`BLANK`},l.ImageStyle={TOP:`TOP`,GRAPHIC:`GRAPHIC`},l.Orientation={PORTRAIT:`PORTRAIT`,LANDSCAPE:`LANDSCAPE`},l.TextAlignment={START:`START`,CENTER:`CENTER`,END:`END`},l.CropType={CENTER_CROP:`CENTER_CROP`,FIT_CENTER:`FIT_CENTER`},l.qe={Kr:`SLIDEUP`,Jr:`MODAL`,Ve:`MODAL_STYLED`,Or:`FULL`,Hr:`WEB_HTML`,$e:`HTML`,We:`HTML_FULL`},l.Ah=500,l.fh=200,l.ah=`ab-show`,l.Ih=`ab-hide`,l.lh=`ab-pause-scrolling`,l.tt={Vr:`m`,Wr:`ma`,Rh:`sf`,bt:`e`,Yr:`ti`,Zr:`ca`,URI:`u`,ea:`oa`,ra:`dt`,sa:`d`,ta:`i`,ot:`iu`,ia:`is`,aa:`ic`,oa:`ibc`,pa:`bc`,ma:`tc`,na:`cbc`,ua:`ai`,ca:`ao`,fa:`h`,da:`ha`,la:`htc`,ga:`fc`,ja:`b`,xa:`ct`,za:`o`,ha:`hi`,CSS:`css`,Z:`type`,uo:`messageFields`,va:`me`}},3811:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(3340),i=n(1792);class a extends i.Z{constructor(e,t,n,r,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O){super(e,t,void 0,n,r,a,o,s,c||=i.Z.DismissType.MANUAL,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T||=i.Z.CropType.FIT_CENTER,void 0,E,D,O),this.De=i.Z.TextAlignment.CENTER}Y(){return super.Y(a.it)}static Xr(e){return new a(e[i.Z.tt.Vr],e[i.Z.tt.Wr],e[i.Z.tt.bt],e[i.Z.tt.Yr],e[i.Z.tt.Zr],e[i.Z.tt.URI],e[i.Z.tt.ea],e[i.Z.tt.ra],e[i.Z.tt.sa],e[i.Z.tt.ta],e[i.Z.tt.ot],e[i.Z.tt.ia],e[i.Z.tt.aa],e[i.Z.tt.oa],e[i.Z.tt.pa],e[i.Z.tt.ma],e[i.Z.tt.na],e[i.Z.tt.ua],e[i.Z.tt.ca],e[i.Z.tt.fa],e[i.Z.tt.da],e[i.Z.tt.la],e[i.Z.tt.ga],(0,r.V)(e[i.Z.tt.ja]),e[i.Z.tt.xa],e[i.Z.tt.ha],e[i.Z.tt.CSS],e[i.Z.tt.va])}}a.it=i.Z.qe.Jr},6616:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1792),i=n(1507);class a extends r.Z{constructor(e,t,n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S){g||=r.Z.th.Dh,h||=r.Z.th.Mh,super(e,t||=r.Z.TextAlignment.START,n,i,a,o,s,c,l,u,d,f,void 0,p,m,h,g,_,v,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b,x,S),this.De=r.Z.TextAlignment.START}ze(){return!1}Je(){let e=document.createElement(`span`);return e.appendChild(document.createTextNode(this.message||``)),e}Oh(e){let t=e.getElementsByClassName(`ab-in-app-message`)[0];i.lP.po(t,!0,!0)||(this.slideFrom===r.Z.SlideFrom.TOP?t.style.top=`0px`:t.style.bottom=`0px`),super.Oh(e)}Y(){return super.Y(a.it)}static Xr(e){return new a(e[r.Z.tt.Vr],e[r.Z.tt.Wr],e[r.Z.tt.Rh],e[r.Z.tt.bt],e[r.Z.tt.Yr],e[r.Z.tt.Zr],e[r.Z.tt.URI],e[r.Z.tt.ea],e[r.Z.tt.ra],e[r.Z.tt.sa],e[r.Z.tt.ta],e[r.Z.tt.ot],e[r.Z.tt.aa],e[r.Z.tt.oa],e[r.Z.tt.pa],e[r.Z.tt.ma],e[r.Z.tt.na],e[r.Z.tt.ua],e[r.Z.tt.ca],e[r.Z.tt.ha],e[r.Z.tt.CSS],e[r.Z.tt.va])}}a.it=r.Z.qe.Kr},7048:(e,t,n)=>{n.d(t,{E:()=>i,f:()=>r});let r=e=>e!==null&&e.tagName===`IFRAME`;function i(e){var t;if(e.tagName===`SCRIPT`)(t=e.parentNode)==null||t.replaceChild(function(e){let t=document.createElement(`script`);t.text=e.innerHTML;for(let n of e.attributes)t.setAttribute(n.name,n.value);return t}(e),e);else for(let t of e.childNodes)i(t);return e}},4127:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var r=n(5825),i=n(2893),a=n(3552),o=n(335);let s=function(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/\-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;++e)r[e]=n.charCodeAt(e);return r};var c=n(5966),l=n(7615),u=n(5319),d=n(4556),f=n(8031);class p{constructor(e,t,n,r,i,a,o,s,c,l){this.sn=e,this.rn=t,this.on=n,this.un=i,this.an=a,this.yt=o,this.cn=s,this.hn=c,this.u=l,this.sn=e,this.rn=t,this.on=n,this.fn=r+`/safari/`+t,this.un=i||`/service-worker.js`,this.an=a,this.yt=o,this.cn=s||!1,this.hn=c||!1,this.u=l,this.ln=d.Z.dn(),this.pn=d.Z.bn()}mn(){return this.hn}yn(e,t,n,r,i){e.unsubscribe().then((e=>{e?this.vn(t,n,r,i):(o.Z.error(`Failed to unsubscribe device from push.`),typeof i==`function`&&i(!1))})).catch((e=>{o.Z.error(`Push unsubscription error: `+e),typeof i==`function`&&i(!1)}))}gn(e,t,n){var r;let i=(e=>{if(typeof e==`string`)return e;if(e.endpoint.indexOf(`https://android.googleapis.com/gcm/send`)!==0)return e.endpoint;let t=e.endpoint,n=e;return n.wn&&e.endpoint.indexOf(n.wn)===-1&&(t=e.endpoint+`/`+n.wn),t})(e),a=null,s=null,c=e;if(c.getKey!=null)try{let e=Array.from(new Uint8Array(c.getKey(`p256dh`))),t=Array.from(new Uint8Array(c.getKey(`auth`)));a=btoa(String.fromCharCode.apply(null,e)),s=btoa(String.fromCharCode.apply(null,t))}catch(e){o.Z.error((0,f.e)(e))}let l=(e=>{let t;return e.options&&(t=e.options.applicationServerKey)&&t.byteLength&&t.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(t)))).replace(/\+/g,`-`).replace(/\//g,`_`):null})(c);(r=this.sn)==null||r.kn(i,t,a,s,l),i&&typeof n==`function`&&n(i,a,s)}Pn(){var e;(e=this.sn)==null||e.Dn(!0)}Sn(e,t){var n;(n=this.sn)==null||n.Dn(!1),o.Z.info(e),typeof t==`function`&&t(!1)}An(e,t,n,r){if(t.permission===`default`)try{window.safari.pushNotification.requestPermission(this.fn,e,{api_key:this.rn,device_id:this.on?.ce().id||``},(t=>{t.permission===`granted`&&this.sn&&this.sn.setPushNotificationSubscriptionType(l.Z.NotificationSubscriptionTypes.OPTED_IN),this.An(e,t,n,r)}))}catch(e){this.Sn(`Could not request permission for push: `+e,r)}else t.permission===`denied`?this.Sn(`The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.`,r):t.permission===`granted`&&(o.Z.info(`Device successfully subscribed to push.`),this.gn(t.deviceToken,new Date,n))}requestPermission(e,t,n){let r=r=>{switch(r){case`granted`:typeof e==`function`&&e();return;case`default`:typeof t==`function`&&t();return;case`denied`:typeof n==`function`&&n();return;default:o.Z.error(`Received unexpected permission result `+r)}},i=!1;if(window.Notification.permission!==`default`)r(Notification.permission);else{let e=window.Notification.requestPermission((e=>{i&&r(e)}));e?e.then((e=>{r(e)})):i=!0}}vn(e,t,n,r){let i={userVisibleOnly:!0};t!=null&&(i.applicationServerKey=t),e.pushManager.subscribe(i).then((e=>{o.Z.info(`Device successfully subscribed to push.`),this.gn(e,new Date,n)})).catch((e=>{d.Z.isPushBlocked()?(o.Z.info(`Permission for push notifications was denied.`),typeof r==`function`&&r(!1)):(o.Z.error(`Push subscription failed: `+e),typeof r==`function`&&r(!0))}))}jn(){return this.cn?navigator.serviceWorker.getRegistration(this.un):navigator.serviceWorker.register(this.un).then((()=>navigator.serviceWorker.ready.then((e=>(e&&typeof e.update==`function`&&e.update().catch((e=>{o.Z.info(`ServiceWorker update failed: `+e)})),e)))))}xn(e){this.cn||(e.unregister(),o.Z.info(`Service worker successfully unregistered.`))}subscribe(e,t){if(!d.Z.isPushSupported())return o.Z.info(p.Nn),void(typeof t==`function`&&t(!1));if(this.ln){if(!this.cn&&window.location!=null){let e=this.un;e.indexOf(window.location.host)===-1&&(e=window.location.host+e),e.indexOf(window.location.protocol)===-1&&(e=window.location.protocol+`//`+e);let n=e.substr(0,e.lastIndexOf(`/`)+1);if(u.SD.Un().indexOf(n)!==0)return o.Z.error(`Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from `+window.location.pathname+` but service worker is at `+e+`)`),void(typeof t==`function`&&t(!0))}if(d.Z.isPushBlocked())return void this.Sn(`Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.`,t);if(this.yt&&!this.yt.Wn()&&this.yt.ii()===0)return o.Z.info(`Waiting for VAPID key from server config before subscribing to push.`),void this.yt._n((()=>{this.subscribe(e,t)}));let n=()=>{o.Z.info(`Permission for push notifications was denied.`),typeof t==`function`&&t(!1)},r=()=>{let e=`Permission for push notifications was ignored.`;d.Z.isPushBlocked()&&(e+=` The browser has automatically blocked further permission requests for a period (probably 1 week).`),o.Z.info(e),typeof t==`function`&&t(!0)},f=d.Z.isPushPermissionGranted();this.requestPermission(()=>{!f&&this.sn&&this.sn.setPushNotificationSubscriptionType(l.Z.NotificationSubscriptionTypes.OPTED_IN),this.jn().then((n=>{if(n==null)return o.Z.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void(typeof t==`function`&&t(!0));n.pushManager.getSubscription().then((r=>{let l=null;if(this.yt?.Wn()!=null&&(l=s(this.yt.Wn())),r){let s,u=null,d=null;if(this.u&&(s=this.u.j(c.I.C.In)),s&&!(0,i.kJ)(s)){let e;try{e=a.Z.qn(s).Vn}catch{e=null}e==null||isNaN(e.getTime())||e.getTime()===0||(u=e,d=new Date(u),d.setMonth(u.getMonth()+6))}l!=null&&r.options&&r.options.applicationServerKey&&r.options.applicationServerKey.byteLength&&r.options.applicationServerKey.byteLength>0&&!(0,i.Xy)(l,new Uint8Array(r.options.applicationServerKey))?(r.options.applicationServerKey.byteLength>12?o.Z.info(`Device was already subscribed to push using a different VAPID provider, creating new subscription.`):o.Z.info(`Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription.`),this.yn(r,n,l,e,t)):r.expirationTime&&new Date(r.expirationTime).valueOf()<=new Date().valueOf()?(o.Z.info(`Push subscription is expired, creating new subscription.`),this.yn(r,n,l,e,t)):s&&(0,i.kJ)(s)?this.yn(r,n,l,e,t):d==null?(o.Z.info(`No push subscription creation date found, creating new subscription.`),this.yn(r,n,l,e,t)):d.valueOf()<=new Date().valueOf()?(o.Z.info(`Push subscription older than 6 months, creating new subscription.`),this.yn(r,n,l,e,t)):(o.Z.info(`Device already subscribed to push, sending existing subscription to backend.`),this.gn(r,u,e))}else this.vn(n,l,e,t)})).catch((e=>{o.Z.error(`Error checking current push subscriptions: `+e)}))})).catch((e=>{o.Z.error(`ServiceWorker registration failed: `+e)}))},r,n)}else if(this.pn){if(this.an==null||this.an===``)return o.Z.error(`You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari`),void(typeof t==`function`&&t(!0));let n=window.safari.pushNotification.permission(this.an);this.An(this.an,n,e,t)}}unsubscribe(e,t){if(!d.Z.isPushSupported())return o.Z.info(p.Nn),void(typeof t==`function`&&t());this.ln?navigator.serviceWorker.getRegistration(this.un).then((n=>{n?n.pushManager.getSubscription().then((r=>{r?(this.Pn(),r.unsubscribe().then((r=>{r?(o.Z.info(`Device successfully unsubscribed from push.`),typeof e==`function`&&e()):(o.Z.error(`Failed to unsubscribe device from push.`),typeof t==`function`&&t()),this.xn(n)})).catch((e=>{o.Z.error(`Push unsubscription error: `+e),typeof t==`function`&&t()}))):(o.Z.info(`Device already unsubscribed from push.`),typeof e==`function`&&e())})).catch((e=>{o.Z.error(`Error unsubscribing from push: `+e),typeof t==`function`&&t()})):(o.Z.info(`Device already unsubscribed from push.`),typeof e==`function`&&e())})):this.pn&&(this.Pn(),o.Z.info(`Device unsubscribed from push.`),typeof e==`function`&&e())}}p.Nn=`Push notifications are not supported in this browser.`;let m={t:!1,i:null,m:()=>(m.o(),m.i||=new p(r.ZP.pr(),r.ZP.ba(),r.ZP.te(),r.ZP.Hs(),r.ZP.nn(r.JY.wa),r.ZP.nn(r.JY.ya),r.ZP.ir(),r.ZP.nn(r.JY.Ma),r.ZP.nn(r.JY._a),r.ZP.l()),m.i),o:()=>{m.t||=(r.ZP.g(m),!0)},destroy:()=>{m.i=null,m.t=!1}},h=m},2261:(e,t,n)=>{n.r(t),n.d(t,{requestPushPermission:()=>a});var r=n(5825),i=n(4127);function a(e,t){if(r.ZP.X())return i.default.m().subscribe(((t,n,i)=>{let a=r.ZP.cr();a&&a.requestImmediateDataFlush(),typeof e==`function`&&e(t,n,i)}),t)}},7824:(e,t,n)=>{n.r(t),n.d(t,{unregisterPush:()=>a});var r=n(5825),i=n(4127);function a(e,t){if(r.ZP.X())return i.default.m().unsubscribe(e,t)}},4556:(e,t,n)=>{n.d(t,{Z:()=>i});let r={dn:()=>`serviceWorker`in navigator&&typeof ServiceWorkerRegistration<`u`&&`showNotification`in ServiceWorkerRegistration.prototype&&`PushManager`in window,bn:()=>`safari`in window&&`pushNotification`in window.safari&&typeof window.safari.pushNotification.permission==`function`&&typeof window.safari.pushNotification.requestPermission==`function`,isPushSupported:()=>r.dn()||r.bn(),isPushBlocked:()=>{let e=r.isPushSupported()&&`Notification`in window&&window.Notification!=null&&window.Notification.permission!=null&&window.Notification.permission===`denied`,t=r.isPushSupported()&&(!(`Notification`in window)||window.Notification==null);return e||t},isPushPermissionGranted:()=>r.isPushSupported()&&`Notification`in window&&window.Notification!=null&&window.Notification.permission!=null&&window.Notification.permission===`granted`,Vi:()=>!r.isPushBlocked()&&r.isPushSupported()&&!r.isPushPermissionGranted()},i=r},7615:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(2893),i=n(335),a=n(2730),o=n(3905),s=n(7671),c=n(7750);class l{constructor(e,t){this.wt=e,this.zi=t,this.wt=e,this.zi=t}getUserId(e){let t=this.wt.getUserId();if(typeof e!=`function`)return t;i.Z.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),e(t)}addAlias(e,t){return!(0,o.ro)(e,`add alias`,`the alias`,!1)||e.length<=0?(i.Z.error(`addAlias requires a non-empty alias`),!1):!(0,o.ro)(t,`add alias`,`the label`,!1)||t.length<=0?(i.Z.error(`addAlias requires a non-empty label`),!1):this.zi.Cn(e,t).L}setFirstName(e){return!!(0,o.ro)(e,`set first name`,`the firstName`,!0)&&this.wt.nu(`first_name`,e)}setLastName(e){return!!(0,o.ro)(e,`set last name`,`the lastName`,!0)&&this.wt.nu(`last_name`,e)}setEmail(e){return e===null||(0,o.vV)(e)?this.wt.nu(`email`,e):(i.Z.error(`Cannot set email address - "${e}" did not pass RFC-5322 validation.`),!1)}setGender(e){return typeof e==`string`&&(e=e.toLowerCase()),!(e!==null&&!(0,r.fk)(l.Genders,e,`Gender "${e}" is not a valid gender.`,`User.Genders`))&&this.wt.nu(`gender`,e)}setDateOfBirth(e,t,n){return e===null&&t===null&&n===null?this.wt.nu(`dob`,null):(e=e==null?null:parseInt(e.toString()),t=t==null?null:parseInt(t.toString()),n=n==null?null:parseInt(n.toString()),e==null||t==null||n==null||isNaN(e)||isNaN(t)||isNaN(n)||t>12||t<1||n>31||n<1?(i.Z.error(`Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);`),!1):this.wt.nu(`dob`,`${e}-${t}-${n}`))}setCountry(e){return!!(0,o.ro)(e,`set country`,`the country`,!0)&&this.wt.nu(`country`,e)}setHomeCity(e){return!!(0,o.ro)(e,`set home city`,`the homeCity`,!0)&&this.wt.nu(`home_city`,e)}setLanguage(e){return!!(0,o.ro)(e,`set language`,`the language`,!0)&&this.wt.nu(`language`,e)}setEmailNotificationSubscriptionType(e){return!!(0,r.fk)(l.NotificationSubscriptionTypes,e,`Email notification setting "${e}" is not a valid subscription type.`,`User.NotificationSubscriptionTypes`)&&this.wt.nu(`email_subscribe`,e)}setPushNotificationSubscriptionType(e){return!!(0,r.fk)(l.NotificationSubscriptionTypes,e,`Push notification setting "${e}" is not a valid subscription type.`,`User.NotificationSubscriptionTypes`)&&this.wt.nu(`push_subscribe`,e)}setPhoneNumber(e){return!!(0,o.ro)(e,`set phone number`,`the phoneNumber`,!0)&&(e===null||e.match(l.En)?this.wt.nu(`phone`,e):(i.Z.error(`Cannot set phone number - "${e}" did not pass validation.`),!1))}setLastKnownLocation(e,t,n,r,a){return e==null||t==null?(i.Z.error(`Cannot set last-known location - latitude and longitude are required.`),!1):(e=parseFloat(e.toString()),t=parseFloat(t.toString()),n!=null&&(n=parseFloat(n.toString())),r!=null&&(r=parseFloat(r.toString())),a!=null&&(a=parseFloat(a.toString())),isNaN(e)||isNaN(t)||n!=null&&isNaN(n)||r!=null&&isNaN(r)||a!=null&&isNaN(a)?(i.Z.error(`Cannot set last-known location - all supplied parameters must be numeric.`),!1):e>90||e<-90||t>180||t<-180?(i.Z.error(`Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively.`),!1):n!=null&&n<0||a!=null&&a<0?(i.Z.error(`Cannot set last-known location - accuracy and altitudeAccuracy may not be negative.`),!1):this.zi.setLastKnownLocation(this.wt.getUserId(),e,t,r,n,a).L)}setCustomUserAttribute(e,t,n){if(!(0,o.bj)(e))return!1;let i=t=>{let[n]=(0,o.lg)(t,s.db,`attribute value`,`set custom user attribute "${e}"`,`custom user attribute`);return n};if((0,r.kJ)(t)){let[n,r]=(0,o.$g)(e,t);if(!n&&!r&&t.length!==0)return!1;if(n||t.length===0)return this.zi.Fn(a.G.$n,e,t).L;for(let e of t)if(!i(e))return!1}else if((0,r.Kn)(t)){if(!i(t))return!1;if(n)return this.zi.Fn(a.G.Bn,e,t).L}else if(t===void 0||!(0,o.UO)(t)||((0,r.J_)(t)&&(t=(0,c.BT)(t)),typeof t==`string`&&!(0,o.zM)(t,`set custom user attribute "${e}"`,`the element in the given array`)))return!1;return this.wt.setCustomUserAttribute(e,t)}addToCustomAttributeArray(e,t){return!!(0,o.zM)(e,`add to custom user attribute array`,`the given key`)&&!(t!=null&&!(0,o.zM)(t,`add to custom user attribute array`,`the given value`))&&this.zi.Fn(a.G.Ln,e,t).L}removeFromCustomAttributeArray(e,t){return!!(0,o.zM)(e,`remove from custom user attribute array`,`the given key`)&&!(t!=null&&!(0,o.zM)(t,`remove from custom user attribute array`,`the given value`))&&this.zi.Fn(a.G.Rn,e,t).L}incrementCustomUserAttribute(e,t){if(!(0,o.zM)(e,`increment custom user attribute`,`the given key`))return!1;t??=1;let n=parseInt(t.toString());return isNaN(n)||n!==parseFloat(t.toString())?(i.Z.error(`Cannot increment custom user attribute because the given incrementValue "${t}" is not an integer.`),!1):this.zi.Fn(a.G.On,e,n).L}setCustomLocationAttribute(e,t,n){return!!(0,o.zM)(e,`set custom location attribute`,`the given key`)&&((t!==null||n!==null)&&(t=t==null?null:parseFloat(t.toString()),n=n==null?null:parseFloat(n.toString()),t==null&&n!=null||t!=null&&n==null||t!=null&&(isNaN(t)||t>90||t<-90)||n!=null&&(isNaN(n)||n>180||n<-180))?(i.Z.error(`Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by ±90 and ±180 respectively, or must both be null for removal.`),!1):this.zi.Gn(e,t,n).L)}addToSubscriptionGroup(e){return!(0,o.ro)(e,`add user to subscription group`,`subscription group ID`,!1)||e.length<=0?(i.Z.error(`addToSubscriptionGroup requires a non-empty subscription group ID`),!1):this.zi.Hn(e,l.Kn.SUBSCRIBED).L}removeFromSubscriptionGroup(e){return!(0,o.ro)(e,`remove user from subscription group`,`subscription group ID`,!1)||e.length<=0?(i.Z.error(`removeFromSubscriptionGroup requires a non-empty subscription group ID`),!1):this.zi.Hn(e,l.Kn.UNSUBSCRIBED).L}kn(e,t,n,r,i){this.wt.kn(e,t,n,r,i),this.zi.Mn()}Dn(e){this.wt.Dn(e)}}l.Genders={MALE:`m`,FEMALE:`f`,OTHER:`o`,UNKNOWN:`u`,NOT_APPLICABLE:`n`,PREFER_NOT_TO_SAY:`p`},l.NotificationSubscriptionTypes={OPTED_IN:`opted_in`,SUBSCRIBED:`subscribed`,UNSUBSCRIBED:`unsubscribed`},l.En=/^[0-9 .\\(\\)\\+\\-]+$/,l.Kn={SUBSCRIBED:`subscribed`,UNSUBSCRIBED:`unsubscribed`},l.Yn=`user_id`,l.lu=`custom`,l.lr=997},67:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(335),i=n(5563);class a{constructor(e,t){this.cards=e,this.lastUpdated=t,this.cards=e,this.lastUpdated=t}getUnreadCardCount(){let e=0;for(let t of this.cards)t.viewed||t instanceof i.Z||e++;return e}dr(){r.Z.error(`Must be implemented in a subclass`)}logCardImpressions(e){r.Z.error(`Must be implemented in a subclass`)}logCardClick(e){r.Z.error(`Must be implemented in a subclass`)}sr(){r.Z.error(`Must be implemented in a subclass`)}}a.ur=6e4,a.Ah=500,a.Co=1e4},158:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(){}Ns(e){}changeUser(e=!1){}clearData(e=!1){}}},7671:(e,t,n)=>{n.d(t,{De:()=>i,Fz:()=>r,Go:()=>l,S6:()=>m,Tt:()=>p,U4:()=>a,Up:()=>u,Y$:()=>d,_P:()=>s,dH:()=>f,db:()=>c,rF:()=>o});let r=100,i=`inAppMessage must be an InAppMessage object`,a=`must be a Card object`,o=500,s=`logCustomEvent`,c=`setCustomUserAttribute`,l=`Braze must be initialized before calling methods.`,u=30,d=30,f=72e5,p=3,m=1},9179:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(335),i=n(5825),a=n(7559),o=n(4673);let s={q:(e,t,n)=>{let s=new o.Z,c=i.ZP.zr();if(!c)return r.Z.info(`Not logging event with type "${e}" because the current session ID could not be found.`),s;let l=c.wo();return s.ge.push(new a.Z(n||i.ZP.er()?.getUserId(),e,new Date().valueOf(),l,t)),s.L=i.ZP.l()?.xo(s.ge)||!1,s}}},1311:(e,t,n)=>{n.d(t,{cP:()=>b,tQ:()=>S,cz:()=>w,Yz:()=>E,cV:()=>T,GB:()=>O,Of:()=>D});var r=n(67),i=n(5608),a=n(1507),o=n(5563),s=n(2857),c=n(2893),l=n(7429),u=n(5825),d=n(3695),f=n(335);let p={en:{NO_CARDS_MESSAGE:`We have no updates for you at this time.<br/>Please check again later.`,FEED_TIMEOUT_MESSAGE:`Sorry, this refresh timed out.<br/>Please try again later.`},ar:{NO_CARDS_MESSAGE:`ليس لدينا أي تحديث. يرجى التحقق مرة أخرى لاحقاً`,FEED_TIMEOUT_MESSAGE:`يرجى تكرار المحاولة لاحقا`},cs:{NO_CARDS_MESSAGE:`V tuto chvíli pro vás nemáme žádné aktualizace.<br/>Zkontrolujte prosím znovu později.`,FEED_TIMEOUT_MESSAGE:`Prosím zkuste to znovu později.`},da:{NO_CARDS_MESSAGE:`Vi har ingen updates.<br/>Prøv venligst senere.`,FEED_TIMEOUT_MESSAGE:`Prøv venligst senere.`},de:{NO_CARDS_MESSAGE:`Derzeit sind keine Updates verfügbar.<br/>Bitte später noch einmal versuchen.`,FEED_TIMEOUT_MESSAGE:`Bitte später noch einmal versuchen.`},es:{NO_CARDS_MESSAGE:`No tenemos actualizaciones.<br/>Por favor compruébelo más tarde.`,FEED_TIMEOUT_MESSAGE:`Por favor inténtelo más tarde.`},"es-mx":{NO_CARDS_MESSAGE:`No tenemos ninguna actualización.<br/>Vuelva a verificar más tarde.`,FEED_TIMEOUT_MESSAGE:`Por favor, vuelva a intentarlo más tarde.`},et:{NO_CARDS_MESSAGE:`Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.`,FEED_TIMEOUT_MESSAGE:`Palun proovige hiljem uuesti.`},fi:{NO_CARDS_MESSAGE:`Päivityksiä ei ole saatavilla.<br/>Tarkista myöhemmin uudelleen.`,FEED_TIMEOUT_MESSAGE:`Yritä myöhemmin uudelleen.`},fr:{NO_CARDS_MESSAGE:`Aucune mise à jour disponible.<br/>Veuillez vérifier ultérieurement.`,FEED_TIMEOUT_MESSAGE:`Veuillez réessayer ultérieurement.`},he:{NO_CARDS_MESSAGE:`.אין לנו עדכונים. בבקשה בדוק שוב בקרוב`,FEED_TIMEOUT_MESSAGE:`.בבקשה נסה שוב בקרוב`},hi:{NO_CARDS_MESSAGE:`हमारे पास कोई अपडेट नहीं हैं। कृपया बाद में फिर से जाँच करें.।`,FEED_TIMEOUT_MESSAGE:`कृपया बाद में दोबारा प्रयास करें।.`},id:{NO_CARDS_MESSAGE:`Kami tidak memiliki pembaruan. Coba lagi nanti.`,FEED_TIMEOUT_MESSAGE:`Coba lagi nanti.`},it:{NO_CARDS_MESSAGE:`Non ci sono aggiornamenti.<br/>Ricontrollare più tardi.`,FEED_TIMEOUT_MESSAGE:`Riprovare più tardi.`},ja:{NO_CARDS_MESSAGE:`アップデートはありません。<br/>後でもう一度確認してください。`,FEED_TIMEOUT_MESSAGE:`後でもう一度試してください。`},ko:{NO_CARDS_MESSAGE:`업데이트가 없습니다. 다음에 다시 확인해 주십시오.`,FEED_TIMEOUT_MESSAGE:`나중에 다시 시도해 주십시오.`},ms:{NO_CARDS_MESSAGE:`Tiada kemas kini. Sila periksa kemudian.`,FEED_TIMEOUT_MESSAGE:`Sila cuba kemudian.`},nl:{NO_CARDS_MESSAGE:`Er zijn geen updates.<br/>Probeer het later opnieuw.`,FEED_TIMEOUT_MESSAGE:`Probeer het later opnieuw.`},no:{NO_CARDS_MESSAGE:`Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.`,FEED_TIMEOUT_MESSAGE:`Vennligst prøv igjen senere.`},pl:{NO_CARDS_MESSAGE:`Brak aktualizacji.<br/>Proszę sprawdzić ponownie później.`,FEED_TIMEOUT_MESSAGE:`Proszę spróbować ponownie później.`},pt:{NO_CARDS_MESSAGE:`Não temos atualizações.<br/>Por favor, verifique mais tarde.`,FEED_TIMEOUT_MESSAGE:`Por favor, tente mais tarde.`},"pt-br":{NO_CARDS_MESSAGE:`Não temos nenhuma atualização.<br/>Verifique novamente mais tarde.`,FEED_TIMEOUT_MESSAGE:`Tente novamente mais tarde.`},ru:{NO_CARDS_MESSAGE:`Обновления недоступны.<br/>Пожалуйста, проверьте снова позже.`,FEED_TIMEOUT_MESSAGE:`Пожалуйста, повторите попытку позже.`},sv:{NO_CARDS_MESSAGE:`Det finns inga uppdateringar.<br/>Försök igen senare.`,FEED_TIMEOUT_MESSAGE:`Försök igen senare.`},th:{NO_CARDS_MESSAGE:`เราไม่มีการอัพเดต กรุณาตรวจสอบภายหลัง.`,FEED_TIMEOUT_MESSAGE:`กรุณาลองใหม่ภายหลัง.`},uk:{NO_CARDS_MESSAGE:`Оновлення недоступні.<br/>ласка, перевірте знову пізніше.`,FEED_TIMEOUT_MESSAGE:`Будь ласка, спробуйте ще раз пізніше.`},vi:{NO_CARDS_MESSAGE:`Chúng tôi không có cập nhật nào.<br/>Vui lòng kiểm tra lại sau.`,FEED_TIMEOUT_MESSAGE:`Vui lòng thử lại sau.`},"zh-hk":{NO_CARDS_MESSAGE:`暫時沒有更新.<br/>請稍候再試.`,FEED_TIMEOUT_MESSAGE:`請稍候再試.`},"zh-hans":{NO_CARDS_MESSAGE:`暂时没有更新.<br/>请稍后再试.`,FEED_TIMEOUT_MESSAGE:`请稍候再试.`},"zh-hant":{NO_CARDS_MESSAGE:`暫時沒有更新.<br/>請稍候再試.`,FEED_TIMEOUT_MESSAGE:`請稍候再試.`},"zh-tw":{NO_CARDS_MESSAGE:`暫時沒有更新.<br/>請稍候再試.`,FEED_TIMEOUT_MESSAGE:`請稍候再試.`},zh:{NO_CARDS_MESSAGE:`暂时没有更新.<br/>请稍后再试.`,FEED_TIMEOUT_MESSAGE:`请稍候再试.`}};class m{constructor(e,t=!1){if(this.language=e,e!=null&&(e=e.toLowerCase()),e!=null&&p[e]==null){let t=e.indexOf(`-`);t>0&&(e=e.substring(0,t))}if(p[e]==null){let n=`Braze does not yet have a localization for language `+e+`, defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.`;t?f.Z.error(n):f.Z.info(n),e=`en`}this.language=e}get(e){return p[this.language][e]}}let h={t:!1,i:null,m:()=>{if(h.o(),!h.i){let e=d.Z.language,t=!1;u.ZP.nn(u.JY.zn)&&(e=u.ZP.nn(u.JY.zn),t=!0),h.i=new m(e,t)}return h.i},o:()=>{h.t||=(u.ZP.g(h),!0)},destroy:()=>{h.i=null,h.t=!1}},g=h;var _=n(7070),v=n(3905),y=n(3046);let b=`data-last-requested-refresh`,x={};function S(e){e&&(e.className=e.className.replace(`ab-show`,`ab-hide`),setTimeout((()=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),r.Z.Ah));let t=e.getAttribute(`data-update-subscription-id`);var n;t!=null&&(n=t,u.ZP.X()&&u.ZP.removeSubscription(n));let i=e.getAttribute(`data-listener-id`);i!=null&&(window.removeEventListener(`scroll`,x[i]),delete x[i])}function C(e,t){let n=document.createElement(`div`);if(n.className=`ab-feed-body`,n.setAttribute(`aria-label`,`Feed`),n.setAttribute(`role`,`feed`),e.lastUpdated==null){let e=document.createElement(`div`);e.className=`ab-no-cards-message`;let t=document.createElement(`i`);t.className=`fa fa-spinner fa-spin fa-4x ab-initial-spinner`,e.appendChild(t),n.appendChild(e)}else{let r=!1,a=t=>e.logCardClick(t);for(let s of e.cards){let c=s instanceof o.Z;!c||e.dr()?(n.appendChild((0,i.Dj)(s,a,t)),r||=!c):f.Z.error(`Received a control card for a legacy news feed. Control cards are only supported with content cards.`)}if(!r){let e=document.createElement(`div`);e.className=`ab-no-cards-message`,e.innerHTML=g.m().get(`NO_CARDS_MESSAGE`)||``,e.setAttribute(`role`,`article`),n.appendChild(e)}}return n}function w(e,t){if(e!=null&&t!=null){let n=[],r=t.querySelectorAll(`.ab-card`);e.yo||={};for(let t=0;t<r.length;t++){let o=(0,i.sv)(r[t]),s=(0,a.rJ)(r[t]),c=(0,a.Fr)(r[t]);if(e.yo[o]){s||c||(0,i.pq)(r[t]);continue}let l=(0,i.ql)(r[t]),u=(0,i.rW)(r[t]),d=l,f=u;if(!l&&s&&(l=!0,(0,i.Ji)(r[t])),!u&&c&&(u=!0,(0,i.Zw)(r[t])),l&&u){if(d&&f)continue;for(let t of e.cards)if(t.id===o){e.yo[t.id]=!0,n.push(t);break}}}n.length>0&&e.logCardImpressions(n)}}function T(e,t){if(e==null||t==null)return;t.setAttribute(`aria-busy`,`true`);let n=t.querySelectorAll(`.ab-refresh-button`)[0];n!=null&&(n.className+=` fa-spin`);let i=new Date().valueOf().toString();t.setAttribute(`data-last-requested-refresh`,i),setTimeout((()=>{if(t.getAttribute(`data-last-requested-refresh`)===i){let e=t.querySelectorAll(`.fa-spin`);for(let t=0;t<e.length;t++)e[t].className=e[t].className.replace(/fa-spin/g,``);let n=t.querySelectorAll(`.ab-initial-spinner`)[0];if(n!=null){let e=document.createElement(`span`);e.innerHTML=g.m().get(`FEED_TIMEOUT_MESSAGE`)||``,n.parentNode!=null&&(n.parentNode.appendChild(e),n.parentNode.removeChild(n))}t.getAttribute(`aria-busy`)===`true`&&t.setAttribute(`aria-busy`,`false`)}}),r.Z.Co),e.sr()}function E(e,t,n){let r=document.createElement(`div`);r.className=`ab-feed ab-hide ab-effect-slide`,r.setAttribute(`role`,`dialog`),r.setAttribute(`aria-label`,`Feed`),r.setAttribute(`tabindex`,`-1`);let i=document.createElement(`div`);i.className=`ab-feed-buttons-wrapper`,i.setAttribute(`role`,`group`),r.appendChild(i);let a=document.createElement(`i`);a.className=`fa fa-times ab-close-button`,a.setAttribute(`aria-label`,`Close Feed`),a.setAttribute(`tabindex`,`0`),a.setAttribute(`role`,`button`);let o=e=>{S(r),e.stopPropagation()};a.addEventListener(`keydown`,(e=>{e.keyCode!==l.m.Fo&&e.keyCode!==l.m.To||o(e)})),a.onclick=o;let s=document.createElement(`i`);s.className=`fa fa-refresh ab-refresh-button`,e&&e.lastUpdated==null&&(s.className+=` fa-spin`),s.setAttribute(`aria-label`,`Refresh Feed`),s.setAttribute(`tabindex`,`0`),s.setAttribute(`role`,`button`);let c=t=>{T(e,r),t.stopPropagation()};s.addEventListener(`keydown`,(e=>{e.keyCode!==l.m.Fo&&e.keyCode!==l.m.To||c(e)})),s.onclick=c,i.appendChild(s),i.appendChild(a),r.appendChild(C(e,t));let u=()=>w(e,r);if(r.addEventListener(`scroll`,u),!n){window.addEventListener(`scroll`,u);let e=_.Z.W();x[e]=u,r.setAttribute(`data-listener-id`,e)}return r}function D(e,t,n,r,i){if(!(0,c.kJ)(t))return;let a=[];for(let e of t)if(e instanceof s.Z){if(e.url&&v.y9.test(e.url)){let t=(0,y.OL)(e.url);if((0,y.je)(t)){f.Z.error((0,y.Tu)(y.yi.Qi,`Content Card`));continue}}a.push(e)}if(e.cards=a,e.lastUpdated=n,r!=null)if(r.setAttribute(`aria-busy`,`false`),e.lastUpdated==null)S(r);else{let t=r.querySelectorAll(`.ab-feed-body`)[0];if(t!=null){let n=C(e,i);t.parentNode&&t.parentNode.replaceChild(n,t),w(e,n.parentNode)}}}function O(e,t){e&&t.setAttribute(`data-update-subscription-id`,e)}},5825:(e,t,n)=>{n.d(t,{JY:()=>U,ZP:()=>te});var r=n(5966),i=n(4663),a=n(5522),o=n(335);class s{constructor(e,t,n){this.u=e,this.Jn=t,this.Qn=n,this.u=e,this.Jn=t||!1,this.Qn=n,this.Xn=new i.Z,this.Zn=0,this.gh=1}Fh(){return this.Jn}kh(){return this.u.j(r.I.C.wh)}setSdkAuthenticationSignature(e){let t=this.kh();this.u.k(r.I.C.wh,e);let n=a.Z.Yt.Qt;new a.Z(n,o.Z).setItem(n.ss.jh,this.gh,e),t!==e&&this.Os()}xh(){this.u.ti(r.I.C.wh);let e=a.Z.Yt.Qt;new a.Z(e,o.Z).re(e.ss.jh,this.gh)}subscribeToSdkAuthenticationFailures(e){return this.Qn.It(e)}qh(e){this.Qn.Dt(e)}yh(){this.Xn.removeAllSubscriptions()}Bh(){this.Zn+=1}Gh(){return this.Zn}Os(){this.Zn=0}}var c=n(158),l=n(3695);class u{constructor(e){this.id=e,this.id=e}Ir(){let e={};return this.browser!=null&&(e.browser=this.browser),this.Ia!=null&&(e.browser_version=this.Ia),this.os!=null&&(e.os_version=this.os),this.resolution!=null&&(e.resolution=this.resolution),this.language!=null&&(e.locale=this.language),this.timeZone!=null&&(e.time_zone=this.timeZone),this.userAgent!=null&&(e.user_agent=this.userAgent),e}}let d={BROWSER:`browser`,BROWSER_VERSION:`browserVersion`,OS:`os`,RESOLUTION:`resolution`,LANGUAGE:`language`,TIME_ZONE:`timeZone`,USER_AGENT:`userAgent`};var f=n(2308),p=n(7070),m=n(2893),h=n(8031);class g{constructor(e,t){this.u=e,this.ka=t,this.u=e,t??=(0,m.VO)(d),this.ka=t}ce(e=!0){let t=this.u.tu(r.I.iu.Uo);t??(t=new f.Z(p.Z.W()),e&&this.u.uu(r.I.iu.Uo,t));let n=new u(t.eu);for(let e=0;e<this.ka.length;e++)switch(this.ka[e]){case d.BROWSER:n.browser=l.Z.browser;break;case d.BROWSER_VERSION:n.Ia=l.Z.version;break;case d.OS:n.os=this.Ta();break;case d.RESOLUTION:n.Da=screen.width+`x`+screen.height;break;case d.LANGUAGE:n.language=l.Z.language;break;case d.TIME_ZONE:n.timeZone=this.Sa(new Date);break;case d.USER_AGENT:n.userAgent=l.Z.userAgent}return n}Ta(){if(l.Z.Oa())return l.Z.Oa();let e=this.u.j(r.I.C.Ca);return e&&e.os_version?e.os_version:l.Z.Ta()}Sa(e){let t=!1;if(typeof Intl<`u`&&typeof Intl.DateTimeFormat==`function`)try{if(typeof Intl.DateTimeFormat().resolvedOptions==`function`){let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e!=null&&e!==``)return e}}catch(e){o.Z.info(`Intl.DateTimeFormat threw an error, cannot detect user's time zone:`+(0,h.e)(e)),t=!0}if(t)return``;let n=e.getTimezoneOffset();return this.Fa(n)}Fa(e){let t=Math.trunc(e/60),n=Math.trunc(e%60),r=`GMT`;return e!==0&&(r+=e<0?`+`:`-`,r+=(`00`+Math.abs(t)).slice(-2)+`:`+(`00`+Math.abs(n)).slice(-2)),r}}var _=n(3826),v=n(7559),y=n(7750),b=n(9179),x=n(2730),S=n(6870),C=n(7671),w=n(8982);class T{constructor(e,t,n,r,i,a,o,s,c,l,u,d){this.on=e,this.u=t,this.zo=n,this.wt=r,this.ri=i,this.yt=a,this.rn=o,this.Go=s,this.Wo=c,this.Vo=l,this.appVersion=u,this.Xh=d,this.$h=e=>e==null?``:`${e} `,this.on=e,this.u=t,this.zo=n,this.wt=r,this.ri=i,this.yt=a,this.rn=o,this.Go=s,this.Wo=c,this.Vo=l,this.appVersion=u,this.Xh=d,this.Hh=[`npm`]}Js(e,t=!1,n=!1){let i=this.on.ce(!n),a=i.Ir(),o=this.u.j(r.I.C.Ca);(0,m.Xy)(o,a)||(e.device=a),e.api_key=this.rn,e.time=(0,y.FX)(new Date().valueOf(),!0);let s=this.u.j(r.I.C.Yh)||[],c=this.u.j(r.I.C.Jh)||``;if(this.Hh.length>0&&(!(0,m.Xy)(s,this.Hh)||c!==this.ri.Si())&&(e.sdk_metadata=this.Hh),e.sdk_version=this.Wo,this.Vo&&(e.sdk_flavor=this.Vo),e.app_version=this.appVersion,e.app_version_code=this.Xh,e.device_id=i.id,t){let t=this.wt.getUserId();t!=null&&(e.user_id=t)}if(!e.user_id&&!this.zo.Fh()){let t=(0,w.q)(this.u);t&&(e.alias=t)}return e}Ks(e,t,n){let r=t.auth_error,i=t.error;if(!r&&!i)return!0;if(r){let t;this.zo.Bh();let i={errorCode:r.error_code};for(let e of n)(0,m.kJ)(e)&&e[0]===`X-Braze-Auth-Signature`&&(i.signature=e[1]);e.respond_with&&e.respond_with.user_id?i.userId=e.respond_with.user_id:e.user_id&&(i.userId=e.user_id);let a=r.reason;return a?(i.reason=a,t=`due to ${a}`):t=`with error code ${r.error_code}.`,this.zo.Fh()||(t+=` Please use the "enableSdkAuthentication" initialization option to enable authentication.`),o.Z.error(`SDK Authentication failed ${t}`),this.Qh(e.events||[],e.attributes||[]),this.zo.qh(i),!1}if(i){let n,r=i;switch(r){case _.Z.Zh:return n=`Received successful response with empty body.`,b.Z.q(x.G.qs,{e:n}),o.Z.info(n),!1;case _.Z.Ra:return n=`Received successful response with invalid JSON`,b.Z.q(x.G.qs,{e:n+`: `+t.response}),o.Z.info(n),!1;case _.Z.qa:r=`The API key "${e.api_key}" is invalid for the baseUrl ${this.Go}`;break;case _.Z.Aa:r=`Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.`;break;case _.Z.Ba:r=`No device identifier. Please contact support@braze.com`}o.Z.error(`Backend error: `+r)}return!1}Na(e,t,n,r){return!!(e&&e.length!==0||t&&t.length!==0||n||r)}Xa(e,t,n,r,i=!1){let a=[],o=e=>e||``,s=o(this.wt.getUserId()),c=this.Zi(e,t),l=[],u=[],d,f=null;if(n.length>0){let e=[];for(let t of n){if(d=t.Ir(),this.zo.Fh()){if(s&&!d.user_id){f||={},f.events||=[],f.events.push(d);continue}if(o(d.user_id)!==s){u.push(d);continue}}e.push(d)}e.length>0&&(c.events=e)}if(r.length>0){let e=[];for(let t of r)t&&(this.zo.Fh()&&o(t.user_id)!==s?l.push(t):e.push(t));e.length>0&&(c.attributes=e)}if(this.Qh(u,l),c=this.Js(c,!0,i),f){f=this.Js(f,!1,i);let e={requestData:f,headers:this.$s(f,S.Z.Ps.$a)};a.push(e)}if(c&&!this.Na(c.events,c.attributes,e,t))return f?a:null;let p={requestData:c,headers:this.$s(c,S.Z.Ps.$a)};return a.push(p),a}Qh(e,t){if(e){let t=[];for(let n of e){let e=v.Z.fromJson(n);e.time=(0,y.Pn)(e.time),t.push(e)}this.u.xo(t)}if(t)for(let e of t)this.u.La(e)}Vs(e,t){let n=`HTTP error `;e!=null&&(n+=e+` `),n+=t,o.Z.error(n)}qr(e){return b.Z.q(x.G.Ea,{n:e})}Zi(e,t,n){let r={};e&&(r.feed=!0),t&&(r.triggers=!0);let i=n??this.wt.getUserId();if(i&&(r.user_id=i),!r.user_id&&!this.zo.Fh()){let e=(0,w.q)(this.u);e&&(r.alias=e)}return r.config={config_time:this.yt.ii()},{respond_with:r}}Ka(e){let t=new Date().valueOf(),n=C.dH.toString(),r=S.Z.Pa(this.u,e);return r!==-1&&(n=(t-r).toString()),n}$s(e,t,n=!1){let i=[[`X-Braze-Api-Key`,this.rn]],a=this.Ka(t);i.push([`X-Braze-Last-Req-Ms-Ago`,a]);let o=S.Z.Ua(this.u,t).toString();i.push([`X-Braze-Req-Attempt`,o]);let s=!1;if(e.respond_with!=null&&e.respond_with.triggers&&(i.push([`X-Braze-TriggersRequest`,`true`]),s=!0),e.respond_with!=null&&e.respond_with.feed&&(i.push([`X-Braze-FeedRequest`,`true`]),s=!0),t===S.Z.Ps.Bs){i.push([`X-Braze-ContentCardsRequest`,`true`]);let e=this.u.j(r.I.C.As);e&&n||(e=0,this.u.k(r.I.C.As,e)),i.push([`BRAZE-SYNC-RETRY-COUNT`,e.toString()]),s=!0}if(t===S.Z.Ps.bi&&(i.push([`X-Braze-FeatureFlagsRequest`,`true`]),s=!0),s&&i.push([`X-Braze-DataRequest`,`true`]),this.zo.Fh()){let e=this.zo.kh();e!=null&&i.push([`X-Braze-Auth-Signature`,e])}return i}Ga(e,t,n,r){window.setTimeout((()=>{o.Z.info(`Retrying rate limited ${this.$h(r)}SDK request.`),this.Xs(t,n,r)}),e)}Xs(e,t,n,i){if(!this.Ha(n))return o.Z.info(`${this.$h(n)}SDK request being rate limited.`),void(typeof i==`function`&&i());let a=this.Wa();if(!a.Ya)return o.Z.info(`${this.$h(n)}SDK request being rate limited. Request will be retried in ${Math.trunc(a.Ja/1e3)} seconds.`),void this.Ga(a.Ja,e,t,n);this.u.k(r.I.C.Qa,new Date().valueOf());let s=e.device;s&&s.os_version instanceof Promise?s.os_version.then((n=>{e.device.os_version=n,t(a.Va)})):t(a.Va)}Za(e){var t;(t=this.u)==null||t.k(r.I.C.au,e)}du(e,t){let n=this.fu();n??={},n[e]=t,this.u.k(r.I.C.vu,n)}Ru(){return this.u?.j(r.I.C.au)}fu(){return this.u?.j(r.I.C.vu)}gu(e,t,n,r,i=``){let a;if(i){let e=this.fu();a=e==null||isNaN(e[i])?t:e[i]}else a=this.Ru(),(a==null||isNaN(a))&&(a=t);let o=(e-r)/1e3;return a=Math.min(a+o/n,t),a}pu(e,t){return Math.max(0,(1-e)*t*1e3)}bu(e,t=``){let n={Ya:!0,Va:-1,Ja:0};if(e??=!0,!e&&!t)return n;let i,a,o=null;if(e)o=this.u?.j(r.I.C.Qa);else{let e=S.Z.qu(this.u);if(e==null||e[t]==null)return n;o=e[t]}if(o==null||isNaN(o)||(e?(i=this.yt?.Au()||-1,a=this.yt?.Du()||-1):(i=this.yt?.Tu(t)||-1,a=this.yt?.ku(t)||-1),i===-1||a===-1))return n;let s=new Date().valueOf(),c=this.gu(s,i,a,o,t);return c<1?(n.Ya=!1,n.Ja=this.pu(c,a),n):(c=Math.trunc(c)-1,n.Va=c,e?this.Za(c):this.du(t,c),n)}Wa(){return this.bu(!0)}Ha(e){let t=this.bu(!1,e);return!(t&&!t.Ya)}Os(){this.zo.Os()}Hs(){return this.Go}addSdkMetadata(e){for(let t of e)this.Hh.indexOf(t)===-1&&this.Hh.push(t)}}var E=n(1843),D=n(6504),O=n(4673),k=n(4556);class A{constructor(e,t,n,r,a,o,s,c,l,u){this.rn=e,this.baseUrl=t,this.ri=n,this.on=r,this.wt=a,this.yt=o,this.u=s,this.wu=c,this.zo=l,this.qt=u,this.rn=e,this.baseUrl=t,this.yu=0,this.fE=s.dE()||0,this.ju=null,this.ri=n,this.on=r,this.wt=a,this.yt=o,this.u=s,this.zo=l,this.qt=u,this.wu=c,this.Su=new i.Z,this.$u=null,this.Cu=50,this.Fu=!1}Lu(e,t){return!e&&!t&&this.zo.Gh()>=this.Cu}Mu(e){let t=this.ri.Gl();if(e.length>0){let n=this.wt.getUserId();for(let r of e){let e=!r.userId&&!n||r.userId===n;r.type===x.G.ql&&e&&(t=!0)}}return t}Pu(e=!1,t=!1,n=!0,i,a,s,c=!1,l=!1){n&&this.xu();let u=this.u.AE(),d=this.u.OE(),f=!1,p=(e,t,o=-1)=>{let c=!1,l=new Date().valueOf();S.Z._s(this.u,S.Z.Ps.$a,l),o!==-1&&t.push([`X-Braze-Req-Tokens-Remaining`,o.toString()]),E.Z.Gs({url:this.baseUrl+`/data/`,data:e,headers:t,L:n=>{e.respond_with!=null&&e.respond_with.triggers&&(this.yu=Math.max(this.yu-1,0)),this.qt.Ks(e,n,t)?(this.zo.Os(),this.yt.al(n),e.respond_with!=null&&e.respond_with.user_id!=this.wt.getUserId()||(e.device!=null&&this.u.k(r.I.C.Ca,e.device),e.sdk_metadata!=null&&(this.u.k(r.I.C.Yh,e.sdk_metadata),this.u.k(r.I.C.Jh,this.ri.Si())),this.wu(n),S.Z.Qs(this.u,S.Z.Ps.$a,1),typeof i==`function`&&i())):n.auth_error&&(c=!0)},error:()=>{e.respond_with!=null&&e.respond_with.triggers&&(this.yu=Math.max(this.yu-1,0)),this.qt.Qh(e.events,e.attributes),typeof a==`function`&&a()},Ws:e=>{if(typeof s==`function`&&s(e),n&&!f){if(e&&!c)this.Iu();else{S.Z.Ys(this.u,S.Z.Ps.$a);let e=this.ju;(e==null||e<1e3*this.fE)&&(e=1e3*this.fE),this.Iu(Math.min(3e5,(0,D.R)(1e3*this.fE,3*e)))}f=!0}}})},m=this.Mu(u),h=t||m;if(this.Lu(c,m))return void o.Z.info(`Declining to flush data due to 50 consecutive authentication failures`);if(n&&!this.qt.Na(u,d,e,h))return this.Iu(),void(typeof s==`function`&&s(!0));let g=this.qt.Xa(e,h,u,d,l);h&&this.yu++;let _=!1;if(g)for(let e of g)this.qt.Xs(e.requestData,(t=>p(e.requestData,e.headers,t)),S.Z.Ps.$a,a),_=!0;this.zo.Fh()&&n&&!_?this.Iu():m&&(o.Z.info(`Invoking new session subscriptions`),this.Su.Dt())}Nu(){return this.yu>0}Iu(e=1e3*this.fE){this.Fu||(this.xu(),this.$u=window.setTimeout((()=>{if(document.hidden){let e=`visibilitychange`,t=()=>{document.hidden||(document.removeEventListener(e,t,!1),this.Pu())};document.addEventListener(e,t,!1)}else this.Pu()}),e),this.ju=e)}xu(){this.$u!=null&&(clearTimeout(this.$u),this.$u=null)}initialize(){this.Fu=!1,this.Iu()}destroy(){this.Su.removeAllSubscriptions(),this.zo.yh(),this.xu(),this.Fu=!0,this.Pu(void 0,void 0,!1,void 0,void 0,void 0,void 0,!0),this.$u=null}mr(e){return this.Su.It(e)}openSession(){let e=this.ri.Si()!==this.ri.wo();e&&(this.u.cE(r.I.iu.Uo),this.u.cE(r.I.iu.su)),this.Pu(void 0,!1,void 0,(()=>{this.u.ti(r.I.C.vi)})),this.Mn(),e&&Promise.resolve().then(n.bind(n,4127)).then((e=>{if(this.Fu)return;let t=e.default.m();if(t!=null&&(k.Z.isPushPermissionGranted()||k.Z.isPushBlocked())){let e=()=>{t.mn()?o.Z.info(`Push token maintenance is disabled, not refreshing token for backend.`):t.subscribe()},n=(t,n)=>{n&&e()},i=()=>{let t=this.u.j(r.I.C.In);(t==null||t)&&e()},s=a.Z.Yt.Qt;new a.Z(s,o.Z).jr(s.ss.cu,n,i)}}))}Ou(){this.u.ti(r.I.C.gi),this.u.ti(r.I.C.ws),this.u.ti(r.I.C.Cr)}changeUser(e,t,n){let i=this.wt.getUserId();if(i!==e){this.ri.yl(),this.Ou(),i!=null&&this.Pu(void 0,!1,void 0,void 0,void 0),this.wt.ou(e),n?this.zo.setSdkAuthenticationSignature(n):this.zo.xh();for(let e=0;e<t.length;e++)t[e].changeUser(i==null);i!=null&&this.u.ti(r.I.C.J),this.u.ti(r.I.C.Ca),this.u.ti(r.I.C.nE),this.u.ti(r.I.C._E),this.openSession(),o.Z.info(`Changed user to "`+e+`".`)}else{let t=`Doing nothing.`;n&&this.zo.kh()!==n&&(this.zo.setSdkAuthenticationSignature(n),t=`Updated SDK authentication signature`),o.Z.info(`Current user is already ${e}. ${t}`)}}requestImmediateDataFlush(e){this.xu(),this.ri.wo(),this.Pu(void 0,void 0,void 0,void 0,(()=>{o.Z.error(`Failed to flush data, request will be retried automatically.`)}),e,!0)}requestFeedRefresh(){this.ri.wo(),this.Pu(!0)}$r(e,t){this.ri.wo(),o.Z.info(`Requesting explicit trigger refresh.`),this.Pu(void 0,!0,void 0,e,t)}Cn(e,t){let n=x.G.zu,i={a:e,l:t},a=b.Z.q(n,i);return a&&(o.Z.info(`Logged alias ${e} with label ${t}`),this.u.k(r.I.C._E,i)),a}Fn(e,t,n){if(this.yt.hu(t))return o.Z.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new O.Z;let r={key:t,value:n},i=b.Z.q(e,r);if(i){let e=typeof n==`object`?JSON.stringify(n,null,2):n;o.Z.info(`Logged custom attribute: ${t} with value: ${e}`)}return i}setLastKnownLocation(e,t,n,r,i,a){let s={latitude:t,longitude:n};r!=null&&(s.altitude=r),i!=null&&(s.ll_accuracy=i),a!=null&&(s.alt_accuracy=a);let c=b.Z.q(x.G.Uu,s,e||void 0);return c&&o.Z.info(`Set user last known location as ${JSON.stringify(s,null,2)}`),c}kr(e,t){let n=this.ri.wo();return new v.Z(this.wt.getUserId(),x.G._u,e,n,{cid:t})}Bu(e,t){return new a.Z(e,t)}Mn(){let e=a.Z.Yt.Qt;this.Bu(e,o.Z).setItem(e.ss.$a,1,{baseUrl:this.baseUrl,data:{api_key:this.rn,device_id:this.on.ce().id},userId:this.wt.getUserId(),sdkAuthEnabled:this.zo.Fh()})}yr(e){for(let t of e)if(t.api_key===this.rn)this.qt.Qh(t.events,t.attributes);else{let e=a.Z.Yt.Qt;new a.Z(e,o.Z).setItem(e.ss.wr,p.Z.W(),t)}}Gn(e,t,n){if(this.yt.hu(e))return o.Z.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new O.Z;let r,i;return t===null&&n===null?(r=x.G.Eu,i={key:e}):(r=x.G.Ju,i={key:e,latitude:t,longitude:n}),b.Z.q(r,i)}Hn(e,t){let n={group_id:e,status:t};return b.Z.q(x.G.Ku,n)}}class j{constructor(e=0,t=[],n=[],r=[],i=null,a=null,o={enabled:!1},s={enabled:!1,refresh_rate_limit:void 0},c={enabled:!0,capacity:C.Up,refill_rate:C.Y$,endpoint_overrides:{}}){this.hl=e,this.gl=t,this.fl=n,this.bl=r,this.Rl=i,this.cl=a,this.ml=o,this.hi=s,this.ol=c,this.hl=e,this.gl=t,this.fl=n,this.bl=r,this.Rl=i,this.cl=a,this.ml=o,this.hi=s,this.ol=c}Y(){return{s:`5.3.1`,l:this.hl,e:this.gl,a:this.fl,p:this.bl,m:this.Rl,v:this.cl,c:this.ml,f:this.hi,grl:this.ol}}static qn(e){let t=e.l;return e.s!==`5.3.1`&&(t=0),new j(t,e.e,e.a,e.p,e.m,e.v,e.c,e.f,e.grl)}}class M{constructor(e){this.u=e,this.u=e,this.tl=new i.Z,this.el=new i.Z,this.il=new i.Z,this.sl=null,this.rl=null}ll(){if(this.rl==null){let e=this.u.j(r.I.C.ul);this.rl=e==null?new j:j.qn(e)}return this.rl}ii(){return this.ll().hl}al(e){if(e!=null&&e.config!=null){let t=e.config;if(t.time>this.ll().hl){let e=new j(t.time,t.events_blacklist,t.attributes_blacklist,t.purchases_blacklist,t.messaging_session_timeout,t.vapid_public_key,t.content_cards,t.feature_flags,(e=>e??this.ll().ol)(t.global_request_rate_limit)),n=!1;e.cl!=null&&this.Wn()!==e.cl&&(n=!0);let i=!1;e.ml.enabled!=null&&this.si()!==e.ml.enabled&&(i=!0);let a=!1;e.hi.enabled!=null&&this.ci()!==e.hi.enabled&&(a=!0),this.rl=e,this.u.k(r.I.C.ul,e.Y()),n&&this.tl.Dt(),i&&this.el.Dt(),a&&this.il.Dt()}}}_n(e){let t=this.tl.It(e);return this.sl&&this.tl.removeSubscription(this.sl),this.sl=t,t}Is(e){return this.el.It(e)}ji(e){return this.il.It(e)}me(e){return this.ll().gl.indexOf(e)!==-1}hu(e){return this.ll().fl.indexOf(e)!==-1}Dr(e){return this.ll().bl.indexOf(e)!==-1}dl(){return this.ll().Rl}Wn(){return this.ll().cl}si(){return this.ll().ml.enabled||!1}Cl(){let e=this.ll().ol;return!(!e||e.enabled==null)&&e.enabled}Au(){if(!this.Cl())return-1;let e=this.ll().ol;return e.capacity==null||e.capacity<10?-1:e.capacity}Du(){if(!this.Cl())return-1;let e=this.ll().ol;return e.refill_rate==null||e.refill_rate<=0?-1:e.refill_rate}vl(e){let t=this.ll().ol.endpoint_overrides;return t==null?null:t[e]}Tu(e){let t=this.vl(e);return t==null||isNaN(t.capacity)||t.capacity<=0?-1:t.capacity}ku(e){let t=this.vl(e);return t==null||isNaN(t.refill_rate)||t.refill_rate<=0?-1:t.refill_rate}ci(){return this.ll().hi.enabled&&this.Ri()==null?(b.Z.q(x.G.qs,{e:`Missing feature flag refresh_rate_limit.`}),!1):this.ll().hi.enabled||!1}Ri(){return this.ll().hi.refresh_rate_limit}}class N{constructor(e,t,n,r){this.u=e,this.wt=t,this.yt=n,this.wl=r,this.u=e,this.wt=t,this.yt=n,this.Sl=1e3,(r==null||isNaN(r))&&(r=1800),r<this.Sl/1e3&&(o.Z.info(`Specified session timeout of `+r+`s is too small, using the minimum session timeout of `+this.Sl/1e3+`s instead.`),r=this.Sl/1e3),this.wl=r}jl(e,t){return new v.Z(this.wt.getUserId(),x.G.xl,e,t.eu,{d:(0,y.FX)(e-t.Dl)})}Si(){let e=this.u.tu(r.I.iu.El);return e==null?null:e.eu}Gl(){let e=new Date().valueOf(),t=this.yt.dl(),n=this.u.j(r.I.C.Nl);if(n!=null&&t==null)return!1;let i=!1;return n==null?i=!0:t!=null&&(i=e-n>1e3*t),i&&this.u.k(r.I.C.Nl,e),i}zl(e,t){return t==null||t.Hl==null||!(e-t.Dl<this.Sl)&&t.Hl<e}wo(){let e=new Date().valueOf(),t=e+1e3*this.wl,n=this.u.tu(r.I.iu.El);if(this.zl(e,n)){let i=`Generating session start event with time `+e;if(n!=null){let e=n.Wl;e-n.Dl<this.Sl&&(e=n.Dl+this.Sl),this.u.kl(this.jl(e,n)),i+=` (old session ended `+e+`)`}i+=`. Will expire `+t.valueOf(),o.Z.info(i);let a=new f.Z(p.Z.W(),t);return this.u.kl(new v.Z(this.wt.getUserId(),x.G.ql,e,a.eu)),this.u.uu(r.I.iu.El,a),this.u.j(r.I.C.Nl)??this.u.k(r.I.C.Nl,e),a.eu}if(n!=null)return n.Wl=e,n.Hl=t,this.u.uu(r.I.iu.El,n),n.eu}yl(){let e=this.u.tu(r.I.iu.El);e!=null&&(this.u.Al(r.I.iu.El),this.u.kl(this.jl(new Date().valueOf(),e)))}}let P={Qo:function(e,t=!1){let n=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(r.I.C.ec,`true`),localStorage.getItem(r.I.C.ec)&&(localStorage.removeItem(r.I.C.ec),n=!0)}catch(e){if(!(e instanceof Error&&(e.name===`QuotaExceededError`||e.name===`NS_ERROR_DOM_QUOTA_REACHED`)&&localStorage.length>0))throw e;n=!0}}catch{o.Z.info(`Local Storage not supported!`)}let i=P.oc(),a=new r.Z.tc(e,i&&!t,n),s;return s=n?new r.Z.rc(e):new r.Z.ac,new r.Z(a,s)},oc:function(){return navigator.cookieEnabled||`cookie`in document&&(document.cookie.length>0||(document.cookie=`test`).indexOf.call(document.cookie,`test`)>-1)}},F=P;var I=n(9342),L=n(8548),R=n(3552),z=n(7615);class B{constructor(e,t){this.yt=e,this.u=t,this.yt=e,this.u=t}getUserId(){let e=this.u.tu(r.I.iu.su);if(e==null)return null;let t=e.eu,n=(0,L.E)(t);if(n>z.Z.lr){for(;n>z.Z.lr;)t=t.slice(0,t.length-1),n=(0,L.E)(t);e.eu=t,this.u.uu(r.I.iu.su,e)}return t}ou(e){let t=this.getUserId()==null;this.u.uu(r.I.iu.su,new f.Z(e)),t&&this.u.ru(e)}setCustomUserAttribute(e,t){if(this.yt.hu(e))return o.Z.info(`Custom Attribute "`+e+`" is blocklisted, ignoring.`),!1;let n={};return n[e]=t,this.nu(z.Z.lu,n,!0)}nu(e,t,n=!1,r=!1){let i=this.u.mu(this.getUserId(),e,t),a=``,s=e,c=t;return n&&(a=` custom`,typeof t==`object`&&(s=Object.keys(t)[0],c=t[s],typeof c==`object`&&(c=JSON.stringify(c,null,2)))),!r&&i&&o.Z.info(`Logged${a} attribute ${s} with value ${c}`),i}kn(e,t,n,i,s){this.nu(`push_token`,e,!1,!0),this.nu(`custom_push_public_key`,n,!1,!0),this.nu(`custom_push_user_auth`,i,!1,!0),this.nu(`custom_push_vapid_public_key`,s,!1,!0);let c=a.Z.Yt.Qt,l=new a.Z(c,o.Z),u=new R.Z(e,t,n,i,s);this.u.k(r.I.C.In,u.Y()),l.setItem(c.ss.cu,c.ie,!0)}Dn(e){if(this.nu(`push_token`,null,!1,!0),this.nu(`custom_push_public_key`,null,!1,!0),this.nu(`custom_push_user_auth`,null,!1,!0),this.nu(`custom_push_vapid_public_key`,null,!1,!0),e){let e=a.Z.Yt.Qt,t=new a.Z(e,o.Z);this.u.k(r.I.C.In,!1),t.setItem(e.ss.cu,e.ie,!1)}}}var V=n(1148),H=n(5319);let ee={Eo:`allowCrawlerActivity`,_o:`baseUrl`,Io:`noCookies`,Ao:`devicePropertyAllowlist`,_a:`disablePushTokenMaintenance`,So:`enableLogging`,No:`enableSdkAuthentication`,Ma:`manageServiceWorkerExternally`,Oo:`minimumIntervalBetweenTriggerActionsInSeconds`,Po:`sessionTimeoutInSeconds`,Ro:`appVersion`,Lo:`appVersionNumber`,wa:`serviceWorkerLocation`,ya:`safariWebsitePushId`,zn:`localization`,bo:`contentSecurityNonce`,Do:`allowUserSuppliedJavascript`,jo:`inAppMessageZIndex`,ho:`openInAppMessagesInNewTab`,en:`openNewsFeedCardsInNewTab`,Lh:`requireExplicitInAppMessageDismissal`,Mo:`doNotLoadFontAwesome`,Uo:`deviceId`,Bo:`sdkFlavor`,tn:`openCardsInNewTab`},U={Eo:`allowCrawlerActivity`,_o:`baseUrl`,Io:`noCookies`,Ao:`devicePropertyAllowlist`,_a:`disablePushTokenMaintenance`,So:`enableLogging`,No:`enableSdkAuthentication`,Ma:`manageServiceWorkerExternally`,Oo:`minimumIntervalBetweenTriggerActionsInSeconds`,Po:`sessionTimeoutInSeconds`,Ro:`appVersion`,Lo:`appVersionNumber`,wa:`serviceWorkerLocation`,ya:`safariWebsitePushId`,zn:`localization`,bo:`contentSecurityNonce`,Do:`allowUserSuppliedJavascript`,jo:`inAppMessageZIndex`,ho:`openInAppMessagesInNewTab`,tn:`openCardsInNewTab`,en:`openNewsFeedCardsInNewTab`,Lh:`requireExplicitInAppMessageDismissal`,Mo:`doNotLoadFontAwesome`,Uo:`deviceId`,Bo:`sdkFlavor`},te=new class{constructor(){this.rn=``,this.Wo=``,this.Vo=void 0,this.zo=null,this.on=null,this.qt=null,this.zi=null,this.yt=null,this.ri=null,this.u=null,this.wt=null,this.Go=``,this.Ko=!1,this.$o=!1,this.qo=new i.Z,this.Jo=new i.Z,this.options={},this.Yo=[],this.Ho=[],this._e=[],this.Wo=`5.3.1`}Xo(e){this.qo.It(e)}Sh(e){this.Jo.It(e)}initialize(e,t){if(this.so())return o.Z.info(`Braze has already been initialized with an API key.`),!0;this.options=t||{};let a=this.nn(U.So),c=(0,V.L)(H.SD.Un());if(c&&c.brazeLogging===`true`&&(a=!0),o.Z.init(a),o.Z.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),e==null||e===``||typeof e!=`string`)return o.Z.error(`Braze requires a valid API key to be initialized.`),!1;this.rn=e;let u=this.nn(U._o);if(u==null||u===``||typeof u!=`string`)return o.Z.error(`Braze requires a valid baseUrl to be initialized.`),!1;!1===/^https?:/.test(u)&&(u=`https://${u}`);let p=u;if(u=document.createElement(`a`),u.href=p,u.pathname===`/`&&(u=`${u}api/v3`),this.Go=u.toString(),l.Z.Zo&&!this.nn(U.Eo))return o.Z.info(`Ignoring activity from crawler bot `+navigator.userAgent),this.$o=!0,!1;let h=this.nn(U.Io)||!1;if(this.u=F.Qo(e,h),h&&this.u.Wh(e),new r.Z.ee(null,!0).br(r.I.se))return o.Z.info(`Ignoring all activity due to previous opt out`),this.$o=!0,!1;for(let e of(0,m.XP)(this.options))(0,m.VO)(ee).indexOf(e)===-1&&o.Z.warn(`Ignoring unknown initialization option '${e}'.`);let _=[`mparticle`,`wordpress`,`tealium`];if(this.nn(U.Bo)!=null){let e=this.nn(U.Bo);_.indexOf(e)===-1?o.Z.error(`Invalid sdk flavor passed: `+e):this.Vo=e}let v=this.nn(ee.Ao);if(v!=null)if((0,m.kJ)(v)){let e=[];for(let t=0;t<v.length;t++)(0,m.fk)(d,v[t],`devicePropertyAllowlist contained an invalid value.`,`DeviceProperties`)&&e.push(v[t]);v=e}else o.Z.error(`devicePropertyAllowlist must be an array. Defaulting to all properties.`),v=null;let y=this.nn(U.Uo);if(y){let e=new f.Z(y);this.u.uu(r.I.iu.Uo,e)}this.on=new g(this.u,v),this.yt=new M(this.u),this.wt=new B(this.yt,this.u),this.ri=new N(this.u,this.wt,this.yt,this.nn(U.Po));let b=new i.Z;return this.zo=new s(this.u,this.nn(U.No),b),this.$t(b),this.qt=new T(this.on,this.u,this.zo,this.wt,this.ri,this.yt,this.rn,this.Go,this.Wo,this.Vo||``,this.nn(U.Ro),this.nn(U.Lo)),this.zi=new A(this.rn,this.Go,this.ri,this.on,this.wt,this.yt,this.u,(e=>{if(this.so())for(let t of this.gr())t.Ns(e)}),this.zo,this.qt),this.zi.initialize(),h||this.u.Vh(),o.Z.info(`Initialized for the Braze backend at "${this.nn(U._o)}" with API key "${this.rn}".`),I.n.o(),this.yt.ji((()=>{var e;this.Ko&&(e=this.yt)!=null&&e.ci()&&n.e(787).then(n.bind(n,9787)).then((e=>{this.Ko&&(0,e.default)()}))})),this.zi.mr((()=>{var e;this.Ko&&(e=this.yt)!=null&&e.ci()&&n.e(787).then(n.bind(n,9787)).then((e=>{this.Ko&&(0,e.default)(void 0,void 0,!0)}))})),this.qo.Dt(this.options),this.Ko=!0,!0}destroy(e){if(o.Z.destroy(),this.so()){this.Jo.Dt(),this.Jo.removeAllSubscriptions();for(let e of this.Yo)e.destroy();this.Yo=[];for(let e of this.Ho)e.clearData(!1);this.Ho=[],this.removeAllSubscriptions(),this._e=[],this.zi!=null&&this.zi.destroy(),this.zi=null,this.zo=null,this.on=null,this.qt=null,this.yt=null,this.ri=null,this.wt=null,this.options={},this.Vo=void 0,this.Ko=!1,this.$o=!1,e&&(this.u=null)}}X(){return!(this.Kh()||!this.so()&&(console.warn(C.Go),1))}ba(){return this.rn}Sr(){return this.zo}Hs(){return this.Go}te(){return this.on}nr(){return this.qt}nn(e){return this.options[e]}gr(){return this.Ho}cr(){return this.zi}ir(){return this.yt}zr(){return this.ri}l(){return this.u}pr(){if(this.wt&&this.zi)return new z.Z(this.wt,this.zi)}er(){return this.wt}tr(){return!0===this.nn(U.Do)}g(e){let t=!1;for(let n of this.Yo)n===e&&(t=!0);t||this.Yo.push(e)}ar(e){let t=!1;for(let n of this.Ho)n.constructor===e.constructor&&(t=!0);e instanceof c.Z&&!t&&this.Ho.push(e)}$t(e){e instanceof i.Z&&this._e.push(e)}removeAllSubscriptions(){if(this.X())for(let e of this._e)e.removeAllSubscriptions()}removeSubscription(e){if(this.X())for(let t of this._e)t.removeSubscription(e)}oe(e){this.$o=e}so(){return this.Ko}Kh(){return this.$o}Ds(){return this.Wo}}},5966:(e,t,n)=>{n.d(t,{I:()=>d,Z:()=>f});var r=n(7559),i=n(2308),a=n(2893),o=n(2730),s=n(335),c=n(7615),l=n(3695),u=n(8031);let d={iu:{su:`ab.storage.userId`,Uo:`ab.storage.deviceId`,El:`ab.storage.sessionId`},C:{ec:`ab.test`,tE:`ab.storage.events`,eE:`ab.storage.attributes`,sE:`ab.storage.attributes.anonymous_user`,Ca:`ab.storage.device`,Yh:`ab.storage.sdk_metadata`,Jh:`ab.storage.session_id_for_cached_metadata`,In:`ab.storage.pushToken`,Ui:`ab.storage.newsFeed`,ki:`ab.storage.lastNewsFeedRefresh`,J:`ab.storage.cardImpressions`,ul:`ab.storage.serverConfig`,rE:`ab.storage.triggers`,oE:`ab.storage.triggers.ts`,Nl:`ab.storage.messagingSessionStart`,ws:`ab.storage.cc`,gs:`ab.storage.ccLastFullSync`,ys:`ab.storage.ccLastCardUpdated`,nE:`ab.storage.ccRateLimitCurrentTokenCount`,au:`ab.storage.globalRateLimitCurrentTokenCount`,vu:`ab.storage.dynamicRateLimitCurrentTokenCount`,v:`ab.storage.ccClicks`,H:`ab.storage.ccImpressions`,A:`ab.storage.ccDismissals`,aE:`ab.storage.lastDisplayedTriggerTimesById`,iE:`ab.storage.lastDisplayedTriggerTime`,EE:`ab.storage.triggerFireInstancesById`,wh:`ab.storage.signature`,As:`ab.storage.brazeSyncRetryCount`,Ss:`ab.storage.sdkVersion`,gi:`ab.storage.ff`,vi:`ab.storage.ffImpressions`,xi:`ab.storage.ffLastRefreshAt`,Di:`ab.storage.ff.sessionId`,lE:`ab.storage.lastReqToEndpoint`,SE:`ab.storage.requestAttempts`,Cr:`ab.storage.deferredIam`,Qa:`ab.storage.lastSdkReq`,_E:`ab.storage.alias`},se:`ab.optOut`};class f{constructor(e,t){this.uE=e,this.TE=t,this.uE=e,this.TE=t}Wh(e){let t=(0,a.XP)(d.iu),n=new f.ee(e);for(let e of t)n.remove(d.iu[e])}uu(e,t){let n=null;t!=null&&t instanceof i.Z&&(n=t.Y()),this.uE.store(e,n)}cE(e){let t=this.tu(e);t!=null&&(t.Wl=new Date().valueOf(),this.uu(e,t))}tu(e){let t=this.uE.br(e),n=(e=>{let t;try{t=JSON.parse(e)}catch{t=null}return t})(t),r;if(n)r=i.Z.qn(n)||null,r&&this.uu(e,r);else{let n=i.Z.hE(t);r=i.Z.qn(n)||null,n!==t&&r&&this.uu(e,r)}return r}Al(e){this.uE.remove(e)}Vh(){let e=(0,a.XP)(d.iu),t;for(let n of e)t=this.tu(d.iu[n]),t!=null&&this.uu(d.iu[n],t)}xo(e){let t;if(e==null||e.length===0)return!1;t=(0,a.kJ)(e)?e:[e];let n=this.TE.br(d.C.tE);n!=null&&(0,a.kJ)(n)||(n=[]);for(let e=0;e<t.length;e++)n.push(t[e].Y());return this.TE.store(d.C.tE,n)}kl(e){return e!=null&&this.xo([e])}AE(){let e=this.TE.br(d.C.tE);this.TE.remove(d.C.tE),e??=[];let t=[],n=!1,i=null;if((0,a.kJ)(e))for(let n=0;n<e.length;n++)r.Z.RE(e[n])?t.push(r.Z.qn(e[n])):i=n;else n=!0;if(n||i!=null){let a=`Stored events could not be deserialized as Events`;n&&(a+=`, was `+Object.prototype.toString.call(e)+` not an array`),i!=null&&(a+=`, value at index `+i+` does not look like an event`),a+=`, serialized values were of type `+typeof e+`: `+JSON.stringify(e),t.push(new r.Z(null,o.G.qs,new Date().valueOf(),null,{e:a}))}return t}k(e,t){return!!(0,a.fk)(d.C,e,`StorageManager cannot store object.`,`STORAGE_KEYS.OBJECTS`)&&this.TE.store(e,t)}j(e){return!!(0,a.fk)(d.C,e,`StorageManager cannot retrieve object.`,`STORAGE_KEYS.OBJECTS`)&&this.TE.br(e)}ti(e){return!!(0,a.fk)(d.C,e,`StorageManager cannot remove object.`,`STORAGE_KEYS.OBJECTS`)&&(this.TE.remove(e),!0)}clearData(){let e=(0,a.XP)(d.iu),t=(0,a.XP)(d.C);for(let t=0;t<e.length;t++){let n=e[t];this.uE.remove(d.iu[n])}for(let e=0;e<t.length;e++){let n=t[e];this.TE.remove(d.C[n])}}gE(e){return e||d.C.sE}La(e){let t=this.TE.br(d.C.eE);t??={};let n=this.gE(e[c.Z.Yn]),r=t[n];for(let i in e)i!==c.Z.Yn&&(t[n]==null||r&&r[i]==null)&&this.mu(e[c.Z.Yn],i,e[i])}mu(e,t,n){let r=this.TE.br(d.C.eE);r??={};let i=this.gE(e),a=r[i];if(a??(a={},e!=null&&(a[c.Z.Yn]=e)),t===c.Z.lu){a[t]??(a[t]={});for(let e in n)a[t][e]=n[e]}else a[t]=n;return r[i]=a,this.TE.store(d.C.eE,r)}OE(){let e=this.TE.br(d.C.eE);this.TE.remove(d.C.eE);let t=[];for(let n in e)e[n]!=null&&t.push(e[n]);return t}ru(e){let t=this.TE.br(d.C.eE);if(t!=null){let n=this.gE(null),r=t[n];r!=null&&(t[n]=void 0,this.TE.store(d.C.eE,t),r[c.Z.Yn]=e,this.La(r))}let n=this.tu(d.iu.El),r=null;n!=null&&(r=n.eu);let i=this.AE();if(i!=null)for(let t=0;t<i.length;t++){let n=i[t];n.userId==null&&n.sessionId==r&&(n.userId=e),this.kl(n)}}dE(){return this.TE.fE}}f.rc=class{constructor(e){this.rn=e,this.rn=e,this.fE=l.Z.IE()?3:10}bE(e){return e+`.`+this.rn}store(e,t){let n={v:t};try{return localStorage.setItem(this.bE(e),JSON.stringify(n)),!0}catch(e){return s.Z.info(`Storage failure: `+(0,u.e)(e)),!1}}br(e){try{let t=null,n=localStorage.getItem(this.bE(e));return n!=null&&(t=JSON.parse(n)),t==null?null:t.v}catch(e){return s.Z.info(`Storage retrieval failure: `+(0,u.e)(e)),null}}remove(e){try{localStorage.removeItem(this.bE(e))}catch(e){return s.Z.info(`Storage removal failure: `+(0,u.e)(e)),!1}}},f.ac=class{constructor(){this.mE={},this.KE=5242880,this.fE=3}store(e,t){let n={value:t},r=this.YE(t);return r>this.KE?(s.Z.info(`Storage failure: object is ≈`+r+` bytes which is greater than the max of `+this.KE),!1):(this.mE[e]=n,!0)}YE(e){let t=[],n=[e],r=0;for(;n.length;){let e=n.pop();if(typeof e==`boolean`)r+=4;else if(typeof e==`string`)r+=2*e.length;else if(typeof e==`number`)r+=8;else if(typeof e==`object`&&t.indexOf(e)===-1){let r,i;t.push(e);for(let t in e)i=e,r=t,n.push(i[r])}}return r}br(e){let t=this.mE[e];return t==null?null:t.value}remove(e){this.mE[e]=null}},f.ee=class{constructor(e,t){this.rn=e,this.NE=t,this.rn=e,this.CE=this.GE(),this.DE=576e3,this.NE=!!t}bE(e){return this.rn==null?e:e+`.`+this.rn}GE(){let e=0,t=document.location.hostname,n=t.split(`.`),r=`ab._gd`;for(;e<n.length-1&&document.cookie.indexOf(r+`=ab._gd`)===-1;)e++,t=`.`+n.slice(-1-e).join(`.`),document.cookie=r+`=ab._gd;domain=`+t+`;`;return document.cookie=r+`=;expires=`+new Date(0).toUTCString()+`;domain=`+t+`;`,t}ne(){let e=new Date;return e.setTime(e.getTime()+60*this.DE*1e3),e.getFullYear()}ME(){let e=(0,a.VO)(d.iu),t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n];for(;r.charAt(0)===` `;)r=r.substring(1);let i=!1;for(let t=0;t<e.length;t++)if(r.indexOf(e[t])===0){i=!0;break}if(i){let e=r.split(`=`)[0];e.indexOf(`.`+this.rn)===-1&&this.pE(e)}}}store(e,t){this.ME();let n=new Date;n.setTime(n.getTime()+60*this.DE*1e3);let r=`expires=`+n.toUTCString(),i=`domain=`+this.CE,a;a=this.NE?t:encodeURIComponent(t);let o=this.bE(e)+`=`+a+`;`+r+`;`+i+`;path=/`;return o.length>=4093?(s.Z.info(`Storage failure: string is `+o.length+` chars which is too large to store as a cookie.`),!1):(document.cookie=o,!0)}br(e){let t=[],n=this.bE(e)+`=`,r=document.cookie.split(`;`);for(let i=0;i<r.length;i++){let a=r[i];for(;a.charAt(0)===` `;)a=a.substring(1);if(a.indexOf(n)===0)try{let e;e=this.NE?a.substring(n.length,a.length):decodeURIComponent(a.substring(n.length,a.length)),t.push(e)}catch(t){return s.Z.info(`Storage retrieval failure: `+(0,u.e)(t)),this.remove(e),null}}return t.length>0?t[t.length-1]:null}remove(e){this.pE(this.bE(e))}pE(e){let t=e+`=;expires=`+new Date(0).toUTCString();document.cookie=t,document.cookie=t+`;path=/`;let n=t+`;domain=`+this.CE;document.cookie=n,document.cookie=n+`;path=/`}},f.tc=class{constructor(e,t,n){this.rn=e,this.vE=[],t&&this.vE.push(new f.ee(e)),n&&this.vE.push(new f.rc(e)),this.vE.push(new f.ac)}store(e,t){let n=!0;for(let r=0;r<this.vE.length;r++)n=this.vE[r].store(e,t)&&n;return n}br(e){for(let t=0;t<this.vE.length;t++){let n=this.vE[t].br(e);if(n!=null)return n}return null}remove(e){new f.ee(this.rn).remove(e);for(let t=0;t<this.vE.length;t++)this.vE[t].remove(e)}}},4663:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(7070);class i{constructor(){this._e={}}It(e){if(typeof e!=`function`)return null;let t=r.Z.W();return this._e[t]=e,t}removeSubscription(e){delete this._e[e]}removeAllSubscriptions(){this._e={}}ic(){return Object.keys(this._e).length}Dt(e){let t=[];for(let n in this._e){let r=this._e[n];t.push(r(e))}return t}}},8982:(e,t,n)=>{n.d(t,{q:()=>i});var r=n(5966);function i(e){let t=e?.j(r.I.C._E),n;return t&&(n={label:t.l,name:t.a}),n}},3826:(e,t,n)=>{n.d(t,{Z:()=>r});let r={qa:`invalid_api_key`,Aa:`blacklisted`,Ba:`no_device_identifier`,Ra:`invalid_json_response`,Zh:`empty_response`,__:`sdk_auth_error`}},7559:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(5825),i=n(8982),a=n(2893),o=n(7750);class s{constructor(e,t,n,r,i){this.userId=e,this.type=t,this.time=n,this.sessionId=r,this.data=i,this.userId=e,this.type=t,this.time=(0,o._0)(n),this.sessionId=r,this.data=i}Ir(){let e={name:this.type,time:(0,o.FX)(this.time),data:this.data||{},session_id:this.sessionId};this.userId!=null&&(e.user_id=this.userId);let t=r.ZP.Sr()?.Fh()||!1;if(!e.user_id&&!t){let t=(0,i.q)(r.ZP.l());t&&(e.alias=t)}return e}Y(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(e){return new s(e.user_id,e.name,e.time,e.session_id,e.data)}static RE(e){return e!=null&&(0,a.Kn)(e)&&e.t!=null&&e.t!==``}static qn(e){return new s(e.u,e.t,e.ts,e.s,e.d)}}},2308:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(7070),i=n(335),a=n(2893),o=n(8031);class s{constructor(e,t,n){this.eu=e,e??=r.Z.W(),!n||isNaN(n)?this.Dl=new Date().valueOf():this.Dl=n,this.eu=e,this.Wl=new Date().valueOf(),this.Hl=t}Y(){return`g:${encodeURIComponent(this.eu)}|e:${this.Hl}|c:${this.Dl}|l:${this.Wl}`}static hE(e){if(typeof e!=`string`)return null;let t=e.lastIndexOf(`|e:`),n=e.substring(0,t),r=n.split(`g:`)[1],i;return i=/[|:]/.test(r)?encodeURIComponent(r):r,e.replace(n,`g:${i}`)}static qn(e){let t;if(typeof e==`string`)try{let n=e.split(`|`);if(!(0,a.kJ)(n)||n.length!==4)return null;let r=e=>e.split(`:`)[1],i=e=>{let t=parseInt(r(e));if(!isNaN(t))return t};t=new s(decodeURIComponent(r(n[0])),i(n[1]),i(n[2])),t.Wl=i(n[3])}catch(t){i.Z.info(`Unable to parse cookie string ${e}, failed with error: ${(0,o.e)(t)}`)}else{if(e==null||e.g==null)return null;t=new s(e.g,e.e,e.c),t.Wl=e.l}return t}}},3552:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(7750);class i{constructor(e,t,n,r,i){this.endpoint=e,this.Vn=t,this.publicKey=n,this.Vl=r,this.cl=i,this.endpoint=e||null,this.Vn=t||null,this.publicKey=n||null,this.Vl=r||null,this.cl=i||null}Y(){return{e:this.endpoint,c:this.Vn,p:this.publicKey,u:this.Vl,v:this.cl}}static qn(e){return new i(e.e,(0,r.Rd)(e.c),e.p,e.u,e.v)}}},4673:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=!1,t=[]){this.L=e,this.ge=t,this.L=e,this.ge=t}P(e){this.L=this.L&&e.L,this.ge.push(...e.ge)}}},4365:(e,t,n)=>{n.d(t,{Z:()=>r});let r={OPEN:`open`,Rr:`purchase`,vr:`push_click`,ue:`custom_event`,Qr:`iam_click`,kt:`test`}},2246:(e,t,n)=>{n.d(t,{Z:()=>_});var r=n(7750),i=n(335);class a{constructor(e){this.Bl=e,this.Bl=e}Jl(e){return this.Bl==null||this.Bl===e[0]}static fromJson(e){return new a(e?e.event_name:null)}Y(){return this.Bl}}var o=n(2893);class s{constructor(e,t,n,i){this.Tl=e,this._l=t,this.comparator=n,this.Ll=i,this.Tl=e,this._l=t,this.comparator=n,this.Ll=i,this._l===s.Ol.Il&&this.comparator!==s.Ql.Ul&&this.comparator!==s.Ql.Xl&&this.comparator!==s.Ql.Fl&&this.comparator!==s.Ql.Kl&&(this.Ll=(0,r.X2)(this.Ll))}Jl(e){let t=null;switch(e!=null&&(t=e[this.Tl]),this.comparator){case s.Ql.Pl:return t!=null&&t.valueOf()===this.Ll.valueOf();case s.Ql.Yl:return t==null||t.valueOf()!==this.Ll.valueOf();case s.Ql.Zl:return t!=null&&typeof t==typeof this.Ll&&t>this.Ll;case s.Ql.Ul:return this._l===s.Ol.Il?t!=null&&(0,o.J_)(t)&&(0,r.$N)(t)<=this.Ll.valueOf():t!=null&&typeof t==typeof this.Ll&&t>=this.Ll;case s.Ql.$l:return t!=null&&typeof t==typeof this.Ll&&t<this.Ll;case s.Ql.Xl:return this._l===s.Ol.Il?t!=null&&(0,o.J_)(t)&&(0,r.$N)(t)>=this.Ll.valueOf():t!=null&&typeof t==typeof this.Ll&&t<=this.Ll;case s.Ql.Hu:return t!=null&&typeof t==`string`&&typeof t==typeof this.Ll&&t.match(this.Ll)!=null;case s.Ql.Qu:return t!=null;case s.Ql.Xu:return t==null;case s.Ql.Fl:return t!=null&&(0,o.J_)(t)&&(0,r.yo)(t)<this.Ll;case s.Ql.Kl:return t!=null&&(0,o.J_)(t)&&(0,r.yo)(t)>this.Ll;case s.Ql.Gu:return t==null||typeof t!=typeof this.Ll||typeof t!=`string`||t.match(this.Ll)==null}return!1}static fromJson(e){return new s(e.property_key,e.property_type,e.comparator,e.property_value)}Y(){let e=this.Ll;return(0,o.J_)(this.Ll)&&(e=(0,r.FX)(e.valueOf())),{k:this.Tl,t:this._l,c:this.comparator,v:e}}static qn(e){return new s(e.k,e.t,e.c,e.v)}}s.Ol={Vu:`boolean`,Wu:`number`,Yu:`string`,Il:`date`},s.Ql={Pl:1,Yl:2,Zl:3,Ul:4,$l:5,Xl:6,Hu:10,Qu:11,Xu:12,Fl:15,Kl:16,Gu:17};class c{constructor(e){this.filters=e,this.filters=e}Jl(e){let t=!0;for(let n=0;n<this.filters.length;n++){let r=this.filters[n],i=!1;for(let t=0;t<r.length;t++)if(r[t].Jl(e)){i=!0;break}if(!i){t=!1;break}}return t}static fromJson(e){if(e==null||!(0,o.kJ)(e))return null;let t=[];for(let n=0;n<e.length;n++){let r=[],i=e[n];for(let e=0;e<i.length;e++)r.push(s.fromJson(i[e]));t.push(r)}return new c(t)}Y(){let e=[];for(let t=0;t<this.filters.length;t++){let n=this.filters[t],r=[];for(let e=0;e<n.length;e++)r.push(n[e].Y());e.push(r)}return e}static qn(e){let t=[];for(let n=0;n<e.length;n++){let r=[],i=e[n];for(let e=0;e<i.length;e++)r.push(s.qn(i[e]));t.push(r)}return new c(t)}}class l{constructor(e,t){this.Bl=e,this.Ml=t,this.Bl=e,this.Ml=t}Jl(e){if(this.Bl==null||this.Ml==null)return!1;let t=e[0],n=e[1];return t===this.Bl&&this.Ml.Jl(n)}static fromJson(e){return new l(e?e.event_name:null,e?c.fromJson(e.property_filters):null)}Y(){return{e:this.Bl,pf:this.Ml?this.Ml.Y():null}}}class u{constructor(e,t){this.Zu=e,this.tf=t,this.Zu=e,this.tf=t}Jl(e){if(this.Zu==null)return!1;let t=g.if(e[0],this.Zu);if(!t)return!1;let n=this.tf==null||this.tf.length===0;if(this.tf!=null){for(let t=0;t<this.tf.length;t++)if(this.tf[t]===e[1]){n=!0;break}}return t&&n}static fromJson(e){return new u(e?e.id:null,e?e.buttons:null)}Y(){return this.Zu}}class d{constructor(e){this.productId=e,this.productId=e}Jl(e){return this.productId==null||e[0]===this.productId}static fromJson(e){return new d(e?e.product_id:null)}Y(){return this.productId}}class f{constructor(e,t){this.productId=e,this.Ml=t,this.productId=e,this.Ml=t}Jl(e){if(this.productId==null||this.Ml==null)return!1;let t=e[0],n=e[1];return t===this.productId&&this.Ml.Jl(n)}static fromJson(e){return new f(e?e.product_id:null,e?c.fromJson(e.property_filters):null)}Y(){return{id:this.productId,pf:this.Ml?this.Ml.Y():null}}}class p{constructor(e){this.Zu=e,this.Zu=e}Jl(e){return this.Zu==null||g.if(e[0],this.Zu)}static fromJson(e){return new p(e?e.campaign_id:null)}Y(){return this.Zu}}var m=n(4365),h=n(8031);class g{constructor(e,t){this.type=e,this.data=t,this.type=e,this.data=t}sc(e,t){return g.cc[this.type]===e&&(this.data==null||this.data.Jl(t))}static if(e,t){let n=null;try{n=window.atob(e)}catch(t){return i.Z.info(`Failed to unencode analytics id `+e+`: `+(0,h.e)(t)),!1}return t===n.split(`_`)[0]}static fromJson(e){let t=e.type,n=null;switch(t){case g._r.OPEN:case g._r.kt:break;case g._r.Rr:n=d.fromJson(e.data);break;case g._r.nc:n=f.fromJson(e.data);break;case g._r.vr:n=p.fromJson(e.data);break;case g._r.ue:n=a.fromJson(e.data);break;case g._r.lc:n=l.fromJson(e.data);break;case g._r.Qr:n=u.fromJson(e.data)}return new g(t,n)}Y(){return{t:this.type,d:this.data?this.data.Y():null}}static qn(e){let t,n=null;switch(e.t){case g._r.OPEN:case g._r.kt:break;case g._r.Rr:n=new d(e.d);break;case g._r.nc:t=e.d||{},n=new f(t.id,c.qn(t.pf||[]));break;case g._r.vr:n=new p(e.d);break;case g._r.ue:n=new a(e.d);break;case g._r.lc:t=e.d||{},n=new l(t.e,c.qn(t.pf||[]));break;case g._r.Qr:n=new u(e.d)}return new g(e.t,n)}}g._r={OPEN:`open`,Rr:`purchase`,nc:`purchase_property`,vr:`push_click`,ue:`custom_event`,lc:`custom_event_property`,Qr:`iam_click`,kt:`test`},g.cc={},g.cc[g._r.OPEN]=m.Z.OPEN,g.cc[g._r.Rr]=m.Z.Rr,g.cc[g._r.nc]=m.Z.Rr,g.cc[g._r.vr]=m.Z.vr,g.cc[g._r.ue]=m.Z.ue,g.cc[g._r.lc]=m.Z.ue,g.cc[g._r.Qr]=m.Z.Qr,g.cc[g._r.kt]=m.Z.kt;class _{constructor(e,t=[],n,r,i=0,a,o,s=0,c=_.td,l,u,d){this.id=e,this.sd=t,this.startTime=n,this.endTime=r,this.priority=i,this.type=a,this.data=o,this.ed=s,this.rd=c,this.Nr=l,this.hd=u,this.od=d,this.id=e,this.sd=t||[],n===void 0&&(n=null),this.startTime=n,r===void 0&&(r=null),this.endTime=r,this.priority=i||0,this.type=a,this.ed=s||0,l??=1e3*(this.ed+30),this.Nr=l,this.data=o,c!=null&&(this.rd=c),this.hd=u,this.od=d||null}nd(e){return this.od==null||this.rd!==_.td&&e-this.od>=1e3*this.rd}ad(e){this.od=e}ud(e){let t=e+1e3*this.ed;return Math.max(t-new Date().valueOf(),0)}dd(e){let t=new Date().valueOf()-e,n=e==null||isNaN(t)||this.Nr==null||t<this.Nr;return n||i.Z.info(`Trigger action ${this.type} is no longer eligible for display - fired ${t}ms ago and has a timeout of ${this.Nr}ms.`),!n}static fromJson(e){let t=e.id,n=[];for(let t=0;t<e.trigger_condition.length;t++)n.push(g.fromJson(e.trigger_condition[t]));let i=(0,r.X2)(e.start_time),a=(0,r.X2)(e.end_time),s=e.priority,c=e.type,l=e.delay,u=e.re_eligibility,d=e.timeout,f=e.data,p=e.min_seconds_since_last_trigger;return(0,o.fk)(_._r,c,`Could not construct Trigger from server data`,`Trigger.Types`)?new _(t,n,i,a,s,c,f,l,u,d,p):null}Y(){let e=[];for(let t=0;t<this.sd.length;t++)e.push(this.sd[t].Y());return{i:this.id,c:e,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ed,r:this.rd,tm:this.Nr,ss:this.hd,ld:this.od}}static qn(e){let t=[],n=e.c||[];for(let e=0;e<n.length;e++)t.push(g.qn(n[e]));return new _(e.i,t,(0,r.Rd)(e.s),(0,r.Rd)(e.e),e.p,e.t,e.da,e.d,e.r,e.tm,e.ss,e.ld)}}_._r={Br:`inapp`,md:`templated_iam`},_.td=-1},9342:(e,t,n)=>{n.d(t,{n:()=>h});var r=n(1087),i=n(5825),a=n(158),o=n(3340),s=n(7559),c=n(2893),l=n(5966);class u{constructor(e,t,n,r,i){this.triggerId=e,this.Er=t,this.Tr=n,this.Gr=r,this.Nr=i,this.triggerId=e,this.Er=t,this.Tr=n,this.Gr=r,this.Nr=i}static fromJson(e,t,n,r,i){return e==null||e.trigger_id==null?null:new u(e.trigger_id,t,n,r,i)}}var d=n(2246),f=n(4365),p=n(335);class m extends a.Z{constructor(e,t,n,r,i){super(),this.tg=e,this.Jt=t,this.u=n,this.zi=r,this.ig=i,this.tg=e,this.Jt=t,this.u=n,this.zi=r,this.ig=i,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.u){this.hg=this.u.j(l.I.C.iE)||this.hg,this.ng=this.u.j(l.I.C.EE)||this.ng,this.og=this.u.j(l.I.C.aE)||this.og;for(let e=0;e<this.triggers.length;e++){let t=this.triggers[e];t.id&&this.og[t.id]!=null&&t.ad(this.og[t.id])}}}ag(){if(!this.u)return;this.lg=this.u.j(l.I.C.oE)||0;let e=this.u.j(l.I.C.rE)||[],t=[];for(let n=0;n<e.length;n++)t.push(d.Z.qn(e[n]));this.triggers=t,this.fg()}gg(){let e=this,t=function(t,n,r,i,a){return function(){e.cg(t,n,r,i,a)}},n={};for(let e of this.triggers)e.id&&(n[e.id]=e);let r=!1;for(let e=0;e<this.triggers.length;e++){let i=this.triggers[e];if(i.id&&this.ng[i.id]!=null){let e=this.ng[i.id],a=[];for(let r=0;r<e.length;r++){let o=e[r],l=i.ud(o.Gr||0);if(l>0){let e,r;a.push(o),o.ug!=null&&(e=o.ug),o.dg!=null&&s.Z.RE(o.dg)&&(r=s.Z.qn(o.dg));let u=[];if(o.pg&&(0,c.kJ)(o.pg))for(let e=0;e<o.pg.length;e++){let t=n[o.pg[e]];t!=null&&u.push(t)}this.eg.push(window.setTimeout(t(i,o.Gr||0,e,r,u),l))}}this.ng[i.id].length>a.length&&(this.ng[i.id]=a,r=!0,this.ng[i.id].length===0&&delete this.ng[i.id])}}r&&this.u&&this.u.k(l.I.C.EE,this.ng)}mg(){if(!this.u)return;let e=[];for(let t=0;t<this.triggers.length;t++)e.push(this.triggers[t].Y());this.lg=new Date().valueOf(),this.u.k(l.I.C.rE,e),this.u.k(l.I.C.oE,this.lg)}bg(){this.u&&((this.u.j(l.I.C.oE)||0)>this.lg?this.ag():this.fg())}Ns(e){let t=!1;if(e!=null&&e.triggers){this.ig.Lr(),this.fg();let n={},r={};this.triggers=[];for(let i=0;i<e.triggers.length;i++){let a=d.Z.fromJson(e.triggers[i]);if(a){a.id&&this.og[a.id]!=null&&(a.ad(this.og[a.id]),n[a.id]=this.og[a.id]),a.id&&this.ng[a.id]!=null&&(r[a.id]=this.ng[a.id]);for(let e=0;e<a.sd.length;e++)if(a.sd[e].sc(f.Z.kt,null)){t=!0;break}this.triggers.push(a)}}(0,c.Xy)(this.og,n)||(this.og=n,this.u&&this.u.k(l.I.C.aE,this.og)),(0,c.Xy)(this.ng,r)||(this.ng=r,this.u&&this.u.k(l.I.C.EE,this.ng)),this.mg(),t&&(p.Z.info(`Trigger with test condition found, firing test.`),this.fe(f.Z.kt)),this.fe(f.Z.OPEN);let i=this.sg,a;this.sg=[];for(let e=0;e<i.length;e++)a=Array.prototype.slice.call(i[e]),this.fe(...a)}}cg(e,t,n,r,i){let a=r=>{this.fg();let i=new Date().valueOf();e.dd(t)||(!1===navigator.onLine&&e.type===d.Z._r.Br&&r.imageUrl?p.Z.info(`Not showing ${e.type} trigger action ${e.id} due to offline state.`):e.nd(i)&&this.wg(e,i,n)?this.Jt.ic()===0?p.Z.info(`Not displaying trigger ${e.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Jt.Dt([r]),this.yg(e,i)):p.Z.info(`Not displaying trigger ${e.id} because display time fell outside of the acceptable time window.`))},s=()=>{this.fg();let a=i.pop();if(a!=null)if(this.Tg(a,t,n,r,i),a.dd(t)){let e=`Server aborted in-app message display, but the timeout on fallback trigger ${a.id} has already elapsed.`;i.length>0&&(e+=` Continuing to fall back.`),p.Z.info(e),s()}else{p.Z.info(`Server aborted in-app message display. Falling back to lower priority ${a.type} trigger action ${e.id}.`);let o=1e3*a.ed-(new Date().valueOf()-t);o>0?this.eg.push(window.setTimeout((()=>{this.cg(a,t,n,r,i)}),o)):this.cg(a,t,n,r,i)}},c,l,f;switch(e.type){case d.Z._r.Br:if(c=(0,o.q)(e.data),c==null){p.Z.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}if(l=this.ig.Li(c),l){p.Z.error(l),s();break}a(c);break;case d.Z._r.md:if(f=u.fromJson(e.data,a,s,t,e.Nr||0),f==null){p.Z.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}this.ig.Yi(f,n,r);break;default:p.Z.error(`Trigger ${e.id} was of unexpected type ${e.type}, ignoring.`)}}fe(e,t=null,n){if(!(0,c.fk)(f.Z,e,`Cannot fire trigger action.`,`TriggerEvents`))return;if(this.zi&&this.zi.Nu())return p.Z.info(`Trigger sync is currently in progress, awaiting sync completion before firing trigger event.`),void this.sg.push(arguments);this.bg();let r=new Date().valueOf(),i=r-(this.hg||0),a=!0,o=!0,s=[];for(let n=0;n<this.triggers.length;n++){let i=this.triggers[n],c=r+1e3*i.ed;if(i.nd(c)&&(i.startTime==null||i.startTime.valueOf()<=r)&&(i.endTime==null||i.endTime.valueOf()>=r)){let n=!1;for(let r=0;r<i.sd.length;r++)if(i.sd[r].sc(e,t)){n=!0;break}n&&(a=!1,this.wg(i,c,e)&&(o=!1,s.push(i)))}}if(a)return void p.Z.info(`Trigger event ${e} did not match any trigger conditions.`);if(o)return void p.Z.info(`Ignoring ${e} trigger event because a trigger was displayed ${i/1e3}s ago.`);s.sort(((e,t)=>e.priority-t.priority));let l=s.pop();l!=null&&(p.Z.info(`Firing ${l.type} trigger action ${l.id} from trigger event ${e}.`),this.Tg(l,r,e,n,s),l.ed===0?this.cg(l,r,e,n,s):this.eg.push(window.setTimeout((()=>{this.cg(l,r,e,n,s)}),1e3*l.ed)))}changeUser(e=!1){if(this.triggers=[],this.u&&this.u.ti(l.I.C.rE),!e){this.sg=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[],this.u&&(this.u.ti(l.I.C.iE),this.u.ti(l.I.C.aE),this.u.ti(l.I.C.EE))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[]}wg(e,t,n){if(this.hg==null)return!0;if(n===f.Z.kt)return p.Z.info(`Ignoring minimum interval between trigger because it is a test type.`),!0;let r=e.hd;return r??=this.tg,t-this.hg>=1e3*r}Tg(e,t,n,r,i){this.fg(),e.id&&(this.ng[e.id]=this.ng[e.id]||[]);let a={},o;a.Gr=t,a.ug=n,r!=null&&(o=r.Y()),a.dg=o;let s=[];for(let e of i)e.id&&s.push(e.id);a.pg=s,e.id&&this.ng[e.id].push(a),this.u&&this.u.k(l.I.C.EE,this.ng)}yg(e,t){this.fg(),e.ad(t),this.hg=t,e.id&&(this.og[e.id]=t),this.u&&(this.u.k(l.I.C.iE,t),this.u.k(l.I.C.aE,this.og))}}let h={t:!1,provider:null,rr:()=>(h.o(),h.provider||h.rg(),h.provider),rg:()=>{h.provider||(h.provider=new m(i.ZP.nn(i.JY.Oo)??30,r.Z.m().Mi(),i.ZP.l(),i.ZP.cr(),r.Z.m()),i.ZP.ar(h.provider))},o:()=>{h.t||=(h.rg(),i.ZP.g(h),!0)},destroy:()=>{h.provider=null,h.t=!1}}},5333:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(5825);function i(e,t,n){let i=e||document.querySelector(`head`),a=`ab-${t}-css-definitions-${`5.3.1`.replace(/\./g,`-`)}`;if(!i)return;let o=i.ownerDocument||document;if(o.getElementById(a)==null){let e=o.createElement(`style`);e.innerHTML=n||``,e.id=a;let t=r.ZP.nn(r.JY.bo);t!=null&&e.setAttribute(`nonce`,t),i.appendChild(e)}}},6959:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(5333),i=n(6524);function a(){(0,r.e)(void 0,`feed`,`body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:9011;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}.ab-feed .ab-card.ab-image-only .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px;padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}`),(0,i.N)()}},6524:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(5825);function i(){if(r.ZP.nn(r.JY.Mo))return;let e=`https://use.fontawesome.com/7f85a56ba4.css`;if(document.querySelector(`link[rel=stylesheet][href="`+e+`"]`)===null){let t=document.createElement(`link`);t.setAttribute(`rel`,`stylesheet`),t.setAttribute(`href`,e),document.getElementsByTagName(`head`)[0].appendChild(t)}}},3046:(e,t,n)=>{n.d(t,{A9:()=>s,OL:()=>u,Tu:()=>l,je:()=>f,yi:()=>c,zA:()=>p});var r=n(335),i=n(8031),a=n(8548),o=n(3905);let s={types:{ro:`container`,logCustomEvent:`logCustomEvent`,setEmailNotificationSubscriptionType:`setEmailNotificationSubscriptionType`,setPushNotificationSubscriptionType:`setPushNotificationSubscriptionType`,setCustomUserAttribute:`setCustomUserAttribute`,requestPushPermission:`requestPushPermission`,addToSubscriptionGroup:`addToSubscriptionGroup`,removeFromSubscriptionGroup:`removeFromSubscriptionGroup`,addToCustomAttributeArray:`addToCustomAttributeArray`,removeFromCustomAttributeArray:`removeFromCustomAttributeArray`,no:`openLink`,ao:`openLinkInWebView`},properties:{type:`type`,oo:`steps`,eo:`args`}},c={Qi:`unknownBrazeAction`,Wi:`noPushPrompt`},l=(e,t)=>{switch(e){case c.Qi:return`${t} contains an unknown braze action type and will not be displayed.`;case c.Wi:return`${t} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return``}};function u(e){try{let t=e.match(o.y9),n=t?t[0].length:null,i=n?e.substring(n):null;if(n==null||n>e.length-1||!i)return void r.Z.error(`Did not find base64 encoded brazeAction in url to process : ${e}`);let s=(0,a.T)(i);return s?JSON.parse(s):void r.Z.error(`Failed to decode base64 encoded brazeAction: ${i}`)}catch(t){r.Z.error(`Failed to process brazeAction URL ${e} : ${(0,i.e)(t)}`);return}}function d(e,t){let n=!1;if(t){for(let r of t)if(n||=e(r),n)return!0}return!1}function f(e){let t=s.properties.type,n=s.properties.oo;try{if(e==null)return!0;let r=e[t];return r===s.types.ro?d(f,e[n]):!(0,o.OM)(r)}catch{return!0}}function p(e){if(!e||!(0,o.zR)(e))return!1;let t=s.properties.type,n=s.properties.oo,r=e[t];return r===s.types.ro?d(p,e[n]):r===s.types.requestPushPermission}},3695:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(2893);class i{constructor(){}ef(){}rf(){}Ta(e){}static sf(e,t){if(e&&t){if(e=e.toLowerCase(),(0,r.kJ)(t.ff)){for(let n=0;n<t.ff.length;n++)if(e.indexOf(t.ff[n].toLowerCase())!==-1)return t.identity}else if(e.indexOf(t.ff.toLowerCase())!==-1)return t.identity}}}var a=n(5806);class o extends i{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){let e=this.hc();this.browser=e.browser||`Unknown Browser`,this.version=e.version||`Unknown Version`}this.OS=null}ef(){return this.browser}rf(){return this.version}Ta(e){if(this.OS)return Promise.resolve(this.OS);let t=t=>{for(let n=0;n<e.length;n++){let r=o.sf(t,e[n]);if(r)return this.OS=r,this.OS}return t};return this.userAgentData.platform?Promise.resolve(t(this.userAgentData.platform)):this.getHighEntropyValues().then((e=>e.platform?t(e.platform):navigator.platform)).catch((()=>navigator.platform))}hc(){let e={},t=this.userAgentData.brands;if(t&&t.length)for(let n of t){let t=this.uc(a.s),r=n.brand.match(t);if(r&&r.length>0){e.browser=r[0],e.version=n.version;break}}return e}uc(e){let t=[];for(let n in e){let r=n;t.push(e[r])}return RegExp(`(`+t.join(`|`)+`)`,`i`)}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues([`platform`]):Promise.reject()}}class s extends i{constructor(){super(),this.fd=s.hc(navigator.userAgent||``)}ef(){return this.fd[0]||`Unknown Browser`}rf(){return this.fd[1]||`Unknown Version`}Ta(e){for(let t=0;t<e.length;t++){let n=e[t].string,r=s.sf(n,e[t]);if(r)return r===a.T.Pg&&navigator.maxTouchPoints>1&&(r=a.T.io),Promise.resolve(r)}return Promise.resolve(navigator.platform)}static hc(e){let t,n=e.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(e.indexOf(`(Web0S; Linux/SmartTV)`)!==-1)return[`LG Smart TV`,null];if(e.indexOf(`CrKey`)!==-1)return[`Chromecast`,null];if(e.indexOf(`BRAVIA`)!==-1||e.indexOf(`SonyCEBrowser`)!==-1||e.indexOf(`SonyDTV`)!==-1)return[`Sony Smart TV`,null];if(e.indexOf(`PhilipsTV`)!==-1)return[`Philips Smart TV`,null];if(e.match(/\b(Roku)\b/))return[`Roku`,null];if(e.match(/\bAFTM\b/))return[`Amazon Fire Stick`,null];if(n[1]===a.s.rO&&(t=e.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),t!=null))return t=t.slice(1),t[0]=t[0].replace(`OPR`,a.s.oO),t[0]=t[0].replace(`EdgA`,a.s.eO),t[0]===`Edg`&&(t[0]=a.s.eO),[t[0],t[1]];if(n[1]===a.s.Bg&&(t=e.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),t!=null))return t=t.slice(1),t[0]=t[0].replace(`EdgiOS`,a.s.eO),[t[0],t[1]];if(n=n[2]?[n[1],n[2]]:[null,null],n[0]===a.s.Bg&&(t=e.match(/version\/(\.?\d+(\.\d+)*)/i))!=null&&n.splice(1,1,t[1]),(t=e.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))!=null&&n.splice(1,1,t[2]),n[0]===a.s.oO&&(t=e.match(/mini\/(\.?\d+(\.\d+)*)/i))!=null)return[`Opera Mini`,t[1]||``];if(n[0]){let e=n[0].toLowerCase();e===`crios`&&(n[0]=a.s.rO),e===`tizen`&&(n[0]=`Samsung Smart TV`,n[1]=null),e===`samsungbrowser`&&(n[0]=`Samsung Browser`)}return n}}class c{constructor(){this.Sg=new(navigator.userAgentData?o:s),this.userAgent=navigator.userAgent,this.browser=this.Sg.ef(),this.version=this.Sg.rf(),this.OS=null,this.Ta().then((e=>this.OS=e));let e=navigator;this.language=(e.userLanguage||e.language||e.browserLanguage||e.systemLanguage||``).toLowerCase(),this.Zo=c.vg(this.userAgent)}IE(){return this.browser===a.s.Bg}Oa(){return this.OS||null}Ta(){return this.OS?Promise.resolve(this.OS):this.Sg.Ta(c.kg).then((e=>(this.OS=e,e)))}static vg(e){e=e.toLowerCase();let t=[`googlebot`,`bingbot`,`slurp`,`duckduckbot`,`baiduspider`,`yandex`,`facebookexternalhit`,`sogou`,`ia_archiver`,`https://github.com/prerender/prerender`,`aolbuild`,`bingpreview`,`msnbot`,`adsbot`,`mediapartners-google`,`teoma`,`taiko`];for(let n=0;n<t.length;n++)if(e.indexOf(t[n])!==-1)return!0;return!1}}c.kg=[{string:navigator.platform,ff:`Win`,identity:a.T.Og},{string:navigator.platform,ff:`Mac`,identity:a.T.Pg},{string:navigator.platform,ff:`BlackBerry`,identity:`BlackBerry`},{string:navigator.platform,ff:`FreeBSD`,identity:`FreeBSD`},{string:navigator.platform,ff:`OpenBSD`,identity:`OpenBSD`},{string:navigator.platform,ff:`Nintendo`,identity:`Nintendo`},{string:navigator.platform,ff:`SunOS`,identity:`SunOS`},{string:navigator.platform,ff:`PlayStation`,identity:`PlayStation`},{string:navigator.platform,ff:`X11`,identity:`X11`},{string:navigator.userAgent,ff:[`iPhone`,`iPad`,`iPod`],identity:a.T.io},{string:navigator.platform,ff:`Pike v`,identity:a.T.io},{string:navigator.userAgent,ff:[`Web0S`],identity:`WebOS`},{string:navigator.platform,ff:[`Linux armv7l`,`Android`],identity:a.T.xg},{string:navigator.userAgent,ff:[`Android`],identity:a.T.xg},{string:navigator.platform,ff:`Linux`,identity:`Linux`}];let l=new c},2893:(e,t,n)=>{n.d(t,{J_:()=>s,Kn:()=>c,VO:()=>i,XP:()=>u,Xy:()=>d,fk:()=>a,jV:()=>l,kJ:()=>o});var r=n(335);function i(e){let t=[],n;for(let r in e)n=r,Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==void 0&&t.push(e[n]);return t}function a(e,t,n,a){let o=i(e);return o.indexOf(t)!==-1||(r.Z.error(`${n} Valid values from ${a} are "${o.join(`"/"`)}".`),!1)}function o(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`}function s(e){return Object.prototype.toString.call(e)===`[object Date]`}function c(e){return Object.prototype.toString.call(e)===`[object Object]`}function l(e,...t){e??=[];let n=[],r=arguments.length;for(let t=0,i=e.length;t<i;t++){let i=e[t];if(n.indexOf(i)!==-1)continue;let a=1;for(a=1;a<r&&arguments[a].indexOf(i)!==-1;a++);a===r&&n.push(i)}return n}function u(e){let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}function d(e,t){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return e===t;let n=e.toString();if(n!==t.toString())return!1;switch(n){case`[object RegExp]`:case`[object String]`:return``+e==``+t;case`[object Number]`:return+e==+e?+e==0?1/e==1/t:+e==+t:+t!=+t;case`[object Date]`:case`[object Boolean]`:return+e==+t}let r=n===`[object Array]`;if(!r){if(typeof e!=`object`||typeof t!=`object`)return!1;let n=e.constructor,r=t.constructor;if(n!==r&&!(typeof n==`function`&&n instanceof n&&typeof r==`function`&&r instanceof r)&&`constructor`in e&&`constructor`in t)return!1}let i=[],a=[],o=i.length;for(;o--;)if(i[o]===e)return a[o]===t;if(i.push(e),a.push(t),r){if(o=e.length,o!==t.length)return!1;for(;o--;)if(!d(e[o],t[o]))return!1}else{let n=u(e),r;if(o=n.length,u(t).length!==o)return!1;for(;o--;)if(r=n[o],!Object.prototype.hasOwnProperty.call(t,r)||!d(e[r],t[r]))return!1}return i.pop(),a.pop(),!0}},5242:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(1507),i=n(7429);function a(e,t,n){let a=document.createElement(`button`);a.setAttribute(`aria-label`,e),a.setAttribute(`tabindex`,`0`),a.setAttribute(`role`,`button`),(0,r.lj)(a,`touchstart`),a.className=`ab-close-button`;let o=(0,r.MK)(`0 0 15 15`,`M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z`,t);return a.appendChild(o),a.addEventListener(`keydown`,(e=>{e.keyCode!==i.m.Fo&&e.keyCode!==i.m.To||(n(),e.stopPropagation())})),a.onclick=e=>{n(),e.stopPropagation()},a}},7750:(e,t,n)=>{n.d(t,{$N:()=>u,BT:()=>s,FX:()=>i,Pn:()=>a,Rd:()=>c,X2:()=>o,_0:()=>l,yo:()=>d});var r=n(2893);function i(e,t=!1){let n=e/1e3;return t&&(n=Math.floor(n)),n}function a(e){return 1e3*e}function o(e){if(e==null)return null;let t=parseInt(e.toString());return isNaN(t)?null:new Date(1e3*t)}function s(e){return e!=null&&(0,r.J_)(e)?e.toISOString().replace(/\.[0-9]{3}Z$/,``):e}function c(e){return e==null||e===``?null:new Date(e)}function l(e){return e==null||e===``?new Date().valueOf():e}function u(e){return(new Date().valueOf()-e.valueOf())/1e3}function d(e){return(e.valueOf()-new Date().valueOf())/1e3}},5806:(e,t,n)=>{n.d(t,{T:()=>i,s:()=>r});let r={rO:`Chrome`,eO:`Edge`,oO:`Opera`,Bg:`Safari`,OO:`Firefox`},i={xg:`Android`,io:`iOS`,Pg:`Mac`,Og:`Windows`}},1507:(e,t,n)=>{n.d(t,{$j:()=>d,FZ:()=>f,Fr:()=>u,MK:()=>p,QZ:()=>s,lP:()=>a,lj:()=>c,mQ:()=>o,rJ:()=>l});var r=n(335),i=n(8031);let a={dc:null,po:function(e,t=!1,n=!1,r=!1){if(e==null)return!1;t||=!1,n||=!1;let i=e.getBoundingClientRect();return i!=null&&(i.top>=0&&i.top<=(window.innerHeight||document.documentElement.clientHeight)||!t)&&(i.left>=0||!r)&&(i.bottom>=0&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!n)&&(i.right<=(window.innerWidth||document.documentElement.clientWidth)||!r)}},o={Re:`up`,Se:`down`,U:`left`,V:`right`};function s(){if(a.dc==null){a.dc=!1;try{let e=Object.defineProperty({},`passive`,{get:()=>{a.dc=!0}});window.addEventListener(`testPassive`,(()=>{}),e),window.removeEventListener(`testPassive`,(()=>{}),e)}catch(e){r.Z.error((0,i.e)(e))}}return a.dc}function c(e,t,n=(()=>{})){e.addEventListener(t,n,!!s()&&{passive:!0})}function l(e){return a.po(e,!0,!1,!1)}function u(e){return a.po(e,!1,!0,!1)}function d(e){if(e.onclick){let t=document.createEvent(`MouseEvents`);t.initEvent(`click`,!0,!0),e.onclick.apply(e,[t])}}function f(e,t,n){let r=null,i=null;c(e,`touchstart`,(e=>{r=e.touches[0].clientX,i=e.touches[0].clientY})),c(e,`touchmove`,(a=>{if(r==null||i==null)return;let s=r-a.touches[0].clientX,c=i-a.touches[0].clientY;Math.abs(s)>Math.abs(c)&&Math.abs(s)>=25?((s>0&&t===o.U||s<0&&t===o.V)&&n(a),r=null,i=null):Math.abs(c)>=25&&((c>0&&t===o.Re&&e.scrollTop===e.scrollHeight-e.offsetHeight||c<0&&t===o.Se&&e.scrollTop===0)&&n(a),r=null,i=null)}))}function p(e,t,n){let r=`http://www.w3.org/2000/svg`,i=document.createElementNS(r,`svg`);i.setAttribute(`viewBox`,e),i.setAttribute(`xmlns`,r);let a=document.createElementNS(r,`path`);return a.setAttribute(`d`,t),n!=null&&a.setAttribute(`fill`,n),i.appendChild(a),i}},8031:(e,t,n)=>{n.d(t,{e:()=>r});let r=e=>e instanceof Error?e.message:String(e)},7429:(e,t,n)=>{n.d(t,{m:()=>r});let r={Fo:32,lo:9,To:13,mh:27}},6504:(e,t,n)=>{n.d(t,{R:()=>r});let r=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e)},1843:(e,t,n)=>{n.d(t,{D:()=>o,Z:()=>s});var r=n(335),i=n(3826),a=n(8031);let o=e=>{let t={},n=e.toString().split(`\r
25
25
  `);if(!n)return t;let r,i;for(let e of n)e&&(r=e.slice(0,e.indexOf(`:`)).toLowerCase().trim(),i=e.slice(e.indexOf(`:`)+1).trim(),t[r]=i);return t},s={Gs:e=>{let t,n;try{let a=()=>{r.Z.error(`This browser does not have any supported ajax options!`)},o=!1;if(window.XMLHttpRequest&&(o=!0),!o)return void a();t=new XMLHttpRequest;let s=()=>{typeof e.error==`function`&&e.error(t.status),typeof e.Ws==`function`&&e.Ws(!1)};t.onload=()=>{let n=!1;if(t.readyState===4)if(n=t.status>=200&&t.status<300||t.status===304,n){if(typeof e.L==`function`){let n,r;try{n=JSON.parse(t.responseText),r=t.getAllResponseHeaders()}catch{let n={error:t.responseText===``?i.Z.Zh:i.Z.Ra,response:t.responseText};(0,e.L)(n,r)}n&&e.L(n,r)}typeof e.Ws==`function`&&e.Ws(!0)}else s()},t.onerror=()=>{s()},t.ontimeout=()=>{s()},n=JSON.stringify(e.data),t.open(`POST`,e.url,!0),t.setRequestHeader(`Content-type`,`application/json`),t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`);let c=e.headers||[];for(let e of c)t.setRequestHeader(e[0],e[1]);t.send(n)}catch(e){r.Z.error(`Network request error: ${(0,a.e)(e)}`)}}}},6870:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(7671),i=n(5966);let a={Ps:{$a:`data`,Bs:`content_cards/sync`,bi:`feature_flags/sync`,Mr:`template`},qu:e=>e?.j(i.I.C.lE),sm:e=>e?.j(i.I.C.SE),nm:(e,t)=>{e?.k(i.I.C.lE,t)},um:(e,t)=>{e?.k(i.I.C.SE,t)},Pa:(e,t)=>{if(!e||!t)return-1;let n=a.qu(e);if(n==null)return-1;let r=n[t];return r==null||isNaN(r)?-1:r},Ua:(e,t)=>{let n=r.S6;if(!e||!t)return n;let i=a.sm(e);return i==null?n:(n=i[t],n==null||isNaN(n)?r.S6:n)},_s:(e,t,n)=>{if(!e||!t)return;let r=a.qu(e);r??={},r[t]=n,a.nm(e,r)},Qs:(e,t,n)=>{if(!e||!t)return;let r=a.sm(e);r??={},r[t]=n,a.um(e,r)},Ys:(e,t)=>{if(!e||!t)return;let n=a.Ua(e,t);a.Qs(e,t,n+1)}},o=a},8548:(e,t,n)=>{n.d(t,{E:()=>i,T:()=>a});var r=n(335);function i(e){let t=e.length;for(let n=e.length-1;n>=0;n--){let r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}function a(e){try{e=e.replace(/-/g,`+`).replace(/_/g,`/`);let t=window.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);let r=new Uint16Array(n.buffer);return String.fromCharCode(...r)}catch(e){return r.Z.error(`Unable to decode Base64: `+e),null}}},1148:(e,t,n)=>{function r(e){e??=``;let t=e.split(`?`).slice(1).join(`?`),n={};if(t!=null){let e=t.split(`&`);for(let t=0;t<e.length;t++){let r=e[t].split(`=`);r[0]!==``&&(n[r[0]]=r[1])}}return n}function i(e){return!(!e||(e=e.toString().toLowerCase()).lastIndexOf(`javascript:`,0)!==0&&e.lastIndexOf(`data:`,0)!==0)}n.d(t,{L:()=>r,o:()=>i})},3905:(e,t,n)=>{n.d(t,{$g:()=>x,OM:()=>w,UO:()=>g,bj:()=>h,lg:()=>b,ro:()=>y,vV:()=>S,y9:()=>p,zM:()=>m,zR:()=>C});var r=n(2893),i=n(8548),a=n(335),o=n(7750),s=n(3046),c=n(7671);let l=/^[^\x00-\x1F\x22]+$/,u=/[$.]/,d=[`$add`,`$update`,`$remove`,`$identifier_key`,`$identifier_value`,`$new_object`,`$time`,`$google_ad_personalization`,`$google_ad_user_data`],f=new RegExp(/^.+@.+\..+$/),p=/^brazeActions:\/\/v\d+\//;function m(e,t,n){let r=e!=null&&typeof e==`string`&&(e===``||e.match(l)!=null);return r||a.Z.error(`Cannot ${t} because ${n} "${e}" is invalid.`),r}function h(e){return e!=null&&e.match(u)&&d.indexOf(e)===-1&&a.Z.warn(`Custom attribute keys cannot contain '$' or '.'`),m(e,`set custom user attribute`,`the given key`)}function g(e){let t=typeof e;return e==null||t===`number`||t===`boolean`||(0,r.J_)(e)||t===`string`}function _(e,t,n){let i=n!==-1;if(i&&n>50)return a.Z.error(`Nested attributes cannot be more than 50 levels deep.`),!1;let s=i?n+1:-1;if((0,r.kJ)(e)&&(0,r.kJ)(t)){for(let n=0;n<e.length&&n<t.length;n++)if((0,r.J_)(e[n])&&(t[n]=(0,o.BT)(e[n])),!_(e[n],t[n],s))return!1}else{if(!(0,r.Kn)(e))return g(e);for(let n of(0,r.XP)(e)){let a=e[n];if(i&&!h(n)||((0,r.J_)(a)&&(t[n]=(0,o.BT)(a)),!_(a,t[n],s)))return!1}}return!0}function v(e,t,n,i,o){let s;return s=(0,r.Kn)(e)||(0,r.kJ)(e)?_(e,t,o?1:-1):g(e),s||a.Z.error(`Cannot ${n} because ${i} "${e}" is invalid.`),s}function y(e,t,n,r=!1){let i=typeof e==`string`||e===null&&r;return i||a.Z.error(`Cannot ${t} because ${n} "${e}" is invalid.`),i}function b(e,t,n,s,l){if(e??={},typeof e!=`object`||(0,r.kJ)(e))return a.Z.error(`${t} requires that ${n} be an object. Ignoring ${l}.`),[!1,null];let u,d;t===c.db?(u=76800,d=`75KB`):(u=51200,d=`50KB`);let f=JSON.stringify(e);if((0,i.E)(f)>u)return a.Z.error(`Could not ${s} because ${n} was greater than the max size of ${d}.`),[!1,null];let p;try{p=JSON.parse(f)}catch{return a.Z.error(`Could not ${s} because ${n} did not contain valid JSON.`),[!1,null]}for(let n in e){if(t===c.db&&!h(n)||!m(n,s,`the ${l} property name`))return[!1,null];let i=e[n];if(t===c.db||i!=null){if((0,r.J_)(i)&&(p[n]=(0,o.BT)(i)),!v(i,p[n],s,`the ${l} property "${n}"`,t===c.db))return[!1,null]}else delete e[n],delete p[n]}return[!0,p]}function x(e,t){let n=!1,i=!1,o=()=>{a.Z.error(`Custom attribute arrays must be either string arrays or object arrays.`)};for(let a of t)if(typeof a==`string`){if(i)return o(),[!1,!1];if(!m(a,`set custom user attribute "${e}"`,`the element in the given array`))return[!1,!1];n=!0}else{if(!(0,r.Kn)(a)||n)return o(),[!1,!1];if(!b(a,c.db,`attribute value`,`set custom user attribute "${e}"`,`custom user attribute`))return[!1,!1];i=!0}return[n,i]}function S(e){return typeof e==`string`&&e.toLowerCase().match(f)!=null}function C(e){if(!(s.A9.properties.type in e))return!1;switch(e[s.A9.properties.type]){case s.A9.types.ro:if(s.A9.properties.oo in e)return!0;break;case s.A9.types.logCustomEvent:case s.A9.types.setEmailNotificationSubscriptionType:case s.A9.types.setPushNotificationSubscriptionType:case s.A9.types.setCustomUserAttribute:case s.A9.types.addToSubscriptionGroup:case s.A9.types.removeFromSubscriptionGroup:case s.A9.types.addToCustomAttributeArray:case s.A9.types.removeFromCustomAttributeArray:case s.A9.types.no:case s.A9.types.ao:if(s.A9.properties.eo in e)return!0;break;case s.A9.types.requestPushPermission:return!0;default:return!1}return!1}function w(e){let t=!1;return Object.keys(s.A9.types).forEach((n=>{s.A9.types[n]!==e.toString()||(t=!0)})),t}},5319:(e,t,n)=>{n.d(t,{SD:()=>i,eh:()=>r});let r={PORTRAIT:0,LANDSCAPE:1},i={openUri:function(e,t,n){e&&(t||n!=null&&n.metaKey?window.open(e):window.location=e)},fo:function(){return screen.width<=600},co:function(){if(`orientation`in window)return Math.abs(window.orientation)===90||window.orientation===270?r.LANDSCAPE:r.PORTRAIT;let e=window;if(`screen`in e){let t=e.screen.orientation||screen.mozOrientation||screen.msOrientation;return typeof t==`object`&&t&&(t=t.type),t===`landscape-primary`||t===`landscape-secondary`?r.LANDSCAPE:r.PORTRAIT}return r.PORTRAIT},Un:function(){return window.location.href}}}},r={};function i(e){var t=r[e];if(t!==void 0)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,i),a.exports}i.m=n,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>e+`.js`,i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t=`@clickview/braze-client:`,i.l=(n,r,a,o)=>{if(e[n])e[n].push(r);else{var s,c;if(a!==void 0)for(var l=document.getElementsByTagName(`script`),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute(`src`)==n||d.getAttribute(`data-webpack`)==t+a){s=d;break}}s||(c=!0,(s=document.createElement(`script`)).charset=`utf-8`,s.timeout=120,i.nc&&s.setAttribute(`nonce`,i.nc),s.setAttribute(`data-webpack`,t+a),s.src=n),e[n]=[r];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:`timeout`,target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},i.p=``,(()=>{var e={143:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(r!==0)if(r)n.push(r[2]);else{var a=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=a);var o=i.p+i.u(t),s=Error();i.l(o,(n=>{if(i.o(e,t)&&((r=e[t])!==0&&(e[t]=void 0),r)){var a=n&&(n.type===`load`?`missing`:n.type),o=n&&n.target&&n.target.src;s.message=`Loading chunk `+t+` failed.
26
26
  (`+a+`: `+o+`)`,s.name=`ChunkLoadError`,s.type=a,s.request=o,r[1](s)}}),`chunk-`+t,t)}};var t=(t,n)=>{var r,a,[o,s,c]=n,l=0;if(o.some((t=>e[t]!==0))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);c&&c(i)}for(t&&t(n);l<o.length;l++)a=o[l],i.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunk_clickview_braze_client=self.webpackChunk_clickview_braze_client||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a={};return(()=>{i.r(a),i.d(a,{BrazeClient:()=>Gt,ClassHookMarketingFormEvent:()=>ht,CountryCode:()=>ct,CustomUserAttributes:()=>yt,DefaultUserAttributes:()=>vt,EventUserAttributes:()=>bt,MarketingFormEvent:()=>dt,MarketingUserEvent:()=>ut,PageEvent:()=>lt,ProductEvent:()=>gt,ProductFormEvent:()=>ft,StreamableFormEvent:()=>pt,StreamableMarketingFormEvent:()=>mt,getInstance:()=>Kt});var e=i(5825),t=i(1087),n=i(5333),r=i(6524);function o(){(0,n.e)(void 0,`iam`,`.ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}`),(0,r.N)()}var s=i(8376),c=i(1090),l=i(1792),u=i(6616),d=i(4410),f=i(3811),p=i(1507),m=i(5242);function h(e,t){return e==null?``:(e=parseInt(e.toString()),isNaN(e)?``:(t&&!isNaN(parseFloat(t.toString()))||(t=1),`rgba(`+[(16711680&(e>>>=0))>>>16,(65280&e)>>>8,255&e,((4278190080&e)>>>24)/255*t].join(`,`)+`)`))}var g=i(7671),_=i(335),v=i(2730);function y(n){if(!e.ZP.X())return!1;if(!(n instanceof l.Z||n instanceof s.Z))return _.Z.error(g.De),!1;let r=n instanceof s.Z?v.G.mo:v.G.Oi;return t.Z.m().q(n,r).L}var b=i(4365),x=i(9342);function S(n){if(!e.ZP.X())return!1;if(!(n instanceof l.Z))return _.Z.error(g.De),!1;let r=t.Z.m().q(n,v.G.Ei);if(r){n.Ur()||y(n);for(let e=0;e<r.ge.length;e++)x.n.rr().fe(b.Z.Qr,[n.triggerId],r.ge[e])}return r.L}var C=i(420),w=i(3695);function T(n,r,i){if(!e.ZP.X())return!1;if(!(n instanceof c.Z))return _.Z.error(`inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object.`),!1;let a=v.G.Ei;r!=null&&(a=v.G.Gi);let o=t.Z.m().q(n,a,r,i);if(o.L)for(let e=0;e<o.ge.length;e++)x.n.rr().fe(b.Z.Qr,[n.triggerId,r],o.ge[e]);return o.L}var E=i(6243),D=i(2893),O=i(5806),k=i(1148),A=i(5319),j=i(7048),M=i(4072);function N(n,r){if(!e.ZP.X())return!1;if(!(n instanceof M.Z))return _.Z.error(`button must be an InAppMessageButton object`),!1;if(!(r instanceof l.Z))return _.Z.error(g.De),!1;let i=t.Z.m().Hi(n,r);if(i.L)for(let e=0;e<i.ge.length;e++)x.n.rr().fe(b.Z.Qr,[r.triggerId,n.id?.toString()],i.ge[e]);return i.L}var P=i(7429);let F=e=>{let t=e.querySelectorAll(`.ab-close-button, .ab-message-text, .ab-message-button`),n;for(let e=0;e<t.length;e++)n=t[e],n.tabIndex=0;if(t.length>0){let n=t[0],r=t[t.length-1];e.addEventListener(`keydown`,(t=>{let i=document.activeElement;t.keyCode===P.m.lo&&(t.shiftKey||i!==r&&i!==e?!t.shiftKey||i!==n&&i!==e||(t.preventDefault(),r.focus()):(t.preventDefault(),n.focus()))}))}},I=(e,t)=>{t.setAttribute(`role`,`dialog`),t.setAttribute(`aria-modal`,`true`),t.setAttribute(`aria-label`,`Modal Message`),e&&t.setAttribute(`aria-labelledby`,e)},L=(e,t,n,r)=>{if(e.buttons&&e.buttons.length>0){let i=document.createElement(`div`);i.className=`ab-message-buttons`,n.appendChild(i);let a=n.getElementsByClassName(`ab-message-text`)[0];a!=null&&(a.className+=` ab-with-buttons`);let o=i=>a=>(e.Ae(n,(()=>{N(i,e),i.clickAction===l.Z.ClickAction.URI?(0,C.S)(i.uri||``,r||e.openTarget===l.Z.OpenTarget.BLANK,a):i.clickAction===l.Z.ClickAction.NEWS_FEED&&t()})),a.stopPropagation(),!1);for(let t=0;t<e.buttons.length;t++){let n=e.buttons[t],r=document.createElement(`button`);r.className=`ab-message-button`,r.setAttribute(`type`,`button`),(0,p.lj)(r,`touchstart`);let a=n.text;n.text===``&&(a=`\xA0`),r.appendChild(document.createTextNode(a)),e.Ce()||(r.style.backgroundColor=h(n.backgroundColor),r.style.color=h(n.textColor),r.style.borderColor=h(n.borderColor)),r.onclick=o(n),i.appendChild(r)}}};var R=i(7070);function z(t,n,r){if(!e.ZP.X())return;if(o(),t==null)return!1;if(t instanceof s.Z)return _.Z.info(`User received control for a multivariate test, logging to Braze servers.`),y(t),!0;if(!(t instanceof l.Z)||t.constructor===l.Z)return!1;t.Nh();let a=t instanceof c.Z;if(a&&!t.trusted&&!e.ZP.tr())return _.Z.error(`HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.`),!1;if(n??=document.body,t.ze()&&n.querySelectorAll(`.ab-modal-interactions`).length>0)return _.Z.info(`Cannot show in-app message ${t.message} because another message is being shown.`),!1;if(A.SD.fo()){let e=A.SD.co();if(e===A.eh.PORTRAIT&&t.orientation===l.Z.Orientation.LANDSCAPE||e===A.eh.LANDSCAPE&&t.orientation===l.Z.Orientation.PORTRAIT){let n=e===A.eh.PORTRAIT?`portrait`:`landscape`,r=t.orientation===l.Z.Orientation.PORTRAIT?`portrait`:`landscape`;return _.Z.info(`Not showing ${r} in-app message ${t.message} because the screen is currently ${n}`),!1}}if(!e.ZP.tr()){let e=!1;if(t.buttons&&t.buttons.length>0){let n=t.buttons;for(let t=0;t<n.length;t++)if(n[t].clickAction===l.Z.ClickAction.URI){let r=n[t].uri;e=(0,k.o)(r)}}else t.clickAction===l.Z.ClickAction.URI&&(e=(0,k.o)(t.uri));if(e)return _.Z.error(`Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.`),!1}let v=document.createElement(`div`);if(v.className=`ab-iam-root v3`,v.className+=function(e){let t=``;return e.animateIn&&(t+=` ab-animate-in`),e.animateOut&&(t+=` ab-animate-out`),e instanceof d.Z?t+=` ab-effect-fullscreen`:e instanceof c.Z?t+=` ab-effect-html`:e instanceof f.Z?t+=` ab-effect-modal`:e instanceof u.Z&&(t+=` ab-effect-slide`),t}(t),v.setAttribute(`role`,`complementary`),t.xe()&&(v.id=t.htmlId),e.ZP.nn(e.JY.jo)&&(v.style.zIndex=(e.ZP.nn(e.JY.jo)+1).toString()),n.appendChild(v),t.Ce()){let n=document.createElement(`style`);n.innerHTML=t.css,n.id=t.ve(),e.ZP.nn(e.JY.bo)!=null&&n.setAttribute(`nonce`,e.ZP.nn(e.JY.bo)),document.getElementsByTagName(`head`)[0].appendChild(n)}let b=t instanceof u.Z,x=function(t,n,r,a,o,s,v,y=document.body){if(t.ke=document.activeElement,t instanceof c.Z)return function(t,n,r,a,o,s){let c=document.createElement(`iframe`);c.setAttribute(`title`,`Modal Message`),o&&(c.style.zIndex=(o+1).toString());let u=e=>{let n=e.getAttribute(`href`),r=e.onclick;return i=>{if(r!=null&&typeof r==`function`&&!1===r.bind(e)(i))return;let o=(0,k.L)(n).abButtonId;if(o!=null&&o!==``||(o=e.getAttribute(`id`)||void 0),n!=null&&n!==``&&n.indexOf(`#`)!==0){let r=(e.getAttribute(`target`)||``).toLowerCase().replace(`_`,``)===`blank`,s=a||t.openTarget===l.Z.OpenTarget.BLANK||r,u=()=>{T(t,o,n),A.SD.openUri(n,s,i)};s?u():t.Ae(c,u)}else T(t,o,n||void 0);return i.stopPropagation(),!1}},d=(e,t,n)=>{let r=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${n}['"]\\)`,i=e.match(new RegExp(r));if(i){let n=`${i[1]}.setAttribute("nonce", "${t}")`;return`${e.slice(0,i.index+i[0].length)};${n};${e.slice(i.index+i[0].length)}`}return null};if(c.onload=()=>{let a=null;if(s!=null){a=document.createElement(`html`),a.innerHTML=t.message||``;let e=a.getElementsByTagName(`style`);for(let t=0;t<e.length;t++)e[t].setAttribute(`nonce`,s);let n=a.getElementsByTagName(`script`);for(let e=0;e<n.length;e++){n[e].setAttribute(`nonce`,s),n[e].innerHTML=n[e].innerHTML.replace(/<style>/g,`<style nonce='${s}'>`);let t=d(n[e].innerHTML,s,`script`);t&&(n[e].innerHTML=t);let r=d(n[e].innerHTML,s,`style`);r&&(n[e].innerHTML=r)}}let o=c.contentWindow;o.focus();let f=o.document.querySelector(`html`);f&&(f.innerHTML=a?a.innerHTML:t.message||``,(0,j.E)(f));let p=o.document.getElementsByTagName(`head`)[0];if(p!=null){if(t.Ce()){let e=document.createElement(`style`);e.innerHTML=t.css||``,e.id=t.ve()||``,s!=null&&e.setAttribute(`nonce`,s),p.appendChild(e)}let e=o.document.createElement(`base`);e!=null&&(e.setAttribute(`target`,`_parent`),p.appendChild(e))}let m=o.document.getElementsByTagName(`title`);m&&m.length>0&&c.setAttribute(`title`,m[0].textContent||``);let h={closeMessage:function(){t.Ae(c)},logClick:function(){T(t,...arguments)},display:{},web:{}},v=function(){return function(){let t=arguments;Promise.resolve().then(i.bind(i,2261)).then((n=>{e.ZP.so()?n.requestPushPermission(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))}},y={requestImmediateDataFlush:function(){let t=arguments;Promise.resolve().then(i.bind(i,4650)).then((({requestImmediateDataFlush:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))},logCustomEvent:function(){let t=arguments;Promise.resolve().then(i.bind(i,1454)).then((({logCustomEvent:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))},logPurchase:function(){let t=arguments;i.e(364).then(i.bind(i,1364)).then((({logPurchase:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))},unregisterPush:function(){let t=arguments;Promise.resolve().then(i.bind(i,7824)).then((({unregisterPush:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))},requestPushPermission:v(),changeUser:function(){let t=arguments;Promise.resolve().then(i.bind(i,4790)).then((({changeUser:n})=>{e.ZP.so()?n(...Array.prototype.slice.call(t)):_.Z.error(g.Go)}))}},b=function(e){return function(){y[e](...Array.prototype.slice.call(arguments))}};for(let e of(0,D.XP)(y))h[e]=b(e);let x=[`setFirstName`,`setLastName`,`setEmail`,`setGender`,`setDateOfBirth`,`setCountry`,`setHomeCity`,`setEmailNotificationSubscriptionType`,`setLanguage`,`addAlias`,`setPushNotificationSubscriptionType`,`setPhoneNumber`,`setCustomUserAttribute`,`addToCustomAttributeArray`,`removeFromCustomAttributeArray`,`incrementCustomUserAttribute`,`setCustomLocationAttribute`,`addToSubscriptionGroup`,`removeFromSubscriptionGroup`],S=function(e){return function(){let t=(0,E.P)();t&&t[e](...Array.prototype.slice.call(arguments))}},C={};for(let e=0;e<x.length;e++)C[x[e]]=S(x[e]);h.getUser=function(){return C};let w={showFeed:n},O=function(e){return function(){let n=arguments;t.Ae(c,(function(){w[e](...Array.prototype.slice.call(n))}))}},k=h.display;for(let e of(0,D.XP)(w))k[e]=O(e);let A={registerAppboyPushMessages:v()},M=function(e){return function(){A[e](...Array.prototype.slice.call(arguments))}},N=h.web;for(let e of(0,D.XP)(A))N[e]=M(e);if(o.appboyBridge=h,o.brazeBridge=h,t.we!==l.Z.qe.$e){let e=o.document.getElementsByTagName(`a`);for(let t=0;t<e.length;t++)e[t].onclick=u(e[t]);let t=o.document.getElementsByTagName(`button`);for(let e=0;e<t.length;e++)t[e].onclick=u(t[e])}let P=o.document.body;if(P!=null){t.xe()&&(P.id=t.htmlId||``);let e=document.createElement(`hidden`);e.onclick=h.closeMessage,e.className=`ab-programmatic-close-button`,P.appendChild(e)}o.dispatchEvent(new CustomEvent(`ab.BridgeReady`)),c.className.indexOf(`ab-start-hidden`)!==-1&&(c.className=c.className.replace(`ab-start-hidden`,``),r(c)),document.activeElement!==c&&c.focus()},c.className=`ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions`,w.Z.OS===O.T.io){let e=document.createElement(`div`);return e.className=`ab-ios-scroll-wrapper`,e.appendChild(c),t.Me=e,e}return t.Me=c,c}(t,n,r,o,s,v);let b=function(e,t,n,r,i,a,o=document.body){let s=null,c=document.createElement(`div`);var u;c.className=`ab-in-app-message ab-start-hidden ab-background`,a&&(c.style.zIndex=(a+1).toString()),e.ze()&&(c.className+=` ab-modal-interactions`,c.setAttribute(`tabindex`,`-1`)),e.Ce()||(c.style.color=h(e.textColor),c.style.backgroundColor=h(e.backgroundColor),(u=e.backgroundColor)!=null&&(u=parseInt(u.toString()),!isNaN(u)&&!((4278190080&u)>>>24))&&(c.className+=` ab-no-shadow`));let d=()=>{c.className.indexOf(`ab-start-hidden`)!==-1&&(c.className=c.className.replace(`ab-start-hidden`,``),document.querySelectorAll(`.ab-iam-img-loading`).length>0?r(`Cannot show in-app message ${e.message} because another message is being shown.`,l.Z.Be.Le):n(c))},f=(t=!0)=>{let n=document.querySelectorAll(`.ab-iam-root`);n&&n.length!==0||(n=o.querySelectorAll(`.ab-iam-root`)),n&&n.length>0&&(n[0].classList.remove(`ab-iam-img-loading`),s&&=(clearTimeout(s),null),t?d():_.Z.error(`Cannot show in-app message ${e.message} because the image failed to load.`))};e.imageStyle===l.Z.ImageStyle.GRAPHIC&&(c.className+=` graphic`),e.orientation===l.Z.Orientation.LANDSCAPE&&(c.className+=` landscape`),e.buttons!=null&&e.buttons.length===0&&(e.clickAction!==l.Z.ClickAction.NONE&&(c.className+=` ab-clickable`),c.onclick=n=>(e.Ae(c,(()=>{S(e),e.clickAction===l.Z.ClickAction.URI?(0,C.S)(e.uri||``,i||e.openTarget===l.Z.OpenTarget.BLANK,n):e.clickAction===l.Z.ClickAction.NEWS_FEED&&t()})),n.stopPropagation(),!1));let g=(0,m.B)(`Close Message`,e.Ce()?void 0:h(e.closeButtonColor),(()=>{e.Ae(c)}));c.appendChild(g),a&&(g.style.zIndex=(a+2).toString());let v=document.createElement(`div`);v.className=`ab-message-text`;let y=(e.messageAlignment||e.De).toLowerCase();v.className+=` `+y+`-aligned`;let b=!1,x=document.createElement(`div`);if(x.className=`ab-image-area`,e.imageUrl){if(e.cropType===l.Z.CropType.CENTER_CROP){let t=document.createElement(`span`);t.className=`ab-center-cropped-img`,t.style.backgroundImage=`url(`+e.imageUrl+`)`,t.setAttribute(`role`,`img`),t.setAttribute(`aria-label`,`Modal Image`),e.Ge(t),x.appendChild(t)}else{let t=document.createElement(`img`);if(t.setAttribute(`src`,e.imageUrl),e.Ge(t),document.querySelectorAll(`.ab-iam-img-loading`).length===0){b=!0;let e=document.querySelectorAll(`.ab-iam-root`);e&&e.length>0&&e[0].classList.add(`ab-iam-img-loading`),s=window.setTimeout((()=>{f(!1)}),6e4),t.onload=()=>{f()},t.onerror=()=>{f(!1)}}x.appendChild(t)}c.appendChild(x),v.className+=` ab-with-image`}else if(e.icon){x.className+=` ab-icon-area`;let t=document.createElement(`span`);t.className=`ab-icon`,e.Ce()||(t.style.backgroundColor=h(e.iconBackgroundColor),t.style.color=h(e.iconColor));let n=document.createElement(`i`);n.className=`fa`,n.appendChild(document.createTextNode(e.icon)),n.setAttribute(`aria-hidden`,`true`),t.appendChild(n),x.appendChild(t),c.appendChild(x),v.className+=` ab-with-icon`}if((0,p.lj)(v,`touchstart`),e.header&&e.header.length>0){let t=document.createElement(`h1`);t.className=`ab-message-header`,e.He=R.Z.W(),t.id=e.He;let n=(e.headerAlignment||l.Z.TextAlignment.CENTER).toLowerCase();t.className+=` `+n+`-aligned`,e.Ce()||(t.style.color=h(e.headerTextColor)),t.appendChild(document.createTextNode(e.header)),v.appendChild(t)}return v.appendChild(e.Je()),c.appendChild(v),b||d(),e.Me=c,c}(t,n,r,a,o,s,y);if(t instanceof d.Z||t instanceof f.Z){let e=t instanceof d.Z?`ab-fullscreen`:`ab-modal`;b.className+=` ${e} ab-centered`,L(t,n,b,o),F(b),I(t.He,b)}else if(t instanceof u.Z){b.className+=` ab-slideup`;let e=b.getElementsByClassName(`ab-close-button`)[0];if(e!=null){let n=(0,p.MK)(`0 0 11.38 19.44`,`M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z`,t.Ce()?void 0:h(t.closeButtonColor));n.setAttribute(`class`,`ab-chevron`),e.appendChild(n)}let n,r;(0,p.FZ)(b,p.mQ.U,(t=>{b.className+=` ab-swiped-left`,e!=null&&e.onclick!=null&&e.onclick(t)})),(0,p.FZ)(b,p.mQ.V,(t=>{b.className+=` ab-swiped-right`,e!=null&&e.onclick!=null&&e.onclick(t)})),t.slideFrom===l.Z.SlideFrom.TOP?(n=p.mQ.Re,r=` ab-swiped-up`):(n=p.mQ.Se,r=` ab-swiped-down`),(0,p.FZ)(b,n,(t=>{b.className+=r,e!=null&&e.onclick!=null&&e.onclick(t)}))}return b}(t,(()=>{i.e(864).then(i.bind(i,4864)).then((t=>{e.ZP.so()?t.showFeed():_.Z.error(g.Go)}))}),(n=>{if(t.ze()&&t.do()){let r=document.createElement(`div`);if(r.className=`ab-page-blocker`,t.Ce()||(r.style.backgroundColor=h(t.frameColor)),e.ZP.nn(e.JY.jo)&&(r.style.zIndex=e.ZP.nn(e.JY.jo).toString()),v.appendChild(r),!e.ZP.nn(e.JY.Lh)){let e=new Date().valueOf();r.onclick=r=>{new Date().valueOf()-e>l.Z.fh&&(t.Ae(n),r.stopPropagation())}}v.appendChild(n),n.focus(),t.Oh(v)}else if(b){let e=document.querySelectorAll(`.ab-slideup`),r=null;for(let t=e.length-1;t>=0;t--)if(e[t]!==n){r=e[t];break}if(t.slideFrom===l.Z.SlideFrom.TOP){let e=0;r!=null&&(e=r.offsetTop+r.offsetHeight),n.style.top=Math.max(e,0)+`px`}else{let e=0;r!=null&&(e=(window.innerHeight||document.documentElement.clientHeight)-r.offsetTop),n.style.bottom=Math.max(e,0)+`px`}}else if(a&&!e.ZP.nn(e.JY.Lh)){let e=t;(0,j.f)(n)&&n.contentWindow&&n.contentWindow.addEventListener(`keydown`,(function(t){t.keyCode===P.m.mh&&e.closeMessage()}))}y(t),t.dismissType===l.Z.DismissType.AUTO_DISMISS&&setTimeout((()=>{v.contains(n)&&t.Ae(n)}),t.duration),typeof r==`function`&&r()}),(e=>{_.Z.info(e)}),e.ZP.nn(e.JY.ho),e.ZP.nn(e.JY.jo),e.ZP.nn(e.JY.bo),n);return(a||b)&&(v.appendChild(x),t.Oh(v)),!0}function B(n){if(e.ZP.X())return typeof n==`function`?t.Z.m()._i((function(e){return n(e[0]),e.slice(1)})):null}var V=i(5522),H=i(1454),ee=i(2261),U=i(7824),te=i(4790),ne=i(4650),re=i(1843),ie=i(158),ae=i(67),oe=i(1066),W=i(1280);function se(t,n){if(e.ZP.X())return q.rr().xs(t,n)}class G extends ae.Z{constructor(e,t){super(e,t)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(e){(0,oe.p)(e,!0)}logCardClick(e){return(0,W.d)(e,!0)}sr(){se()}dr(){return!0}}G.ur=6e4;var ce=i(7750),le=i(5899),K=i(5966),ue=i(4663),de=i(9179),fe=i(6870),pe=i(6504);class me extends ie.Z{constructor(t,n,r,i,a){super(),this.wt=t,this.u=n,this.yt=r,this.Ft=i,this.qt=a,this.wt=t,this.u=n,this.yt=r,this.Ft=i,this.qt=a,this.Jt=new ue.Z,e.ZP.$t(this.Jt),this.Bt=0,this.Ht=0,this.cards=[],this.Kt();let o=V.Z.Yt.Qt;new V.Z(o,_.Z).Zt(o.ss.ts,(e=>{this.es(e)})),this.hs=null,this.rs=null,this.ns=null,this.os=null,this.ls=null,this.us=10,this.cs=0}fs(){return this.hs}ds(e){this.hs=e}ps(){return this.rs}vs(e){this.rs=e}Kt(){if(!this.u)return;let e=this.u.j(K.I.C.ws)||[],t=[];for(let n=0;n<e.length;n++){let r=(0,le.rN)(e[n]);r!=null&&t.push(r)}this.cards=this.Cs(this.bs(t,!1)),this.Bt=this.u.j(K.I.C.gs)||this.Bt,this.Ht=this.u.j(K.I.C.ys)||this.Ht}js(e,t=!1,n=0,r=0){let i;if(t){i=[];for(let e of this.cards)e.test&&i.push(e)}else i=this.cards.slice();for(let n=0;n<e.length;n++){let r=e[n],a=null;for(let e=0;e<this.cards.length;e++)if(r.id===this.cards[e].id){a=this.cards[e];break}if(t){let e=(0,le.xA)(r);a!=null&&a.viewed&&e&&(e.viewed=!0),e!=null&&i.push(e)}else if(a==null){let e=(0,le.xA)(r);e!=null&&i.push(e)}else if(!a.Ct(r)){for(let e=0;e<i.length;e++)if(r.id===i[e].id){i.splice(e,1);break}}}this.cards=this.Cs(this.bs(i,t)),this.Rs(),this.Bt=n,this.Ht=r,this.u&&(this.u.k(K.I.C.gs,this.Bt),this.u.k(K.I.C.ys,this.Ht))}Ns(t){if(this.Ts()&&t!=null&&t.cards){this.u&&this.u.k(K.I.C.Ss,e.ZP.Ds());let n=t.full_sync;n||this.Kt(),this.js(t.cards,n,t.last_full_sync_at,t.last_card_updated_at),this.Jt.Dt(this.Us(!0))}}ks(e){this.u&&this.u.k(K.I.C.As,e)}Fs(e,t,n){let r=()=>{this.xs(t,n,!0)},i=e?(0,re.D)(e):null,a;if(this.zs(),!i||!i[`retry-after`])return void this.ks(0);let o=i[`retry-after`];if(isNaN(o)&&!isNaN(Date.parse(o)))a=Date.parse(o)-new Date().getTime(),a<0&&r();else{if(isNaN(parseFloat(o.toString()))){de.Z.q(v.G.qs,{e:`Received unexpected value for retry-after header in /sync response: `+o}),this.ks(0);return}a=1e3*parseFloat(o.toString())}this.ns=window.setTimeout((()=>{r()}),a);let s=0;this.u&&(s=this.u.j(K.I.C.As)),(s==null||isNaN(parseInt(s.toString())))&&(s=0),this.ks(parseInt(s.toString())+1)}es(e){if(!this.Ts())return;this.Kt();let t=this.cards.slice(),n=null;n=this.wt?.getUserId();for(let r=0;r<e.length;r++)if(n===e[r].userId||n==null&&e[r].userId==null){let n=e[r].card,i=null;for(let e=0;e<this.cards.length;e++)if(n.id===this.cards[e].id){i=this.cards[e];break}if(i==null){let e=(0,le.xA)(n);e!=null&&t.push(e)}else if(!i.Ct(n)){for(let e=0;e<t.length;e++)if(n.id===t[e].id){t.splice(e,1);break}}}this.cards=this.Cs(this.bs(t,!1)),this.Rs(),this.Jt.Dt(this.Us(!0))}bs(e,t){let n={},r={},i={};this.u&&(n=this.u.j(K.I.C.v)||{},r=this.u.j(K.I.C.H)||{},i=this.u.j(K.I.C.A)||{});let a={},o={},s={};for(let t=0;t<e.length;t++){let c=e[t].id;c&&(n[c]&&(e[t].clicked=!0,a[c]=!0),r[c]&&(e[t].viewed=!0,o[c]=!0),i[c]&&(e[t].dismissed=!0,s[c]=!0))}return t&&this.u&&(this.u.k(K.I.C.v,a),this.u.k(K.I.C.H,o),this.u.k(K.I.C.A,s)),e}Cs(e){let t=[],n=new Date,r={};this.u&&(r=this.u.j(K.I.C.A)||{});let i=!1;for(let a=0;a<e.length;a++){let o=e[a].url;if(!this.Ft&&o&&(0,k.o)(o)){_.Z.error(`Card with url ${o} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}let s=e[a].expiresAt,c=!0;if(s!=null&&(c=s>=n),c&&=!e[a].dismissed,c)t.push(e[a]);else{let t=e[a].id;t&&(r[t]=!0),i=!0}}return i&&this.u&&this.u.k(K.I.C.A,r),t}Rs(){var e;let t=[];for(let e=0;e<this.cards.length;e++)t.push(this.cards[e].Y());(e=this.u)==null||e.k(K.I.C.ws,t)}zs(){this.ns&&=(clearTimeout(this.ns),null)}Es(){this.os!=null&&(clearTimeout(this.os),this.os=null)}Ls(e=1e3*this.us,t,n){this.Es(),this.os=window.setTimeout((()=>{this.xs(t,n,!0)}),e),this.ls=e}xs(t,n,r=!1,i=!0){var a;let o=this.qt,s=this.u;if(!o||!s)return void(typeof n==`function`&&n());if(!r&&(this.zs(),this.ks(0)),!this.Ts())return void((a=this.yt)==null||a.Is((()=>{this.xs(t,n)})));i&&this.Es();let c=o.Js({},!0);s.j(K.I.C.Ss)!==e.ZP.Ds()&&this.Ms(),c.last_full_sync_at=this.Bt,c.last_card_updated_at=this.Ht;let l=o.$s(c,fe.Z.Ps.Bs,r),u=!1;o.Xs(c,((e=-1)=>{if(this.u){let e=new Date().valueOf();fe.Z._s(this.u,fe.Z.Ps.Bs,e)}e!==-1&&l.push([`X-Braze-Req-Tokens-Remaining`,e.toString()]),re.Z.Gs({url:`${o.Hs()}/content_cards/sync`,data:c,headers:l,L:(e,r)=>{if(!o.Ks(c,e,l))return u=!0,void(typeof n==`function`&&n());o.Os(),this.Fs(r,t,n),this.Ns(e),u=!1,fe.Z.Qs(this.u,fe.Z.Ps.Bs,1),typeof t==`function`&&t()},error:e=>{o.Vs(e,`retrieving content cards`),u=!0,typeof n==`function`&&n()},Ws:()=>{if(u&&i&&!this.os&&this.cs+1<g.Tt){fe.Z.Ys(this.u,fe.Z.Ps.Bs);let e=this.ls;(e==null||e<1e3*this.us)&&(e=1e3*this.us),this.Ls(Math.min(3e5,(0,pe.R)(1e3*this.us,3*e)),t,n),this.cs+=1}}})}),fe.Z.Ps.Bs,n)}Us(e){e||this.Kt();let t=this.Cs(this.cards);t.sort(((e,t)=>e.pinned&&!t.pinned?-1:t.pinned&&!e.pinned?1:e.updated&&t.updated&&e.updated>t.updated?-1:e.updated&&t.updated&&t.updated>e.updated?1:0));let n=Math.max(this.Ht||0,this.Bt||0);return n===0&&(n=void 0),this.u&&this.u.j(K.I.C.ys)===this.Ht&&n===void 0&&(n=this.Ht),new G(t,(0,ce.X2)(n))}Zs(e){return this.Jt.It(e)}Ms(){this.Bt=0,this.Ht=0,this.u&&(this.u.ti(K.I.C.gs),this.u.ti(K.I.C.ys))}changeUser(e){e||(this.cards=[],this.Jt.Dt(new G(this.cards.slice(),null)),this.u&&(this.u.ti(K.I.C.ws),this.u.ti(K.I.C.v),this.u.ti(K.I.C.H),this.u.ti(K.I.C.A))),this.Ms()}clearData(e){this.Bt=0,this.Ht=0,this.cards=[],this.Jt.Dt(new G(this.cards.slice(),null)),e&&this.u&&(this.u.ti(K.I.C.ws),this.u.ti(K.I.C.v),this.u.ti(K.I.C.H),this.u.ti(K.I.C.A),this.u.ti(K.I.C.gs),this.u.ti(K.I.C.ys))}Ts(){return!(!this.yt||!this.yt.si()&&(this.yt.ii()!==0&&this.ei(),1))}ei(){this.Jt.Dt(new G([],new Date)),this.u&&this.u.ti(K.I.C.ws)}}let he={t:!1,provider:null,rr:()=>(he.o(),he.provider||(he.provider=new me(e.ZP.er(),e.ZP.l(),e.ZP.ir(),e.ZP.tr(),e.ZP.nr()),e.ZP.ar(he.provider)),he.provider),o:()=>{he.t||=(e.ZP.g(he),!0)},destroy:()=>{he.provider=null,he.t=!1}},q=he;function ge(t){if(!e.ZP.X())return;let n=q.rr(),r=n.Zs(t);if(!n.ps()){let t=e.ZP.cr();if(t){let e=t.mr((()=>{n.xs()}));e&&n.vs(e)}}return r}var _e=i(1311),ve=i(5608),ye=i(6959);function be(t,n){if(!e.ZP.X())return;(0,ye.B)();let r=!1;t??(t=document.body,r=!0);let i=e.ZP.nn(e.JY.tn)||e.ZP.nn(e.JY.en)||!1,a=q.rr().Us(!1);typeof n==`function`&&(0,_e.Of)(a,n(a.cards.slice()),a.lastUpdated,null,i);let o=(0,_e.Yz)(a,i,r),s=q.rr(),c=s.fs();(a.lastUpdated==null||new Date().valueOf()-a.lastUpdated.valueOf()>G.ur)&&(c==null||new Date().valueOf()-c>G.ur)&&(_.Z.info(`Cached content cards were older than max TTL of ${G.ur} ms, requesting an update from the server.`),(0,_e.cV)(a,o),s.ds(new Date().valueOf()));let l=new Date().valueOf(),u=ge((function(e){let t=o.querySelectorAll(`.ab-refresh-button`)[0];if(t!=null){let e=500,n=e-=new Date().valueOf()-l,r=o.getAttribute(_e.cP);r&&(n=parseInt(r),isNaN(n)||(e-=new Date().valueOf()-n)),setTimeout((function(){t.className=t.className.replace(/fa-spin/g,``)}),Math.max(e,0))}let r=e.cards;typeof n==`function`&&(r=n(r.slice())),(0,_e.Of)(a,r,e.lastUpdated,o,i)}));(0,_e.GB)(u,o);let d=function(e){let t=e.querySelectorAll(`.ab-feed`),n=null;for(let r=0;r<t.length;r++)t[r].parentNode===e&&(n=t[r]);n==null?e.appendChild(o):((0,_e.tQ)(n),n.parentNode!=null&&n.parentNode.replaceChild(o,n)),setTimeout((function(){o.className=o.className.replace(`ab-hide`,`ab-show`)}),0),r&&o.focus(),(0,_e.cz)(a,o),(0,ve.CG)(a.cards,e)};var f;t==null?window.onload=(f=window.onload,function(){typeof f==`function`&&f(new Event(`oldLoad`)),d(document.body)}):d(t)}var xe=i(2080);function Se(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ce={get screenWidth(){return window.screen.width},get screenHeight(){return window.screen.height},get queryString(){return window.location.search},get queryParams(){var e,t=Ce.queryString,n=new URLSearchParams(t),r={},i=function(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return Se(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
27
27
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}(n.keys());try{for(i.s();!(e=i.n()).done;){var a=e.value;if(!(a in r)){var o=n.getAll(a);o.length>1?r[a]=o:r[a]=o[0]}}}catch(e){i.e(e)}finally{i.f()}return r&&Object.keys(r).length?JSON.stringify(r):t},get referrer(){return window.document.referrer},get title(){return window.document.title},get pathname(){return window.location.pathname},get hostname(){return window.location.hostname},get requestUrl(){return Ce.hostname+Ce.pathname},decodeURIComponent:function(e){return window.decodeURIComponent(e)}},we=Ce,Te={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},Ee=`Unknown`;function J(e,t,n){if(!t)return{name:e,version:Ee};var r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():Ee}}var De=function(){var e=window.navigator.userAgent;return Te.mobileDevice.test(e)?Te.iphone.test(e)?`iPhone`:Te.ipad.test(e)?`iPad`:Te.android.test(e)?`Android`:Te.blackberry.test(e)?`Blackberry`:Te.windowsPhone.test(e)?`Windows Phone`:Ee:`Desktop`},Oe={getEventDataPayload:function(e,t){var n={product:this.getProductData(t),client:this.getClientData(),request:this.getRequestData()};e.data&&Object.keys(e.data).length&&(n.data=e.data),e.actionType&&(n.action_type=e.actionType);var r=we.requestUrl;return r&&(n.request_url=r),n},getProductData:function(e){var t={name:e.name,version:e.version};return e.locale&&(t.locale=e.locale),t},getClientData:function(){return{os:(e=window.navigator.userAgent,Te.android.test(e)?J(`Android`,Te.androidVersion,e):Te.iphone.test(e)||Te.ipad.test(e)?J(`iOS`,Te.iosVersion,e):Te.linux.test(e)?J(`Linux`,null,e):Te.unix.test(e)?J(`Unix`,null,e):Te.mac.test(e)?J(`Macintosh`,Te.osxVersion,e):Te.windows.test(e)?function(e,t){var n={name:`Windows`,version:null};return Te.win2000.test(t)&&(n.version=`2000`),Te.winXP.test(t)&&(n.version=`XP`),Te.winVista.test(t)&&(n.version=`Vista`),Te.win7.test(t)&&(n.version=`7`),Te.win8.test(t)&&(n.version=`8`),Te.win81.test(t)&&(n.version=`8.1`),Te.win10.test(t)&&(n.version=`10`),n.version||=Ee,n}(0,e):Te.blackberry.test(e)?J(`BlackBerry`,Te.blackberryVersion,e):Te.windowsPhone.test(e)?J(`Windows Phone`,Te.windowsPhoneVersion,e):{name:Ee,version:Ee}),device:{type:De(),resolution:`${we.screenWidth}x${we.screenHeight}`}};var e},getRequestData:function(){var e=we.queryParams,t=we.referrer,n=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`&`,t=we.queryString;if(t.length){var n=we.decodeURIComponent(t.substring(1)),r=RegExp(`((utm_[^=]+)=([^\\`+e+`]+))`,`gi`),i=n.match(r);if(i&&i.length){var a=i.reduce((function(e,t){var n=t.split(`=`);return e[n[0].split(`_`)[1]]=n[1],e}),{});if(Object.keys(a).length)return a}}}(),r={page_name:we.title,host_name:we.hostname,path_name:we.pathname};return e.length&&(r.query_params=e),t.length&&(r.referrer=t),n&&(r.utms=n),r}},Y=function(e){throw Error(e)},ke=function(e){var t=[...arguments].slice(1);console.error(e,t)};function Ae(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function je(e){return je=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},je(e)}var Me=RegExp(`[A-Za-z0-9 _.,!"'/$]*`),Ne=RegExp(`^[a-z]+(?:_[a-z]+)*$`),Pe=[`productName`,`productVersion`,`apiKey`,`baseUrl`],Fe={clientUserAttributeValue:function(e){return typeof e==`boolean`?!0:!(!e||typeof e==`string`&&(!e.length||!(e.length<=255)||e[0]===`$`||!Me.test(e)))},isSnakeCase:function(e){return Ne.test(e)},additionalData:function(e){if(je(e)!==`object`||e===null)return!0;if(Array.isArray(e)){var t,n=function(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return Ae(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
28
28
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!Fe.additionalData(r))return!1}}catch(e){n.e(e)}finally{n.f()}}else for(var i in e){if(!Fe.isSnakeCase(i))return ke(`'${i}' in additional data provided does not follow 'snake_case' naming convention.`),!1;var a=e[i];if(je(a)===`object`&&a!==null&&!Fe.additionalData(a))return!1}return!0},accountAddress:function(e){if(!e||je(e)!==`object`)return!1;var t=Object.keys(e);return!(t.length===0||t.length>2||t.length===1&&!t.includes(`country_code`)||t.length===2&&!t.includes(`country_code`)&&!t.includes(`province`)||typeof e.country_code!=`string`||t.includes(`province`)&&typeof e.province!=`string`)},brazeClientOptions:function(e){e||Y(`No Client options provided.`),Pe.forEach((function(t){e.hasOwnProperty(t)||Y(`Cannot find the required "${t}" attribute in client options.`)}))}};function Ie(e){return Ie=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ie(e)}function Le(){Le=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.asyncIterator||`@@asyncIterator`,c=a.toStringTag||`@@toStringTag`;function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},``)}catch{l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype);return i(o,`_invoke`,{value:T(e,n,new k(r||[]))}),o}function d(e,t,n){try{return{type:`normal`,arg:e.call(t,n)}}catch(e){return{type:`throw`,arg:e}}}t.wrap=u;var f=`suspendedStart`,p=`executing`,m=`completed`,h={};function g(){}function _(){}function v(){}var y={};l(y,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(A([])));x&&x!==n&&r.call(x,o)&&(y=x);var S=v.prototype=g.prototype=Object.create(y);function C(e){[`next`,`throw`,`return`].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(i,a,o,s){var c=d(e[i],e,a);if(c.type!==`throw`){var l=c.arg,u=l.value;return u&&Ie(u)==`object`&&r.call(u,`__await`)?t.resolve(u.__await).then((function(e){n(`next`,e,o,s)}),(function(e){n(`throw`,e,o,s)})):t.resolve(u).then((function(e){l.value=e,o(l)}),(function(e){return n(`throw`,e,o,s)}))}s(c.arg)}var a;i(this,`_invoke`,{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function T(t,n,r){var i=f;return function(a,o){if(i===p)throw Error(`Generator is already running`);if(i===m){if(a===`throw`)throw o;return{value:e,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=E(s,r);if(c){if(c===h)continue;return c}}if(r.method===`next`)r.sent=r._sent=r.arg;else if(r.method===`throw`){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else r.method===`return`&&r.abrupt(`return`,r.arg);i=p;var l=d(t,n,r);if(l.type===`normal`){if(i=r.done?m:`suspendedYield`,l.arg===h)continue;return{value:l.arg,done:r.done}}l.type===`throw`&&(i=m,r.method=`throw`,r.arg=l.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,r===`throw`&&t.iterator.return&&(n.method=`return`,n.arg=e,E(t,n),n.method===`throw`)||r!==`return`&&(n.method=`throw`,n.arg=TypeError(`The iterator does not provide a '`+r+`' method`)),h;var a=d(i,t.iterator,n.arg);if(a.type===`throw`)return n.method=`throw`,n.arg=a.arg,n.delegate=null,h;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,n.method!==`return`&&(n.method=`next`,n.arg=e),n.delegate=null,h):o:(n.method=`throw`,n.arg=TypeError(`iterator result is not an object`),n.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=`normal`,delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:`root`}],e.forEach(D,this),this.reset(!0)}function A(t){if(t||t===``){var n=t[o];if(n)return n.call(t);if(typeof t.next==`function`)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw TypeError(Ie(t)+` is not iterable`)}return _.prototype=v,i(S,`constructor`,{value:v,configurable:!0}),i(v,`constructor`,{value:_,configurable:!0}),_.displayName=l(v,c,`GeneratorFunction`),t.isGeneratorFunction=function(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===_||(t.displayName||t.name)===`GeneratorFunction`)},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,`GeneratorFunction`)),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,a){a===void 0&&(a=Promise);var o=new w(u(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(S),l(S,c,`Generator`),l(S,o,(function(){return this})),l(S,`toString`,(function(){return`[object Generator]`})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method=`next`,this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)n.charAt(0)===`t`&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type===`throw`)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type=`throw`,s.arg=t,n.next=r,i&&(n.method=`next`,n.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(o.tryLoc===`root`)return i(`end`);if(o.tryLoc<=this.prev){var c=r.call(o,`catchLoc`),l=r.call(o,`finallyLoc`);if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error(`try statement without catch or finally`);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,`finallyLoc`)&&this.prev<i.finallyLoc){var a=i;break}}a&&(e===`break`||e===`continue`)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method=`next`,this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if(e.type===`throw`)throw e.arg;return e.type===`break`||e.type===`continue`?this.next=e.arg:e.type===`return`?(this.rval=this.arg=e.arg,this.method=`return`,this.next=`end`):e.type===`normal`&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(r.type===`throw`){var i=r.arg;O(n)}return i}}throw Error(`illegal catch attempt`)},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},this.method===`next`&&(this.arg=e),h}},t}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ze(r.key),r)}}function ze(e){var t=function(e,t){if(Ie(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ie(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ie(t)==`symbol`?t:t+``}var Be=function(){function n(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n),Fe.brazeClientOptions(e),this.options=e,this.initialize()}var r,i,a;return r=n,i=[{key:`initialize`,value:function(){var n=this.options.apiKey,r={baseUrl:this.options.baseUrl,enableLogging:this.options.enableLogging,allowUserSuppliedJavascript:this.options.allowUserSuppliedJavascript,minimumIntervalBetweenTriggerActionsInSeconds:this.options.minimumIntervalBetweenTriggerActionsInSeconds,doNotLoadFontAwesome:!0};e.ZP.initialize(n,r)||Y(`Cannot initialize client. Please make sure your "apiKey" and "baseUrl" is valid.`),this.options.automaticallyShowInAppMessages&&function(){if(!e.ZP.X())return;o();let n=t.Z.m();if(n.Pi()==null){let e=B((e=>z(e)));n.$i(e)}n.Pi()}()}},{key:`openSession`,value:function(){(function(){if(!e.ZP.X())return;let t=e.ZP.cr();if(!t)return;t.openSession();let n=V.Z.Yt.Qt,r=new V.Z(n,_.Z);r.jr(n.ss.hr,((e,i)=>{let a=i.lastClick,o=i.trackingString;_.Z.info(`Firing push click trigger from ${o} push click at ${a}`);let s=t.kr(a,o),c=function(){x.n.rr().fe(b.Z.vr,[o],s)};t.$r(c,c),r.re(n.ss.hr,e)})),r.Zt(n.ss.wr,(function(e){t.yr(e)}))})()}},{key:`logEvent`,value:function(e){var t=Oe.getEventDataPayload(e,{name:this.options.productName,version:this.options.productVersion,locale:this.options?.locale});return H.logCustomEvent(e.type,t)}},{key:`getUserId`,value:function(){return this.getBrazeUser().getUserId()}},{key:`setCustomUserAttribute`,value:function(e,t){var n=this.getBrazeUser();return Fe.clientUserAttributeValue(t)||Y(`Invalid custom user attribute value: '${t}' for key: '${e}'`),n.setCustomUserAttribute(e,t)}},{key:`bulkSetCustomUserAttributes`,value:function(e){var t=this;Object.keys(e).length||Y(`Cannot bulk set emptry object for custom user attributes`),Object.keys(e).forEach((function(n){var r=e[n];t.setCustomUserAttribute(n,r)}))}},{key:`requestPushPermission`,value:function(e,t){ee.requestPushPermission(e,t)}},{key:`unregisterPush`,value:function(e,t){U.unregisterPush(e,t)}},{key:`setAlias`,value:function(e,t){this.getBrazeUser().addAlias(t,e)}},{key:`setUser`,value:function(e){te.changeUser(e)}},{key:`setUserFirstName`,value:function(e){this.getBrazeUser().setFirstName(e)}},{key:`setUserLastName`,value:function(e){this.getBrazeUser().setLastName(e)}},{key:`setUserEmail`,value:function(e){this.getBrazeUser().setEmail(e)}},{key:`setUserCountry`,value:function(e){this.getBrazeUser().setCountry(e)}},{key:`setUserPhone`,value:function(e){this.getBrazeUser().setPhoneNumber(e)}},{key:`setUserGender`,value:function(e){this.getBrazeUser().setGender(e)}},{key:`setUserEmailNotificationSubscriptionType`,value:function(e){return this.getBrazeUser().setEmailNotificationSubscriptionType(e)}},{key:`sendData`,value:function(e){e&&typeof e==`function`?ne.requestImmediateDataFlush(e):ne.requestImmediateDataFlush()}},{key:`hasUser`,value:function(){try{if(this.getBrazeUser())return!0}catch{return!1}finally{return!1}}},{key:`getBrazeUser`,value:function(){var e=E.P();return e||Y(`No valid user found!`),e}},{key:`getContentCardsV2`,value:function(){return function(){if(e.ZP.X())return q.rr().Us(!1)}()}},{key:`showContentCards`,value:function(e,t){return be(e,t)}},{key:`getContentCards`,value:function(){return e=this,t=void 0,n=void 0,r=Le().mark((function e(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt(`return`,new Promise((function(e,t){be(null,(function(n){return n?e(n):t(Error(`No content cards found.`)),n}))})));case 1:case`end`:return e.stop()}}),e)})),new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}},{key:`hideCards`,value:function(t){(function(t){if(!e.ZP.X())return;let n=document.querySelectorAll(`.ab-feed`);for(let e=0;e<n.length;e++)(t==null||t!=null&&n[e].parentNode===t)&&(0,_e.tQ)(n[e])})(t)}},{key:`logContentCardDismissal`,value:function(e){e||Y(`No "card" provided in "logContentCardDismissal"`),xe.K(e)}},{key:`logContentCardClick`,value:function(e){e||Y(`No "card" provided in "logContentCardClick"`),W.d(e,!0)}},{key:`logContentCardImpressions`,value:function(e){var t;e&&e.length||Y(`No "cards" provided in "logContentCardImpressions"`),t=e,(0,oe.p)(t,!0)}},{key:`requestContentCardRefresh`,value:function(e,t){return se(e,t)}},{key:`subscribeToContentCardUpdate`,value:function(e){return e||Y(`No "subscriber" provided in "subscribeToContentCardUpdate"`),ge(e)}},{key:`subscribeToInAppMessage`,value:function(e){return e||Y(`No "callback" provided in "subscribeToInAppMessage".`),B(e)}},{key:`showInAppMessage`,value:function(e,t,n){return e||Y(`Invalid "inAppMessage" provided in "showInAppMessage".`),z(e,t,n)}},{key:`logInAppMessageClick`,value:function(e){return e||Y(`Invalid "inAppMessage" provided in "logInAppMessageClick".`),S(e)}},{key:`logInAppMessageButtonClick`,value:function(e,t){return e&&t||Y(`Invalid params supplied in "logInAppMessageButtonClick".`),N(e,t)}},{key:`logInAppMessageHtmlClick`,value:function(e,t,n){return e||Y(`Invalid "inAppMessage" provided in "logInAppMessageHtmlClick".`),T(e,t,n)}},{key:`logInAppMessageImpression`,value:function(e){return e||Y(`Invalid "inAppMessage" provided in "logInAppMessageImpression".`),y(e)}}],a=[{key:`getInstance`,value:function(e){return this._instance||=new this(e)}}],i&&Re(r.prototype,i),a&&Re(r,a),Object.defineProperty(r,`prototype`,{writable:!1}),n}();function Ve(e){return Ve=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ve(e)}function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ue(r.key),r)}}function Ue(e){var t=function(e,t){if(Ve(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ve(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ve(t)==`symbol`?t:t+``}var We=function(){function e(t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.options=t,this.apiClient=t.apiClient}var t,n;return t=e,(n=[{key:`safelyExecute`,value:function(e){try{return e()}catch(e){e instanceof Error&&ke(e.message),typeof e==`string`&&ke(e)}}}])&&He(t.prototype,n),Object.defineProperty(t,`prototype`,{writable:!1}),e}();function Ge(e){return Ge=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ge(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,qe(r.key),r)}}function qe(e){var t=function(e,t){if(Ge(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ge(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ge(t)==`symbol`?t:t+``}function Je(e,t){return Je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Je(e,t)}function Ye(e){var t=Ze();return function(){var n,r=Qe(e);if(t){var i=Qe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){if(t&&(Ge(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function Ze(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Ze=function(){return!!e})()}function Qe(e){return Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qe(e)}var $e=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Je(e,t)})(i,e);var t,n,r=Ye(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,(n=[{key:`getAll`,value:function(){return this.apiClient.getContentCardsV2()}},{key:`getContentCards`,value:function(){return this.apiClient.getContentCards()}},{key:`show`,value:function(e,t){return this.apiClient.showContentCards(e,t)}},{key:`hide`,value:function(e){return this.apiClient.hideCards(e)}},{key:`logDismissal`,value:function(e){return this.apiClient.logContentCardDismissal(e)}},{key:`logClick`,value:function(e){return this.apiClient.logContentCardClick(e)}},{key:`logImpressions`,value:function(e){return this.apiClient.logContentCardImpressions(e)}},{key:`requestRefresh`,value:function(e,t){return this.apiClient.requestContentCardRefresh(e,t)}},{key:`subscribe`,value:function(e){return this.apiClient.subscribeToContentCardUpdate(e)}}])&&Ke(t.prototype,n),Object.defineProperty(t,`prototype`,{writable:!1}),i}(We);function et(e){return et=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},et(e)}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,nt(r.key),r)}}function nt(e){var t=function(e,t){if(et(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(et(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return et(t)==`symbol`?t:t+``}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}function it(e){var t=ot();return function(){var n,r=st(e);if(t){var i=st(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return at(this,n)}}function at(e,t){if(t&&(et(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(ot=function(){return!!e})()}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},st(e)}var ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&rt(e,t)})(i,e);var t,n,r=it(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,(n=[{key:`show`,value:function(e,t,n){return this.apiClient.showInAppMessage(e,t,n)}},{key:`logMessageClick`,value:function(e){return this.apiClient.logInAppMessageClick(e)}},{key:`logButtonClick`,value:function(e,t){return this.apiClient.logInAppMessageButtonClick(e,t)}},{key:`logHtmlMessageClick`,value:function(e,t,n){return this.apiClient.logInAppMessageHtmlClick(e,t,n)}},{key:`logImpression`,value:function(e){return this.apiClient.logInAppMessageImpression(e)}},{key:`subscribe`,value:function(e){return this.apiClient.subscribeToInAppMessage(e)}}])&&tt(t.prototype,n),Object.defineProperty(t,`prototype`,{writable:!1}),i}(We),Ct={all:[`streamable`,`clickview`],cv:[`clickview`],sl:[`streamable`],none:[]};(function(e){e.AU=`au`,e.NZ=`nz`,e.UK=`uk`,e.US=`us`})(ct||={}),function(e){e.PageView=`page_view`}(lt||={}),function(e){e.ButtonClick=`marketing_button_click`,e.LinkClick=`marketing_link_click`}(ut||={}),function(e){e.FreeTrialSignup=`marketing_free_trial_signup`,e.DemoSignup=`marketing_demo_signup`,e.PostFreeTrialSubmission=`marketing_post_free_trial_submission`,e.FormSubmission=`marketing_form_submission`,e.ContactFormSubmission=`marketing_contact_us_submission`,e.CallBooked=`marketing_call_booked`,e.NewsletterSignup=`cv_marketing_newsletter_sign_up`,e.MarketingTradeshowSubmission=`marketing_tradeshow_submission`,e.LandingPageFormSubmission=`cv_marketing_lp_form_submission`,e.MarketingReferralFormSubmission=`cv_marketing_mdc_referral`}(dt||={}),function(e){e.ProductTrailRequested=`product_trial_requested`,e.FormSubmission=`product_form_submission`,e.TrialUpgradeRequested=`product_trial_upgrade_requested`,e.OlympicsOfferSubmission=`product_olympics_offer_submission`,e.BdmTrialRequested=`cv_product_bdm_trial_requested`}(ft||={}),function(e){e.ContactUsFormSubmit=`streamable_contact_us_submission`,e.LivestreamBookingFormSubmit=`streamable_livestream_booking_submission`}(pt||={}),function(e){e.TrialRequested=`sl_marketing_trial_requested`,e.HalloweenFormSubmission=`sl_marketing_halloween_submission`,e.NewsletterSignup=`sl_marketing_newsletter_sign_up`,e.RequestPricing=`sl_marketing_pricing_requested`,e.LandingPageFormSubmission=`sl_marketing_lp_form_submission`,e.ContactUsFormSubmit=`sl_marketing_contact_us_submission`}(mt||={}),function(e){e.ContactUsFormSubmit=`ch_marketing_contact_us_submission`}(ht||={}),function(e){e.ExploreTopics=`product_explore_topics`,e.Stream=`product_stream`,e.Search=`product_search`,e.SearchClickthrough=`product_search_clickthrough`,e.ClickBookACall=`product_book_a_call_clicked`,e.Share=`product_share`,e.DownloadResource=`product_download_resource`,e.Invite=`product_invite_send`,e.PlayerDeviceCta=`product_player_devices_cta`,e.SettingsIntegrations=`product_settings_integrations`}(gt||={}),function(e){e.AddToSubscriptionGroups=`add_to_subscription_groups`}(_t||={}),function(e){e.FirstName=`first_name`,e.LastName=`last_name`,e.Email=`email`,e.Phone=`phone_number`}(vt||={}),function(e){e.CrmId=`cvc_id`,e.JobTitle=`job_title`,e.AccountOwner=`account_owner`,e.Department=`department`,e.AccountName=`account_name`,e.AccountType=`account_type`,e.OrgType=`organisation_type`,e.OrgSubType=`organisation_sub_type`,e.SyncToCrm=`sync_to_crm`,e.MasterId=`master_id`,e.AccountAddress=`account_address`,e.Source=`source`}(yt||={}),function(e){e.AccountCity=`account_city`,e.AccountState=`account_state`,e.AccountPostCode=`account_post_code`,e.AccountCountry=`account_country`,e.HowCanWeHelp=`how_can_we_help`,e.ReasonForInterest=`reason_for_interest`,e.Conversion=`conversion`,e.ContactUsComment=`contact_us_comment`,e.ReferredBy=`referred_by`,e.ReferredBySchool=`referred_by_school`,e.ReferralSubmittedBy=`referral_submitted_by`}(bt||={}),function(e){e.Marketing=`marketing_id`,e.Product=`master_id`,e.Email=`email`}(xt||={});function wt(e){return wt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},wt(e)}function Tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Et(r.key),r)}}function Et(e){var t=function(e,t){if(wt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(wt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return wt(t)==`symbol`?t:t+``}function Dt(e,t){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dt(e,t)}function Ot(e){var t=At();return function(){var n,r=jt(e);if(t){var i=jt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kt(this,n)}}function kt(e,t){if(t&&(wt(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(e)}function At(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(At=function(){return!!e})()}function jt(e){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jt(e)}var Mt=function(e){(function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Dt(e,t)})(i,e);var t,n,r=Ot(i);function i(e){return function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}(this,i),r.call(this,e)}return t=i,n=[{key:`logForm`,value:function(e){this.log(e),function(e){switch(e?.internalOptions?.subscriptionGroups){case`all`:case`cv`:case`sl`:return!0;default:return!1}}(e)&&this.logInternal({eventType:_t.AddToSubscriptionGroups,additionalData:{products:Ct[e.internalOptions?.subscriptionGroups]}})}},{key:`logAnalytics`,value:function(e){this.log(e,!1)}},{key:`logInternal`,value:function(e){var t=e.eventType,n=e.additionalData,r={type:t,data:{}};Fe.additionalData(n)&&(r.data=Object.assign({},n)),this.apiClient.logEvent(r),this.apiClient.sendData()}},{key:`log`,value:function(e){var t=e.eventType,n=e.actionType,r=e.additionalData,i=e.callback,a=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],o=this.options.getPayload();Fe.additionalData(r)&&(o=Object.assign(Object.assign({},o),r));var s={type:t,data:o};n&&(s.actionType=n);var c=this.apiClient.logEvent(s);a?this.apiClient.sendData(i):typeof i!=`function`||i(c)}}],n&&Tt(t.prototype,n),Object.defineProperty(t,`prototype`,{writable:!1}),i}(We),Nt=i(8322),Pt=i.n(Nt);function Ft(e){return Ft=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ft(e)}function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if(typeof e==`string`)return Lt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lt(e,t):void 0}}(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
29
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Lt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Rt={removeEmptyKeys:function(e){var t=this;if(Array.isArray(e))return e;var n=Object.assign({},e);return Object.entries(n).filter((function(e){var t=It(e,2)[1];return!(t==null||typeof t==`string`&&!t.length||Ft(t)===`object`&&Object.keys(t).length===0)})).reduce((function(e,n){var r,i,a,o=It(n,2),s=o[0],c=o[1];return Object.assign(Object.assign({},e),(r={},i=s,a=c===Object(c)?t.removeEmptyKeys(c):c,(i=function(e){var t=function(e,t){if(Ft(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ft(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ft(t)==`symbol`?t:t+``}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r))}),{})}};function zt(e){return zt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zt(e)}function Bt(e,t,n){return(t=function(e){var t=function(e,t){if(zt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(zt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return zt(t)==`symbol`?t:t+``}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vt={getDefaultUserAttributes:function(e){var t;return Rt.removeEmptyKeys((Bt(t={},vt.Email,e.email),Bt(t,vt.FirstName,e?.firstName),Bt(t,vt.LastName,e?.lastName),Bt(t,vt.Phone,e?.phone),t))},getCustomUserAttributesWithoutSource:function(e){var t,n=Rt.removeEmptyKeys({province:e?.custom?.accountAddress?.province,country_code:e?.custom?.accountAddress?.countryCode}),r=(Bt(t={},yt.AccountName,e?.custom?.accountName),Bt(t,yt.AccountType,e?.custom?.accountType),Bt(t,yt.CrmId,e?.custom?.crmId),Bt(t,yt.Department,e?.custom?.department),Bt(t,yt.JobTitle,e?.custom?.jobTitle),Bt(t,yt.MasterId,e?.custom?.masterId),Bt(t,yt.OrgSubType,e?.custom?.orgSubType),Bt(t,yt.OrgType,e?.custom?.orgType),Bt(t,yt.SyncToCrm,e?.custom?.syncToCrm),t);return Fe.accountAddress(n)&&(r[yt.AccountAddress]=n),Rt.removeEmptyKeys(r)},getCustomUserAttributes:function(e){var t=Vt.getCustomUserAttributesWithoutSource(e);return Rt.removeEmptyKeys(Object.assign(Object.assign({},t),Bt({},yt.Source,function(e){if(e.custom?.source&&e.custom.source.length){var t=Object.keys(Vt.getDefaultUserAttributes(e)),n=Object.keys(Vt.getCustomUserAttributesWithoutSource(e));return{$add:[{name:e.custom.source,attributes:[].concat(t,n)}]}}Y(`No source provided for braze user.`)}(e))))},getEventUserAttributes:function(e){var t;return Rt.removeEmptyKeys((Bt(t={},bt.AccountCity,e?.event?.accountCity),Bt(t,bt.AccountCountry,e?.event?.accountCity),Bt(t,bt.AccountPostCode,e?.event?.accountPostCode),Bt(t,bt.AccountState,e?.event?.accountState),Bt(t,bt.ContactUsComment,e?.event?.contactUsComment),Bt(t,bt.Conversion,e?.event?.conversion),Bt(t,bt.HowCanWeHelp,e?.event?.howCanWeHelp),Bt(t,bt.ReasonForInterest,e?.event?.reasonForInterest),Bt(t,bt.ReferredBy,e?.event?.referredBy),Bt(t,bt.ReferredBySchool,e?.event?.referredBySchool),Bt(t,bt.ReferralSubmittedBy,e?.event?.referralSubmittedBy),t))},getExtraUserAttributes:function(e){return zt(e.extra)===`object`?Rt.removeEmptyKeys(e.extra):{}},getPayload:function(e){if(!e)return{};var t=Vt.getDefaultUserAttributes(e),n=Vt.getCustomUserAttributes(e),r=Vt.getEventUserAttributes(e),i=Vt.getExtraUserAttributes(e),a=Fe.additionalData(i),o=Object.assign(Object.assign(Object.assign({},t),n),r);return a?Object.assign(Object.assign({},o),i):o},getEmailHash:function(e){var t=e.trim().toLowerCase();return Pt().hash(t)}};function Ht(e){return Ht=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ht(e)}function Ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Wt(r.key),r)}}function Wt(e){var t=function(e,t){if(Ht(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ht(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ht(t)==`symbol`?t:t+``}var Gt=function(){function e(t){var n=t.apiOptions,r=t.shouldInitialize,i=r===void 0||r,a=t.allowAnonymous,o=a!==void 0&&a,s=t.subscriptions;(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.initialized=!1,this.apiOptions=n,this.subscriptions=s,this.allowAnonymous=o,i&&this.initialize()}var t,n;return t=e,(n=[{key:`initialize`,value:function(){var e=this;this.isInitialized()?function(e){var t=[...arguments].slice(1);console.warn(e,t)}(`BrazeClient has already been initialized!`):(this.apiClient=Be.getInstance(this.apiOptions),this.cardsModule=new $e({apiClient:this.apiClient}),this.bamModule=new St({apiClient:this.apiClient}),this.eventModule=new Mt({apiClient:this.apiClient,getPayload:function(){return Vt.getPayload(e.user)}}),this.initialized=!0)}},{key:`isInitialized`,value:function(){return this.initialized}},{key:`getUser`,value:function(){return this.isInitialized()?this.validateUser()?this.user:null:(ke(`BrazeClient has not been initialized.`),null)}},{key:`card`,get:function(){return this.isInitialized()?this.cardsModule:(ke(`BrazeClient has not been initialized.`),null)}},{key:`bam`,get:function(){return this.isInitialized()?this.bamModule:(ke(`BrazeClient has not been initialized.`),null)}},{key:`event`,get:function(){return this.isInitialized()?this.allowAnonymous||this.validateUser()?this.eventModule:(ke("Anon events are disabled! Please invoke `setUser` before logging events!"),null):(ke(`BrazeClient has not been initialized.`),null)}},{key:`setUser`,value:function(e){this.isInitialized()?(this.user=e,this.startSession(),this.logUserAttributes()):ke("Trying to `setUser` but the client has not been initialized")}},{key:`setUserInit`,value:function(e){this.isInitialized()||this.initialize(),this.setUser(e)}},{key:`allowAnonymousSessions`,value:function(){this.allowAnonymous=!0}},{key:`api`,value:function(){return this.isInitialized()?this.apiClient:null}},{key:`setEmailNotificationSubscriptionType`,value:function(e){return this.isInitialized()&&this.validateUser()?this.apiClient.setUserEmailNotificationSubscriptionType(e):null}},{key:`validateUser`,value:function(){return!!this.user||(ke(`No user has been set!`),!1)}},{key:`startSession`,value:function(){this.allowAnonymous||this.validateUser()?(this.enableSubscriptions(),this.user&&this.apiClient.setUser(Vt.getEmailHash(this.user.email)),this.apiClient.openSession()):ke(`No user provided and cannot start anonymous sessions!`)}},{key:`enableSubscriptions`,value:function(){var e,t;(e=this.subscriptions)!=null&&e.subscribeToInAppMessage&&typeof this.subscriptions.subscribeToInAppMessage==`function`&&this.apiClient.subscribeToInAppMessage(this.subscriptions.subscribeToInAppMessage),(t=this.subscriptions)!=null&&t.subscribeToContentCards&&typeof this.subscriptions.subscribeToContentCards==`function`&&this.apiClient.subscribeToContentCardUpdate(this.subscriptions.subscribeToContentCards)}},{key:`logUserAttributes`,value:function(){if(this.validateUser()){this.apiClient.setUserEmail(this.user.email),this.user.firstName&&this.apiClient.setUserFirstName(this.user.firstName),this.user.lastName&&this.apiClient.setUserLastName(this.user.lastName),this.user.phone&&this.apiClient.setUserPhone(this.user.phone),this.user.country&&this.apiClient.setUserCountry(this.user.country);var e=Vt.getCustomUserAttributes(this.user);this.apiClient.bulkSetCustomUserAttributes(e)}}}])&&Ut(t.prototype,n),Object.defineProperty(t,`prototype`,{writable:!1}),e}();function Kt(e){return Be.getInstance(e)}})(),a})()))}))();function Ax(e){(0,Z.useEffect)(()=>{let t=jx(e?.additionalData);t?.attributionData&&tf.setAttributionData(t.attributionData),t?.utms&&mf.setUtmParameters(t.utms)},[])}function jx(e){if(!e?.attribution?.length)return null;try{let{r:t,utms:n}=JSON.parse(e.attribution);return{attributionData:tf.decodeRValue(t),utms:n}}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}var Mx=function(e){return e.Lite=`lite`,e.Auth=`auth`,e}({});function Nx(e){return{productName:Mx.Auth,prospectStatus:t=>`${e}/v1/prospects/${t}/trial-status`,createTrial:`/ajax/trials/new`,searchProspect:`${e}/v1/search/prospects`,createProspect:`/ajax/trials/prospects`,prospectLookups:t=>`${e}/v1/prospects/${t}/lookups`,joinRequest:`/ajax/trials/join-request`}}var Px=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Fx=`UINT8ARRAY not supported by this environment`;function Ix(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function Lx(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=Px.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return Ix(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(Fx)}return function(e,t,r){return Ix(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function Rx(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?Px.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(Fx)}return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function zx(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var Bx=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=zx(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=Rx(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=Lx(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=zx(t);return Rx(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function Vx(e,t){return e<<t|e>>>32-t}function Hx(e,t,n){return e^t^n}function Ux(e,t,n){return e&t^e&n^t&n}function Wx(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function Gx(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function Kx(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function qx(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:Vx(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?Gx(Vx(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?Gx(Vx(n,5),Hx(r,i,a),o,1859775393,l[c]):c<60?Gx(Vx(n,5),Ux(r,i,a),o,2400959708,l[c]):Gx(Vx(n,5),Hx(r,i,a),o,3395469782,l[c]),o=a,a=i,i=Vx(r,30),r=n,n=s;var u;return t[0]=Wx(n,t[0]),t[1]=Wx(r,t[1]),t[2]=Wx(i,t[2]),t[3]=Wx(a,t[3]),t[4]=Wx(o,t[4]),t}function Jx(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)r=qx(e.slice(i,i+16),r);return r}var Yx=class extends Bx{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=Lx(this.t,this.i,this.H),this.g=qx,this.I=function(e){return e.slice()},this.L=Kx,this.Y=Jx,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return Lx(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},Xx=function(e){return e.CvApSoutheast1=`cv-ap-southeast-1`,e.CvApSoutheast2=`cv-ap-southeast-2`,e.CvEuWest1=`cv-eu-west-1`,e.CvNaWest1=`cv-na-west-1`,e}({}),Zx={CvApSoutheast1:{systemName:Xx.CvApSoutheast1},CvApSoutheast2:{systemName:Xx.CvApSoutheast2},CvEuWest1:{systemName:Xx.CvEuWest1},CvNaWest1:{systemName:Xx.CvNaWest1}},Qx=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({}),$x=3,eS=5e3,tS=6,nS={},rS=class{constructor(e){this.key=e.toString()}getCount(){return nS[this.key]||0}increment(){nS[this.key]=this.getCount()+1}reset(){delete nS[this.key]}shouldBreak(){return this.getCount()>=tS}},iS=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,eS*2**this.attempt)),this.attempt++}};async function aS(e,t){let n=new iS,r=new rS(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=$x;e++)try{return await i()}catch(t){if(e>=$x||r.shouldBreak())throw t;r.increment(),await n.wait()}}var oS,sS=new Uint8Array(16);function cS(){if(!oS&&(oS=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<`u`&&typeof msCrypto.getRandomValues==`function`&&msCrypto.getRandomValues.bind(msCrypto),!oS))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return oS(sS)}var lS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function uS(e){return typeof e==`string`&&lS.test(e)}for(var dS=[],fS=0;fS<256;++fS)dS.push((fS+256).toString(16).substr(1));function pS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(dS[e[t+0]]+dS[e[t+1]]+dS[e[t+2]]+dS[e[t+3]]+`-`+dS[e[t+4]]+dS[e[t+5]]+`-`+dS[e[t+6]]+dS[e[t+7]]+`-`+dS[e[t+8]]+dS[e[t+9]]+`-`+dS[e[t+10]]+dS[e[t+11]]+dS[e[t+12]]+dS[e[t+13]]+dS[e[t+14]]+dS[e[t+15]]).toLowerCase();if(!uS(n))throw TypeError(`Stringified UUID is invalid`);return n}function mS(e,t,n){e||={};var r=e.random||(e.rng||cS)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return pS(r)}function hS(e){if(!uS(e))throw TypeError(`Invalid UUID`);return parseInt(e.substr(14,1),16)}var gS=`cv:session:`,_S=`cv:window:v2:`,vS=1e3*60*30,yS=4;function bS(e){if(e===Bd.LocalStorage)return Gd.isAvailable()?Gd:qd;if(e===Bd.SessionStorage)return Kd.isAvailable()?Kd:qd}function xS(e){return new Date().getTime()+e}function SS(){return mS()}function CS(e,t){return e+(t||`0`)}function wS(e){return new Date().getTime()>e}function TS(e){return!(typeof e!=`object`||typeof e?.id!=`string`||!uS(e.id)||hS(e.id)!==yS||typeof e?.ttl!=`number`||e?.ttl<=0||isNaN(e?.ttl))}function ES(e,t,n){let r=bS(n),i=CS(e,t),a=r.get(i);return!TS(a)||wS(a?.ttl)?null:a}function DS(e,t,n,r){let i=bS(n),a=CS(e,t),o={id:SS(),ttl:xS(r)};return i.set(a,o),o}function OS(e,t,n,r,i){let a=bS(n),o=CS(e,t);a.set(o,{id:r.id,ttl:xS(i)})}function kS(e,t,n){let r=bS(n);if(!r?.isAvailable())return;let i=CS(e,t);r.remove(i)}var AS=null,jS={getClientSessionData(e){let t=ES(gS,e,Bd.LocalStorage);t?OS(gS,e,Bd.LocalStorage,t,vS):t=DS(gS,e,Bd.LocalStorage,vS);let n=ES(_S,e,Bd.SessionStorage);return n?AS===null&&OS(_S,e,Bd.SessionStorage,n,vS):n=DS(_S,e,Bd.SessionStorage,AS??vS),{id:t.id,windowId:n.id}},resetClientSession(e){kS(gS,e,Bd.LocalStorage),kS(_S,e,Bd.SessionStorage)},lockWindowSession(e,t){AS=t;let n=ES(_S,e,Bd.SessionStorage);n&&OS(_S,e,Bd.SessionStorage,n,t)},unlockWindowSession(e){AS=null;let t=ES(_S,e,Bd.SessionStorage);t&&OS(_S,e,Bd.SessionStorage,t,vS)}},MS={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},NS={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n}},PS={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},FS=`Unknown`;function IS(e,t,n){let[r]=t.exec(n)||[];return r||=FS,{name:e,version:r}}function LS(e,t,n){if(!t)return{name:e,version:FS};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():FS}}function RS(e,t){let n={name:e,version:null};return PS.win2000.test(t)&&(n.version=`2000`),PS.winXP.test(t)&&(n.version=`XP`),PS.winVista.test(t)&&(n.version=`Vista`),PS.win7.test(t)&&(n.version=`7`),PS.win8.test(t)&&(n.version=`8`),PS.win81.test(t)&&(n.version=`8.1`),PS.win10.test(t)&&(n.version=`10`),n.version||=FS,n}var zS={getDeviceType(){let e=window.navigator.userAgent;return PS.mobileDevice.test(e)?PS.iphone.test(e)?`iPhone`:PS.ipad.test(e)?`iPad`:PS.android.test(e)?`Android`:PS.blackberry.test(e)?`Blackberry`:PS.windowsPhone.test(e)?`Windows Phone`:FS:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return PS.android.test(e)?LS(`Android`,PS.androidVersion,e):PS.iphone.test(e)||PS.ipad.test(e)?LS(`iOS`,PS.iosVersion,e):PS.linux.test(e)?LS(`Linux`,null,e):PS.unix.test(e)?LS(`Unix`,null,e):PS.mac.test(e)?LS(`Macintosh`,PS.osxVersion,e):PS.windows.test(e)?RS(`Windows`,e):PS.blackberry.test(e)?LS(`BlackBerry`,PS.blackberryVersion,e):PS.windowsPhone.test(e)?LS(`Windows Phone`,PS.windowsPhoneVersion,e):{name:FS,version:FS}},getBrowser(){let e=window.navigator.userAgent;return PS.chrome.test(e)?IS(`Chrome`,PS.generalVersion,e):PS.firefox.test(e)?IS(`Firefox`,PS.generalVersion,e):PS.safari.test(e)?IS(`Safari`,PS.generalVersion,e):PS.ie.test(e)?IS(`Internet Explorer`,PS.ieVersion,e):PS.edge.test(e)?IS(`Edge`,PS.edgeVersion,e):PS.opera.test(e)?IS(`Opera`,PS.operaVersion,e):{name:FS,version:FS}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},BS={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"@types/uuid":`8.3.4`,"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`8.3.2`}},VS=`zXJL9nOHxzDlMUDjiP41`,HS=`unknown`,US=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=mf.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=tf.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!MS.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return MS.isFunction(this.options.shouldLog)?this.options.shouldLog(e):!0}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=NS.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=NS.safeUrlConcat(i,`/bulk`));try{let e=await aS(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new Yx(`SHA-1`,`TEXT`,{hmacKey:{value:VS,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case Xx.CvEuWest1:return e.cvEuWest1;case Xx.CvApSoutheast2:return e.cvApSoutheast2;case Xx.CvNaWest1:return e.cvNaWest1;case Xx.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),MS.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.getSessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return MS.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||HS,userGroup:(t.userGroup??Qx.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...jS.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),jS.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:zS.getBrowser(),os:zS.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:BS.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(Zx).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):HS}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}},WS=function(e){return e.Stream=`cv_product_stream`,e.WebPlayerStream=`cv_product_webplayer_stream`,e.StreamProgress=`cv_product_stream_progress`,e.PreviewStreamProgress=`cv_product_preview_stream_progress`,e.StreamBuffering=`cv_product_stream_buffering`,e.Login=`cv_product_login`,e.LoginSsoRedirect=`cv_product_login_sso_redirect`,e.LoginFailed=`cv_product_login_failed`,e.Search=`cv_product_search`,e.InstantSearch=`cv_product_instant_search`,e.SearchEmptyResult=`cv_product_search_empty_result`,e.Filter=`cv_product_search_filter`,e.SearchLanding=`cv_product_search_landing`,e.Share=`cv_product_share`,e.Unshare=`cv_product_unshare`,e.WorkspaceAdd=`cv_product_tv_add`,e.Rename=`cv_product_rename`,e.Move=`cv_product_move`,e.Sort=`cv_product_sort`,e.Create=`cv_product_create`,e.Delete=`cv_product_delete`,e.Associate=`cv_product_associate`,e.Dissociate=`cv_product_dissociate`,e.Edit=`cv_product_edit`,e.Approve=`cv_product_approve`,e.Reject=`cv_product_reject`,e.Disable=`cv_product_disable`,e.Upload=`cv_product_upload`,e.Download=`cv_product_download`,e.Navigate=`cv_product_navigate`,e.Click=`cv_product_click`,e.Suggest=`cv_product_suggest`,e.EditAssoc=`cv_product_edit_assoc`,e.Play=`cv_product_play`,e.Favourite=`cv_product_favourite`,e.Follow=`cv_product_follow`,e.Prefer=`cv_product_prefer`,e.Print=`cv_product_print`,e.Copy=`cv_product_copy`,e.Activate=`cv_product_activate`,e.VerifyEmail=`cv_product_verify_email`,e.ChangePassword=`cv_product_change_password`,e.ManageGroup=`cv_product_manage_group`,e.Export=`cv_product_export`,e.SendEmail=`cv_product_send_email`,e.Publish=`cv_product_publish`,e.Submit=`cv_product_submit`,e.Complete=`cv_product_complete`,e.Archive=`cv_product_archive`,e.Promote=`cv_product_promote`,e.Demote=`cv_product_demote`,e.BulkAction=`cv_product_bulk_action`,e.Remove=`cv_product_remove`,e.Dismiss=`cv_product_dismiss`,e.Open=`cv_product_open`,e.Hide=`cv_product_hide`,e.PageView=`cv_product_page_view`,e.Select=`cv_product_select`,e.SwitchCustomer=`cv_product_switch_customer`,e.Focus=`cv_product_focus`,e.Blur=`cv_product_blur`,e.Hover=`cv_product_hover`,e.Unhover=`cv_product_unhover`,e.SetAccess=`cv_product_set_access`,e.AddToLocalCache=`cv_product_add_to_lc`,e.ResolveWarning=`cv_product_resolve_warning`,e.DismissWarning=`cv_product_dismiss_warning`,e}({}),GS=function(e){return e.Folder=`folder`,e.Video=`video`,e.Rating=`rating`,e.Series=`series`,e.Library=`library`,e.Resource=`resource`,e.Tag=`tag`,e.Subtitle=`subtitle`,e.Chapter=`chapter`,e.Resolution=`resolution`,e.PlaybackSpeed=`playback_speed`,e.Device=`device`,e.Restriction=`restriction`,e.Interactive=`interactive`,e.Interaction=`interaction`,e.PDF=`pdf`,e.CustomerSetting=`customer_setting`,e.UserSetting=`user_setting`,e.LibraryRequest=`staff_request`,e.Logo=`logo`,e.Pagination=`pagination`,e.Thumbnail=`thumbnail`,e.Banner=`banner`,e.Link=`link`,e.Playlist=`playlist`,e.Playlists=`playlists`,e.Person=`person`,e.Company=`company`,e.Classroom=`classroom`,e.ClassroomGroup=`classroom_group`,e.Classification=`classification`,e.ShareLink=`share_link`,e.DirectShare=`direct_share`,e.Upload=`upload`,e.SearchResults=`search_results`,e.SearchSuggestion=`search_suggestion`,e.Audience=`audience`,e.User=`user`,e.Clip=`clip`,e.UserChannel=`user_channel`,e.Widget=`widget`,e.Url=`url`,e.SocialShare=`social_share`,e.Presentation=`presentation`,e.BatchJob=`batch_job`,e.DeepLink=`deep_link`,e.Feedback=`feedback`,e.AppLink=`app_link`,e.SignUp=`sign_up`,e.FileGeneratorJob=`file_generator_job`,e.ExportLibraries=`export_libraries`,e.Product=`product`,e.Customer=`customer`,e.SpecialEvent=`special_event`,e.Region=`region`,e.ProductTip=`product_tip`,e.Livestream=`livestream`,e.DevicesCta=`devices_cta`,e.Integration=`integration`,e.Faq=`faq`,e.MixedMedia=`mixed_media`,e.TableOfContents=`table_of_contents`,e.Author=`author`,e.Glance=`glance`,e.Filter=`filter`,e.NotificationSetting=`notification_setting`,e.Transcript=`transcript`,e.CurriculumCode=`curriculum_code`,e.Assign=`assign`,e.PartnerProfile=`partner_profile`,e}({}),KS=function(e){return e.TopNav=`top_nav`,e.LeftNav=`left_nav`,e.Footer=`footer`,e.Popup=`popup`,e.Banner=`banner`,e.VideoList=`video_list`,e.VideoListItem=`video_list_item`,e.VideoListHeader=`video_header`,e.VideoThumbnail=`video_thumbnail`,e.ExpandableVideoThumbnail=`expandable_video_thumbnail`,e.VideoItemPreview=`video_item_preview`,e.InteractiveItemPreview=`interactive_item_preview`,e.ClipItemPreview=`clip_item_preview`,e.VideoDetails=`video_details`,e.InteractiveDetails=`interactive_details`,e.ClipDetails=`clip_details`,e.VideoDetailsHeader=`video_details_header`,e.EditVideoDetails=`edit_video_details`,e.EditInteractiveVideoDetails=`edit_interactive_video_details`,e.EditClipDetails=`edit_clip_details`,e.EditVideoChapters=`edit_video_chapters`,e.EditVideoResources=`edit_video_resources`,e.PreviewVideoResources=`preview_video_resources`,e.VideoUpload=`video_upload`,e.VideoRequest=`video_request`,e.Pagination=`pagination`,e.LibraryHeader=`library_header`,e.LibraryTiles=`library_tiles`,e.LibraryRequestDetails=`staff_request_details`,e.Libraries=`libraries`,e.SubFolderList=`sub_folder_list`,e.AwaitingReviewVideoListHeader=`awaiting_review_video_list_header`,e.AwaitingReviewVideoItem=`awaiting_review_video_item`,e.PastReleasesHeader=`past_releases_header`,e.MigrationWarnings=`migration_warnings`,e.PlaylistListHeader=`playlist_list_header`,e.PlaylistListItem=`playlist_list_item`,e.SeriesListItem=`series_list_item`,e.SeriesWithVideos=`series_with_videos`,e.PlaylistWithVideos=`playlist_with_videos`,e.Dropdown=`dropdown`,e.ViewCurriculumLinks=`view_curriculum_links`,e.SearchBar=`search_bar`,e.InstantSearch=`instant_search`,e.SearchFilters=`search_filters`,e.FeaturedSeriesSearchResult=`featured_series_search_result`,e.ExchangeSearchGroupItem=`exchange_search_group_item`,e.StaffManager=`staff_manager`,e.StaffManagerListItem=`staff_manager_list_item`,e.StudentManager=`student_manager`,e.ViewStudentVideos=`view_student_videos`,e.StudentManagerListItem=`student_manager_list_item`,e.EditUser=`edit_user`,e.UserAuditLog=`user_audit_log`,e.BulkUserActionsWizard=`bulk_user_actions_wizard`,e.BulkUserUploadWizard=`bulk_user_upload_wizard`,e.Classroom=`classroom`,e.ClassroomsList=`classrooms_list`,e.ClassroomsListItem=`classrooms_list_item`,e.ManageClassroomStudents=`manage_classroom_students`,e.ManageClassroomStudentListItem=`manage_classroom_student_list_item`,e.ManageClassroomGroups=`manage_classroom_groups`,e.ManageClassroomGroupListItem=`manage_classroom_group_list_item`,e.ManageClassroomTeachers=`manage_classroom_teachers`,e.ManageClassroomTeacherListItem=`manage_classroom_teachers_list_item`,e.ArchivedClassrooms=`archived_classrooms`,e.PreviewInteractive=`preview_interactive`,e.PreviewSharedInteractive=`preview_shared_interactive`,e.PreviewInteractiveQuestions=`preview_interactive_questions`,e.EditInteractive=`edit_interactive`,e.EditInteractiveDetails=`edit_interactive_details`,e.PlaySharedInteractive=`play_shared_interactive`,e.PlayInteractive=`play_interactive`,e.InteractiveListItem=`interactive_list_item`,e.DeleteInteractive=`delete_interactive`,e.NewInteractive=`new_interactive`,e.CopyInteractive=`copy_interactive`,e.UnpublishInteractive=`unpublish_interactive`,e.ShareInteractive=`share_interactive`,e.PlayPage=`play_page`,e.Player=`player`,e.FloatingPlayer=`floating_player`,e.InteractivePlayer=`interactive_player`,e.EmbeddedPlayer=`embedded_player`,e.CreateClipPlayer=`create_clip_player`,e.PlayClip=`play_clip`,e.PlaySharedClip=`play_shared_clip`,e.ClipListItem=`clip_list_item`,e.ContentUpdatesBanner=`content_updates_banner`,e.ContentUpdatesClassificationBanner=`content_updates_classification_banner`,e.PreferencesSettings=`preferences_settings`,e.NotificationSettings=`notification_settings`,e.TopicsOnboarding=`topics_onboarding`,e.MyUploads=`my_uploads`,e.MyVideos=`my_videos`,e.Playlists=`playlists`,e.SlidingList=`sliding_list`,e.HeroBannerItem=`hero_banner_item`,e.SlidingListItem=`sliding_list_item`,e.ClassificationListItem=`classification_list_item`,e.ClassificationComingSoon=`classification_coming_soon`,e.ClassificationHero=`classification_hero`,e.ClassificationFooter=`classification_footer`,e.Classification=`classification`,e.PresentationClassifications=`presentation_classifications`,e.Dashboard=`dashboard`,e.TeachingLevelBanner=`teaching_level_banner`,e.DiscoverFooter=`discover_footer`,e.ProductBanner=`product_banner`,e.UserOptions=`user_options`,e.MagicTabs=`magic_tabs`,e.Settings=`settings`,e.StudentFeed=`student_feed`,e.MyShares=`my_shares`,e.SharedByMe=`shared_by_me`,e.SharedWithMe=`shared_with_me`,e.Insights=`insights`,e.Error=`error_view`,e.UpgradeForm=`upgrade_form`,e.ClassroomGuide=`classroom_guide`,e.TeachingResources=`teaching_resources`,e.ResourcesGuidancePopup=`resources_guidance_popup`,e.InteractivesGuidancePopup=`interactives_guidance_popup`,e.CurriculumGuidancePopup=`curriculum_guidance_popup`,e.TopVideos=`top_videos`,e.VideoViewsList=`video_views_list`,e.VideoOverview=`video_overview`,e.StudentReachPopup=`student_reach_popup`,e.VideoHighlight=`video_highlight`,e.ClassroomViewsPopup=`classroom_views_popup`,e.GiveFeedbackPopup=`give_feedback_popup`,e.LibraryRequestSettings=`library_request_settings`,e.OpenInAppPrompt=`open_in_app_prompt`,e.UseAppButton=`use_app_button`,e.Launchpad=`launchpad`,e.EditableSubjectPreferencesWidget=`editable_subject_preferences_widget`,e.ThumbnailHeroMediaWidget=`thumbnail_hero_media_widget`,e.ThumbnailFixedListMediaLargeWidget=`thumbnail_fixed_list_media_large`,e.FilterSlidingPillListSmallWidget=`filter_sliding_pill_list_small`,e.CircleLogoSlidingListWidget=`circle_logo_sliding_list_widget`,e.RectangularLogoSlidingListWidget=`rectangular_logo_sliding_list_widget`,e.HeroBannerSmallWidget=`hero_banner_small`,e.EventIconSlidingListWidget=`event_icon_sliding_list_widget`,e.FaqQuestionWidget=`faq_question_widget`,e.FaqQuestionAccordionWidget=`faq_question_accordion_widget`,e.SubjectStatsWidgetItem=`subject_stats_widget_item`,e.AuthorReviewerWidget=`author_reviewer_widget`,e.ThumbnailFixedListMediaSmallWidget=`thumbnail_fixed_list_media_small_widget`,e.ThumbnailFixedListFolderSmallWidget=`thumbnail_fixed_list_folder_small_widget`,e.ThumbnailVerticalListWidget=`thumbnail_vertical_list_widget`,e.ThumbnailFixedListSmallWidget=`thumbnail_fixed_list_small_widget`,e.PosterFixedListLargeWidget=`poster_fixed_list_large_widget`,e.CurriculumResourcesAccordionWidget=`curriculum_resources_accordion_widget`,e.SearchCurriculumCodeWidget=`search_curriculum_code_widget`,e.ExchangeLinksWidget=`exchange_links_widget`,e.TableOfContents=`table_of_contents`,e.SignUpPopup=`sign_up_popup`,e.SignUpPage=`sign_up_page`,e.TrialBanner=`trial_banner`,e.InviteColleaguePopup=`invite_colleague_popup`,e.AuthProspectSelect=`auth_prospect_select`,e.GatedBanner=`gated_banner`,e.GatedEmptyState=`gated_empty_state`,e.GatedPopup=`gated_popup`,e.WelcomePopup=`welcome_popup`,e.WatchHistoryLanding=`watch_history_landing`,e.MyFavouritesLanding=`my_favourites_landing`,e.MyVideoLanding=`my_videos_landing`,e.PlaylistsLanding=`playlists_landing`,e.MySharesLanding=`myshares_landing`,e.PremiumFeatures=`premium_features`,e.NotificationsDropdown=`notifications_dropdown`,e.CalendarNav=`calendar_nav`,e.CalendarDay=`calendar_day`,e.CalendarPopup=`calendar_popup`,e.RegionMap=`region_map`,e.OnboardingSelectRoleScreen=`onboarding_select_role_screen`,e.OnboardingSchoolLevelScreen=`onboarding_school_level_screen`,e.OnboardingAudiencePreferencesScreen=`onboarding_audience_preferences_screen`,e.OnboardingSelectCurriculumScreen=`onboarding_select_curriculum_screen`,e.OnboardingSubjectsScreen=`onboarding_subjects_screen`,e.ProductTips=`product_tips`,e.LivestreamBookingForm=`booking_form`,e.DateRangeFilter=`date_range_selector`,e.AudienceFilter=`audience_filter`,e.AssignFlowView=`assign_flow_view`,e.ContentPartnerDashboard=`content_partner_dashboard`,e.ContentPartnerDashboardVideoBanner=`content_partner_dashboard_video_banner`,e.Global=`global`,e}({}),qS=function(e){return e.Start=`start`,e.Complete=`complete`,e.Save=`save`,e.Discard=`discard`,e.Next=`next`,e.Back=`back`,e}({}),JS=function(e){return e.SignIn=`sign_in`,e.SignUp=`sign_up`,e.SignOut=`sign_out`,e.SwitchAccount=`switch_account`,e.TopNavButton=`top_nav_button`,e.Educator=`educator`,e.Student=`student`,e.TermsAndConditions=`terms_and_conditions`,e.PrivacyPolicy=`privacy_policy`,e.EnterEmail=`enter_email`,e.ClosePopup=`close_popup`,e.Back=`back`,e.UseMyLocation=`use_my_location`,e.TrialCreated=`trial_created`,e.TrialRequested=`trial_requested`,e.DeadEnd=`dead_end`,e.CantFindSchool=`cant_find_school`,e.ResendEmail=`resend_email`,e.ContactUs=`contact_us`,e.InviteColleague=`invite_colleague`,e.PremiumFeatures=`premium_features`,e.Upgrade=`upgrade`,e.FindSchool=`find_school`,e.AddToBraze=`add_to_braze`,e.RequestAccess=`request_access`,e.AutoJoin=`auto_join`,e.WrongEmail=`wrong_email`,e.RequestBdmTrial=`request_bdm_trial`,e.SkipIdpSelect=`skip_idp_select`,e}({}),YS=function(e){return e[e.V1=1]=`V1`,e[e.V2=2]=`V2`,e[e.V3=3]=`V3`,e[e.V4=4]=`V4`,e[e.V5=5]=`V5`,e}({}),XS={first(e){return Xy(e)},firstFew(e,t){return Xy(e,t)},last(e){return Qy(e)},lastFew(e,t){return Qy(e,t)},max(e,t){return Ny(e,t)},cloneAndReplaceAtIdx(e,t,n,r=null){let i=e&&e.length?e.slice():[];return t+1>i.length&&(i=[...i,...Array(t+1-i.length).fill(r)]),i.splice(t,1,n),i},moveItem(e,t,n){let r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty(e){return e&&!e.length},findIndex(e,t){return fy(e,t)},findWhere(e,t){return yy(e,t)},where(e,t){return My(e,t)},groupBy(e,t){return Vy(e,t)},countBy(e,t){return Uy(e,t)},flatten(e,t){return eb(e,t)},flatMap(e,t){return eb(e.map(t),!0)},intersection(...e){return ab(...e)},addOrRemove(e,t){let n=e.indexOf(t);return n===-1?e.push(t):e.splice(n,1),e},addOrRemoveImmutable(e,t){let n=e.indexOf(t),r=hb.deepClone(e);return n===-1?[...r,t]:[...r.slice(0,n),...r.slice(n+1)]},sortBy(e,t){return zy(e,t)},chunk(e,t){return ub(e,t)},uniq(e,t){return rb(e,t)},toObject(e,t){return e.reduce((e,n)=>Object.assign(e,hb.isObject(n)?{[n[t]]:n}:{[t]:n}),{})},findIndexById(e,t){return e.findIndex(e=>e.id===t.id)},removeItem(e,t){let n=this.findIndex(e,t);return n===-1?e:this.removeItemFromIndex(e,n)},removeItemFromIndex(e,t){return[...e.slice(0,t),...e.slice(t+1)]},findMatchedIdIndex(e,t){return e.findIndex(e=>e.id?.toString()===t.toString())},shuffle(e){return Ry(e)},findLast(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return e[n]},findLastIndex(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}},ZS=`OTHER`;function QS(e,t){return t.includes(e)?e:e?ZS:``}function $S(e){let{error:t,onChange:n,countryCode:r,isTertiary:i}=e,a=Hp({countryCode:r,isTertiary:i}),o=QS(e.initialValue,a),[s,c]=Z.useState(o),[l,u]=Z.useState(o===ZS?e.initialValue:``);Z.useEffect(()=>{c(QS(e.initialValue,a))},[e.initialValue]);function d(e){c(e.target.value),u(``),n(e.target.value===ZS?``:e.target.value)}function f(e){u(e.target.value),n(e.target.value)}let p=s===ZS;return(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsxs)(`label`,{htmlFor:e.id,className:e.labelClassName,children:[`Job title`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsxs)(`div`,{className:`mb-2`,children:[(0,Q.jsxs)(`select`,{id:e.id,name:e.id,className:`form-select ${e.size===`lg`?`form-select-lg`:``} ${s.length?`text-dark`:`text-secondary`} ${!!t&&`is-invalid`}`,value:s,placeholder:`Role`,onChange:d,children:[(0,Q.jsx)(`option`,{value:``,disabled:!0,className:`text-secondary`,children:e.placeholder?e.placeholder:(0,Q.jsx)(Q.Fragment,{children:`What do you do?`})}),a.map((e,t)=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},t)),(0,Q.jsx)(`option`,{value:ZS,className:`text-dark`,children:`Other`})]}),!!t&&!p&&(0,Q.jsx)(xf,{name:e.id,children:t})]}),p&&(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`input`,{className:`form-control ${e.size===`lg`?`form-select-lg`:``} ${!!t&&`is-invalid`}`,type:`text`,value:l,placeholder:`What do you do?`,autoFocus:!0,onChange:f}),!!t&&(0,Q.jsx)(xf,{name:e.id,children:t})]})]})}var eC=function(e){return e.AU=`cv-ap-southeast-1`,e.NZ=`cv-ap-southeast-2`,e.UK=`cv-eu-west-1`,e.US=`cv-na-west-1`,e}({}),tC=[`uk`,`gb`,`gg`,`im`,`je`,`ie`],nC={au:$.AU,nz:$.NZ,us:$.US,uk:$.UK,ca:$.CA,gb:$.UK,gg:$.UK,im:$.UK,je:$.UK,ie:$.UK,al:$.UK,ad:$.UK,am:$.UK,at:$.UK,az:$.UK,by:$.UK,be:$.UK,ba:$.UK,bg:$.UK,hr:$.UK,cy:$.UK,cz:$.UK,dk:$.UK,ee:$.UK,fi:$.UK,fr:$.UK,de:$.UK,ge:$.UK,gr:$.UK,hu:$.UK,is:$.UK,it:$.UK,lv:$.UK,li:$.UK,lt:$.UK,lu:$.UK,mt:$.UK,md:$.UK,mc:$.UK,me:$.UK,nl:$.UK,mk:$.UK,no:$.UK,pl:$.UK,pt:$.UK,ro:$.UK,ru:$.UK,sm:$.UK,rs:$.UK,sk:$.UK,si:$.UK,es:$.UK,se:$.UK,ch:$.UK,tr:$.UK,ua:$.UK,va:$.UK},rC={au:Xx.CvApSoutheast1,uk:Xx.CvEuWest1,us:Xx.CvNaWest1,nz:Xx.CvApSoutheast2,ca:Xx.CvNaWest1},iC={au:eC.AU,uk:eC.UK,us:eC.US,nz:eC.NZ,ca:eC.US},aC={getRegionName(e){return rC[aC.getCountryCode(e)]},getInstanceRegion(e){return iC[aC.getCountryCode(e)]},getCountryCode(e){return nC[e?.toLowerCase()]||$.US},isCountryCodeUK(e){return tC.includes(e.toLowerCase())},isCountryCodeAU(e){return e?.toLowerCase()===$.AU},isCountryCodeUS(e){return e?.toLowerCase()===$.US},isCountryCodeNZ(e){return e?.toLowerCase()===$.NZ},isSupportedCountryCode(e){return Object.keys(nC).includes(e?.toLowerCase())},getLocalizedLocalityPlaceholderPhrase(e){if(e){if(aC.isCountryCodeUK(e))return`E.g. CR0 3RL or 36 Factory Lane`;if(aC.isCountryCodeAU(e)||aC.isCountryCodeNZ(e))return`E.g. 2212 or Revesby`;if(aC.isCountryCodeUS(e))return`E.g. 95826 or Sacramento`}},getLocalizedLocalityPlaceholderText(e){if(!e)return;let t=aC.getLocalizedLocalityPlaceholderPhrase(e);if(t)return t}};function oC(e){if(!e)return{firstName:``,surname:``};let[t,...n]=e.split(` `).filter(e=>e.length);return{firstName:t,surname:n?.join(` `)}}var sC=o(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),cC=Z.createContext({prefixes:{},breakpoints:[`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],minBreakpoint:`xs`}),{Consumer:lC,Provider:uC}=cC;function dC(e,t){let{prefixes:n}=(0,Z.useContext)(cC);return e||n[t]||t}var fC=[`as`,`disabled`];function pC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mC(e){return!e||e.trim()===`#`}function hC({tagName:e,disabled:t,href:n,target:r,rel:i,role:a,onClick:o,tabIndex:s=0,type:c}){e||=n!=null||r!=null||i!=null?`a`:`button`;let l={tagName:e};if(e===`button`)return[{type:c||`button`,disabled:t},l];let u=r=>{if((t||e===`a`&&mC(n))&&r.preventDefault(),t){r.stopPropagation();return}o?.(r)},d=e=>{e.key===` `&&(e.preventDefault(),u(e))};return e===`a`&&(n||=`#`,t&&(n=void 0)),[{role:a??`button`,disabled:void 0,tabIndex:t?void 0:s,href:n,target:e===`a`?r:void 0,"aria-disabled":t||void 0,rel:e===`a`?i:void 0,onClick:u,onKeyDown:d},l]}var gC=Z.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=pC(e,fC),[a,{tagName:o}]=hC(Object.assign({tagName:n,disabled:r},i));return(0,Q.jsx)(o,Object.assign({},i,a,{ref:t}))});gC.displayName=`Button`;var _C=l(sC()),vC=Z.forwardRef(({as:e,bsPrefix:t,variant:n=`primary`,size:r,active:i=!1,disabled:a=!1,className:o,...s},c)=>{let l=dC(t,`btn`),[u,{tagName:d}]=hC({tagName:e,disabled:a,...s});return(0,Q.jsx)(d,{...u,...s,ref:c,disabled:a,className:(0,_C.default)(o,l,i&&`active`,n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&a&&`disabled`)})});vC.displayName=`Button`;var yC=Z.forwardRef(({bsPrefix:e,variant:t,animation:n=`border`,size:r,as:i=`div`,className:a,...o},s)=>{e=dC(e,`spinner`);let c=`${e}-${n}`;return(0,Q.jsx)(i,{ref:s,...o,className:(0,_C.default)(a,c,r&&`${c}-${r}`,t&&`text-${t}`)})});yC.displayName=`Spinner`;function bC(e){let{showSpinner:t,children:n,style:r,spinnerText:i,...a}=e,o=Z.useRef(null),[{width:s,height:c},l]=Z.useState({}),[u,d]=Z.useState(t);Z.useEffect(()=>{if(!t){l({});return}let e=o.current,n=e.offsetHeight,r=e.offsetWidth;!n||!r||l({width:r,height:n})},[t]),Z.useLayoutEffect(()=>{d(t)},[t]);let f={...r};return s&&(f.width=`${s+1}px`),c&&(f.height=`${c+1}px`),(0,Q.jsx)(vC,{ref:o,disabled:t,style:f,...a,children:u?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(yC,{as:`span`,animation:`border`,role:`status`,size:`sm`}),!!i&&(0,Q.jsx)(`span`,{className:`ps-1`,children:i})]}):n})}var xC=/\$+[\w\s]?/,SC=/^\+?\d{4,255}$/,CC=255;function wC(e){let[t,n]=Z.useState({fullname:``,jobTitle:``,phone:``});function r(n){n?.preventDefault(),d(t)&&e.handleSubmitForm(t)}function i(e){e.preventDefault(),l(`fullname`,e.target.value),u(`fullname`),u(`submission`)}function a(e){e.preventDefault(),l(`phone`,e.target.value.trim()),u(`phone`),u(`submission`)}function o(e){l(`jobTitle`,e),u(`jobTitle`),u(`submission`)}function s(){l(`fullname`,``),u(`fullname`),u(`submission`)}function c(){l(`phone`,``),u(`phone`),u(`submission`)}function l(e,t){n(n=>({...n,[e]:t}))}function u(t){if(!Object.keys(e.errors).length||!e.errors[t])return;let n={...e.errors};delete n[t],e.setErrors(n)}function d(t){let{fullname:n,jobTitle:r,phone:i}=t,{firstName:a,surname:o}=oC(n),s={};return(!a||!o)&&(s.fullname=`Please enter your full name.`),(xC.test(a)||xC.test(o))&&(s.fullname=`Please enter your full name.`),n.length>CC&&(s.fullname=`Full name cannot exceed max length of ${CC} characters.`),r?.length||(s.jobTitle=`Please enter your job title.`),xC.test(r)&&(s.jobTitle=`Please enter a valid job title.`),r.length>CC&&(s.jobTitle=`Job title cannot exceed max length of ${CC} characters.`),i?.length||(s.phone=`Please enter your phone number.`),(xC.test(i)||!SC.test(i))&&(s.phone=`Please enter a valid phone number.`),e.setErrors(s),!Object.keys(s).length}function f(){let{fullname:n,jobTitle:r,phone:i}=t;return!(!n.length||!r.length||!i.length||Object.keys(e.errors).length)}return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`text-center h4`,children:`A little more about you`}),(0,Q.jsx)(`p`,{children:`Please enter your details.`}),(0,Q.jsxs)(`form`,{onSubmit:r,"aria-errormessage":`brazeFormError`,children:[(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`fullname-input`,children:`Full name`}),(0,Q.jsx)(Nf,{value:t.fullname,onChange:i,name:`fullname-input`,id:`fullname-input`,type:`text`,className:`form-control form-control-lg ${e.errors.fullname?.length?`is-invalid`:``}`,placeholder:`Enter your name`,onClickClear:s,autoFocus:!0,"aria-errormessage":`fullname-inputError`}),e.errors.fullname&&(0,Q.jsx)(xf,{name:`fullname-input`,children:e.errors.fullname})]}),(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`phone-input`,children:`Contact number`}),(0,Q.jsx)(Nf,{value:t.phone,onChange:a,name:`phone-input`,id:`phone-input`,type:`tel`,className:`form-control form-control-lg ${e.errors.phone?.length?`is-invalid`:``}`,placeholder:`Enter your phone number`,onClickClear:c,"aria-errormessage":`phone-inputError`}),e.errors.phone&&(0,Q.jsx)(xf,{name:`phone-input`,children:e.errors.phone})]}),(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`jobTitle-select`,children:`Job title`}),(0,Q.jsx)($S,{id:`jobTitle-select`,countryCode:aC.getCountryCode(e.country),onChange:o,error:e.errors?.jobTitle,size:`lg`,labelClassName:`d-none`,isTertiary:e.isTertiary})]}),!!e.errors?.submission&&(0,Q.jsx)(xf,{name:`brazeForm`,className:`form-group`,children:e.errors.submission}),(0,Q.jsx)(`div`,{className:`form-group mb-1`,children:(0,Q.jsx)(bC,{className:`btn-lg w-100`,variant:`dark`,onClick:()=>r(),showSpinner:e.loading,disabled:e.loading||!f(),children:`Submit`})})]})]})}var TC=function(e){return e.Unavailable=`unavailable`,e.Expired=`expired`,e.Active=`active`,e.NotRequired=`not-required`,e.Available=`available`,e.Unsupported=`unsupported`,e.UserAutoJoinAllowed=`user-auto-join-allowed`,e.UserJoinApprovalRequired=`user-join-approval-required`,e.InvalidEmail=`invalid-email`,e.BdmTrialAvailable=`bdm-trial-available`,e}({}),EC=function(e){return e.Staff=`staff`,e.Learner=`learner`,e}({}),DC=l(o(((e,t)=>{(function(n){if(typeof e==`object`)t.exports=n();else if(typeof define==`function`&&define.amd)define(n);else{var r;try{r=window}catch{r=self}r.SparkMD5=n()}})(function(e){var t=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`a`,`b`,`c`,`d`,`e`,`f`];function n(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n+=(r&i|~r&a)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[1]-389564586|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[2]+606105819|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[5]+1200080426|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[6]-1473231341|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[9]-1958414417|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[10]-42063|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[13]-40341101|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[14]-1502002290|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,n+=(r&a|i&~a)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[6]-1069501632|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[11]+643717713|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[10]+38016083|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[15]-660478335|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[14]-1019803690|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[3]-187363961|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[2]-51403784|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[7]+1735328473|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,n+=(r^i^a)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[8]-2022574463|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[11]+1839030562|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[4]+1272893353|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[7]-155497632|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[0]-358537222|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[3]-722521979|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[12]-421815835|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[15]+530742520|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~a))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[7]+1126891415|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[3]-1894986606|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[15]-30611744|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[11]-1120210379|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=a+e[3]|0}function r(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}function i(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e[n]+(e[n+1]<<8)+(e[n+2]<<16)+(e[n+3]<<24);return t}function a(e){var t=e.length,i=[1732584193,-271733879,-1732584194,271733878],a,o,s,c,l,u;for(a=64;a<=t;a+=64)n(i,r(e.substring(a-64,a)));for(e=e.substring(a-64),o=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a<o;a+=1)s[a>>2]|=e.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(n(i,s),a=0;a<16;a+=1)s[a]=0;return c=t*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(c[2],16),u=parseInt(c[1],16)||0,s[14]=l,s[15]=u,n(i,s),i}function o(e){var t=e.length,r=[1732584193,-271733879,-1732584194,271733878],a,o,s,c,l,u;for(a=64;a<=t;a+=64)n(r,i(e.subarray(a-64,a)));for(e=a-64<t?e.subarray(a-64):new Uint8Array,o=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a<o;a+=1)s[a>>2]|=e[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(n(r,s),a=0;a<16;a+=1)s[a]=0;return c=t*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(c[2],16),u=parseInt(c[1],16)||0,s[14]=l,s[15]=u,n(r,s),r}function s(e){var n=``,r;for(r=0;r<4;r+=1)n+=t[e>>r*8+4&15]+t[e>>r*8&15];return n}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join(``)}c(a(`hello`)),typeof ArrayBuffer<`u`&&!ArrayBuffer.prototype.slice&&(function(){function t(e,t){return e=e|0||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i=this.byteLength,a=t(n,i),o=i,s,c,l,u;return r!==e&&(o=t(r,i)),a>o?new ArrayBuffer(0):(s=o-a,c=new ArrayBuffer(s),l=new Uint8Array(c),u=new Uint8Array(this,a,s),l.set(u),c)}})();function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n=e.length,r=new ArrayBuffer(n),i=new Uint8Array(r),a;for(a=0;a<n;a+=1)i[a]=e.charCodeAt(a);return t?i:r}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t=[],n=e.length,r;for(r=0;r<n-1;r+=2)t.push(parseInt(e.substr(r,2),16));return String.fromCharCode.apply(String,t)}function m(){this.reset()}return m.prototype.append=function(e){return this.appendBinary(l(e)),this},m.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t=this._buff.length,i;for(i=64;i<=t;i+=64)n(this._hash,r(this._buff.substring(i-64,i)));return this._buff=this._buff.substring(i-64),this},m.prototype.end=function(e){var t=this._buff,n=t.length,r,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a;for(r=0;r<n;r+=1)i[r>>2]|=t.charCodeAt(r)<<(r%4<<3);return this._finish(i,n),a=c(this._hash),e&&(a=p(a)),this.reset(),a},m.prototype.reset=function(){return this._buff=``,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(e,t){var r=t,i,a,o;if(e[r>>2]|=128<<(r%4<<3),r>55)for(n(this._hash,e),r=0;r<16;r+=1)e[r]=0;i=this._length*8,i=i.toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(i[2],16),o=parseInt(i[1],16)||0,e[14]=a,e[15]=o,n(this._hash,e)},m.hash=function(e,t){return m.hashBinary(l(e),t)},m.hashBinary=function(e,t){var n=c(a(e));return t?p(n):n},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(e){var t=f(this._buff.buffer,e,!0),r=t.length,a;for(this._length+=e.byteLength,a=64;a<=r;a+=64)n(this._hash,i(t.subarray(a-64,a)));return this._buff=a-64<r?new Uint8Array(t.buffer.slice(a-64)):new Uint8Array,this},m.ArrayBuffer.prototype.end=function(e){var t=this._buff,n=t.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i,a;for(i=0;i<n;i+=1)r[i>>2]|=t[i]<<(i%4<<3);return this._finish(r,n),a=c(this._hash),e&&(a=p(a)),this.reset(),a},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var e=m.prototype.getState.call(this);return e.buff=d(e.buff),e},m.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),m.prototype.setState.call(this,e)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(e,t){var n=c(o(new Uint8Array(e)));return t?p(n):n},m})}))()),OC={secondary:{label:`Secondary`,isTertiary:!1},"primary & secondary":{label:`Primary & Secondary`,isTertiary:!1},k12:{label:`Primary & Secondary`,isTertiary:!1},primary:{label:`Primary`,isTertiary:!1},special:{label:`Special`,isTertiary:!1},university:{label:`University`,isTertiary:!0},middle:{label:`Middle`,isTertiary:!1},"fe college":{label:`FE College`,isTertiary:!0},"high school":{label:`Secondary`,isTertiary:!1},elementary:{label:`Primary`,isTertiary:!1},"middle school":{label:`Middle`,isTertiary:!1},tafe:{label:`TAFE`,isTertiary:!0},college:{label:`FE College`,isTertiary:!0},"sixth form college":{label:`Sixth Form College`,isTertiary:!0}},kC={england:`ENG`,scotland:`SCT`,wales:`WLS`,"northern ireland":`NIR`},AC={hashedEmail(e){let t=e.trim().toLowerCase();return DC.default.hash(t)},removeEmptyKeys(e){if(Array.isArray(e))return e;let t={...e};return Object.entries(t).filter(([,e])=>!(e==null||typeof e==`string`&&!e.length)).reduce((e,[t,n])=>({...e,[t]:n===Object(n)?AC.removeEmptyKeys(n):n}),{})},Conversions:{TRIAL_UPGRADE_REQUEST:`Request - Trial Upgrade`,FREE_TRIAL_REQUEST:`Request - Free Trial`,OLYMPICS_SPECIAL_OFFER_REQUEST:`Request - Olympics Special Offer`},Sources:{CV_PRODUCT_TRIAL_REQUESTED:`cv_product_trial_requested`,CV_PRODUCT_BDM_TRIAL_REQUESTED:`cv_product_bdm_trial_requested`,CV_PRODUCT_TRIAL_UPGRADE_REQUESTED:`cv_product_trial_upgrade_requested`},getSchoolType(e){if(!e)return;let t=e.toLowerCase();return[`unknown`,`other`].includes(t)?void 0:OC[t]?.label||e},isTertiarySchool(e){return OC[e?.toLowerCase()]?.isTertiary||!1},parseProvince(e){return e.length?kC[e.toLowerCase()]||e:``}};function jC(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({});Z.useEffect(()=>{e.userType===EC.Learner&&e.complete({completionStep:`trial-status`,trialCreated:!1,trialStatus:TC.Unsupported})},[]);function a(e){if(Up(e.jobTitle)){c();return}o(e)}async function o(a){if(t)return;if(e.userType===EC.Learner){i({...r,submission:`Something went wrong! Please try again later.`});return}e.logUserAction({},{actionType:WS.Click,workflowPhase:qS.Next,descriptor:JS.AddToBraze}),n(!0);let{firstName:o,surname:l}=oC(a.fullname),u=await e.getCrmIdForProspect(e.prospectId);try{let t={email:e.email,firstName:o,lastName:l,phone:a.phone,custom:{crmId:u,orgSubType:AC.getSchoolType(e?.schoolType),accountName:e?.schoolName,jobTitle:a.jobTitle,accountAddress:{countryCode:e?.country,province:AC.parseProvince(e?.province||``)},syncToCrm:!0,source:AC.Sources.CV_PRODUCT_TRIAL_REQUESTED},event:{accountCountry:e?.country,accountPostCode:e?.schoolPostCode,conversion:AC.Conversions.FREE_TRIAL_REQUEST}},n={prospect_id:e?.prospectId};e.logBrazeEvent({user:t,event:{eventType:kx.ProductFormEvent.ProductTrailRequested,additionalData:n,callback:s}})}catch{i({...r,submission:`Something went wrong! Please try again later.`})}Object.keys(r).length||c()}function s(e){i(e?{}:{...r,submission:`Something went wrong! Please try again later.`}),n(!1)}function c(){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null})}return(0,Q.jsx)(wC,{loading:t,errors:r,setErrors:i,country:e.country||e.geoLocation?.countryCode,logUserAction:e.logUserAction,handleSubmitForm:a,isTertiary:AC.isTertiarySchool(e.schoolType)})}var MC={getRandomInt(e=1e4){return Math.floor(Math.random()*Math.floor(e))}},NC=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n},PC=`__googleMapsScriptId`,FC;(function(e){e[e.INITIALIZED=0]=`INITIALIZED`,e[e.LOADING=1]=`LOADING`,e[e.SUCCESS=2]=`SUCCESS`,e[e.FAILURE=3]=`FAILURE`})(FC||={});var IC=class e{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:i,id:a=PC,language:o,libraries:s=[],mapIds:c,nonce:l,region:u,retries:d=3,url:f=`https://maps.googleapis.com/maps/api/js`,version:p}){if(this.CALLBACK=`__googleMapsCallback`,this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=i,this.id=a||`__googleMapsScriptId`,this.language=o,this.libraries=s,this.mapIds=c,this.nonce=l,this.region=u,this.retries=d,this.url=f,this.version=p,e.instance){if(!NC(this.options,e.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(e.instance.options)}`);return e.instance}e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?FC.FAILURE:this.done?FC.SUCCESS:this.loading?FC.LOADING:FC.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=${this.CALLBACK}`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(`,`)}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(`,`)}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(n=>{n?t(n.error):e(window.google)})})}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}let e=this.createUrl(),t=document.createElement(`script`);t.id=this.id,t.type=`text/javascript`,t.src=e,t.onerror=this.loadErrorCallback.bind(this),t.defer=!0,t.async=!0,this.nonce&&(t.nonce=this.nonce),document.head.appendChild(t)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*2**this.errors.length;console.log(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn(`Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match.`),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};function LC(e){return new IC({apiKey:e.apiKey,version:`weekly`,libraries:e.libraries,retries:3})}function RC(e){let t={apiKey:e.apiKey,libraries:e.libraries||[`places`]},[n,r]=Z.useState(!1),[i,a]=Z.useState(LC(t));Z.useEffect(()=>{o()},[]);function o(e,n){if(!i){a(LC(t));return}i.loadCallback(t=>{if(t){r(!1),n&&n(t);return}r(!0),e&&e()})}return{loader:i,scriptLoaded:n,onGoogleApiReady:o}}function zC(e){let{scriptLoaded:t}=RC({apiKey:e.googleApiKey}),[n,r]=Z.useState();return Z.useEffect(()=>{t&&r(new google.maps.places.AutocompleteService)},[t]),n}var BC=`us`,VC=`country:placeholder:text`;function HC(e){let t=aC.getLocalizedLocalityPlaceholderText(e?.countryCode);if(t)return t;let n=Gd.cacheGet(`${VC}:${e?.countryCode}`);if(n)return n}function UC(){return String.fromCharCode(96+MC.getRandomInt(26))}function WC({apiKey:e,geoLocation:t,makeRequest:n=!0,template:r=`E.g. [placeholder]`,templateKey:i=`[placeholder]`}){let a=zC({googleApiKey:e}),[o,s]=Z.useState(()=>HC(t));Z.useEffect(()=>{if(o||!a||!n)return;let e=t?.countryCode||BC,r={input:UC(),types:[`(cities)`],region:e,componentRestrictions:{country:e}};a.getPlacePredictions(r,(t,n)=>l(t,n,e))},[o,a,t,n]);function c(e,t){Gd.cacheSet(`${VC}:${t}`,e,86400),s(e)}function l(e,t,n){if(t!==google.maps.places.PlacesServiceStatus.OK||!e){c(aC.getLocalizedLocalityPlaceholderText(BC),n);return}let a=e[MC.getRandomInt(e.length)].description;c(r.replace(i,a),n)}return o}var GC={getPlaceDetails(e){let t,n,r,i,a=e.formatted_address;for(let a of e.address_components)for(let e of a.types)e===`locality`&&(t=a.short_name),e===`administrative_area_level_1`&&(n=a.short_name),e===`postal_code`&&(i=a.short_name),e===`country`&&(r=a.short_name);return{locality:a,country:r,postalCode:i,city:t,province:n}}},KC={1:`geocoderPermissionDenied`,2:`geocoderUnavailable`,3:`geocoderTimeout`};function qC(e){let[t,n]=Z.useState({}),{onGoogleApiReady:r}=RC(e);function i(){r(()=>{window.navigator.geolocation.getCurrentPosition(a,o)})}function a(e){let{latitude:t,longitude:r}=e.coords,i=new google.maps.LatLng(t,r);new google.maps.Geocoder().geocode({location:i},(e,i)=>{if(i!==google.maps.GeocoderStatus.OK)return;let a=e.find(e=>e.types.includes(`locality`)||e.types.includes(`administrative_area_level_2`));n({...GC.getPlaceDetails(a),longitude:r,latitude:t})})}function o(t){let n=KC[t.code];n||=`geocoderUnknown`,e.onPositionError(`We are unable to access your location. Please try again later.`)}return{placeDetails:t,onClickGetCurrentLocation:i}}var JC=(e,t)=>{let[n,r]=Z.useState(e);return Z.useEffect(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n};function YC({search:e,makePredicition:t,geoLocation:n,apiKey:r}){let i=zC({googleApiKey:r}),a=JC(e,300),[o,s]=Z.useState();Z.useEffect(()=>{if(!i)return;if(a?.length===0||!t){s(void 0);return}let e=n?.countryCode||`us`;i.getPlacePredictions({input:a,componentRestrictions:n?.isFallback?void 0:{country:e},region:e,types:[`locality`,`sublocality`,`postal_code`]},c)},[a,t,i]);function c(e,t){if(t!==google.maps.places.PlacesServiceStatus.OK||!e){s(void 0);return}s(e)}function l(e,t,r){new google.maps.places.PlacesService(t.current).getDetails({placeId:e.place_id,fields:[`geometry`,`address_components`,`formatted_address`],region:n.countryCode},(e,t)=>{if(t!==google.maps.places.PlacesServiceStatus.OK)return;let n=e.geometry.location.lng(),i=e.geometry.location.lat(),{locality:a,country:o,postalCode:s,city:c,province:l}=GC.getPlaceDetails(e);r({longitude:n,latitude:i,locality:a,country:o,city:c,postalCode:s,province:l})})}return{localityPredicitions:o,getPlaceInfo:l}}function XC(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z`})})}var ZC={baseText:`_baseText_bmazz_1`,dropdown:`_dropdown_bmazz_4`,suggestionContainer:`_suggestionContainer_bmazz_7`,suggestionContainerInner:`_suggestionContainerInner_bmazz_13`,suggestionItem:`_suggestionItem_bmazz_18`,suggestionLoading:`_suggestionLoading_bmazz_18`,noSuggestion:`_noSuggestion_bmazz_18`,large:`_large_bmazz_22`,selected:`_selected_bmazz_32`,useMyLocation:`_useMyLocation_bmazz_36`};function QC(e){let{predictions:t,getPlaceInfo:n,selectedIndex:r}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsx)(Ff,{className:`${ZC.suggestionItem} ${r-1===t?ZC.selected:``}`,onKeyDown:t=>t.key===`Enter`&&n(e),onMouseDown:()=>n(e),onClick:()=>n(e),children:e.description},e.place_id))})}function $C(e){let t=Z.useRef(null),[n,r]=Z.useState(e.data?.schoolLocality||``),[i,a]=Z.useState(!1),o=WC({apiKey:e.googleMapsApiKey,geoLocation:e.geoLocation}),{localityPredicitions:s,getPlaceInfo:c}=YC({search:n,makePredicition:i,geoLocation:e.geoLocation,apiKey:e.googleMapsApiKey}),{placeDetails:l,onClickGetCurrentLocation:u}=qC({apiKey:e.googleMapsApiKey,onPositionError:b}),d=window.navigator.geolocation?1:0,{selectedIndex:f,onKeyDown:p,containerRef:m,hide:h,onBlur:g,onFocus:_}=Pf({onSelected:C,itemCount:(s?.length??0)+d,hideOnBlur:e.hideOnBlur}),[v,y]=Z.useState();Z.useEffect(()=>{w(l)},[l]);function b(e){a(!0),y(e)}function x(t){v&&y(void 0),i||a(!0),(e.data?.longitude||e.data?.latitude||e.data?.schoolLocality)&&e.clearData(),r(t)}function S(){x(``),t.current.focus()}function C(e){if(!s)return;if(e===s.length){E();return}let t=s[e];t&&T(t)}function w(t){e.setData({schoolLocality:t.locality,country:t.country,province:t.province,schoolPostCode:t.postalCode,longitude:t.longitude,latitude:t.latitude}),t.locality&&r(t.locality)}function T(e){i&&a(!1),c(e,t,w)}function E(t){t?.preventDefault(),a(!1),u(),e.logUserAction?.({},{actionType:WS.Click,descriptor:JS.UseMyLocation})}function D(){let t=`form-control`;return e.size===`lg`&&(t+=` form-control-lg`),t}let O=s?.length&&!e.data?.schoolLocality?.length,k=window.navigator.geolocation&&!e.data?.schoolLocality?.length,A=e.labelClassName||`d-block text-center mb-3 fw-normal ${ZC.baseText}`,j=`form-group position-relative`;return e.size===`lg`&&(j+=` ${ZC.large}`),(0,Q.jsxs)(`div`,{className:j,children:[(0,Q.jsxs)(`label`,{className:A,htmlFor:`locality-input`,children:[`ZIP code or city`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsx)(Nf,{type:`text`,value:n,onChange:e=>x(e.currentTarget.value),id:`locality-input`,className:D(),ref:t,autoComplete:`off`,placeholder:o||`Loading...`,disabled:e.disabled||!o,autoFocus:e?.autoFocus,onClickClear:S,onKeyDown:p,onFocus:_,onBlur:g}),(0,Q.jsxs)(`div`,{className:`position-absolute z-1 w-100 ${ZC.dropdown} ${h?`d-none`:``}`,children:[!!O&&(0,Q.jsx)(`div`,{className:ZC.suggestionContainer,children:(0,Q.jsxs)(`div`,{className:ZC.suggestionContainerInner,ref:m,children:[(0,Q.jsx)(QC,{predictions:s,getPlaceInfo:T,selectedIndex:f}),window.navigator.geolocation&&e.useGeoLocationApi&&(0,Q.jsx)(Ff,{className:ed(ZC.suggestionItem,`px-1`,f-1===s.length?ZC.selected:``),onClick:E,children:(0,Q.jsxs)(`div`,{className:`btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1`,children:[(0,Q.jsx)(XC,{}),`Use my current location`]})})]})}),k&&!O&&e.useGeoLocationApi&&(0,Q.jsx)(`div`,{className:`d-flex ${ZC.useMyLocation}`,children:(0,Q.jsxs)(`button`,{onClick:E,className:`btn btn-link info-link bg-white btn-with-icon`,children:[(0,Q.jsx)(XC,{}),`Use my current location`]})}),!!v&&(0,Q.jsx)(`div`,{className:`text-danger p-2`,children:v})]})]})}var ew=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e}({}),tw=class extends Error{constructor(e,t=`Error`){super(t),this.body=e}},nw={prepareQuery(e,t){let n=e;return Object.keys(t).forEach((e,r)=>{t[e]&&(r===0?n+=`?`:n+=`&`,n+=`${e}=${encodeURIComponent(t[e])}`)}),n}};function rw(e){let t={method:ew.GET,headers:{"Content-type":`application/json`}};e.method&&(t={...t,method:e.method}),e.init&&(t={...t,...e.init});let n=e.url;return t.method===ew.GET&&e.data?n=nw.prepareQuery(n,e.data):e.data&&(t={...t,body:JSON.stringify(e.data)}),{init:t,url:n}}var iw={async asyncFetch(e){let t=rw(e),n=await fetch(t.url,t.init);if(!n.ok)throw new tw(await n.json());if(n.status!==204)return await n.json()},async asyncFetchPlain(e){let t=rw(e),n=await fetch(t.url,t.init);if(n.ok)return await n.text()},fetch(e){let t=rw(e);return fetch(t.url,t.init).then(e=>{if(e.status!==204)return e.json()}).then(t=>(e.success&&e.success(t),t)).catch(t=>(e.error&&e.error(),t)).finally(()=>{e.always&&e.always()})}},aw={search(e,t,n,r,i){let a={longitude:t.longitude,latitude:t.latitude};t.query&&(a.query=t.query),iw.fetch({url:e,data:a,success:n,error:r,always:i})},async create(e,t){return iw.asyncFetch({url:e.createProspect,method:ew.POST,data:t})},getLookups(e,t){return iw.asyncFetch({url:e.prospectLookups(t)})}},ow=/\/$/,sw={urlBuilder(e,t){let n=Object.entries(t).map(([e,t])=>e&&Array.isArray(t)?t.map(t=>`${e}=${encodeURIComponent(t)}`).join(`&`):e&&t!=null?`${e}=${encodeURIComponent(t)}`:``).reduce((e,t)=>t?e?`${e}&${t}`:t:e,``);return n?`${e}?${n}`:e},buildFilter(e){let t=[];if(e.limit&&t.push(`limit:${e.limit}`),e.cursor&&t.push(`page:${e.cursor}`),e.before&&t.push(`dateCreated:...${e.before}`),t.length)return t.join(`,`)},makeHttps(e){return typeof e!=`string`||e.indexOf(`http://`)===-1||(e=e.replace(`http://`,`https://`)),e},safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n},removeTrailingSlash(e){if(typeof e==`string`)return e.replace(ow,``)},getHostname(e){if(!e)return window.location.hostname;try{return new URL(e).hostname}catch{return null}},isValidUrl(e){try{return new URL(e),!0}catch{return!1}}},cw={checkTrialStatus(e,t){if(e.productName!==Mx.Lite)return Promise.reject();let n={email:t.email};return iw.asyncFetch({url:e.userStatus,data:n})},checkUserIdps(e,t){return e.productName===Mx.Lite?iw.asyncFetch({url:e.idps,data:{email:t}}):Promise.reject()},checkProspectTrialStatus(e,t,n,r,i){let a=e.prospectStatus(t.prospectId);a=sw.urlBuilder(a,{email:t.email}),iw.fetch({url:a,success:n,error:r,always:i})},createTrial(e,t){let n={prospectId:t.prospectId,email:t.email,userType:t.userType,appLink:t?.appLink,attribution:t?.attribution};return iw.asyncFetch({url:e.createTrial,method:ew.POST,data:n})},resendTrialEmail(e,t,n){if(e.productName!==Mx.Lite)return Promise.reject();let r={email:n.email,appLink:n?.appLink};return iw.asyncFetch({url:e.resendTrialEmail(t),method:ew.POST,data:r})},createJoinRequest(e,t){let n=e.productName===Mx.Auth?e.joinRequest:e.joinRequest(t.customerId),r=e.productName===Mx.Auth?t:{email:t.email};return iw.asyncFetch({url:n,method:ew.POST,data:r})},createAutoJoinRequest(e,t){return e.productName===Mx.Lite?iw.asyncFetch({url:e.autoJoin,method:ew.POST,data:t}):Promise.reject()}},lw=[`Primary`,`Secondary`,`K12`,`Special`,`TAFE`,`University`],uw=[`Primary`,`Secondary`,`Primary & Secondary`,`Special`,`Sixth Form College`,`FE College`,`University`,`Other`],dw=[`Elementary`,`Middle School`,`High School`,`College`,`Other`],fw={au:lw,nz:lw,uk:uw,us:dw,ca:dw};function pw(e){return fw[aC.getCountryCode(e)]||dw}var mw=function(e){return e.Published=`Published`,e.Draft=`Draft`,e}({});function hw(e){let[t,n]=Z.useState({prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolLocality:e.schoolLocality,country:e.country,province:e.province,city:e.city,longitude:e.longitude,latitude:e.latitude}),[r,i]=Z.useState(),[a,o]=Z.useState(!1),s=pw(t.country||e.geoLocation?.countryCode);function c(){let{schoolName:e,schoolType:n,country:r}=t;return!!(e&&n&&r)}function l(e,t){n(n=>({...n,[e]:t}))}function u(e){let{longitude:t,latitude:n,schoolLocality:r,country:i,city:a,province:o}=e;t&&l(`longitude`,t),n&&l(`latitude`,n),i&&l(`country`,i),a&&l(`city`,a),o&&l(`province`,o),r&&l(`schoolLocality`,r)}function d(){l(`schoolLocality`,void 0),l(`longitude`,void 0),l(`latitude`,void 0),l(`city`,void 0),l(`province`,void 0),l(`country`,void 0),i(``)}function f(e){let t=e.target.value;l(`schoolType`,t)}function p(e){l(`schoolName`,e.target.value)}async function m(n){let r={email:e.email,custom:{accountName:t?.schoolName,accountAddress:{countryCode:t?.country,province:AC.parseProvince(t.province)},orgSubType:AC.getSchoolType(t?.schoolType),syncToCrm:!0,source:AC.Sources.CV_PRODUCT_TRIAL_REQUESTED},event:{accountCountry:t?.country,accountPostCode:t?.schoolPostCode,accountState:AC.parseProvince(t.province)}},i={form_type:`trial-sign-up`,prospect_id:t?.prospectId};e.logBrazeEvent({user:r,event:{eventType:kx.ProductFormEvent.FormSubmission,additionalData:i,callback:n}})}async function h(n){if(n.preventDefault(),!c())return;e.logUserAction(t,{actionType:WS.Click,workflowPhase:qS.Next,descriptor:JS.CantFindSchool}),o(!0);let r;try{if(r=await aw.create(e.ajaxUrls,{name:t.schoolName,status:mw.Draft,countryCode:t.country,prospectType:t.schoolType,city:t.city,postCode:t.schoolPostCode,province:AC.parseProvince(t.province)}),!r.id){o(!1),i(`Error. Something went wrong.`);return}}catch{o(!1),i(`Error. Something went wrong.`);return}if(e.userTrialStatus===TC.BdmTrialAvailable){if(e.userType!==EC.Staff){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null});return}e.nextStep({step:`request-bdm-trial`,...t});return}try{let n={prospectId:r.id,email:e.email,userType:e.userType,appLink:e.pageAppLinkString,attribution:{...tf.getDecodedAttributionData(),utms:mf.getUtmParameters()}},i=await cw.createTrial(e.ajaxUrls,n);e.createOrUpdateProfile&&e.createOrUpdateProfile({masterId:i.id,email:e.email,countryCode:t?.country});let a={completionStep:`trial-status`,email:e.email,userId:i.id,prospectId:r.id,schoolName:t.schoolName,schoolLocality:t.schoolLocality,country:t.country,schoolType:t.schoolType,city:t.city,schoolPostCode:t.schoolPostCode,latitude:t.latitude,longitude:t.longitude,province:t.province,trialStatus:TC.Available,trialCreated:!0,customerId:i.data?.customerId};if(e?.userType===EC.Staff){await m(t=>{t||console.error(`Failed to submit create trial data to braze.`),e.complete(a)});return}e.complete(a)}catch(n){if(!n.body){o(!1),i(`Error. Something went wrong.`);return}let a=n;if(a.body.status===400&&a.body.type===`trial-not-available`){e.nextStep({step:`add-to-braze`,...t,prospectId:r.id,trialStatus:TC.Unavailable});return}console.error(n)}}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Tell us more about your school`}),(0,Q.jsx)(`p`,{children:`Please enter your school details.`})]}),(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsx)(`label`,{className:`d-block`,htmlFor:`school-name-input`,children:`Name of school`}),(0,Q.jsx)(`input`,{type:`text`,value:t?.schoolName||``,onChange:p,id:`school-name-input`,className:`form-control form-control-lg`,autoComplete:`off`,placeholder:`Enter name of school`,autoFocus:!0})]}),(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsx)(`label`,{className:`d-block`,htmlFor:`school-type-select`,children:`Type of school`}),(0,Q.jsxs)(`select`,{id:`school-type-select`,className:`form-select form-select-lg ${t.schoolType?``:`text-secondary`}`,autoComplete:`off`,value:t.schoolType||`none`,onChange:f,children:[(0,Q.jsx)(`option`,{value:`none`,className:`text-secondary`,disabled:!0,children:`Select type of school`}),s.map(e=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},e))]})]}),(0,Q.jsx)($C,{data:t,setData:u,clearData:d,disabled:!1,labelClassName:`d-block`,geoLocation:e.geoLocation,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!1,size:`lg`,useGeoLocationApi:!0}),r&&(0,Q.jsx)(`div`,{className:`text-danger mb-3`,children:r}),c()&&(0,Q.jsx)(bC,{className:`btn-lg w-100`,variant:`dark`,onClick:h,showSpinner:a,disabled:a,children:`Get started`})]})}function gw(e,t){return t?`${e} ${t}`:e}function _w(e){return(0,Q.jsx)(`h1`,{className:gw(`text-center mb-2 h4`,e.className),children:e.children})}function vw(e){return(0,Q.jsx)(`div`,{className:gw(`text-center text-sm px-2 px-lg-4`,e.className),children:e.children})}function yw(e){return(0,Q.jsx)(`p`,{className:gw(``,e.className),children:e.children})}var bw={Heading:_w,Body:vw,Message:yw};function xw(e){return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center my-4 px-2 px-lg-4`,children:(0,Q.jsx)(`img`,{src:{[TC.Available]:e.imageUrls.statusImages.available,[TC.Active]:e.imageUrls.statusImages.active,[TC.Expired]:e.imageUrls.statusImages.expired,[TC.NotRequired]:e.imageUrls.statusImages.notRequired,[TC.Unavailable]:e.imageUrls.statusImages.unavailable,[TC.Unsupported]:e.imageUrls.statusImages.unsupported,[TC.UserAutoJoinAllowed]:e.imageUrls.statusImages.notRequired,[TC.UserJoinApprovalRequired]:e.imageUrls.statusImages.notRequired,[TC.InvalidEmail]:``,[TC.BdmTrialAvailable]:``}[e.trialStatus],className:`w-100 h-auto`})})}function Sw(e){return Z.useEffect(()=>{e.logUserAction({},{actionType:WS.Create,descriptor:JS.TrialRequested,workflowPhase:qS.Complete})},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(xw,{trialStatus:TC.Available,imageUrls:e.imageUrls}),(0,Q.jsxs)(bw.Body,{className:`mb-3`,children:[(0,Q.jsx)(bw.Heading,{children:`Submitted!`}),(0,Q.jsx)(bw.Message,{children:`Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.`})]})]})}function Cw(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(xw,{trialStatus:TC.Available,imageUrls:e.imageUrls}),(0,Q.jsxs)(bw.Body,{className:`mb-3`,children:[(0,Q.jsx)(bw.Heading,{children:`You've requested access!`}),(0,Q.jsx)(bw.Message,{children:`We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.`})]})]})}var ww={Marketing:{au:`https://www.clickvieweducation.com/en-au`,us:`https://www.clickvieweducation.com`,nz:`https://www.clickview.co.nz`,uk:`https://www.clickview.co.uk`,ca:`https://www.clickvieweducation.com/en-ca`},Support:{au:`https://www.clickviewsupport.com/hc/en-au`,uk:`https://www.clickviewsupport.com/hc/en-au#gb`,nz:`https://www.clickviewsupport.com/hc/en-au#nz`,us:`https://www.clickviewsupport.com/hc/en-au#us`,ca:`https://www.clickviewsupport.com/hc/en-au#ca`}},Tw={[$.AU]:`/contact-us/sales`,[$.US]:`/contact-us/sales`,[$.NZ]:`/contact-us/`,[$.UK]:`/contact-us/trial`,[$.CA]:`/contact-us/sales`},Ew={[$.AU]:`/resources/free-student-resources`,[$.US]:`/resources/free-student-resources`,[$.NZ]:`/free-student-resources/`,[$.UK]:`/free-student-resources/`,[$.CA]:`/resources/free-student-resources`},Dw={getMarketingUrlForGeoLocation(e){let t=aC.getCountryCode(e?.countryCode);return ww.Marketing[t]||ww.Marketing.us},getMarketingSalesContactForGeoLocation(e){let t=aC.getCountryCode(e?.countryCode);return`${Dw.getMarketingUrlForGeoLocation(e)}${Tw[t]}`},getFreeResourcesForGeoLocation(e){let t=aC.getCountryCode(e?.countryCode);return`${this.getMarketingUrlForGeoLocation({countryCode:t})}${Ew[t]}`},getTermsAndConditionsLink(){return this.getMarketingUrlForGeoLocation($.US)+`/terms-and-conditions/`},getPrivacyPolicyLink(){return this.getMarketingUrlForGeoLocation($.US)+`/privacy-policy/`},getSupportUrlForGeoLocation(e){let t=aC.getCountryCode(e?.countryCode);return ww.Support[t]||ww.Support.us}};function Ow(e){let t=e?.previousStepIds&&e.previousStepIds[e.previousStepIds.length-1]===`find-school`,n=e?.schoolName||`Your school`;return(0,Q.jsxs)(bw.Body,{className:`mb-3`,children:[t?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(bw.Heading,{children:[n,(0,Q.jsx)(`br`,{}),`already has ClickView 🎉`]}),(0,Q.jsxs)(bw.Message,{className:`mt-3`,children:[`If your school has SSO\xA0`,(0,Q.jsx)(`a`,{href:e.getSignInUrl({email:e.email,customerId:e.customerId}),className:`info-link`,children:`click here to sign in.`})]}),(0,Q.jsx)(bw.Message,{children:`Otherwise please contact your school admin for access.`})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(bw.Heading,{children:`Good News!`}),(0,Q.jsxs)(bw.Message,{children:[`An account already exists for:`,(0,Q.jsx)(`br`,{}),` `,(0,Q.jsx)(`strong`,{children:e.email})]}),(0,Q.jsx)(bw.Message,{children:(0,Q.jsx)(`a`,{href:e.getSignInUrl({email:e.email}),className:`btn btn-dark btn-lg w-100`,children:`Sign into ClickView`})})]}),(0,Q.jsxs)(bw.Message,{children:[`Need Help?\xA0`,(0,Q.jsx)(`a`,{href:Dw.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,target:`_blank`,children:`Contact our Help Centre.`})]})]})}function kw(e){let t=Dw.getMarketingSalesContactForGeoLocation(e.geoLocation),n=e?.previousStepIds&&e.previousStepIds[e.previousStepIds.length-1]===`find-school`,r=e?.schoolName||`Your school`;return(0,Q.jsxs)(bw.Body,{children:[(0,Q.jsx)(bw.Heading,{children:n?`${r} trial has expired`:`Your trial has expired`}),(0,Q.jsxs)(bw.Message,{children:[`Please contact our\xA0`,(0,Q.jsx)(`a`,{href:t,className:`info-link`,target:`_blank`,children:`ClickView Sales Team`})]})]})}function Aw(e){let t=Dw.getMarketingSalesContactForGeoLocation(e.geoLocation);return(0,Q.jsxs)(bw.Body,{children:[(0,Q.jsxs)(bw.Heading,{children:[`Your school no longer`,(0,Q.jsx)(`br`,{}),` has access to ClickView`]}),(0,Q.jsxs)(bw.Message,{children:[`Please contact our `,(0,Q.jsx)(`a`,{href:t,className:`info-link`,children:`ClickView Sales Team`}),` for more information.`]})]})}function jw(){return(0,Q.jsxs)(bw.Body,{children:[(0,Q.jsxs)(bw.Heading,{className:`px-2 px-lg-4`,children:[`ClickView isn't currently `,(0,Q.jsx)(`br`,{}),` available for your school`]}),(0,Q.jsx)(bw.Message,{children:`We're working hard to get ClickView ready for more people.`})]})}var Mw=1;function Nw(e){let[t,n]=Z.useState(0),[r,i]=Z.useState(!1);async function a(r){r?.preventDefault();try{await cw.resendTrialEmail(e.ajaxUrls,e.userId,{email:e.email,appLink:e.pageAppLinkString}),n(t+1)}catch{i(!0)}e.logUserAction({},{actionType:WS.Click,descriptor:JS.ResendEmail})}function o(t){t?.preventDefault(),e.logUserAction({},{actionType:WS.Click,descriptor:JS.WrongEmail}),e.nextStep({step:`enter-email`,userType:e.userType})}if(e?.email)return(0,Q.jsxs)(bw.Body,{children:[(0,Q.jsx)(bw.Heading,{children:`Check your inbox!`}),(0,Q.jsxs)(bw.Message,{children:[`An email has been sent to `,(0,Q.jsx)(`strong`,{children:e.email}),`.`]}),!!e.userId&&(0,Q.jsxs)(Q.Fragment,{children:[t<Mw?(0,Q.jsx)(`button`,{onClick:a,className:`btn btn-outline-dark btn-lg mb-3`,children:`Resend verification email`}):(0,Q.jsx)(bw.Message,{children:`✅ Email has been resent!`}),(0,Q.jsxs)(bw.Message,{children:[`Wrong email?\xA0`,(0,Q.jsx)(`button`,{onClick:o,className:`btn info-link p-0 align-top border-0`,children:`Update email address`})]}),r&&(0,Q.jsxs)(bw.Message,{className:`mb-0 text-danger`,children:[`❌ There was a problem resending the email. Please try again later or contact our \xA0`,(0,Q.jsx)(`a`,{href:Dw.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,children:`support`})]})]})]})}var Pw={[TC.Available]:Nw,[TC.Active]:Ow,[TC.Expired]:kw,[TC.NotRequired]:Ow,[TC.Unavailable]:Aw,[TC.Unsupported]:jw,[TC.UserAutoJoinAllowed]:Ow,[TC.UserJoinApprovalRequired]:Ow,[TC.InvalidEmail]:null,[TC.BdmTrialAvailable]:null};function Fw(e){let t=Pw[e.trialStatus];return t?(0,Q.jsx)(t,{...e}):(0,Q.jsx)(Q.Fragment,{})}function Iw(e){return Z.useEffect(()=>{let t={actionType:WS.Create,descriptor:JS.DeadEnd,workflowPhase:qS.Discard};e.trialCreated&&(t.descriptor=JS.TrialCreated,t.workflowPhase=qS.Complete),e.logUserAction({},t)},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(xw,{trialStatus:e.trialStatus,imageUrls:e.imageUrls}),(0,Q.jsx)(Fw,{...e})]})}var Lw=`young-student`;function Rw(e){let t=Dw.getFreeResourcesForGeoLocation(e.geoLocation);return Z.useEffect(()=>{Gd.set(Lw,!0)},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(xw,{trialStatus:TC.Active,imageUrls:e.imageUrls}),(0,Q.jsxs)(bw.Body,{className:`mb-3`,children:[(0,Q.jsx)(bw.Heading,{children:`Discover our free content`}),(0,Q.jsx)(bw.Message,{children:`Click the button below to explore our videos`}),(0,Q.jsx)(`a`,{href:t,className:`btn btn-lg btn-dark w-100`,target:`_blank`,children:`Start watching now`})]})]})}var zw={"trial-status":Iw,"added-to-braze":Sw,"young-student":Rw,"requested-access":Cw};function Bw(e){let t=zw[e.completionStep];return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center flex-column mx-auto px-2`,children:(0,Q.jsx)(t,{...e})})}var Vw={day:`_day_n6ysn_1`,month:`_month_n6ysn_4`,year:`_year_n6ysn_7`},Hw=120,Uw=16;function Ww(e,t,n){let r=new Date(Gw(e,t,n));return!isNaN(+r)}function Gw(e,t,n){return`${e.padStart(4,`0`)}-${t.padStart(2,`0`)}-${n.padStart(2,`0`)}`}function Kw(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(``),[a,o]=Z.useState(``),[s,c]=Z.useState(null);function l(e){n(e.target.value),c(null)}function u(e){i(e.target.value),c(null)}function d(e){o(e.target.value),c(null)}function f(){return!t||!r||!a?(c(`Please enter your date of birth`),!1):Ww(a,r,t)?+a>m?(c(`Please enter a date in the past`),!1):+a<m-Hw?(c(`Please enter a realistic date of birth`),!1):!0:(c(`Please enter a valid date`),!1)}function p(n){if(n.preventDefault(),!f())return;let i=new Date(Gw(a,r,t)),o=m-Uw,s=new Date;if(s.setFullYear(o),i>s){e.complete({completionStep:`young-student`,trialCreated:!1,trialStatus:null});return}e.nextStep({step:`enter-email`,userType:e.userType})}let m=new Date().getFullYear(),h=`mx-2 d-inline-block text-start`,g=`form-control form-control-lg ${s?`is-invalid`:``}`,_=`order-0`,v=`order-3`,y=aC.isCountryCodeUS(e.geoLocation.countryCode);return y&&(_=`order-3`,v=`order-0`),(0,Q.jsxs)(`form`,{className:`text-center`,onSubmit:p,noValidate:!0,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Tell us a little about yourself`}),(0,Q.jsx)(`p`,{children:`Please enter your date of birth`}),(0,Q.jsxs)(`div`,{className:`my-4`,children:[(0,Q.jsxs)(`fieldset`,{className:`d-flex justify-content-center`,"aria-describedby":`dateOfBirthError`,children:[(0,Q.jsxs)(`div`,{className:`${h} ${_}`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`day`,children:`Day`}),(0,Q.jsx)(`input`,{id:`day`,type:`number`,className:`${g} ${Vw.day}`,min:`1`,max:`31`,placeholder:`DD`,value:t,onChange:l,autoFocus:!y,tabIndex:y?2:1})]}),(0,Q.jsx)(`span`,{className:`h1 fw-normal mt-3 mb-0 order-1 ${s?`text-danger`:``}`,children:`/`}),(0,Q.jsxs)(`div`,{className:`${h} ${v}`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`month`,children:`Month`}),(0,Q.jsx)(`input`,{id:`month`,type:`number`,className:`${g} ${Vw.month}`,min:`1`,max:`12`,placeholder:`MM`,value:r,onChange:u,autoFocus:y,tabIndex:y?1:2})]}),(0,Q.jsx)(`span`,{className:`h1 fw-normal mt-3 mb-0 order-4 ${s?`text-danger`:``}`,children:`/`}),(0,Q.jsxs)(`div`,{className:`${h} order-5`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`year`,children:`Year`}),(0,Q.jsx)(`input`,{id:`year`,name:`year`,type:`number`,className:`${g} ${Vw.year}`,min:m-120,max:m,placeholder:`YYYY`,value:a,onChange:d,tabIndex:3})]})]}),!!s&&(0,Q.jsx)(xf,{name:`dateofBirth`,children:s})]}),(0,Q.jsx)(`button`,{type:`submit`,className:`btn btn-lg btn-dark w-100`,children:`Continue`})]})}function qw(e){return(0,Q.jsxs)(Q.Fragment,{children:[`Have a ClickView account already?`,(0,Q.jsx)(`a`,{href:e.link,className:`info-link ms-1`,onClick:e.onClick,children:`Sign in`})]})}function Jw(){let e={},t=tf.getEncodedAttributionData();t&&(e.r=t);let n=mf.getUtmParameters();return n&&(e.utms=n),JSON.stringify(e)}var Yw=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),Xw={[$.AU]:`valerie.frizzle@school.edu.au`,[$.UK]:`valerie.frizzle@school.gov.uk`,[$.US]:`valerie.frizzle@school.gov`,[$.NZ]:`valerie.frizzle@school.nz`,[$.CA]:`valerie.frizzle@school.ca`},Zw={[$.AU]:`/contact-us/support`,[$.US]:`/contact-us/support`,[$.NZ]:`/contact-us/`,[$.UK]:`/contact-us/technical/`,[$.CA]:`/contact-us/support`};function Qw(e){return`${Dw.getMarketingUrlForGeoLocation(e)}${Zw[aC.getCountryCode(e?.countryCode)]}`}function $w(e){return Xw[aC.getCountryCode(e.countryCode)]||Xw.us}var eT=[TC.Expired,TC.NotRequired,TC.Unavailable,TC.Unsupported,TC.Active];function tT(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(e?.email||``),[a,o]=Z.useState(),s=Qw(e.geoLocation);async function c(){o(``);let t;try{t=await cw.checkTrialStatus(e.ajaxUrls,{email:r})}catch{o(`Something went wrong! Please try again later.`);return}if(t.status===TC.InvalidEmail){o(`Please use your school email address.`);return}if(e.logUserAction({},{actionType:WS.Click,workflowPhase:qS.Next,descriptor:JS.EnterEmail}),eT.includes(t.status)){e.complete({completionStep:`trial-status`,email:r,trialStatus:t.status,trialCreated:!1});return}try{let n=await cw.checkUserIdps(e.ajaxUrls,r);if(n.length){e.nextStep({step:`select-idp`,email:r,userTrialStatus:t.status,idps:n});return}}catch{o(`Something went wrong! Please try again later.`);return}e.nextStep({step:`find-school`,email:r,userTrialStatus:t.status})}function l(){e.logUserAction({},{actionType:WS.Click,descriptor:JS.ContactUs})}function u(){return r.length?Yw.test(r)?!0:(o(`Please use your school email address.`),!1):(o(`Please enter your school email address.`),!1)}function d(){e.logUserAction({},{actionType:WS.Click,descriptor:JS.SignIn})}function f(e){e.preventDefault(),i(e.target.value),o(``)}async function p(e){e?.preventDefault(),u()&&(n(!0),await c(),n(!1))}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Let's set up your account`}),(0,Q.jsx)(`p`,{children:`Enter your school email address`})]}),(0,Q.jsxs)(`form`,{onSubmit:p,noValidate:!0,children:[(0,Q.jsxs)(`div`,{className:`form-group mb-3`,children:[(0,Q.jsx)(Nf,{value:r,onChange:f,name:`email-input`,id:`email-input`,type:`email`,className:`form-control form-control-lg ${a?`is-invalid`:``}`,placeholder:$w(e.geoLocation),autoComplete:`false`,autoCorrect:`false`,autoFocus:!0,onClickClear:()=>i(``),"aria-errormessage":`email-inputError`}),a&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(xf,{name:`error-input`,children:a}),(0,Q.jsxs)(`small`,{children:[`Having an issue with your email?`,(0,Q.jsx)(`a`,{href:s,className:`info-link ps-1`,target:`_blank`,onClick:l,children:`Contact our team`})]})]})]}),(0,Q.jsx)(bC,{showSpinner:t,variant:`dark`,className:`btn-lg mb-3 w-100`,disabled:t,onClick:p,children:`Continue`})]}),e.userType===EC.Staff&&(0,Q.jsx)(bf,{idps:e.globalIdps,className:`mt-n3`,attribution:Jw()}),(0,Q.jsx)(`div`,{className:`text-center`,children:(0,Q.jsx)(qw,{link:e.getSignInUrl({email:r}),onClick:d})})]})}function nT(e){switch(e?.body?.type){case`user-type-not-supported`:return`Students may not request to join schools.`;case`join-request-already-pending`:return`Your request is awaiting administrator approval.`;case`join-request-already-denied`:return`Your request has been denied by an administrator.`;default:return`Something went wrong.`}}var rT=function(e){return e.MasterId=`master_id`,e.CrmId=`crm_id`,e.SalesforceId=`salesforce_id`,e}({});function iT(e){let[t,n]=Z.useState(null);async function r(){try{let t=(await aw.getLookups(e.ajaxUrls,e.prospectId)).find(e=>e.type===rT.MasterId)?.externalId;if(!t){n(`Something went wrong.`);return}await cw.createJoinRequest(e.ajaxUrls,{customerId:t,email:e.email}),e.logUserAction({},{actionType:WS.Click,descriptor:JS.RequestAccess}),e.complete({completionStep:`requested-access`,trialCreated:!1,trialStatus:TC.UserJoinApprovalRequired})}catch(e){n(nT(e))}}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(xw,{trialStatus:TC.UserJoinApprovalRequired,imageUrls:e.imageUrls}),(0,Q.jsx)(bw.Body,{className:`mb-3`,children:(0,Q.jsxs)(bw.Heading,{children:[e.schoolName,(0,Q.jsx)(`br`,{}),`already has ClickView 🎉`]})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,onClick:r,children:`Request access`}),t&&(0,Q.jsx)(`p`,{className:`text-danger text-center mb-2`,children:t}),(0,Q.jsxs)(bw.Message,{className:`text-center`,children:[`Need Help?\xA0`,(0,Q.jsx)(`a`,{href:Dw.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,target:`_blank`,children:`Contact our Help Centre.`})]})]})}var aT={checkEmail(e,t,n){return e.productName===Mx.Lite?iw.asyncFetch({url:e.brazeCheckEmail,method:ew.POST,data:{email:t,instanceRegion:n}}):Promise.reject()}};function oT(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({});function a(e){if(Up(e.jobTitle)){l();return}s(e)}function o(){let t=aC.getCountryCode(e.country||e.geoLocation?.countryCode);return aC.getInstanceRegion(t)}async function s(a){if(t)return;if(e.userType===EC.Learner){i({...r,submission:`Something went wrong! Please try again later.`});return}e.logUserAction({},{actionType:WS.Click,workflowPhase:qS.Next,descriptor:JS.RequestBdmTrial}),n(!0);let{firstName:s,surname:u}=oC(a.fullname);try{let t=await aT.checkEmail(e.ajaxUrls,e.email,o()),n={email:e.email,firstName:s,lastName:u,phone:a.phone,custom:{orgSubType:AC.getSchoolType(e?.schoolType),accountName:e?.schoolName,jobTitle:a.jobTitle,accountAddress:{countryCode:e?.country,province:AC.parseProvince(e?.province||``)},syncToCrm:t.users?.length===0?!0:void 0,source:AC.Sources.CV_PRODUCT_BDM_TRIAL_REQUESTED},event:{conversion:AC.Conversions.FREE_TRIAL_REQUEST}},r={prospect_id:e?.prospectId};e.logBrazeEvent({user:n,event:{eventType:kx.ProductFormEvent.BdmTrialRequested,additionalData:r,callback:c}})}catch{i({...r,submission:`Something went wrong! Please try again later.`})}Object.keys(r).length||l()}function c(e){i(e?{}:{...r,submission:`Something went wrong! Please try again later.`}),n(!1)}function l(){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null})}return(0,Q.jsx)(wC,{loading:t,errors:r,setErrors:i,country:e.country||e.geoLocation?.countryCode,logUserAction:e.logUserAction,handleSubmitForm:a,isTertiary:AC.isTertiarySchool(e.schoolType)})}function sT(e){let{loading:t,canSubmitForm:n,setSubmissionError:r,prospectStatus:i,userType:a,logStepEvent:o,logUserAction:s,nextStep:c,data:l,productName:u,ajaxUrls:d,complete:f,setLoadingState:p,email:m,userTrialStatus:h,pageAppLinkString:g,setProperty:_,logBrazeEvent:v,createOrUpdateProfile:y}=e;function b(){c({step:`add-to-braze`,trialStatus:i,...l}),o()}function x(){if(o(),a!==EC.Staff){f({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null});return}c({step:`request-bdm-trial`,...l})}function S(){c({step:`request-access`,...l}),o()}async function C(){try{await cw.createAutoJoinRequest(d,{prospectId:l.prospectId,email:m}),s({},{actionType:WS.Click,descriptor:JS.AutoJoin}),f({completionStep:`trial-status`,trialCreated:!0,trialStatus:TC.Available,...l})}catch{r(`Something went wrong! Please try again later.`),p(!1);return}}async function w(){let e;l?.prospectId&&i===TC.NotRequired&&(e=(await aw.getLookups(d,l.prospectId)).find(e=>e.type===rT.MasterId)?.externalId),f({completionStep:`trial-status`,trialStatus:i,trialCreated:!1,customerId:e,...l}),o()}function T(){return i===TC.Active||i===TC.Available?!0:i===TC.UserAutoJoinAllowed?u===Mx.Auth:!1}async function E(){if(a!==EC.Staff)return;let e={email:m,custom:{accountName:l?.schoolName,accountAddress:{countryCode:l?.country,province:AC.parseProvince(l.province)},orgSubType:AC.getSchoolType(l?.schoolType),syncToCrm:!0,source:AC.Sources.CV_PRODUCT_TRIAL_REQUESTED},event:{accountCountry:l?.country,accountPostCode:l?.schoolPostCode,accountState:AC.parseProvince(l.province)}},t={form_type:`trial-sign-up`,prospect_id:l?.prospectId};v({user:e,event:{eventType:kx.ProductFormEvent.FormSubmission,additionalData:t}})}async function D(){p(!0);let e;try{e=await cw.createTrial(d,{userType:a,email:m,prospectId:l?.prospectId,appLink:g,attribution:{...tf.getDecodedAttributionData(),utms:mf.getUtmParameters()}})}catch{r(`Something went wrong! Please try again later.`),p(!1);return}i===TC.UserAutoJoinAllowed&&s({},{actionType:WS.Click,descriptor:JS.AutoJoin}),_(`userId`,e.id),f({completionStep:`trial-status`,userId:e.id,trialCreated:!0,trialStatus:TC.Available,customerId:e.data?.customerId,...l}),E(),y&&y({masterId:e.id,email:m,countryCode:l?.country}),o()}return async function(){if(!t){if(!n()){r(`Something went wrong! Please try again later.`);return}if(h===TC.BdmTrialAvailable)return x();if(a===EC.Staff){if(i===TC.Unsupported)return b();if(i===TC.UserJoinApprovalRequired)return S();if(i===TC.UserAutoJoinAllowed&&u===Mx.Lite)return await C()}return T()?await D():await w()}}}var cT=50;function lT(e){return e.toLowerCase().split(` `).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function uT(e){let t=[];return e.city&&t.push(lT(e.city)),e.province&&t.push(e.province),e.postCode&&t.push(e.postCode),t.join(` `)}function dT(e){let{filteredSchoolsList:t,getSchoolName:n,onSchoolSuggestionClick:r,selectedIndex:i}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsxs)(Ff,{className:`${ZC.suggestionItem} ${i-1===t?ZC.selected:``}`,onKeyDown:t=>t.key===`Enter`&&r(e),onMouseDown:()=>r(e),onClick:()=>r(e),children:[n(e),` `,(0,Q.jsx)(`br`,{}),(0,Q.jsx)(`small`,{className:`text-secondary`,children:uT(e)})]},e.id))})}function fT(e){return(0,Q.jsx)(`div`,{className:`info-link ${ZC.suggestionItem} ${ZC.noSuggestion} ${e.selected?ZC.selected:``}`,onKeyDown:t=>t.key===`Enter`&&e.handleNoSuggestion(),onMouseDown:e.handleNoSuggestion,onClick:e.handleNoSuggestion,children:`Can't find your school?`})}function pT(e){let t=Z.useRef(null),[n,r]=Z.useState(!0),[i,a]=Z.useState(e.data.schoolName&&e.data.schoolPostCode?e.data.schoolName+`, `+e.data.schoolPostCode:e.data.schoolName?e.data.schoolName:``),[o,s]=Z.useState(),c=JC(i,250),{selectedIndex:l,onKeyDown:u,containerRef:d,hide:f,onBlur:p,onFocus:m}=Pf({onSelected:h,itemCount:(o?.length??0)+1,hideOnBlur:e.hideOnBlur});function h(t){if(!o&&!t)return;if(t===o.length){e.onClickNoSuggestions(i);return}let n=o[t];n&&C(n)}let g=!!e.data?.prospectId,_=n&&!g,v=!n&&!g&&o?.length<cT,y=o?.length&&!g;Z.useEffect(()=>{if(!g){if(!c.length){S();return}if(!g&&c.length>1&&c===i){S(c);return}}},[c,g]);function b(t){(e.data.schoolName||e.data.prospectId)&&e.clearData(),t!==i&&a(t)}function x(){b(``),t.current.focus()}function S(t){if(!e.data.latitude&&!e.data.longitude){r(!1);return}r(!0);let n={latitude:e.data.latitude,longitude:e.data.longitude};t&&t.length&&(n.query=t),aw.search(e.searchUrl,n,e=>s(e),null,()=>r(!1))}function C(t){a(w(t)),e.setData({prospectId:t.id,schoolName:t.name,schoolPostCode:t.postCode,schoolType:t.prospectType,province:t.province,city:t.city,country:t.countryCode})}function w(e){return e.name}let T=(y||_||v)&&!e.disabled&&!f,E=!_&&!v&&o?.length>=cT,D=`form-control`,O=`form-group position-relative`;return e.size===`lg`&&(D+=` form-control-lg`,O+=` ${ZC.large}`),(0,Q.jsxs)(`div`,{className:O,children:[(0,Q.jsxs)(`label`,{className:e.labelClassName,htmlFor:`school-input`,children:[`School`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsx)(Nf,{id:`school-input`,value:i,onChange:e=>b(e.currentTarget.value),ref:t,className:D,type:`text`,autoComplete:`off`,placeholder:e.placeholder||`Search for your school`,disabled:e.disabled,autoFocus:!0,onClickClear:x,onKeyDown:u,onFocus:m,onBlur:p}),(0,Q.jsx)(`div`,{className:`position-absolute z-1 w-100 ${ZC.dropdown} ${f?`d-none`:``}`,children:(0,Q.jsx)(`div`,{className:`${ZC.suggestionContainer} ${T?``:`d-none`}`,children:(0,Q.jsxs)(`div`,{className:ZC.suggestionContainerInner,ref:d,children:[y?(0,Q.jsx)(dT,{filteredSchoolsList:o,onSchoolSuggestionClick:C,getSchoolName:w,selectedIndex:l}):_&&(0,Q.jsx)(`div`,{className:`${ZC.suggestionLoading} py-4 d-flex justify-content-center`,children:(0,Q.jsx)(yC,{animation:`border`})}),E&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`hr`,{className:`my-0`}),(0,Q.jsx)(`div`,{className:`${ZC.suggestionItem} ${ZC.noSuggestion} text-secondary text-center`,children:(0,Q.jsxs)(`small`,{children:[`Can't find your school? `,(0,Q.jsx)(`br`,{}),` Try searching to narrow the results`]})})]}),!_&&v&&(0,Q.jsx)(fT,{selected:l===o.length+1,handleNoSuggestion:()=>{e.onClickNoSuggestions(i)}})]})})})]})}function mT(e){return e?.toLowerCase()===`au`?`Enter your school postcode or suburb`:e?.toLowerCase()===`us`?`Enter your school ZIP code or city`:e?.toLowerCase()===`ca`?`Enter your school postal code or city`:`Enter your school postcode or city`}function hT(e){let{email:t,userType:n}=e,[r,i]=Z.useState({schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province,prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolPostCode:e.schoolPostCode}),[a,o]=Z.useState(e.trialStatus),[s,c]=Z.useState(),[l,u]=Z.useState(!1),[d,f]=Z.useState(!1),[p,m]=Z.useState(!1),h=sT({...e,prospectStatus:a,loading:l,data:r,canSubmitForm:_,setSubmissionError:c,logStepEvent:v,setLoadingState:y,setProperty:b});function g(){return!!(r&&r.schoolLocality&&r.longitude&&r.latitude)}function _(){if(!r||!t||!n)return!1;let{prospectId:e}=r;return!!(t&&n&&e)}function v(){let t={actionType:WS.Click,descriptor:JS.FindSchool,workflowPhase:qS.Next};e.logUserAction(r||{},t)}function y(e){f(e),m(e),u(e)}function b(t,n){t===`prospectId`&&n&&(u(!0),cw.checkProspectTrialStatus(e.ajaxUrls,{prospectId:n.toString(),email:e.email},e=>{o(e.status)},()=>{console.log(`error`)},()=>{u(!1)})),i(e=>({...e,[t]:n}))}function x(){b(`schoolLocality`,void 0),b(`longitude`,void 0),b(`latitude`,void 0),b(`city`,void 0),b(`province`,void 0),b(`country`,void 0),S()}function S(){b(`prospectId`,void 0),b(`schoolName`,``),b(`schoolPostCode`,void 0),c(void 0)}function C(t){e.nextStep({step:`cant-find-school`,prospectId:r.prospectId,schoolName:t,schoolLocality:r.schoolLocality,longitude:r.longitude,latitude:r.latitude,country:r.country,city:r.city,province:r.province}),e.logUserAction({},{actionType:WS.Click,descriptor:JS.CantFindSchool,workflowPhase:qS.Next})}function w(e){b(`prospectId`,e.prospectId),b(`schoolName`,e.schoolName),b(`schoolPostCode`,e.schoolPostCode),b(`schoolType`,e.schoolType),b(`province`,e.province),b(`city`,e.city),b(`country`,e.country)}function T(e){let{longitude:t,latitude:n,schoolLocality:r,country:i,city:a,province:o}=e;t&&b(`longitude`,t),n&&b(`latitude`,n),i&&b(`country`,i),a&&b(`city`,a),o&&b(`province`,o),r&&b(`schoolLocality`,r)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Let's find your school`}),(0,Q.jsx)(`p`,{children:mT(e.geoLocation?.countryCode)})]}),(0,Q.jsx)($C,{data:r,setData:T,clearData:x,disabled:d,geoLocation:e.geoLocation,labelClassName:`d-none`,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!0,size:`lg`,useGeoLocationApi:!0}),g()&&(0,Q.jsx)(pT,{data:r,setData:w,clearData:S,disabled:p,searchUrl:e.ajaxUrls.searchProspect,onClickNoSuggestions:C,size:`lg`,labelClassName:`d-none`}),s&&(0,Q.jsx)(`p`,{className:`text-danger mb-2`,children:s}),_()&&(0,Q.jsx)(bC,{className:`btn-lg w-100`,variant:`dark`,onClick:h,showSpinner:d||p||l,disabled:d||p||l,children:`Get started`})]})}var gT=[`38A2E8`,`7A76E8`,`40BCC3`,`F7847B`];function _T(e){let[t,n]=Z.useState(null);function r(e){if(!e)return;let t=window.location.pathname+window.location.search;window.location.href=`/challenge?idp=${e.id}&redirectUrl=`+encodeURIComponent(t)}function i(){e.logUserAction({},{actionType:WS.Click,workflowPhase:qS.Next,descriptor:JS.SkipIdpSelect}),e.nextStep({step:`find-school`,email:e.email,userTrialStatus:e.userTrialStatus})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Does your school already have ClickView?`}),(0,Q.jsx)(`p`,{children:`Find your school from the list below`})]}),e.idps.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Rf,{id:`idp`,item:t,items:e.idps,onSelect:n,getName:e=>e.name,clearData:()=>n(null),placeholder:`Select a school`,size:`lg`}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,disabled:!t,onClick:()=>r(t),children:`Continue`})]}):e.idps.map((e,t)=>(0,Q.jsx)(`button`,{className:`btn btn-lg w-100 mb-3`,onClick:()=>r(e),style:{backgroundColor:`#${gT[t%gT.length]}`,color:`#FFF`},children:e.name},t)),(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 no-sso-link`,onClick:i,children:`My school does not have ClickView`})]})}var vT={userTypeOption:`_userTypeOption_egazo_1`,selected:`_selected_egazo_8`,mobileButtons:`_mobileButtons_egazo_13`};function yT(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(Ff,{className:`
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Lt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Rt={removeEmptyKeys:function(e){var t=this;if(Array.isArray(e))return e;var n=Object.assign({},e);return Object.entries(n).filter((function(e){var t=It(e,2)[1];return!(t==null||typeof t==`string`&&!t.length||Ft(t)===`object`&&Object.keys(t).length===0)})).reduce((function(e,n){var r,i,a,o=It(n,2),s=o[0],c=o[1];return Object.assign(Object.assign({},e),(r={},i=s,a=c===Object(c)?t.removeEmptyKeys(c):c,(i=function(e){var t=function(e,t){if(Ft(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ft(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ft(t)==`symbol`?t:t+``}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r))}),{})}};function zt(e){return zt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zt(e)}function Bt(e,t,n){return(t=function(e){var t=function(e,t){if(zt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(zt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return zt(t)==`symbol`?t:t+``}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vt={getDefaultUserAttributes:function(e){var t;return Rt.removeEmptyKeys((Bt(t={},vt.Email,e.email),Bt(t,vt.FirstName,e?.firstName),Bt(t,vt.LastName,e?.lastName),Bt(t,vt.Phone,e?.phone),t))},getCustomUserAttributesWithoutSource:function(e){var t,n=Rt.removeEmptyKeys({province:e?.custom?.accountAddress?.province,country_code:e?.custom?.accountAddress?.countryCode}),r=(Bt(t={},yt.AccountName,e?.custom?.accountName),Bt(t,yt.AccountType,e?.custom?.accountType),Bt(t,yt.CrmId,e?.custom?.crmId),Bt(t,yt.Department,e?.custom?.department),Bt(t,yt.JobTitle,e?.custom?.jobTitle),Bt(t,yt.MasterId,e?.custom?.masterId),Bt(t,yt.OrgSubType,e?.custom?.orgSubType),Bt(t,yt.OrgType,e?.custom?.orgType),Bt(t,yt.SyncToCrm,e?.custom?.syncToCrm),t);return Fe.accountAddress(n)&&(r[yt.AccountAddress]=n),Rt.removeEmptyKeys(r)},getCustomUserAttributes:function(e){var t=Vt.getCustomUserAttributesWithoutSource(e);return Rt.removeEmptyKeys(Object.assign(Object.assign({},t),Bt({},yt.Source,function(e){if(e.custom?.source&&e.custom.source.length){var t=Object.keys(Vt.getDefaultUserAttributes(e)),n=Object.keys(Vt.getCustomUserAttributesWithoutSource(e));return{$add:[{name:e.custom.source,attributes:[].concat(t,n)}]}}Y(`No source provided for braze user.`)}(e))))},getEventUserAttributes:function(e){var t;return Rt.removeEmptyKeys((Bt(t={},bt.AccountCity,e?.event?.accountCity),Bt(t,bt.AccountCountry,e?.event?.accountCity),Bt(t,bt.AccountPostCode,e?.event?.accountPostCode),Bt(t,bt.AccountState,e?.event?.accountState),Bt(t,bt.ContactUsComment,e?.event?.contactUsComment),Bt(t,bt.Conversion,e?.event?.conversion),Bt(t,bt.HowCanWeHelp,e?.event?.howCanWeHelp),Bt(t,bt.ReasonForInterest,e?.event?.reasonForInterest),Bt(t,bt.ReferredBy,e?.event?.referredBy),Bt(t,bt.ReferredBySchool,e?.event?.referredBySchool),Bt(t,bt.ReferralSubmittedBy,e?.event?.referralSubmittedBy),t))},getExtraUserAttributes:function(e){return zt(e.extra)===`object`?Rt.removeEmptyKeys(e.extra):{}},getPayload:function(e){if(!e)return{};var t=Vt.getDefaultUserAttributes(e),n=Vt.getCustomUserAttributes(e),r=Vt.getEventUserAttributes(e),i=Vt.getExtraUserAttributes(e),a=Fe.additionalData(i),o=Object.assign(Object.assign(Object.assign({},t),n),r);return a?Object.assign(Object.assign({},o),i):o},getEmailHash:function(e){var t=e.trim().toLowerCase();return Pt().hash(t)}};function Ht(e){return Ht=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ht(e)}function Ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Wt(r.key),r)}}function Wt(e){var t=function(e,t){if(Ht(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,`string`);if(Ht(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e);return Ht(t)==`symbol`?t:t+``}var Gt=function(){function e(t){var n=t.apiOptions,r=t.shouldInitialize,i=r===void 0||r,a=t.allowAnonymous,o=a!==void 0&&a,s=t.subscriptions;(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.initialized=!1,this.apiOptions=n,this.subscriptions=s,this.allowAnonymous=o,i&&this.initialize()}var t,n;return t=e,(n=[{key:`initialize`,value:function(){var e=this;this.isInitialized()?function(e){var t=[...arguments].slice(1);console.warn(e,t)}(`BrazeClient has already been initialized!`):(this.apiClient=Be.getInstance(this.apiOptions),this.cardsModule=new $e({apiClient:this.apiClient}),this.bamModule=new St({apiClient:this.apiClient}),this.eventModule=new Mt({apiClient:this.apiClient,getPayload:function(){return Vt.getPayload(e.user)}}),this.initialized=!0)}},{key:`isInitialized`,value:function(){return this.initialized}},{key:`getUser`,value:function(){return this.isInitialized()?this.validateUser()?this.user:null:(ke(`BrazeClient has not been initialized.`),null)}},{key:`card`,get:function(){return this.isInitialized()?this.cardsModule:(ke(`BrazeClient has not been initialized.`),null)}},{key:`bam`,get:function(){return this.isInitialized()?this.bamModule:(ke(`BrazeClient has not been initialized.`),null)}},{key:`event`,get:function(){return this.isInitialized()?this.allowAnonymous||this.validateUser()?this.eventModule:(ke("Anon events are disabled! Please invoke `setUser` before logging events!"),null):(ke(`BrazeClient has not been initialized.`),null)}},{key:`setUser`,value:function(e){this.isInitialized()?(this.user=e,this.startSession(),this.logUserAttributes()):ke("Trying to `setUser` but the client has not been initialized")}},{key:`setUserInit`,value:function(e){this.isInitialized()||this.initialize(),this.setUser(e)}},{key:`allowAnonymousSessions`,value:function(){this.allowAnonymous=!0}},{key:`api`,value:function(){return this.isInitialized()?this.apiClient:null}},{key:`setEmailNotificationSubscriptionType`,value:function(e){return this.isInitialized()&&this.validateUser()?this.apiClient.setUserEmailNotificationSubscriptionType(e):null}},{key:`validateUser`,value:function(){return!!this.user||(ke(`No user has been set!`),!1)}},{key:`startSession`,value:function(){this.allowAnonymous||this.validateUser()?(this.enableSubscriptions(),this.user&&this.apiClient.setUser(Vt.getEmailHash(this.user.email)),this.apiClient.openSession()):ke(`No user provided and cannot start anonymous sessions!`)}},{key:`enableSubscriptions`,value:function(){var e,t;(e=this.subscriptions)!=null&&e.subscribeToInAppMessage&&typeof this.subscriptions.subscribeToInAppMessage==`function`&&this.apiClient.subscribeToInAppMessage(this.subscriptions.subscribeToInAppMessage),(t=this.subscriptions)!=null&&t.subscribeToContentCards&&typeof this.subscriptions.subscribeToContentCards==`function`&&this.apiClient.subscribeToContentCardUpdate(this.subscriptions.subscribeToContentCards)}},{key:`logUserAttributes`,value:function(){if(this.validateUser()){this.apiClient.setUserEmail(this.user.email),this.user.firstName&&this.apiClient.setUserFirstName(this.user.firstName),this.user.lastName&&this.apiClient.setUserLastName(this.user.lastName),this.user.phone&&this.apiClient.setUserPhone(this.user.phone),this.user.country&&this.apiClient.setUserCountry(this.user.country);var e=Vt.getCustomUserAttributes(this.user);this.apiClient.bulkSetCustomUserAttributes(e)}}}])&&Ut(t.prototype,n),Object.defineProperty(t,`prototype`,{writable:!1}),e}();function Kt(e){return Be.getInstance(e)}})(),a})()))}))();function lx(e){(0,Z.useEffect)(()=>{let t=ux(e?.additionalData);t?.attributionData&&tf.setAttributionData(t.attributionData),t?.utms&&mf.setUtmParameters(t.utms)},[])}function ux(e){if(!e?.attribution?.length)return null;try{let{r:t,utms:n}=JSON.parse(e.attribution);return{attributionData:tf.decodeRValue(t),utms:n}}catch(e){let t=e instanceof Error?e.message:e?.toString();console.error(t)}}var dx=function(e){return e.Lite=`lite`,e.Auth=`auth`,e}({});function fx(e){return{productName:dx.Auth,prospectStatus:t=>`${e}/v1/prospects/${t}/trial-status`,createTrial:`/ajax/trials/new`,searchProspect:`${e}/v1/search/prospects`,createProspect:`/ajax/trials/prospects`,prospectLookups:t=>`${e}/v1/prospects/${t}/lookups`,joinRequest:`/ajax/trials/join-request`}}var px=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,mx=`UINT8ARRAY not supported by this environment`;function hx(e,t,n,r){let i,a,o,s=t||[0],c=(n||=0)>>>3,l=r===-1?3:0;for(i=0;i<e.length;i+=1)o=i+c,a=o>>>2,s.length<=a&&s.push(0),s[a]|=e[i]<<8*(l+o%4*r);return{value:s,binLen:8*e.length+n}}function gx(e,t,n){switch(t){case`UTF8`:case`UTF16BE`:case`UTF16LE`:break;default:throw Error(`encoding must be UTF8, UTF16BE, or UTF16LE`)}switch(e){case`HEX`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s;if(e.length%2!=0)throw Error(`String of HEX type must be in byte increments`);let c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(i=0;i<e.length;i+=2){if(a=parseInt(e.substr(i,2),16),isNaN(a))throw Error(`String of HEX type contains invalid characters`);for(s=(i>>>1)+l,o=s>>>2;c.length<=o;)c.push(0);c[o]|=a<<8*(u+s%4*r)}return{value:c,binLen:4*e.length+n}}(e,t,r,n)};case`TEXT`:return function(e,r,i){return function(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=0,m=n||[0],h=(r||=0)>>>3;if(t===`UTF8`)for(d=i===-1?3:0,s=0;s<e.length;s+=1)for(a=e.charCodeAt(s),o=[],128>a?o.push(a):2048>a?(o.push(192|a>>>6),o.push(128|63&a)):55296>a||57344<=a?o.push(224|a>>>12,128|a>>>6&63,128|63&a):(s+=1,a=65536+((1023&a)<<10|1023&e.charCodeAt(s)),o.push(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|63&a)),c=0;c<o.length;c+=1){for(u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=o[c]<<8*(d+u%4*i),p+=1}else for(d=i===-1?2:0,f=t===`UTF16LE`&&i!==1||t!==`UTF16LE`&&i===1,s=0;s<e.length;s+=1){for(a=e.charCodeAt(s),!0===f&&(c=255&a,a=c<<8|a>>>8),u=p+h,l=u>>>2;m.length<=l;)m.push(0);m[l]|=a<<8*(d+u%4*i),p+=2}return{value:m,binLen:8*p+r}}(e,t,r,i,n)};case`B64`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c,l,u,d=0,f=t||[0],p=(n||=0)>>>3,m=r===-1?3:0,h=e.indexOf(`=`);if(e.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw Error(`Invalid character in base-64 string`);if(e=e.replace(/=/g,``),h!==-1&&h<e.length)throw Error(`Invalid '=' found in base-64 string`);for(a=0;a<e.length;a+=4){for(c=e.substr(a,4),s=0,o=0;o<c.length;o+=1)i=px.indexOf(c.charAt(o)),s|=i<<18-6*o;for(o=0;o<c.length-1;o+=1){for(u=d+p,l=u>>>2;f.length<=l;)f.push(0);f[l]|=(s>>>16-8*o&255)<<8*(m+u%4*r),d+=1}}return{value:f,binLen:8*d+n}}(e,t,r,n)};case`BYTES`:return function(e,t,r){return function(e,t,n,r){let i,a,o,s,c=t||[0],l=(n||=0)>>>3,u=r===-1?3:0;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),s=a+l,o=s>>>2,c.length<=o&&c.push(0),c[o]|=i<<8*(u+s%4*r);return{value:c,binLen:8*e.length+n}}(e,t,r,n)};case`ARRAYBUFFER`:return function(e,t,r){return function(e,t,n,r){return hx(new Uint8Array(e),t,n,r)}(e,t,r,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(mx)}return function(e,t,r){return hx(e,t,r,n)};default:throw Error(`format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function _x(e,t,n,r){switch(e){case`HEX`:return function(e){return function(e,t,n,r){let i=`0123456789abcdef`,a,o,s=``,c=t/8,l=n===-1?3:0;for(a=0;a<c;a+=1)o=e[a>>>2]>>>8*(l+a%4*n),s+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?s.toUpperCase():s}(e,t,n,r)};case`B64`:return function(e){return function(e,t,n,r){let i,a,o,s,c,l=``,u=t/8,d=n===-1?3:0;for(i=0;i<u;i+=3)for(s=i+1<u?e[i+1>>>2]:0,c=i+2<u?e[i+2>>>2]:0,o=(e[i>>>2]>>>8*(d+i%4*n)&255)<<16|(s>>>8*(d+n*((i+1)%4))&255)<<8|c>>>8*(d+n*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=t?px.charAt(o>>>6*(3-a)&63):r.b64Pad;return l}(e,t,n,r)};case`BYTES`:return function(e){return function(e,t,n){let r,i,a=``,o=t/8,s=n===-1?3:0;for(r=0;r<o;r+=1)i=e[r>>>2]>>>8*(s+r%4*n)&255,a+=String.fromCharCode(i);return a}(e,t,n)};case`ARRAYBUFFER`:return function(e){return function(e,t,n){let r,i=t/8,a=new ArrayBuffer(i),o=new Uint8Array(a),s=n===-1?3:0;for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(s+r%4*n)&255;return a}(e,t,n)};case`UINT8ARRAY`:try{new Uint8Array}catch{throw Error(mx)}return function(e){return function(e,t,n){let r,i=t/8,a=n===-1?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=e[r>>>2]>>>8*(a+r%4*n)&255;return o}(e,t,n)};default:throw Error(`format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY`)}}function vx(e){let t={outputUpper:!1,b64Pad:`=`,outputLen:-1},n=e||{},r=`Output length must be a multiple of 8`;if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw Error(r);t.outputLen=n.shakeLen}if(typeof t.outputUpper!=`boolean`)throw Error(`Invalid outputUpper formatting option`);if(typeof t.b64Pad!=`string`)throw Error(`Invalid b64Pad formatting option`);return t}var yx=class{constructor(e,t,n){let r=n||{};if(this.t=t,this.i=r.encoding||`UTF8`,this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw Error(`numRounds must a integer >= 1`);this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.p=!1,this.U=[],this.R=[]}update(e){let t,n=0,r=this.T>>>5,i=this.F(e,this.h,this.u),a=i.binLen,o=i.value,s=a>>>5;for(t=0;t<s;t+=r)n+this.T<=a&&(this.m=this.g(o.slice(t,t+r),this.m),n+=this.T);return this.A+=n,this.h=o.slice(n>>>5),this.u=a%this.T,this.l=!0,this}getHash(e,t){let n,r,i=this.B,a=vx(t);if(this.v){if(a.outputLen===-1)throw Error(`Output length must be specified in options`);i=a.outputLen}let o=_x(e,i,this.H,a);if(this.p&&this.C)return o(this.C(a));for(r=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),i),n=1;n<this.numRounds;n+=1)this.v&&i%32!=0&&(r[r.length-1]&=16777215>>>24-i%32),r=this.Y(r,i,0,this.L(this.o),i);return o(r)}setHMACKey(e,t,n){if(!this.M)throw Error(`Variant does not support HMAC`);if(this.l)throw Error(`Cannot set MAC key after calling update`);let r=gx(t,(n||{}).encoding||`UTF8`,this.H);this.N(r(e))}N(e){let t=this.T>>>3,n=t/4-1,r;if(this.numRounds!==1)throw Error(`Cannot set numRounds with MAC`);if(this.p)throw Error(`MAC key already set`);for(t<e.binLen/8&&(e.value=this.Y(e.value,e.binLen,0,this.L(this.o),this.B));e.value.length<=n;)e.value.push(0);for(r=0;r<=n;r+=1)this.U[r]=909522486^e.value[r],this.R[r]=1549556828^e.value[r];this.m=this.g(this.U,this.m),this.A=this.T,this.p=!0}getHMAC(e,t){let n=vx(t);return _x(e,this.B,this.H,n)(this.S())}S(){let e;if(!this.p)throw Error(`Cannot call getHMAC without first setting MAC key`);let t=this.Y(this.h.slice(),this.u,this.A,this.I(this.m),this.B);return e=this.g(this.R,this.L(this.o)),e=this.Y(t,this.B,this.T,e,this.B),e}};function bx(e,t){return e<<t|e>>>32-t}function xx(e,t,n){return e^t^n}function Sx(e,t,n){return e&t^e&n^t&n}function Cx(e,t){let n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function wx(e,t,n,r,i){let a=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function Tx(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Ex(e,t){let n,r,i,a,o,s,c,l=[];for(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=0;c<80;c+=1)l[c]=c<16?e[c]:bx(l[c-3]^l[c-8]^l[c-14]^l[c-16],1),s=c<20?wx(bx(n,5),(u=r)&i^~u&a,o,1518500249,l[c]):c<40?wx(bx(n,5),xx(r,i,a),o,1859775393,l[c]):c<60?wx(bx(n,5),Sx(r,i,a),o,2400959708,l[c]):wx(bx(n,5),xx(r,i,a),o,3395469782,l[c]),o=a,a=i,i=bx(r,30),r=n,n=s;var u;return t[0]=Cx(n,t[0]),t[1]=Cx(r,t[1]),t[2]=Cx(i,t[2]),t[3]=Cx(a,t[3]),t[4]=Cx(o,t[4]),t}function Dx(e,t,n,r){let i,a=15+(t+65>>>9<<4),o=t+n;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&o,e[a-1]=o/4294967296|0,i=0;i<e.length;i+=16)r=Ex(e.slice(i,i+16),r);return r}var Ox=class extends yx{constructor(e,t,n){if(e!==`SHA-1`)throw Error(`Chosen SHA variant is not supported`);super(e,t,n);let r=n||{};this.M=!0,this.C=this.S,this.H=-1,this.F=gx(this.t,this.i,this.H),this.g=Ex,this.I=function(e){return e.slice()},this.L=Tx,this.Y=Dx,this.m=[1732584193,4023233417,2562383102,271733878,3285377520],this.T=512,this.B=160,this.v=!1,r.hmacKey&&this.N(function(e,t,n,r){let i=e+` must include a value and format`;if(!t){if(!r)throw Error(i);return r}if(t.value===void 0||!t.format)throw Error(i);return gx(t.format,t.encoding||`UTF8`,n)(t.value)}(`hmacKey`,r.hmacKey,this.H))}},kx=function(e){return e.CvApSoutheast1=`cv-ap-southeast-1`,e.CvApSoutheast2=`cv-ap-southeast-2`,e.CvEuWest1=`cv-eu-west-1`,e.CvNaWest1=`cv-na-west-1`,e}({}),Ax={CvApSoutheast1:{systemName:kx.CvApSoutheast1},CvApSoutheast2:{systemName:kx.CvApSoutheast2},CvEuWest1:{systemName:kx.CvEuWest1},CvNaWest1:{systemName:kx.CvNaWest1}},jx=function(e){return e.Staff=`Staff`,e.Learner=`Learner`,e.Unknown=`Unknown`,e.System=`System`,e}({}),Mx=3,Nx=5e3,Px=6,Fx={},Ix=class{constructor(e){this.key=e.toString()}getCount(){return Fx[this.key]||0}increment(){Fx[this.key]=this.getCount()+1}reset(){delete Fx[this.key]}shouldBreak(){return this.getCount()>=Px}},Lx=class{constructor(){this.attempt=0}async wait(){await new Promise(e=>setTimeout(e,Nx*2**this.attempt)),this.attempt++}};async function Rx(e,t){let n=new Lx,r=new Ix(e);async function i(){let n=await fetch(e,t);if(n.status>=500&&!r.shouldBreak())throw Error(`Server error: ${n.status}`);return n.ok&&r.reset(),n}for(let e=1;e<=Mx;e++)try{return await i()}catch(t){if(e>=Mx||r.shouldBreak())throw t;r.increment(),await n.wait()}}var zx,Bx=new Uint8Array(16);function Vx(){if(!zx&&(zx=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<`u`&&typeof msCrypto.getRandomValues==`function`&&msCrypto.getRandomValues.bind(msCrypto),!zx))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return zx(Bx)}var Hx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ux(e){return typeof e==`string`&&Hx.test(e)}for(var Wx=[],Gx=0;Gx<256;++Gx)Wx.push((Gx+256).toString(16).substr(1));function Kx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Wx[e[t+0]]+Wx[e[t+1]]+Wx[e[t+2]]+Wx[e[t+3]]+`-`+Wx[e[t+4]]+Wx[e[t+5]]+`-`+Wx[e[t+6]]+Wx[e[t+7]]+`-`+Wx[e[t+8]]+Wx[e[t+9]]+`-`+Wx[e[t+10]]+Wx[e[t+11]]+Wx[e[t+12]]+Wx[e[t+13]]+Wx[e[t+14]]+Wx[e[t+15]]).toLowerCase();if(!Ux(n))throw TypeError(`Stringified UUID is invalid`);return n}function qx(e,t,n){e||={};var r=e.random||(e.rng||Vx)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Kx(r)}function Jx(e){if(!Ux(e))throw TypeError(`Invalid UUID`);return parseInt(e.substr(14,1),16)}var Yx=`cv:session:`,Xx=`cv:window:v2:`,Zx=1e3*60*30,Qx=4;function $x(e){if(e===Bd.LocalStorage)return Gd.isAvailable()?Gd:qd;if(e===Bd.SessionStorage)return Kd.isAvailable()?Kd:qd}function eS(e){return new Date().getTime()+e}function tS(){return qx()}function nS(e,t){return e+(t||`0`)}function rS(e){return new Date().getTime()>e}function iS(e){return!(typeof e!=`object`||typeof e?.id!=`string`||!Ux(e.id)||Jx(e.id)!==Qx||typeof e?.ttl!=`number`||e?.ttl<=0||isNaN(e?.ttl))}function aS(e,t,n){let r=$x(n),i=nS(e,t),a=r.get(i);return!iS(a)||rS(a?.ttl)?null:a}function oS(e,t,n,r){let i=$x(n),a=nS(e,t),o={id:tS(),ttl:eS(r)};return i.set(a,o),o}function sS(e,t,n,r,i){let a=$x(n),o=nS(e,t);a.set(o,{id:r.id,ttl:eS(i)})}function cS(e,t,n){let r=$x(n);if(!r?.isAvailable())return;let i=nS(e,t);r.remove(i)}var lS=null,uS={getClientSessionData(e){let t=aS(Yx,e,Bd.LocalStorage);t?sS(Yx,e,Bd.LocalStorage,t,Zx):t=oS(Yx,e,Bd.LocalStorage,Zx);let n=aS(Xx,e,Bd.SessionStorage);return n?lS===null&&sS(Xx,e,Bd.SessionStorage,n,Zx):n=oS(Xx,e,Bd.SessionStorage,lS??Zx),{id:t.id,windowId:n.id}},resetClientSession(e){cS(Yx,e,Bd.LocalStorage),cS(Xx,e,Bd.SessionStorage)},lockWindowSession(e,t){lS=t;let n=aS(Xx,e,Bd.SessionStorage);n&&sS(Xx,e,Bd.SessionStorage,n,t)},unlockWindowSession(e){lS=null;let t=aS(Xx,e,Bd.SessionStorage);t&&sS(Xx,e,Bd.SessionStorage,t,Zx)}},dS={isObject(e){let t=typeof e;return t===`function`||t===`object`&&!!e},isFunction(e){return typeof e==`function`}},fS={safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n}},pS={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},mS=`Unknown`;function hS(e,t,n){let[r]=t.exec(n)||[];return r||=mS,{name:e,version:r}}function gS(e,t,n){if(!t)return{name:e,version:mS};let r=t.exec(n);return{name:e,version:r&&r.length?r[0].trim():mS}}function _S(e,t){let n={name:e,version:null};return pS.win2000.test(t)&&(n.version=`2000`),pS.winXP.test(t)&&(n.version=`XP`),pS.winVista.test(t)&&(n.version=`Vista`),pS.win7.test(t)&&(n.version=`7`),pS.win8.test(t)&&(n.version=`8`),pS.win81.test(t)&&(n.version=`8.1`),pS.win10.test(t)&&(n.version=`10`),n.version||=mS,n}var vS={getDeviceType(){let e=window.navigator.userAgent;return pS.mobileDevice.test(e)?pS.iphone.test(e)?`iPhone`:pS.ipad.test(e)?`iPad`:pS.android.test(e)?`Android`:pS.blackberry.test(e)?`Blackberry`:pS.windowsPhone.test(e)?`Windows Phone`:mS:`Desktop`},getOperatingSystem(){let e=window.navigator.userAgent;return pS.android.test(e)?gS(`Android`,pS.androidVersion,e):pS.iphone.test(e)||pS.ipad.test(e)?gS(`iOS`,pS.iosVersion,e):pS.linux.test(e)?gS(`Linux`,null,e):pS.unix.test(e)?gS(`Unix`,null,e):pS.mac.test(e)?gS(`Macintosh`,pS.osxVersion,e):pS.windows.test(e)?_S(`Windows`,e):pS.blackberry.test(e)?gS(`BlackBerry`,pS.blackberryVersion,e):pS.windowsPhone.test(e)?gS(`Windows Phone`,pS.windowsPhoneVersion,e):{name:mS,version:mS}},getBrowser(){let e=window.navigator.userAgent;return pS.chrome.test(e)?hS(`Chrome`,pS.generalVersion,e):pS.firefox.test(e)?hS(`Firefox`,pS.generalVersion,e):pS.safari.test(e)?hS(`Safari`,pS.generalVersion,e):pS.ie.test(e)?hS(`Internet Explorer`,pS.ieVersion,e):pS.edge.test(e)?hS(`Edge`,pS.edgeVersion,e):pS.opera.test(e)?hS(`Opera`,pS.operaVersion,e):{name:mS,version:mS}},isTouchScreen(){return!!(`ontouchstart`in window||navigator.maxTouchPoints)}},yS={name:`@clickview/analytics`,version:`2.3.0`,description:`Analytics`,main:`dist/app.js`,types:`dist/analytics/src/app.d.ts`,type:`module`,private:!0,repository:{type:`git`,url:`https://gitlab.cvinternal.net/front-end/clickview`},scripts:{start:`npm run build`,"type-check":`tsc --noEmit`,build:`npm run type-check && node ../../../node_modules/vite/bin/vite.js build`,prebuild:`npm run clean`,clean:`npx rimraf dist`},author:``,license:`ISC`,devDependencies:{"@types/uuid":`8.3.4`,"tsc-alias":`1.8.16`},dependencies:{jssha:`3.3.1`,uuid:`8.3.2`}},bS=`zXJL9nOHxzDlMUDjiP41`,xS=`unknown`,SS=class{constructor(e){this.options=e,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=mf.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=tf.getDecodedAttributionData())}get name(){return`CollectionApiClient`}async log(e){if(Array.isArray(e))return this.logBulk(e);this.shouldLog(e)&&(this.validateEvent(e),await this.postData(await this.formatData(e)))}async logBulk(e){let t=e.filter(e=>this.shouldLog(e));if(!t.length)return;t.forEach(e=>this.validateEvent(e));let n=await Promise.all(t.map(e=>this.formatData(e)));await this.postData(n)}validateOptions(){if(!dS.isFunction(this.options.getUser))throw Error(`getUser option is required.`)}shouldLog(e){return dS.isFunction(this.options.shouldLog)?this.options.shouldLog(e):!0}async postData(e){let t=await this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(e),r={"Content-Type":`application/json`,...this.getSignatureHeader(n)},i=fS.safeUrlConcat(t,`/v1/ingest`);Array.isArray(e)&&(i=fS.safeUrlConcat(i,`/bulk`));try{let e=await Rx(i,{method:`POST`,mode:`cors`,headers:r,body:n});e.ok||this.logError(Error(`CollectionApiClient failed to log event. Status: ${e.status} ${e.statusText}`),!1,this.getResponseAsObject(e))}catch(e){this.logError(e)}}getResponseAsObject(e){return{headers:e.headers,ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url,body:e.text()}}getSignatureHeader(e){let t=new Ox(`SHA-1`,`TEXT`,{hmacKey:{value:bS,format:`TEXT`,encoding:`UTF8`}});return t.update(e),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash(`B64`)}`}}async getRegionalUrl(e){switch((await this.getRegion()).systemName){case kx.CvEuWest1:return e.cvEuWest1;case kx.CvApSoutheast2:return e.cvApSoutheast2;case kx.CvNaWest1:return e.cvNaWest1;case kx.CvApSoutheast1:default:return e.cvApSoutheast1}}validateEvent(e){typeof e.type!=`string`&&this.logError(Error(`Event type is required.`),!0),dS.isObject(e.actionContext)||this.logError(Error(`Event actionContext is required.`),!0),e.actionContext.entity||this.logError(Error(`Event actionContext entity is required.`),!0)}async formatData(e){return{type:e.type,data:await this.getEventData(e),metadata:this.getEventMetadata(e)}}async getEventData(e){let t=e.actionContext,n=this.getPlatformMetadata(),r=await this.getUserData(),i=await this.getSessionData(),a={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(a.variant=this.options.productVariant);let o={user:r,action:t,platform:n,product:a,session:i};this.utmParameters&&(o.utm=this.utmParameters);let s=this.extractData(e),c=Object.keys(o).map(e=>e.toLowerCase()),l=Object.keys(s).map(e=>e.toLowerCase());return c.forEach(e=>{l.includes(e)&&this.logError(Error(`${e} is a reserved key.`),!0)}),{...o,...s}}extractData(e){return dS.isFunction(this.options.formatData)?this.options.formatData(e):{[e.actionContext.entity]:e.data}}async getUserData(){let e;try{e=await this.options.getProfileId?.()}catch(e){this.logError(e)}try{let t=await this.options.getUser();return t?.id?{id:t.id,role:t.role?.toLowerCase()||xS,userGroup:(t.userGroup??jx.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(t.yearGroup),profileId:e,customer:{id:t.customerId,name:t.customerName,customerGuid:t.customerGuid,crmId:t.crmId,country:t.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:t.accessPolicy}}:e?{profileId:e}:void 0}catch(e){this.logError(e)}}async getRegion(){let e=this.options.regionName;try{let t=await this.options.getUser();t?.instanceRegion&&(e=t.instanceRegion)}catch(e){this.logError(e)}return e||this.logError(Error(`RegionName is not set.`),!0),this.getRegionByName(e.toLowerCase())}async getSessionData(){try{let e=await this.options.getUser();return{...uS.getClientSessionData(e?.id),authSessionId:e?.sessionId}}catch(e){return console.error(e),uS.getClientSessionData(null)}}getPlatformMetadata(){let e={url:window.location.href,referrer:document.referrer};return this.attributionData?.internalReferrer&&(e.internalReferrer=this.attributionData.internalReferrer),this.attributionData?.originalReferrer&&(e.originalReferrer=this.attributionData.originalReferrer),{browser:vS.getBrowser(),os:vS.getOperatingSystem(),request:e,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(e){return{client:{name:`${this.name}.ts`,version:yS.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:e.eventVersion}}getRegionByName(e){let t;return Object.values(Ax).forEach(n=>{n.systemName===e&&(t=n)}),t}normalizeYearGroup(e){return e?e.toLowerCase().split(` `).join(`_`):xS}logError(e,t,...n){if(this.options.logError&&this.options.logError(e,...n),t)throw e}},CS=function(e){return e.Stream=`cv_product_stream`,e.WebPlayerStream=`cv_product_webplayer_stream`,e.StreamProgress=`cv_product_stream_progress`,e.PreviewStreamProgress=`cv_product_preview_stream_progress`,e.StreamBuffering=`cv_product_stream_buffering`,e.Login=`cv_product_login`,e.LoginSsoRedirect=`cv_product_login_sso_redirect`,e.LoginFailed=`cv_product_login_failed`,e.Search=`cv_product_search`,e.InstantSearch=`cv_product_instant_search`,e.SearchEmptyResult=`cv_product_search_empty_result`,e.Filter=`cv_product_search_filter`,e.SearchLanding=`cv_product_search_landing`,e.Share=`cv_product_share`,e.Unshare=`cv_product_unshare`,e.WorkspaceAdd=`cv_product_tv_add`,e.Rename=`cv_product_rename`,e.Move=`cv_product_move`,e.Sort=`cv_product_sort`,e.Create=`cv_product_create`,e.Delete=`cv_product_delete`,e.Associate=`cv_product_associate`,e.Dissociate=`cv_product_dissociate`,e.Edit=`cv_product_edit`,e.Approve=`cv_product_approve`,e.Reject=`cv_product_reject`,e.Disable=`cv_product_disable`,e.Upload=`cv_product_upload`,e.Download=`cv_product_download`,e.Navigate=`cv_product_navigate`,e.Click=`cv_product_click`,e.Suggest=`cv_product_suggest`,e.EditAssoc=`cv_product_edit_assoc`,e.Play=`cv_product_play`,e.Favourite=`cv_product_favourite`,e.Follow=`cv_product_follow`,e.Prefer=`cv_product_prefer`,e.Print=`cv_product_print`,e.Copy=`cv_product_copy`,e.Activate=`cv_product_activate`,e.VerifyEmail=`cv_product_verify_email`,e.ChangePassword=`cv_product_change_password`,e.ManageGroup=`cv_product_manage_group`,e.Export=`cv_product_export`,e.SendEmail=`cv_product_send_email`,e.Publish=`cv_product_publish`,e.Submit=`cv_product_submit`,e.Complete=`cv_product_complete`,e.Archive=`cv_product_archive`,e.Promote=`cv_product_promote`,e.Demote=`cv_product_demote`,e.BulkAction=`cv_product_bulk_action`,e.Remove=`cv_product_remove`,e.Dismiss=`cv_product_dismiss`,e.Open=`cv_product_open`,e.Hide=`cv_product_hide`,e.PageView=`cv_product_page_view`,e.Select=`cv_product_select`,e.SwitchCustomer=`cv_product_switch_customer`,e.Focus=`cv_product_focus`,e.Blur=`cv_product_blur`,e.Hover=`cv_product_hover`,e.Unhover=`cv_product_unhover`,e.SetAccess=`cv_product_set_access`,e.AddToLocalCache=`cv_product_add_to_lc`,e.ResolveWarning=`cv_product_resolve_warning`,e.DismissWarning=`cv_product_dismiss_warning`,e}({}),wS=function(e){return e.Folder=`folder`,e.Video=`video`,e.Rating=`rating`,e.Series=`series`,e.Library=`library`,e.Resource=`resource`,e.Tag=`tag`,e.Subtitle=`subtitle`,e.Chapter=`chapter`,e.Resolution=`resolution`,e.PlaybackSpeed=`playback_speed`,e.Device=`device`,e.Restriction=`restriction`,e.Interactive=`interactive`,e.Interaction=`interaction`,e.PDF=`pdf`,e.CustomerSetting=`customer_setting`,e.UserSetting=`user_setting`,e.LibraryRequest=`staff_request`,e.Logo=`logo`,e.Pagination=`pagination`,e.Thumbnail=`thumbnail`,e.Banner=`banner`,e.Link=`link`,e.Playlist=`playlist`,e.Playlists=`playlists`,e.Person=`person`,e.Company=`company`,e.Classroom=`classroom`,e.ClassroomGroup=`classroom_group`,e.Classification=`classification`,e.ShareLink=`share_link`,e.DirectShare=`direct_share`,e.Upload=`upload`,e.SearchResults=`search_results`,e.SearchSuggestion=`search_suggestion`,e.Audience=`audience`,e.User=`user`,e.Clip=`clip`,e.UserChannel=`user_channel`,e.Widget=`widget`,e.Url=`url`,e.SocialShare=`social_share`,e.Presentation=`presentation`,e.BatchJob=`batch_job`,e.DeepLink=`deep_link`,e.Feedback=`feedback`,e.AppLink=`app_link`,e.SignUp=`sign_up`,e.FileGeneratorJob=`file_generator_job`,e.ExportLibraries=`export_libraries`,e.Product=`product`,e.Customer=`customer`,e.SpecialEvent=`special_event`,e.Region=`region`,e.ProductTip=`product_tip`,e.Livestream=`livestream`,e.DevicesCta=`devices_cta`,e.Integration=`integration`,e.Faq=`faq`,e.MixedMedia=`mixed_media`,e.TableOfContents=`table_of_contents`,e.Author=`author`,e.Glance=`glance`,e.Filter=`filter`,e.NotificationSetting=`notification_setting`,e.Transcript=`transcript`,e.CurriculumCode=`curriculum_code`,e.Assign=`assign`,e.PartnerProfile=`partner_profile`,e}({}),TS=function(e){return e.TopNav=`top_nav`,e.LeftNav=`left_nav`,e.Footer=`footer`,e.Popup=`popup`,e.Banner=`banner`,e.VideoList=`video_list`,e.VideoListItem=`video_list_item`,e.VideoListHeader=`video_header`,e.VideoThumbnail=`video_thumbnail`,e.ExpandableVideoThumbnail=`expandable_video_thumbnail`,e.VideoItemPreview=`video_item_preview`,e.InteractiveItemPreview=`interactive_item_preview`,e.ClipItemPreview=`clip_item_preview`,e.VideoDetails=`video_details`,e.InteractiveDetails=`interactive_details`,e.ClipDetails=`clip_details`,e.VideoDetailsHeader=`video_details_header`,e.EditVideoDetails=`edit_video_details`,e.EditInteractiveVideoDetails=`edit_interactive_video_details`,e.EditClipDetails=`edit_clip_details`,e.EditVideoChapters=`edit_video_chapters`,e.EditVideoResources=`edit_video_resources`,e.PreviewVideoResources=`preview_video_resources`,e.VideoUpload=`video_upload`,e.VideoRequest=`video_request`,e.Pagination=`pagination`,e.LibraryHeader=`library_header`,e.LibraryTiles=`library_tiles`,e.LibraryRequestDetails=`staff_request_details`,e.Libraries=`libraries`,e.SubFolderList=`sub_folder_list`,e.AwaitingReviewVideoListHeader=`awaiting_review_video_list_header`,e.AwaitingReviewVideoItem=`awaiting_review_video_item`,e.PastReleasesHeader=`past_releases_header`,e.MigrationWarnings=`migration_warnings`,e.PlaylistListHeader=`playlist_list_header`,e.PlaylistListItem=`playlist_list_item`,e.SeriesListItem=`series_list_item`,e.SeriesWithVideos=`series_with_videos`,e.PlaylistWithVideos=`playlist_with_videos`,e.Dropdown=`dropdown`,e.ViewCurriculumLinks=`view_curriculum_links`,e.SearchBar=`search_bar`,e.InstantSearch=`instant_search`,e.SearchFilters=`search_filters`,e.FeaturedSeriesSearchResult=`featured_series_search_result`,e.ExchangeSearchGroupItem=`exchange_search_group_item`,e.StaffManager=`staff_manager`,e.StaffManagerListItem=`staff_manager_list_item`,e.StudentManager=`student_manager`,e.ViewStudentVideos=`view_student_videos`,e.StudentManagerListItem=`student_manager_list_item`,e.EditUser=`edit_user`,e.UserAuditLog=`user_audit_log`,e.BulkUserActionsWizard=`bulk_user_actions_wizard`,e.BulkUserUploadWizard=`bulk_user_upload_wizard`,e.Classroom=`classroom`,e.ClassroomsList=`classrooms_list`,e.ClassroomsListItem=`classrooms_list_item`,e.ManageClassroomStudents=`manage_classroom_students`,e.ManageClassroomStudentListItem=`manage_classroom_student_list_item`,e.ManageClassroomGroups=`manage_classroom_groups`,e.ManageClassroomGroupListItem=`manage_classroom_group_list_item`,e.ManageClassroomTeachers=`manage_classroom_teachers`,e.ManageClassroomTeacherListItem=`manage_classroom_teachers_list_item`,e.ArchivedClassrooms=`archived_classrooms`,e.PreviewInteractive=`preview_interactive`,e.PreviewSharedInteractive=`preview_shared_interactive`,e.PreviewInteractiveQuestions=`preview_interactive_questions`,e.EditInteractive=`edit_interactive`,e.EditInteractiveDetails=`edit_interactive_details`,e.PlaySharedInteractive=`play_shared_interactive`,e.PlayInteractive=`play_interactive`,e.InteractiveListItem=`interactive_list_item`,e.DeleteInteractive=`delete_interactive`,e.NewInteractive=`new_interactive`,e.CopyInteractive=`copy_interactive`,e.UnpublishInteractive=`unpublish_interactive`,e.ShareInteractive=`share_interactive`,e.PlayPage=`play_page`,e.Player=`player`,e.FloatingPlayer=`floating_player`,e.InteractivePlayer=`interactive_player`,e.EmbeddedPlayer=`embedded_player`,e.CreateClipPlayer=`create_clip_player`,e.PlayClip=`play_clip`,e.PlaySharedClip=`play_shared_clip`,e.ClipListItem=`clip_list_item`,e.ContentUpdatesBanner=`content_updates_banner`,e.ContentUpdatesClassificationBanner=`content_updates_classification_banner`,e.PreferencesSettings=`preferences_settings`,e.NotificationSettings=`notification_settings`,e.TopicsOnboarding=`topics_onboarding`,e.MyUploads=`my_uploads`,e.MyVideos=`my_videos`,e.Playlists=`playlists`,e.SlidingList=`sliding_list`,e.HeroBannerItem=`hero_banner_item`,e.SlidingListItem=`sliding_list_item`,e.ClassificationListItem=`classification_list_item`,e.ClassificationComingSoon=`classification_coming_soon`,e.ClassificationHero=`classification_hero`,e.ClassificationFooter=`classification_footer`,e.Classification=`classification`,e.PresentationClassifications=`presentation_classifications`,e.Dashboard=`dashboard`,e.TeachingLevelBanner=`teaching_level_banner`,e.DiscoverFooter=`discover_footer`,e.ProductBanner=`product_banner`,e.UserOptions=`user_options`,e.MagicTabs=`magic_tabs`,e.Settings=`settings`,e.StudentFeed=`student_feed`,e.MyShares=`my_shares`,e.SharedByMe=`shared_by_me`,e.SharedWithMe=`shared_with_me`,e.Insights=`insights`,e.Error=`error_view`,e.UpgradeForm=`upgrade_form`,e.ClassroomGuide=`classroom_guide`,e.TeachingResources=`teaching_resources`,e.ResourcesGuidancePopup=`resources_guidance_popup`,e.InteractivesGuidancePopup=`interactives_guidance_popup`,e.CurriculumGuidancePopup=`curriculum_guidance_popup`,e.TopVideos=`top_videos`,e.VideoViewsList=`video_views_list`,e.VideoOverview=`video_overview`,e.StudentReachPopup=`student_reach_popup`,e.VideoHighlight=`video_highlight`,e.ClassroomViewsPopup=`classroom_views_popup`,e.GiveFeedbackPopup=`give_feedback_popup`,e.LibraryRequestSettings=`library_request_settings`,e.LibraryRequestAutoApprovalSettings=`auto_approval_settings`,e.OpenInAppPrompt=`open_in_app_prompt`,e.UseAppButton=`use_app_button`,e.Launchpad=`launchpad`,e.EditableSubjectPreferencesWidget=`editable_subject_preferences_widget`,e.ThumbnailHeroMediaWidget=`thumbnail_hero_media_widget`,e.ThumbnailFixedListMediaLargeWidget=`thumbnail_fixed_list_media_large`,e.FilterSlidingPillListSmallWidget=`filter_sliding_pill_list_small`,e.CircleLogoSlidingListWidget=`circle_logo_sliding_list_widget`,e.RectangularLogoSlidingListWidget=`rectangular_logo_sliding_list_widget`,e.HeroBannerSmallWidget=`hero_banner_small`,e.EventIconSlidingListWidget=`event_icon_sliding_list_widget`,e.FaqQuestionWidget=`faq_question_widget`,e.FaqQuestionAccordionWidget=`faq_question_accordion_widget`,e.SubjectStatsWidgetItem=`subject_stats_widget_item`,e.AuthorReviewerWidget=`author_reviewer_widget`,e.ThumbnailFixedListMediaSmallWidget=`thumbnail_fixed_list_media_small_widget`,e.ThumbnailFixedListFolderSmallWidget=`thumbnail_fixed_list_folder_small_widget`,e.ThumbnailVerticalListWidget=`thumbnail_vertical_list_widget`,e.ThumbnailFixedListSmallWidget=`thumbnail_fixed_list_small_widget`,e.PosterFixedListLargeWidget=`poster_fixed_list_large_widget`,e.CurriculumResourcesAccordionWidget=`curriculum_resources_accordion_widget`,e.SearchCurriculumCodeWidget=`search_curriculum_code_widget`,e.ExchangeLinksWidget=`exchange_links_widget`,e.TableOfContents=`table_of_contents`,e.SignUpPopup=`sign_up_popup`,e.SignUpPage=`sign_up_page`,e.TrialBanner=`trial_banner`,e.InviteColleaguePopup=`invite_colleague_popup`,e.AuthProspectSelect=`auth_prospect_select`,e.GatedBanner=`gated_banner`,e.GatedEmptyState=`gated_empty_state`,e.GatedPopup=`gated_popup`,e.WelcomePopup=`welcome_popup`,e.WatchHistoryLanding=`watch_history_landing`,e.MyFavouritesLanding=`my_favourites_landing`,e.MyVideoLanding=`my_videos_landing`,e.PlaylistsLanding=`playlists_landing`,e.MySharesLanding=`myshares_landing`,e.PremiumFeatures=`premium_features`,e.NotificationsDropdown=`notifications_dropdown`,e.CalendarNav=`calendar_nav`,e.CalendarDay=`calendar_day`,e.CalendarPopup=`calendar_popup`,e.RegionMap=`region_map`,e.OnboardingSelectRoleScreen=`onboarding_select_role_screen`,e.OnboardingSchoolLevelScreen=`onboarding_school_level_screen`,e.OnboardingAudiencePreferencesScreen=`onboarding_audience_preferences_screen`,e.OnboardingSelectCurriculumScreen=`onboarding_select_curriculum_screen`,e.OnboardingSubjectsScreen=`onboarding_subjects_screen`,e.ProductTips=`product_tips`,e.LivestreamBookingForm=`booking_form`,e.DateRangeFilter=`date_range_selector`,e.AudienceFilter=`audience_filter`,e.AssignFlowView=`assign_flow_view`,e.ContentPartnerDashboard=`content_partner_dashboard`,e.ContentPartnerDashboardVideoBanner=`content_partner_dashboard_video_banner`,e.Global=`global`,e}({}),ES=function(e){return e.Start=`start`,e.Complete=`complete`,e.Save=`save`,e.Discard=`discard`,e.Next=`next`,e.Back=`back`,e}({}),DS=function(e){return e.SignIn=`sign_in`,e.SignUp=`sign_up`,e.SignOut=`sign_out`,e.SwitchAccount=`switch_account`,e.TopNavButton=`top_nav_button`,e.Educator=`educator`,e.Student=`student`,e.TermsAndConditions=`terms_and_conditions`,e.PrivacyPolicy=`privacy_policy`,e.EnterEmail=`enter_email`,e.ClosePopup=`close_popup`,e.Back=`back`,e.UseMyLocation=`use_my_location`,e.TrialCreated=`trial_created`,e.TrialRequested=`trial_requested`,e.DeadEnd=`dead_end`,e.CantFindSchool=`cant_find_school`,e.ResendEmail=`resend_email`,e.ContactUs=`contact_us`,e.InviteColleague=`invite_colleague`,e.PremiumFeatures=`premium_features`,e.Upgrade=`upgrade`,e.FindSchool=`find_school`,e.AddToBraze=`add_to_braze`,e.RequestAccess=`request_access`,e.AutoJoin=`auto_join`,e.WrongEmail=`wrong_email`,e.RequestBdmTrial=`request_bdm_trial`,e.SkipIdpSelect=`skip_idp_select`,e}({}),OS=function(e){return e[e.V1=1]=`V1`,e[e.V2=2]=`V2`,e[e.V3=3]=`V3`,e[e.V4=4]=`V4`,e[e.V5=5]=`V5`,e}({}),kS={first(e){return ky(e)},firstFew(e,t){return ky(e,t)},last(e){return jy(e)},lastFew(e,t){return jy(e,t)},max(e,t){return fy(e,t)},cloneAndReplaceAtIdx(e,t,n,r=null){let i=e&&e.length?e.slice():[];return t+1>i.length&&(i=[...i,...Array(t+1-i.length).fill(r)]),i.splice(t,1,n),i},moveItem(e,t,n){let r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty(e){return e&&!e.length},findIndex(e,t){return Gv(e,t)},findWhere(e,t){return Qv(e,t)},where(e,t){return dy(e,t)},groupBy(e,t){return by(e,t)},countBy(e,t){return Sy(e,t)},flatten(e,t){return Ny(e,t)},flatMap(e,t){return Ny(e.map(t),!0)},intersection(...e){return Ry(...e)},addOrRemove(e,t){let n=e.indexOf(t);return n===-1?e.push(t):e.splice(n,1),e},addOrRemoveImmutable(e,t){let n=e.indexOf(t),r=Jy.deepClone(e);return n===-1?[...r,t]:[...r.slice(0,n),...r.slice(n+1)]},sortBy(e,t){return vy(e,t)},chunk(e,t){return Uy(e,t)},uniq(e,t){return Iy(e,t)},toObject(e,t){return e.reduce((e,n)=>Object.assign(e,Jy.isObject(n)?{[n[t]]:n}:{[t]:n}),{})},findIndexById(e,t){return e.findIndex(e=>e.id===t.id)},removeItem(e,t){let n=this.findIndex(e,t);return n===-1?e:this.removeItemFromIndex(e,n)},removeItemFromIndex(e,t){return[...e.slice(0,t),...e.slice(t+1)]},findMatchedIdIndex(e,t){return e.findIndex(e=>e.id?.toString()===t.toString())},shuffle(e){return _y(e)},findLast(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return e[n]},findLastIndex(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}},AS=`OTHER`;function jS(e,t){return t.includes(e)?e:e?AS:``}function MS(e){let{error:t,onChange:n,countryCode:r,isTertiary:i}=e,a=Hp({countryCode:r,isTertiary:i}),o=jS(e.initialValue,a),[s,c]=Z.useState(o),[l,u]=Z.useState(o===AS?e.initialValue:``);Z.useEffect(()=>{c(jS(e.initialValue,a))},[e.initialValue]);function d(e){c(e.target.value),u(``),n(e.target.value===AS?``:e.target.value)}function f(e){u(e.target.value),n(e.target.value)}let p=s===AS;return(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsxs)(`label`,{htmlFor:e.id,className:e.labelClassName,children:[`Job title`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsxs)(`div`,{className:`mb-2`,children:[(0,Q.jsxs)(`select`,{id:e.id,name:e.id,className:`form-select ${e.size===`lg`?`form-select-lg`:``} ${s.length?`text-dark`:`text-secondary`} ${!!t&&`is-invalid`}`,value:s,placeholder:`Role`,onChange:d,children:[(0,Q.jsx)(`option`,{value:``,disabled:!0,className:`text-secondary`,children:e.placeholder?e.placeholder:(0,Q.jsx)(Q.Fragment,{children:`What do you do?`})}),a.map((e,t)=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},t)),(0,Q.jsx)(`option`,{value:AS,className:`text-dark`,children:`Other`})]}),!!t&&!p&&(0,Q.jsx)(xf,{name:e.id,children:t})]}),p&&(0,Q.jsxs)(`div`,{className:`mb-3`,children:[(0,Q.jsx)(`input`,{className:`form-control ${e.size===`lg`?`form-select-lg`:``} ${!!t&&`is-invalid`}`,type:`text`,value:l,placeholder:`What do you do?`,autoFocus:!0,onChange:f}),!!t&&(0,Q.jsx)(xf,{name:e.id,children:t})]})]})}var NS=function(e){return e.AU=`cv-ap-southeast-1`,e.NZ=`cv-ap-southeast-2`,e.UK=`cv-eu-west-1`,e.US=`cv-na-west-1`,e}({}),PS=[`uk`,`gb`,`gg`,`im`,`je`,`ie`],FS={au:$.AU,nz:$.NZ,us:$.US,uk:$.UK,ca:$.CA,gb:$.UK,gg:$.UK,im:$.UK,je:$.UK,ie:$.UK,al:$.UK,ad:$.UK,am:$.UK,at:$.UK,az:$.UK,by:$.UK,be:$.UK,ba:$.UK,bg:$.UK,hr:$.UK,cy:$.UK,cz:$.UK,dk:$.UK,ee:$.UK,fi:$.UK,fr:$.UK,de:$.UK,ge:$.UK,gr:$.UK,hu:$.UK,is:$.UK,it:$.UK,lv:$.UK,li:$.UK,lt:$.UK,lu:$.UK,mt:$.UK,md:$.UK,mc:$.UK,me:$.UK,nl:$.UK,mk:$.UK,no:$.UK,pl:$.UK,pt:$.UK,ro:$.UK,ru:$.UK,sm:$.UK,rs:$.UK,sk:$.UK,si:$.UK,es:$.UK,se:$.UK,ch:$.UK,tr:$.UK,ua:$.UK,va:$.UK},IS={au:kx.CvApSoutheast1,uk:kx.CvEuWest1,us:kx.CvNaWest1,nz:kx.CvApSoutheast2,ca:kx.CvNaWest1},LS={au:NS.AU,uk:NS.UK,us:NS.US,nz:NS.NZ,ca:NS.US},RS={getRegionName(e){return IS[RS.getCountryCode(e)]},getInstanceRegion(e){return LS[RS.getCountryCode(e)]},getCountryCode(e){return FS[e?.toLowerCase()]||$.US},isCountryCodeUK(e){return PS.includes(e.toLowerCase())},isCountryCodeAU(e){return e?.toLowerCase()===$.AU},isCountryCodeUS(e){return e?.toLowerCase()===$.US},isCountryCodeNZ(e){return e?.toLowerCase()===$.NZ},isSupportedCountryCode(e){return Object.keys(FS).includes(e?.toLowerCase())},getLocalizedLocalityPlaceholderPhrase(e){if(e){if(RS.isCountryCodeUK(e))return`E.g. CR0 3RL or 36 Factory Lane`;if(RS.isCountryCodeAU(e)||RS.isCountryCodeNZ(e))return`E.g. 2212 or Revesby`;if(RS.isCountryCodeUS(e))return`E.g. 95826 or Sacramento`}},getLocalizedLocalityPlaceholderText(e){if(!e)return;let t=RS.getLocalizedLocalityPlaceholderPhrase(e);if(t)return t}};function zS(e){if(!e)return{firstName:``,surname:``};let[t,...n]=e.split(` `).filter(e=>e.length);return{firstName:t,surname:n?.join(` `)}}var BS=o(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),VS=Z.createContext({prefixes:{},breakpoints:[`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],minBreakpoint:`xs`}),{Consumer:HS,Provider:US}=VS;function WS(e,t){let{prefixes:n}=(0,Z.useContext)(VS);return e||n[t]||t}var GS=[`as`,`disabled`];function KS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qS(e){return!e||e.trim()===`#`}function JS({tagName:e,disabled:t,href:n,target:r,rel:i,role:a,onClick:o,tabIndex:s=0,type:c}){e||=n!=null||r!=null||i!=null?`a`:`button`;let l={tagName:e};if(e===`button`)return[{type:c||`button`,disabled:t},l];let u=r=>{if((t||e===`a`&&qS(n))&&r.preventDefault(),t){r.stopPropagation();return}o?.(r)},d=e=>{e.key===` `&&(e.preventDefault(),u(e))};return e===`a`&&(n||=`#`,t&&(n=void 0)),[{role:a??`button`,disabled:void 0,tabIndex:t?void 0:s,href:n,target:e===`a`?r:void 0,"aria-disabled":t||void 0,rel:e===`a`?i:void 0,onClick:u,onKeyDown:d},l]}var YS=Z.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=KS(e,GS),[a,{tagName:o}]=JS(Object.assign({tagName:n,disabled:r},i));return(0,Q.jsx)(o,Object.assign({},i,a,{ref:t}))});YS.displayName=`Button`;var XS=l(BS()),ZS=Z.forwardRef(({as:e,bsPrefix:t,variant:n=`primary`,size:r,active:i=!1,disabled:a=!1,className:o,...s},c)=>{let l=WS(t,`btn`),[u,{tagName:d}]=JS({tagName:e,disabled:a,...s});return(0,Q.jsx)(d,{...u,...s,ref:c,disabled:a,className:(0,XS.default)(o,l,i&&`active`,n&&`${l}-${n}`,r&&`${l}-${r}`,s.href&&a&&`disabled`)})});ZS.displayName=`Button`;var QS=Z.forwardRef(({bsPrefix:e,variant:t,animation:n=`border`,size:r,as:i=`div`,className:a,...o},s)=>{e=WS(e,`spinner`);let c=`${e}-${n}`;return(0,Q.jsx)(i,{ref:s,...o,className:(0,XS.default)(a,c,r&&`${c}-${r}`,t&&`text-${t}`)})});QS.displayName=`Spinner`;function $S(e){let{showSpinner:t,children:n,style:r,spinnerText:i,...a}=e,o=Z.useRef(null),[{width:s,height:c},l]=Z.useState({}),[u,d]=Z.useState(t);Z.useEffect(()=>{if(!t){l({});return}let e=o.current,n=e.offsetHeight,r=e.offsetWidth;!n||!r||l({width:r,height:n})},[t]),Z.useLayoutEffect(()=>{d(t)},[t]);let f={...r};return s&&(f.width=`${s+1}px`),c&&(f.height=`${c+1}px`),(0,Q.jsx)(ZS,{ref:o,disabled:t,style:f,...a,children:u?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(QS,{as:`span`,animation:`border`,role:`status`,size:`sm`}),!!i&&(0,Q.jsx)(`span`,{className:`ps-1`,children:i})]}):n})}var eC=/\$+[\w\s]?/,tC=/^\+?\d{4,255}$/,nC=255;function rC(e){let[t,n]=Z.useState({fullname:``,jobTitle:``,phone:``});function r(n){n?.preventDefault(),d(t)&&e.handleSubmitForm(t)}function i(e){e.preventDefault(),l(`fullname`,e.target.value),u(`fullname`),u(`submission`)}function a(e){e.preventDefault(),l(`phone`,e.target.value.trim()),u(`phone`),u(`submission`)}function o(e){l(`jobTitle`,e),u(`jobTitle`),u(`submission`)}function s(){l(`fullname`,``),u(`fullname`),u(`submission`)}function c(){l(`phone`,``),u(`phone`),u(`submission`)}function l(e,t){n(n=>({...n,[e]:t}))}function u(t){if(!Object.keys(e.errors).length||!e.errors[t])return;let n={...e.errors};delete n[t],e.setErrors(n)}function d(t){let{fullname:n,jobTitle:r,phone:i}=t,{firstName:a,surname:o}=zS(n),s={};return(!a||!o)&&(s.fullname=`Please enter your full name.`),(eC.test(a)||eC.test(o))&&(s.fullname=`Please enter your full name.`),n.length>nC&&(s.fullname=`Full name cannot exceed max length of ${nC} characters.`),r?.length||(s.jobTitle=`Please enter your job title.`),eC.test(r)&&(s.jobTitle=`Please enter a valid job title.`),r.length>nC&&(s.jobTitle=`Job title cannot exceed max length of ${nC} characters.`),i?.length||(s.phone=`Please enter your phone number.`),(eC.test(i)||!tC.test(i))&&(s.phone=`Please enter a valid phone number.`),e.setErrors(s),!Object.keys(s).length}function f(){let{fullname:n,jobTitle:r,phone:i}=t;return!(!n.length||!r.length||!i.length||Object.keys(e.errors).length)}return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`text-center h4`,children:`A little more about you`}),(0,Q.jsx)(`p`,{children:`Please enter your details.`}),(0,Q.jsxs)(`form`,{onSubmit:r,"aria-errormessage":`brazeFormError`,children:[(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`fullname-input`,children:`Full name`}),(0,Q.jsx)(Nf,{value:t.fullname,onChange:i,name:`fullname-input`,id:`fullname-input`,type:`text`,className:`form-control form-control-lg ${e.errors.fullname?.length?`is-invalid`:``}`,placeholder:`Enter your name`,onClickClear:s,autoFocus:!0,"aria-errormessage":`fullname-inputError`}),e.errors.fullname&&(0,Q.jsx)(xf,{name:`fullname-input`,children:e.errors.fullname})]}),(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`phone-input`,children:`Contact number`}),(0,Q.jsx)(Nf,{value:t.phone,onChange:a,name:`phone-input`,id:`phone-input`,type:`tel`,className:`form-control form-control-lg ${e.errors.phone?.length?`is-invalid`:``}`,placeholder:`Enter your phone number`,onClickClear:c,"aria-errormessage":`phone-inputError`}),e.errors.phone&&(0,Q.jsx)(xf,{name:`phone-input`,children:e.errors.phone})]}),(0,Q.jsxs)(`div`,{className:`form-group text-start`,children:[(0,Q.jsx)(`label`,{className:`d-block fw-bold mb-1`,htmlFor:`jobTitle-select`,children:`Job title`}),(0,Q.jsx)(MS,{id:`jobTitle-select`,countryCode:RS.getCountryCode(e.country),onChange:o,error:e.errors?.jobTitle,size:`lg`,labelClassName:`d-none`,isTertiary:e.isTertiary})]}),!!e.errors?.submission&&(0,Q.jsx)(xf,{name:`brazeForm`,className:`form-group`,children:e.errors.submission}),(0,Q.jsx)(`div`,{className:`form-group mb-1`,children:(0,Q.jsx)($S,{className:`btn-lg w-100`,variant:`dark`,onClick:()=>r(),showSpinner:e.loading,disabled:e.loading||!f(),children:`Submit`})})]})]})}var iC=function(e){return e.Unavailable=`unavailable`,e.Expired=`expired`,e.Active=`active`,e.NotRequired=`not-required`,e.Available=`available`,e.Unsupported=`unsupported`,e.UserAutoJoinAllowed=`user-auto-join-allowed`,e.UserJoinApprovalRequired=`user-join-approval-required`,e.InvalidEmail=`invalid-email`,e.BdmTrialAvailable=`bdm-trial-available`,e}({}),aC=function(e){return e.Staff=`staff`,e.Learner=`learner`,e}({}),oC=l(o(((e,t)=>{(function(n){if(typeof e==`object`)t.exports=n();else if(typeof define==`function`&&define.amd)define(n);else{var r;try{r=window}catch{r=self}r.SparkMD5=n()}})(function(e){var t=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`a`,`b`,`c`,`d`,`e`,`f`];function n(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n+=(r&i|~r&a)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[1]-389564586|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[2]+606105819|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[5]+1200080426|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[6]-1473231341|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[9]-1958414417|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[10]-42063|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&a)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,a+=(n&r|~n&i)+t[13]-40341101|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&r)+t[14]-1502002290|0,i=(i<<17|i>>>15)+a|0,r+=(i&a|~i&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,n+=(r&a|i&~a)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[6]-1069501632|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[11]+643717713|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[10]+38016083|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[15]-660478335|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[14]-1019803690|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[3]-187363961|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,n+=(r&a|i&~a)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,a+=(n&i|r&~i)+t[2]-51403784|0,a=(a<<9|a>>>23)+n|0,i+=(a&r|n&~r)+t[7]+1735328473|0,i=(i<<14|i>>>18)+a|0,r+=(i&n|a&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,n+=(r^i^a)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[8]-2022574463|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[11]+1839030562|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[4]+1272893353|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[7]-155497632|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[0]-358537222|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[3]-722521979|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^a)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,a+=(n^r^i)+t[12]-421815835|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^r)+t[15]+530742520|0,i=(i<<16|i>>>16)+a|0,r+=(i^a^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~a))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[7]+1126891415|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[3]-1894986606|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[15]-30611744|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~a))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,a+=(r^(n|~i))+t[11]-1120210379|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+a|0,r+=(a^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=a+e[3]|0}function r(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}function i(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e[n]+(e[n+1]<<8)+(e[n+2]<<16)+(e[n+3]<<24);return t}function a(e){var t=e.length,i=[1732584193,-271733879,-1732584194,271733878],a,o,s,c,l,u;for(a=64;a<=t;a+=64)n(i,r(e.substring(a-64,a)));for(e=e.substring(a-64),o=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a<o;a+=1)s[a>>2]|=e.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(n(i,s),a=0;a<16;a+=1)s[a]=0;return c=t*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(c[2],16),u=parseInt(c[1],16)||0,s[14]=l,s[15]=u,n(i,s),i}function o(e){var t=e.length,r=[1732584193,-271733879,-1732584194,271733878],a,o,s,c,l,u;for(a=64;a<=t;a+=64)n(r,i(e.subarray(a-64,a)));for(e=a-64<t?e.subarray(a-64):new Uint8Array,o=e.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a<o;a+=1)s[a>>2]|=e[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(n(r,s),a=0;a<16;a+=1)s[a]=0;return c=t*8,c=c.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(c[2],16),u=parseInt(c[1],16)||0,s[14]=l,s[15]=u,n(r,s),r}function s(e){var n=``,r;for(r=0;r<4;r+=1)n+=t[e>>r*8+4&15]+t[e>>r*8&15];return n}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join(``)}c(a(`hello`)),typeof ArrayBuffer<`u`&&!ArrayBuffer.prototype.slice&&(function(){function t(e,t){return e=e|0||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i=this.byteLength,a=t(n,i),o=i,s,c,l,u;return r!==e&&(o=t(r,i)),a>o?new ArrayBuffer(0):(s=o-a,c=new ArrayBuffer(s),l=new Uint8Array(c),u=new Uint8Array(this,a,s),l.set(u),c)}})();function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n=e.length,r=new ArrayBuffer(n),i=new Uint8Array(r),a;for(a=0;a<n;a+=1)i[a]=e.charCodeAt(a);return t?i:r}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t=[],n=e.length,r;for(r=0;r<n-1;r+=2)t.push(parseInt(e.substr(r,2),16));return String.fromCharCode.apply(String,t)}function m(){this.reset()}return m.prototype.append=function(e){return this.appendBinary(l(e)),this},m.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t=this._buff.length,i;for(i=64;i<=t;i+=64)n(this._hash,r(this._buff.substring(i-64,i)));return this._buff=this._buff.substring(i-64),this},m.prototype.end=function(e){var t=this._buff,n=t.length,r,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a;for(r=0;r<n;r+=1)i[r>>2]|=t.charCodeAt(r)<<(r%4<<3);return this._finish(i,n),a=c(this._hash),e&&(a=p(a)),this.reset(),a},m.prototype.reset=function(){return this._buff=``,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(e,t){var r=t,i,a,o;if(e[r>>2]|=128<<(r%4<<3),r>55)for(n(this._hash,e),r=0;r<16;r+=1)e[r]=0;i=this._length*8,i=i.toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(i[2],16),o=parseInt(i[1],16)||0,e[14]=a,e[15]=o,n(this._hash,e)},m.hash=function(e,t){return m.hashBinary(l(e),t)},m.hashBinary=function(e,t){var n=c(a(e));return t?p(n):n},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(e){var t=f(this._buff.buffer,e,!0),r=t.length,a;for(this._length+=e.byteLength,a=64;a<=r;a+=64)n(this._hash,i(t.subarray(a-64,a)));return this._buff=a-64<r?new Uint8Array(t.buffer.slice(a-64)):new Uint8Array,this},m.ArrayBuffer.prototype.end=function(e){var t=this._buff,n=t.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i,a;for(i=0;i<n;i+=1)r[i>>2]|=t[i]<<(i%4<<3);return this._finish(r,n),a=c(this._hash),e&&(a=p(a)),this.reset(),a},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array,this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var e=m.prototype.getState.call(this);return e.buff=d(e.buff),e},m.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),m.prototype.setState.call(this,e)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(e,t){var n=c(o(new Uint8Array(e)));return t?p(n):n},m})}))()),sC={secondary:{label:`Secondary`,isTertiary:!1},"primary & secondary":{label:`Primary & Secondary`,isTertiary:!1},k12:{label:`Primary & Secondary`,isTertiary:!1},primary:{label:`Primary`,isTertiary:!1},special:{label:`Special`,isTertiary:!1},university:{label:`University`,isTertiary:!0},middle:{label:`Middle`,isTertiary:!1},"fe college":{label:`FE College`,isTertiary:!0},"high school":{label:`Secondary`,isTertiary:!1},elementary:{label:`Primary`,isTertiary:!1},"middle school":{label:`Middle`,isTertiary:!1},tafe:{label:`TAFE`,isTertiary:!0},college:{label:`FE College`,isTertiary:!0},"sixth form college":{label:`Sixth Form College`,isTertiary:!0}},cC={england:`ENG`,scotland:`SCT`,wales:`WLS`,"northern ireland":`NIR`},lC={hashedEmail(e){let t=e.trim().toLowerCase();return oC.default.hash(t)},removeEmptyKeys(e){if(Array.isArray(e))return e;let t={...e};return Object.entries(t).filter(([,e])=>!(e==null||typeof e==`string`&&!e.length)).reduce((e,[t,n])=>({...e,[t]:n===Object(n)?lC.removeEmptyKeys(n):n}),{})},Conversions:{TRIAL_UPGRADE_REQUEST:`Request - Trial Upgrade`,FREE_TRIAL_REQUEST:`Request - Free Trial`,OLYMPICS_SPECIAL_OFFER_REQUEST:`Request - Olympics Special Offer`},Sources:{CV_PRODUCT_TRIAL_REQUESTED:`cv_product_trial_requested`,CV_PRODUCT_BDM_TRIAL_REQUESTED:`cv_product_bdm_trial_requested`,CV_PRODUCT_TRIAL_UPGRADE_REQUESTED:`cv_product_trial_upgrade_requested`},getSchoolType(e){if(!e)return;let t=e.toLowerCase();return[`unknown`,`other`].includes(t)?void 0:sC[t]?.label||e},isTertiarySchool(e){return sC[e?.toLowerCase()]?.isTertiary||!1},parseProvince(e){return e.length?cC[e.toLowerCase()]||e:``}};function uC(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({});Z.useEffect(()=>{e.userType===aC.Learner&&e.complete({completionStep:`trial-status`,trialCreated:!1,trialStatus:iC.Unsupported})},[]);function a(e){if(Up(e.jobTitle)){c();return}o(e)}async function o(a){if(t)return;if(e.userType===aC.Learner){i({...r,submission:`Something went wrong! Please try again later.`});return}e.logUserAction({},{actionType:CS.Click,workflowPhase:ES.Next,descriptor:DS.AddToBraze}),n(!0);let{firstName:o,surname:l}=zS(a.fullname),u=await e.getCrmIdForProspect(e.prospectId);try{let t={email:e.email,firstName:o,lastName:l,phone:a.phone,custom:{crmId:u,orgSubType:lC.getSchoolType(e?.schoolType),accountName:e?.schoolName,jobTitle:a.jobTitle,accountAddress:{countryCode:e?.country,province:lC.parseProvince(e?.province||``)},syncToCrm:!0,source:lC.Sources.CV_PRODUCT_TRIAL_REQUESTED},event:{accountCountry:e?.country,accountPostCode:e?.schoolPostCode,conversion:lC.Conversions.FREE_TRIAL_REQUEST}},n={prospect_id:e?.prospectId};e.logBrazeEvent({user:t,event:{eventType:cx.ProductFormEvent.ProductTrailRequested,additionalData:n,callback:s}})}catch{i({...r,submission:`Something went wrong! Please try again later.`})}Object.keys(r).length||c()}function s(e){i(e?{}:{...r,submission:`Something went wrong! Please try again later.`}),n(!1)}function c(){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null})}return(0,Q.jsx)(rC,{loading:t,errors:r,setErrors:i,country:e.country||e.geoLocation?.countryCode,logUserAction:e.logUserAction,handleSubmitForm:a,isTertiary:lC.isTertiarySchool(e.schoolType)})}var dC={getRandomInt(e=1e4){return Math.floor(Math.random()*Math.floor(e))}},fC=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n},pC=`__googleMapsScriptId`,mC;(function(e){e[e.INITIALIZED=0]=`INITIALIZED`,e[e.LOADING=1]=`LOADING`,e[e.SUCCESS=2]=`SUCCESS`,e[e.FAILURE=3]=`FAILURE`})(mC||={});var hC=class e{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:i,id:a=pC,language:o,libraries:s=[],mapIds:c,nonce:l,region:u,retries:d=3,url:f=`https://maps.googleapis.com/maps/api/js`,version:p}){if(this.CALLBACK=`__googleMapsCallback`,this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=i,this.id=a||`__googleMapsScriptId`,this.language=o,this.libraries=s,this.mapIds=c,this.nonce=l,this.region=u,this.retries=d,this.url=f,this.version=p,e.instance){if(!fC(this.options,e.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(e.instance.options)}`);return e.instance}e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?mC.FAILURE:this.done?mC.SUCCESS:this.loading?mC.LOADING:mC.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+=`?callback=${this.CALLBACK}`,this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(`,`)}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(`,`)}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(n=>{n?t(n.error):e(window.google)})})}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}let e=this.createUrl(),t=document.createElement(`script`);t.id=this.id,t.type=`text/javascript`,t.src=e,t.onerror=this.loadErrorCallback.bind(this),t.defer=!0,t.async=!0,this.nonce&&(t.nonce=this.nonce),document.head.appendChild(t)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let e=this.errors.length*2**this.errors.length;console.log(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},e)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn(`Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match.`),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};function gC(e){return new hC({apiKey:e.apiKey,version:`weekly`,libraries:e.libraries,retries:3})}function _C(e){let t={apiKey:e.apiKey,libraries:e.libraries||[`places`]},[n,r]=Z.useState(!1),[i,a]=Z.useState(gC(t));Z.useEffect(()=>{o()},[]);function o(e,n){if(!i){a(gC(t));return}i.loadCallback(t=>{if(t){r(!1),n&&n(t);return}r(!0),e&&e()})}return{loader:i,scriptLoaded:n,onGoogleApiReady:o}}function vC(e){let{scriptLoaded:t}=_C({apiKey:e.googleApiKey}),[n,r]=Z.useState();return Z.useEffect(()=>{t&&r(new google.maps.places.AutocompleteService)},[t]),n}var yC=`us`,bC=`country:placeholder:text`;function xC(e){let t=RS.getLocalizedLocalityPlaceholderText(e?.countryCode);if(t)return t;let n=Gd.cacheGet(`${bC}:${e?.countryCode}`);if(n)return n}function SC(){return String.fromCharCode(96+dC.getRandomInt(26))}function CC({apiKey:e,geoLocation:t,makeRequest:n=!0,template:r=`E.g. [placeholder]`,templateKey:i=`[placeholder]`}){let a=vC({googleApiKey:e}),[o,s]=Z.useState(()=>xC(t));Z.useEffect(()=>{if(o||!a||!n)return;let e=t?.countryCode||yC,r={input:SC(),types:[`(cities)`],region:e,componentRestrictions:{country:e}};a.getPlacePredictions(r,(t,n)=>l(t,n,e))},[o,a,t,n]);function c(e,t){Gd.cacheSet(`${bC}:${t}`,e,86400),s(e)}function l(e,t,n){if(t!==google.maps.places.PlacesServiceStatus.OK||!e){c(RS.getLocalizedLocalityPlaceholderText(yC),n);return}let a=e[dC.getRandomInt(e.length)].description;c(r.replace(i,a),n)}return o}var wC={getPlaceDetails(e){let t,n,r,i,a=e.formatted_address;for(let a of e.address_components)for(let e of a.types)e===`locality`&&(t=a.short_name),e===`administrative_area_level_1`&&(n=a.short_name),e===`postal_code`&&(i=a.short_name),e===`country`&&(r=a.short_name);return{locality:a,country:r,postalCode:i,city:t,province:n}}},TC={1:`geocoderPermissionDenied`,2:`geocoderUnavailable`,3:`geocoderTimeout`};function EC(e){let[t,n]=Z.useState({}),{onGoogleApiReady:r}=_C(e);function i(){r(()=>{window.navigator.geolocation.getCurrentPosition(a,o)})}function a(e){let{latitude:t,longitude:r}=e.coords,i=new google.maps.LatLng(t,r);new google.maps.Geocoder().geocode({location:i},(e,i)=>{if(i!==google.maps.GeocoderStatus.OK)return;let a=e.find(e=>e.types.includes(`locality`)||e.types.includes(`administrative_area_level_2`));n({...wC.getPlaceDetails(a),longitude:r,latitude:t})})}function o(t){let n=TC[t.code];n||=`geocoderUnknown`,e.onPositionError(`We are unable to access your location. Please try again later.`)}return{placeDetails:t,onClickGetCurrentLocation:i}}var DC=(e,t)=>{let[n,r]=Z.useState(e);return Z.useEffect(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n};function OC({search:e,makePredicition:t,geoLocation:n,apiKey:r}){let i=vC({googleApiKey:r}),a=DC(e,300),[o,s]=Z.useState();Z.useEffect(()=>{if(!i)return;if(a?.length===0||!t){s(void 0);return}let e=n?.countryCode||`us`;i.getPlacePredictions({input:a,componentRestrictions:n?.isFallback?void 0:{country:e},region:e,types:[`locality`,`sublocality`,`postal_code`]},c)},[a,t,i]);function c(e,t){if(t!==google.maps.places.PlacesServiceStatus.OK||!e){s(void 0);return}s(e)}function l(e,t,r){new google.maps.places.PlacesService(t.current).getDetails({placeId:e.place_id,fields:[`geometry`,`address_components`,`formatted_address`],region:n.countryCode},(e,t)=>{if(t!==google.maps.places.PlacesServiceStatus.OK)return;let n=e.geometry.location.lng(),i=e.geometry.location.lat(),{locality:a,country:o,postalCode:s,city:c,province:l}=wC.getPlaceDetails(e);r({longitude:n,latitude:i,locality:a,country:o,city:c,postalCode:s,province:l})})}return{localityPredicitions:o,getPlaceInfo:l}}function kC(){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{d:`m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z`})})}var AC={baseText:`_baseText_bmazz_1`,dropdown:`_dropdown_bmazz_4`,suggestionContainer:`_suggestionContainer_bmazz_7`,suggestionContainerInner:`_suggestionContainerInner_bmazz_13`,suggestionItem:`_suggestionItem_bmazz_18`,suggestionLoading:`_suggestionLoading_bmazz_18`,noSuggestion:`_noSuggestion_bmazz_18`,large:`_large_bmazz_22`,selected:`_selected_bmazz_32`,useMyLocation:`_useMyLocation_bmazz_36`};function jC(e){let{predictions:t,getPlaceInfo:n,selectedIndex:r}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsx)(Ff,{className:`${AC.suggestionItem} ${r-1===t?AC.selected:``}`,onKeyDown:t=>t.key===`Enter`&&n(e),onMouseDown:()=>n(e),onClick:()=>n(e),children:e.description},e.place_id))})}function MC(e){let t=Z.useRef(null),[n,r]=Z.useState(e.data?.schoolLocality||``),[i,a]=Z.useState(!1),o=CC({apiKey:e.googleMapsApiKey,geoLocation:e.geoLocation}),{localityPredicitions:s,getPlaceInfo:c}=OC({search:n,makePredicition:i,geoLocation:e.geoLocation,apiKey:e.googleMapsApiKey}),{placeDetails:l,onClickGetCurrentLocation:u}=EC({apiKey:e.googleMapsApiKey,onPositionError:b}),d=window.navigator.geolocation?1:0,{selectedIndex:f,onKeyDown:p,containerRef:m,hide:h,onBlur:g,onFocus:_}=Pf({onSelected:C,itemCount:(s?.length??0)+d,hideOnBlur:e.hideOnBlur}),[v,y]=Z.useState();Z.useEffect(()=>{w(l)},[l]);function b(e){a(!0),y(e)}function x(t){v&&y(void 0),i||a(!0),(e.data?.longitude||e.data?.latitude||e.data?.schoolLocality)&&e.clearData(),r(t)}function S(){x(``),t.current.focus()}function C(e){if(!s)return;if(e===s.length){E();return}let t=s[e];t&&T(t)}function w(t){e.setData({schoolLocality:t.locality,country:t.country,province:t.province,schoolPostCode:t.postalCode,longitude:t.longitude,latitude:t.latitude}),t.locality&&r(t.locality)}function T(e){i&&a(!1),c(e,t,w)}function E(t){t?.preventDefault(),a(!1),u(),e.logUserAction?.({},{actionType:CS.Click,descriptor:DS.UseMyLocation})}function D(){let t=`form-control`;return e.size===`lg`&&(t+=` form-control-lg`),t}let O=s?.length&&!e.data?.schoolLocality?.length,k=window.navigator.geolocation&&!e.data?.schoolLocality?.length,A=e.labelClassName||`d-block text-center mb-3 fw-normal ${AC.baseText}`,j=`form-group position-relative`;return e.size===`lg`&&(j+=` ${AC.large}`),(0,Q.jsxs)(`div`,{className:j,children:[(0,Q.jsxs)(`label`,{className:A,htmlFor:`locality-input`,children:[`ZIP code or city`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsx)(Nf,{type:`text`,value:n,onChange:e=>x(e.currentTarget.value),id:`locality-input`,className:D(),ref:t,autoComplete:`off`,placeholder:o||`Loading...`,disabled:e.disabled||!o,autoFocus:e?.autoFocus,onClickClear:S,onKeyDown:p,onFocus:_,onBlur:g}),(0,Q.jsxs)(`div`,{className:`position-absolute z-1 w-100 ${AC.dropdown} ${h?`d-none`:``}`,children:[!!O&&(0,Q.jsx)(`div`,{className:AC.suggestionContainer,children:(0,Q.jsxs)(`div`,{className:AC.suggestionContainerInner,ref:m,children:[(0,Q.jsx)(jC,{predictions:s,getPlaceInfo:T,selectedIndex:f}),window.navigator.geolocation&&e.useGeoLocationApi&&(0,Q.jsx)(Ff,{className:ed(AC.suggestionItem,`px-1`,f-1===s.length?AC.selected:``),onClick:E,children:(0,Q.jsxs)(`div`,{className:`btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1`,children:[(0,Q.jsx)(kC,{}),`Use my current location`]})})]})}),k&&!O&&e.useGeoLocationApi&&(0,Q.jsx)(`div`,{className:`d-flex ${AC.useMyLocation}`,children:(0,Q.jsxs)(`button`,{onClick:E,className:`btn btn-link info-link bg-white btn-with-icon`,children:[(0,Q.jsx)(kC,{}),`Use my current location`]})}),!!v&&(0,Q.jsx)(`div`,{className:`text-danger p-2`,children:v})]})]})}var NC=function(e){return e.GET=`GET`,e.POST=`POST`,e.PUT=`PUT`,e.DELETE=`DELETE`,e}({}),PC=class extends Error{constructor(e,t=`Error`){super(t),this.body=e}},FC={prepareQuery(e,t){let n=e;return Object.keys(t).forEach((e,r)=>{t[e]&&(r===0?n+=`?`:n+=`&`,n+=`${e}=${encodeURIComponent(t[e])}`)}),n}};function IC(e){let t={method:NC.GET,headers:{"Content-type":`application/json`}};e.method&&(t={...t,method:e.method}),e.init&&(t={...t,...e.init});let n=e.url;return t.method===NC.GET&&e.data?n=FC.prepareQuery(n,e.data):e.data&&(t={...t,body:JSON.stringify(e.data)}),{init:t,url:n}}var LC={async asyncFetch(e){let t=IC(e),n=await fetch(t.url,t.init);if(!n.ok)throw new PC(await n.json());if(n.status!==204)return await n.json()},async asyncFetchPlain(e){let t=IC(e),n=await fetch(t.url,t.init);if(n.ok)return await n.text()},fetch(e){let t=IC(e);return fetch(t.url,t.init).then(e=>{if(e.status!==204)return e.json()}).then(t=>(e.success&&e.success(t),t)).catch(t=>(e.error&&e.error(),t)).finally(()=>{e.always&&e.always()})}},RC={search(e,t,n,r,i){let a={longitude:t.longitude,latitude:t.latitude};t.query&&(a.query=t.query),LC.fetch({url:e,data:a,success:n,error:r,always:i})},async create(e,t){return LC.asyncFetch({url:e.createProspect,method:NC.POST,data:t})},getLookups(e,t){return LC.asyncFetch({url:e.prospectLookups(t)})}},zC=/\/$/,BC={urlBuilder(e,t){let n=Object.entries(t).map(([e,t])=>e&&Array.isArray(t)?t.map(t=>`${e}=${encodeURIComponent(t)}`).join(`&`):e&&t!=null?`${e}=${encodeURIComponent(t)}`:``).reduce((e,t)=>t?e?`${e}&${t}`:t:e,``);return n?`${e}?${n}`:e},buildFilter(e){let t=[];if(e.limit&&t.push(`limit:${e.limit}`),e.cursor&&t.push(`page:${e.cursor}`),e.before&&t.push(`dateCreated:...${e.before}`),t.length)return t.join(`,`)},makeHttps(e){return typeof e!=`string`||e.indexOf(`http://`)===-1||(e=e.replace(`http://`,`https://`)),e},safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith(`/`)||(n+=`/`),t&&(n+=t.startsWith(`/`)?t.slice(1):t),n},removeTrailingSlash(e){if(typeof e==`string`)return e.replace(zC,``)},getHostname(e){if(!e)return window.location.hostname;try{return new URL(e).hostname}catch{return null}},isValidUrl(e){try{return new URL(e),!0}catch{return!1}}},VC={checkTrialStatus(e,t){if(e.productName!==dx.Lite)return Promise.reject();let n={email:t.email};return LC.asyncFetch({url:e.userStatus,data:n})},checkUserIdps(e,t){return e.productName===dx.Lite?LC.asyncFetch({url:e.idps,data:{email:t}}):Promise.reject()},checkProspectTrialStatus(e,t,n,r,i){let a=e.prospectStatus(t.prospectId);a=BC.urlBuilder(a,{email:t.email}),LC.fetch({url:a,success:n,error:r,always:i})},createTrial(e,t){let n={prospectId:t.prospectId,email:t.email,userType:t.userType,appLink:t?.appLink,attribution:t?.attribution};return LC.asyncFetch({url:e.createTrial,method:NC.POST,data:n})},resendTrialEmail(e,t,n){if(e.productName!==dx.Lite)return Promise.reject();let r={email:n.email,appLink:n?.appLink};return LC.asyncFetch({url:e.resendTrialEmail(t),method:NC.POST,data:r})},createJoinRequest(e,t){let n=e.productName===dx.Auth?e.joinRequest:e.joinRequest(t.customerId),r=e.productName===dx.Auth?t:{email:t.email};return LC.asyncFetch({url:n,method:NC.POST,data:r})},createAutoJoinRequest(e,t){return e.productName===dx.Lite?LC.asyncFetch({url:e.autoJoin,method:NC.POST,data:t}):Promise.reject()}},HC=[`Primary`,`Secondary`,`K12`,`Special`,`TAFE`,`University`],UC=[`Primary`,`Secondary`,`Primary & Secondary`,`Special`,`Sixth Form College`,`FE College`,`University`,`Other`],WC=[`Elementary`,`Middle School`,`High School`,`College`,`Other`],GC={au:HC,nz:HC,uk:UC,us:WC,ca:WC};function KC(e){return GC[RS.getCountryCode(e)]||WC}var qC=function(e){return e.Published=`Published`,e.Draft=`Draft`,e}({});function JC(e){let[t,n]=Z.useState({prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolLocality:e.schoolLocality,country:e.country,province:e.province,city:e.city,longitude:e.longitude,latitude:e.latitude}),[r,i]=Z.useState(),[a,o]=Z.useState(!1),s=KC(t.country||e.geoLocation?.countryCode);function c(){let{schoolName:e,schoolType:n,country:r}=t;return!!(e&&n&&r)}function l(e,t){n(n=>({...n,[e]:t}))}function u(e){let{longitude:t,latitude:n,schoolLocality:r,country:i,city:a,province:o}=e;t&&l(`longitude`,t),n&&l(`latitude`,n),i&&l(`country`,i),a&&l(`city`,a),o&&l(`province`,o),r&&l(`schoolLocality`,r)}function d(){l(`schoolLocality`,void 0),l(`longitude`,void 0),l(`latitude`,void 0),l(`city`,void 0),l(`province`,void 0),l(`country`,void 0),i(``)}function f(e){let t=e.target.value;l(`schoolType`,t)}function p(e){l(`schoolName`,e.target.value)}async function m(n){let r={email:e.email,custom:{accountName:t?.schoolName,accountAddress:{countryCode:t?.country,province:lC.parseProvince(t.province)},orgSubType:lC.getSchoolType(t?.schoolType),syncToCrm:!0,source:lC.Sources.CV_PRODUCT_TRIAL_REQUESTED},event:{accountCountry:t?.country,accountPostCode:t?.schoolPostCode,accountState:lC.parseProvince(t.province)}},i={form_type:`trial-sign-up`,prospect_id:t?.prospectId};e.logBrazeEvent({user:r,event:{eventType:cx.ProductFormEvent.FormSubmission,additionalData:i,callback:n}})}async function h(n){if(n.preventDefault(),!c())return;e.logUserAction(t,{actionType:CS.Click,workflowPhase:ES.Next,descriptor:DS.CantFindSchool}),o(!0);let r;try{if(r=await RC.create(e.ajaxUrls,{name:t.schoolName,status:qC.Draft,countryCode:t.country,prospectType:t.schoolType,city:t.city,postCode:t.schoolPostCode,province:lC.parseProvince(t.province)}),!r.id){o(!1),i(`Error. Something went wrong.`);return}}catch{o(!1),i(`Error. Something went wrong.`);return}if(e.userTrialStatus===iC.BdmTrialAvailable){if(e.userType!==aC.Staff){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null});return}e.nextStep({step:`request-bdm-trial`,...t});return}try{let n={prospectId:r.id,email:e.email,userType:e.userType,appLink:e.pageAppLinkString,attribution:{...tf.getDecodedAttributionData(),utms:mf.getUtmParameters()}},i=await VC.createTrial(e.ajaxUrls,n);e.createOrUpdateProfile&&e.createOrUpdateProfile({masterId:i.id,email:e.email,countryCode:t?.country});let a={completionStep:`trial-status`,email:e.email,userId:i.id,prospectId:r.id,schoolName:t.schoolName,schoolLocality:t.schoolLocality,country:t.country,schoolType:t.schoolType,city:t.city,schoolPostCode:t.schoolPostCode,latitude:t.latitude,longitude:t.longitude,province:t.province,trialStatus:iC.Available,trialCreated:!0,customerId:i.data?.customerId};if(e?.userType===aC.Staff){await m(t=>{t||console.error(`Failed to submit create trial data to braze.`),e.complete(a)});return}e.complete(a)}catch(n){if(!n.body){o(!1),i(`Error. Something went wrong.`);return}let a=n;if(a.body.status===400&&a.body.type===`trial-not-available`){e.nextStep({step:`add-to-braze`,...t,prospectId:r.id,trialStatus:iC.Unavailable});return}console.error(n)}}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Tell us more about your school`}),(0,Q.jsx)(`p`,{children:`Please enter your school details.`})]}),(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsx)(`label`,{className:`d-block`,htmlFor:`school-name-input`,children:`Name of school`}),(0,Q.jsx)(`input`,{type:`text`,value:t?.schoolName||``,onChange:p,id:`school-name-input`,className:`form-control form-control-lg`,autoComplete:`off`,placeholder:`Enter name of school`,autoFocus:!0})]}),(0,Q.jsxs)(`div`,{className:`form-group`,children:[(0,Q.jsx)(`label`,{className:`d-block`,htmlFor:`school-type-select`,children:`Type of school`}),(0,Q.jsxs)(`select`,{id:`school-type-select`,className:`form-select form-select-lg ${t.schoolType?``:`text-secondary`}`,autoComplete:`off`,value:t.schoolType||`none`,onChange:f,children:[(0,Q.jsx)(`option`,{value:`none`,className:`text-secondary`,disabled:!0,children:`Select type of school`}),s.map(e=>(0,Q.jsx)(`option`,{value:e,className:`text-dark`,children:e},e))]})]}),(0,Q.jsx)(MC,{data:t,setData:u,clearData:d,disabled:!1,labelClassName:`d-block`,geoLocation:e.geoLocation,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!1,size:`lg`,useGeoLocationApi:!0}),r&&(0,Q.jsx)(`div`,{className:`text-danger mb-3`,children:r}),c()&&(0,Q.jsx)($S,{className:`btn-lg w-100`,variant:`dark`,onClick:h,showSpinner:a,disabled:a,children:`Get started`})]})}function YC(e,t){return t?`${e} ${t}`:e}function XC(e){return(0,Q.jsx)(`h1`,{className:YC(`text-center mb-2 h4`,e.className),children:e.children})}function ZC(e){return(0,Q.jsx)(`div`,{className:YC(`text-center text-sm px-2 px-lg-4`,e.className),children:e.children})}function QC(e){return(0,Q.jsx)(`p`,{className:YC(``,e.className),children:e.children})}var $C={Heading:XC,Body:ZC,Message:QC};function ew(e){return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center my-4 px-2 px-lg-4`,children:(0,Q.jsx)(`img`,{src:{[iC.Available]:e.imageUrls.statusImages.available,[iC.Active]:e.imageUrls.statusImages.active,[iC.Expired]:e.imageUrls.statusImages.expired,[iC.NotRequired]:e.imageUrls.statusImages.notRequired,[iC.Unavailable]:e.imageUrls.statusImages.unavailable,[iC.Unsupported]:e.imageUrls.statusImages.unsupported,[iC.UserAutoJoinAllowed]:e.imageUrls.statusImages.notRequired,[iC.UserJoinApprovalRequired]:e.imageUrls.statusImages.notRequired,[iC.InvalidEmail]:``,[iC.BdmTrialAvailable]:``}[e.trialStatus],className:`w-100 h-auto`})})}function tw(e){return Z.useEffect(()=>{e.logUserAction({},{actionType:CS.Create,descriptor:DS.TrialRequested,workflowPhase:ES.Complete})},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ew,{trialStatus:iC.Available,imageUrls:e.imageUrls}),(0,Q.jsxs)($C.Body,{className:`mb-3`,children:[(0,Q.jsx)($C.Heading,{children:`Submitted!`}),(0,Q.jsx)($C.Message,{children:`Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible.`})]})]})}function nw(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ew,{trialStatus:iC.Available,imageUrls:e.imageUrls}),(0,Q.jsxs)($C.Body,{className:`mb-3`,children:[(0,Q.jsx)($C.Heading,{children:`You've requested access!`}),(0,Q.jsx)($C.Message,{children:`We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView.`})]})]})}var rw={Marketing:{au:`https://www.clickvieweducation.com/en-au`,us:`https://www.clickvieweducation.com`,nz:`https://www.clickview.co.nz`,uk:`https://www.clickview.co.uk`,ca:`https://www.clickvieweducation.com/en-ca`},Support:{au:`https://www.clickviewsupport.com/hc/en-au`,uk:`https://www.clickviewsupport.com/hc/en-au#gb`,nz:`https://www.clickviewsupport.com/hc/en-au#nz`,us:`https://www.clickviewsupport.com/hc/en-au#us`,ca:`https://www.clickviewsupport.com/hc/en-au#ca`}},iw={[$.AU]:`/contact-us/sales`,[$.US]:`/contact-us/sales`,[$.NZ]:`/contact-us/`,[$.UK]:`/contact-us/trial`,[$.CA]:`/contact-us/sales`},aw={[$.AU]:`/resources/free-student-resources`,[$.US]:`/resources/free-student-resources`,[$.NZ]:`/free-student-resources/`,[$.UK]:`/free-student-resources/`,[$.CA]:`/resources/free-student-resources`},ow={getMarketingUrlForGeoLocation(e){let t=RS.getCountryCode(e?.countryCode);return rw.Marketing[t]||rw.Marketing.us},getMarketingSalesContactForGeoLocation(e){let t=RS.getCountryCode(e?.countryCode);return`${ow.getMarketingUrlForGeoLocation(e)}${iw[t]}`},getFreeResourcesForGeoLocation(e){let t=RS.getCountryCode(e?.countryCode);return`${this.getMarketingUrlForGeoLocation({countryCode:t})}${aw[t]}`},getTermsAndConditionsLink(){return this.getMarketingUrlForGeoLocation($.US)+`/terms-and-conditions/`},getPrivacyPolicyLink(){return this.getMarketingUrlForGeoLocation($.US)+`/privacy-policy/`},getSupportUrlForGeoLocation(e){let t=RS.getCountryCode(e?.countryCode);return rw.Support[t]||rw.Support.us}};function sw(e){let t=e?.previousStepIds&&e.previousStepIds[e.previousStepIds.length-1]===`find-school`,n=e?.schoolName||`Your school`;return(0,Q.jsxs)($C.Body,{className:`mb-3`,children:[t?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)($C.Heading,{children:[n,(0,Q.jsx)(`br`,{}),`already has ClickView 🎉`]}),(0,Q.jsxs)($C.Message,{className:`mt-3`,children:[`If your school has SSO\xA0`,(0,Q.jsx)(`a`,{href:e.getSignInUrl({email:e.email,customerId:e.customerId}),className:`info-link`,children:`click here to sign in.`})]}),(0,Q.jsx)($C.Message,{children:`Otherwise please contact your school admin for access.`})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)($C.Heading,{children:`Good News!`}),(0,Q.jsxs)($C.Message,{children:[`An account already exists for:`,(0,Q.jsx)(`br`,{}),` `,(0,Q.jsx)(`strong`,{children:e.email})]}),(0,Q.jsx)($C.Message,{children:(0,Q.jsx)(`a`,{href:e.getSignInUrl({email:e.email}),className:`btn btn-dark btn-lg w-100`,children:`Sign into ClickView`})})]}),(0,Q.jsxs)($C.Message,{children:[`Need Help?\xA0`,(0,Q.jsx)(`a`,{href:ow.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,target:`_blank`,children:`Contact our Help Centre.`})]})]})}function cw(e){let t=ow.getMarketingSalesContactForGeoLocation(e.geoLocation),n=e?.previousStepIds&&e.previousStepIds[e.previousStepIds.length-1]===`find-school`,r=e?.schoolName||`Your school`;return(0,Q.jsxs)($C.Body,{children:[(0,Q.jsx)($C.Heading,{children:n?`${r} trial has expired`:`Your trial has expired`}),(0,Q.jsxs)($C.Message,{children:[`Please contact our\xA0`,(0,Q.jsx)(`a`,{href:t,className:`info-link`,target:`_blank`,children:`ClickView Sales Team`})]})]})}function lw(e){let t=ow.getMarketingSalesContactForGeoLocation(e.geoLocation);return(0,Q.jsxs)($C.Body,{children:[(0,Q.jsxs)($C.Heading,{children:[`Your school no longer`,(0,Q.jsx)(`br`,{}),` has access to ClickView`]}),(0,Q.jsxs)($C.Message,{children:[`Please contact our `,(0,Q.jsx)(`a`,{href:t,className:`info-link`,children:`ClickView Sales Team`}),` for more information.`]})]})}function uw(){return(0,Q.jsxs)($C.Body,{children:[(0,Q.jsxs)($C.Heading,{className:`px-2 px-lg-4`,children:[`ClickView isn't currently `,(0,Q.jsx)(`br`,{}),` available for your school`]}),(0,Q.jsx)($C.Message,{children:`We're working hard to get ClickView ready for more people.`})]})}var dw=1;function fw(e){let[t,n]=Z.useState(0),[r,i]=Z.useState(!1);async function a(r){r?.preventDefault();try{await VC.resendTrialEmail(e.ajaxUrls,e.userId,{email:e.email,appLink:e.pageAppLinkString}),n(t+1)}catch{i(!0)}e.logUserAction({},{actionType:CS.Click,descriptor:DS.ResendEmail})}function o(t){t?.preventDefault(),e.logUserAction({},{actionType:CS.Click,descriptor:DS.WrongEmail}),e.nextStep({step:`enter-email`,userType:e.userType})}if(e?.email)return(0,Q.jsxs)($C.Body,{children:[(0,Q.jsx)($C.Heading,{children:`Check your inbox!`}),(0,Q.jsxs)($C.Message,{children:[`An email has been sent to `,(0,Q.jsx)(`strong`,{children:e.email}),`.`]}),!!e.userId&&(0,Q.jsxs)(Q.Fragment,{children:[t<dw?(0,Q.jsx)(`button`,{onClick:a,className:`btn btn-outline-dark btn-lg mb-3`,children:`Resend verification email`}):(0,Q.jsx)($C.Message,{children:`✅ Email has been resent!`}),(0,Q.jsxs)($C.Message,{children:[`Wrong email?\xA0`,(0,Q.jsx)(`button`,{onClick:o,className:`btn info-link p-0 align-top border-0`,children:`Update email address`})]}),r&&(0,Q.jsxs)($C.Message,{className:`mb-0 text-danger`,children:[`❌ There was a problem resending the email. Please try again later or contact our \xA0`,(0,Q.jsx)(`a`,{href:ow.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,children:`support`})]})]})]})}var pw={[iC.Available]:fw,[iC.Active]:sw,[iC.Expired]:cw,[iC.NotRequired]:sw,[iC.Unavailable]:lw,[iC.Unsupported]:uw,[iC.UserAutoJoinAllowed]:sw,[iC.UserJoinApprovalRequired]:sw,[iC.InvalidEmail]:null,[iC.BdmTrialAvailable]:null};function mw(e){let t=pw[e.trialStatus];return t?(0,Q.jsx)(t,{...e}):(0,Q.jsx)(Q.Fragment,{})}function hw(e){return Z.useEffect(()=>{let t={actionType:CS.Create,descriptor:DS.DeadEnd,workflowPhase:ES.Discard};e.trialCreated&&(t.descriptor=DS.TrialCreated,t.workflowPhase=ES.Complete),e.logUserAction({},t)},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ew,{trialStatus:e.trialStatus,imageUrls:e.imageUrls}),(0,Q.jsx)(mw,{...e})]})}var gw=`young-student`;function _w(e){let t=ow.getFreeResourcesForGeoLocation(e.geoLocation);return Z.useEffect(()=>{Gd.set(gw,!0)},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ew,{trialStatus:iC.Active,imageUrls:e.imageUrls}),(0,Q.jsxs)($C.Body,{className:`mb-3`,children:[(0,Q.jsx)($C.Heading,{children:`Discover our free content`}),(0,Q.jsx)($C.Message,{children:`Click the button below to explore our videos`}),(0,Q.jsx)(`a`,{href:t,className:`btn btn-lg btn-dark w-100`,target:`_blank`,children:`Start watching now`})]})]})}var vw={"trial-status":hw,"added-to-braze":tw,"young-student":_w,"requested-access":nw};function yw(e){let t=vw[e.completionStep];return(0,Q.jsx)(`div`,{className:`d-flex justify-content-center flex-column mx-auto px-2`,children:(0,Q.jsx)(t,{...e})})}var bw={day:`_day_n6ysn_1`,month:`_month_n6ysn_4`,year:`_year_n6ysn_7`},xw=120,Sw=16;function Cw(e,t,n){let r=new Date(ww(e,t,n));return!isNaN(+r)}function ww(e,t,n){return`${e.padStart(4,`0`)}-${t.padStart(2,`0`)}-${n.padStart(2,`0`)}`}function Tw(e){let[t,n]=Z.useState(``),[r,i]=Z.useState(``),[a,o]=Z.useState(``),[s,c]=Z.useState(null);function l(e){n(e.target.value),c(null)}function u(e){i(e.target.value),c(null)}function d(e){o(e.target.value),c(null)}function f(){return!t||!r||!a?(c(`Please enter your date of birth`),!1):Cw(a,r,t)?+a>m?(c(`Please enter a date in the past`),!1):+a<m-xw?(c(`Please enter a realistic date of birth`),!1):!0:(c(`Please enter a valid date`),!1)}function p(n){if(n.preventDefault(),!f())return;let i=new Date(ww(a,r,t)),o=m-Sw,s=new Date;if(s.setFullYear(o),i>s){e.complete({completionStep:`young-student`,trialCreated:!1,trialStatus:null});return}e.nextStep({step:`enter-email`,userType:e.userType})}let m=new Date().getFullYear(),h=`mx-2 d-inline-block text-start`,g=`form-control form-control-lg ${s?`is-invalid`:``}`,_=`order-0`,v=`order-3`,y=RS.isCountryCodeUS(e.geoLocation.countryCode);return y&&(_=`order-3`,v=`order-0`),(0,Q.jsxs)(`form`,{className:`text-center`,onSubmit:p,noValidate:!0,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Tell us a little about yourself`}),(0,Q.jsx)(`p`,{children:`Please enter your date of birth`}),(0,Q.jsxs)(`div`,{className:`my-4`,children:[(0,Q.jsxs)(`fieldset`,{className:`d-flex justify-content-center`,"aria-describedby":`dateOfBirthError`,children:[(0,Q.jsxs)(`div`,{className:`${h} ${_}`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`day`,children:`Day`}),(0,Q.jsx)(`input`,{id:`day`,type:`number`,className:`${g} ${bw.day}`,min:`1`,max:`31`,placeholder:`DD`,value:t,onChange:l,autoFocus:!y,tabIndex:y?2:1})]}),(0,Q.jsx)(`span`,{className:`h1 fw-normal mt-3 mb-0 order-1 ${s?`text-danger`:``}`,children:`/`}),(0,Q.jsxs)(`div`,{className:`${h} ${v}`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`month`,children:`Month`}),(0,Q.jsx)(`input`,{id:`month`,type:`number`,className:`${g} ${bw.month}`,min:`1`,max:`12`,placeholder:`MM`,value:r,onChange:u,autoFocus:y,tabIndex:y?1:2})]}),(0,Q.jsx)(`span`,{className:`h1 fw-normal mt-3 mb-0 order-4 ${s?`text-danger`:``}`,children:`/`}),(0,Q.jsxs)(`div`,{className:`${h} order-5`,children:[(0,Q.jsx)(`label`,{className:`mb-0`,htmlFor:`year`,children:`Year`}),(0,Q.jsx)(`input`,{id:`year`,name:`year`,type:`number`,className:`${g} ${bw.year}`,min:m-120,max:m,placeholder:`YYYY`,value:a,onChange:d,tabIndex:3})]})]}),!!s&&(0,Q.jsx)(xf,{name:`dateofBirth`,children:s})]}),(0,Q.jsx)(`button`,{type:`submit`,className:`btn btn-lg btn-dark w-100`,children:`Continue`})]})}function Ew(e){return(0,Q.jsxs)(Q.Fragment,{children:[`Have a ClickView account already?`,(0,Q.jsx)(`a`,{href:e.link,className:`info-link ms-1`,onClick:e.onClick,children:`Sign in`})]})}function Dw(){let e={},t=tf.getEncodedAttributionData();t&&(e.r=t);let n=mf.getUtmParameters();return n&&(e.utms=n),JSON.stringify(e)}var Ow=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),kw={[$.AU]:`valerie.frizzle@school.edu.au`,[$.UK]:`valerie.frizzle@school.gov.uk`,[$.US]:`valerie.frizzle@school.gov`,[$.NZ]:`valerie.frizzle@school.nz`,[$.CA]:`valerie.frizzle@school.ca`},Aw={[$.AU]:`/contact-us/support`,[$.US]:`/contact-us/support`,[$.NZ]:`/contact-us/`,[$.UK]:`/contact-us/technical/`,[$.CA]:`/contact-us/support`};function jw(e){return`${ow.getMarketingUrlForGeoLocation(e)}${Aw[RS.getCountryCode(e?.countryCode)]}`}function Mw(e){return kw[RS.getCountryCode(e.countryCode)]||kw.us}var Nw=[iC.Expired,iC.NotRequired,iC.Unavailable,iC.Unsupported,iC.Active];function Pw(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(e?.email||``),[a,o]=Z.useState(),s=jw(e.geoLocation);async function c(){o(``);let t;try{t=await VC.checkTrialStatus(e.ajaxUrls,{email:r})}catch{o(`Something went wrong! Please try again later.`);return}if(t.status===iC.InvalidEmail){o(`Please use your school email address.`);return}if(e.logUserAction({},{actionType:CS.Click,workflowPhase:ES.Next,descriptor:DS.EnterEmail}),Nw.includes(t.status)){e.complete({completionStep:`trial-status`,email:r,trialStatus:t.status,trialCreated:!1});return}try{let n=await VC.checkUserIdps(e.ajaxUrls,r);if(n.length){e.nextStep({step:`select-idp`,email:r,userTrialStatus:t.status,idps:n});return}}catch{o(`Something went wrong! Please try again later.`);return}e.nextStep({step:`find-school`,email:r,userTrialStatus:t.status})}function l(){e.logUserAction({},{actionType:CS.Click,descriptor:DS.ContactUs})}function u(){return r.length?Ow.test(r)?!0:(o(`Please use your school email address.`),!1):(o(`Please enter your school email address.`),!1)}function d(){e.logUserAction({},{actionType:CS.Click,descriptor:DS.SignIn})}function f(e){e.preventDefault(),i(e.target.value),o(``)}async function p(e){e?.preventDefault(),u()&&(n(!0),await c(),n(!1))}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Let's set up your account`}),(0,Q.jsx)(`p`,{children:`Enter your school email address`})]}),(0,Q.jsxs)(`form`,{onSubmit:p,noValidate:!0,children:[(0,Q.jsxs)(`div`,{className:`form-group mb-3`,children:[(0,Q.jsx)(Nf,{value:r,onChange:f,name:`email-input`,id:`email-input`,type:`email`,className:`form-control form-control-lg ${a?`is-invalid`:``}`,placeholder:Mw(e.geoLocation),autoComplete:`false`,autoCorrect:`false`,autoFocus:!0,onClickClear:()=>i(``),"aria-errormessage":`email-inputError`}),a&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(xf,{name:`error-input`,children:a}),(0,Q.jsxs)(`small`,{children:[`Having an issue with your email?`,(0,Q.jsx)(`a`,{href:s,className:`info-link ps-1`,target:`_blank`,onClick:l,children:`Contact our team`})]})]})]}),(0,Q.jsx)($S,{showSpinner:t,variant:`dark`,className:`btn-lg mb-3 w-100`,disabled:t,onClick:p,children:`Continue`})]}),e.userType===aC.Staff&&(0,Q.jsx)(bf,{idps:e.globalIdps,className:`mt-n3`,attribution:Dw()}),(0,Q.jsx)(`div`,{className:`text-center`,children:(0,Q.jsx)(Ew,{link:e.getSignInUrl({email:r}),onClick:d})})]})}function Fw(e){switch(e?.body?.type){case`user-type-not-supported`:return`Students may not request to join schools.`;case`join-request-already-pending`:return`Your request is awaiting administrator approval.`;case`join-request-already-denied`:return`Your request has been denied by an administrator.`;default:return`Something went wrong.`}}var Iw=function(e){return e.MasterId=`master_id`,e.CrmId=`crm_id`,e.SalesforceId=`salesforce_id`,e}({});function Lw(e){let[t,n]=Z.useState(null);async function r(){try{let t=(await RC.getLookups(e.ajaxUrls,e.prospectId)).find(e=>e.type===Iw.MasterId)?.externalId;if(!t){n(`Something went wrong.`);return}await VC.createJoinRequest(e.ajaxUrls,{customerId:t,email:e.email}),e.logUserAction({},{actionType:CS.Click,descriptor:DS.RequestAccess}),e.complete({completionStep:`requested-access`,trialCreated:!1,trialStatus:iC.UserJoinApprovalRequired})}catch(e){n(Fw(e))}}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ew,{trialStatus:iC.UserJoinApprovalRequired,imageUrls:e.imageUrls}),(0,Q.jsx)($C.Body,{className:`mb-3`,children:(0,Q.jsxs)($C.Heading,{children:[e.schoolName,(0,Q.jsx)(`br`,{}),`already has ClickView 🎉`]})}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,onClick:r,children:`Request access`}),t&&(0,Q.jsx)(`p`,{className:`text-danger text-center mb-2`,children:t}),(0,Q.jsxs)($C.Message,{className:`text-center`,children:[`Need Help?\xA0`,(0,Q.jsx)(`a`,{href:ow.getSupportUrlForGeoLocation(e.geoLocation),className:`info-link`,target:`_blank`,children:`Contact our Help Centre.`})]})]})}var Rw={checkEmail(e,t,n){return e.productName===dx.Lite?LC.asyncFetch({url:e.brazeCheckEmail,method:NC.POST,data:{email:t,instanceRegion:n}}):Promise.reject()}};function zw(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState({});function a(e){if(Up(e.jobTitle)){l();return}s(e)}function o(){let t=RS.getCountryCode(e.country||e.geoLocation?.countryCode);return RS.getInstanceRegion(t)}async function s(a){if(t)return;if(e.userType===aC.Learner){i({...r,submission:`Something went wrong! Please try again later.`});return}e.logUserAction({},{actionType:CS.Click,workflowPhase:ES.Next,descriptor:DS.RequestBdmTrial}),n(!0);let{firstName:s,surname:u}=zS(a.fullname);try{let t=await Rw.checkEmail(e.ajaxUrls,e.email,o()),n={email:e.email,firstName:s,lastName:u,phone:a.phone,custom:{orgSubType:lC.getSchoolType(e?.schoolType),accountName:e?.schoolName,jobTitle:a.jobTitle,accountAddress:{countryCode:e?.country,province:lC.parseProvince(e?.province||``)},syncToCrm:t.users?.length===0?!0:void 0,source:lC.Sources.CV_PRODUCT_BDM_TRIAL_REQUESTED},event:{conversion:lC.Conversions.FREE_TRIAL_REQUEST}},r={prospect_id:e?.prospectId};e.logBrazeEvent({user:n,event:{eventType:cx.ProductFormEvent.BdmTrialRequested,additionalData:r,callback:c}})}catch{i({...r,submission:`Something went wrong! Please try again later.`})}Object.keys(r).length||l()}function c(e){i(e?{}:{...r,submission:`Something went wrong! Please try again later.`}),n(!1)}function l(){e.complete({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null})}return(0,Q.jsx)(rC,{loading:t,errors:r,setErrors:i,country:e.country||e.geoLocation?.countryCode,logUserAction:e.logUserAction,handleSubmitForm:a,isTertiary:lC.isTertiarySchool(e.schoolType)})}function Bw(e){let{loading:t,canSubmitForm:n,setSubmissionError:r,prospectStatus:i,userType:a,logStepEvent:o,logUserAction:s,nextStep:c,data:l,productName:u,ajaxUrls:d,complete:f,setLoadingState:p,email:m,userTrialStatus:h,pageAppLinkString:g,setProperty:_,logBrazeEvent:v,createOrUpdateProfile:y}=e;function b(){c({step:`add-to-braze`,trialStatus:i,...l}),o()}function x(){if(o(),a!==aC.Staff){f({completionStep:`added-to-braze`,trialCreated:!1,trialStatus:null});return}c({step:`request-bdm-trial`,...l})}function S(){c({step:`request-access`,...l}),o()}async function C(){try{await VC.createAutoJoinRequest(d,{prospectId:l.prospectId,email:m}),s({},{actionType:CS.Click,descriptor:DS.AutoJoin}),f({completionStep:`trial-status`,trialCreated:!0,trialStatus:iC.Available,...l})}catch{r(`Something went wrong! Please try again later.`),p(!1);return}}async function w(){let e;l?.prospectId&&i===iC.NotRequired&&(e=(await RC.getLookups(d,l.prospectId)).find(e=>e.type===Iw.MasterId)?.externalId),f({completionStep:`trial-status`,trialStatus:i,trialCreated:!1,customerId:e,...l}),o()}function T(){return i===iC.Active||i===iC.Available?!0:i===iC.UserAutoJoinAllowed?u===dx.Auth:!1}async function E(){if(a!==aC.Staff)return;let e={email:m,custom:{accountName:l?.schoolName,accountAddress:{countryCode:l?.country,province:lC.parseProvince(l.province)},orgSubType:lC.getSchoolType(l?.schoolType),syncToCrm:!0,source:lC.Sources.CV_PRODUCT_TRIAL_REQUESTED},event:{accountCountry:l?.country,accountPostCode:l?.schoolPostCode,accountState:lC.parseProvince(l.province)}},t={form_type:`trial-sign-up`,prospect_id:l?.prospectId};v({user:e,event:{eventType:cx.ProductFormEvent.FormSubmission,additionalData:t}})}async function D(){p(!0);let e;try{e=await VC.createTrial(d,{userType:a,email:m,prospectId:l?.prospectId,appLink:g,attribution:{...tf.getDecodedAttributionData(),utms:mf.getUtmParameters()}})}catch{r(`Something went wrong! Please try again later.`),p(!1);return}i===iC.UserAutoJoinAllowed&&s({},{actionType:CS.Click,descriptor:DS.AutoJoin}),_(`userId`,e.id),f({completionStep:`trial-status`,userId:e.id,trialCreated:!0,trialStatus:iC.Available,customerId:e.data?.customerId,...l}),E(),y&&y({masterId:e.id,email:m,countryCode:l?.country}),o()}return async function(){if(!t){if(!n()){r(`Something went wrong! Please try again later.`);return}if(h===iC.BdmTrialAvailable)return x();if(a===aC.Staff){if(i===iC.Unsupported)return b();if(i===iC.UserJoinApprovalRequired)return S();if(i===iC.UserAutoJoinAllowed&&u===dx.Lite)return await C()}return T()?await D():await w()}}}var Vw=50;function Hw(e){return e.toLowerCase().split(` `).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function Uw(e){let t=[];return e.city&&t.push(Hw(e.city)),e.province&&t.push(e.province),e.postCode&&t.push(e.postCode),t.join(` `)}function Ww(e){let{filteredSchoolsList:t,getSchoolName:n,onSchoolSuggestionClick:r,selectedIndex:i}=e;return(0,Q.jsx)(Q.Fragment,{children:t.map((e,t)=>(0,Q.jsxs)(Ff,{className:`${AC.suggestionItem} ${i-1===t?AC.selected:``}`,onKeyDown:t=>t.key===`Enter`&&r(e),onMouseDown:()=>r(e),onClick:()=>r(e),children:[n(e),` `,(0,Q.jsx)(`br`,{}),(0,Q.jsx)(`small`,{className:`text-secondary`,children:Uw(e)})]},e.id))})}function Gw(e){return(0,Q.jsx)(`div`,{className:`info-link ${AC.suggestionItem} ${AC.noSuggestion} ${e.selected?AC.selected:``}`,onKeyDown:t=>t.key===`Enter`&&e.handleNoSuggestion(),onMouseDown:e.handleNoSuggestion,onClick:e.handleNoSuggestion,children:`Can't find your school?`})}function Kw(e){let t=Z.useRef(null),[n,r]=Z.useState(!0),[i,a]=Z.useState(e.data.schoolName&&e.data.schoolPostCode?e.data.schoolName+`, `+e.data.schoolPostCode:e.data.schoolName?e.data.schoolName:``),[o,s]=Z.useState(),c=DC(i,250),{selectedIndex:l,onKeyDown:u,containerRef:d,hide:f,onBlur:p,onFocus:m}=Pf({onSelected:h,itemCount:(o?.length??0)+1,hideOnBlur:e.hideOnBlur});function h(t){if(!o&&!t)return;if(t===o.length){e.onClickNoSuggestions(i);return}let n=o[t];n&&C(n)}let g=!!e.data?.prospectId,_=n&&!g,v=!n&&!g&&o?.length<Vw,y=o?.length&&!g;Z.useEffect(()=>{if(!g){if(!c.length){S();return}if(!g&&c.length>1&&c===i){S(c);return}}},[c,g]);function b(t){(e.data.schoolName||e.data.prospectId)&&e.clearData(),t!==i&&a(t)}function x(){b(``),t.current.focus()}function S(t){if(!e.data.latitude&&!e.data.longitude){r(!1);return}r(!0);let n={latitude:e.data.latitude,longitude:e.data.longitude};t&&t.length&&(n.query=t),RC.search(e.searchUrl,n,e=>s(e),null,()=>r(!1))}function C(t){a(w(t)),e.setData({prospectId:t.id,schoolName:t.name,schoolPostCode:t.postCode,schoolType:t.prospectType,province:t.province,city:t.city,country:t.countryCode})}function w(e){return e.name}let T=(y||_||v)&&!e.disabled&&!f,E=!_&&!v&&o?.length>=Vw,D=`form-control`,O=`form-group position-relative`;return e.size===`lg`&&(D+=` form-control-lg`,O+=` ${AC.large}`),(0,Q.jsxs)(`div`,{className:O,children:[(0,Q.jsxs)(`label`,{className:e.labelClassName,htmlFor:`school-input`,children:[`School`,e.required&&(0,Q.jsx)(`span`,{className:`text-danger`,children:`*`})]}),(0,Q.jsx)(Nf,{id:`school-input`,value:i,onChange:e=>b(e.currentTarget.value),ref:t,className:D,type:`text`,autoComplete:`off`,placeholder:e.placeholder||`Search for your school`,disabled:e.disabled,autoFocus:!0,onClickClear:x,onKeyDown:u,onFocus:m,onBlur:p}),(0,Q.jsx)(`div`,{className:`position-absolute z-1 w-100 ${AC.dropdown} ${f?`d-none`:``}`,children:(0,Q.jsx)(`div`,{className:`${AC.suggestionContainer} ${T?``:`d-none`}`,children:(0,Q.jsxs)(`div`,{className:AC.suggestionContainerInner,ref:d,children:[y?(0,Q.jsx)(Ww,{filteredSchoolsList:o,onSchoolSuggestionClick:C,getSchoolName:w,selectedIndex:l}):_&&(0,Q.jsx)(`div`,{className:`${AC.suggestionLoading} py-4 d-flex justify-content-center`,children:(0,Q.jsx)(QS,{animation:`border`})}),E&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`hr`,{className:`my-0`}),(0,Q.jsx)(`div`,{className:`${AC.suggestionItem} ${AC.noSuggestion} text-secondary text-center`,children:(0,Q.jsxs)(`small`,{children:[`Can't find your school? `,(0,Q.jsx)(`br`,{}),` Try searching to narrow the results`]})})]}),!_&&v&&(0,Q.jsx)(Gw,{selected:l===o.length+1,handleNoSuggestion:()=>{e.onClickNoSuggestions(i)}})]})})})]})}function qw(e){return e?.toLowerCase()===`au`?`Enter your school postcode or suburb`:e?.toLowerCase()===`us`?`Enter your school ZIP code or city`:e?.toLowerCase()===`ca`?`Enter your school postal code or city`:`Enter your school postcode or city`}function Jw(e){let{email:t,userType:n}=e,[r,i]=Z.useState({schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province,prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolPostCode:e.schoolPostCode}),[a,o]=Z.useState(e.trialStatus),[s,c]=Z.useState(),[l,u]=Z.useState(!1),[d,f]=Z.useState(!1),[p,m]=Z.useState(!1),h=Bw({...e,prospectStatus:a,loading:l,data:r,canSubmitForm:_,setSubmissionError:c,logStepEvent:v,setLoadingState:y,setProperty:b});function g(){return!!(r&&r.schoolLocality&&r.longitude&&r.latitude)}function _(){if(!r||!t||!n)return!1;let{prospectId:e}=r;return!!(t&&n&&e)}function v(){let t={actionType:CS.Click,descriptor:DS.FindSchool,workflowPhase:ES.Next};e.logUserAction(r||{},t)}function y(e){f(e),m(e),u(e)}function b(t,n){t===`prospectId`&&n&&(u(!0),VC.checkProspectTrialStatus(e.ajaxUrls,{prospectId:n.toString(),email:e.email},e=>{o(e.status)},()=>{console.log(`error`)},()=>{u(!1)})),i(e=>({...e,[t]:n}))}function x(){b(`schoolLocality`,void 0),b(`longitude`,void 0),b(`latitude`,void 0),b(`city`,void 0),b(`province`,void 0),b(`country`,void 0),S()}function S(){b(`prospectId`,void 0),b(`schoolName`,``),b(`schoolPostCode`,void 0),c(void 0)}function C(t){e.nextStep({step:`cant-find-school`,prospectId:r.prospectId,schoolName:t,schoolLocality:r.schoolLocality,longitude:r.longitude,latitude:r.latitude,country:r.country,city:r.city,province:r.province}),e.logUserAction({},{actionType:CS.Click,descriptor:DS.CantFindSchool,workflowPhase:ES.Next})}function w(e){b(`prospectId`,e.prospectId),b(`schoolName`,e.schoolName),b(`schoolPostCode`,e.schoolPostCode),b(`schoolType`,e.schoolType),b(`province`,e.province),b(`city`,e.city),b(`country`,e.country)}function T(e){let{longitude:t,latitude:n,schoolLocality:r,country:i,city:a,province:o}=e;t&&b(`longitude`,t),n&&b(`latitude`,n),i&&b(`country`,i),a&&b(`city`,a),o&&b(`province`,o),r&&b(`schoolLocality`,r)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Let's find your school`}),(0,Q.jsx)(`p`,{children:qw(e.geoLocation?.countryCode)})]}),(0,Q.jsx)(MC,{data:r,setData:T,clearData:x,disabled:d,geoLocation:e.geoLocation,labelClassName:`d-none`,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!0,size:`lg`,useGeoLocationApi:!0}),g()&&(0,Q.jsx)(Kw,{data:r,setData:w,clearData:S,disabled:p,searchUrl:e.ajaxUrls.searchProspect,onClickNoSuggestions:C,size:`lg`,labelClassName:`d-none`}),s&&(0,Q.jsx)(`p`,{className:`text-danger mb-2`,children:s}),_()&&(0,Q.jsx)($S,{className:`btn-lg w-100`,variant:`dark`,onClick:h,showSpinner:d||p||l,disabled:d||p||l,children:`Get started`})]})}var Yw=[`38A2E8`,`7A76E8`,`40BCC3`,`F7847B`];function Xw(e){let[t,n]=Z.useState(null);function r(e){if(!e)return;let t=window.location.pathname+window.location.search;window.location.href=`/challenge?idp=${e.id}&redirectUrl=`+encodeURIComponent(t)}function i(){e.logUserAction({},{actionType:CS.Click,workflowPhase:ES.Next,descriptor:DS.SkipIdpSelect}),e.nextStep({step:`find-school`,email:e.email,userTrialStatus:e.userTrialStatus})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Does your school already have ClickView?`}),(0,Q.jsx)(`p`,{children:`Find your school from the list below`})]}),e.idps.length>4?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Rf,{id:`idp`,item:t,items:e.idps,onSelect:n,getName:e=>e.name,clearData:()=>n(null),placeholder:`Select a school`,size:`lg`}),(0,Q.jsx)(`button`,{className:`btn btn-lg btn-dark w-100 mb-3`,disabled:!t,onClick:()=>r(t),children:`Continue`})]}):e.idps.map((e,t)=>(0,Q.jsx)(`button`,{className:`btn btn-lg w-100 mb-3`,onClick:()=>r(e),style:{backgroundColor:`#${Yw[t%Yw.length]}`,color:`#FFF`},children:e.name},t)),(0,Q.jsx)(`button`,{className:`btn btn-link text-info w-100 no-sso-link`,onClick:i,children:`My school does not have ClickView`})]})}var Zw={userTypeOption:`_userTypeOption_egazo_1`,selected:`_selected_egazo_8`,mobileButtons:`_mobileButtons_egazo_13`};function Qw(e){return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(Ff,{className:`
30
30
  d-flex
31
31
  flex-column
32
32
  justify-content-between
@@ -38,5 +38,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
38
38
  mx-auto
39
39
  d-md-block
40
40
  d-none
41
- ${vT.userTypeOption} ${e.selected?vT.selected:``}`,onClick:()=>e.onClick(e.type),children:[(0,Q.jsx)(`img`,{src:e.imageSrc,className:`rounded-top mx-auto pb-2 w-100`}),(0,Q.jsx)(`div`,{className:`py-2`,children:(0,Q.jsx)(`span`,{className:`h4`,children:e.buttonText})})]}),(0,Q.jsx)(Ff,{className:`btn btn-lg btn-outline-dark w-100 d-md-none d-block mx-auto ${vT.mobileButtons}`,onClick:()=>e.onClick(e.type),children:e.buttonText})]})}function bT(e){function t(t){if(e.logUserAction({userType:t},{actionType:WS.Click,workflowPhase:qS.Next,descriptor:t===EC.Staff?JS.Educator:JS.Student}),t===EC.Staff){e.nextStep({step:`enter-email`,userType:t});return}e.nextStep({step:`enter-age`,userType:t})}return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Access educational videos at your fingertips`}),(0,Q.jsx)(`p`,{className:`mb-3`,children:`Sign up for instant access to class-ready videos and worksheets.`}),(0,Q.jsxs)(`div`,{className:`row`,children:[(0,Q.jsx)(`div`,{className:`col-lg-6 mb-3`,children:(0,Q.jsx)(yT,{type:EC.Staff,buttonText:`I'm an educator`,imageSrc:e.imageUrls.educator,onClick:t,selected:e.userType===EC.Staff})}),(0,Q.jsx)(`div`,{className:`col-lg-6 mb-3`,children:(0,Q.jsx)(yT,{type:EC.Learner,buttonText:`I'm a student`,imageSrc:e.imageUrls.student,onClick:t,selected:e.userType===EC.Learner})})]})]})}var xT={"select-type":bT,"enter-email":tT,"find-school":hT,"cant-find-school":hw,completed:Bw,"add-to-braze":jC,"enter-age":Kw,"request-access":iT,"request-bdm-trial":oT,"select-idp":_T};function ST(e){let{state:t,geoLocation:n,layout:r,hasPreviousStep:i,googleMapsApiKey:a,pageAppLinkString:o,back:s,nextStep:c,complete:l,logUserAction:u,logBrazeEvent:d,imageUrls:f,ajaxUrls:p,productName:m,getSignInUrl:h,globalIdps:g,createOrUpdateProfile:_,getCrmIdForProspect:v}=e,y=xT[t.currentStepId],b={...t,geoLocation:n,googleMapsApiKey:a,pageAppLinkString:o,back:s,nextStep:c,complete:l,logUserAction:u,imageUrls:f,ajaxUrls:p,productName:m,getSignInUrl:h,logBrazeEvent:d,globalIdps:g,createOrUpdateProfile:_,getCrmIdForProspect:v},x=r;if(!x)return(0,Q.jsx)(y,{...b});let S=XS.last(e.state.previousStepIds)===`completed`;return(0,Q.jsx)(x,{geoLocation:e.geoLocation,currentStep:t.currentStepId,previousStep:s,closeApp:e.close,logUserAction:u,hasPreviousStep:i,showBackButton:!S,imageUrls:e.imageUrls,getSignInUrl:h,children:(0,Q.jsx)(y,{...b})})}var CT=[`email`,`longitude`,`latitude`,`trialCreated`,`idps`],wT={filterBlacklistedKeys(e){let t={...e};return CT.forEach(e=>delete t[e]),t}};function TT(e){let t=[...e.previousStepIds],n=t.pop();return{...e,previousStepIds:t,currentStepId:n}}function ET(e){return Object.entries(e).filter(([,e])=>e!==null).reduce((e,[t,n])=>({...e,[t]:n}),{})}function DT(e,t){let n={...e,previousStepIds:[...e.previousStepIds,e.currentStepId],currentStepId:t.step};if(t.step===`select-type`)return{...n};if(t.step===`enter-email`||t.step===`enter-age`)return{...n,userType:t.userType};if(t.step===`select-idp`)return{...n,email:t.email,userTrialStatus:t.userTrialStatus,idps:t.idps};if(t.step===`find-school`)return{...n,email:t.email,userTrialStatus:t.userTrialStatus};if(t.step===`cant-find-school`)return{...n,prospectId:t.prospectId,schoolName:t.schoolName,schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province};if(t.step===`add-to-braze`||t.step===`completed`||t.step===`request-access`||t.step===`request-bdm-trial`){let e={...t};return delete e.type,delete e.step,e=ET(e),{...n,...e}}}function OT(e,t){switch(t.type){case`nextStep`:return DT(e,t);case`back`:return TT(e)}}var kT=({location:e,initialValues:t,entryPage:n,onStepUpdate:r,externalLogUserAction:i})=>{let a={currentStepId:`select-type`,previousStepIds:[],...AC.removeEmptyKeys(t)},[o,s]=Z.useReducer(OT,a);Z.useEffect(()=>{r?.(o)},[o.currentStepId]);function c(){s({type:`back`})}function l(e){s({type:`nextStep`,...e})}function u(e){s({type:`nextStep`,step:`completed`,...e})}function d(t,r){let a={...o,...t},s=wT.filterBlacklistedKeys(a),c={currentStepId:o.currentStepId,...s};n&&(c.entryPage=n),i(Object.entries(c).filter(([,e])=>e!==void 0).reduce((e,[t,n])=>({...e,[t]:n}),{}),{entity:GS.SignUp,location:e,...r})}return{state:o,back:c,nextStep:l,complete:u,hasPreviousStep:!!o.previousStepIds.length,logUserAction:d}},AT={statusImages:{available:`/images/sign-up/available-v2.png`,active:`/images/sign-up/active-v2.png`,expired:`/images/sign-up/expired-v2.png`,notRequired:`/images/sign-up/active-v2.png`,unavailable:`/images/sign-up/unavailable-v2.png`,unsupported:`/images/sign-up/unavailable-v2.png`,autoJoin:`/images/sign-up/active-v2.png`,requestAccess:`/images/sign-up/active-v2.png`}};function jT(e){let t={currentStepId:`find-school`,previousStepIds:[],email:e.email,userType:EC.Staff},n=e.geoLocation?.countryCode?e.geoLocation:{countryCode:$.US,isFallback:!0},{complete:r,...i}=kT({location:KS.AuthProspectSelect,initialValues:t,externalLogUserAction:d}),[a,o]=Z.useState(null);Z.useEffect(()=>{yd.get(`/ajax/config`).then(e=>o(e))},[]);let s=Nx(a?.gatewayApi),c=Z.useMemo(()=>{if(!a)return null;let e={cvApSoutheast1:a.analytics[Xx.CvApSoutheast1].collectionApi,cvApSoutheast2:a.analytics[Xx.CvApSoutheast2].collectionApi,cvEuWest1:a.analytics[Xx.CvEuWest1].collectionApi,cvNaWest1:a.analytics[Xx.CvNaWest1].collectionApi};return new US({productName:`auth.web`,productVersion:a.version,regionName:aC.getRegionName(n?.countryCode),collectionApiUrls:e,collectionApiClientId:`cv_auth`,getUser:()=>null,logAttributionData:!0,logUtmParameters:!0})},[a]),l=Z.useMemo(()=>{if(!a?.braze)return null;let e=a.braze[aC.getRegionName(n?.countryCode)];return new kx.BrazeClient({apiOptions:{apiKey:e.apiKey,baseUrl:e.url,productName:`auth.web`,productVersion:a.version,allowUserSuppliedJavascript:!1,automaticallyShowInAppMessages:!1}})},[a]);Ax({additionalData:e.additionalData});function u(e){if(!l)return;let t=tf.getDecodedAttributionData(),n=e.event?.additionalData||{};t?.originalReferrer&&(n.original_referrer=t.originalReferrer),t?.internalReferrer&&(n.internal_referrer=t.internalReferrer);let r={...e.event,additionalData:n};l.setUserInit(e.user),l.event.log(r)}function d(e,t){c?.log({type:t.actionType,data:e,actionContext:{productArea:`prospect_select`,entity:t.entity,location:t.location,descriptor:t.descriptor,workflowPhase:t.workflowPhase},eventVersion:t.eventVersion||YS.V1})}function f(t){if(!t.trialCreated){r(t);return}yd.post(`/ajax/login/select-customer`,{customerId:t.customerId,returnUrl:e.returnUrl}).then(t=>Ld(t,e))}function p(){e.navigate({step:e.backStep,backStep:null})}async function m(e){try{return(await yd.get(s.prospectLookups(e))).find(e=>e.type===rT.CrmId)?.externalId}catch{return}}if(!a)return(0,Q.jsx)(Q.Fragment,{});let h={...i,complete:f,googleMapsApiKey:a.googleMapsApiKey,ajaxUrls:s,imageUrls:AT,geoLocation:n,productName:Mx.Auth,getSignInUrl:()=>``,logBrazeEvent:u,getCrmIdForProspect:m};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:!!e.backStep&&p}),(0,Q.jsx)(ST,{...h})]})}function MT(e){return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(td,{theme:e.theme}),(0,Q.jsx)(`img`,{className:`img-fluid mb-4`,alt:`error`,src:`/images/errors/email-not-allowed-v2.png`}),(0,Q.jsx)(`h1`,{className:`h2 mb-3`,children:`Oops! Make sure to use your school email address`}),(0,Q.jsx)(`p`,{className:`mb-3`,children:`This includes the email you use to sign in to Google or Microsoft.`}),(0,Q.jsx)(`a`,{href:e.liteUrl+`sign-up`,className:`btn btn-lg btn-dark w-100 text-decoration-none`,children:`Try again`})]})}var NT={username:Xu,"username-input":Sf,"username-or-guest":Cf,"guest-selection":Hf,password:Kf,"select-idp":Jf,error:Sp,"verify-email":ep,"verify-email-check-code":cp,"verify-email-link-success":up,"verify-email-skip-reason":Dp,"forgot-password":dp,"forgot-password-check-code":fp,"reset-password":hp,"change-password":gp,"self-activation":_p,"self-activation-check-code":vp,"verify-email-link-email-in-use":wp,"verify-email-code-email-in-use":Tp,logout:Op,loggedout:kp,"activate-user":wb,"select-customer":Ob,"trial-expired":Lb,"link-account":bx,"link-account-code":xx,invite:Tx,"invite-success":Ex,"select-user-type":Ox,"prospect-select":jT,"email-not-allowed":MT,"organisation-select-customer":Ap,"contact-support":xp};function PT(e,t){if(t.type!==`navigate`)return e;let n=Object.keys(t.data).reduce((e,n)=>{if(n!==`bannerType`)return t.data[n]!==void 0&&(e={...e,[n]:t.data[n]}),e},{});return t.data.clearUsername&&(n.username=void 0,n.clearUsername=void 0),{...e,...n}}function FT(e,t){return t.type===`setBanner`?{...e,bannerType:t.data.bannerType}:e}function IT(e,t){switch(t.type){case`navigate`:return PT(e,t);case`setBanner`:return FT(e,t)}}var LT={footer:`_footer_psbd8_1`};function RT(e){return(0,Q.jsx)(`div`,{className:`text-center p-2 text-secondary small`,children:(0,Q.jsxs)(`ul`,{className:`d-flex flex-wrap list-unstyled justify-content-center`,children:[(0,Q.jsx)(`li`,{children:(0,Q.jsxs)(`span`,{children:[`2003 - `,new Date().getFullYear(),` © ClickView Pty Limited`]})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`a`,{href:e.privacyPolicyUrl,className:`text-secondary`,children:(0,Q.jsx)(`strong`,{children:`Privacy Policy`})})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`a`,{href:e.termsAndConditionsUrl,className:`text-secondary`,children:(0,Q.jsx)(`strong`,{children:`Terms and Conditions`})})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`span`,{children:e.version})})]})})}function zT(e){return(0,Q.jsx)(`footer`,{className:LT.footer,children:(0,Q.jsx)(RT,{...e})})}var BT=`M317.302 140.594C356.23 163.069 356.23 219.257 317.302 241.731L87.9302 374.159C36.1933 404.029 -21.7046 346.131 8.16593 294.394L50.9108 220.359C61.3416 202.293 61.3416 180.034 50.9109 161.967L8.16512 87.9294C-21.7052 36.1925 36.1927 -21.7052 87.9295 8.16518L317.302 140.594Z`;function VT(){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:BT}),(0,Q.jsx)(`path`,{fill:`#313543`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})}var HT=function(e){return e[e.Audience=1]=`Audience`,e[e.Category=2]=`Category`,e[e.Channel=3]=`Channel`,e[e.Chapter=4]=`Chapter`,e[e.Comment=5]=`Comment`,e[e.OwnerComment=6]=`OwnerComment`,e[e.Image=7]=`Image`,e[e.Thumbnail=8]=`Thumbnail`,e[e.Avatar=9]=`Avatar`,e[e.Banner=10]=`Banner`,e[e.Video=11]=`Video`,e[e.Trailer=12]=`Trailer`,e[e.Rating=13]=`Rating`,e[e.Topic=14]=`Topic`,e[e.Series=15]=`Series`,e[e.Season=16]=`Season`,e[e.HostedMediaObjectCollection=17]=`HostedMediaObjectCollection`,e[e.ExchangeCollection=18]=`ExchangeCollection`,e[e.CustomMediaObjectCollection=19]=`CustomMediaObjectCollection`,e[e.Playlist=20]=`Playlist`,e[e.ClickViewTvCollection=21]=`ClickViewTvCollection`,e[e.ClickViewProductionsCollection=22]=`ClickViewProductionsCollection`,e[e.User=23]=`User`,e[e.SystemUser=24]=`SystemUser`,e[e.Customer=25]=`Customer`,e[e.Country=26]=`Country`,e[e.Organisation=28]=`Organisation`,e[e.SystemOrganisation=29]=`SystemOrganisation`,e[e.Group=30]=`Group`,e[e.SystemGroup=31]=`SystemGroup`,e[e.FlagReason=32]=`FlagReason`,e[e.Library=33]=`Library`,e[e.Interactive=34]=`Interactive`,e[e.WorkspaceCollection=35]=`WorkspaceCollection`,e[e.Conversation=36]=`Conversation`,e[e.Message=37]=`Message`,e[e.Notification=38]=`Notification`,e[e.Clip=39]=`Clip`,e[e.Link=40]=`Link`,e[e.UserChannel=41]=`UserChannel`,e[e.Resource=42]=`Resource`,e[e.VideoStream=43]=`VideoStream`,e[e.AudioStream=44]=`AudioStream`,e[e.Tag=45]=`Tag`,e[e.Subtitle=46]=`Subtitle`,e[e.LicencedContentCollection=47]=`LicencedContentCollection`,e[e.PublicCollection=48]=`PublicCollection`,e[e.CategoryTree=49]=`CategoryTree`,e[e.Logo=50]=`Logo`,e[e.Permission=51]=`Permission`,e[e.Subject=52]=`Subject`,e[e.Field=53]=`Field`,e[e.Company=54]=`Company`,e[e.Person=55]=`Person`,e[e.Cover=56]=`Cover`,e[e.Poster=57]=`Poster`,e[e.SubjectAudience=58]=`SubjectAudience`,e[e.TallPoster=60]=`TallPoster`,e[e.Classroom=67]=`Classroom`,e[e.ClassroomGroup=68]=`ClassroomGroup`,e[e.UserProfile=74]=`UserProfile`,e[e.PartnerProfile=78]=`PartnerProfile`,e[e.LearningLevel=79]=`LearningLevel`,e}({}),UT={left:`_left_1r3w0_1`,leftWithImage:`_leftWithImage_1r3w0_10`,bgCover:`_bgCover_1r3w0_14`,bgFull:`_bgFull_1r3w0_17`,right:`_right_1r3w0_20`,rightContent:`_rightContent_1r3w0_28`,narrowContent:`_narrowContent_1r3w0_34`,logo:`_logo_1r3w0_37`,buttonContainer:`_buttonContainer_1r3w0_43`,blur:`_blur_1r3w0_53`,imageContainer:`_imageContainer_1r3w0_65`,imagePosition:`_imagePosition_1r3w0_73`,image:`_image_1r3w0_65`,thumbnail:`_thumbnail_1r3w0_87`,tallposter:`_tallposter_1r3w0_90`,cover:`_cover_1r3w0_96`,contentBody:`_contentBody_1r3w0_102`,contentBodyBase:`_contentBodyBase_1r3w0_106`};function WT(e){switch(e){case HT.Video:case HT.Interactive:case HT.Clip:return UT.thumbnail;case HT.Subject:case HT.Playlist:return UT.cover;case HT.Series:return UT.tallposter;default:return``}}function GT(e){return(0,Q.jsx)(`div`,{className:`d-flex`,children:e.children})}function KT(e){return(0,Q.jsx)(`div`,{className:`${UT.left} ${e.className?e.className:``}`,children:e.children})}function qT(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(``);return Z.useEffect(()=>{if(!e.imageUrl){let t=e.fallbackImages[Math.floor(Math.random()*e.fallbackImages.length)];i(t.bgUrl);return}let t=new Image;return t.onload=()=>n(!0),t.src=e.imageUrl,()=>t.onload=null},[e.imageUrl]),(0,Q.jsx)(`div`,{className:`${UT.left} ${UT.leftWithImage} ${UT.bgCover} bg-light`,style:{backgroundImage:r?`url('${r}')`:``},children:t&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:UT.blur,style:{backgroundImage:`url('${e.imageUrl}')`}}),(0,Q.jsx)(`div`,{className:`${UT.imageContainer} ${WT(e.objectType)}`,children:(0,Q.jsx)(`div`,{className:UT.imagePosition,children:(0,Q.jsx)(`img`,{className:UT.image,src:e.imageUrl,alt:e.title})})})]})})}function JT(e){let[t,n]=Z.useState(``);return Z.useEffect(()=>{let t=e.images[Math.floor(Math.random()*e.images.length)];n(t.bgUrl)},[]),(0,Q.jsx)(`div`,{className:`${UT.left} bg-blue d-flex align-items-center`,children:t&&(0,Q.jsx)(`img`,{className:`img-fluid`,src:t,draggable:!1})})}var YT={cover:UT.bgCover,full:UT.bgFull};function XT(e){let t={backgroundImage:e.imageUrl?`url("${e.imageUrl}")`:``};return e.backgroundColor&&(t.backgroundColor=e.backgroundColor),(0,Q.jsx)(`div`,{className:`${UT.left} ${UT.leftWithImage} ${YT[e.imageSize||`cover`]} d-flex align-items-center`,style:t,title:e.title})}function ZT(e){return(0,Q.jsx)(`div`,{className:`${UT.right} ${e.className?e.className:``}`,children:e.children})}function QT(e){let t=e?.logoComponent||VT;return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[!!e.bannerComponent&&e.bannerComponent,(0,Q.jsx)(`div`,{className:ed(UT.logo,`position-absolute`,e.className?.logoContainer),children:(0,Q.jsx)(t,{})}),e.children]})}function $T(e){return(0,Q.jsx)(`div`,{className:ed(UT.rightContent,`d-flex flex-column justify-content-center h-100`,e?.className),children:e.children})}var eE={base:UT.contentBodyBase,full:``};function tE(e){let t=eE[e.width||`base`];return(0,Q.jsx)(`div`,{className:ed(UT.contentBody,t,`m-auto p-3`,e.className),children:e.children})}GT.NarrowContent=nE;function nE(e){return(0,Q.jsx)(`div`,{className:`${UT.narrowContent} mx-auto w-100 ${e.className?e.className:``}`,children:e.children})}function rE(e){return(0,Q.jsx)(`div`,{className:ed(`position-fixed bg-white d-flex align-items-center`,UT.buttonContainer,e?.className),children:e.children})}GT.Left=KT,GT.LeftImage=qT,GT.LeftProductImage=JT,GT.LeftImageWithBackground=XT,GT.Right=ZT,GT.Header=QT,GT.Content=$T,GT.ContentBody=tE,GT.Buttons=rE;function iE(){function e(n){n.key===`Tab`&&(document.body.classList.add(`user-is-tabbing`),window.removeEventListener(`keydown`,e),window.addEventListener(`mousedown`,t))}function t(){document.body.classList.remove(`user-is-tabbing`),window.removeEventListener(`mousedown`,t),window.addEventListener(`keydown`,e)}(0,Z.useEffect)(()=>(window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)),[])}var aE={full:`_full_vw1kz_1`,themeBannerClearance:`_themeBannerClearance_vw1kz_9`};function oE(e){return e.imageType===`background`?(0,Q.jsx)(GT.LeftImageWithBackground,{imageUrl:e.imageUrl}):e.imageType===`image`?(0,Q.jsx)(GT.LeftImageWithBackground,{imageUrl:e.imageUrl,imageSize:`full`,backgroundColor:e.backgroundColor,title:e.title}):(0,Q.jsx)(Q.Fragment,{})}function sE(e){let{children:t,footer:n,bannerType:r,theme:i}=e,[a,o]=Z.useState(null);iE();let{imageUrls:s,imageType:c,backgroundColor:l,banner:u,title:d,logoComponent:f,bannerSpacer:p}=Fd.getDefinition(i),m=s[e.geoLocation?.countryCode?.toLowerCase()]||s.default;Z.useEffect(()=>{o(m[Math.floor(Math.random()*m.length)])},[]);let h=c!==`none`,g=!!r,_=[`plugin`].includes(r);return(0,Q.jsxs)(GT,{children:[h&&(0,Q.jsx)(oE,{title:d,imageUrl:a,imageType:c,backgroundColor:l}),(0,Q.jsxs)(GT.Right,{className:ed(!h&&aE.full),children:[(0,Q.jsx)(GT.Header,{bannerComponent:!!u&&(0,Q.jsx)(xd,{bannerType:u}),logoComponent:f,className:{logoContainer:!!u&&aE.themeBannerClearance}}),(0,Q.jsxs)(GT.Content,{className:ed(!h&&`px-0 w-100`,`pb-0`),children:[!_&&(0,Q.jsx)(xd,{bannerType:r}),(0,Q.jsxs)(GT.ContentBody,{children:[t,!_&&g&&(0,Q.jsx)(p,{})]}),(0,Q.jsx)(zT,{...n})]})]})]})}function cE(e){let{step:t,returnUrl:n,data:r={},footer:i,geoLocation:a,theme:o,additionalData:s}=e,[c,l]=Z.useReducer(IT,{step:t,returnUrl:n,geoLocation:a,theme:o,additionalData:s,...r});function u(e){l({type:`navigate`,data:e})}let d=NT[c.step];return d||Ld({step:t,data:r},null),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(sE,{footer:{...i,...c},bannerType:c.bannerType,step:t,theme:o,geoLocation:a,children:!!d&&(0,Q.jsx)(d,{navigate:u,dispatch:l,...c})}),!1]})}function lE(e){let{id:t,returnUrl:n,footer:r,region:i,config:a,theme:o,additionalData:s}=e,c=e.currentStep||{};(0,Wu.createRoot)(document.getElementById(t)).render((0,Q.jsx)(cE,{returnUrl:n,step:c.step,data:{...a,...c.data},footer:r,geoLocation:i,theme:c.data?.theme||o,additionalData:s}))}window.cvauth={start:lE};
42
- //# sourceMappingURL=index-BNeIfW2U.js.map
41
+ ${Zw.userTypeOption} ${e.selected?Zw.selected:``}`,onClick:()=>e.onClick(e.type),children:[(0,Q.jsx)(`img`,{src:e.imageSrc,className:`rounded-top mx-auto pb-2 w-100`}),(0,Q.jsx)(`div`,{className:`py-2`,children:(0,Q.jsx)(`span`,{className:`h4`,children:e.buttonText})})]}),(0,Q.jsx)(Ff,{className:`btn btn-lg btn-outline-dark w-100 d-md-none d-block mx-auto ${Zw.mobileButtons}`,onClick:()=>e.onClick(e.type),children:e.buttonText})]})}function $w(e){function t(t){if(e.logUserAction({userType:t},{actionType:CS.Click,workflowPhase:ES.Next,descriptor:t===aC.Staff?DS.Educator:DS.Student}),t===aC.Staff){e.nextStep({step:`enter-email`,userType:t});return}e.nextStep({step:`enter-age`,userType:t})}return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`h1`,{className:`h4`,children:`Access educational videos at your fingertips`}),(0,Q.jsx)(`p`,{className:`mb-3`,children:`Sign up for instant access to class-ready videos and worksheets.`}),(0,Q.jsxs)(`div`,{className:`row`,children:[(0,Q.jsx)(`div`,{className:`col-lg-6 mb-3`,children:(0,Q.jsx)(Qw,{type:aC.Staff,buttonText:`I'm an educator`,imageSrc:e.imageUrls.educator,onClick:t,selected:e.userType===aC.Staff})}),(0,Q.jsx)(`div`,{className:`col-lg-6 mb-3`,children:(0,Q.jsx)(Qw,{type:aC.Learner,buttonText:`I'm a student`,imageSrc:e.imageUrls.student,onClick:t,selected:e.userType===aC.Learner})})]})]})}var eT={"select-type":$w,"enter-email":Pw,"find-school":Jw,"cant-find-school":JC,completed:yw,"add-to-braze":uC,"enter-age":Tw,"request-access":Lw,"request-bdm-trial":zw,"select-idp":Xw};function tT(e){let{state:t,geoLocation:n,layout:r,hasPreviousStep:i,googleMapsApiKey:a,pageAppLinkString:o,back:s,nextStep:c,complete:l,logUserAction:u,logBrazeEvent:d,imageUrls:f,ajaxUrls:p,productName:m,getSignInUrl:h,globalIdps:g,createOrUpdateProfile:_,getCrmIdForProspect:v}=e,y=eT[t.currentStepId],b={...t,geoLocation:n,googleMapsApiKey:a,pageAppLinkString:o,back:s,nextStep:c,complete:l,logUserAction:u,imageUrls:f,ajaxUrls:p,productName:m,getSignInUrl:h,logBrazeEvent:d,globalIdps:g,createOrUpdateProfile:_,getCrmIdForProspect:v},x=r;if(!x)return(0,Q.jsx)(y,{...b});let S=kS.last(e.state.previousStepIds)===`completed`;return(0,Q.jsx)(x,{geoLocation:e.geoLocation,currentStep:t.currentStepId,previousStep:s,closeApp:e.close,logUserAction:u,hasPreviousStep:i,showBackButton:!S,imageUrls:e.imageUrls,getSignInUrl:h,children:(0,Q.jsx)(y,{...b})})}var nT=[`email`,`longitude`,`latitude`,`trialCreated`,`idps`],rT={filterBlacklistedKeys(e){let t={...e};return nT.forEach(e=>delete t[e]),t}};function iT(e){let t=[...e.previousStepIds],n=t.pop();return{...e,previousStepIds:t,currentStepId:n}}function aT(e){return Object.entries(e).filter(([,e])=>e!==null).reduce((e,[t,n])=>({...e,[t]:n}),{})}function oT(e,t){let n={...e,previousStepIds:[...e.previousStepIds,e.currentStepId],currentStepId:t.step};if(t.step===`select-type`)return{...n};if(t.step===`enter-email`||t.step===`enter-age`)return{...n,userType:t.userType};if(t.step===`select-idp`)return{...n,email:t.email,userTrialStatus:t.userTrialStatus,idps:t.idps};if(t.step===`find-school`)return{...n,email:t.email,userTrialStatus:t.userTrialStatus};if(t.step===`cant-find-school`)return{...n,prospectId:t.prospectId,schoolName:t.schoolName,schoolLocality:t.schoolLocality,country:t.country,longitude:t.longitude,latitude:t.latitude,city:t.city,province:t.province};if(t.step===`add-to-braze`||t.step===`completed`||t.step===`request-access`||t.step===`request-bdm-trial`){let e={...t};return delete e.type,delete e.step,e=aT(e),{...n,...e}}}function sT(e,t){switch(t.type){case`nextStep`:return oT(e,t);case`back`:return iT(e)}}var cT=({location:e,initialValues:t,entryPage:n,onStepUpdate:r,externalLogUserAction:i})=>{let a={currentStepId:`select-type`,previousStepIds:[],...lC.removeEmptyKeys(t)},[o,s]=Z.useReducer(sT,a);Z.useEffect(()=>{r?.(o)},[o.currentStepId]);function c(){s({type:`back`})}function l(e){s({type:`nextStep`,...e})}function u(e){s({type:`nextStep`,step:`completed`,...e})}function d(t,r){let a={...o,...t},s=rT.filterBlacklistedKeys(a),c={currentStepId:o.currentStepId,...s};n&&(c.entryPage=n),i(Object.entries(c).filter(([,e])=>e!==void 0).reduce((e,[t,n])=>({...e,[t]:n}),{}),{entity:wS.SignUp,location:e,...r})}return{state:o,back:c,nextStep:l,complete:u,hasPreviousStep:!!o.previousStepIds.length,logUserAction:d}},lT={statusImages:{available:`/images/sign-up/available-v2.png`,active:`/images/sign-up/active-v2.png`,expired:`/images/sign-up/expired-v2.png`,notRequired:`/images/sign-up/active-v2.png`,unavailable:`/images/sign-up/unavailable-v2.png`,unsupported:`/images/sign-up/unavailable-v2.png`,autoJoin:`/images/sign-up/active-v2.png`,requestAccess:`/images/sign-up/active-v2.png`}};function uT(e){let t={currentStepId:`find-school`,previousStepIds:[],email:e.email,userType:aC.Staff},n=e.geoLocation?.countryCode?e.geoLocation:{countryCode:$.US,isFallback:!0},{complete:r,...i}=cT({location:TS.AuthProspectSelect,initialValues:t,externalLogUserAction:d}),[a,o]=Z.useState(null);Z.useEffect(()=>{yd.get(`/ajax/config`).then(e=>o(e))},[]);let s=fx(a?.gatewayApi),c=Z.useMemo(()=>{if(!a)return null;let e={cvApSoutheast1:a.analytics[kx.CvApSoutheast1].collectionApi,cvApSoutheast2:a.analytics[kx.CvApSoutheast2].collectionApi,cvEuWest1:a.analytics[kx.CvEuWest1].collectionApi,cvNaWest1:a.analytics[kx.CvNaWest1].collectionApi};return new SS({productName:`auth.web`,productVersion:a.version,regionName:RS.getRegionName(n?.countryCode),collectionApiUrls:e,collectionApiClientId:`cv_auth`,getUser:()=>null,logAttributionData:!0,logUtmParameters:!0})},[a]),l=Z.useMemo(()=>{if(!a?.braze)return null;let e=a.braze[RS.getRegionName(n?.countryCode)];return new cx.BrazeClient({apiOptions:{apiKey:e.apiKey,baseUrl:e.url,productName:`auth.web`,productVersion:a.version,allowUserSuppliedJavascript:!1,automaticallyShowInAppMessages:!1}})},[a]);lx({additionalData:e.additionalData});function u(e){if(!l)return;let t=tf.getDecodedAttributionData(),n=e.event?.additionalData||{};t?.originalReferrer&&(n.original_referrer=t.originalReferrer),t?.internalReferrer&&(n.internal_referrer=t.internalReferrer);let r={...e.event,additionalData:n};l.setUserInit(e.user),l.event.log(r)}function d(e,t){c?.log({type:t.actionType,data:e,actionContext:{productArea:`prospect_select`,entity:t.entity,location:t.location,descriptor:t.descriptor,workflowPhase:t.workflowPhase},eventVersion:t.eventVersion||OS.V1})}function f(t){if(!t.trialCreated){r(t);return}yd.post(`/ajax/login/select-customer`,{customerId:t.customerId,returnUrl:e.returnUrl}).then(t=>Ld(t,e))}function p(){e.navigate({step:e.backStep,backStep:null})}async function m(e){try{return(await yd.get(s.prospectLookups(e))).find(e=>e.type===Iw.CrmId)?.externalId}catch{return}}if(!a)return(0,Q.jsx)(Q.Fragment,{});let h={...i,complete:f,googleMapsApiKey:a.googleMapsApiKey,ajaxUrls:s,imageUrls:lT,geoLocation:n,productName:dx.Auth,getSignInUrl:()=>``,logBrazeEvent:u,getCrmIdForProspect:m};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(td,{theme:e.theme,onClickBack:!!e.backStep&&p}),(0,Q.jsx)(tT,{...h})]})}function dT(e){return(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(td,{theme:e.theme}),(0,Q.jsx)(`img`,{className:`img-fluid mb-4`,alt:`error`,src:`/images/errors/email-not-allowed-v2.png`}),(0,Q.jsx)(`h1`,{className:`h2 mb-3`,children:`Oops! Make sure to use your school email address`}),(0,Q.jsx)(`p`,{className:`mb-3`,children:`This includes the email you use to sign in to Google or Microsoft.`}),(0,Q.jsx)(`a`,{href:e.liteUrl+`sign-up`,className:`btn btn-lg btn-dark w-100 text-decoration-none`,children:`Try again`})]})}var fT={username:Xu,"username-input":Sf,"username-or-guest":Cf,"guest-selection":Hf,password:Kf,"select-idp":Jf,error:Sp,"verify-email":ep,"verify-email-check-code":cp,"verify-email-link-success":up,"verify-email-skip-reason":Dp,"forgot-password":dp,"forgot-password-check-code":fp,"reset-password":hp,"change-password":gp,"self-activation":_p,"self-activation-check-code":vp,"verify-email-link-email-in-use":wp,"verify-email-code-email-in-use":Tp,logout:Op,loggedout:kp,"activate-user":rb,"select-customer":sb,"trial-expired":gb,"link-account":$b,"link-account-code":ex,invite:ix,"invite-success":ax,"select-user-type":sx,"prospect-select":uT,"email-not-allowed":dT,"organisation-select-customer":Ap,"contact-support":xp};function pT(e,t){if(t.type!==`navigate`)return e;let n=Object.keys(t.data).reduce((e,n)=>{if(n!==`bannerType`)return t.data[n]!==void 0&&(e={...e,[n]:t.data[n]}),e},{});return t.data.clearUsername&&(n.username=void 0,n.clearUsername=void 0),{...e,...n}}function mT(e,t){return t.type===`setBanner`?{...e,bannerType:t.data.bannerType}:e}function hT(e,t){switch(t.type){case`navigate`:return pT(e,t);case`setBanner`:return mT(e,t)}}var gT={footer:`_footer_psbd8_1`};function _T(e){return(0,Q.jsx)(`div`,{className:`text-center p-2 text-secondary small`,children:(0,Q.jsxs)(`ul`,{className:`d-flex flex-wrap list-unstyled justify-content-center`,children:[(0,Q.jsx)(`li`,{children:(0,Q.jsxs)(`span`,{children:[`2003 - `,new Date().getFullYear(),` © ClickView Pty Limited`]})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`a`,{href:e.privacyPolicyUrl,className:`text-secondary`,children:(0,Q.jsx)(`strong`,{children:`Privacy Policy`})})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`a`,{href:e.termsAndConditionsUrl,className:`text-secondary`,children:(0,Q.jsx)(`strong`,{children:`Terms and Conditions`})})}),`\xA0|\xA0`,(0,Q.jsx)(`li`,{children:(0,Q.jsx)(`span`,{children:e.version})})]})})}function vT(e){return(0,Q.jsx)(`footer`,{className:gT.footer,children:(0,Q.jsx)(_T,{...e})})}var yT=`M317.302 140.594C356.23 163.069 356.23 219.257 317.302 241.731L87.9302 374.159C36.1933 404.029 -21.7046 346.131 8.16593 294.394L50.9108 220.359C61.3416 202.293 61.3416 180.034 50.9109 161.967L8.16512 87.9294C-21.7052 36.1925 36.1927 -21.7052 87.9295 8.16518L317.302 140.594Z`;function bT(){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 2420 383`,children:[(0,Q.jsx)(`title`,{children:`ClickView Logo`}),(0,Q.jsx)(`path`,{fill:`#f8981d`,d:yT}),(0,Q.jsx)(`path`,{fill:`#313543`,d:`M611.506 37.93c32.531 0 61.155 7.86 85.686 23.732 24.569 15.898 42.448 38.445 53.64 67.43l2.553 6.609h-55.686l-1.301-2.829c-7.699-16.724-18.767-29.458-33.196-38.377l-.11-.069-.014-.01c-13.652-8.57-30.142-13.096-49.669-13.371l-1.903-.014c-19.522 0-36.885 4.537-52.213 13.522-15.305 8.973-27.345 21.774-36.129 38.544l-.015.029c-8.74 16.421-13.202 35.916-13.202 58.645 0 22.414 4.447 41.908 13.188 58.62l.847 1.564.825 1.465c8.613 15.034 20.102 26.719 34.486 35.152 15.328 8.985 32.691 13.521 52.213 13.521l1.906-.013c19.595-.268 36.134-4.686 49.812-13.045 14.419-8.92 25.48-21.649 33.175-38.367l1.3-2.826h55.708l-2.58 6.622c-11.198 28.71-29.078 51.11-53.635 67l-.091.058-.031.017c-24.507 15.544-53.089 23.239-85.564 23.239-27.772 0-53.222-6.451-76.248-19.403l-.022-.013-.007-.004-.117-.066-.021-.015c-22.685-13.233-40.648-31.506-53.841-54.737-13.252-23.335-19.83-49.632-19.83-78.769 0-29.136 6.578-55.434 19.83-78.768 13.169-23.468 31.098-41.866 53.747-55.1l.016-.012.205-.118c23.032-13.244 48.497-19.843 76.288-19.843M853.29 344.778h-48.522V37.935h48.522zm108.133 0H912.9V125.985h48.523zM937.586 37.93c8.392 0 15.617 3.072 21.365 9.12l.557.571c5.665 5.944 8.519 13.236 8.519 21.603 0 8.638-3.042 16.128-9.076 22.174-5.748 6.047-12.973 9.121-21.365 9.121-8.649 0-16.147-3.05-22.197-9.099-6.049-6.049-9.098-13.547-9.098-22.196 0-8.648 3.049-16.147 9.098-22.196s13.548-9.098 22.197-9.098m883.954 306.848h-48.52V125.985h48.52zM1797.71 37.93c8.39 0 15.61 3.072 21.36 9.12l.56.571c5.66 5.944 8.52 13.236 8.52 21.603 0 8.638-3.04 16.128-9.08 22.174-5.75 6.047-12.97 9.121-21.36 9.121-8.65 0-16.15-3.05-22.2-9.099s-9.1-13.547-9.1-22.196c0-8.648 3.05-16.147 9.1-22.196s13.55-9.098 22.2-9.098m-685.63 88.056c.18-.001.55-.007.8-.007h.02l1.27.007c.22-.001.58-.007.87-.007l1.23.005c25.71.192 47.32 6.421 64.47 19.041 17.63 12.79 29.21 30.547 34.76 52.985l1.49 6.025h-50.78l-1-3.522c-.03-.077-.03-.089-.05-.138-3.68-8.706-9.16-15.814-16.48-21.406l-.01-.012-.08-.064c-9.02-7.051-20.36-10.823-34.31-11.058l-1.42-.011c-18.69.005-33.52 6.889-44.94 20.703v.013l-.07.082c-3.49 4.155-6.47 8.877-8.93 14.186-3.21 9.073-4.87 19.779-4.87 32.199l.01 1.197.01 1.149c.2 11.745 1.9 21.943 5 30.664 2.43 5.277 5.37 9.989 8.8 14.153 11.43 13.858 26.29 20.763 45.01 20.763l1.37-.011c14-.221 25.37-3.876 34.4-10.69 7.21-5.445 12.74-12.723 16.56-21.979.01-.015.01-.03.02-.051l1.03-3.483h50.85l-1.64 6.118c-5.82 21.7-17.53 39.258-35.06 52.487l-.14.103-.04.022c-17.34 12.78-38.78 19.123-63.98 19.319l-1.21.005c-.21 0-.53-.004-.68-.005l-1.45.009h-.03c-.4 0-.82-.006-1.16-.009l-.91.005h-.02c-20.35 0-38.67-4.463-54.82-13.501l-.03-.013-.09-.053c-15.42-8.796-27.62-21.14-36.53-36.934l-.01-.014-.01-.014-.82-1.481-.01-.013-.01-.014c-8.73-16.072-13.15-34.684-13.42-55.69v-.023l-.01-1.99v-.026c0-21.601 4.42-40.66 13.45-57.012v-.005l.82-1.481.01-.013.01-.015c8.91-15.794 21.11-28.138 36.53-36.934l.09-.053.03-.014c16.15-9.038 34.47-13.501 54.82-13.501h.02zm483.02 158.82 89.96-246.876h51.35l-115.78 306.848h-51.48L1453.37 37.93h51.77zm375.01-158.827c19.94 0 37.78 4.354 53.37 13.192 15.55 8.809 27.53 21.032 35.85 36.604l.66 1.205.01.013v.013c7.04 13.033 10.99 27.498 11.91 43.315q.21 3.607.21 7.301v1.239c-.05 6.217-.43 12.744-1.13 19.576l-.45 4.359h-156.39c.98 8.318 3.05 15.659 6.15 22.076a60 60 0 0 0 8.24 10.724c11.63 11.489 25.5 17.231 41.88 17.334 13.51-.053 24.36-3.558 32.89-10.222 6.94-5.49 12.28-12.323 16.04-20.561l1.3-2.839h50.42l-1.73 6.17c-5.75 20.496-17.3 37.279-34.51 50.223l-.01.009-.02.009-.01.011c-17.36 12.794-38.78 19.047-63.92 19.047l-.21-.001-.07-.001-.46.002h-.02c-19.96 0-38.04-4.488-54.1-13.557l-.01-.004-.01-.006-.01-.004v-.003c-15.78-9.051-28.19-21.853-37.22-38.29l-.02-.029-.08-.162c-8.77-16.289-13.23-34.896-13.5-55.694v-.026l-.01-1.968v-.025c0-21.589 4.32-40.745 13.12-57.32 8.66-16.295 20.76-28.919 36.28-37.747l.74-.418c16.08-9.071 34.4-13.544 54.82-13.545m-1.7 41.839c-14.73 0-27.09 4.424-37.36 13.179-8.74 7.62-14.31 17.908-16.51 31.206h108.22c-.65-8.377-3-15.493-6.92-21.486l-.04-.065-.01-.01c-4.73-7.419-11.19-12.981-19.49-16.726l-.02-.007-.04-.023-.05-.023-.04-.017c-8.2-3.989-17.41-6.028-27.74-6.028m372.35 176.959h-46.41l-45.08-148.561-45.08 148.561h-46.39l-68.68-218.797h49.14l42.94 156.786 46.36-156.786h46.09l45.2 156.683L2361 125.98l47.88-.002zM1309.64 210.55l73.43-84.564h61.94l-103.03 109.019 103.39 109.773h-60.74l-74.99-84.406v84.406h-48.52V37.935h48.52z`})]})}var xT=function(e){return e[e.Audience=1]=`Audience`,e[e.Category=2]=`Category`,e[e.Channel=3]=`Channel`,e[e.Chapter=4]=`Chapter`,e[e.Comment=5]=`Comment`,e[e.OwnerComment=6]=`OwnerComment`,e[e.Image=7]=`Image`,e[e.Thumbnail=8]=`Thumbnail`,e[e.Avatar=9]=`Avatar`,e[e.Banner=10]=`Banner`,e[e.Video=11]=`Video`,e[e.Trailer=12]=`Trailer`,e[e.Rating=13]=`Rating`,e[e.Topic=14]=`Topic`,e[e.Series=15]=`Series`,e[e.Season=16]=`Season`,e[e.HostedMediaObjectCollection=17]=`HostedMediaObjectCollection`,e[e.ExchangeCollection=18]=`ExchangeCollection`,e[e.CustomMediaObjectCollection=19]=`CustomMediaObjectCollection`,e[e.Playlist=20]=`Playlist`,e[e.ClickViewTvCollection=21]=`ClickViewTvCollection`,e[e.ClickViewProductionsCollection=22]=`ClickViewProductionsCollection`,e[e.User=23]=`User`,e[e.SystemUser=24]=`SystemUser`,e[e.Customer=25]=`Customer`,e[e.Country=26]=`Country`,e[e.Organisation=28]=`Organisation`,e[e.SystemOrganisation=29]=`SystemOrganisation`,e[e.Group=30]=`Group`,e[e.SystemGroup=31]=`SystemGroup`,e[e.FlagReason=32]=`FlagReason`,e[e.Library=33]=`Library`,e[e.Interactive=34]=`Interactive`,e[e.WorkspaceCollection=35]=`WorkspaceCollection`,e[e.Conversation=36]=`Conversation`,e[e.Message=37]=`Message`,e[e.Notification=38]=`Notification`,e[e.Clip=39]=`Clip`,e[e.Link=40]=`Link`,e[e.UserChannel=41]=`UserChannel`,e[e.Resource=42]=`Resource`,e[e.VideoStream=43]=`VideoStream`,e[e.AudioStream=44]=`AudioStream`,e[e.Tag=45]=`Tag`,e[e.Subtitle=46]=`Subtitle`,e[e.LicencedContentCollection=47]=`LicencedContentCollection`,e[e.PublicCollection=48]=`PublicCollection`,e[e.CategoryTree=49]=`CategoryTree`,e[e.Logo=50]=`Logo`,e[e.Permission=51]=`Permission`,e[e.Subject=52]=`Subject`,e[e.Field=53]=`Field`,e[e.Company=54]=`Company`,e[e.Person=55]=`Person`,e[e.Cover=56]=`Cover`,e[e.Poster=57]=`Poster`,e[e.SubjectAudience=58]=`SubjectAudience`,e[e.TallPoster=60]=`TallPoster`,e[e.Classroom=67]=`Classroom`,e[e.ClassroomGroup=68]=`ClassroomGroup`,e[e.UserProfile=74]=`UserProfile`,e[e.PartnerProfile=78]=`PartnerProfile`,e[e.LearningLevel=79]=`LearningLevel`,e}({}),ST={left:`_left_1r3w0_1`,leftWithImage:`_leftWithImage_1r3w0_10`,bgCover:`_bgCover_1r3w0_14`,bgFull:`_bgFull_1r3w0_17`,right:`_right_1r3w0_20`,rightContent:`_rightContent_1r3w0_28`,narrowContent:`_narrowContent_1r3w0_34`,logo:`_logo_1r3w0_37`,buttonContainer:`_buttonContainer_1r3w0_43`,blur:`_blur_1r3w0_53`,imageContainer:`_imageContainer_1r3w0_65`,imagePosition:`_imagePosition_1r3w0_73`,image:`_image_1r3w0_65`,thumbnail:`_thumbnail_1r3w0_87`,tallposter:`_tallposter_1r3w0_90`,cover:`_cover_1r3w0_96`,contentBody:`_contentBody_1r3w0_102`,contentBodyBase:`_contentBodyBase_1r3w0_106`};function CT(e){switch(e){case xT.Video:case xT.Interactive:case xT.Clip:return ST.thumbnail;case xT.Subject:case xT.Playlist:return ST.cover;case xT.Series:return ST.tallposter;default:return``}}function wT(e){return(0,Q.jsx)(`div`,{className:`d-flex`,children:e.children})}function TT(e){return(0,Q.jsx)(`div`,{className:`${ST.left} ${e.className?e.className:``}`,children:e.children})}function ET(e){let[t,n]=Z.useState(!1),[r,i]=Z.useState(``);return Z.useEffect(()=>{if(!e.imageUrl){let t=e.fallbackImages[Math.floor(Math.random()*e.fallbackImages.length)];i(t.bgUrl);return}let t=new Image;return t.onload=()=>n(!0),t.src=e.imageUrl,()=>t.onload=null},[e.imageUrl]),(0,Q.jsx)(`div`,{className:`${ST.left} ${ST.leftWithImage} ${ST.bgCover} bg-light`,style:{backgroundImage:r?`url('${r}')`:``},children:t&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:ST.blur,style:{backgroundImage:`url('${e.imageUrl}')`}}),(0,Q.jsx)(`div`,{className:`${ST.imageContainer} ${CT(e.objectType)}`,children:(0,Q.jsx)(`div`,{className:ST.imagePosition,children:(0,Q.jsx)(`img`,{className:ST.image,src:e.imageUrl,alt:e.title})})})]})})}function DT(e){let[t,n]=Z.useState(``);return Z.useEffect(()=>{let t=e.images[Math.floor(Math.random()*e.images.length)];n(t.bgUrl)},[]),(0,Q.jsx)(`div`,{className:`${ST.left} bg-blue d-flex align-items-center`,children:t&&(0,Q.jsx)(`img`,{className:`img-fluid`,src:t,draggable:!1})})}var OT={cover:ST.bgCover,full:ST.bgFull};function kT(e){let t={backgroundImage:e.imageUrl?`url("${e.imageUrl}")`:``};return e.backgroundColor&&(t.backgroundColor=e.backgroundColor),(0,Q.jsx)(`div`,{className:`${ST.left} ${ST.leftWithImage} ${OT[e.imageSize||`cover`]} d-flex align-items-center`,style:t,title:e.title})}function AT(e){return(0,Q.jsx)(`div`,{className:`${ST.right} ${e.className?e.className:``}`,children:e.children})}function jT(e){let t=e?.logoComponent||bT;return(0,Q.jsxs)(`div`,{className:`position-relative`,children:[!!e.bannerComponent&&e.bannerComponent,(0,Q.jsx)(`div`,{className:ed(ST.logo,`position-absolute`,e.className?.logoContainer),children:(0,Q.jsx)(t,{})}),e.children]})}function MT(e){return(0,Q.jsx)(`div`,{className:ed(ST.rightContent,`d-flex flex-column justify-content-center h-100`,e?.className),children:e.children})}var NT={base:ST.contentBodyBase,full:``};function PT(e){let t=NT[e.width||`base`];return(0,Q.jsx)(`div`,{className:ed(ST.contentBody,t,`m-auto p-3`,e.className),children:e.children})}wT.NarrowContent=FT;function FT(e){return(0,Q.jsx)(`div`,{className:`${ST.narrowContent} mx-auto w-100 ${e.className?e.className:``}`,children:e.children})}function IT(e){return(0,Q.jsx)(`div`,{className:ed(`position-fixed bg-white d-flex align-items-center`,ST.buttonContainer,e?.className),children:e.children})}wT.Left=TT,wT.LeftImage=ET,wT.LeftProductImage=DT,wT.LeftImageWithBackground=kT,wT.Right=AT,wT.Header=jT,wT.Content=MT,wT.ContentBody=PT,wT.Buttons=IT;function LT(){function e(n){n.key===`Tab`&&(document.body.classList.add(`user-is-tabbing`),window.removeEventListener(`keydown`,e),window.addEventListener(`mousedown`,t))}function t(){document.body.classList.remove(`user-is-tabbing`),window.removeEventListener(`mousedown`,t),window.addEventListener(`keydown`,e)}(0,Z.useEffect)(()=>(window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)),[])}var RT={full:`_full_vw1kz_1`,themeBannerClearance:`_themeBannerClearance_vw1kz_9`};function zT(e){return e.imageType===`background`?(0,Q.jsx)(wT.LeftImageWithBackground,{imageUrl:e.imageUrl}):e.imageType===`image`?(0,Q.jsx)(wT.LeftImageWithBackground,{imageUrl:e.imageUrl,imageSize:`full`,backgroundColor:e.backgroundColor,title:e.title}):(0,Q.jsx)(Q.Fragment,{})}function BT(e){let{children:t,footer:n,bannerType:r,theme:i}=e,[a,o]=Z.useState(null);LT();let{imageUrls:s,imageType:c,backgroundColor:l,banner:u,title:d,logoComponent:f,bannerSpacer:p}=Fd.getDefinition(i),m=s[e.geoLocation?.countryCode?.toLowerCase()]||s.default;Z.useEffect(()=>{o(m[Math.floor(Math.random()*m.length)])},[]);let h=c!==`none`,g=!!r,_=[`plugin`].includes(r);return(0,Q.jsxs)(wT,{children:[h&&(0,Q.jsx)(zT,{title:d,imageUrl:a,imageType:c,backgroundColor:l}),(0,Q.jsxs)(wT.Right,{className:ed(!h&&RT.full),children:[(0,Q.jsx)(wT.Header,{bannerComponent:!!u&&(0,Q.jsx)(xd,{bannerType:u}),logoComponent:f,className:{logoContainer:!!u&&RT.themeBannerClearance}}),(0,Q.jsxs)(wT.Content,{className:ed(!h&&`px-0 w-100`,`pb-0`),children:[!_&&(0,Q.jsx)(xd,{bannerType:r}),(0,Q.jsxs)(wT.ContentBody,{children:[t,!_&&g&&(0,Q.jsx)(p,{})]}),(0,Q.jsx)(vT,{...n})]})]})]})}function VT(e){let{step:t,returnUrl:n,data:r={},footer:i,geoLocation:a,theme:o,additionalData:s}=e,[c,l]=Z.useReducer(hT,{step:t,returnUrl:n,geoLocation:a,theme:o,additionalData:s,...r});function u(e){l({type:`navigate`,data:e})}let d=fT[c.step];return d||Ld({step:t,data:r},null),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(BT,{footer:{...i,...c},bannerType:c.bannerType,step:t,theme:o,geoLocation:a,children:!!d&&(0,Q.jsx)(d,{navigate:u,dispatch:l,...c})}),!1]})}function HT(e){let{id:t,returnUrl:n,footer:r,region:i,config:a,theme:o,additionalData:s}=e,c=e.currentStep||{};(0,Wu.createRoot)(document.getElementById(t)).render((0,Q.jsx)(VT,{returnUrl:n,step:c.step,data:{...a,...c.data},footer:r,geoLocation:i,theme:c.data?.theme||o,additionalData:s}))}window.cvauth={start:HT};
42
+ //# sourceMappingURL=index-DVkS20ej.js.map