@flarehr/apollo-super-selection 3.35.55455 → 3.37.55638
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.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/{p-26f5c23f.system.entry.js → p-26a1d90e.system.entry.js} +6 -6
- package/dist/lib/apollo-super-selection/{p-5d582847.entry.js → p-63a41400.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/cjs/fl-button_46.cjs.entry.js +7 -5
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +2 -1
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +2 -1
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +1 -1
- package/dist/lib/esm/fl-button_46.entry.js +7 -5
- package/dist/lib/esm-es5/fl-button_46.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/lib/apollo-super-selection/{p-26f5c23f.system.entry.js → p-26a1d90e.system.entry.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-ae4f5e0b.system.js"],(function(e){"use strict";var t,n,r,i,o,a,s,u,c,l,f,d,p,h,v,m,g,y,b,w,x,S,I,_,C,k;return{setters:[function(e){t=e.r;n=e.h;r=e.c;i=e.g;o=e.f;a=e.H;s=e.a;u=e.d;c=e.e;l=e.s},function(e){f=e.f;d=e.m;p=e.S;h=e.a;v=e.i;m=e.d;g=e.b;y=e.c;b=e.g;w=e.Q},function(e){x=e.g;S=e.O;I=e.j;_=e.k;C=e.a},function(e){k=e.A}],execute:function(){function T(){}function E(e,t,n){if(n===void 0){n=Number.POSITIVE_INFINITY}if(typeof t==="function"){return function(r){return r.pipe(E((function(n,r){return f(e(n,r)).pipe(d((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new A(e,n))}}var A=function(){function e(e,t){if(t===void 0){t=Number.POSITIVE_INFINITY}this.project=e;this.concurrent=t}e.prototype.call=function(e,t){return t.subscribe(new N(e,this.project,this.concurrent))};return e}();var N=function(e){__extends(t,e);function t(t,n,r){if(r===void 0){r=Number.POSITIVE_INFINITY}var i=e.call(this,t)||this;i.project=n;i.concurrent=r;i.hasCompleted=false;i.buffer=[];i.active=0;i.index=0;return i}t.prototype._next=function(e){if(this.active<this.concurrent){this._tryNext(e)}else{this.buffer.push(e)}};t.prototype._tryNext=function(e){var t;var n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++;this._innerSub(t)};t.prototype._innerSub=function(e){var t=new h(this);var n=this.destination;n.add(t);var r=v(e,t);if(r!==t){n.add(r)}};t.prototype._complete=function(){this.hasCompleted=true;if(this.active===0&&this.buffer.length===0){this.destination.complete()}this.unsubscribe()};t.prototype.notifyNext=function(e){this.destination.next(e)};t.prototype.notifyComplete=function(){var e=this.buffer;this.active--;if(e.length>0){this._next(e.shift())}else if(this.active===0&&this.hasCompleted){this.destination.complete()}};return t}(p);function F(e,t,n,r){if(I(n)){r=n;n=undefined}if(r){return F(e,t,n).pipe(d((function(e){return x(e)?r.apply(void 0,e):r(e)})))}return new S((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}P(e,t,i,r,n)}))}function P(e,t,n,r,i){var o;if(R(e)){var a=e;e.addEventListener(t,n,i);o=function(){return a.removeEventListener(t,n,i)}}else if(D(e)){var s=e;e.on(t,n);o=function(){return s.off(t,n)}}else if(O(e)){var u=e;e.addListener(t,n);o=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var c=0,l=e.length;c<l;c++){P(e[c],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(o)}function O(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function D(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function R(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function q(e,t){if(t===void 0){t=_}return function(n){return n.lift(new M(e,t))}}var M=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new U(e,this.dueTime,this.scheduler))};return e}();var U=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dueTime=n;i.scheduler=r;i.debouncedSubscription=null;i.lastValue=null;i.hasValue=false;return i}t.prototype._next=function(e){this.clearDebounce();this.lastValue=e;this.hasValue=true;this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))};t.prototype._complete=function(){this.debouncedNext();this.destination.complete()};t.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var e=this.lastValue;this.lastValue=null;this.hasValue=false;this.destination.next(e)}};t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;if(e!==null){this.remove(e);e.unsubscribe();this.debouncedSubscription=null}};return t}(C);function L(e){e.debouncedNext()}function B(e,t,n){return function r(i){return i.lift(new j(e,t,n))}}var j=function(){function e(e,t,n){this.nextOrObserver=e;this.error=t;this.complete=n}e.prototype.call=function(e,t){return t.subscribe(new V(e,this.nextOrObserver,this.error,this.complete))};return e}();var V=function(e){__extends(t,e);function t(t,n,r,i){var o=e.call(this,t)||this;o._tapNext=T;o._tapError=T;o._tapComplete=T;o._tapError=r||T;o._tapComplete=i||T;if(I(n)){o._context=o;o._tapNext=n}else if(n){o._context=n;o._tapNext=n.next||T;o._tapError=n.error||T;o._tapComplete=n.complete||T}return o}t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)};t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)};t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()};return t}(C);var z="3.35.55455";var Q=function(e){return e._tag==="Some"};var H=function(e){return e._tag==="None"};var W={_tag:"None"};var G=function(e){return{_tag:"Some",value:e}};function K(e){return e==null?W:G(e)}function X(e){return H(e)?undefined:e.value}var Y=function(e){return function(t){return H(t)?e():t.value}};var J=Y;var $=function(){function e(e){this.factory=e;this._value=W}Object.defineProperty(e.prototype,"value",{get:function(){if(Q(this._value)){return this._value.value}var e=this.factory();this._value=G(e);return e},enumerable:false,configurable:true});return e}();function Z(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function ee(e){k.injectProps(e,["history","location"])}var te="/";var ne="./";var re=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var ie=function(e,t){var n=[];var r=0;var i=0;var o="";var a=t&&t.delimiter||te;var s=t&&t.delimiters||ne;var u=false;var c;while((c=re.exec(e))!==null){var l=c[0];var f=c[1];var d=c.index;o+=e.slice(i,d);i=d+l.length;if(f){o+=f[1];u=true;continue}var p="";var h=e[i];var v=c[2];var m=c[3];var g=c[4];var y=c[5];if(!u&&o.length){var b=o.length-1;if(s.indexOf(o[b])>-1){p=o[b];o=o.slice(0,b)}}if(o){n.push(o);o="";u=false}var w=p!==""&&h!==undefined&&h!==p;var x=y==="+"||y==="*";var S=y==="?"||y==="*";var I=p||a;var _=m||g;n.push({name:v||r++,prefix:p,delimiter:I,optional:S,repeat:x,partial:w,pattern:_?ae(_):"[^"+oe(I)+"]+?"})}if(o||i<e.length){n.push(o+e.substr(i))}return n};var oe=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var ae=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var se=function(e){return e&&e.sensitive?"":"i"};var ue=function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n){for(var r=0;r<n.length;r++){t.push({name:r,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,pattern:null})}}return e};var ce=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(de(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",se(n))};var le=function(e,t,n){return fe(ie(e,n),t,n)};var fe=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var o=oe(n.delimiter||te);var a=n.delimiters||ne;var s=[].concat(n.endsWith||[]).map(oe).concat("$").join("|");var u="";var c=false;for(var l=0;l<e.length;l++){var f=e[l];if(typeof f==="string"){u+=oe(f);c=l===e.length-1&&a.indexOf(f[f.length-1])>-1}else{var d=oe(f.prefix||"");var p=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;if(t)t.push(f);if(f.optional){if(f.partial){u+=d+"("+p+")?"}else{u+="(?:"+d+"("+p+"))?"}}else{u+=d+"("+p+")"}}}if(i){if(!r)u+="(?:"+o+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+o+"(?="+s+"))?";if(!c)u+="(?="+o+"|"+s+")"}return new RegExp("^"+u,se(n))};var de=function(e,t,n){if(e instanceof RegExp){return ue(e,t)}if(Array.isArray(e)){return ce(e,t,n)}return le(e,t,n)};var pe=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var he=function(e,t){return pe(e,t)?e.substr(t.length):e};var ve=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var me=function(e){return e.charAt(0)==="/"?e:"/"+e};var ge=function(e){return e.charAt(0)==="/"?e.substr(1):e};var ye=function(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var o=t.indexOf("?");if(o!==-1){n=t.substr(o);t=t.substr(0,o)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r,query:{},key:""}};var be=function(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?"){i+=n.charAt(0)==="?"?n:"?"+n}if(r&&r!=="#"){i+=r.charAt(0)==="#"?r:"#"+r}return i};var we=function(e){if(!e){return{}}return(/^[?#]/.test(e)?e.slice(1):e).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];e[r]=i?decodeURIComponent(i.replace(/\+/g," ")):"";return e}),{})};var xe=function(e){return e.charAt(0)==="/"};var Se=function(e){return Math.random().toString(36).substr(2,e)};var Ie=function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()};var _e=function(e,t){if(t===void 0){t=""}var n=t&&t.split("/")||[];var r;var i=0;var o=e&&e.split("/")||[];var a=e&&xe(e);var s=t&&xe(t);var u=a||s;if(e&&xe(e)){n=o}else if(o.length){n.pop();n=n.concat(o)}if(!n.length){return"/"}if(n.length){var c=n[n.length-1];r=c==="."||c===".."||c===""}else{r=false}for(var l=n.length;l>=0;l--){var f=n[l];if(f==="."){Ie(n,l)}else if(f===".."){Ie(n,l);i++}else if(i){Ie(n,l);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!xe(n[0]))){n.unshift("")}var d=n.join("/");if(r&&d.substr(-1)!=="/"){d+="/"}return d};var Ce=function(e,t){if(e===t){return true}if(e==null||t==null){return false}if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return Ce(e,t[n])}))}var n=typeof e;var r=typeof t;if(n!==r){return false}if(n==="object"){var i=e.valueOf();var o=t.valueOf();if(i!==e||o!==t){return Ce(i,o)}var a=Object.keys(e);var s=Object.keys(t);if(a.length!==s.length){return false}return a.every((function(n){return Ce(e[n],t[n])}))}return false};var ke=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Ce(e.state,t.state)};var Te=function(e,t,n,r){var i;if(typeof e==="string"){i=ye(e);if(t!==undefined){i.state=t}}else{i=Object.assign({pathname:""},e);if(i.search&&i.search.charAt(0)!=="?"){i.search="?"+i.search}if(i.hash&&i.hash.charAt(0)!=="#"){i.hash="#"+i.hash}if(t!==undefined&&i.state===undefined){i.state=t}}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=_e(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=we(i.search||"");return i};var Ee=0;var Ae={};var Ne=1e4;var Fe=function(e,t){var n=""+t.end+t.strict;var r=Ae[n]||(Ae[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var o=[];var a=de(e,o,t);var s={re:a,keys:o};if(Ee<Ne){r[i]=s;Ee+=1}return s};var Pe=function(e,t){if(t===void 0){t={}}if(typeof t==="string"){t={path:t}}var n=t.path,r=n===void 0?"/":n,i=t.exact,o=i===void 0?false:i,a=t.strict,s=a===void 0?false:a;var u=Fe(r,{end:o,strict:s}),c=u.re,l=u.keys;var f=c.exec(e);if(!f){return null}var d=f[0],p=f.slice(1);var h=e===d;if(o&&!h){return null}return{path:r,url:r==="/"&&d===""?"/":d,isExact:h,params:l.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Oe=function(e,t){if(e==null&&t==null){return true}if(t==null){return false}return e&&t&&e.path===t.path&&e.url===t.url&&Ce(e.params,t.params)};var De=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";var Re=e("fl_button",function(){function e(e){t(this,e);this.isBlockElement=false;this.disabled=false;this.variant="primary"}e.prototype.render=function(){return n("button",{class:{"btn position-relative px-3 py-2":true,"is-primary":this.variant==="primary","is-secondary":this.variant==="secondary","btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},n("span",{class:"label"},n("slot",null)))};return e}());Re.style=De;var qe={compareTwoStrings:Me,findBestMatch:Ue};function Me(e,t){e=e.replace(/\s+/g,"");t=t.replace(/\s+/g,"");if(!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(e.length===1&&t.length===1)return 0;if(e.length<2||t.length<2)return 0;var n=new Map;for(var r=0;r<e.length-1;r++){var i=e.substring(r,r+2);var o=n.has(i)?n.get(i)+1:1;n.set(i,o)}var a=0;for(var r=0;r<t.length-1;r++){var i=t.substring(r,r+2);var o=n.has(i)?n.get(i):0;if(o>0){n.set(i,o-1);a++}}return 2*a/(e.length+t.length-2)}function Ue(e,t){if(!Le(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");var n=[];var r=0;for(var i=0;i<t.length;i++){var o=t[i];var a=Me(e,o);n.push({target:o,rating:a});if(a>n[r].rating){r=i}}var s=n[r];return{ratings:n,bestMatch:s,bestMatchIndex:r}}function Le(e,t){if(typeof e!=="string")return false;if(!Array.isArray(t))return false;if(!t.length)return false;if(t.find((function(e){return typeof e!=="string"})))return false;return true}var Be="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";var je=e("fl_dropdown",function(){function e(e){var i=this;t(this,e);this.valueChanged=r(this,"valueChanged",7);this.required=false;this.disabled=false;this.isMouseOver=false;this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.renderFilteredResults=function(){if(i.filteredOptions.length===0){return n("span",{class:"dropdown-item disabled"},"No items match your search")}return i.filteredOptions.map((function(e,t){return n("span",{class:{"dropdown-item text-wrap":true,selected:i.isOptionSelected(e),active:i.highlightedOptionIndex===t},onClick:function(t){i.toggleDropdown(false);i.selectOption(e)}},n("span",null,e.label))}))};this.filterResults=function(e){i.filteredOptions=i.sortOptionsByRelevancy(i._options.filter((function(t){return t.label.toLowerCase().includes(e.toLowerCase())})),e);i.highlightedOptionIndex=undefined};this.selectOption=function(e){i.selectedOption=e;i.inputValue=e.label;i.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=i.selectedOption)===null||t===void 0?void 0:t.label)===e.label};this.toggleDropdown=function(e){i.isDropdownVisible=e};this.resetInput=function(){var e,t;i.inputValue=(t=(e=i.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:"";i.filteredOptions=i._options};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var r="ArrowUp";var o="Escape";switch(e.key){case n:i.toggleDropdown(true);i.highlightNextItem();return true;case r:i.highlightPreviousItem();return true;case t:if(i.highlightedOptionIndex!==undefined){i.toggleDropdown(false);i.selectOption(i.filteredOptions[i.highlightedOptionIndex])}return true;case o:i.inputElement.blur();return true}return false};this.highlightPreviousItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.max(i.highlightedOptionIndex-1,0)};this.highlightNextItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.min(i.highlightedOptionIndex+1,i.filteredOptions.length-1)}}Object.defineProperty(e.prototype,"_options",{get:function(){if(this.options===undefined){throw new Error("Can't render <fl-dropdown /> component with no options")}return this.options},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){var e=this;var t,n;this.filteredOptions=this._options;this.selectedOption=this._options.find((function(t){return t.value===e.value}));this.inputValue=(n=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:""};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.onOptionsChanged=function(){this.filteredOptions=this._options};e.prototype.onValueChanged=function(){var e=this;var t,n;this.selectedOption=this._options.find((function(t){return t.value===e.value}));this.inputValue=(n=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:""};e.prototype.render=function(){var e=this;var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:function(t){var n=t.target.value;e.inputValue=n;e.filterResults(n);e.toggleDropdown(true)},ref:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback":true,"d-none":this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":true,show:this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults()))]};e.prototype.sortOptionsByRelevancy=function(e,t){return e.map((function(e){return Object.assign(Object.assign({},e),{relevancyScore:qe.compareTwoStrings(e.label.toLowerCase(),t.toLowerCase())})})).sort((function(e,t){return t.relevancyScore-e.relevancyScore})).map((function(e){return{label:e.label,value:e.value}}))};Object.defineProperty(e,"watchers",{get:function(){return{options:["onOptionsChanged"],value:["onValueChanged"]}},enumerable:false,configurable:true});return e}());je.style=Be;var Ve="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";var ze=3;var Qe=e("fl_dropdown_async",function(){function e(e){var i=this;t(this,e);this.valueChanged=r(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=ze;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var t;return i.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=i.minSearchStringLength&&((t=i.selectedOption)===null||t===void 0?void 0:t.label)!==e};this.onBeginSearch=function(e){i.inputValue=e;i.searchState="in progress"};this.onCompleteSearch=function(e){i.filteredOptions=e;i.highlightedOptionIndex=undefined;i.searchState="done"};this.renderFilteredResults=function(){if(i.searchState==="pristine"){return n("span",{class:"dropdown-item disabled"},"Start typing to find the results")}if(i.searchState==="in progress"){return n("div",{class:"d-flex justify-content-end align-items-center pr-4"},n("span",{class:"dropdown-item disabled"},"Searching..."),n("i",{class:"dot-falling"}))}if(i.filteredOptions.length===0){return n("span",{class:"dropdown-item disabled"},"No items match your search")}return i.filteredOptions.map((function(e,t){return n("span",{class:{"dropdown-item text-wrap":true,selected:i.isOptionSelected(e),active:i.highlightedOptionIndex===t},onClick:function(t){i.toggleDropdown(false);i.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,t;i.inputValue=(t=(e=i.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:""};this.toggleDropdown=function(e){i.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var r="ArrowUp";var o="Escape";switch(e.key){case n:i.toggleDropdown(true);i.highlightNextItem();return true;case r:i.highlightPreviousItem();return true;case t:if(i.highlightedOptionIndex!==undefined){i.toggleDropdown(false);i.selectOption(i.filteredOptions[i.highlightedOptionIndex])}return true;case o:i.inputElement.blur();return true}return false};this.highlightPreviousItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.max(i.highlightedOptionIndex-1,0)};this.highlightNextItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.min(i.highlightedOptionIndex+1,i.filteredOptions.length-1)};this.selectOption=function(e){i.selectedOption=e;i.inputValue=e.label;i.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=i.selectedOption)===null||t===void 0?void 0:t.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=F(this.inputElement,"keyup").pipe(q(500),d((function(t){return e.inputElement.value})),m(),g(this.shouldExecuteSearch),B(this.onBeginSearch),E(this._searchFunction),B(this.onCompleteSearch)).subscribe()};e.prototype.componentDidUnload=function(){this.searchResultsSubscription.unsubscribe()};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.highlightedOptionIndex=undefined;this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.render=function(){var e=this;var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback":true,"d-none":this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":true,show:this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults()))]};Object.defineProperty(e.prototype,"_searchFunction",{get:function(){if(this.searchFunction===undefined){throw new Error("Can't render <fl-dropdown-async/> component with no searchFunction")}return this.searchFunction},enumerable:false,configurable:true});return e}());Qe.style=Ve;var He='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}';var We=e("fl_loading_indicator",function(){function e(e){t(this,e);this.theme="default"}e.prototype.render=function(){return n("span",{class:{"dots-container d-inline-flex justify-content-center":true}},n("span",{class:{"dot-flashing":true,"theme-default":this.theme==="default","theme-dark":this.theme==="dark"}}))};return e}());We.style=He;var Ge="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";var Ke;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Ke||(Ke={}));var Xe=e("fl_promise_button",function(){function e(e){t(this,e);this.isBlockElement=false;this.isRounded=false;this.disabled=false;this.variant="primary";this.promiseFn=function(){return Promise.resolve()};this.state=Ke.Available}e.prototype.render=function(){return this.state===Ke.Pending?this.renderLoadingButton():this.renderActiveButton()};e.prototype.renderActiveButton=function(){var e=this;return n("fl-button",{disabled:this.disabled,onClick:function(){return e.clicked()},isBlockElement:this.isBlockElement,variant:this.variant},n("div",null,n("slot",null)))};e.prototype.renderLoadingButton=function(){var e=this;return n("fl-button",{disabled:true,onClick:function(){return e.clicked()},isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},n("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),n("div",{class:"invisible"},n("slot",null)))};e.prototype.clicked=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.state=Ke.Pending;t.label=1;case 1:t.trys.push([1,3,,4]);return[4,this.promiseFn()];case 2:t.sent();this.state=Ke.Available;return[3,4];case 3:e=t.sent();this.state=Ke.Error;throw e;case 4:return[2]}}))}))};return e}());Xe.style=Ge;function Ye(){Je({type:"appReady"})}function Je(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function $e(e,t){Je({type:"contentResized",height:e,width:t})}function Ze(e){Je({type:"pageNavigated",url:e})}function et(){Je({type:"complete"})}function tt(){Je({type:"submitSuccess"})}var nt={appReady:Ye,resize:$e,navigation:Ze,complete:et,submitSuccess:tt};var rt=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var it=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var ot=function(e){return!("isConnected"in e)||e.isConnected};var at=it((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(ot))}}),2e3);var st=function(e){var t=e.on;var n=new Map;if(typeof i==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=i();if(t){rt(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(o))}at(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(o)}));at(n)}))}};var ut=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var o=function(){r.dispose.forEach((function(e){return e()}));i()};var a=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var s=function(e,i){var o=n.get(e);if(t(i,o,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){s(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){ct(r[e],t)}};var l=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:u,get:a,set:s,on:c,onChange:l,use:f,dispose:o,reset:i}};var ct=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var lt=function(e,t){var n=ut(e,t);st(n);return n};function ft(e,t,n){return n={path:t,exports:{},require:function(e,t){return dt()}},e(n,n.exports),n.exports}function dt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var pt=ft((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function o(e){return function(t,n){return e(n,t)}}t.flip=o;function a(e,t,n,r,i,o,a,s,u){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return a(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(a(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return u(s(a(o(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=a;function s(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=s;function u(e){return e+1}t.increment=u;function c(e){return e-1}t.decrement=c;function l(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=l;function f(e){return function(t){return e.apply(void 0,t)}}t.tupled=f;function d(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=d;function p(e,t,n,r,i,o,a,s,u,c,l,f,d,p,h,v,m,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return a(o(i(r(n(t(e))))));case 8:return s(a(o(i(r(n(t(e)))))));case 9:return u(s(a(o(i(r(n(t(e))))))));case 10:return c(u(s(a(o(i(r(n(t(e)))))))));case 11:return l(c(u(s(a(o(i(r(n(t(e))))))))));case 12:return f(l(c(u(s(a(o(i(r(n(t(e)))))))))));case 13:return d(f(l(c(u(s(a(o(i(r(n(t(e))))))))))));case 14:return p(d(f(l(c(u(s(a(o(i(r(n(t(e)))))))))))));case 15:return h(p(d(f(l(c(u(s(a(o(i(r(n(t(e))))))))))))));case 16:return v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e)))))))))))))));case 17:return m(v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e))))))))))))))));case 18:return g(m(v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=l;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var ht=ft((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function o(e){return e==null?t.none:t.some(e)}t.fromNullable=o;function a(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=a;function s(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=s;function u(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=u;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function l(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=l;function f(e){return t.isNone(e)?null:e.value}t.toNullable=f;function d(e){return t.isNone(e)?undefined:e.value}t.toUndefined=d;var p=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=p;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return o(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:o(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return pt.pipe(e,t.map(n))};var g=function(e,n){return pt.pipe(e,t.ap(n))};var y=function(e,n){return pt.pipe(e,t.chain(n))};var b=function(e,n,r){return pt.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return pt.pipe(e,n(t))}};var x=function(e,n,r){return pt.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return pt.pipe(e,n(t))}};var I=function(e,n){return pt.pipe(e,t.alt(n))};var _=function(e,n){return pt.pipe(e,t.filter(n))};var C=function(e,n){return pt.pipe(e,t.filterMap(n))};var k=function(e,n){return pt.pipe(e,t.extend(n))};var T=function(e,n){return pt.pipe(e,t.partition(n))};var E=function(e,n){return pt.pipe(e,t.partitionMap(n))};var A=function(e){var n=t.wither(e);return function(e,t){return pt.pipe(e,n(t))}};var N=function(e){var n=t.wilt(e);return function(e,t){return pt.pipe(e,n(t))}};var F=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=F;var P=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=P;var O=function(e){return pt.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=O;var D=function(e){return pt.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=D;t.of=t.some;var R=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=R;var q=function(e){return t.chain((function(n){return pt.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=q;t.flatten=t.chain(pt.identity);var M=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=M;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var L=function(){return t.none};t.throwError=L;var B=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=B;t.duplicate=t.extend(pt.identity);var j=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=j;var V=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=V;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var Q={left:t.none,right:t.none};var H=function(e){var n=pt.pipe(e,t.map((function(e){return{left:u(e),right:c(e)}})));return t.isNone(n)?Q:n.value};t.separate=H;var W=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=W;var G=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=G;var K=function(e){return function(t){return{left:_(t,(function(t){return!e(t)})),right:_(t,e)}}};t.partition=K;var X=function(e){return pt.flow(t.map(e),t.separate)};t.partitionMap=X;var Y=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=Y;var J=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=J;var $=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=$;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:u(e),right:c(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function ie(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function oe(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=oe;function ae(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ae;function se(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=se;t.Functor={URI:t.URI,map:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:x};t.Alt={URI:t.URI,map:m,alt:I};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:I,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:k};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:_,filterMap:C,partition:T,partitionMap:E};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:_,filterMap:C,partition:T,partitionMap:E,wither:A,wilt:N};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,zero:t.zero,alt:I,extend:k,compact:t.compact,separate:t.separate,filter:_,filterMap:C,partition:T,partitionMap:E,wither:A,wilt:N,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function ce(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=ce;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var fe=function(e){return t.map(pt.bindTo_(e))};t.bindTo=fe;var de=function(e,n){return t.chain((function(r){return pt.pipe(n(r),t.map((function(t){return pt.bind_(r,e,t)})))}))};t.bind=de;var pe=function(e,n){return pt.flow(t.map((function(t){return function(n){return pt.bind_(t,e,n)}})),t.ap(n))};t.apS=pe;var he=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var o=e(i,n[i]);if(t.isNone(o)){return t.none}r.push(o.value)}return t.some(r)}};t.traverseArrayWithIndex=he;var ve=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=ve;t.sequenceArray=t.traverseArray(pt.identity)}));function vt(e){this.message=e}vt.prototype=new Error,vt.prototype.name="InvalidCharacterError";var mt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new vt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function gt(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(mt(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return mt(t)}}function yt(e){this.message=e}function bt(e,t){if("string"!=typeof e)throw new yt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(gt(e.split(".")[n]))}catch(e){throw new yt("Invalid token specified: "+e.message)}}yt.prototype=new Error,yt.prototype.name="InvalidTokenError";var wt=undefined&&undefined.__assign||function(){wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return wt.apply(this,arguments)};var xt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var St=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=wt({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?xt(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=St(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var It=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var _t={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,o=n.instance,a=o===void 0?false:o;var s=[];for(var u=2;u<arguments.length;u++){s[u-2]=arguments[u]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return a&&c?new(c.bind.apply(c,It([void 0],s))):c}};var Ct=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);Tt.callbacks.delete(t);if(Tt.callbacks.size<1){Tt.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var kt=function(e,t){if(!Tt.observer&&e&&t){Tt.observer=new t((function(t){Tt.callbacks.forEach((function(n,r){Ct(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Tt.observer};var Tt={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=_t.polyfill("performance",{doThrow:false});var r=_t.polyfill("PerformanceObserver",{doThrow:false});if(!kt(n,r))return;if(!Ct(n,e,t,n)){if(Tt.callbacks.size<1)Tt.observer.observe({entryTypes:["resource","measure"]});Tt.callbacks.set(e,t)}}};var Et=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var At=function(){function e(e){this.error=e}return e}();var Nt=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,o=e._options;var a=new Map(n);var s=St(_t.defaults,o);var u=_t.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var l=Et(i)(_t.polyfill("fetch"))(t,s);var f=l.catch((function(e){throw new At(e)})).then((function(e){c.clear();if(!e.ok){return e[_t.errorType||"text"]().then((function(t){var n=new Error(t);n[_t.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var d=function(t){return t.catch((function(t){c.clear();var n=t instanceof At?t.error:t;if(t instanceof At&&a.has("__fromFetch"))return a.get("__fromFetch")(n,e);else if(a.has(n.status))return a.get(n.status)(n,e);else if(a.has(n.name))return a.get(n.name)(n,e);else throw n}))};var p=function(e){return function(t){return e?d(f.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):d(f.then((function(e){return t?t(e):e})))}};var h={res:p(null),json:p("json"),blob:p("blob"),formData:p("formData"),arrayBuffer:p("arrayBuffer"),text:p("text"),perfs:function(e){l.then((function(t){return Tt.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=u}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[u,h]},error:function(e,t){a.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var Ft=undefined&&undefined.__assign||function(){Ft=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return Ft.apply(this,arguments)};var Pt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var Ot="application/json";var Dt="Content-Type";var Rt=function(){function e(e,t,n,r,i,o){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(o===void 0){o=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=o}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,o=n.options,a=o===void 0?this._options:o,s=n.catchers,u=s===void 0?this._catchers:s,c=n.resolvers,l=c===void 0?this._resolvers:c,f=n.middlewares,d=f===void 0?this._middlewares:f,p=n.deferredChain,h=p===void 0?this._deferredChain:p;return new e(i,Ft({},a),new Map(u),Pt(l),Pt(d),Pt(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}_t.defaults=t?St(_t.defaults,e):e;return this};e.prototype.errorType=function(e){_t.errorType=e;return this};e.prototype.polyfills=function(e){_t.polyfills=Ft(Ft({},_t.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?St(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:qt(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:St(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[Dt]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:Ft(Ft({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:Pt(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:Pt(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:Pt(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==Dt.toLowerCase()||n.startsWith(Ot)})))?this.json(n):this.body(n);i=i.options(Ft(Ft({},t),{method:e}));var o=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return Nt(o)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:Ft(Ft({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===Dt.toLowerCase()&&n.startsWith(Ot)})))===null||t===void 0?void 0:t[1];return this.content(n||Ot).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(Mt(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:Lt(e)).content("application/x-www-form-urlencoded")};return e}();var qt=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=_t.polyfill("URLSearchParams",{instance:true});for(var o in t){if(t[o]instanceof Array){for(var a=0,s=t[o];a<s.length;a++){var u=s[a];i.append(o,u)}}else{i.append(o,t[o])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function Mt(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=_t.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],o=e[1];var a=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);a=a?a+"["+i+"]":i;if(o instanceof Array){for(var s=0,u=o;s<u.length;s++){var c=u[s];n.append(a+"[]",c)}}else if(t&&typeof o==="object"&&(!(t instanceof Array)||!t.includes(i))){if(o!==null){Mt(o,t,n,Pt(r,[i]))}}else{n.append(a,o)}}));return n}function Ut(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function Lt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return Ut(t,e)})).join("&")}return Ut(t,n)})).join("&")}var Bt=Rt.factory;Bt["default"]=Rt.factory;function jt(){var e=Wt.jwt;var t=Wt.profileId;var n=Wt.accountIdOrDefault;var r=Wt.partnerIdOrDefault;return Bt(Wt.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var Vt=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/australian-funds?"+this.toQueryString(e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,jt().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()]}))}))};e.prototype.toQueryString=function(e){switch(e.type){case"partialMatch":return"search="+e.searchString+"&maxRecordCount="+e.maxRecordCount;case"usiMatch":return"usi="+e.usi}};return e}();var zt=new Vt;var Qt={apiBaseUrl:ht.none,appBaseUrl:ht.none,profileId:ht.none,jwt:ht.none,superBuyer:ht.none,promotedFunds:ht.none,accountConfiguration:ht.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false};var Ht=function(){function e(){var e=this;var t=lt(Qt),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=pt.pipe(t,ht.chain((function(e){return ht.fromNullable(bt(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(ht.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(ht.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(ht.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(ht.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(ht.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){return pt.pipe(this._state.accountConfiguration,ht.map((function(e){return ht.fromNullable(e.defaultFundUsi)})),ht.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return pt.pipe(this._state.accountConfiguration,ht.map((function(e){return e.accountId})),ht.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return pt.pipe(this._state.superBuyer,ht.map((function(e){return e.partnerId})),ht.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(ht.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"showSmsfNotSupported",{get:function(){return pt.pipe(this._state.superBuyer,ht.map((function(e){return e.showSmsfNotSupported})),ht.getOrElse((function(){return false})))},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,zt.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=ht.fromNullable(e.accountConfiguration);this._state.superBuyer=ht.fromNullable(e.superBuyer);this._state.promotedFunds=ht.fromNullable(e.promotedFunds);return[2]}}))}))};return e}();var Wt=new Ht;var Gt=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);nt.navigation(n);e.push(n)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=Wt.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Kt=new Gt;var Xt;(function(e){e["ChoicePage"]="/";e["SlateJoin"]="/slate/join/";e["SlateStandardChoice"]="/slate/standard-choice/";e["QSuperOptIn"]="/qsuper/insurance/opt-in/";e["QSuperQuestion1"]="/qsuper/insurance/question1/";e["QSuperQuestion2"]="/qsuper/insurance/question2/";e["QSuperQuestion3"]="/qsuper/insurance/question3/";e["QSuperQuestion4"]="/qsuper/insurance/question4/";e["QSuperQuestion5"]="/qsuper/insurance/question5/";e["QSuperQuestion6"]="/qsuper/insurance/question6/";e["QSuperQuestion7"]="/qsuper/insurance/question7/";e["QSuperQuestion8"]="/qsuper/insurance/question8/";e["QSuperConsent"]="/qsuper/consent/";e["QSuperJoin"]="/qsuper/join/";e["PromotedFundJoin"]="/promoted-fund/join";e["PromotedFundStandardChoice"]="/promoted-fund/standard-choice/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["Success"]="/success/"})(Xt||(Xt={}));var Yt=[n("stencil-route",{exact:true,url:Xt.ChoicePage,component:"sss-super-choice-page"}),n("stencil-route",{url:Xt.SlateJoin,component:"sss-slate-join-page"}),n("stencil-route",{url:Xt.SlateStandardChoice,component:"sss-slate-standard-choice-page"}),n("stencil-route",{url:Xt.QSuperOptIn,component:"sss-qsuper-insurance-opt-in"}),n("stencil-route",{url:Xt.PromotedFundJoin,component:"sss-promoted-fund-join-page"}),n("stencil-route",{url:Xt.PromotedFundStandardChoice,component:"sss-promoted-fund-standard-choice-page"}),n("stencil-route",{url:Xt.QSuperQuestion1,component:"sss-qsuper-question-1"}),n("stencil-route",{url:Xt.QSuperQuestion2,component:"sss-qsuper-question-2"}),n("stencil-route",{url:Xt.QSuperQuestion3,component:"sss-qsuper-question-3"}),n("stencil-route",{url:Xt.QSuperQuestion4,component:"sss-qsuper-question-4"}),n("stencil-route",{url:Xt.QSuperQuestion5,component:"sss-qsuper-question-5"}),n("stencil-route",{url:Xt.QSuperQuestion6,component:"sss-qsuper-question-6"}),n("stencil-route",{url:Xt.QSuperQuestion7,component:"sss-qsuper-question-7"}),n("stencil-route",{url:Xt.QSuperQuestion8,component:"sss-qsuper-question-8"}),n("stencil-route",{url:Xt.QSuperConsent,component:"sss-qsuper-consent"}),n("stencil-route",{url:Xt.QSuperJoin,component:"sss-qsuper-join"}),n("stencil-route",{url:Xt.MyOwnFund,component:"sss-my-own-fund"}),n("stencil-route",{url:Xt.SelfManagedFund,component:"sss-self-managed-fund"}),n("stencil-route",{url:Xt.DefaultFund,component:"sss-default-fund"}),n("stencil-route",{url:Xt.Success,component:"sss-success"})];var Jt;(function(e){e["MyOwnFund"]="My Own Fund";e["DefaultFund"]="Default Fund";e["SelfManagedFund"]="Self Managed Fund"})(Jt||(Jt={}));var $t={continueAllowed:false,nextRoute:"/",myOwnFundForm:{fundUsi:W,memberNumber:W,standardChoiceFormSignature:W},defaultFundForm:{standardChoiceFormSignature:""},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",standardChoiceFormSignature:""},currentCustomFundType:Jt.MyOwnFund,customFunds:[{label:Jt.MyOwnFund,value:Xt.MyOwnFund},{label:Jt.DefaultFund,value:Xt.DefaultFund},{label:Jt.SelfManagedFund,value:Xt.SelfManagedFund}]};var Zt=lt($t),en=Zt.state,tn=Zt.reset;var nn=en.customFunds;var rn=e("sss_custom_fund",function(){function e(e){t(this,e);this.currentCustomFund=nn[0];this.fundOptionsList=nn}e.prototype.componentWillLoad=function(){var e="";if(window.location.pathname.includes(Xt.MyOwnFund))e=Xt.MyOwnFund;if(window.location.pathname.includes(Xt.DefaultFund))e=Xt.DefaultFund;if(window.location.pathname.includes(Xt.SelfManagedFund))e=Xt.SelfManagedFund;this.currentCustomFund=nn.find((function(t){return t.value===e}))||nn[0];Kt.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;return n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("p",{class:"font-weight-bold text-center"},"Choose your Super"),n("div",{class:"mb-4"},n("select",{class:"form-control",required:true,onChange:function(t){e.handleChange(t.target.value.trim())}},this.fundOptionsList.map((function(t){return n("option",{value:t.value,selected:e.currentCustomFund.value===t.value},t.label)})))),n("slot",null))))};e.prototype.handleChange=function(e){var t=nn.find((function(t){return t.value===e}))||{value:Xt.MyOwnFund};Kt.navigateInternally(this.history,t.value)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(rn);var on=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return zt.getAustralianFundsAsync({type:"partialMatch",searchString:e,maxRecordCount:t})};e.prototype.getFundByUsiAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,zt.getAustralianFundsAsync({type:"usiMatch",usi:e})];case 1:t=n.sent();if(t.length===1){return[2,ht.some(t[0])]}return[2,ht.none]}}))}))};return e}();var an=new on;var sn=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("analytics-events").post(e).res()]}))}))};return e}();var un=function(){function e(){this.eventTrackingApi=sn.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackFinancialProductViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductViewed:e})]}))}))};e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackFinancialProductAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductAccepted:e})]}))}))};e.prototype.TrackFinancialProductRejectedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductRejected:e})]}))}))};e.prototype.TrackSuperFundPrivacyConfirmationAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundPanelViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPanelViewed:e})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();var cn={items:[]};var ln=function(){function e(){var e=lt(cn).state;this._state=e}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});e.prototype.closeCurrent=function(){var e=xt(this._state.items);e.shift();this._state.items=e};e.prototype.clearNotifications=function(){this._state.items=[]};e.prototype.showErrorNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"danger")};e.prototype.showInfoNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"info")};e.prototype.showWarningNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"warning")};e.prototype.showSuccessNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"success")};e.prototype.pushNotification=function(e,t,n){var r=xt(this._state.items);r.push({details:e,type:n,priority:t});this._state.items=r.sort((function(e,t){return t.priority-e.priority}))};return e}();var fn=new ln;var dn=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};return e}();var pn=new dn;var hn=e("sss_default_fund",function(){function e(e){t(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=un.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=Wt.defaultFundUsi;if(ht.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,an.getFundByUsiAsync(e.value)];case 1:t=n.sent();if(ht.isNone(t)){this.isInvalidDefaultFund=true;fn.showErrorNotification({title:"Something is not right",description:"Couldn't find information about the configured default fund (USI "+e.value+")"});return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:this.defaultFund.usi,fundName:this.defaultFund.productName,promotedFundsShown:Wt.promotedFunds})};e.prototype.render=function(){var e=this;var t=function(){return n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"No Default Fund"),n("p",{class:"mb-4 small"},"It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund."))};var r=function(e){return[n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Default Fund"),n("p",{class:"mb-4 small"},"Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),n("p",{class:"font-weight-bold mt-3"},"Default Fund Name"),n("p",null,e.defaultFundName)),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.defaultFundForm=Object.assign(Object.assign({},en.defaultFundForm),e.detail)}})]};return n(a,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},this.isDefaultFundExists?n(r,{defaultFundName:this.defaultFundProductName}):n(t,null)),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Kt.navigateInternally(e.history,Xt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},this.isDefaultFundExists&&n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,disabled:this.isInvalidDefaultFund,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(this.isInvalidDefaultFund){return[2]}this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,pn.submitDefaultFundChoiceAsync(en.defaultFundForm)];case 1:e.sent();Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(this.history,Xt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var vn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.ss-footer-logo{max-width:7rem}";var mn=e("sss_footer_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"container mb-sm-0"},n("div",{class:"row justify-content-center pt-3 mt-3 mb-3 border-top"},n("div",{class:"text-decoration-none"},n("p",{class:"mt-3 small text-center mb-1 text-muted"},"Powered by Flare HR"))),n("div",{class:"row justify-content-center pb-sm-0 px-3 px-sm-0 text-center"},n("p",{class:"text-muted small"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare HR do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare HR do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare HR do not express any opinion or make any recommendation about any of the advertised funds.")),n("div",{class:"row justify-content-end my-1 px-3 px-sm-0"},this.appVersionBadge()))};e.prototype.appVersionBadge=function(){return n("small",{style:{opacity:"0.5"},class:"text-muted"},"Powered by Flare, v",z)};return e}());mn.style=vn;var gn=e("sss_loading_page",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1"},n("h5",null,"Loading your superannuation step"),n("fl-loading-indicator",null))};return e}());var yn=e("sss_my_own_fund",function(){function e(e){t(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.eventTrackingService=un.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Wt.promotedFunds})};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-my-own-fund-inputs",{myOwnFundForm:en.myOwnFundForm,onFormChanged:function(t){en.myOwnFundForm=Object.assign(Object.assign({},en.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.myOwnFundForm=Object.assign(Object.assign({},en.myOwnFundForm),{standardChoiceFormSignature:K(e.detail.standardChoiceFormSignature)})}})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),this.isNotAllInformationProvidedMessageVisible&&n("div",{class:"mt-4 alert alert-danger",role:"alert"},"All fields are required to complete submission. Make sure you have selected a fund."),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Kt.navigateInternally(e.history,Xt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:this.formState="validated";if(!this.formElement.checkValidity()){return[2]}e=Q(en.myOwnFundForm.fundUsi)&&Q(en.myOwnFundForm.memberNumber)&&Q(en.myOwnFundForm.standardChoiceFormSignature);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}t={fundUsi:this.getOrError(en.myOwnFundForm.fundUsi),memberNumber:this.getOrError(en.myOwnFundForm.memberNumber),standardChoiceFormSignature:this.getOrError(en.myOwnFundForm.standardChoiceFormSignature)};return[4,pn.submitCustomFundChoiceAsync(t)];case 1:n.sent();Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(this.history,Xt.Success);return[2]}}))}))};e.prototype.getOrError=function(e){return pt.pipe(e,J((function(){throw new Error("Option value is none.")})))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(yn);var bn=e("sss_my_own_fund_inputs",function(){function e(e){var n=this;t(this,e);this.formChanged=r(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=10;this.searchFundsAsync=function(e){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,an.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=n.sent();return[2,t.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}))]}}))}))}}e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:""},n("label",{class:"mb-2 font-weight-bold"},"Superannuation Fund Name"),n("fl-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:true,requiredValidationMessage:"Select a fund",placeholder:"Search by name or USI (type at least "+this.MIN_SEARCH_STRING_LENGTH+" characters)",value:this.selectedOption,onValueChanged:function(t){e.selectedOption=t.detail;e.updateFundUsi(t.detail.value.toString())}}),n("div",{class:"invalid-feedback"},"Select a fund"),Q(this.myOwnFundForm.fundUsi)&&n("div",null,n("label",{class:"mb-2 mt-3 font-weight-bold"},"Superannuation Fund USI"),n("p",{class:"mb-0"},this.myOwnFundForm.fundUsi.value),n("p",{class:"small mt-1"},"Please ensure this is the correct fund USI as some funds have similar names"))),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Member Number"),n("input",{placeholder:"Enter your member number",type:"text",class:"form-control",required:true,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:X(en.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid member number (only numbers and / or letters)")))};e.prototype.updateFundUsi=function(e){this.formChanged.emit({fundUsi:G(e)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:G(e)})};return e}());var wn=e("sss_notifications_section",function(){function e(e){t(this,e)}e.prototype.disconnectedCallback=function(){fn.clearNotifications()};e.prototype.render=function(){var e=fn.state.items;if(e.length<=0)return n(a,null);var t=e[0];var r="alert alert-"+t.type;return n("div",{class:r,role:"alert"},n("div",{class:"d-flex"},n("p",{class:"mb-0 flex-grow-1"},n("strong",null,e[0].details.title)),n("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},n("span",{"aria-hidden":"true"},"×"))),n("p",{class:"mb-0 mt-1"},e[0].details.description))};e.prototype.handleClose=function(){fn.closeCurrent()};return e}());var xn={fundId:"",memberNumber:"",usi:"",standardChoiceFormSignature:""};var Sn=lt(xn).state;var In=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin=="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.environmentDiscriminator=function(){return e.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0]};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+".flarehr.com/promoted-fund-join/embed/v1.0/web"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app";var r=n+"/promoted-fund-redirect.html";var i=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Wt.partnerIdOrDefault,accountId:Wt.accountIdOrDefault,fundId:Sn.fundId,successRedirectUrl:r,cancelRedirectUrl:r,authToken:Wt.jwt});var o=function(n){var r=n.data;if(!r){return}if(r.sender==="promoted-fund-redirect"){window.removeEventListener("message",o);switch(r.type){case"success":if(r.memberNumber){Sn.memberNumber=r.memberNumber;Sn.usi=r.usi;Kt.navigateInternally(t,Xt.PromotedFundStandardChoice);break}default:Kt.navigateInternally(t,Xt.ChoicePage);break}return}if(r.sender==="promoted-fund-join"){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);nt.navigation(window.location.href);break}}};window.addEventListener("message",o);var a=e.contentDocument;a.open();var s=a.createElement("form");s.method="POST";s.target="_self";s.action=this.promotedFundJoinAppUrl();var u;for(u in i){var c=i[u];if(c!==undefined){var l=document.createElement("input");l.type="hidden";l.name=u;l.value=c;s.append(l)}}a.appendChild(s);a.close();s.submit()};e.prototype.getMemberData=function(){var e,t;var n=Wt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var _n=new In;var Cn=e("sss_promoted_fund_join_page",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){_n.build(this.iframeElement,this.history)};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var kn=function(){function e(){}e.prototype.submitChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/promoted-fund").post(e).badRequest((function(){throw new Error("Failed to process Promoted Fund choice request")})).text()]}))}))};return e}();var Tn=new kn;var En=e("sss_promoted_fund_standard_choice_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("div",null,n("div",null,"You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){Sn.standardChoiceFormSignature=e.detail.standardChoiceFormSignature}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue"))))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.formState="validated";if(this.formElement.checkValidity()){Tn.submitChoiceAsync(Object.assign({},Sn));Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(this.history,Xt.Success)}return[2]}))}))};return e}());var An={Id:"qsuper",Name:"QSuper",InsuranceName:"QSuper Insurance",Usi:"60905115063001",Abn:"32 125 059 006",PdsUrl:"https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements",PdsPdf:"https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf",MinAge:14,MinInsuranceAge:16,MaxAge:70};var Nn={Id:"slate",Name:"Slate Super",PdsUrl:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",Usi:"32367272075001",DiversaAbn:"49 006 421 638"};var Fn={Id:"australian-retirement-trust",Name:"Australian Retirement Trust",PdsUrl:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",Abn:"60 905 115 063"};var Pn={Id:"aware",Name:"Aware Super",PdsUrl:"https://aware.com.au/member/forms-and-resources/pds",Abn:"53 226 460 365"};var On=[{dtoPropName:"qSuper",id:An.Id},{dtoPropName:"slate",id:Nn.Id},{dtoPropName:"australianRetirementTrust",id:Fn.Id},{dtoPropName:"aware",id:Pn.Id}];var Dn="";var Rn=e("sss_qsuper_confirm_header",function(){function e(e){t(this,e);this.eventTrackingService=un.Instance}e.prototype.render=function(){var e=this;var t="https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds1.pdf";return n("div",{class:"d-flex align-items-center justify-content-center"},n("p",{class:"confirm-title font-weight-bold text-center"},"You are now applying for a"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(t)},"QSuper Accumulation Account"),". Read the"," ",n("a",{target:"_blank",onClick:function(){return e.pdsViewedAsync()},href:Kt.toExternalUrl(An.PdsPdf)},"PDS")," ","here."))};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:An.Usi,fundName:An.Name,pageName:"Insurance Opt In"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());Rn.style=Dn;var qn;(function(e){e[e["InsuranceConfirm"]=0]="InsuranceConfirm";e[e["InsuranceQuestions"]=1]="InsuranceQuestions";e[e["AccumulationAccount"]=2]="AccumulationAccount";e[e["ConfirmSelection"]=3]="ConfirmSelection"})(qn||(qn={}));var Mn;(function(e){e[e["question1"]=0]="question1";e[e["question2"]=1]="question2";e[e["question3"]=2]="question3";e[e["question4"]=3]="question4";e[e["question5"]=4]="question5";e[e["question6"]=5]="question6";e[e["question7"]=6]="question7";e[e["question8"]=7]="question8"})(Mn||(Mn={}));var Un={currentQSuperInsuranceQuestion:Mn.question1,currentQSuperFormPage:qn.InsuranceConfirm,qSuperFormValid:false,nextRoute:"/",continueAllowed:false,qSuperOptInPageCheckbox:false,qSuperJoinPageCheckbox:false,qSuperInsuranceQuestions:{question1:{answered:false},question2:{answered:false},question3:{answered:false},question4:{answered:false},question5:{answered:false},question6:{answered:false},question7:{answered:false},question8:{answered:false}},qSuperQuestionnaire:{reviewedApplication:false,acceptedDeclaration:false,readDutyOfDisclosure:false,insuranceChosen:false},standardChoiceFormSignature:""};var Ln=lt(Un),Bn=Ln.state,jn=Ln.reset;var Vn=jn;function zn(){var e;var t,n,r,i;var o=Wt.appBaseUrl;var a=window.location.pathname.split(o)[1];var s=(e={},e[Xt.QSuperOptIn]=Xt.QSuperQuestion1,e[Xt.QSuperQuestion1]=Bn.qSuperInsuranceQuestions.question1.answered?((t=Bn.qSuperQuestionnaire.questions)===null||t===void 0?void 0:t.question1)===true?Xt.QSuperQuestion4:Xt.QSuperQuestion2:Xt.QSuperQuestion1,e[Xt.QSuperQuestion2]=Bn.qSuperInsuranceQuestions.question2.answered?((n=Bn.qSuperQuestionnaire.questions)===null||n===void 0?void 0:n.question2)===true?Xt.QSuperQuestion4:Xt.QSuperQuestion3:Xt.QSuperQuestion2,e[Xt.QSuperQuestion3]=Bn.qSuperInsuranceQuestions.question3.answered?Xt.QSuperQuestion4:Xt.QSuperQuestion3,e[Xt.QSuperQuestion4]=Bn.qSuperInsuranceQuestions.question4.answered?Xt.QSuperQuestion5:Xt.QSuperQuestion4,e[Xt.QSuperQuestion5]=Bn.qSuperInsuranceQuestions.question5.answered?Xt.QSuperQuestion6:Xt.QSuperQuestion5,e[Xt.QSuperQuestion6]=Bn.qSuperInsuranceQuestions.question6.answered?Xt.QSuperQuestion7:Xt.QSuperQuestion6,e[Xt.QSuperQuestion7]=Bn.qSuperInsuranceQuestions.question7.answered?Xt.QSuperQuestion8:Xt.QSuperQuestion7,e[Xt.QSuperQuestion8]=Bn.qSuperInsuranceQuestions.question8.answered?Xt.QSuperConsent:Xt.QSuperQuestion8,e[Xt.QSuperConsent]=Bn.qSuperQuestionnaire.readDutyOfDisclosure&&Bn.qSuperQuestionnaire.reviewedApplication?Xt.QSuperJoin:Xt.QSuperConsent,e[Xt.QSuperJoin]=Bn.qSuperJoinPageCheckbox?Xt.Success:Xt.QSuperJoin,e);var u=Bn.qSuperInsuranceQuestions.question1.answered&&Bn.qSuperInsuranceQuestions.question2.answered&&Bn.qSuperInsuranceQuestions.question3.answered&&Bn.qSuperInsuranceQuestions.question4.answered&&Bn.qSuperInsuranceQuestions.question5.answered;if(a===Xt.QSuperQuestion5){if(u&&(((r=Bn.qSuperQuestionnaire.questions)===null||r===void 0?void 0:r.question3)===true||((i=Bn.qSuperQuestionnaire.questions)===null||i===void 0?void 0:i.question5)===true)){return Xt.QSuperQuestion6}return Xt.QSuperConsent}if(a===Xt.QSuperOptIn){if(Bn.qSuperOptInPageCheckbox){if(Bn.qSuperQuestionnaire.insuranceChosen){return Xt.QSuperQuestion1}else{return Xt.QSuperConsent}}else{return a}}return s[a]}var Qn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";var Hn=e("sss_qsuper_consent",function(){function e(e){t(this,e);this.eventTrackingService=un.Instance}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){window.scroll(0,0);Bn.currentQSuperFormPage=qn.AccumulationAccount;return[2]}))}))};e.prototype.render=function(){var e=this;return n("sss-qsuper-layout",null,n("div",{class:"d-flex align-items-center justify-content-center"},n("p",{class:"confirm-title font-weight-bold text-center"},"Your QSuper Accumulation Account")),n("div",{class:"p-3 d-flex mt-4 checkbox-container"},n("p",null,"Just finally, we need you to confirm that you understand the declarations below and the product you've applied for by ticking the box below.",n("br",null),n("br",null),"This form and all products are issued by the QSuper Board (ABN 32 125 059 006 AFSL 489650) as trustee for QSuper (ABN 60 905 115 063).",n("br",null),n("br",null),"I have read and agree to the terms and conditions in the QSuper"," ",n("a",{target:"_blank",onClick:function(){return e.pdsViewedAsync()},href:Kt.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf")},"Product Disclosure Statement for Accumulation and Income Accounts"),", QSuper's"," ",n("a",{target:"_blank",href:Kt.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/fs15.pdf")},"Your Privacy factsheet"),", and the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/qiib09.pdf")},"Financial Services Guide"),".",n("br",null),n("br",null),"I understand that any insurance cover I might have as a result of this application, commences when the first contribution is received into my account. Once I am a member I can cancel, or, subject to eligibility conditions, vary, my cover at any time. Premiums are deducted in accordance with the PDS.",n("br",null),n("br",null),"I also agree to be bound by the Trust Deed and the governing rules of QSuper in relation to the operation of my Accumulation account.",n("br",null),n("br",null),"I confirm that the information I have given is true and correct.",n("br",null),n("br",null),"I confirm that I am the person identified as the applicant in this form.",n("br",null),n("br",null),"I consent to the QSuper Board paying Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, a fee of $300 on receipt of the first contribution into my account, for the provision of technology services.",n("br",null),n("br",null),"I understand that I will be placed into the default investment option QSuper Lifetime.",n("br",null),n("br",null),"I understand that my Tax File Number will be provided to QSuper. NB - if you have your Tax File Number available, this will help speed up the processing of this application and we may be able to Find your Super.",n("br",null),n("br",null),"I have read and accept the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl("https://qsuper.qld.gov.au/misc/tfn")},"Privacy and Contact Information Statement"))),n("div",null,n("label",{class:"d-flex mt-3 p-3 checkbox-container",htmlFor:"ackAllCheckBox"},n("div",{class:"w-auto px-2 fl-checkbox-container"},n("input",{id:"ackAllCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:function(){return e.handleCheckboxToggle()}})),n("div",{class:"pl-3"},n("p",{class:"confirm-item-text mb-0 mt-1"},"I acknowledge all of the above. ",n("i",null,"(required)"))))))};e.prototype.handleCheckboxToggle=function(){Bn.qSuperQuestionnaire.readDutyOfDisclosure=!Bn.qSuperQuestionnaire.readDutyOfDisclosure;Bn.qSuperQuestionnaire.reviewedApplication=!Bn.qSuperQuestionnaire.reviewedApplication;Bn.continueAllowed=!Bn.continueAllowed;Bn.nextRoute=zn()};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:An.Usi,fundName:An.Name,pageName:"Accumulation Page"})};return e}());Hn.style=Qn;function Wn(){var e;var t=Wt.appBaseUrl;var n=window.location.pathname.split(t)[1];var r=(e={},e[Xt.QSuperOptIn]=Bn.qSuperOptInPageCheckbox,e[Xt.QSuperJoin]=Bn.qSuperJoinPageCheckbox&&Bn.standardChoiceFormSignature,e);Bn.continueAllowed=r[n]}function Gn(){Vn();Bn.qSuperQuestionnaire=Object.assign(Object.assign({},Bn.qSuperQuestionnaire),{acceptedDeclaration:false,insuranceChosen:false,readDutyOfDisclosure:false,reviewedApplication:false});Bn.qSuperInsuranceQuestions={question1:{answered:false},question2:{answered:false},question3:{answered:false},question4:{answered:false},question5:{answered:false},question6:{answered:false},question7:{answered:false},question8:{answered:false}}}var Kn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";var Xn=e("sss_qsuper_insurance_opt_in",function(){function e(e){t(this,e);this.insuranceChosen=false;this.eventTrackingService=un.Instance;this.isEligibleForInsurance=false}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackFinancialProductViewedAsync({fundUsi:An.Usi,fundName:An.Name,financialProduct:An.InsuranceName})};e.prototype.componentWillLoad=function(){Gn();this.ensureInsuranceEligibility()};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-layout",{class:"d-flex flex-fill"},n("sss-qsuper-confirm-header",null),n("div",{class:"mt-4 p-3 checkbox-container"},n("p",null,"As part of becoming a QSuper member, you will receive death cover and total and permanent disability cover when you become eligible. ",n("br",null),n("br",null),"You will receive this cover when: ",n("br",null),n("br",null),"You are 25 years or older; ",n("br",null),"and You have had at least $6,000 in your accumulation account; ",n("br",null),"and At that time, we have received money into your account within the previous 13 months ",n("br",null),n("br",null),"Please see the Accumulation Account Insurance Guide, available on the QSuper website, for further information ",n("br",null),n("br",null),"Do you want this insurance cover?"),n("div",{class:"d-flex justify-content-between mt-4"},n("div",{class:"button-holder flex-grow-1 mr-2"},n("fl-button",{disabled:!this.isEligibleForInsurance,isBlockElement:true,variant:this.insuranceChosen?"primary":"secondary",onClick:function(){return e.handleInsuranceToggle(true)}},"Yes")),n("div",{class:"button-holder flex-grow-1 ml-2"},n("fl-button",{disabled:!this.isEligibleForInsurance,isBlockElement:true,variant:!this.insuranceChosen?"primary":"secondary",onClick:function(){return e.handleInsuranceToggle(false)}},"No")))),n("div",null,n("label",{class:"d-flex mt-3 p-3 checkbox-container",htmlFor:"ackCheckBox"},n("div",{class:"w-auto px-2 fl-checkbox-container"},n("input",{id:"ackCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:function(){return e.handleCheckboxToggle()}})),n("div",{class:"pl-3"},n("p",{class:"confirm-item-text mb-0"},"I acknowledge that my personal information will be shared with QSuper as part of their application process."))))))};e.prototype.ensureInsuranceEligibility=function(){if(Wt.superBuyer.userProfile.yearsOfAge<An.MinAge){return}else if(Wt.superBuyer.userProfile.yearsOfAge<An.MinInsuranceAge){this.showIneligibleNotification("You may still apply for QSuper, however people under the age of "+An.MinInsuranceAge+" are not able to apply for insurance.");return}this.isEligibleForInsurance=true};e.prototype.showIneligibleNotification=function(e){fn.showInfoNotification({title:"Unable to apply for Insurance",description:e})};e.prototype.handleInsuranceToggle=function(e){Bn.qSuperQuestionnaire.insuranceChosen=e&&this.isEligibleForInsurance;this.insuranceChosen=Bn.qSuperQuestionnaire.insuranceChosen;Bn.nextRoute=zn()};e.prototype.handleCheckboxToggle=function(){Bn.qSuperOptInPageCheckbox=!Bn.qSuperOptInPageCheckbox;Wn();Bn.nextRoute=zn()};return e}());Xn.style=Kn;var Yn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";var Jn=e("sss_qsuper_insurance_questions",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-layout",{class:"d-flex flex-fill"},n("sss-qsuper-confirm-header",null),n("div",{class:"p-3 mt-4 checkbox-container"},n("slot",null),n("sss-qsuper-question-yes-no-buttons",null))))};return e}());Jn.style=Yn;var $n="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";var Zn=e("sss_qsuper_join",function(){function e(e){t(this,e);this.eventTrackingService=un.Instance}e.prototype.render=function(){var e=this;return n("sss-qsuper-layout",null,n("img",{class:"ss-choice-logo mx-auto",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-qsuper.png")}),n("div",{class:"row"},n("div",{class:"col text-center"},n("p",{class:"confirm-title font-weight-bold mb-0"},"You have chosen to join QSuper"))),n("div",{class:"my-3 card p-3"},n("p",{class:"confirm-text"},"We are almost there... All you have to do now is sign the super choice form. We'll prefill it for you. Make sure the info is correct. Your application to join the fund is subject to Trustee approval."),n("p",{class:"confirm-text mb-0"},"You've chosen to stay with your existing fund. Review the details below and click continue to confirm your choice")),n("div",{class:"card p-3"},n("p",{class:"text-center"},"100 years strong"),n("p",{class:"text-center"},"One of Australia's largest funds"),n("p",{class:"text-center mb-0"},"Awarded SuperRatings highest performance rating")),n("div",{class:"mt-3"},n("p",{class:"text-center confirm-text"},"Your application to join the fund is subject to Trustee approval.")),n("div",null,n("label",{class:"d-flex mt-4 p-3 checkbox-container",htmlFor:"confirmCheckBox"},n("div",{class:"w-auto px-2 py-2 fl-checkbox-container"},n("input",{id:"confirmCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:function(){return e.handleCheckboxToggle()}})),n("div",{class:"pl-3"},n("p",{class:"confirm-item-text mb-0 mt-1"},"I've read and understood the"," ",n("a",{target:"_blank",onClick:function(){return e.pdsViewedAsync()},href:Kt.toExternalUrl("https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements/")},"PDS")," ","and confirm all information I have provided is true and correct. I understand that my information will be sent to the trustee of this fund to process my request to join and I consent to my TFN, as currently held on the Flare HR Platform, being given to the trustee in order to open and administer my account.")))),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){Bn.standardChoiceFormSignature=e.detail.standardChoiceFormSignature;Wn()}}))};e.prototype.handleCheckboxToggle=function(){Bn.qSuperJoinPageCheckbox=!Bn.qSuperJoinPageCheckbox;Wn();Bn.nextRoute=zn()};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:An.Usi,fundName:An.Name,pageName:"Confirm Page"})};return e}());Zn.style=$n;var er=function(){function e(){}e.prototype.submitQSuperChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/qsuper").post(e).badRequest((function(){throw new Error("Failed to process QSuper join request")})).text()]}))}))};return e}();var tr=new er;function nr(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!Bn.continueAllowed)return[2];Bn.continueAllowed=false;if(Bn.currentQSuperFormPage===qn.InsuranceConfirm&&Bn.qSuperQuestionnaire.insuranceChosen){Bn.currentQSuperFormPage=qn.InsuranceQuestions;return[2]}if(Bn.currentQSuperFormPage===qn.InsuranceConfirm&&!Bn.qSuperQuestionnaire.insuranceChosen){Bn.currentQSuperFormPage=qn.AccumulationAccount;return[2]}if(Bn.currentQSuperFormPage===qn.InsuranceQuestions){Bn.currentQSuperFormPage=qn.AccumulationAccount;return[2]}if(Bn.currentQSuperFormPage===qn.AccumulationAccount){Bn.qSuperFormValid=false;Bn.currentQSuperFormPage=qn.ConfirmSelection;return[2]}if(!(Bn.currentQSuperFormPage===qn.ConfirmSelection))return[3,2];Bn.qSuperQuestionnaire.acceptedDeclaration=true;e={questionnaire:Bn.qSuperQuestionnaire,standardChoiceFormSignature:Bn.standardChoiceFormSignature};return[4,tr.submitQSuperChoiceAsync(e)];case 1:t.sent();Wt.markSuperSelectionAsSubmitted();t.label=2;case 2:return[2]}}))}))}var rr=e("sss_qsuper_layout",function(){function e(e){var n=this;t(this,e);this.isEligible=false;this.canContinue=function(){return n.isEligible&&Bn.continueAllowed};this.ensureEligibility=function(){if(Wt.superBuyer.userProfile.yearsOfAge<An.MinAge){n.showIneligibleNotification("People under the age of "+An.MinAge+" are not able to open accounts.")}else if(Wt.superBuyer.userProfile.yearsOfAge>An.MaxAge){n.showIneligibleNotification("People over the age of "+An.MaxAge+" are not able to open accounts.")}else{n.isEligible=true}};this.showIneligibleNotification=function(e){fn.showInfoNotification({title:"Unable to apply for QSuper",description:e})}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ensureEligibility();Bn.nextRoute=zn();return[2]}))}))};e.prototype.render=function(){var e=this;return n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("slot",null),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Kt.navigateInternally(e.history,Xt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,disabled:!this.canContinue(),promiseFn:function(){return e.tryAsync()}},n("span",null,"Continue"))))))))};e.prototype.tryAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);if(!this.canContinue()){return[2]}return[4,nr()];case 1:t.sent();Kt.navigateInternally(this.history,Bn.nextRoute);return[3,3];case 2:e=t.sent();fn.showErrorNotification({title:"Couldn't process your request",description:"We had an issue processing your request to join QSuper. Please try again shortly."});Bn.continueAllowed=true;return[3,3];case 3:return[2]}}))}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(rr);var ir=e("sss_qsuper_question_1",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 1"),n("p",{class:" mb-0"},"Are you currently a registered or enrolled nurse or assistant in nursing who is qualified and currently practicing, or working in the retail sector, or food and beverage service?")))};return e}());var or=e("sss_qsuper_question_2",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 2"),n("p",{class:" mb-0"},"Are you currently a qualified tradesperson currently working within your area of expertise (e.g. hairdresser, chef, plumber, electrician, plasterer, carpenter or concreter), or a skilled worker with light manual duties (e.g. jeweller, building inspector, laboratory technician, foreman or office equipment technician)?")))};return e}());var ar=e("sss_qsuper_question_3",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 3"),n("p",{class:" mb-0"},"Are you currently a police officer, firefighter, paramedic, or other emergency or protective services worker, including security guard or corrections officer, or a professional sportsperson, or working in a manual occupation which does not require trade specific qualifications and may be subject to accident or environment hazards (e.g. earthmover, driver, cleaner, labourer, factory worker or agricultural worker)?")))};return e}());var sr=e("sss_qsuper_question_4",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 4"),n("p",{class:" mb-0"},"Are the usual work activities of your job considered office based or school teaching ( meaning you spend at least 80% of your work time doing clerical, call centre, administrative or other office or classroom based activities), or are you a medical practitioner, lawyer or engineer who spends at least 80% of your work hours in an office or clinical environment?")))};return e}());var ur=e("sss_qsuper_question_5",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 5"),n("p",{class:" mb-0"},"Do you currently perform, or intend to work in a job within the next three months that includes, any of the following risky activities: handling firearms (other than as a police officer, correctional officer or licensed security guard), dangerous chemicals or explosives, or offshore work – oil and gas platforms, ships at sea, or being underground (in construction and mining environments) or underwater for more than 20% of total at work time, or working at heights over 20 metres in any environment requiring hard hat and harness for safety by law, or crop dusting, aerial mustering or any low level flying activity (defined as below 150 metres or 500 feet), or flying more than 200 hours per annum as a passenger other than on a commercial airline, or as a pilot (fixed wing or helicopter)?")))};return e}());var cr=e("sss_qsuper_question_6",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 6"),n("p",{class:" mb-0"},"Are you earning more than $120,000 a year, (before tax and employer paid superannuation), from your job?")))};return e}());var lr=e("sss_qsuper_question_7",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 7"),n("p",{class:" mb-0"},"Do you have a university qualification which you are using/is required in your current role?")))};return e}());var fr=e("sss_qsuper_question_8",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 8"),n("p",{class:" mb-0"},"Do you have a senior/executive level management role in your company (your direct reports would be mid-level managers or skilled specialists in a sedentary setting), or is your role considered professional (e.g. doctor, solicitor, accountant – requiring membership of a professional or government body to practice in your occupation)?")))};return e}());var dr=e("sss_qsuper_question_yes_no_buttons",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return e.handleQuestionClick(true)},isBlockElement:true,variant:"secondary"},n("span",null,"Yes")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,variant:"secondary",onClick:function(){return e.handleQuestionClick(false)}},n("span",null,"No")))))};e.prototype.handleQuestionClick=function(e){var t=Wt.appBaseUrl;var n=window.location.pathname.split(t+"/qsuper/insurance/")[1].replace(/\/+$/,"");if(Bn.qSuperQuestionnaire.questions===undefined){Bn.qSuperQuestionnaire.questions={question1:false,question2:false,question3:false,question4:false,question5:false,question6:false,question7:false,question8:false}}Bn.qSuperQuestionnaire.questions[n]=e;Bn.qSuperInsuranceQuestions[n].answered=true;Bn.nextRoute=zn();Kt.navigateInternally(this.history,Bn.nextRoute)};return e}());ee(dr);var pr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.picked-block{background-color:var(--fl-color-primary);border-top-right-radius:3px;right:0;top:0}.picked-box-border{border:2px solid var(--fl-color-primary)}";var hr=e("sss_selected_super_choice_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"bg-white rounded-sm picked-box-border p-3"},n("div",{class:"d-flex"},n("div",{class:"flex-grow-1 font-weight-bold"},this.fundType),n("div",{class:"px-3 py-2 text-white picked-block position-absolute"},"You picked")),n("div",null,this.fundName))};return e}());hr.style=pr;var vr=e("sss_self_managed_fund",function(){function e(e){var n=this;t(this,e);this.showSmsfNotSupported=false;this.eventTrackingService=un.Instance;this.success=function(){Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(n.history,Xt.Success)}}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Wt.promotedFunds})};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-self-managed-fund-inputs",{fundForm:en.selfManagedFundForm,onFormChanged:function(e){en.selfManagedFundForm=Object.assign(Object.assign({},en.selfManagedFundForm),e.detail)}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.selfManagedFundForm=Object.assign(Object.assign({},en.selfManagedFundForm),e.detail)}}),this.showSmsfNotSupported&&n("sss-smsf-not-supported-dialog",{ref:function(t){return e.notSupportedDialog=t},onContinue:this.success})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Kt.navigateInternally(e.history,Xt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.componentDidRender=function(){var e;this.showSmsfNotSupported&&((e=this.notSupportedDialog)===null||e===void 0?void 0:e.scrollIntoView())};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];e={smsfChoice:{abn:en.selfManagedFundForm.fundAbn,fundName:en.selfManagedFundForm.fundName,fundAddress:{addressLine1:en.selfManagedFundForm.addressLine1,addressLine2:en.selfManagedFundForm.addressLine2,city:en.selfManagedFundForm.city,state:en.selfManagedFundForm.state,postcode:en.selfManagedFundForm.postcode},bsb:en.selfManagedFundForm.bsb,bankAccountName:en.selfManagedFundForm.bankAccountName,bankAccountNumber:en.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:en.selfManagedFundForm.fundEsa},standardChoiceFormSignature:en.selfManagedFundForm.standardChoiceFormSignature};return[4,pn.submitSelfManagedFundChoiceAsync(e)];case 1:t.sent();if(Wt.showSmsfNotSupported){this.showSmsfNotSupported=true}else{this.success()}t.label=2;case 2:return[2]}}))}))};return e}());ee(vr);var mr={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"};var gr=e("sss_self_managed_fund_inputs",function(){function e(e){t(this,e);this.formChanged=r(this,"formChanged",7);this.currentBank=W;this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}];this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/);this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund name *"),n("input",{placeholder:"Enter your fund name",type:"text",class:"form-control",required:true,minlength:"2",name:"fundName",id:"fundName",value:en.selfManagedFundForm.fundName,onChange:function(t){return e.updateFormField("fundName",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund ABN *"),n("input",{placeholder:"Enter your fund ABN",type:"text",class:"form-control",required:true,minlength:"2",name:"fundAbn",id:"fundAbn",value:en.selfManagedFundForm.fundAbn,onChange:function(t){return e.updateFormField("fundAbn",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund ABN")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Electronic service address alias (ESA) *"),n("input",{placeholder:"Enter your ESA",type:"text",class:"form-control",required:true,minlength:"2",name:"fundEsa",id:"fundEsa",value:en.selfManagedFundForm.fundEsa,onChange:function(t){return e.updateFormField("fundEsa",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund ESA")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 1 *"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",required:true,minlength:"2",name:"addressLine1",id:"addressLine1",value:en.selfManagedFundForm.addressLine1,onChange:function(t){return e.updateFormField("addressLine1",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 2 (optional)"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",name:"addressLine2",id:"addressLine2",value:en.selfManagedFundForm.addressLine2,onChange:function(t){return e.updateFormField("addressLine2",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"City/suburb *"),n("input",{placeholder:"Enter your city",type:"text",class:"form-control",name:"city",required:true,id:"city",value:en.selfManagedFundForm.city,onChange:function(t){return e.updateFormField("city",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid city/suburb *")),n("div",{class:"mt-3"},n("label",{class:"mb-2 font-weight-bold"},"State *"),n("select",{class:"form-control",name:"state",required:true,id:"state",onChange:function(t){e.updateFormField("state",t.target.value.trim())}},n("option",{disabled:true,selected:!this.fundForm.state,value:""},"Select a state"),this.stateOptions.map((function(t){return n("option",{value:t.value,selected:e.fundForm.state===t.value},t.label)}))),n("div",{class:"invalid-feedback"},"Select a state")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Post code *"),n("input",{placeholder:"Enter your post code",type:"text",required:true,class:"form-control",name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:en.selfManagedFundForm.postcode,onChange:function(t){return e.updateFormField("postcode",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid post code")),n("div",null,n("i",{class:"fas fa-check-circle"})),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"BSB *"),n("input",{placeholder:"Enter your BSB",type:"text",required:true,class:"form-control",name:"bsb",id:"bsb",minlength:"6",maxlength:"7",onKeyUp:function(t){return e.updateCurrentBank(t)},pattern:this.bsbRegex.source,value:en.selfManagedFundForm.bsb}),Q(this.currentBank)&&n("p",{class:"mt-3"},n("strong",null,"Bank name"),n("br",null),n("span",{class:"ml-2"},this.currentBank.value)),n("div",{class:"invalid-feedback"},"Enter a valid BSB")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account name *"),n("input",{placeholder:"Enter your bank account name",type:"text",required:true,class:"form-control",name:"bankAccountName",minlength:"2",id:"bankAccountName",value:en.selfManagedFundForm.bankAccountName,onChange:function(t){return e.updateFormField("bankAccountName",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid bank account name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account number *"),n("input",{placeholder:"Enter your bank account number",type:"text",required:true,class:"form-control",name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,value:en.selfManagedFundForm.bankAccountNumber,onKeyUp:function(t){return e.updateCurrentBankAccountNumber(t)},onChange:function(t){return e.updateFormField("bankAccountNumber",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid bank account number")))};e.prototype.updateFormField=function(e,t){var n;this.formChanged.emit((n={},n[e]=t,n))};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.updateCurrentBank=function(e){var t=this.filterDigits(e.target.value);var n=t.substring(0,2);var r=t.substring(0,3);var i=mr[n];var o=mr[r];if(i)this.currentBank=G(i);if(o)this.currentBank=G(o);if(t==="")this.currentBank=W;this.updateFormField("bsb",t)};e.prototype.updateCurrentBankAccountNumber=function(e){var t=this.filterDigits(e.target.value);this.updateFormField("bankAccountNumber",t)};return e}());var yr=undefined&&undefined.__decorate||function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(a=e[s])o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o;return i>3&&o&&Object.defineProperty(t,n,o),o};var br;(function(e){e[e["Unauthorized"]=0]="Unauthorized";e[e["Authenticated"]=1]="Authenticated";e[e["Error"]=2]="Error"})(br||(br={}));var wr=function(){function e(){}return e}();function xr(){return{authenticationState:br.Unauthorized,jwt:W,reactNativeInterop:W,iframeInterop:W,appConfiguration:W}}var Sr=function(e){__extends(t,e);function t(){return e.call(this,xr())||this}return t}(b);Sr=yr([y({name:"sss-session",resettable:true})],Sr);var Ir=new Sr;var _r=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;return n}t.prototype.isReactNativeInteropEnabled=function(){return Q(this.getValue().reactNativeInterop)};t.prototype.isIframeInteropEnabled=function(){return Q(this.getValue().iframeInterop)};t.prototype.getIframeInteropMode=function(){var e=this.getValue().iframeInterop;if(H(e)){throw Error("Failed to get iframe interop information: no data in store")}if(!this.isIframeInteropEnabled()){throw Error("Failed to get iframe interop information: iframe mode is disabled")}return e.value};return t}(w);var Cr=new _r(Ir);var kr={slateFundForm:{memberNumber:"",standardChoiceFormSignature:""}};var Tr=lt(kr).state;var Er=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin=="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.skipConsolidation=function(){return Cr.isReactNativeInteropEnabled()?"true":"false"};this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.slateJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"join.slatesuper.com.au/confirm"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app";var r=n+"/slate-redirect.html";var i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:r,cancelRedirectUrl:r,skipConsolidation:this.skipConsolidation(),skipInsurance:"true"});if(this.includeJwt()){i.authToken=Wt.jwt}var o=function(n){var r=n.data,i=n.origin;if(!r){return}if(r.sender==="slate-redirect"){window.removeEventListener("message",o);switch(r.type){case"success":if(r.memberNumber){Tr.slateFundForm.memberNumber=r.memberNumber;Kt.navigateInternally(t,Xt.SlateStandardChoice);break}default:Kt.navigateInternally(t,Xt.ChoicePage);break}return}if(r.sender==="flare"&&i.endsWith("join.slatesuper.com.au")){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break}}};window.addEventListener("message",o);var a=e.contentDocument;a.open();var s=a.createElement("form");s.method="POST";s.target="_self";s.action=this.slateJoinAppUrl();var u;for(u in i){var c=i[u];if(c!==undefined){var l=document.createElement("input");l.type="hidden";l.name=u;l.value=c;s.append(l)}}a.appendChild(s);a.close();s.submit()};e.prototype.getSlateJoinMemberData=function(){var e,t;var n=Wt.superBuyer;var r=function(e){switch(e){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}};return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:r(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};e.prototype.includeJwt=function(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)};return e}();var Ar=new Er;var Nr=e("sss_slate_join_page",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){Ar.build(this.iframeElement,this.history)};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var Fr=function(){function e(){}e.prototype.submitSlateChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/slate").post(e).badRequest((function(){throw new Error("Failed to process Slate join request")})).text()]}))}))};return e}();var Pr=new Fr;var Or=e("sss_slate_standard_choice_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("sss-slatesuper-header",null),n("div",null,n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){Tr.slateFundForm=Object.assign(Object.assign({},Tr.slateFundForm),e.detail)}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("stencil-route-link",{url:"/"},n("fl-button",{isBlockElement:true,variant:"secondary"},n("span",null,"Back"))))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue"))))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Pr.submitSlateChoiceAsync(Tr.slateFundForm)];case 1:e.sent();Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(this.history,Xt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var Dr="";var Rr=e("sss_slatesuper_header",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"d-flex"},n("div",null,n("img",{class:"ss-choice-logo img-thumbnail",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-slate.png")})),n("div",{class:"d-flex flex-column ml-3 align-items-left"},n("p",{class:"confirm-title font-weight-bold mb-0"},"You’re almost there!"),n("p",{class:"confirm-text mb-0"},"To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection.")))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());Rr.style=Dr;var qr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.overlay{position:absolute;top:0;left:0;z-index:100;background-color:#fff;opacity:0.7;width:100%;height:100%}.dialog{z-index:101;position:relative}";var Mr=e("sss_smsf_not_supported_dialog",function(){function e(e){var n=this;t(this,e);this.continue=r(this,"continue",7);this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";this.handleContinue=function(){n.continue.emit()}}e.prototype.render=function(){return n(a,null,n("div",{class:"overlay"}),n("div",{class:"dialog"},n("div",{class:"card p-4 mt-4 bg-light text-center"},n("div",{style:{"text-align":"center"}},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"orange",viewBox:"0 0 16 16"},n("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))),n("p",{class:"small mt-4 mb-0"},"You’ve selected a self-managed super fund (SMSF). Currently, SMSF information can’t be sent via this form. You’ll need to provide your employer with a"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","for your SMSF details."),n("div",{class:"d-flex mt-4"},n("div",{class:"w-25"}),n("div",{class:"w-50"},n("fl-button",{onClick:this.handleContinue,isBlockElement:true,variant:"primary"},n("span",null,"Continue")))))))};return e}());Mr.style=qr;var Ur=e("sss_standard_choice_form",function(){function e(e){t(this,e);this.standardChoiceFormSignatureUpdated=r(this,"standardChoiceFormSignatureUpdated",7);this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";this.standardChoiceFormSignature=""}e.prototype.render=function(){var e=this;return n("div",{class:"card p-4 mt-4 bg-light"},n("h4",{class:"small font-weight-bold"},"Superannuation Standard Choice Form"),n("p",{class:"small mt-2"},"The superannuation"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","informs your employer of your choice of fund."),n("h4",{class:"small font-weight-bold"},"Type your full name below (required)"),n("input",{placeholder:"Type your full name",type:"text",class:"form-control",required:true,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onKeyUp:function(t){return e.updateFormField(t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Type your full name"),n("p",{class:"small mt-3 mb-0"},"Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding."))};e.prototype.updateFormField=function(e){this.standardChoiceFormSignatureUpdated.emit({standardChoiceFormSignature:e})};return e}());var Lr=e("sss_success",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("div",{class:"container mt-5"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-9 col-md-6"},n("div",{class:"bg-light rounded p-4"},n("div",{class:"d-flex justify-content-center"},n("div",null,n("svg",{width:"3em",height:"3em",viewBox:"0 0 16 16",class:"bi bi-check-circle-fill text-success",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"})))),n("div",{class:"d-flex justify-content-center"},n("p",{class:"mt-3 confirm-title text-center font-weight-bold px-5"},"Successfully updated superannuation details")),n("div",{class:"mt-2 text-center"},n("p",{class:"confirm-text mb-0"},"Your superannuation details have been updated successfully."),n("br",null),n("p",{class:"confirm-text mb-0"},"To continue with your onboarding, press ",n("strong",null,"Continue")," below."))),n("div",{class:"flex-grow-1 mt-4"},n("fl-promise-button",{isBlockElement:true,onClick:this.handleContinueButtonClick},n("span",null,"Continue")))))))};e.prototype.handleContinueButtonClick=function(e){Wt.completeSuperSelectionFlow()};return e}());var Br="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";var jr=e("sss_super_choice_item",function(){function e(e){t(this,e);this.joinFundClicked=r(this,"joinFundClicked",7);this.eventTrackingService=un.Instance}e.prototype.render=function(){var e=this;return n(a,{class:{"d-flex p-3 fund-item":true,"ss-picked-fund":this.isSelected}},n("div",{class:"card-body py-0 px-0 px-xl-3"},this.isSelected&&n("div",{class:"px-3 py-2 text-white promoted-picked-block position-absolute"},"You picked"),n("div",{class:"d-flex flex-fill flex-column align-items-center"},n("div",{class:"d-flex justify-content-end w-100"},n("div",{class:"text-muted small border rounded-sm px-1 mt-n2 mr-n2 mb-1"},"Advertised")),n("img",{class:"ss-choice-logo",alt:this.name,src:s("assets/"+this.logo)}),n("p",{class:"font-weight-bold text-center mt-3 mb-0"},this.name),this.subText&&n("span",{class:"text-muted small text-center font-italic"},this.subText),n("div",{class:"mt-3"},JSON.parse(this.features).map((function(e){return n("p",{class:"text-center"},e.value)}))))),n("div",{class:"text-center bottom-half-fund-tile"},n("div",{class:"p-3"},n("fl-button",{class:"uuid-button-continue",isBlockElement:true,onClick:function(){return e.handleFundClick()}},"Choose this fund")),n("div",{class:"mb-2"},n("a",{target:"_blank",href:this.pdsLink,onClick:function(){return e.pdsViewedAsync()}},"View the PDS")),this.disclaimer,n("div",{class:"small text-muted"},this.abnInfo)))};e.prototype.handleFundClick=function(){return this.joinFundClicked.emit()};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:this.usi,fundName:this.name,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());jr.style=Br;var Vr=function(){function e(){}e.prototype.GetChosenFundAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,o,r,a,s;return __generator(this,(function(u){switch(u.label){case 0:n=(e=Wt.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!n)return[2,W];if(!("promoted"in n))return[3,1];r=On.find((function(e){return e.dtoPropName in n.promoted}));i=(t=r===null||r===void 0?void 0:r.id)!==null&&t!==void 0?t:"";return[2,G({isPromoted:true,promotedId:i})];case 1:if(!("smsf"in n))return[3,2];return[2,G({isPromoted:false,name:n.smsf.fundName,type:"Self Managed Fund"})];case 2:if(!("myOwnFund"in n))return[3,4];o=n.myOwnFund.usi;return[4,this.getFundByUsiAsync(o)];case 3:r=u.sent();return[2,G({isPromoted:false,name:Q(r)?r.value.productName:o,type:"My Own Fund"})];case 4:if(!("default"in n))return[3,6];a=n.default.usi;return[4,this.getFundByUsiAsync(a)];case 5:s=u.sent();return[2,G({isPromoted:false,name:Q(s)?s.value.productName:a,type:"Default Fund"})];case 6:return[2,W]}}))}))};e.prototype.getFundByUsiAsync=function(e){return an.getFundByUsiAsync(e)};return e}();var zr=new Vr;var Qr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";var Hr=e("sss_super_choice_page",function(){function e(e){var n=this;t(this,e);this.promotedFunds=this.getPromotedFunds();this.chosenFund=W;this.eventTrackingService=un.Instance;this.isPromotedFundSelected=function(e){return Q(n.chosenFund)&&n.chosenFund.value.isPromoted&&n.chosenFund.value.promotedId===e}}e.prototype.componentDidLoad=function(){nt.appReady();var e=this.promotedFunds.map((function(e){return e.fundId}));this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:e})};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:Gn();e=this;return[4,zr.GetChosenFundAsync()];case 1:e.chosenFund=t.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var t="The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund. Flare HR is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage.";var r="The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare HR are making any recommendation or opinion.";var i="There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice.";var o="You should be aware that, if you do choose one of these advertised funds, Flare HR and its associated entities will normally receive a fee for you doing so.";var s="https://my.gov.au";var u="my.gov.au";var c="https://www.apra.gov.au/register-of-superannuation-institutions";var l="www.apra.gov.au/register-of-superannuation-institutions";return n(a,null,n("div",{class:"container mt-0 mb-0"},n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("h3",{class:"mt-3 font-weight-bold text-center mb-4"},"Choose your Super"))),n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("p",{class:"text-center font-weight-bold"},t),n("p",{class:"text-center"},r),n("p",{class:"text-center"},i))),n("div",{class:"row"},n("div",{class:"col"},n("sss-notifications-section",null))),n("div",{class:"row justify-content-center mt-4"},n("div",{class:"col col-sm-10 col-md-8 col-xl-7"},n("div",{class:"row"},n("div",{class:"col"},n("div",{class:"d-flex flex-fill"},Q(this.chosenFund)&&!this.chosenFund.value.isPromoted&&n("sss-selected-super-choice-section",{fundType:this.chosenFund.value.type,fundName:this.chosenFund.value.name,class:"flex-fill position-relative"})))),n("div",{class:"row mt-3 justify-content-center"},this.getPromotedFunds().map((function(t){return n("div",{class:"col-12 col-lg-6 d-flex"},n("sss-super-choice-item",{class:"card mb-3 mb-lg-0 mx-0 flex-grow-1",logo:t.logo,isSelected:e.isPromotedFundSelected(t.fundId),usi:t.usi,name:t.name,subText:t.subText,pdsLink:Kt.toExternalUrl(t.pdsLink),features:JSON.stringify(t.features),disclaimer:t.disclaimer,abnInfo:t.abnInfo,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}}))}))),n("div",{class:"row mt-3 px-3"},n("div",{class:"col p-4 border rounded bg-light"},n("div",{class:"row"},n("div",{class:"col"},n("h5",{class:"font-weight-bold"},"Choose another super fund"),n("p",{class:"mb-1"},"Select this option if you'd like to use your current account with another super fund."),n("ul",{class:"ml-n3"},n("li",null,"If you are unsure of your current super fund details, you can find out at"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(s)},u)),n("li",{class:"mt-1"},"A full list of super funds can be viewed at"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(c)},l))))),n("div",{class:"row"},n("div",{class:"col"},n("stencil-route-link",{url:Xt.MyOwnFund},n("fl-button",{isBlockElement:true,variant:"primary",class:"d-lg-none"},"Choose another fund"),n("div",{class:"mt-n3 d-none d-lg-flex justify-content-end align-items-end"},n("fl-button",{variant:"primary"},"Choose another fund"))))))))),n("div",{class:"row justify-content-center mt-5"},n("div",{class:"col"},n("p",{class:"text-center"},o)))))};e.prototype.allFunds=function(){var e=this;return[{fundId:Nn.Id,usi:Nn.Usi,name:Nn.Name,logo:"logo-slate.png",route:Xt.SlateJoin,pdsLink:Nn.PdsUrl,features:[{order:1,value:"A lifestage investment strategy that evolves with you"},{order:2,value:"Advanced mobile app with retirement forecast and smart features"},{order:3,value:"Member advocates at Slate to assist with your account"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(Nn.PdsUrl),onClick:function(){return e.pdsViewedAsync(Nn.Name,Nn.Usi)}},"Product Disclosure Statement")," ","and"," ",n("a",{target:"_blank",href:Kt.toExternalUrl("https://slate.co/forms-and-documents/target-market-determination/")},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited ABN: "+Nn.DiversaAbn},{fundId:An.Id,usi:An.Usi,name:An.Name,logo:"logo-qsuper-square.png",route:Xt.QSuperOptIn,pdsLink:An.PdsUrl,features:[{order:1,value:"100 years strong"},{order:2,value:"One of Australia's largest funds"},{order:3,value:"Awarded SuperRatings highest performance rating"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(An.PdsUrl),onClick:function(){return e.pdsViewedAsync(An.Name,An.Usi)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"QSuper Board ABN: "+An.Abn},{fundId:Fn.Id,name:Fn.Name,subText:"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.",logo:"logo-art.svg",route:Xt.PromotedFundJoin,pdsLink:Fn.PdsUrl,features:[{order:1,value:"$200 billion in retirement savings"},{order:2,value:"2+ million members"},{order:3,value:"A focus on delivering strong, long‑term returns"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(Fn.PdsUrl),onClick:function(){return e.pdsViewedAsync(Fn.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust ABN: "+Fn.Abn},{fundId:Pn.Id,name:Pn.Name,logo:"logo-aware.svg",route:Xt.PromotedFundJoin,pdsLink:Pn.PdsUrl,features:[{order:1,value:"Lorem ipsum dolor sit amet"},{order:2,value:"Lorem ipsum dolor sit amet"},{order:3,value:"Lorem ipsum dolor sit amet"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(Pn.PdsUrl),onClick:function(){return e.pdsViewedAsync(Pn.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd ABN: "+Pn.Abn}]};e.prototype.getPromotedFunds=function(){var e=this;var t=[];Wt.promotedFunds.forEach((function(n){var r=e.allFunds().find((function(e){return n==e.fundId}));if(r!==undefined){t.push(r)}}));return t};e.prototype.handleJoinSuperClickAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=Wt.promotedFunds;if(!(e.fundId===Nn.Id))return[3,2];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:Nn.Usi,fundName:Nn.Name,promotedFundId:Nn.Id,promotedFundsShown:t})];case 1:n.sent();return[3,8];case 2:if(!(e.fundId===An.Id))return[3,4];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:An.Usi,fundName:An.Name,promotedFundId:An.Id,promotedFundsShown:t})];case 3:n.sent();return[3,8];case 4:if(!(e.fundId===Fn.Id))return[3,6];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:Fn.Name,promotedFundId:Fn.Id,promotedFundsShown:t})];case 5:n.sent();Sn.fundId=e.fundId;return[3,8];case 6:if(!(e.fundId===Pn.Id))return[3,8];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:Pn.Name,promotedFundId:Pn.Id,promotedFundsShown:t})];case 7:n.sent();Sn.fundId=e.fundId;n.label=8;case 8:return[2,Kt.navigateInternally(this.history,e.route)]}}))}))};e.prototype.pdsViewedAsync=function(e,t){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:t,fundName:e,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());Hr.style=Qr;var Wr="stencil-route.inactive{display:none}";var Gr=e("stencil_route",function(){function e(e){t(this,e);this.group=null;this.match=null;this.componentProps={};this.exact=false;this.scrollOnNextRender=false;this.previousMatch=null}e.prototype.computeMatch=function(e){var t=this.group!=null||this.el.parentElement!=null&&this.el.parentElement.tagName.toLowerCase()==="stencil-route-switch";if(!e||t){return}this.previousMatch=this.match;return this.match=Pe(e.pathname,{path:this.url,exact:this.exact,strict:true})};e.prototype.loadCompleted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e={};if(this.history&&this.history.location.hash){e={scrollToId:this.history.location.hash.substr(1)}}else if(this.scrollTopOffset){e={scrollTopOffset:this.scrollTopOffset}}if(typeof this.componentUpdated==="function"){this.componentUpdated(e)}else if(this.match&&!Oe(this.match,this.previousMatch)&&this.routeViewsUpdated){this.routeViewsUpdated(e)}return[2]}))}))};e.prototype.componentDidUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){if(!this.match||!this.history){return null}var e=Object.assign({},this.componentProps,{history:this.history,match:this.match});if(this.routeRender){return this.routeRender(Object.assign({},e,{component:this.component}))}if(this.component){var t=this.component;return n(t,Object.assign({},e))}};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());k.injectProps(Gr,["location","history","historyType","routeViewsUpdated"]);Gr.style=Wr;var Kr=function(e,t,n){return n(e.confirm(t))};var Xr=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey};var Yr=function(e){var t=e.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1){return false}return e.history&&"pushState"in e.history};var Jr=function(e){return e.userAgent.indexOf("Trident")===-1};var $r=function(e){return e.userAgent.indexOf("Firefox")===-1};var Zr=function(e,t){return t.state===undefined&&e.userAgent.indexOf("CriOS")===-1};var ei=function(e,t){var n=e[t];var r="__storage_test__";try{n.setItem(r,r);n.removeItem(r);return true}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&n.length!==0}};var ti=function(e,t){if(e.charAt(0)=="/"&&t.charAt(t.length-1)=="/"){return t.slice(0,t.length-1)+e}return t+e};var ni=e("stencil_route_link",function(){function e(e){t(this,e);this.unsubscribe=function(){return};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}e.prototype.componentWillLoad=function(){this.computeMatch()};e.prototype.computeMatch=function(){if(this.location){this.match=Pe(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}};e.prototype.handleClick=function(e){if(Xr(e)||!this.history||!this.url||!this.root){return}e.preventDefault();return this.history.push(ti(this.url,this.root))};e.prototype.render=function(){var e;var t={class:(e={},e[this.activeClass]=this.match!==null,e),onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})}return n(this.custom,Object.assign({},t),n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());k.injectProps(ni,["history","location","root"]);var ri=function(){return((Math.random()*1e17).toString().match(/.{4}/g)||[]).join("-")};var ii=function(e,t,n){return Pe(e,{path:t,exact:n,strict:true})};var oi=function(e){return e.tagName==="STENCIL-ROUTE"};var ai=e("stencil_route_switch",function(){function e(e){t(this,e);this.group=ri();this.subscribers=[];this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){if(this.location!=null){this.regenerateSubscribers(this.location)}};e.prototype.regenerateSubscribers=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;var r=this;return __generator(this,(function(i){if(e==null){return[2]}t=-1;this.subscribers=Array.prototype.slice.call(this.el.children).filter(oi).map((function(n,r){var i=ii(e.pathname,n.url,n.exact);if(i&&t===-1){t=r}return{el:n,match:i}}));if(t===-1){return[2]}if(this.activeIndex===t){this.subscribers[t].el.match=this.subscribers[t].match;return[2]}this.activeIndex=t;n=this.subscribers[this.activeIndex];if(this.scrollTopOffset){n.el.scrollTopOffset=this.scrollTopOffset}n.el.group=this.group;n.el.match=n.match;n.el.componentUpdated=function(e){r.queue.write((function(){r.subscribers.forEach((function(e,t){e.el.componentUpdated=undefined;if(t===r.activeIndex){return e.el.style.display=""}if(r.scrollTopOffset){e.el.scrollTopOffset=r.scrollTopOffset}e.el.group=r.group;e.el.match=null;e.el.style.display="none"}))}));if(r.routeViewsUpdated){r.routeViewsUpdated(Object.assign({scrollTopOffset:r.scrollTopOffset},e))}};return[2]}))}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["regenerateSubscribers"]}},enumerable:false,configurable:true});return e}());k.injectProps(ai,["location","routeViewsUpdated"]);var si=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(!e){console.warn.apply(console,t)}};var ui=function(){var e;var t=[];var n=function(t){si(e==null,"A history supports only one prompt at a time");e=t;return function(){if(e===t){e=null}}};var r=function(t,n,r,i){if(e!=null){var o=typeof e==="function"?e(t,n):e;if(typeof o==="string"){if(typeof r==="function"){r(o,i)}else{si(false,"A history needs a getUserConfirmation function in order to use a prompt message");i(true)}}else{i(o!==false)}}else{i(true)}};var i=function(e){var n=true;var r=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(n){e.apply(void 0,t)}};t.push(r);return function(){n=false;t=t.filter((function(e){return e!==r}))}};var o=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}t.forEach((function(t){return t.apply(void 0,e)}))};return{setPrompt:n,confirmTransitionTo:r,appendListener:i,notifyListeners:o}};var ci=function(e,t){if(t===void 0){t="scrollPositions"}var n=new Map;var r=function(t,r){n.set(t,r);if(ei(e,"sessionStorage")){var i=[];n.forEach((function(e,t){i.push([t,e])}));e.sessionStorage.setItem("scrollPositions",JSON.stringify(i))}};var i=function(e){return n.get(e)};var o=function(e){return n.has(e)};var a=function(t){r(t,[e.scrollX,e.scrollY])};if(ei(e,"sessionStorage")){var s=e.sessionStorage.getItem(t);n=s?new Map(JSON.parse(s)):n}if("scrollRestoration"in e.history){history.scrollRestoration="manual"}return{set:r,get:i,has:o,capture:a}};var li="popstate";var fi="hashchange";var di=function(e,t){if(t===void 0){t={}}var n=false;var r=e.history;var i=e.location;var o=e.navigator;var a=Yr(e);var s=!Jr(o);var u=ci(e);var c=t.forceRefresh!=null?t.forceRefresh:false;var l=t.getUserConfirmation!=null?t.getUserConfirmation:Kr;var f=t.keyLength!=null?t.keyLength:6;var d=t.basename?ve(me(t.basename)):"";var p=function(){try{return e.history.state||{}}catch(e){return{}}};var h=function(e){e=e||{};var t=e.key,n=e.state;var r=i.pathname,o=i.search,a=i.hash;var s=r+o+a;si(!d||pe(s,d),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+s+'" to begin with "'+d+'".');if(d){s=he(s,d)}return Te(s,n,t||Se(f))};var v=ui();var m=function(e){u.capture(D.location.key);Object.assign(D,e);D.location.scrollPosition=u.get(D.location.key);D.length=r.length;v.notifyListeners(D.location,D.action)};var g=function(e){if(!Zr(o,e)){b(h(e.state))}};var y=function(){b(h(p()))};var b=function(e){if(n){n=false;m()}else{var t="POP";v.confirmTransitionTo(e,t,l,(function(n){if(n){m({action:t,location:e})}else{w(e)}}))}};var w=function(e){var t=D.location;var r=S.indexOf(t.key);var i=S.indexOf(e.key);if(r===-1){r=0}if(i===-1){i=0}var o=r-i;if(o){n=true;E(o)}};var x=h(p());var S=[x.key];var I=0;var _=false;var C=function(e){return d+be(e)};var k=function(e,t){si(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to push when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="PUSH";var o=Te(e,t,Se(f),D.location);v.confirmTransitionTo(o,n,l,(function(e){if(!e){return}var t=C(o);var s=o.key,u=o.state;if(a){r.pushState({key:s,state:u},"",t);if(c){i.href=t}else{var l=S.indexOf(D.location.key);var f=S.slice(0,l===-1?0:l+1);f.push(o.key);S=f;m({action:n,location:o})}}else{si(u===undefined,"Browser history cannot push state in browsers that do not support HTML5 history");i.href=t}}))};var T=function(e,t){si(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to replace when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="REPLACE";var o=Te(e,t,Se(f),D.location);v.confirmTransitionTo(o,n,l,(function(e){if(!e){return}var t=C(o);var s=o.key,u=o.state;if(a){r.replaceState({key:s,state:u},"",t);if(c){i.replace(t)}else{var l=S.indexOf(D.location.key);if(l!==-1){S[l]=o.key}m({action:n,location:o})}}else{si(u===undefined,"Browser history cannot replace state in browsers that do not support HTML5 history");i.replace(t)}}))};var E=function(e){r.go(e)};var A=function(){return E(-1)};var N=function(){return E(1)};var F=function(t){I+=t;if(I===1){e.addEventListener(li,g);if(s){e.addEventListener(fi,y)}}else if(I===0){e.removeEventListener(li,g);if(s){e.removeEventListener(fi,y)}}};var P=function(e){if(e===void 0){e=""}var t=v.setPrompt(e);if(!_){F(1);_=true}return function(){if(_){_=false;F(-1)}return t()}};var O=function(e){var t=v.appendListener(e);F(1);return function(){F(-1);t()}};var D={length:r.length,action:"POP",location:x,createHref:C,push:k,replace:T,go:E,goBack:A,goForward:N,block:P,listen:O,win:e};return D};var pi="hashchange";var hi={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+ge(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:ge,decodePath:me},slash:{encodePath:me,decodePath:me}};var vi=function(e,t){if(t===void 0){t={}}var n=false;var r=null;var i=0;var o=false;var a=e.location;var s=e.history;var u=$r(e.navigator);var c=t.keyLength!=null?t.keyLength:6;var l=t.getUserConfirmation,f=l===void 0?Kr:l,d=t.hashType,p=d===void 0?"slash":d;var h=t.basename?ve(me(t.basename)):"";var v=hi[p],m=v.encodePath,g=v.decodePath;var y=function(){var e=a.href;var t=e.indexOf("#");return t===-1?"":e.substring(t+1)};var b=function(e){return a.hash=e};var w=function(e){var t=a.href.indexOf("#");a.replace(a.href.slice(0,t>=0?t:0)+"#"+e)};var x=function(){var e=g(y());si(!h||pe(e,h),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+e+'" to begin with "'+h+'".');if(h){e=he(e,h)}return Te(e,undefined,Se(c))};var S=ui();var I=function(e){Object.assign(B,e);B.length=s.length;S.notifyListeners(B.location,B.action)};var _=function(){var e=y();var t=m(e);if(e!==t){w(t)}else{var i=x();var o=B.location;if(!n&&ke(o,i)){return}if(r===be(i)){return}r=null;C(i)}};var C=function(e){if(n){n=false;I()}else{var t="POP";S.confirmTransitionTo(e,t,f,(function(n){if(n){I({action:t,location:e})}else{k(e)}}))}};var k=function(e){var t=B.location;var r=N.lastIndexOf(be(t));var i=N.lastIndexOf(be(e));if(r===-1){r=0}if(i===-1){i=0}var o=r-i;if(o){n=true;D(o)}};var T=y();var E=m(T);if(T!==E){w(E)}var A=x();var N=[be(A)];var F=function(e){return"#"+m(h+be(e))};var P=function(e,t){si(t===undefined,"Hash history cannot push state; it is ignored");var n="PUSH";var i=Te(e,undefined,Se(c),B.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=be(i);var o=m(h+t);var a=y()!==o;if(a){r=t;b(o);var s=N.lastIndexOf(be(B.location));var u=N.slice(0,s===-1?0:s+1);u.push(t);N=u;I({action:n,location:i})}else{si(false,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack");I()}}))};var O=function(e,t){si(t===undefined,"Hash history cannot replace state; it is ignored");var n="REPLACE";var i=Te(e,undefined,Se(c),B.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=be(i);var o=m(h+t);var a=y()!==o;if(a){r=t;w(o)}var s=N.indexOf(be(B.location));if(s!==-1){N[s]=t}I({action:n,location:i})}))};var D=function(e){si(u,"Hash history go(n) causes a full page reload in this browser");s.go(e)};var R=function(){return D(-1)};var q=function(){return D(1)};var M=function(e,t){i+=t;if(i===1){e.addEventListener(pi,_)}else if(i===0){e.removeEventListener(pi,_)}};var U=function(t){if(t===void 0){t=""}var n=S.setPrompt(t);if(!o){M(e,1);o=true}return function(){if(o){o=false;M(e,-1)}return n()}};var L=function(t){var n=S.appendListener(t);M(e,1);return function(){M(e,-1);n()}};var B={length:s.length,action:"POP",location:A,createHref:F,push:P,replace:O,go:D,goBack:R,goForward:q,block:U,listen:L,win:e};return B};var mi=function(e,t){var n=e.pathname.indexOf(t)==0?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:n})};var gi={browser:di,hash:vi};var yi=e("stencil_router",function(){function e(e){var n=this;t(this,e);this.root="/";this.historyType="browser";this.titleSuffix="";this.routeViewsUpdated=function(e){if(e===void 0){e={}}if(n.history&&e.scrollToId&&n.historyType==="browser"){var t=n.history.win.document.getElementById(e.scrollToId);if(t){return t.scrollIntoView()}}n.scrollTo(e.scrollTopOffset||n.scrollTopOffset)};this.isServer=c(this,"isServer");this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){var e=this;this.history=gi[this.historyType](this.el.ownerDocument.defaultView);this.history.listen((function(t){t=mi(t,e.root);e.location=t}));this.location=mi(this.history.location,this.root)};e.prototype.scrollTo=function(e){var t=this.history;if(e==null||this.isServer||!t){return}if(t.action==="POP"&&Array.isArray(t.location.scrollPosition)){return this.queue.write((function(){if(t&&t.location&&Array.isArray(t.location.scrollPosition)){t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])}}))}return this.queue.write((function(){t.win.scrollTo(0,e)}))};e.prototype.render=function(){if(!this.location||!this.history){return}var e={historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated};return n(k.Provider,{state:e},n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());var bi="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}stencil-route:empty{display:none}";var wi=e("super_selection_app",function(){function e(e){t(this,e);this.stepSubmitSuccess=r(this,"step-completion",7);this.successPageAcknowledged=r(this,"successPageAcknowledged",5);this.initialised=r(this,"initialised",7);this.isAppInitialised=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;var r=this;return __generator(this,(function(i){e=ht.fromNullable(this.accessToken);if(ht.isNone(e)){throw Error("jwt property is missing.")}Wt.state.jwt=e;t=ht.fromNullable(this.backendUrl);if(ht.isNone(t)){throw Error("apiBaseUrl property is missing.")}Wt.state.apiBaseUrl=ht.some(t.value.replace(/\/$/,"")+"/");n=ht.fromNullable(this.appBaseUrl);if(ht.isNone(n)){throw Error("appBaseUrl property is missing.")}Wt.state.appBaseUrl=ht.some(n.value.replace(/\/$/,""));Wt.onChange("hasSuccessPageBeenAcknowledged",(function(e){return r.successPageAcknowledged.emit()}));Wt.onChange("hasSuperSelectionBeenSubmitted",(function(e){if(!e)return;r.stepSubmitSuccess.emit();Wt.state.hasSuperSelectionBeenSubmitted=false}));return[2]}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:Gn();return[4,Wt.loadAppStateAsync()];case 1:e.sent();this.isAppInitialised=true;this.initialised.emit({accountIdOrDefault:Wt.accountIdOrDefault,partnerIdOrDefault:Wt.partnerIdOrDefault,profileId:Wt.profileId});return[2]}}))}))};e.prototype.authTokenChanged=function(e){Wt.state.jwt=ht.fromNullable(e)};e.prototype.onRouteChange=function(){window===null||window===void 0?void 0:window.scroll(0,0)};e.prototype.render=function(){return n(a,{class:"d-flex justify-content-center flex-grow-1"},n("div",{class:"d-flex flex-column justify-content-between"},this.renderAppContent()))};e.prototype.routerBaseUrl=function(){var e;return((e=this.appBaseUrl)===null||e===void 0?void 0:e.replace(/\/$/,""))+"/"};e.prototype.renderAppContent=function(){return n("stencil-router",{root:this.routerBaseUrl()},n("stencil-route-switch",{scrollTopOffset:0},n("div",{class:"d-flex flex-column"},n("div",{class:"d-flex justify-content-center"},this.isAppInitialised?Yt:n("fl-loading-indicator",{class:"mt-5"})),n("div",{class:"d-flex justify-content-center"},n("sss-footer-section",null)))))};Object.defineProperty(e,"watchers",{get:function(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}},enumerable:false,configurable:true});return e}());ee(wi);wi.style=bi;var xi=[];var Si=function(){return xi.some((function(e){return e.activeTargets.length>0}))};var Ii=function(){return xi.some((function(e){return e.skippedTargets.length>0}))};var _i="ResizeObserver loop completed with undelivered notifications.";var Ci=function(){var e;if(typeof ErrorEvent==="function"){e=new ErrorEvent("error",{message:_i})}else{e=document.createEvent("Event");e.initEvent("error",false,false);e.message=_i}window.dispatchEvent(e)};var ki;(function(e){e["BORDER_BOX"]="border-box";e["CONTENT_BOX"]="content-box";e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(ki||(ki={}));var Ti=function(e){return Object.freeze(e)};var Ei=function(){function e(e,t){this.inlineSize=e;this.blockSize=t;Ti(this)}return e}();var Ai=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Ti(this)}e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,o=e.bottom,a=e.left,s=e.width,u=e.height;return{x:t,y:n,top:r,right:i,bottom:o,left:a,width:s,height:u}};e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)};return e}();var Ni=function(e){return e instanceof SVGElement&&"getBBox"in e};var Fi=function(e){if(Ni(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)};var Pi=function(e){var t,n;var r=(n=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&e instanceof r.Element)};var Oi=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image"){break}case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return true}return false};var Di=typeof window!=="undefined"?window:{};var Ri=new WeakMap;var qi=/auto|scroll/;var Mi=/^tb|vertical/;var Ui=/msie|trident/i.test(Di.navigator&&Di.navigator.userAgent);var Li=function(e){return parseFloat(e||"0")};var Bi=function(e,t,n){if(e===void 0){e=0}if(t===void 0){t=0}if(n===void 0){n=false}return new Ei((n?t:e)||0,(n?e:t)||0)};var ji=Ti({devicePixelContentBoxSize:Bi(),borderBoxSize:Bi(),contentBoxSize:Bi(),contentRect:new Ai(0,0,0,0)});var Vi=function(e,t){if(t===void 0){t=false}if(Ri.has(e)&&!t){return Ri.get(e)}if(Fi(e)){Ri.set(e,ji);return ji}var n=getComputedStyle(e);var r=Ni(e)&&e.ownerSVGElement&&e.getBBox();var i=!Ui&&n.boxSizing==="border-box";var o=Mi.test(n.writingMode||"");var a=!r&&qi.test(n.overflowY||"");var s=!r&&qi.test(n.overflowX||"");var u=r?0:Li(n.paddingTop);var c=r?0:Li(n.paddingRight);var l=r?0:Li(n.paddingBottom);var f=r?0:Li(n.paddingLeft);var d=r?0:Li(n.borderTopWidth);var p=r?0:Li(n.borderRightWidth);var h=r?0:Li(n.borderBottomWidth);var v=r?0:Li(n.borderLeftWidth);var m=f+c;var g=u+l;var y=v+p;var b=d+h;var w=!s?0:e.offsetHeight-b-e.clientHeight;var x=!a?0:e.offsetWidth-y-e.clientWidth;var S=i?m+y:0;var I=i?g+b:0;var _=r?r.width:Li(n.width)-S-x;var C=r?r.height:Li(n.height)-I-w;var k=_+m+x+y;var T=C+g+w+b;var E=Ti({devicePixelContentBoxSize:Bi(Math.round(_*devicePixelRatio),Math.round(C*devicePixelRatio),o),borderBoxSize:Bi(k,T,o),contentBoxSize:Bi(_,C,o),contentRect:new Ai(f,u,_,C)});Ri.set(e,E);return E};var zi=function(e,t,n){var r=Vi(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ki.DEVICE_PIXEL_CONTENT_BOX:return a;case ki.BORDER_BOX:return i;default:return o}};var Qi=function(){function e(e){var t=Vi(e);this.target=e;this.contentRect=t.contentRect;this.borderBoxSize=Ti([t.borderBoxSize]);this.contentBoxSize=Ti([t.contentBoxSize]);this.devicePixelContentBoxSize=Ti([t.devicePixelContentBoxSize])}return e}();var Hi=function(e){if(Fi(e)){return Infinity}var t=0;var n=e.parentNode;while(n){t+=1;n=n.parentNode}return t};var Wi=function(){var e=Infinity;var t=[];xi.forEach((function n(r){if(r.activeTargets.length===0){return}var i=[];r.activeTargets.forEach((function t(n){var r=new Qi(n.target);var o=Hi(n.target);i.push(r);n.lastReportedSize=zi(n.target,n.observedBox);if(o<e){e=o}}));t.push((function e(){r.callback.call(r.observer,i,r.observer)}));r.activeTargets.splice(0,r.activeTargets.length)}));for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e};var Gi=function(e){xi.forEach((function t(n){n.activeTargets.splice(0,n.activeTargets.length);n.skippedTargets.splice(0,n.skippedTargets.length);n.observationTargets.forEach((function t(r){if(r.isActive()){if(Hi(r.target)>e){n.activeTargets.push(r)}else{n.skippedTargets.push(r)}}}))}))};var Ki=function(){var e=0;Gi(e);while(Si()){e=Wi();Gi(e)}if(Ii()){Ci()}return e>0};var Xi;var Yi=[];var Ji=function(){return Yi.splice(0).forEach((function(e){return e()}))};var $i=function(e){if(!Xi){var t=0;var n=document.createTextNode("");var r={characterData:true};new MutationObserver((function(){return Ji()})).observe(n,r);Xi=function(){n.textContent=""+(t?t--:t++)}}Yi.push(e);Xi()};var Zi=function(e){$i((function t(){requestAnimationFrame(e)}))};var eo=0;var to=function(){return!!eo};var no=250;var ro={attributes:true,characterData:true,childList:true,subtree:true};var io=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"];var oo=function(e){if(e===void 0){e=0}return Date.now()+e};var ao=false;var so=function(){function e(){var e=this;this.stopped=true;this.listener=function(){return e.schedule()}}e.prototype.run=function(e){var t=this;if(e===void 0){e=no}if(ao){return}ao=true;var n=oo(e);Zi((function(){var r=false;try{r=Ki()}finally{ao=false;e=n-oo();if(!to()){return}if(r){t.run(1e3)}else if(e>0){t.run(e)}else{t.start()}}}))};e.prototype.schedule=function(){this.stop();this.run()};e.prototype.observe=function(){var e=this;var t=function(){return e.observer&&e.observer.observe(document.body,ro)};document.body?t():Di.addEventListener("DOMContentLoaded",t)};e.prototype.start=function(){var e=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();io.forEach((function(t){return Di.addEventListener(t,e.listener,true)}))}};e.prototype.stop=function(){var e=this;if(!this.stopped){this.observer&&this.observer.disconnect();io.forEach((function(t){return Di.removeEventListener(t,e.listener,true)}));this.stopped=true}};return e}();var uo=new so;var co=function(e){!eo&&e>0&&uo.start();eo+=e;!eo&&uo.stop()};var lo=function(e){return!Ni(e)&&!Oi(e)&&getComputedStyle(e).display==="inline"};var fo=function(){function e(e,t){this.target=e;this.observedBox=t||ki.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}e.prototype.isActive=function(){var e=zi(this.target,this.observedBox,true);if(lo(this.target)){this.lastReportedSize=e}if(this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize){return true}return false};return e}();var po=function(){function e(e,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=e;this.callback=t}return e}();var ho=new WeakMap;var vo=function(e,t){for(var n=0;n<e.length;n+=1){if(e[n].target===t){return n}}return-1};var mo=function(){function e(){}e.connect=function(e,t){var n=new po(e,t);ho.set(e,n)};e.observe=function(e,t,n){var r=ho.get(e);var i=r.observationTargets.length===0;if(vo(r.observationTargets,t)<0){i&&xi.push(r);r.observationTargets.push(new fo(t,n&&n.box));co(1);uo.schedule()}};e.unobserve=function(e,t){var n=ho.get(e);var r=vo(n.observationTargets,t);var i=n.observationTargets.length===1;if(r>=0){i&&xi.splice(xi.indexOf(n),1);n.observationTargets.splice(r,1);co(-1)}};e.disconnect=function(e){var t=this;var n=ho.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)}));n.activeTargets.splice(0,n.activeTargets.length)};return e}();var go=function(){function e(e){if(arguments.length===0){throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.")}if(typeof e!=="function"){throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.")}mo.connect(this,e)}e.prototype.observe=function(e,t){if(arguments.length===0){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Pi(e)){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element")}mo.observe(this,e,t)};e.prototype.unobserve=function(e){if(arguments.length===0){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Pi(e)){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element")}mo.unobserve(this,e)};e.prototype.disconnect=function(){mo.disconnect(this)};e.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return e}();var yo=function(){function e(){var e=this;this._appRootUrl=new $((function(){return e.resolveRootUrl()}));this.getAppRootUrl=function(){return e._appRootUrl.value};this.getAppHostUrl=function(){return(""+window.location.origin+e.getAppRootUrl()).replace(/\/$/,"")}}e.prototype.loadConfigurationAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,Bt(this.getAppRootUrl()+"config.json").get().json()];case 1:e=t.sent();Ir.update({appConfiguration:ht.fromNullable(e)});return[2]}}))}))};e.prototype.resolveRootUrl=function(){var e=ht.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(ht.isNone(e)){throw Error("Unsupported host URL")}return e.value[0]+"/"};return e}();var bo=new yo;var wo="function";var xo="object";var So="undefined";var Io="prototype";var _o="hasOwnProperty";function Co(){if(typeof globalThis!==So&&globalThis){return globalThis}if(typeof self!==So&&self){return self}if(typeof window!==So&&window){return window}if(typeof global!==So&&global){return global}return null}function ko(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==xo&&n!==wo){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[Io]=e;return new r}function To(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[Io][_o].call(t,i)){e[i]=t[i]}}}return e}var Eo=function(e,t){Eo=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[_o](n)){e[n]=t[n]}}};return Eo(e,t)};function Ao(e,t){Eo(e,t);function n(){this.constructor=e}e[Io]=t===null?ko(t):(n[Io]=t[Io],new n)}var No=Co()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(No,To,Ao);if(!__assign){__assign=No.__assign}if(!__extends){__extends=No.__extends}var Fo={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var Po=So;var Oo=xo;var Do=Io;var Ro=wo;var qo="window";var Mo="document";var Uo="navigator";var Lo="history";var Bo="location";var jo="console";var Vo="performance";var zo="JSON";var Qo="crypto";var Ho="msCrypto";var Wo="ReactNative";var Go=Co;function Ko(e){var t=Go();if(t&&t[e]){return t[e]}if(e===qo&&Xo()){return window}return null}function Xo(){return Boolean(typeof window===Oo&&window)}function Yo(){if(Xo()){return window}return Ko(qo)}function Jo(){return Boolean(typeof document===Oo&&document)}function $o(){if(Jo()){return document}return Ko(Mo)}function Zo(){return Boolean(typeof navigator===Oo&&navigator)}function ea(){if(Zo()){return navigator}return Ko(Uo)}function ta(){return Boolean(typeof history===Oo&&history)}function na(){if(ta()){return history}return Ko(Lo)}function ra(){if(typeof location===Oo&&location){return location}return Ko(Bo)}function ia(){if(typeof console!==Po){return console}return Ko(jo)}function oa(){return Ko(Vo)}function aa(){return Boolean(typeof JSON===Oo&&JSON||Ko(zo)!==null)}function sa(){if(aa()){return JSON||Ko(zo)}return null}function ua(){return Ko(Qo)}function ca(){return Ko(Ho)}function la(){var e=ea();if(e&&e.product){return e.product===Wo}return false}var fa="on";var da="attachEvent";var pa="addEventListener";var ha="detachEvent";var va="removeEventListener";var ma=4294967296;var ga=4294967295;var ya=null;var ba=false;var wa=123456789;var xa=987654321;function Sa(e){if(e<0){e>>>=0}wa=123456789+e&ga;xa=987654321-e&ga;ba=true}function Ia(){Sa(Math.random()*ma^(new Date).getTime())}function _a(e,t){return typeof e===t}function Ca(e){return _a(e,So)||e===undefined}function ka(e){return Ca(e)||e===null}function Ta(e,t){return e&&Object[Io].hasOwnProperty.call(e,t)}function Ea(e){return _a(e,xo)}function Aa(e){return _a(e,wo)}function Na(e,t,n,r){if(r===void 0){r=false}var i=false;if(!ka(e)){try{if(!ka(e[pa])){e[pa](t,n,r);i=true}else if(!ka(e[da])){e[da](fa+t,n);i=true}}catch(e){}}return i}function Fa(e,t,n,r){if(r===void 0){r=false}if(!ka(e)){try{if(!ka(e[va])){e[va](t,n,r)}else if(!ka(e[ha])){e[ha](fa+t,n)}}catch(e){}}}function Pa(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Oa(e,t){if(e&&Ea(e)){for(var n in e){if(Ta(e,n)){t.call(e,n,e[n])}}}}var Da=function(){function e(){}e.isDate=function(e){return Object[Io].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[Io].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[Io].toString.call(e)==="[object Error]"};e.isString=function(e){return _a(e,"string")};e.isNumber=function(e){return _a(e,"number")};e.isBoolean=function(e){return _a(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ra,(function(e){var n=t()|0,r=e==="x"?n:n&3|8;return r.toString(16)}))};e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);if(t.length===1){t="0"+t}return t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}};e.arrForEach=function(e,t,n){var r=e.length;for(var i=0;i<r;i++){if(i in e){t.call(n||e,e[i],i,e)}}};e.arrIndexOf=function(e,t,n){var r=e.length;var i=n||0;for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++){if(o in e&&e[o]===t){return o}}return-1};e.arrMap=function(e,t,n){var r=e.length;var i=n||e;var o=new Array(r);for(var a=0;a<r;a++){if(a in e){o[a]=t.call(i,e[a],e)}}return o};e.arrReduce=function(e,t,n){var r=e.length;var i=0;var o;if(arguments.length>=3){o=arguments[2]}else{while(i<r&&!(i in e)){i++}o=e[i++]}while(i<r){if(i in e){o=t(o,e[i],i,e)}i++}return o};e.strTrim=function(t){if(!e.isString(t)){return t}return t.replace(/^\s+|\s+$/g,"")};e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!Aa(e)&&(!Ea(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(Ta(e,r)){n.push(r)}}if(t){var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var o=i.length;for(var a=0;a<o;a++){if(Ta(e,i[a])){n.push(i[a])}}}return n};e.objDefineAccessors=function(e,t,n,r){var i=Object["defineProperty"];if(i){try{var o={enumerable:true,configurable:true};if(n){o.get=n}if(r){o.set=r}i(e,t,o);return true}catch(e){}}return false};e.addEventHandler=function(e,t){var n=false;var r=Yo();if(r){n=Na(r,e,t);n=Na(r["body"],e,t)||n}var i=$o();if(i){n=qa.Attach(i,e,t)||n}return n};e.dateNow=function(){var e=Date;if(e.now){return e.now()}return(new e).getTime()};e.perfNow=function(){var t=oa();if(t&&t.now){return t.now()}return e.dateNow()};e.newId=function(t){if(t===void 0){t=22}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var r=e.random32()>>>0;var i=0;var o="";while(o.length<t){i++;o+=n.charAt(r&63);r>>>=6;if(i===5){r=(e.random32()<<2&4294967295|r&3)>>>0;i=0}}return o};e.isIE=function(){if(ya===null){var e=ea()||{};var t=(e.userAgent||"").toLowerCase();ya=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return ya};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/ga*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=ua()||ca();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&ga}else if(e.isIE()){if(!ba){Ia()}n=e.mwcRandom32()&ga}else{n=Math.floor(ma*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){Ia()}else{Sa(e)}};e.mwcRandom32=function(e){xa=36969*(xa&65535)+(xa>>16)&ga;wa=18e3*(wa&65535)+(wa>>16)&ga;var t=(xa<<16)+(wa&65535)>>>0&ga|0;if(!e){t>>>=0}return t};e.generateW3CId=function(){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var n="",r;for(var i=0;i<4;i++){r=e.random32();n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15]}var o=t[8+(e.random32()&3)|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)};e.isTypeof=_a;e.isUndefined=Ca;e.isNullOrUndefined=ka;e.hasOwnProperty=Ta;e.isFunction=Aa;e.isObject=Ea;e.objCreate=ko;return e}();var Ra=/[xy]/g;var qa=function(){function e(){}e.Attach=Na;e.AttachEvent=Na;e.Detach=Fa;e.DetachEvent=Fa;return e}();var Ma;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(Ma||(Ma={}));var Ua={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103};
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-ae4f5e0b.system.js"],(function(e){"use strict";var t,n,r,i,o,a,s,u,c,l,f,d,p,h,v,m,g,y,b,w,x,S,I,_,C,k;return{setters:[function(e){t=e.r;n=e.h;r=e.c;i=e.g;o=e.f;a=e.H;s=e.a;u=e.d;c=e.e;l=e.s},function(e){f=e.f;d=e.m;p=e.S;h=e.a;v=e.i;m=e.d;g=e.b;y=e.c;b=e.g;w=e.Q},function(e){x=e.g;S=e.O;I=e.j;_=e.k;C=e.a},function(e){k=e.A}],execute:function(){function T(){}function E(e,t,n){if(n===void 0){n=Number.POSITIVE_INFINITY}if(typeof t==="function"){return function(r){return r.pipe(E((function(n,r){return f(e(n,r)).pipe(d((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new A(e,n))}}var A=function(){function e(e,t){if(t===void 0){t=Number.POSITIVE_INFINITY}this.project=e;this.concurrent=t}e.prototype.call=function(e,t){return t.subscribe(new F(e,this.project,this.concurrent))};return e}();var F=function(e){__extends(t,e);function t(t,n,r){if(r===void 0){r=Number.POSITIVE_INFINITY}var i=e.call(this,t)||this;i.project=n;i.concurrent=r;i.hasCompleted=false;i.buffer=[];i.active=0;i.index=0;return i}t.prototype._next=function(e){if(this.active<this.concurrent){this._tryNext(e)}else{this.buffer.push(e)}};t.prototype._tryNext=function(e){var t;var n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++;this._innerSub(t)};t.prototype._innerSub=function(e){var t=new h(this);var n=this.destination;n.add(t);var r=v(e,t);if(r!==t){n.add(r)}};t.prototype._complete=function(){this.hasCompleted=true;if(this.active===0&&this.buffer.length===0){this.destination.complete()}this.unsubscribe()};t.prototype.notifyNext=function(e){this.destination.next(e)};t.prototype.notifyComplete=function(){var e=this.buffer;this.active--;if(e.length>0){this._next(e.shift())}else if(this.active===0&&this.hasCompleted){this.destination.complete()}};return t}(p);function N(e,t,n,r){if(I(n)){r=n;n=undefined}if(r){return N(e,t,n).pipe(d((function(e){return x(e)?r.apply(void 0,e):r(e)})))}return new S((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}P(e,t,i,r,n)}))}function P(e,t,n,r,i){var o;if(R(e)){var a=e;e.addEventListener(t,n,i);o=function(){return a.removeEventListener(t,n,i)}}else if(D(e)){var s=e;e.on(t,n);o=function(){return s.off(t,n)}}else if(O(e)){var u=e;e.addListener(t,n);o=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var c=0,l=e.length;c<l;c++){P(e[c],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(o)}function O(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function D(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function R(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function q(e,t){if(t===void 0){t=_}return function(n){return n.lift(new M(e,t))}}var M=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new U(e,this.dueTime,this.scheduler))};return e}();var U=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dueTime=n;i.scheduler=r;i.debouncedSubscription=null;i.lastValue=null;i.hasValue=false;return i}t.prototype._next=function(e){this.clearDebounce();this.lastValue=e;this.hasValue=true;this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))};t.prototype._complete=function(){this.debouncedNext();this.destination.complete()};t.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var e=this.lastValue;this.lastValue=null;this.hasValue=false;this.destination.next(e)}};t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;if(e!==null){this.remove(e);e.unsubscribe();this.debouncedSubscription=null}};return t}(C);function L(e){e.debouncedNext()}function B(e,t,n){return function r(i){return i.lift(new j(e,t,n))}}var j=function(){function e(e,t,n){this.nextOrObserver=e;this.error=t;this.complete=n}e.prototype.call=function(e,t){return t.subscribe(new V(e,this.nextOrObserver,this.error,this.complete))};return e}();var V=function(e){__extends(t,e);function t(t,n,r,i){var o=e.call(this,t)||this;o._tapNext=T;o._tapError=T;o._tapComplete=T;o._tapError=r||T;o._tapComplete=i||T;if(I(n)){o._context=o;o._tapNext=n}else if(n){o._context=n;o._tapNext=n.next||T;o._tapError=n.error||T;o._tapComplete=n.complete||T}return o}t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)};t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)};t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()};return t}(C);var z="3.37.55638";var Q=function(e){return e._tag==="Some"};var H=function(e){return e._tag==="None"};var W={_tag:"None"};var G=function(e){return{_tag:"Some",value:e}};function K(e){return e==null?W:G(e)}function X(e){return H(e)?undefined:e.value}var Y=function(e){return function(t){return H(t)?e():t.value}};var J=Y;var $=function(){function e(e){this.factory=e;this._value=W}Object.defineProperty(e.prototype,"value",{get:function(){if(Q(this._value)){return this._value.value}var e=this.factory();this._value=G(e);return e},enumerable:false,configurable:true});return e}();function Z(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function ee(e){k.injectProps(e,["history","location"])}var te="/";var ne="./";var re=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var ie=function(e,t){var n=[];var r=0;var i=0;var o="";var a=t&&t.delimiter||te;var s=t&&t.delimiters||ne;var u=false;var c;while((c=re.exec(e))!==null){var l=c[0];var f=c[1];var d=c.index;o+=e.slice(i,d);i=d+l.length;if(f){o+=f[1];u=true;continue}var p="";var h=e[i];var v=c[2];var m=c[3];var g=c[4];var y=c[5];if(!u&&o.length){var b=o.length-1;if(s.indexOf(o[b])>-1){p=o[b];o=o.slice(0,b)}}if(o){n.push(o);o="";u=false}var w=p!==""&&h!==undefined&&h!==p;var x=y==="+"||y==="*";var S=y==="?"||y==="*";var I=p||a;var _=m||g;n.push({name:v||r++,prefix:p,delimiter:I,optional:S,repeat:x,partial:w,pattern:_?ae(_):"[^"+oe(I)+"]+?"})}if(o||i<e.length){n.push(o+e.substr(i))}return n};var oe=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var ae=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var se=function(e){return e&&e.sensitive?"":"i"};var ue=function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n){for(var r=0;r<n.length;r++){t.push({name:r,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,pattern:null})}}return e};var ce=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(de(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",se(n))};var le=function(e,t,n){return fe(ie(e,n),t,n)};var fe=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var o=oe(n.delimiter||te);var a=n.delimiters||ne;var s=[].concat(n.endsWith||[]).map(oe).concat("$").join("|");var u="";var c=false;for(var l=0;l<e.length;l++){var f=e[l];if(typeof f==="string"){u+=oe(f);c=l===e.length-1&&a.indexOf(f[f.length-1])>-1}else{var d=oe(f.prefix||"");var p=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;if(t)t.push(f);if(f.optional){if(f.partial){u+=d+"("+p+")?"}else{u+="(?:"+d+"("+p+"))?"}}else{u+=d+"("+p+")"}}}if(i){if(!r)u+="(?:"+o+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+o+"(?="+s+"))?";if(!c)u+="(?="+o+"|"+s+")"}return new RegExp("^"+u,se(n))};var de=function(e,t,n){if(e instanceof RegExp){return ue(e,t)}if(Array.isArray(e)){return ce(e,t,n)}return le(e,t,n)};var pe=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var he=function(e,t){return pe(e,t)?e.substr(t.length):e};var ve=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var me=function(e){return e.charAt(0)==="/"?e:"/"+e};var ge=function(e){return e.charAt(0)==="/"?e.substr(1):e};var ye=function(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var o=t.indexOf("?");if(o!==-1){n=t.substr(o);t=t.substr(0,o)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r,query:{},key:""}};var be=function(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?"){i+=n.charAt(0)==="?"?n:"?"+n}if(r&&r!=="#"){i+=r.charAt(0)==="#"?r:"#"+r}return i};var we=function(e){if(!e){return{}}return(/^[?#]/.test(e)?e.slice(1):e).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];e[r]=i?decodeURIComponent(i.replace(/\+/g," ")):"";return e}),{})};var xe=function(e){return e.charAt(0)==="/"};var Se=function(e){return Math.random().toString(36).substr(2,e)};var Ie=function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()};var _e=function(e,t){if(t===void 0){t=""}var n=t&&t.split("/")||[];var r;var i=0;var o=e&&e.split("/")||[];var a=e&&xe(e);var s=t&&xe(t);var u=a||s;if(e&&xe(e)){n=o}else if(o.length){n.pop();n=n.concat(o)}if(!n.length){return"/"}if(n.length){var c=n[n.length-1];r=c==="."||c===".."||c===""}else{r=false}for(var l=n.length;l>=0;l--){var f=n[l];if(f==="."){Ie(n,l)}else if(f===".."){Ie(n,l);i++}else if(i){Ie(n,l);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!xe(n[0]))){n.unshift("")}var d=n.join("/");if(r&&d.substr(-1)!=="/"){d+="/"}return d};var Ce=function(e,t){if(e===t){return true}if(e==null||t==null){return false}if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return Ce(e,t[n])}))}var n=typeof e;var r=typeof t;if(n!==r){return false}if(n==="object"){var i=e.valueOf();var o=t.valueOf();if(i!==e||o!==t){return Ce(i,o)}var a=Object.keys(e);var s=Object.keys(t);if(a.length!==s.length){return false}return a.every((function(n){return Ce(e[n],t[n])}))}return false};var ke=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Ce(e.state,t.state)};var Te=function(e,t,n,r){var i;if(typeof e==="string"){i=ye(e);if(t!==undefined){i.state=t}}else{i=Object.assign({pathname:""},e);if(i.search&&i.search.charAt(0)!=="?"){i.search="?"+i.search}if(i.hash&&i.hash.charAt(0)!=="#"){i.hash="#"+i.hash}if(t!==undefined&&i.state===undefined){i.state=t}}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=_e(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=we(i.search||"");return i};var Ee=0;var Ae={};var Fe=1e4;var Ne=function(e,t){var n=""+t.end+t.strict;var r=Ae[n]||(Ae[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var o=[];var a=de(e,o,t);var s={re:a,keys:o};if(Ee<Fe){r[i]=s;Ee+=1}return s};var Pe=function(e,t){if(t===void 0){t={}}if(typeof t==="string"){t={path:t}}var n=t.path,r=n===void 0?"/":n,i=t.exact,o=i===void 0?false:i,a=t.strict,s=a===void 0?false:a;var u=Ne(r,{end:o,strict:s}),c=u.re,l=u.keys;var f=c.exec(e);if(!f){return null}var d=f[0],p=f.slice(1);var h=e===d;if(o&&!h){return null}return{path:r,url:r==="/"&&d===""?"/":d,isExact:h,params:l.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Oe=function(e,t){if(e==null&&t==null){return true}if(t==null){return false}return e&&t&&e.path===t.path&&e.url===t.url&&Ce(e.params,t.params)};var De=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";var Re=e("fl_button",function(){function e(e){t(this,e);this.isBlockElement=false;this.disabled=false;this.variant="primary"}e.prototype.render=function(){return n("button",{class:{"btn position-relative px-3 py-2":true,"is-primary":this.variant==="primary","is-secondary":this.variant==="secondary","btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},n("span",{class:"label"},n("slot",null)))};return e}());Re.style=De;var qe={compareTwoStrings:Me,findBestMatch:Ue};function Me(e,t){e=e.replace(/\s+/g,"");t=t.replace(/\s+/g,"");if(!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(e.length===1&&t.length===1)return 0;if(e.length<2||t.length<2)return 0;var n=new Map;for(var r=0;r<e.length-1;r++){var i=e.substring(r,r+2);var o=n.has(i)?n.get(i)+1:1;n.set(i,o)}var a=0;for(var r=0;r<t.length-1;r++){var i=t.substring(r,r+2);var o=n.has(i)?n.get(i):0;if(o>0){n.set(i,o-1);a++}}return 2*a/(e.length+t.length-2)}function Ue(e,t){if(!Le(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");var n=[];var r=0;for(var i=0;i<t.length;i++){var o=t[i];var a=Me(e,o);n.push({target:o,rating:a});if(a>n[r].rating){r=i}}var s=n[r];return{ratings:n,bestMatch:s,bestMatchIndex:r}}function Le(e,t){if(typeof e!=="string")return false;if(!Array.isArray(t))return false;if(!t.length)return false;if(t.find((function(e){return typeof e!=="string"})))return false;return true}var Be="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";var je=e("fl_dropdown",function(){function e(e){var i=this;t(this,e);this.valueChanged=r(this,"valueChanged",7);this.required=false;this.disabled=false;this.isMouseOver=false;this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.renderFilteredResults=function(){if(i.filteredOptions.length===0){return n("span",{class:"dropdown-item disabled"},"No items match your search")}return i.filteredOptions.map((function(e,t){return n("span",{class:{"dropdown-item text-wrap":true,selected:i.isOptionSelected(e),active:i.highlightedOptionIndex===t},onClick:function(t){i.toggleDropdown(false);i.selectOption(e)}},n("span",null,e.label))}))};this.filterResults=function(e){i.filteredOptions=i.sortOptionsByRelevancy(i._options.filter((function(t){return t.label.toLowerCase().includes(e.toLowerCase())})),e);i.highlightedOptionIndex=undefined};this.selectOption=function(e){i.selectedOption=e;i.inputValue=e.label;i.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=i.selectedOption)===null||t===void 0?void 0:t.label)===e.label};this.toggleDropdown=function(e){i.isDropdownVisible=e};this.resetInput=function(){var e,t;i.inputValue=(t=(e=i.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:"";i.filteredOptions=i._options};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var r="ArrowUp";var o="Escape";switch(e.key){case n:i.toggleDropdown(true);i.highlightNextItem();return true;case r:i.highlightPreviousItem();return true;case t:if(i.highlightedOptionIndex!==undefined){i.toggleDropdown(false);i.selectOption(i.filteredOptions[i.highlightedOptionIndex])}return true;case o:i.inputElement.blur();return true}return false};this.highlightPreviousItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.max(i.highlightedOptionIndex-1,0)};this.highlightNextItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.min(i.highlightedOptionIndex+1,i.filteredOptions.length-1)}}Object.defineProperty(e.prototype,"_options",{get:function(){if(this.options===undefined){throw new Error("Can't render <fl-dropdown /> component with no options")}return this.options},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){var e=this;var t,n;this.filteredOptions=this._options;this.selectedOption=this._options.find((function(t){return t.value===e.value}));this.inputValue=(n=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:""};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.onOptionsChanged=function(){this.filteredOptions=this._options};e.prototype.onValueChanged=function(){var e=this;var t,n;this.selectedOption=this._options.find((function(t){return t.value===e.value}));this.inputValue=(n=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&n!==void 0?n:""};e.prototype.render=function(){var e=this;var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:function(t){var n=t.target.value;e.inputValue=n;e.filterResults(n);e.toggleDropdown(true)},ref:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback":true,"d-none":this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":true,show:this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults()))]};e.prototype.sortOptionsByRelevancy=function(e,t){return e.map((function(e){return Object.assign(Object.assign({},e),{relevancyScore:qe.compareTwoStrings(e.label.toLowerCase(),t.toLowerCase())})})).sort((function(e,t){return t.relevancyScore-e.relevancyScore})).map((function(e){return{label:e.label,value:e.value}}))};Object.defineProperty(e,"watchers",{get:function(){return{options:["onOptionsChanged"],value:["onValueChanged"]}},enumerable:false,configurable:true});return e}());je.style=Be;var Ve="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";var ze=3;var Qe=e("fl_dropdown_async",function(){function e(e){var i=this;t(this,e);this.valueChanged=r(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=ze;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var t;return i.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=i.minSearchStringLength&&((t=i.selectedOption)===null||t===void 0?void 0:t.label)!==e};this.onBeginSearch=function(e){i.inputValue=e;i.searchState="in progress"};this.onCompleteSearch=function(e){i.filteredOptions=e;i.highlightedOptionIndex=undefined;i.searchState="done"};this.renderFilteredResults=function(){if(i.searchState==="pristine"){return n("span",{class:"dropdown-item disabled"},"Start typing to find the results")}if(i.searchState==="in progress"){return n("div",{class:"d-flex justify-content-end align-items-center pr-4"},n("span",{class:"dropdown-item disabled"},"Searching..."),n("i",{class:"dot-falling"}))}if(i.filteredOptions.length===0){return n("span",{class:"dropdown-item disabled"},"No items match your search")}return i.filteredOptions.map((function(e,t){return n("span",{class:{"dropdown-item text-wrap":true,selected:i.isOptionSelected(e),active:i.highlightedOptionIndex===t},onClick:function(t){i.toggleDropdown(false);i.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,t;i.inputValue=(t=(e=i.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:""};this.toggleDropdown=function(e){i.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var r="ArrowUp";var o="Escape";switch(e.key){case n:i.toggleDropdown(true);i.highlightNextItem();return true;case r:i.highlightPreviousItem();return true;case t:if(i.highlightedOptionIndex!==undefined){i.toggleDropdown(false);i.selectOption(i.filteredOptions[i.highlightedOptionIndex])}return true;case o:i.inputElement.blur();return true}return false};this.highlightPreviousItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.max(i.highlightedOptionIndex-1,0)};this.highlightNextItem=function(){if(i.filteredOptions.length===0){return}i.highlightedOptionIndex=i.highlightedOptionIndex===undefined?0:Math.min(i.highlightedOptionIndex+1,i.filteredOptions.length-1)};this.selectOption=function(e){i.selectedOption=e;i.inputValue=e.label;i.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=i.selectedOption)===null||t===void 0?void 0:t.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=N(this.inputElement,"keyup").pipe(q(500),d((function(t){return e.inputElement.value})),m(),g(this.shouldExecuteSearch),B(this.onBeginSearch),E(this._searchFunction),B(this.onCompleteSearch)).subscribe()};e.prototype.componentDidUnload=function(){this.searchResultsSubscription.unsubscribe()};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.highlightedOptionIndex=undefined;this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.render=function(){var e=this;var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback":true,"d-none":this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":true,show:this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults()))]};Object.defineProperty(e.prototype,"_searchFunction",{get:function(){if(this.searchFunction===undefined){throw new Error("Can't render <fl-dropdown-async/> component with no searchFunction")}return this.searchFunction},enumerable:false,configurable:true});return e}());Qe.style=Ve;var He='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}';var We=e("fl_loading_indicator",function(){function e(e){t(this,e);this.theme="default"}e.prototype.render=function(){return n("span",{class:{"dots-container d-inline-flex justify-content-center":true}},n("span",{class:{"dot-flashing":true,"theme-default":this.theme==="default","theme-dark":this.theme==="dark"}}))};return e}());We.style=He;var Ge="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";var Ke;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Ke||(Ke={}));var Xe=e("fl_promise_button",function(){function e(e){t(this,e);this.isBlockElement=false;this.isRounded=false;this.disabled=false;this.variant="primary";this.promiseFn=function(){return Promise.resolve()};this.state=Ke.Available}e.prototype.render=function(){return this.state===Ke.Pending?this.renderLoadingButton():this.renderActiveButton()};e.prototype.renderActiveButton=function(){var e=this;return n("fl-button",{disabled:this.disabled,onClick:function(){return e.clicked()},isBlockElement:this.isBlockElement,variant:this.variant},n("div",null,n("slot",null)))};e.prototype.renderLoadingButton=function(){var e=this;return n("fl-button",{disabled:true,onClick:function(){return e.clicked()},isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},n("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),n("div",{class:"invisible"},n("slot",null)))};e.prototype.clicked=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.state=Ke.Pending;t.label=1;case 1:t.trys.push([1,3,,4]);return[4,this.promiseFn()];case 2:t.sent();this.state=Ke.Available;return[3,4];case 3:e=t.sent();this.state=Ke.Error;throw e;case 4:return[2]}}))}))};return e}());Xe.style=Ge;function Ye(){Je({type:"appReady"})}function Je(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function $e(e,t){Je({type:"contentResized",height:e,width:t})}function Ze(e){Je({type:"pageNavigated",url:e})}function et(){Je({type:"complete"})}function tt(){Je({type:"submitSuccess"})}var nt={appReady:Ye,resize:$e,navigation:Ze,complete:et,submitSuccess:tt};var rt=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var it=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var ot=function(e){return!("isConnected"in e)||e.isConnected};var at=it((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(ot))}}),2e3);var st=function(e){var t=e.on;var n=new Map;if(typeof i==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=i();if(t){rt(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(o))}at(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(o)}));at(n)}))}};var ut=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var o=function(){r.dispose.forEach((function(e){return e()}));i()};var a=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var s=function(e,i){var o=n.get(e);if(t(i,o,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){s(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){ct(r[e],t)}};var l=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:u,get:a,set:s,on:c,onChange:l,use:f,dispose:o,reset:i}};var ct=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var lt=function(e,t){var n=ut(e,t);st(n);return n};function ft(e,t,n){return n={path:t,exports:{},require:function(e,t){return dt()}},e(n,n.exports),n.exports}function dt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var pt=ft((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function o(e){return function(t,n){return e(n,t)}}t.flip=o;function a(e,t,n,r,i,o,a,s,u){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return a(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(a(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return u(s(a(o(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=a;function s(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=s;function u(e){return e+1}t.increment=u;function c(e){return e-1}t.decrement=c;function l(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=l;function f(e){return function(t){return e.apply(void 0,t)}}t.tupled=f;function d(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=d;function p(e,t,n,r,i,o,a,s,u,c,l,f,d,p,h,v,m,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return a(o(i(r(n(t(e))))));case 8:return s(a(o(i(r(n(t(e)))))));case 9:return u(s(a(o(i(r(n(t(e))))))));case 10:return c(u(s(a(o(i(r(n(t(e)))))))));case 11:return l(c(u(s(a(o(i(r(n(t(e))))))))));case 12:return f(l(c(u(s(a(o(i(r(n(t(e)))))))))));case 13:return d(f(l(c(u(s(a(o(i(r(n(t(e))))))))))));case 14:return p(d(f(l(c(u(s(a(o(i(r(n(t(e)))))))))))));case 15:return h(p(d(f(l(c(u(s(a(o(i(r(n(t(e))))))))))))));case 16:return v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e)))))))))))))));case 17:return m(v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e))))))))))))))));case 18:return g(m(v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(p(d(f(l(c(u(s(a(o(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=l;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var ht=ft((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function o(e){return e==null?t.none:t.some(e)}t.fromNullable=o;function a(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=a;function s(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=s;function u(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=u;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function l(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=l;function f(e){return t.isNone(e)?null:e.value}t.toNullable=f;function d(e){return t.isNone(e)?undefined:e.value}t.toUndefined=d;var p=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=p;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return o(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:o(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return pt.pipe(e,t.map(n))};var g=function(e,n){return pt.pipe(e,t.ap(n))};var y=function(e,n){return pt.pipe(e,t.chain(n))};var b=function(e,n,r){return pt.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return pt.pipe(e,n(t))}};var x=function(e,n,r){return pt.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return pt.pipe(e,n(t))}};var I=function(e,n){return pt.pipe(e,t.alt(n))};var _=function(e,n){return pt.pipe(e,t.filter(n))};var C=function(e,n){return pt.pipe(e,t.filterMap(n))};var k=function(e,n){return pt.pipe(e,t.extend(n))};var T=function(e,n){return pt.pipe(e,t.partition(n))};var E=function(e,n){return pt.pipe(e,t.partitionMap(n))};var A=function(e){var n=t.wither(e);return function(e,t){return pt.pipe(e,n(t))}};var F=function(e){var n=t.wilt(e);return function(e,t){return pt.pipe(e,n(t))}};var N=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=N;var P=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=P;var O=function(e){return pt.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=O;var D=function(e){return pt.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=D;t.of=t.some;var R=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=R;var q=function(e){return t.chain((function(n){return pt.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=q;t.flatten=t.chain(pt.identity);var M=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=M;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var L=function(){return t.none};t.throwError=L;var B=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=B;t.duplicate=t.extend(pt.identity);var j=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=j;var V=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=V;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var Q={left:t.none,right:t.none};var H=function(e){var n=pt.pipe(e,t.map((function(e){return{left:u(e),right:c(e)}})));return t.isNone(n)?Q:n.value};t.separate=H;var W=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=W;var G=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=G;var K=function(e){return function(t){return{left:_(t,(function(t){return!e(t)})),right:_(t,e)}}};t.partition=K;var X=function(e){return pt.flow(t.map(e),t.separate)};t.partitionMap=X;var Y=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=Y;var J=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=J;var $=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=$;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:u(e),right:c(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function ie(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function oe(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=oe;function ae(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ae;function se(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=se;t.Functor={URI:t.URI,map:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:x};t.Alt={URI:t.URI,map:m,alt:I};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:I,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:k};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:_,filterMap:C,partition:T,partitionMap:E};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:_,filterMap:C,partition:T,partitionMap:E,wither:A,wilt:F};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,zero:t.zero,alt:I,extend:k,compact:t.compact,separate:t.separate,filter:_,filterMap:C,partition:T,partitionMap:E,wither:A,wilt:F,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function ce(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=ce;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var fe=function(e){return t.map(pt.bindTo_(e))};t.bindTo=fe;var de=function(e,n){return t.chain((function(r){return pt.pipe(n(r),t.map((function(t){return pt.bind_(r,e,t)})))}))};t.bind=de;var pe=function(e,n){return pt.flow(t.map((function(t){return function(n){return pt.bind_(t,e,n)}})),t.ap(n))};t.apS=pe;var he=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var o=e(i,n[i]);if(t.isNone(o)){return t.none}r.push(o.value)}return t.some(r)}};t.traverseArrayWithIndex=he;var ve=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=ve;t.sequenceArray=t.traverseArray(pt.identity)}));function vt(e){this.message=e}vt.prototype=new Error,vt.prototype.name="InvalidCharacterError";var mt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new vt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function gt(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(mt(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return mt(t)}}function yt(e){this.message=e}function bt(e,t){if("string"!=typeof e)throw new yt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(gt(e.split(".")[n]))}catch(e){throw new yt("Invalid token specified: "+e.message)}}yt.prototype=new Error,yt.prototype.name="InvalidTokenError";var wt=undefined&&undefined.__assign||function(){wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return wt.apply(this,arguments)};var xt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var St=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=wt({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?xt(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=St(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var It=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var _t={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,o=n.instance,a=o===void 0?false:o;var s=[];for(var u=2;u<arguments.length;u++){s[u-2]=arguments[u]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return a&&c?new(c.bind.apply(c,It([void 0],s))):c}};var Ct=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);Tt.callbacks.delete(t);if(Tt.callbacks.size<1){Tt.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var kt=function(e,t){if(!Tt.observer&&e&&t){Tt.observer=new t((function(t){Tt.callbacks.forEach((function(n,r){Ct(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Tt.observer};var Tt={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=_t.polyfill("performance",{doThrow:false});var r=_t.polyfill("PerformanceObserver",{doThrow:false});if(!kt(n,r))return;if(!Ct(n,e,t,n)){if(Tt.callbacks.size<1)Tt.observer.observe({entryTypes:["resource","measure"]});Tt.callbacks.set(e,t)}}};var Et=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var At=function(){function e(e){this.error=e}return e}();var Ft=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,o=e._options;var a=new Map(n);var s=St(_t.defaults,o);var u=_t.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var l=Et(i)(_t.polyfill("fetch"))(t,s);var f=l.catch((function(e){throw new At(e)})).then((function(e){c.clear();if(!e.ok){return e[_t.errorType||"text"]().then((function(t){var n=new Error(t);n[_t.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var d=function(t){return t.catch((function(t){c.clear();var n=t instanceof At?t.error:t;if(t instanceof At&&a.has("__fromFetch"))return a.get("__fromFetch")(n,e);else if(a.has(n.status))return a.get(n.status)(n,e);else if(a.has(n.name))return a.get(n.name)(n,e);else throw n}))};var p=function(e){return function(t){return e?d(f.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):d(f.then((function(e){return t?t(e):e})))}};var h={res:p(null),json:p("json"),blob:p("blob"),formData:p("formData"),arrayBuffer:p("arrayBuffer"),text:p("text"),perfs:function(e){l.then((function(t){return Tt.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=u}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[u,h]},error:function(e,t){a.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var Nt=undefined&&undefined.__assign||function(){Nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return Nt.apply(this,arguments)};var Pt=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};var Ot="application/json";var Dt="Content-Type";var Rt=function(){function e(e,t,n,r,i,o){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(o===void 0){o=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=o}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,o=n.options,a=o===void 0?this._options:o,s=n.catchers,u=s===void 0?this._catchers:s,c=n.resolvers,l=c===void 0?this._resolvers:c,f=n.middlewares,d=f===void 0?this._middlewares:f,p=n.deferredChain,h=p===void 0?this._deferredChain:p;return new e(i,Nt({},a),new Map(u),Pt(l),Pt(d),Pt(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}_t.defaults=t?St(_t.defaults,e):e;return this};e.prototype.errorType=function(e){_t.errorType=e;return this};e.prototype.polyfills=function(e){_t.polyfills=Nt(Nt({},_t.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?St(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:qt(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:St(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[Dt]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:Nt(Nt({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:Pt(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:Pt(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:Pt(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==Dt.toLowerCase()||n.startsWith(Ot)})))?this.json(n):this.body(n);i=i.options(Nt(Nt({},t),{method:e}));var o=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return Ft(o)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:Nt(Nt({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===Dt.toLowerCase()&&n.startsWith(Ot)})))===null||t===void 0?void 0:t[1];return this.content(n||Ot).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(Mt(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:Lt(e)).content("application/x-www-form-urlencoded")};return e}();var qt=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=_t.polyfill("URLSearchParams",{instance:true});for(var o in t){if(t[o]instanceof Array){for(var a=0,s=t[o];a<s.length;a++){var u=s[a];i.append(o,u)}}else{i.append(o,t[o])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function Mt(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=_t.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],o=e[1];var a=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);a=a?a+"["+i+"]":i;if(o instanceof Array){for(var s=0,u=o;s<u.length;s++){var c=u[s];n.append(a+"[]",c)}}else if(t&&typeof o==="object"&&(!(t instanceof Array)||!t.includes(i))){if(o!==null){Mt(o,t,n,Pt(r,[i]))}}else{n.append(a,o)}}));return n}function Ut(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function Lt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return Ut(t,e)})).join("&")}return Ut(t,n)})).join("&")}var Bt=Rt.factory;Bt["default"]=Rt.factory;function jt(){var e=Wt.jwt;var t=Wt.profileId;var n=Wt.accountIdOrDefault;var r=Wt.partnerIdOrDefault;return Bt(Wt.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var Vt=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/australian-funds?"+this.toQueryString(e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,jt().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()]}))}))};e.prototype.toQueryString=function(e){switch(e.type){case"partialMatch":return"search="+e.searchString+"&maxRecordCount="+e.maxRecordCount;case"usiMatch":return"usi="+e.usi}};return e}();var zt=new Vt;var Qt={apiBaseUrl:ht.none,appBaseUrl:ht.none,profileId:ht.none,jwt:ht.none,superBuyer:ht.none,promotedFunds:ht.none,accountConfiguration:ht.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false};var Ht=function(){function e(){var e=this;var t=lt(Qt),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=pt.pipe(t,ht.chain((function(e){return ht.fromNullable(bt(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(ht.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(ht.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(ht.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(ht.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(ht.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){return pt.pipe(this._state.accountConfiguration,ht.map((function(e){return ht.fromNullable(e.defaultFundUsi)})),ht.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return pt.pipe(this._state.accountConfiguration,ht.map((function(e){return e.accountId})),ht.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return pt.pipe(this._state.superBuyer,ht.map((function(e){return e.partnerId})),ht.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(ht.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"showSmsfNotSupported",{get:function(){return pt.pipe(this._state.superBuyer,ht.map((function(e){return e.showSmsfNotSupported})),ht.getOrElse((function(){return false})))},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,zt.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=ht.fromNullable(e.accountConfiguration);this._state.superBuyer=ht.fromNullable(e.superBuyer);this._state.promotedFunds=ht.fromNullable(e.promotedFunds);return[2]}}))}))};return e}();var Wt=new Ht;var Gt=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);nt.navigation(n);e.push(n)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=Wt.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Kt=new Gt;var Xt;(function(e){e["ChoicePage"]="/";e["SlateJoin"]="/slate/join/";e["SlateStandardChoice"]="/slate/standard-choice/";e["QSuperOptIn"]="/qsuper/insurance/opt-in/";e["QSuperQuestion1"]="/qsuper/insurance/question1/";e["QSuperQuestion2"]="/qsuper/insurance/question2/";e["QSuperQuestion3"]="/qsuper/insurance/question3/";e["QSuperQuestion4"]="/qsuper/insurance/question4/";e["QSuperQuestion5"]="/qsuper/insurance/question5/";e["QSuperQuestion6"]="/qsuper/insurance/question6/";e["QSuperQuestion7"]="/qsuper/insurance/question7/";e["QSuperQuestion8"]="/qsuper/insurance/question8/";e["QSuperConsent"]="/qsuper/consent/";e["QSuperJoin"]="/qsuper/join/";e["PromotedFundJoin"]="/promoted-fund/join";e["PromotedFundStandardChoice"]="/promoted-fund/standard-choice/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["Success"]="/success/"})(Xt||(Xt={}));var Yt=[n("stencil-route",{exact:true,url:Xt.ChoicePage,component:"sss-super-choice-page"}),n("stencil-route",{url:Xt.SlateJoin,component:"sss-slate-join-page"}),n("stencil-route",{url:Xt.SlateStandardChoice,component:"sss-slate-standard-choice-page"}),n("stencil-route",{url:Xt.QSuperOptIn,component:"sss-qsuper-insurance-opt-in"}),n("stencil-route",{url:Xt.PromotedFundJoin,component:"sss-promoted-fund-join-page"}),n("stencil-route",{url:Xt.PromotedFundStandardChoice,component:"sss-promoted-fund-standard-choice-page"}),n("stencil-route",{url:Xt.QSuperQuestion1,component:"sss-qsuper-question-1"}),n("stencil-route",{url:Xt.QSuperQuestion2,component:"sss-qsuper-question-2"}),n("stencil-route",{url:Xt.QSuperQuestion3,component:"sss-qsuper-question-3"}),n("stencil-route",{url:Xt.QSuperQuestion4,component:"sss-qsuper-question-4"}),n("stencil-route",{url:Xt.QSuperQuestion5,component:"sss-qsuper-question-5"}),n("stencil-route",{url:Xt.QSuperQuestion6,component:"sss-qsuper-question-6"}),n("stencil-route",{url:Xt.QSuperQuestion7,component:"sss-qsuper-question-7"}),n("stencil-route",{url:Xt.QSuperQuestion8,component:"sss-qsuper-question-8"}),n("stencil-route",{url:Xt.QSuperConsent,component:"sss-qsuper-consent"}),n("stencil-route",{url:Xt.QSuperJoin,component:"sss-qsuper-join"}),n("stencil-route",{url:Xt.MyOwnFund,component:"sss-my-own-fund"}),n("stencil-route",{url:Xt.SelfManagedFund,component:"sss-self-managed-fund"}),n("stencil-route",{url:Xt.DefaultFund,component:"sss-default-fund"}),n("stencil-route",{url:Xt.Success,component:"sss-success"})];var Jt;(function(e){e["MyOwnFund"]="My Own Fund";e["DefaultFund"]="Default Fund";e["SelfManagedFund"]="Self Managed Fund"})(Jt||(Jt={}));var $t={continueAllowed:false,nextRoute:"/",myOwnFundForm:{fundUsi:W,memberNumber:W,standardChoiceFormSignature:W},defaultFundForm:{standardChoiceFormSignature:""},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",standardChoiceFormSignature:""},currentCustomFundType:Jt.MyOwnFund,customFunds:[{label:Jt.MyOwnFund,value:Xt.MyOwnFund},{label:Jt.DefaultFund,value:Xt.DefaultFund},{label:Jt.SelfManagedFund,value:Xt.SelfManagedFund}]};var Zt=lt($t),en=Zt.state,tn=Zt.reset;var nn=en.customFunds;var rn=e("sss_custom_fund",function(){function e(e){t(this,e);this.currentCustomFund=nn[0];this.fundOptionsList=nn}e.prototype.componentWillLoad=function(){var e="";if(window.location.pathname.includes(Xt.MyOwnFund))e=Xt.MyOwnFund;if(window.location.pathname.includes(Xt.DefaultFund))e=Xt.DefaultFund;if(window.location.pathname.includes(Xt.SelfManagedFund))e=Xt.SelfManagedFund;this.currentCustomFund=nn.find((function(t){return t.value===e}))||nn[0];Kt.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;return n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("p",{class:"font-weight-bold text-center"},"Choose your Super"),n("div",{class:"mb-4"},n("select",{class:"form-control",required:true,onChange:function(t){e.handleChange(t.target.value.trim())}},this.fundOptionsList.map((function(t){return n("option",{value:t.value,selected:e.currentCustomFund.value===t.value},t.label)})))),n("slot",null))))};e.prototype.handleChange=function(e){var t=nn.find((function(t){return t.value===e}))||{value:Xt.MyOwnFund};Kt.navigateInternally(this.history,t.value)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(rn);var on=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return zt.getAustralianFundsAsync({type:"partialMatch",searchString:e,maxRecordCount:t})};e.prototype.getFundByUsiAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,zt.getAustralianFundsAsync({type:"usiMatch",usi:e})];case 1:t=n.sent();if(t.length===1){return[2,ht.some(t[0])]}return[2,ht.none]}}))}))};return e}();var an=new on;var sn=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("analytics-events").post(e).res()]}))}))};return e}();var un=function(){function e(){this.eventTrackingApi=sn.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackFinancialProductViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductViewed:e})]}))}))};e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackFinancialProductAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductAccepted:e})]}))}))};e.prototype.TrackFinancialProductRejectedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductRejected:e})]}))}))};e.prototype.TrackSuperFundPrivacyConfirmationAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundPanelViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPanelViewed:e})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();var cn={items:[]};var ln=function(){function e(){var e=lt(cn).state;this._state=e}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});e.prototype.closeCurrent=function(){var e=xt(this._state.items);e.shift();this._state.items=e};e.prototype.clearNotifications=function(){this._state.items=[]};e.prototype.showErrorNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"danger")};e.prototype.showInfoNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"info")};e.prototype.showWarningNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"warning")};e.prototype.showSuccessNotification=function(e,t){this.pushNotification(e,t!==null&&t!==void 0?t:0,"success")};e.prototype.pushNotification=function(e,t,n){var r=xt(this._state.items);r.push({details:e,type:n,priority:t});this._state.items=r.sort((function(e,t){return t.priority-e.priority}))};return e}();var fn=new ln;var dn=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};return e}();var pn=new dn;var hn=e("sss_default_fund",function(){function e(e){t(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=un.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=Wt.defaultFundUsi;if(ht.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,an.getFundByUsiAsync(e.value)];case 1:t=n.sent();if(ht.isNone(t)){this.isInvalidDefaultFund=true;fn.showErrorNotification({title:"Something is not right",description:"Couldn't find information about the configured default fund (USI "+e.value+")"});return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:this.defaultFund.usi,fundName:this.defaultFund.productName,promotedFundsShown:Wt.promotedFunds})};e.prototype.render=function(){var e=this;var t=function(){return n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"No Default Fund"),n("p",{class:"mb-4 small"},"It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund."))};var r=function(e){return[n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Default Fund"),n("p",{class:"mb-4 small"},"Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),n("p",{class:"font-weight-bold mt-3"},"Default Fund Name"),n("p",null,e.defaultFundName)),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.defaultFundForm=Object.assign(Object.assign({},en.defaultFundForm),e.detail)}})]};return n(a,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},this.isDefaultFundExists?n(r,{defaultFundName:this.defaultFundProductName}):n(t,null)),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Kt.navigateInternally(e.history,Xt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},this.isDefaultFundExists&&n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,disabled:this.isInvalidDefaultFund,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(this.isInvalidDefaultFund){return[2]}this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,pn.submitDefaultFundChoiceAsync(en.defaultFundForm)];case 1:e.sent();Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(this.history,Xt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var vn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.ss-footer-logo{max-width:7rem}";var mn=e("sss_footer_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"container mb-sm-0"},n("div",{class:"row justify-content-center pt-3 mt-3 mb-3 border-top"},n("div",{class:"text-decoration-none"},n("p",{class:"mt-3 small text-center mb-1 text-muted"},"Powered by Flare HR"))),n("div",{class:"row justify-content-center pb-sm-0 px-3 px-sm-0 text-center"},n("p",{class:"text-muted small"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare HR do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare HR do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare HR do not express any opinion or make any recommendation about any of the advertised funds.")),n("div",{class:"row justify-content-end my-1 px-3 px-sm-0"},this.appVersionBadge()))};e.prototype.appVersionBadge=function(){return n("small",{style:{opacity:"0.5"},class:"text-muted"},"Powered by Flare, v",z)};return e}());mn.style=vn;var gn=e("sss_loading_page",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1"},n("h5",null,"Loading your superannuation step"),n("fl-loading-indicator",null))};return e}());var yn=e("sss_my_own_fund",function(){function e(e){t(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.eventTrackingService=un.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Wt.promotedFunds})};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-my-own-fund-inputs",{myOwnFundForm:en.myOwnFundForm,onFormChanged:function(t){en.myOwnFundForm=Object.assign(Object.assign({},en.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.myOwnFundForm=Object.assign(Object.assign({},en.myOwnFundForm),{standardChoiceFormSignature:K(e.detail.standardChoiceFormSignature)})}})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),this.isNotAllInformationProvidedMessageVisible&&n("div",{class:"mt-4 alert alert-danger",role:"alert"},"All fields are required to complete submission. Make sure you have selected a fund."),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Kt.navigateInternally(e.history,Xt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:this.formState="validated";if(!this.formElement.checkValidity()){return[2]}e=Q(en.myOwnFundForm.fundUsi)&&Q(en.myOwnFundForm.memberNumber)&&Q(en.myOwnFundForm.standardChoiceFormSignature);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}t={fundUsi:this.getOrError(en.myOwnFundForm.fundUsi),memberNumber:this.getOrError(en.myOwnFundForm.memberNumber),standardChoiceFormSignature:this.getOrError(en.myOwnFundForm.standardChoiceFormSignature)};return[4,pn.submitCustomFundChoiceAsync(t)];case 1:n.sent();Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(this.history,Xt.Success);return[2]}}))}))};e.prototype.getOrError=function(e){return pt.pipe(e,J((function(){throw new Error("Option value is none.")})))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(yn);var bn=e("sss_my_own_fund_inputs",function(){function e(e){var n=this;t(this,e);this.formChanged=r(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=10;this.searchFundsAsync=function(e){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,an.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=n.sent();return[2,t.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}))]}}))}))}}e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:""},n("label",{class:"mb-2 font-weight-bold"},"Superannuation Fund Name"),n("fl-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:true,requiredValidationMessage:"Select a fund",placeholder:"Search by name or USI (type at least "+this.MIN_SEARCH_STRING_LENGTH+" characters)",value:this.selectedOption,onValueChanged:function(t){e.selectedOption=t.detail;e.updateFundUsi(t.detail.value.toString())}}),n("div",{class:"invalid-feedback"},"Select a fund"),Q(this.myOwnFundForm.fundUsi)&&n("div",null,n("label",{class:"mb-2 mt-3 font-weight-bold"},"Superannuation Fund USI"),n("p",{class:"mb-0"},this.myOwnFundForm.fundUsi.value),n("p",{class:"small mt-1"},"Please ensure this is the correct fund USI as some funds have similar names"))),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Member Number"),n("input",{placeholder:"Enter your member number",type:"text",class:"form-control",required:true,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:X(en.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid member number (only numbers and / or letters)")))};e.prototype.updateFundUsi=function(e){this.formChanged.emit({fundUsi:G(e)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:G(e)})};return e}());var wn=e("sss_notifications_section",function(){function e(e){t(this,e)}e.prototype.disconnectedCallback=function(){fn.clearNotifications()};e.prototype.render=function(){var e=fn.state.items;if(e.length<=0)return n(a,null);var t=e[0];var r="alert alert-"+t.type;return n("div",{class:r,role:"alert"},n("div",{class:"d-flex"},n("p",{class:"mb-0 flex-grow-1"},n("strong",null,e[0].details.title)),n("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},n("span",{"aria-hidden":"true"},"×"))),n("p",{class:"mb-0 mt-1"},e[0].details.description))};e.prototype.handleClose=function(){fn.closeCurrent()};return e}());var xn={fundId:"",memberNumber:"",usi:"",standardChoiceFormSignature:""};var Sn=lt(xn).state;var In=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin=="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.environmentDiscriminator=function(){return e.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0]};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+".flarehr.com/promoted-fund-join/embed/v1.0/web"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app";var r=n+"/promoted-fund-redirect.html";var i=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Wt.partnerIdOrDefault,accountId:Wt.accountIdOrDefault,fundId:Sn.fundId,successRedirectUrl:r,cancelRedirectUrl:r,authToken:Wt.jwt});var o=function(n){var r=n.data;if(!r){return}if(r.sender==="promoted-fund-redirect"){window.removeEventListener("message",o);switch(r.type){case"success":if(r.memberNumber){Sn.memberNumber=r.memberNumber;Sn.usi=r.usi;Kt.navigateInternally(t,Xt.PromotedFundStandardChoice);break}default:Kt.navigateInternally(t,Xt.ChoicePage);break}return}if(r.sender==="promoted-fund-join"){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);nt.navigation(window.location.href);break}}};window.addEventListener("message",o);var a=e.contentDocument;a.open();var s=a.createElement("form");s.method="POST";s.target="_self";s.action=this.promotedFundJoinAppUrl();var u;for(u in i){var c=i[u];if(c!==undefined){var l=document.createElement("input");l.type="hidden";l.name=u;l.value=c;s.append(l)}}a.appendChild(s);a.close();s.submit()};e.prototype.getMemberData=function(){var e,t;var n=Wt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var _n=new In;var Cn=e("sss_promoted_fund_join_page",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){_n.build(this.iframeElement,this.history)};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var kn=function(){function e(){}e.prototype.submitChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/promoted-fund").post(e).badRequest((function(){throw new Error("Failed to process Promoted Fund choice request")})).text()]}))}))};return e}();var Tn=new kn;var En=e("sss_promoted_fund_standard_choice_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("div",null,n("div",null,"You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){Sn.standardChoiceFormSignature=e.detail.standardChoiceFormSignature}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue"))))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Tn.submitChoiceAsync(Object.assign(Object.assign({},Sn),{shownFunds:Wt.promotedFunds}))];case 1:e.sent();Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(this.history,Xt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var An={Id:"qsuper",Name:"QSuper",InsuranceName:"QSuper Insurance",Usi:"60905115063001",Abn:"32 125 059 006",PdsUrl:"https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements",PdsPdf:"https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf",MinAge:14,MinInsuranceAge:16,MaxAge:70};var Fn={Id:"slate",Name:"Slate Super",PdsUrl:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",Usi:"32367272075001",DiversaAbn:"49 006 421 638"};var Nn={Id:"australian-retirement-trust",Name:"Australian Retirement Trust",PdsUrl:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",Abn:"60 905 115 063"};var Pn={Id:"aware",Name:"Aware Super",PdsUrl:"https://aware.com.au/member/forms-and-resources/pds",Abn:"53 226 460 365"};var On=[{dtoPropName:"qSuper",id:An.Id},{dtoPropName:"slate",id:Fn.Id},{dtoPropName:"australianRetirementTrust",id:Nn.Id},{dtoPropName:"aware",id:Pn.Id}];var Dn="";var Rn=e("sss_qsuper_confirm_header",function(){function e(e){t(this,e);this.eventTrackingService=un.Instance}e.prototype.render=function(){var e=this;var t="https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds1.pdf";return n("div",{class:"d-flex align-items-center justify-content-center"},n("p",{class:"confirm-title font-weight-bold text-center"},"You are now applying for a"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(t)},"QSuper Accumulation Account"),". Read the"," ",n("a",{target:"_blank",onClick:function(){return e.pdsViewedAsync()},href:Kt.toExternalUrl(An.PdsPdf)},"PDS")," ","here."))};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:An.Usi,fundName:An.Name,pageName:"Insurance Opt In"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());Rn.style=Dn;var qn;(function(e){e[e["InsuranceConfirm"]=0]="InsuranceConfirm";e[e["InsuranceQuestions"]=1]="InsuranceQuestions";e[e["AccumulationAccount"]=2]="AccumulationAccount";e[e["ConfirmSelection"]=3]="ConfirmSelection"})(qn||(qn={}));var Mn;(function(e){e[e["question1"]=0]="question1";e[e["question2"]=1]="question2";e[e["question3"]=2]="question3";e[e["question4"]=3]="question4";e[e["question5"]=4]="question5";e[e["question6"]=5]="question6";e[e["question7"]=6]="question7";e[e["question8"]=7]="question8"})(Mn||(Mn={}));var Un={currentQSuperInsuranceQuestion:Mn.question1,currentQSuperFormPage:qn.InsuranceConfirm,qSuperFormValid:false,nextRoute:"/",continueAllowed:false,qSuperOptInPageCheckbox:false,qSuperJoinPageCheckbox:false,qSuperInsuranceQuestions:{question1:{answered:false},question2:{answered:false},question3:{answered:false},question4:{answered:false},question5:{answered:false},question6:{answered:false},question7:{answered:false},question8:{answered:false}},qSuperQuestionnaire:{reviewedApplication:false,acceptedDeclaration:false,readDutyOfDisclosure:false,insuranceChosen:false},standardChoiceFormSignature:""};var Ln=lt(Un),Bn=Ln.state,jn=Ln.reset;var Vn=jn;function zn(){var e;var t,n,r,i;var o=Wt.appBaseUrl;var a=window.location.pathname.split(o)[1];var s=(e={},e[Xt.QSuperOptIn]=Xt.QSuperQuestion1,e[Xt.QSuperQuestion1]=Bn.qSuperInsuranceQuestions.question1.answered?((t=Bn.qSuperQuestionnaire.questions)===null||t===void 0?void 0:t.question1)===true?Xt.QSuperQuestion4:Xt.QSuperQuestion2:Xt.QSuperQuestion1,e[Xt.QSuperQuestion2]=Bn.qSuperInsuranceQuestions.question2.answered?((n=Bn.qSuperQuestionnaire.questions)===null||n===void 0?void 0:n.question2)===true?Xt.QSuperQuestion4:Xt.QSuperQuestion3:Xt.QSuperQuestion2,e[Xt.QSuperQuestion3]=Bn.qSuperInsuranceQuestions.question3.answered?Xt.QSuperQuestion4:Xt.QSuperQuestion3,e[Xt.QSuperQuestion4]=Bn.qSuperInsuranceQuestions.question4.answered?Xt.QSuperQuestion5:Xt.QSuperQuestion4,e[Xt.QSuperQuestion5]=Bn.qSuperInsuranceQuestions.question5.answered?Xt.QSuperQuestion6:Xt.QSuperQuestion5,e[Xt.QSuperQuestion6]=Bn.qSuperInsuranceQuestions.question6.answered?Xt.QSuperQuestion7:Xt.QSuperQuestion6,e[Xt.QSuperQuestion7]=Bn.qSuperInsuranceQuestions.question7.answered?Xt.QSuperQuestion8:Xt.QSuperQuestion7,e[Xt.QSuperQuestion8]=Bn.qSuperInsuranceQuestions.question8.answered?Xt.QSuperConsent:Xt.QSuperQuestion8,e[Xt.QSuperConsent]=Bn.qSuperQuestionnaire.readDutyOfDisclosure&&Bn.qSuperQuestionnaire.reviewedApplication?Xt.QSuperJoin:Xt.QSuperConsent,e[Xt.QSuperJoin]=Bn.qSuperJoinPageCheckbox?Xt.Success:Xt.QSuperJoin,e);var u=Bn.qSuperInsuranceQuestions.question1.answered&&Bn.qSuperInsuranceQuestions.question2.answered&&Bn.qSuperInsuranceQuestions.question3.answered&&Bn.qSuperInsuranceQuestions.question4.answered&&Bn.qSuperInsuranceQuestions.question5.answered;if(a===Xt.QSuperQuestion5){if(u&&(((r=Bn.qSuperQuestionnaire.questions)===null||r===void 0?void 0:r.question3)===true||((i=Bn.qSuperQuestionnaire.questions)===null||i===void 0?void 0:i.question5)===true)){return Xt.QSuperQuestion6}return Xt.QSuperConsent}if(a===Xt.QSuperOptIn){if(Bn.qSuperOptInPageCheckbox){if(Bn.qSuperQuestionnaire.insuranceChosen){return Xt.QSuperQuestion1}else{return Xt.QSuperConsent}}else{return a}}return s[a]}var Qn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";var Hn=e("sss_qsuper_consent",function(){function e(e){t(this,e);this.eventTrackingService=un.Instance}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){window.scroll(0,0);Bn.currentQSuperFormPage=qn.AccumulationAccount;return[2]}))}))};e.prototype.render=function(){var e=this;return n("sss-qsuper-layout",null,n("div",{class:"d-flex align-items-center justify-content-center"},n("p",{class:"confirm-title font-weight-bold text-center"},"Your QSuper Accumulation Account")),n("div",{class:"p-3 d-flex mt-4 checkbox-container"},n("p",null,"Just finally, we need you to confirm that you understand the declarations below and the product you've applied for by ticking the box below.",n("br",null),n("br",null),"This form and all products are issued by the QSuper Board (ABN 32 125 059 006 AFSL 489650) as trustee for QSuper (ABN 60 905 115 063).",n("br",null),n("br",null),"I have read and agree to the terms and conditions in the QSuper"," ",n("a",{target:"_blank",onClick:function(){return e.pdsViewedAsync()},href:Kt.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf")},"Product Disclosure Statement for Accumulation and Income Accounts"),", QSuper's"," ",n("a",{target:"_blank",href:Kt.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/fs15.pdf")},"Your Privacy factsheet"),", and the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/qiib09.pdf")},"Financial Services Guide"),".",n("br",null),n("br",null),"I understand that any insurance cover I might have as a result of this application, commences when the first contribution is received into my account. Once I am a member I can cancel, or, subject to eligibility conditions, vary, my cover at any time. Premiums are deducted in accordance with the PDS.",n("br",null),n("br",null),"I also agree to be bound by the Trust Deed and the governing rules of QSuper in relation to the operation of my Accumulation account.",n("br",null),n("br",null),"I confirm that the information I have given is true and correct.",n("br",null),n("br",null),"I confirm that I am the person identified as the applicant in this form.",n("br",null),n("br",null),"I consent to the QSuper Board paying Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, a fee of $300 on receipt of the first contribution into my account, for the provision of technology services.",n("br",null),n("br",null),"I understand that I will be placed into the default investment option QSuper Lifetime.",n("br",null),n("br",null),"I understand that my Tax File Number will be provided to QSuper. NB - if you have your Tax File Number available, this will help speed up the processing of this application and we may be able to Find your Super.",n("br",null),n("br",null),"I have read and accept the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl("https://qsuper.qld.gov.au/misc/tfn")},"Privacy and Contact Information Statement"))),n("div",null,n("label",{class:"d-flex mt-3 p-3 checkbox-container",htmlFor:"ackAllCheckBox"},n("div",{class:"w-auto px-2 fl-checkbox-container"},n("input",{id:"ackAllCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:function(){return e.handleCheckboxToggle()}})),n("div",{class:"pl-3"},n("p",{class:"confirm-item-text mb-0 mt-1"},"I acknowledge all of the above. ",n("i",null,"(required)"))))))};e.prototype.handleCheckboxToggle=function(){Bn.qSuperQuestionnaire.readDutyOfDisclosure=!Bn.qSuperQuestionnaire.readDutyOfDisclosure;Bn.qSuperQuestionnaire.reviewedApplication=!Bn.qSuperQuestionnaire.reviewedApplication;Bn.continueAllowed=!Bn.continueAllowed;Bn.nextRoute=zn()};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:An.Usi,fundName:An.Name,pageName:"Accumulation Page"})};return e}());Hn.style=Qn;function Wn(){var e;var t=Wt.appBaseUrl;var n=window.location.pathname.split(t)[1];var r=(e={},e[Xt.QSuperOptIn]=Bn.qSuperOptInPageCheckbox,e[Xt.QSuperJoin]=Bn.qSuperJoinPageCheckbox&&Bn.standardChoiceFormSignature,e);Bn.continueAllowed=r[n]}function Gn(){Vn();Bn.qSuperQuestionnaire=Object.assign(Object.assign({},Bn.qSuperQuestionnaire),{acceptedDeclaration:false,insuranceChosen:false,readDutyOfDisclosure:false,reviewedApplication:false});Bn.qSuperInsuranceQuestions={question1:{answered:false},question2:{answered:false},question3:{answered:false},question4:{answered:false},question5:{answered:false},question6:{answered:false},question7:{answered:false},question8:{answered:false}}}var Kn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";var Xn=e("sss_qsuper_insurance_opt_in",function(){function e(e){t(this,e);this.insuranceChosen=false;this.eventTrackingService=un.Instance;this.isEligibleForInsurance=false}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackFinancialProductViewedAsync({fundUsi:An.Usi,fundName:An.Name,financialProduct:An.InsuranceName})};e.prototype.componentWillLoad=function(){Gn();this.ensureInsuranceEligibility()};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-layout",{class:"d-flex flex-fill"},n("sss-qsuper-confirm-header",null),n("div",{class:"mt-4 p-3 checkbox-container"},n("p",null,"As part of becoming a QSuper member, you will receive death cover and total and permanent disability cover when you become eligible. ",n("br",null),n("br",null),"You will receive this cover when: ",n("br",null),n("br",null),"You are 25 years or older; ",n("br",null),"and You have had at least $6,000 in your accumulation account; ",n("br",null),"and At that time, we have received money into your account within the previous 13 months ",n("br",null),n("br",null),"Please see the Accumulation Account Insurance Guide, available on the QSuper website, for further information ",n("br",null),n("br",null),"Do you want this insurance cover?"),n("div",{class:"d-flex justify-content-between mt-4"},n("div",{class:"button-holder flex-grow-1 mr-2"},n("fl-button",{disabled:!this.isEligibleForInsurance,isBlockElement:true,variant:this.insuranceChosen?"primary":"secondary",onClick:function(){return e.handleInsuranceToggle(true)}},"Yes")),n("div",{class:"button-holder flex-grow-1 ml-2"},n("fl-button",{disabled:!this.isEligibleForInsurance,isBlockElement:true,variant:!this.insuranceChosen?"primary":"secondary",onClick:function(){return e.handleInsuranceToggle(false)}},"No")))),n("div",null,n("label",{class:"d-flex mt-3 p-3 checkbox-container",htmlFor:"ackCheckBox"},n("div",{class:"w-auto px-2 fl-checkbox-container"},n("input",{id:"ackCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:function(){return e.handleCheckboxToggle()}})),n("div",{class:"pl-3"},n("p",{class:"confirm-item-text mb-0"},"I acknowledge that my personal information will be shared with QSuper as part of their application process."))))))};e.prototype.ensureInsuranceEligibility=function(){if(Wt.superBuyer.userProfile.yearsOfAge<An.MinAge){return}else if(Wt.superBuyer.userProfile.yearsOfAge<An.MinInsuranceAge){this.showIneligibleNotification("You may still apply for QSuper, however people under the age of "+An.MinInsuranceAge+" are not able to apply for insurance.");return}this.isEligibleForInsurance=true};e.prototype.showIneligibleNotification=function(e){fn.showInfoNotification({title:"Unable to apply for Insurance",description:e})};e.prototype.handleInsuranceToggle=function(e){Bn.qSuperQuestionnaire.insuranceChosen=e&&this.isEligibleForInsurance;this.insuranceChosen=Bn.qSuperQuestionnaire.insuranceChosen;Bn.nextRoute=zn()};e.prototype.handleCheckboxToggle=function(){Bn.qSuperOptInPageCheckbox=!Bn.qSuperOptInPageCheckbox;Wn();Bn.nextRoute=zn()};return e}());Xn.style=Kn;var Yn="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";var Jn=e("sss_qsuper_insurance_questions",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-layout",{class:"d-flex flex-fill"},n("sss-qsuper-confirm-header",null),n("div",{class:"p-3 mt-4 checkbox-container"},n("slot",null),n("sss-qsuper-question-yes-no-buttons",null))))};return e}());Jn.style=Yn;var $n="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";var Zn=e("sss_qsuper_join",function(){function e(e){t(this,e);this.eventTrackingService=un.Instance}e.prototype.render=function(){var e=this;return n("sss-qsuper-layout",null,n("img",{class:"ss-choice-logo mx-auto",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-qsuper.png")}),n("div",{class:"row"},n("div",{class:"col text-center"},n("p",{class:"confirm-title font-weight-bold mb-0"},"You have chosen to join QSuper"))),n("div",{class:"my-3 card p-3"},n("p",{class:"confirm-text"},"We are almost there... All you have to do now is sign the super choice form. We'll prefill it for you. Make sure the info is correct. Your application to join the fund is subject to Trustee approval."),n("p",{class:"confirm-text mb-0"},"You've chosen to stay with your existing fund. Review the details below and click continue to confirm your choice")),n("div",{class:"card p-3"},n("p",{class:"text-center"},"100 years strong"),n("p",{class:"text-center"},"One of Australia's largest funds"),n("p",{class:"text-center mb-0"},"Awarded SuperRatings highest performance rating")),n("div",{class:"mt-3"},n("p",{class:"text-center confirm-text"},"Your application to join the fund is subject to Trustee approval.")),n("div",null,n("label",{class:"d-flex mt-4 p-3 checkbox-container",htmlFor:"confirmCheckBox"},n("div",{class:"w-auto px-2 py-2 fl-checkbox-container"},n("input",{id:"confirmCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:function(){return e.handleCheckboxToggle()}})),n("div",{class:"pl-3"},n("p",{class:"confirm-item-text mb-0 mt-1"},"I've read and understood the"," ",n("a",{target:"_blank",onClick:function(){return e.pdsViewedAsync()},href:Kt.toExternalUrl("https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements/")},"PDS")," ","and confirm all information I have provided is true and correct. I understand that my information will be sent to the trustee of this fund to process my request to join and I consent to my TFN, as currently held on the Flare HR Platform, being given to the trustee in order to open and administer my account.")))),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){Bn.standardChoiceFormSignature=e.detail.standardChoiceFormSignature;Wn()}}))};e.prototype.handleCheckboxToggle=function(){Bn.qSuperJoinPageCheckbox=!Bn.qSuperJoinPageCheckbox;Wn();Bn.nextRoute=zn()};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:An.Usi,fundName:An.Name,pageName:"Confirm Page"})};return e}());Zn.style=$n;var er=function(){function e(){}e.prototype.submitQSuperChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/qsuper").post(e).badRequest((function(){throw new Error("Failed to process QSuper join request")})).text()]}))}))};return e}();var tr=new er;function nr(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!Bn.continueAllowed)return[2];Bn.continueAllowed=false;if(Bn.currentQSuperFormPage===qn.InsuranceConfirm&&Bn.qSuperQuestionnaire.insuranceChosen){Bn.currentQSuperFormPage=qn.InsuranceQuestions;return[2]}if(Bn.currentQSuperFormPage===qn.InsuranceConfirm&&!Bn.qSuperQuestionnaire.insuranceChosen){Bn.currentQSuperFormPage=qn.AccumulationAccount;return[2]}if(Bn.currentQSuperFormPage===qn.InsuranceQuestions){Bn.currentQSuperFormPage=qn.AccumulationAccount;return[2]}if(Bn.currentQSuperFormPage===qn.AccumulationAccount){Bn.qSuperFormValid=false;Bn.currentQSuperFormPage=qn.ConfirmSelection;return[2]}if(!(Bn.currentQSuperFormPage===qn.ConfirmSelection))return[3,2];Bn.qSuperQuestionnaire.acceptedDeclaration=true;e={questionnaire:Bn.qSuperQuestionnaire,standardChoiceFormSignature:Bn.standardChoiceFormSignature,shownFunds:Wt.promotedFunds};return[4,tr.submitQSuperChoiceAsync(e)];case 1:t.sent();Wt.markSuperSelectionAsSubmitted();t.label=2;case 2:return[2]}}))}))}var rr=e("sss_qsuper_layout",function(){function e(e){var n=this;t(this,e);this.isEligible=false;this.canContinue=function(){return n.isEligible&&Bn.continueAllowed};this.ensureEligibility=function(){if(Wt.superBuyer.userProfile.yearsOfAge<An.MinAge){n.showIneligibleNotification("People under the age of "+An.MinAge+" are not able to open accounts.")}else if(Wt.superBuyer.userProfile.yearsOfAge>An.MaxAge){n.showIneligibleNotification("People over the age of "+An.MaxAge+" are not able to open accounts.")}else{n.isEligible=true}};this.showIneligibleNotification=function(e){fn.showInfoNotification({title:"Unable to apply for QSuper",description:e})}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ensureEligibility();Bn.nextRoute=zn();return[2]}))}))};e.prototype.render=function(){var e=this;return n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("slot",null),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Kt.navigateInternally(e.history,Xt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,disabled:!this.canContinue(),promiseFn:function(){return e.tryAsync()}},n("span",null,"Continue"))))))))};e.prototype.tryAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);if(!this.canContinue()){return[2]}return[4,nr()];case 1:t.sent();Kt.navigateInternally(this.history,Bn.nextRoute);return[3,3];case 2:e=t.sent();fn.showErrorNotification({title:"Couldn't process your request",description:"We had an issue processing your request to join QSuper. Please try again shortly."});Bn.continueAllowed=true;return[3,3];case 3:return[2]}}))}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());ee(rr);var ir=e("sss_qsuper_question_1",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 1"),n("p",{class:" mb-0"},"Are you currently a registered or enrolled nurse or assistant in nursing who is qualified and currently practicing, or working in the retail sector, or food and beverage service?")))};return e}());var or=e("sss_qsuper_question_2",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 2"),n("p",{class:" mb-0"},"Are you currently a qualified tradesperson currently working within your area of expertise (e.g. hairdresser, chef, plumber, electrician, plasterer, carpenter or concreter), or a skilled worker with light manual duties (e.g. jeweller, building inspector, laboratory technician, foreman or office equipment technician)?")))};return e}());var ar=e("sss_qsuper_question_3",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 3"),n("p",{class:" mb-0"},"Are you currently a police officer, firefighter, paramedic, or other emergency or protective services worker, including security guard or corrections officer, or a professional sportsperson, or working in a manual occupation which does not require trade specific qualifications and may be subject to accident or environment hazards (e.g. earthmover, driver, cleaner, labourer, factory worker or agricultural worker)?")))};return e}());var sr=e("sss_qsuper_question_4",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 4"),n("p",{class:" mb-0"},"Are the usual work activities of your job considered office based or school teaching ( meaning you spend at least 80% of your work time doing clerical, call centre, administrative or other office or classroom based activities), or are you a medical practitioner, lawyer or engineer who spends at least 80% of your work hours in an office or clinical environment?")))};return e}());var ur=e("sss_qsuper_question_5",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 5"),n("p",{class:" mb-0"},"Do you currently perform, or intend to work in a job within the next three months that includes, any of the following risky activities: handling firearms (other than as a police officer, correctional officer or licensed security guard), dangerous chemicals or explosives, or offshore work – oil and gas platforms, ships at sea, or being underground (in construction and mining environments) or underwater for more than 20% of total at work time, or working at heights over 20 metres in any environment requiring hard hat and harness for safety by law, or crop dusting, aerial mustering or any low level flying activity (defined as below 150 metres or 500 feet), or flying more than 200 hours per annum as a passenger other than on a commercial airline, or as a pilot (fixed wing or helicopter)?")))};return e}());var cr=e("sss_qsuper_question_6",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 6"),n("p",{class:" mb-0"},"Are you earning more than $120,000 a year, (before tax and employer paid superannuation), from your job?")))};return e}());var lr=e("sss_qsuper_question_7",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 7"),n("p",{class:" mb-0"},"Do you have a university qualification which you are using/is required in your current role?")))};return e}());var fr=e("sss_qsuper_question_8",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("sss-qsuper-insurance-questions",null,n("p",{class:"font-weight-bold"},"Question 8"),n("p",{class:" mb-0"},"Do you have a senior/executive level management role in your company (your direct reports would be mid-level managers or skilled specialists in a sedentary setting), or is your role considered professional (e.g. doctor, solicitor, accountant – requiring membership of a professional or government body to practice in your occupation)?")))};return e}());var dr=e("sss_qsuper_question_yes_no_buttons",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return e.handleQuestionClick(true)},isBlockElement:true,variant:"secondary"},n("span",null,"Yes")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,variant:"secondary",onClick:function(){return e.handleQuestionClick(false)}},n("span",null,"No")))))};e.prototype.handleQuestionClick=function(e){var t=Wt.appBaseUrl;var n=window.location.pathname.split(t+"/qsuper/insurance/")[1].replace(/\/+$/,"");if(Bn.qSuperQuestionnaire.questions===undefined){Bn.qSuperQuestionnaire.questions={question1:false,question2:false,question3:false,question4:false,question5:false,question6:false,question7:false,question8:false}}Bn.qSuperQuestionnaire.questions[n]=e;Bn.qSuperInsuranceQuestions[n].answered=true;Bn.nextRoute=zn();Kt.navigateInternally(this.history,Bn.nextRoute)};return e}());ee(dr);var pr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.picked-block{background-color:var(--fl-color-primary);border-top-right-radius:3px;right:0;top:0}.picked-box-border{border:2px solid var(--fl-color-primary)}";var hr=e("sss_selected_super_choice_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"bg-white rounded-sm picked-box-border p-3"},n("div",{class:"d-flex"},n("div",{class:"flex-grow-1 font-weight-bold"},this.fundType),n("div",{class:"px-3 py-2 text-white picked-block position-absolute"},"You picked")),n("div",null,this.fundName))};return e}());hr.style=pr;var vr=e("sss_self_managed_fund",function(){function e(e){var n=this;t(this,e);this.showSmsfNotSupported=false;this.eventTrackingService=un.Instance;this.success=function(){Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(n.history,Xt.Success)}}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Wt.promotedFunds})};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-self-managed-fund-inputs",{fundForm:en.selfManagedFundForm,onFormChanged:function(e){en.selfManagedFundForm=Object.assign(Object.assign({},en.selfManagedFundForm),e.detail)}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){en.selfManagedFundForm=Object.assign(Object.assign({},en.selfManagedFundForm),e.detail)}}),this.showSmsfNotSupported&&n("sss-smsf-not-supported-dialog",{ref:function(t){return e.notSupportedDialog=t},onContinue:this.success})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:function(){return Kt.navigateInternally(e.history,Xt.ChoicePage)},isBlockElement:true,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue")))))))};e.prototype.componentDidRender=function(){var e;this.showSmsfNotSupported&&((e=this.notSupportedDialog)===null||e===void 0?void 0:e.scrollIntoView())};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];e={smsfChoice:{abn:en.selfManagedFundForm.fundAbn,fundName:en.selfManagedFundForm.fundName,fundAddress:{addressLine1:en.selfManagedFundForm.addressLine1,addressLine2:en.selfManagedFundForm.addressLine2,city:en.selfManagedFundForm.city,state:en.selfManagedFundForm.state,postcode:en.selfManagedFundForm.postcode},bsb:en.selfManagedFundForm.bsb,bankAccountName:en.selfManagedFundForm.bankAccountName,bankAccountNumber:en.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:en.selfManagedFundForm.fundEsa},standardChoiceFormSignature:en.selfManagedFundForm.standardChoiceFormSignature};return[4,pn.submitSelfManagedFundChoiceAsync(e)];case 1:t.sent();if(Wt.showSmsfNotSupported){this.showSmsfNotSupported=true}else{this.success()}t.label=2;case 2:return[2]}}))}))};return e}());ee(vr);var mr={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"};var gr=e("sss_self_managed_fund_inputs",function(){function e(e){t(this,e);this.formChanged=r(this,"formChanged",7);this.currentBank=W;this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}];this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/);this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund name *"),n("input",{placeholder:"Enter your fund name",type:"text",class:"form-control",required:true,minlength:"2",name:"fundName",id:"fundName",value:en.selfManagedFundForm.fundName,onChange:function(t){return e.updateFormField("fundName",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund ABN *"),n("input",{placeholder:"Enter your fund ABN",type:"text",class:"form-control",required:true,minlength:"2",name:"fundAbn",id:"fundAbn",value:en.selfManagedFundForm.fundAbn,onChange:function(t){return e.updateFormField("fundAbn",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund ABN")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Electronic service address alias (ESA) *"),n("input",{placeholder:"Enter your ESA",type:"text",class:"form-control",required:true,minlength:"2",name:"fundEsa",id:"fundEsa",value:en.selfManagedFundForm.fundEsa,onChange:function(t){return e.updateFormField("fundEsa",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid fund ESA")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 1 *"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",required:true,minlength:"2",name:"addressLine1",id:"addressLine1",value:en.selfManagedFundForm.addressLine1,onChange:function(t){return e.updateFormField("addressLine1",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 2 (optional)"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",name:"addressLine2",id:"addressLine2",value:en.selfManagedFundForm.addressLine2,onChange:function(t){return e.updateFormField("addressLine2",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"City/suburb *"),n("input",{placeholder:"Enter your city",type:"text",class:"form-control",name:"city",required:true,id:"city",value:en.selfManagedFundForm.city,onChange:function(t){return e.updateFormField("city",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid city/suburb *")),n("div",{class:"mt-3"},n("label",{class:"mb-2 font-weight-bold"},"State *"),n("select",{class:"form-control",name:"state",required:true,id:"state",onChange:function(t){e.updateFormField("state",t.target.value.trim())}},n("option",{disabled:true,selected:!this.fundForm.state,value:""},"Select a state"),this.stateOptions.map((function(t){return n("option",{value:t.value,selected:e.fundForm.state===t.value},t.label)}))),n("div",{class:"invalid-feedback"},"Select a state")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Post code *"),n("input",{placeholder:"Enter your post code",type:"text",required:true,class:"form-control",name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:en.selfManagedFundForm.postcode,onChange:function(t){return e.updateFormField("postcode",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid post code")),n("div",null,n("i",{class:"fas fa-check-circle"})),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"BSB *"),n("input",{placeholder:"Enter your BSB",type:"text",required:true,class:"form-control",name:"bsb",id:"bsb",minlength:"6",maxlength:"7",onKeyUp:function(t){return e.updateCurrentBank(t)},pattern:this.bsbRegex.source,value:en.selfManagedFundForm.bsb}),Q(this.currentBank)&&n("p",{class:"mt-3"},n("strong",null,"Bank name"),n("br",null),n("span",{class:"ml-2"},this.currentBank.value)),n("div",{class:"invalid-feedback"},"Enter a valid BSB")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account name *"),n("input",{placeholder:"Enter your bank account name",type:"text",required:true,class:"form-control",name:"bankAccountName",minlength:"2",id:"bankAccountName",value:en.selfManagedFundForm.bankAccountName,onChange:function(t){return e.updateFormField("bankAccountName",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid bank account name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account number *"),n("input",{placeholder:"Enter your bank account number",type:"text",required:true,class:"form-control",name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,value:en.selfManagedFundForm.bankAccountNumber,onKeyUp:function(t){return e.updateCurrentBankAccountNumber(t)},onChange:function(t){return e.updateFormField("bankAccountNumber",t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Enter a valid bank account number")))};e.prototype.updateFormField=function(e,t){var n;this.formChanged.emit((n={},n[e]=t,n))};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.updateCurrentBank=function(e){var t=this.filterDigits(e.target.value);var n=t.substring(0,2);var r=t.substring(0,3);var i=mr[n];var o=mr[r];if(i)this.currentBank=G(i);if(o)this.currentBank=G(o);if(t==="")this.currentBank=W;this.updateFormField("bsb",t)};e.prototype.updateCurrentBankAccountNumber=function(e){var t=this.filterDigits(e.target.value);this.updateFormField("bankAccountNumber",t)};return e}());var yr=undefined&&undefined.__decorate||function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(a=e[s])o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o;return i>3&&o&&Object.defineProperty(t,n,o),o};var br;(function(e){e[e["Unauthorized"]=0]="Unauthorized";e[e["Authenticated"]=1]="Authenticated";e[e["Error"]=2]="Error"})(br||(br={}));var wr=function(){function e(){}return e}();function xr(){return{authenticationState:br.Unauthorized,jwt:W,reactNativeInterop:W,iframeInterop:W,appConfiguration:W}}var Sr=function(e){__extends(t,e);function t(){return e.call(this,xr())||this}return t}(b);Sr=yr([y({name:"sss-session",resettable:true})],Sr);var Ir=new Sr;var _r=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;return n}t.prototype.isReactNativeInteropEnabled=function(){return Q(this.getValue().reactNativeInterop)};t.prototype.isIframeInteropEnabled=function(){return Q(this.getValue().iframeInterop)};t.prototype.getIframeInteropMode=function(){var e=this.getValue().iframeInterop;if(H(e)){throw Error("Failed to get iframe interop information: no data in store")}if(!this.isIframeInteropEnabled()){throw Error("Failed to get iframe interop information: iframe mode is disabled")}return e.value};return t}(w);var Cr=new _r(Ir);var kr={slateFundForm:{memberNumber:"",standardChoiceFormSignature:"",shownFunds:[]}};var Tr=lt(kr).state;var Er=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin=="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.skipConsolidation=function(){return Cr.isReactNativeInteropEnabled()?"true":"false"};this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.slateJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"join.slatesuper.com.au/confirm"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app";var r=n+"/slate-redirect.html";var i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:r,cancelRedirectUrl:r,skipConsolidation:this.skipConsolidation(),skipInsurance:"true"});if(this.includeJwt()){i.authToken=Wt.jwt}var o=function(n){var r=n.data,i=n.origin;if(!r){return}if(r.sender==="slate-redirect"){window.removeEventListener("message",o);switch(r.type){case"success":if(r.memberNumber){Tr.slateFundForm.memberNumber=r.memberNumber;Kt.navigateInternally(t,Xt.SlateStandardChoice);break}default:Kt.navigateInternally(t,Xt.ChoicePage);break}return}if(r.sender==="flare"&&i.endsWith("join.slatesuper.com.au")){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break}}};window.addEventListener("message",o);var a=e.contentDocument;a.open();var s=a.createElement("form");s.method="POST";s.target="_self";s.action=this.slateJoinAppUrl();var u;for(u in i){var c=i[u];if(c!==undefined){var l=document.createElement("input");l.type="hidden";l.name=u;l.value=c;s.append(l)}}a.appendChild(s);a.close();s.submit()};e.prototype.getSlateJoinMemberData=function(){var e,t;var n=Wt.superBuyer;var r=function(e){switch(e){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}};return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:r(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};e.prototype.includeJwt=function(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)};return e}();var Ar=new Er;var Fr=e("sss_slate_join_page",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){Ar.build(this.iframeElement,this.history)};e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var Nr=function(){function e(){}e.prototype.submitSlateChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,jt().url("super-choice/slate").post(e).badRequest((function(){throw new Error("Failed to process Slate join request")})).text()]}))}))};return e}();var Pr=new Nr;var Or=e("sss_slate_standard_choice_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n(a,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("sss-slatesuper-header",null),n("div",null,n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:function(e){Tr.slateFundForm=Object.assign(Object.assign({},Tr.slateFundForm),e.detail)}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("stencil-route-link",{url:"/"},n("fl-button",{isBlockElement:true,variant:"secondary"},n("span",null,"Back"))))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:true,promiseFn:function(){return e.handleSubmitForm()}},n("span",null,"Save and continue"))))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Pr.submitSlateChoiceAsync(Object.assign(Object.assign({},Tr.slateFundForm),{shownFunds:Wt.promotedFunds}))];case 1:e.sent();Wt.markSuperSelectionAsSubmitted();Kt.navigateInternally(this.history,Xt.Success);e.label=2;case 2:return[2]}}))}))};return e}());var Dr="";var Rr=e("sss_slatesuper_header",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"d-flex"},n("div",null,n("img",{class:"ss-choice-logo img-thumbnail",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-slate.png")})),n("div",{class:"d-flex flex-column ml-3 align-items-left"},n("p",{class:"confirm-title font-weight-bold mb-0"},"You’re almost there!"),n("p",{class:"confirm-text mb-0"},"To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection.")))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());Rr.style=Dr;var qr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.overlay{position:absolute;top:0;left:0;z-index:100;background-color:#fff;opacity:0.7;width:100%;height:100%}.dialog{z-index:101;position:relative}";var Mr=e("sss_smsf_not_supported_dialog",function(){function e(e){var n=this;t(this,e);this.continue=r(this,"continue",7);this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";this.handleContinue=function(){n.continue.emit()}}e.prototype.render=function(){return n(a,null,n("div",{class:"overlay"}),n("div",{class:"dialog"},n("div",{class:"card p-4 mt-4 bg-light text-center"},n("div",{style:{"text-align":"center"}},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"orange",viewBox:"0 0 16 16"},n("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))),n("p",{class:"small mt-4 mb-0"},"You’ve selected a self-managed super fund (SMSF). Currently, SMSF information can’t be sent via this form. You’ll need to provide your employer with a"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","for your SMSF details."),n("div",{class:"d-flex mt-4"},n("div",{class:"w-25"}),n("div",{class:"w-50"},n("fl-button",{onClick:this.handleContinue,isBlockElement:true,variant:"primary"},n("span",null,"Continue")))))))};return e}());Mr.style=qr;var Ur=e("sss_standard_choice_form",function(){function e(e){t(this,e);this.standardChoiceFormSignatureUpdated=r(this,"standardChoiceFormSignatureUpdated",7);this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";this.standardChoiceFormSignature=""}e.prototype.render=function(){var e=this;return n("div",{class:"card p-4 mt-4 bg-light"},n("h4",{class:"small font-weight-bold"},"Superannuation Standard Choice Form"),n("p",{class:"small mt-2"},"The superannuation"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","informs your employer of your choice of fund."),n("h4",{class:"small font-weight-bold"},"Type your full name below (required)"),n("input",{placeholder:"Type your full name",type:"text",class:"form-control",required:true,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onKeyUp:function(t){return e.updateFormField(t.target.value.trim())}}),n("div",{class:"invalid-feedback"},"Type your full name"),n("p",{class:"small mt-3 mb-0"},"Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding."))};e.prototype.updateFormField=function(e){this.standardChoiceFormSignatureUpdated.emit({standardChoiceFormSignature:e})};return e}());var Lr=e("sss_success",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(a,{class:"d-flex flex-fill"},n("div",{class:"container mt-5"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-9 col-md-6"},n("div",{class:"bg-light rounded p-4"},n("div",{class:"d-flex justify-content-center"},n("div",null,n("svg",{width:"3em",height:"3em",viewBox:"0 0 16 16",class:"bi bi-check-circle-fill text-success",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"})))),n("div",{class:"d-flex justify-content-center"},n("p",{class:"mt-3 confirm-title text-center font-weight-bold px-5"},"Successfully updated superannuation details")),n("div",{class:"mt-2 text-center"},n("p",{class:"confirm-text mb-0"},"Your superannuation details have been updated successfully."),n("br",null),n("p",{class:"confirm-text mb-0"},"To continue with your onboarding, press ",n("strong",null,"Continue")," below."))),n("div",{class:"flex-grow-1 mt-4"},n("fl-promise-button",{isBlockElement:true,onClick:this.handleContinueButtonClick},n("span",null,"Continue")))))))};e.prototype.handleContinueButtonClick=function(e){Wt.completeSuperSelectionFlow()};return e}());var Br="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";var jr=e("sss_super_choice_item",function(){function e(e){t(this,e);this.joinFundClicked=r(this,"joinFundClicked",7);this.eventTrackingService=un.Instance}e.prototype.render=function(){var e=this;return n(a,{class:{"d-flex p-3 fund-item":true,"ss-picked-fund":this.isSelected}},n("div",{class:"card-body py-0 px-0 px-xl-3"},this.isSelected&&n("div",{class:"px-3 py-2 text-white promoted-picked-block position-absolute"},"You picked"),n("div",{class:"d-flex flex-fill flex-column align-items-center"},n("div",{class:"d-flex justify-content-end w-100"},n("div",{class:"text-muted small border rounded-sm px-1 mt-n2 mr-n2 mb-1"},"Advertised")),n("img",{class:"ss-choice-logo",alt:this.name,src:s("assets/"+this.logo)}),n("p",{class:"font-weight-bold text-center mt-3 mb-0"},this.name),this.subText&&n("span",{class:"text-muted small text-center font-italic"},this.subText),n("div",{class:"mt-3"},JSON.parse(this.features).map((function(e){return n("p",{class:"text-center"},e.value)}))))),n("div",{class:"text-center bottom-half-fund-tile"},n("div",{class:"p-3"},n("fl-button",{class:"uuid-button-continue",isBlockElement:true,onClick:function(){return e.handleFundClick()}},"Choose this fund")),n("div",{class:"mb-2"},n("a",{target:"_blank",href:this.pdsLink,onClick:function(){return e.pdsViewedAsync()}},"View the PDS")),this.disclaimer,n("div",{class:"small text-muted"},this.abnInfo)))};e.prototype.handleFundClick=function(){return this.joinFundClicked.emit()};e.prototype.pdsViewedAsync=function(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:this.usi,fundName:this.name,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());jr.style=Br;var Vr=function(){function e(){}e.prototype.GetChosenFundAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,o,r,a,s;return __generator(this,(function(u){switch(u.label){case 0:n=(e=Wt.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!n)return[2,W];if(!("promoted"in n))return[3,1];r=On.find((function(e){return e.dtoPropName in n.promoted}));i=(t=r===null||r===void 0?void 0:r.id)!==null&&t!==void 0?t:"";return[2,G({isPromoted:true,promotedId:i})];case 1:if(!("smsf"in n))return[3,2];return[2,G({isPromoted:false,name:n.smsf.fundName,type:"Self Managed Fund"})];case 2:if(!("myOwnFund"in n))return[3,4];o=n.myOwnFund.usi;return[4,this.getFundByUsiAsync(o)];case 3:r=u.sent();return[2,G({isPromoted:false,name:Q(r)?r.value.productName:o,type:"My Own Fund"})];case 4:if(!("default"in n))return[3,6];a=n.default.usi;return[4,this.getFundByUsiAsync(a)];case 5:s=u.sent();return[2,G({isPromoted:false,name:Q(s)?s.value.productName:a,type:"Default Fund"})];case 6:return[2,W]}}))}))};e.prototype.getFundByUsiAsync=function(e){return an.getFundByUsiAsync(e)};return e}();var zr=new Vr;var Qr="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";var Hr=e("sss_super_choice_page",function(){function e(e){var n=this;t(this,e);this.promotedFunds=this.getPromotedFunds();this.chosenFund=W;this.eventTrackingService=un.Instance;this.isPromotedFundSelected=function(e){return Q(n.chosenFund)&&n.chosenFund.value.isPromoted&&n.chosenFund.value.promotedId===e}}e.prototype.componentDidLoad=function(){nt.appReady();var e=this.promotedFunds.map((function(e){return e.fundId}));this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:e})};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:Gn();e=this;return[4,zr.GetChosenFundAsync()];case 1:e.chosenFund=t.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var t="The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund. Flare HR is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage.";var r="The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare HR are making any recommendation or opinion.";var i="There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice.";var o="You should be aware that, if you do choose one of these advertised funds, Flare HR and its associated entities will normally receive a fee for you doing so.";var s="https://my.gov.au";var u="my.gov.au";var c="https://www.apra.gov.au/register-of-superannuation-institutions";var l="www.apra.gov.au/register-of-superannuation-institutions";return n(a,null,n("div",{class:"container mt-0 mb-0"},n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("h3",{class:"mt-3 font-weight-bold text-center mb-4"},"Choose your Super"))),n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("p",{class:"text-center font-weight-bold"},t),n("p",{class:"text-center"},r),n("p",{class:"text-center"},i))),n("div",{class:"row"},n("div",{class:"col"},n("sss-notifications-section",null))),n("div",{class:"row justify-content-center mt-4"},n("div",{class:"col col-sm-10 col-md-8 col-xl-7"},n("div",{class:"row"},n("div",{class:"col"},n("div",{class:"d-flex flex-fill"},Q(this.chosenFund)&&!this.chosenFund.value.isPromoted&&n("sss-selected-super-choice-section",{fundType:this.chosenFund.value.type,fundName:this.chosenFund.value.name,class:"flex-fill position-relative"})))),n("div",{class:"row mt-3 justify-content-center"},this.getPromotedFunds().map((function(t){return n("div",{class:"col-12 col-lg-6 d-flex"},n("sss-super-choice-item",{class:"card mb-3 mb-lg-0 mx-0 flex-grow-1",logo:t.logo,isSelected:e.isPromotedFundSelected(t.fundId),usi:t.usi,name:t.name,subText:t.subText,pdsLink:Kt.toExternalUrl(t.pdsLink),features:JSON.stringify(t.features),disclaimer:t.disclaimer,abnInfo:t.abnInfo,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}}))}))),n("div",{class:"row mt-3 px-3"},n("div",{class:"col p-4 border rounded bg-light"},n("div",{class:"row"},n("div",{class:"col"},n("h5",{class:"font-weight-bold"},"Choose another super fund"),n("p",{class:"mb-1"},"Select this option if you'd like to use your current account with another super fund."),n("ul",{class:"ml-n3"},n("li",null,"If you are unsure of your current super fund details, you can find out at"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(s)},u)),n("li",{class:"mt-1"},"A full list of super funds can be viewed at"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(c)},l))))),n("div",{class:"row"},n("div",{class:"col"},n("stencil-route-link",{url:Xt.MyOwnFund},n("fl-button",{isBlockElement:true,variant:"primary",class:"d-lg-none"},"Choose another fund"),n("div",{class:"mt-n3 d-none d-lg-flex justify-content-end align-items-end"},n("fl-button",{variant:"primary"},"Choose another fund"))))))))),n("div",{class:"row justify-content-center mt-5"},n("div",{class:"col"},n("p",{class:"text-center"},o)))))};e.prototype.allFunds=function(){var e=this;return[{fundId:Fn.Id,usi:Fn.Usi,name:Fn.Name,logo:"logo-slate.png",route:Xt.SlateJoin,pdsLink:Fn.PdsUrl,features:[{order:1,value:"A lifestage investment strategy that evolves with you"},{order:2,value:"Advanced mobile app with retirement forecast and smart features"},{order:3,value:"Member advocates at Slate to assist with your account"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(Fn.PdsUrl),onClick:function(){return e.pdsViewedAsync(Fn.Name,Fn.Usi)}},"Product Disclosure Statement")," ","and"," ",n("a",{target:"_blank",href:Kt.toExternalUrl("https://slate.co/forms-and-documents/target-market-determination/")},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited ABN: "+Fn.DiversaAbn},{fundId:An.Id,usi:An.Usi,name:An.Name,logo:"logo-qsuper-square.png",route:Xt.QSuperOptIn,pdsLink:An.PdsUrl,features:[{order:1,value:"100 years strong"},{order:2,value:"One of Australia's largest funds"},{order:3,value:"Awarded SuperRatings highest performance rating"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(An.PdsUrl),onClick:function(){return e.pdsViewedAsync(An.Name,An.Usi)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"QSuper Board ABN: "+An.Abn},{fundId:Nn.Id,name:Nn.Name,subText:"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.",logo:"logo-art.svg",route:Xt.PromotedFundJoin,pdsLink:Nn.PdsUrl,features:[{order:1,value:"$200 billion in retirement savings"},{order:2,value:"2+ million members"},{order:3,value:"A focus on delivering strong, long‑term returns"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(Nn.PdsUrl),onClick:function(){return e.pdsViewedAsync(Nn.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust ABN: "+Nn.Abn},{fundId:Pn.Id,name:Pn.Name,logo:"logo-aware.svg",route:Xt.PromotedFundJoin,pdsLink:Pn.PdsUrl,features:[{order:1,value:"Lorem ipsum dolor sit amet"},{order:2,value:"Lorem ipsum dolor sit amet"},{order:3,value:"Lorem ipsum dolor sit amet"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:Kt.toExternalUrl(Pn.PdsUrl),onClick:function(){return e.pdsViewedAsync(Pn.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd ABN: "+Pn.Abn}]};e.prototype.getPromotedFunds=function(){var e=this;var t=[];Wt.promotedFunds.forEach((function(n){var r=e.allFunds().find((function(e){return n==e.fundId}));if(r!==undefined){t.push(r)}}));return t};e.prototype.handleJoinSuperClickAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=Wt.promotedFunds;if(!(e.fundId===Fn.Id))return[3,2];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:Fn.Usi,fundName:Fn.Name,promotedFundId:Fn.Id,promotedFundsShown:t})];case 1:n.sent();return[3,8];case 2:if(!(e.fundId===An.Id))return[3,4];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:An.Usi,fundName:An.Name,promotedFundId:An.Id,promotedFundsShown:t})];case 3:n.sent();return[3,8];case 4:if(!(e.fundId===Nn.Id))return[3,6];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:Nn.Name,promotedFundId:Nn.Id,promotedFundsShown:t})];case 5:n.sent();Sn.fundId=e.fundId;return[3,8];case 6:if(!(e.fundId===Pn.Id))return[3,8];return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:Pn.Name,promotedFundId:Pn.Id,promotedFundsShown:t})];case 7:n.sent();Sn.fundId=e.fundId;n.label=8;case 8:return[2,Kt.navigateInternally(this.history,e.route)]}}))}))};e.prototype.pdsViewedAsync=function(e,t){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:t,fundName:e,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());Hr.style=Qr;var Wr="stencil-route.inactive{display:none}";var Gr=e("stencil_route",function(){function e(e){t(this,e);this.group=null;this.match=null;this.componentProps={};this.exact=false;this.scrollOnNextRender=false;this.previousMatch=null}e.prototype.computeMatch=function(e){var t=this.group!=null||this.el.parentElement!=null&&this.el.parentElement.tagName.toLowerCase()==="stencil-route-switch";if(!e||t){return}this.previousMatch=this.match;return this.match=Pe(e.pathname,{path:this.url,exact:this.exact,strict:true})};e.prototype.loadCompleted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e={};if(this.history&&this.history.location.hash){e={scrollToId:this.history.location.hash.substr(1)}}else if(this.scrollTopOffset){e={scrollTopOffset:this.scrollTopOffset}}if(typeof this.componentUpdated==="function"){this.componentUpdated(e)}else if(this.match&&!Oe(this.match,this.previousMatch)&&this.routeViewsUpdated){this.routeViewsUpdated(e)}return[2]}))}))};e.prototype.componentDidUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){if(!this.match||!this.history){return null}var e=Object.assign({},this.componentProps,{history:this.history,match:this.match});if(this.routeRender){return this.routeRender(Object.assign({},e,{component:this.component}))}if(this.component){var t=this.component;return n(t,Object.assign({},e))}};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());k.injectProps(Gr,["location","history","historyType","routeViewsUpdated"]);Gr.style=Wr;var Kr=function(e,t,n){return n(e.confirm(t))};var Xr=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey};var Yr=function(e){var t=e.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1){return false}return e.history&&"pushState"in e.history};var Jr=function(e){return e.userAgent.indexOf("Trident")===-1};var $r=function(e){return e.userAgent.indexOf("Firefox")===-1};var Zr=function(e,t){return t.state===undefined&&e.userAgent.indexOf("CriOS")===-1};var ei=function(e,t){var n=e[t];var r="__storage_test__";try{n.setItem(r,r);n.removeItem(r);return true}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&n.length!==0}};var ti=function(e,t){if(e.charAt(0)=="/"&&t.charAt(t.length-1)=="/"){return t.slice(0,t.length-1)+e}return t+e};var ni=e("stencil_route_link",function(){function e(e){t(this,e);this.unsubscribe=function(){return};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}e.prototype.componentWillLoad=function(){this.computeMatch()};e.prototype.computeMatch=function(){if(this.location){this.match=Pe(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}};e.prototype.handleClick=function(e){if(Xr(e)||!this.history||!this.url||!this.root){return}e.preventDefault();return this.history.push(ti(this.url,this.root))};e.prototype.render=function(){var e;var t={class:(e={},e[this.activeClass]=this.match!==null,e),onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})}return n(this.custom,Object.assign({},t),n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());k.injectProps(ni,["history","location","root"]);var ri=function(){return((Math.random()*1e17).toString().match(/.{4}/g)||[]).join("-")};var ii=function(e,t,n){return Pe(e,{path:t,exact:n,strict:true})};var oi=function(e){return e.tagName==="STENCIL-ROUTE"};var ai=e("stencil_route_switch",function(){function e(e){t(this,e);this.group=ri();this.subscribers=[];this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){if(this.location!=null){this.regenerateSubscribers(this.location)}};e.prototype.regenerateSubscribers=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;var r=this;return __generator(this,(function(i){if(e==null){return[2]}t=-1;this.subscribers=Array.prototype.slice.call(this.el.children).filter(oi).map((function(n,r){var i=ii(e.pathname,n.url,n.exact);if(i&&t===-1){t=r}return{el:n,match:i}}));if(t===-1){return[2]}if(this.activeIndex===t){this.subscribers[t].el.match=this.subscribers[t].match;return[2]}this.activeIndex=t;n=this.subscribers[this.activeIndex];if(this.scrollTopOffset){n.el.scrollTopOffset=this.scrollTopOffset}n.el.group=this.group;n.el.match=n.match;n.el.componentUpdated=function(e){r.queue.write((function(){r.subscribers.forEach((function(e,t){e.el.componentUpdated=undefined;if(t===r.activeIndex){return e.el.style.display=""}if(r.scrollTopOffset){e.el.scrollTopOffset=r.scrollTopOffset}e.el.group=r.group;e.el.match=null;e.el.style.display="none"}))}));if(r.routeViewsUpdated){r.routeViewsUpdated(Object.assign({scrollTopOffset:r.scrollTopOffset},e))}};return[2]}))}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["regenerateSubscribers"]}},enumerable:false,configurable:true});return e}());k.injectProps(ai,["location","routeViewsUpdated"]);var si=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(!e){console.warn.apply(console,t)}};var ui=function(){var e;var t=[];var n=function(t){si(e==null,"A history supports only one prompt at a time");e=t;return function(){if(e===t){e=null}}};var r=function(t,n,r,i){if(e!=null){var o=typeof e==="function"?e(t,n):e;if(typeof o==="string"){if(typeof r==="function"){r(o,i)}else{si(false,"A history needs a getUserConfirmation function in order to use a prompt message");i(true)}}else{i(o!==false)}}else{i(true)}};var i=function(e){var n=true;var r=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(n){e.apply(void 0,t)}};t.push(r);return function(){n=false;t=t.filter((function(e){return e!==r}))}};var o=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}t.forEach((function(t){return t.apply(void 0,e)}))};return{setPrompt:n,confirmTransitionTo:r,appendListener:i,notifyListeners:o}};var ci=function(e,t){if(t===void 0){t="scrollPositions"}var n=new Map;var r=function(t,r){n.set(t,r);if(ei(e,"sessionStorage")){var i=[];n.forEach((function(e,t){i.push([t,e])}));e.sessionStorage.setItem("scrollPositions",JSON.stringify(i))}};var i=function(e){return n.get(e)};var o=function(e){return n.has(e)};var a=function(t){r(t,[e.scrollX,e.scrollY])};if(ei(e,"sessionStorage")){var s=e.sessionStorage.getItem(t);n=s?new Map(JSON.parse(s)):n}if("scrollRestoration"in e.history){history.scrollRestoration="manual"}return{set:r,get:i,has:o,capture:a}};var li="popstate";var fi="hashchange";var di=function(e,t){if(t===void 0){t={}}var n=false;var r=e.history;var i=e.location;var o=e.navigator;var a=Yr(e);var s=!Jr(o);var u=ci(e);var c=t.forceRefresh!=null?t.forceRefresh:false;var l=t.getUserConfirmation!=null?t.getUserConfirmation:Kr;var f=t.keyLength!=null?t.keyLength:6;var d=t.basename?ve(me(t.basename)):"";var p=function(){try{return e.history.state||{}}catch(e){return{}}};var h=function(e){e=e||{};var t=e.key,n=e.state;var r=i.pathname,o=i.search,a=i.hash;var s=r+o+a;si(!d||pe(s,d),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+s+'" to begin with "'+d+'".');if(d){s=he(s,d)}return Te(s,n,t||Se(f))};var v=ui();var m=function(e){u.capture(D.location.key);Object.assign(D,e);D.location.scrollPosition=u.get(D.location.key);D.length=r.length;v.notifyListeners(D.location,D.action)};var g=function(e){if(!Zr(o,e)){b(h(e.state))}};var y=function(){b(h(p()))};var b=function(e){if(n){n=false;m()}else{var t="POP";v.confirmTransitionTo(e,t,l,(function(n){if(n){m({action:t,location:e})}else{w(e)}}))}};var w=function(e){var t=D.location;var r=S.indexOf(t.key);var i=S.indexOf(e.key);if(r===-1){r=0}if(i===-1){i=0}var o=r-i;if(o){n=true;E(o)}};var x=h(p());var S=[x.key];var I=0;var _=false;var C=function(e){return d+be(e)};var k=function(e,t){si(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to push when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="PUSH";var o=Te(e,t,Se(f),D.location);v.confirmTransitionTo(o,n,l,(function(e){if(!e){return}var t=C(o);var s=o.key,u=o.state;if(a){r.pushState({key:s,state:u},"",t);if(c){i.href=t}else{var l=S.indexOf(D.location.key);var f=S.slice(0,l===-1?0:l+1);f.push(o.key);S=f;m({action:n,location:o})}}else{si(u===undefined,"Browser history cannot push state in browsers that do not support HTML5 history");i.href=t}}))};var T=function(e,t){si(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"You should avoid providing a 2nd state argument to replace when the 1st "+"argument is a location-like object that already has state; it is ignored");var n="REPLACE";var o=Te(e,t,Se(f),D.location);v.confirmTransitionTo(o,n,l,(function(e){if(!e){return}var t=C(o);var s=o.key,u=o.state;if(a){r.replaceState({key:s,state:u},"",t);if(c){i.replace(t)}else{var l=S.indexOf(D.location.key);if(l!==-1){S[l]=o.key}m({action:n,location:o})}}else{si(u===undefined,"Browser history cannot replace state in browsers that do not support HTML5 history");i.replace(t)}}))};var E=function(e){r.go(e)};var A=function(){return E(-1)};var F=function(){return E(1)};var N=function(t){I+=t;if(I===1){e.addEventListener(li,g);if(s){e.addEventListener(fi,y)}}else if(I===0){e.removeEventListener(li,g);if(s){e.removeEventListener(fi,y)}}};var P=function(e){if(e===void 0){e=""}var t=v.setPrompt(e);if(!_){N(1);_=true}return function(){if(_){_=false;N(-1)}return t()}};var O=function(e){var t=v.appendListener(e);N(1);return function(){N(-1);t()}};var D={length:r.length,action:"POP",location:x,createHref:C,push:k,replace:T,go:E,goBack:A,goForward:F,block:P,listen:O,win:e};return D};var pi="hashchange";var hi={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+ge(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:ge,decodePath:me},slash:{encodePath:me,decodePath:me}};var vi=function(e,t){if(t===void 0){t={}}var n=false;var r=null;var i=0;var o=false;var a=e.location;var s=e.history;var u=$r(e.navigator);var c=t.keyLength!=null?t.keyLength:6;var l=t.getUserConfirmation,f=l===void 0?Kr:l,d=t.hashType,p=d===void 0?"slash":d;var h=t.basename?ve(me(t.basename)):"";var v=hi[p],m=v.encodePath,g=v.decodePath;var y=function(){var e=a.href;var t=e.indexOf("#");return t===-1?"":e.substring(t+1)};var b=function(e){return a.hash=e};var w=function(e){var t=a.href.indexOf("#");a.replace(a.href.slice(0,t>=0?t:0)+"#"+e)};var x=function(){var e=g(y());si(!h||pe(e,h),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+e+'" to begin with "'+h+'".');if(h){e=he(e,h)}return Te(e,undefined,Se(c))};var S=ui();var I=function(e){Object.assign(B,e);B.length=s.length;S.notifyListeners(B.location,B.action)};var _=function(){var e=y();var t=m(e);if(e!==t){w(t)}else{var i=x();var o=B.location;if(!n&&ke(o,i)){return}if(r===be(i)){return}r=null;C(i)}};var C=function(e){if(n){n=false;I()}else{var t="POP";S.confirmTransitionTo(e,t,f,(function(n){if(n){I({action:t,location:e})}else{k(e)}}))}};var k=function(e){var t=B.location;var r=F.lastIndexOf(be(t));var i=F.lastIndexOf(be(e));if(r===-1){r=0}if(i===-1){i=0}var o=r-i;if(o){n=true;D(o)}};var T=y();var E=m(T);if(T!==E){w(E)}var A=x();var F=[be(A)];var N=function(e){return"#"+m(h+be(e))};var P=function(e,t){si(t===undefined,"Hash history cannot push state; it is ignored");var n="PUSH";var i=Te(e,undefined,Se(c),B.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=be(i);var o=m(h+t);var a=y()!==o;if(a){r=t;b(o);var s=F.lastIndexOf(be(B.location));var u=F.slice(0,s===-1?0:s+1);u.push(t);F=u;I({action:n,location:i})}else{si(false,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack");I()}}))};var O=function(e,t){si(t===undefined,"Hash history cannot replace state; it is ignored");var n="REPLACE";var i=Te(e,undefined,Se(c),B.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=be(i);var o=m(h+t);var a=y()!==o;if(a){r=t;w(o)}var s=F.indexOf(be(B.location));if(s!==-1){F[s]=t}I({action:n,location:i})}))};var D=function(e){si(u,"Hash history go(n) causes a full page reload in this browser");s.go(e)};var R=function(){return D(-1)};var q=function(){return D(1)};var M=function(e,t){i+=t;if(i===1){e.addEventListener(pi,_)}else if(i===0){e.removeEventListener(pi,_)}};var U=function(t){if(t===void 0){t=""}var n=S.setPrompt(t);if(!o){M(e,1);o=true}return function(){if(o){o=false;M(e,-1)}return n()}};var L=function(t){var n=S.appendListener(t);M(e,1);return function(){M(e,-1);n()}};var B={length:s.length,action:"POP",location:A,createHref:N,push:P,replace:O,go:D,goBack:R,goForward:q,block:U,listen:L,win:e};return B};var mi=function(e,t){var n=e.pathname.indexOf(t)==0?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:n})};var gi={browser:di,hash:vi};var yi=e("stencil_router",function(){function e(e){var n=this;t(this,e);this.root="/";this.historyType="browser";this.titleSuffix="";this.routeViewsUpdated=function(e){if(e===void 0){e={}}if(n.history&&e.scrollToId&&n.historyType==="browser"){var t=n.history.win.document.getElementById(e.scrollToId);if(t){return t.scrollIntoView()}}n.scrollTo(e.scrollTopOffset||n.scrollTopOffset)};this.isServer=c(this,"isServer");this.queue=c(this,"queue")}e.prototype.componentWillLoad=function(){var e=this;this.history=gi[this.historyType](this.el.ownerDocument.defaultView);this.history.listen((function(t){t=mi(t,e.root);e.location=t}));this.location=mi(this.history.location,this.root)};e.prototype.scrollTo=function(e){var t=this.history;if(e==null||this.isServer||!t){return}if(t.action==="POP"&&Array.isArray(t.location.scrollPosition)){return this.queue.write((function(){if(t&&t.location&&Array.isArray(t.location.scrollPosition)){t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])}}))}return this.queue.write((function(){t.win.scrollTo(0,e)}))};e.prototype.render=function(){if(!this.location||!this.history){return}var e={historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated};return n(k.Provider,{state:e},n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());var bi="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}stencil-route:empty{display:none}";var wi=e("super_selection_app",function(){function e(e){t(this,e);this.stepSubmitSuccess=r(this,"step-completion",7);this.successPageAcknowledged=r(this,"successPageAcknowledged",5);this.initialised=r(this,"initialised",7);this.isAppInitialised=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;var r=this;return __generator(this,(function(i){e=ht.fromNullable(this.accessToken);if(ht.isNone(e)){throw Error("jwt property is missing.")}Wt.state.jwt=e;t=ht.fromNullable(this.backendUrl);if(ht.isNone(t)){throw Error("apiBaseUrl property is missing.")}Wt.state.apiBaseUrl=ht.some(t.value.replace(/\/$/,"")+"/");n=ht.fromNullable(this.appBaseUrl);if(ht.isNone(n)){throw Error("appBaseUrl property is missing.")}Wt.state.appBaseUrl=ht.some(n.value.replace(/\/$/,""));Wt.onChange("hasSuccessPageBeenAcknowledged",(function(e){return r.successPageAcknowledged.emit()}));Wt.onChange("hasSuperSelectionBeenSubmitted",(function(e){if(!e)return;r.stepSubmitSuccess.emit();Wt.state.hasSuperSelectionBeenSubmitted=false}));return[2]}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:Gn();return[4,Wt.loadAppStateAsync()];case 1:e.sent();this.isAppInitialised=true;this.initialised.emit({accountIdOrDefault:Wt.accountIdOrDefault,partnerIdOrDefault:Wt.partnerIdOrDefault,profileId:Wt.profileId});return[2]}}))}))};e.prototype.authTokenChanged=function(e){Wt.state.jwt=ht.fromNullable(e)};e.prototype.onRouteChange=function(){window===null||window===void 0?void 0:window.scroll(0,0)};e.prototype.render=function(){return n(a,{class:"d-flex justify-content-center flex-grow-1"},n("div",{class:"d-flex flex-column justify-content-between"},this.renderAppContent()))};e.prototype.routerBaseUrl=function(){var e;return((e=this.appBaseUrl)===null||e===void 0?void 0:e.replace(/\/$/,""))+"/"};e.prototype.renderAppContent=function(){return n("stencil-router",{root:this.routerBaseUrl()},n("stencil-route-switch",{scrollTopOffset:0},n("div",{class:"d-flex flex-column"},n("div",{class:"d-flex justify-content-center"},this.isAppInitialised?Yt:n("fl-loading-indicator",{class:"mt-5"})),n("div",{class:"d-flex justify-content-center"},n("sss-footer-section",null)))))};Object.defineProperty(e,"watchers",{get:function(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}},enumerable:false,configurable:true});return e}());ee(wi);wi.style=bi;var xi=[];var Si=function(){return xi.some((function(e){return e.activeTargets.length>0}))};var Ii=function(){return xi.some((function(e){return e.skippedTargets.length>0}))};var _i="ResizeObserver loop completed with undelivered notifications.";var Ci=function(){var e;if(typeof ErrorEvent==="function"){e=new ErrorEvent("error",{message:_i})}else{e=document.createEvent("Event");e.initEvent("error",false,false);e.message=_i}window.dispatchEvent(e)};var ki;(function(e){e["BORDER_BOX"]="border-box";e["CONTENT_BOX"]="content-box";e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(ki||(ki={}));var Ti=function(e){return Object.freeze(e)};var Ei=function(){function e(e,t){this.inlineSize=e;this.blockSize=t;Ti(this)}return e}();var Ai=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Ti(this)}e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,o=e.bottom,a=e.left,s=e.width,u=e.height;return{x:t,y:n,top:r,right:i,bottom:o,left:a,width:s,height:u}};e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)};return e}();var Fi=function(e){return e instanceof SVGElement&&"getBBox"in e};var Ni=function(e){if(Fi(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)};var Pi=function(e){var t,n;var r=(n=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&e instanceof r.Element)};var Oi=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image"){break}case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return true}return false};var Di=typeof window!=="undefined"?window:{};var Ri=new WeakMap;var qi=/auto|scroll/;var Mi=/^tb|vertical/;var Ui=/msie|trident/i.test(Di.navigator&&Di.navigator.userAgent);var Li=function(e){return parseFloat(e||"0")};var Bi=function(e,t,n){if(e===void 0){e=0}if(t===void 0){t=0}if(n===void 0){n=false}return new Ei((n?t:e)||0,(n?e:t)||0)};var ji=Ti({devicePixelContentBoxSize:Bi(),borderBoxSize:Bi(),contentBoxSize:Bi(),contentRect:new Ai(0,0,0,0)});var Vi=function(e,t){if(t===void 0){t=false}if(Ri.has(e)&&!t){return Ri.get(e)}if(Ni(e)){Ri.set(e,ji);return ji}var n=getComputedStyle(e);var r=Fi(e)&&e.ownerSVGElement&&e.getBBox();var i=!Ui&&n.boxSizing==="border-box";var o=Mi.test(n.writingMode||"");var a=!r&&qi.test(n.overflowY||"");var s=!r&&qi.test(n.overflowX||"");var u=r?0:Li(n.paddingTop);var c=r?0:Li(n.paddingRight);var l=r?0:Li(n.paddingBottom);var f=r?0:Li(n.paddingLeft);var d=r?0:Li(n.borderTopWidth);var p=r?0:Li(n.borderRightWidth);var h=r?0:Li(n.borderBottomWidth);var v=r?0:Li(n.borderLeftWidth);var m=f+c;var g=u+l;var y=v+p;var b=d+h;var w=!s?0:e.offsetHeight-b-e.clientHeight;var x=!a?0:e.offsetWidth-y-e.clientWidth;var S=i?m+y:0;var I=i?g+b:0;var _=r?r.width:Li(n.width)-S-x;var C=r?r.height:Li(n.height)-I-w;var k=_+m+x+y;var T=C+g+w+b;var E=Ti({devicePixelContentBoxSize:Bi(Math.round(_*devicePixelRatio),Math.round(C*devicePixelRatio),o),borderBoxSize:Bi(k,T,o),contentBoxSize:Bi(_,C,o),contentRect:new Ai(f,u,_,C)});Ri.set(e,E);return E};var zi=function(e,t,n){var r=Vi(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ki.DEVICE_PIXEL_CONTENT_BOX:return a;case ki.BORDER_BOX:return i;default:return o}};var Qi=function(){function e(e){var t=Vi(e);this.target=e;this.contentRect=t.contentRect;this.borderBoxSize=Ti([t.borderBoxSize]);this.contentBoxSize=Ti([t.contentBoxSize]);this.devicePixelContentBoxSize=Ti([t.devicePixelContentBoxSize])}return e}();var Hi=function(e){if(Ni(e)){return Infinity}var t=0;var n=e.parentNode;while(n){t+=1;n=n.parentNode}return t};var Wi=function(){var e=Infinity;var t=[];xi.forEach((function n(r){if(r.activeTargets.length===0){return}var i=[];r.activeTargets.forEach((function t(n){var r=new Qi(n.target);var o=Hi(n.target);i.push(r);n.lastReportedSize=zi(n.target,n.observedBox);if(o<e){e=o}}));t.push((function e(){r.callback.call(r.observer,i,r.observer)}));r.activeTargets.splice(0,r.activeTargets.length)}));for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e};var Gi=function(e){xi.forEach((function t(n){n.activeTargets.splice(0,n.activeTargets.length);n.skippedTargets.splice(0,n.skippedTargets.length);n.observationTargets.forEach((function t(r){if(r.isActive()){if(Hi(r.target)>e){n.activeTargets.push(r)}else{n.skippedTargets.push(r)}}}))}))};var Ki=function(){var e=0;Gi(e);while(Si()){e=Wi();Gi(e)}if(Ii()){Ci()}return e>0};var Xi;var Yi=[];var Ji=function(){return Yi.splice(0).forEach((function(e){return e()}))};var $i=function(e){if(!Xi){var t=0;var n=document.createTextNode("");var r={characterData:true};new MutationObserver((function(){return Ji()})).observe(n,r);Xi=function(){n.textContent=""+(t?t--:t++)}}Yi.push(e);Xi()};var Zi=function(e){$i((function t(){requestAnimationFrame(e)}))};var eo=0;var to=function(){return!!eo};var no=250;var ro={attributes:true,characterData:true,childList:true,subtree:true};var io=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"];var oo=function(e){if(e===void 0){e=0}return Date.now()+e};var ao=false;var so=function(){function e(){var e=this;this.stopped=true;this.listener=function(){return e.schedule()}}e.prototype.run=function(e){var t=this;if(e===void 0){e=no}if(ao){return}ao=true;var n=oo(e);Zi((function(){var r=false;try{r=Ki()}finally{ao=false;e=n-oo();if(!to()){return}if(r){t.run(1e3)}else if(e>0){t.run(e)}else{t.start()}}}))};e.prototype.schedule=function(){this.stop();this.run()};e.prototype.observe=function(){var e=this;var t=function(){return e.observer&&e.observer.observe(document.body,ro)};document.body?t():Di.addEventListener("DOMContentLoaded",t)};e.prototype.start=function(){var e=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();io.forEach((function(t){return Di.addEventListener(t,e.listener,true)}))}};e.prototype.stop=function(){var e=this;if(!this.stopped){this.observer&&this.observer.disconnect();io.forEach((function(t){return Di.removeEventListener(t,e.listener,true)}));this.stopped=true}};return e}();var uo=new so;var co=function(e){!eo&&e>0&&uo.start();eo+=e;!eo&&uo.stop()};var lo=function(e){return!Fi(e)&&!Oi(e)&&getComputedStyle(e).display==="inline"};var fo=function(){function e(e,t){this.target=e;this.observedBox=t||ki.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}e.prototype.isActive=function(){var e=zi(this.target,this.observedBox,true);if(lo(this.target)){this.lastReportedSize=e}if(this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize){return true}return false};return e}();var po=function(){function e(e,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=e;this.callback=t}return e}();var ho=new WeakMap;var vo=function(e,t){for(var n=0;n<e.length;n+=1){if(e[n].target===t){return n}}return-1};var mo=function(){function e(){}e.connect=function(e,t){var n=new po(e,t);ho.set(e,n)};e.observe=function(e,t,n){var r=ho.get(e);var i=r.observationTargets.length===0;if(vo(r.observationTargets,t)<0){i&&xi.push(r);r.observationTargets.push(new fo(t,n&&n.box));co(1);uo.schedule()}};e.unobserve=function(e,t){var n=ho.get(e);var r=vo(n.observationTargets,t);var i=n.observationTargets.length===1;if(r>=0){i&&xi.splice(xi.indexOf(n),1);n.observationTargets.splice(r,1);co(-1)}};e.disconnect=function(e){var t=this;var n=ho.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)}));n.activeTargets.splice(0,n.activeTargets.length)};return e}();var go=function(){function e(e){if(arguments.length===0){throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.")}if(typeof e!=="function"){throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.")}mo.connect(this,e)}e.prototype.observe=function(e,t){if(arguments.length===0){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Pi(e)){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element")}mo.observe(this,e,t)};e.prototype.unobserve=function(e){if(arguments.length===0){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Pi(e)){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element")}mo.unobserve(this,e)};e.prototype.disconnect=function(){mo.disconnect(this)};e.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return e}();var yo=function(){function e(){var e=this;this._appRootUrl=new $((function(){return e.resolveRootUrl()}));this.getAppRootUrl=function(){return e._appRootUrl.value};this.getAppHostUrl=function(){return(""+window.location.origin+e.getAppRootUrl()).replace(/\/$/,"")}}e.prototype.loadConfigurationAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,Bt(this.getAppRootUrl()+"config.json").get().json()];case 1:e=t.sent();Ir.update({appConfiguration:ht.fromNullable(e)});return[2]}}))}))};e.prototype.resolveRootUrl=function(){var e=ht.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(ht.isNone(e)){throw Error("Unsupported host URL")}return e.value[0]+"/"};return e}();var bo=new yo;var wo="function";var xo="object";var So="undefined";var Io="prototype";var _o="hasOwnProperty";function Co(){if(typeof globalThis!==So&&globalThis){return globalThis}if(typeof self!==So&&self){return self}if(typeof window!==So&&window){return window}if(typeof global!==So&&global){return global}return null}function ko(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==xo&&n!==wo){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[Io]=e;return new r}function To(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[Io][_o].call(t,i)){e[i]=t[i]}}}return e}var Eo=function(e,t){Eo=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[_o](n)){e[n]=t[n]}}};return Eo(e,t)};function Ao(e,t){Eo(e,t);function n(){this.constructor=e}e[Io]=t===null?ko(t):(n[Io]=t[Io],new n)}var Fo=Co()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Fo,To,Ao);if(!__assign){__assign=Fo.__assign}if(!__extends){__extends=Fo.__extends}var No={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var Po=So;var Oo=xo;var Do=Io;var Ro=wo;var qo="window";var Mo="document";var Uo="navigator";var Lo="history";var Bo="location";var jo="console";var Vo="performance";var zo="JSON";var Qo="crypto";var Ho="msCrypto";var Wo="ReactNative";var Go=Co;function Ko(e){var t=Go();if(t&&t[e]){return t[e]}if(e===qo&&Xo()){return window}return null}function Xo(){return Boolean(typeof window===Oo&&window)}function Yo(){if(Xo()){return window}return Ko(qo)}function Jo(){return Boolean(typeof document===Oo&&document)}function $o(){if(Jo()){return document}return Ko(Mo)}function Zo(){return Boolean(typeof navigator===Oo&&navigator)}function ea(){if(Zo()){return navigator}return Ko(Uo)}function ta(){return Boolean(typeof history===Oo&&history)}function na(){if(ta()){return history}return Ko(Lo)}function ra(){if(typeof location===Oo&&location){return location}return Ko(Bo)}function ia(){if(typeof console!==Po){return console}return Ko(jo)}function oa(){return Ko(Vo)}function aa(){return Boolean(typeof JSON===Oo&&JSON||Ko(zo)!==null)}function sa(){if(aa()){return JSON||Ko(zo)}return null}function ua(){return Ko(Qo)}function ca(){return Ko(Ho)}function la(){var e=ea();if(e&&e.product){return e.product===Wo}return false}var fa="on";var da="attachEvent";var pa="addEventListener";var ha="detachEvent";var va="removeEventListener";var ma=4294967296;var ga=4294967295;var ya=null;var ba=false;var wa=123456789;var xa=987654321;function Sa(e){if(e<0){e>>>=0}wa=123456789+e&ga;xa=987654321-e&ga;ba=true}function Ia(){Sa(Math.random()*ma^(new Date).getTime())}function _a(e,t){return typeof e===t}function Ca(e){return _a(e,So)||e===undefined}function ka(e){return Ca(e)||e===null}function Ta(e,t){return e&&Object[Io].hasOwnProperty.call(e,t)}function Ea(e){return _a(e,xo)}function Aa(e){return _a(e,wo)}function Fa(e,t,n,r){if(r===void 0){r=false}var i=false;if(!ka(e)){try{if(!ka(e[pa])){e[pa](t,n,r);i=true}else if(!ka(e[da])){e[da](fa+t,n);i=true}}catch(e){}}return i}function Na(e,t,n,r){if(r===void 0){r=false}if(!ka(e)){try{if(!ka(e[va])){e[va](t,n,r)}else if(!ka(e[ha])){e[ha](fa+t,n)}}catch(e){}}}function Pa(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Oa(e,t){if(e&&Ea(e)){for(var n in e){if(Ta(e,n)){t.call(e,n,e[n])}}}}var Da=function(){function e(){}e.isDate=function(e){return Object[Io].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[Io].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[Io].toString.call(e)==="[object Error]"};e.isString=function(e){return _a(e,"string")};e.isNumber=function(e){return _a(e,"number")};e.isBoolean=function(e){return _a(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ra,(function(e){var n=t()|0,r=e==="x"?n:n&3|8;return r.toString(16)}))};e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);if(t.length===1){t="0"+t}return t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}};e.arrForEach=function(e,t,n){var r=e.length;for(var i=0;i<r;i++){if(i in e){t.call(n||e,e[i],i,e)}}};e.arrIndexOf=function(e,t,n){var r=e.length;var i=n||0;for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++){if(o in e&&e[o]===t){return o}}return-1};e.arrMap=function(e,t,n){var r=e.length;var i=n||e;var o=new Array(r);for(var a=0;a<r;a++){if(a in e){o[a]=t.call(i,e[a],e)}}return o};e.arrReduce=function(e,t,n){var r=e.length;var i=0;var o;if(arguments.length>=3){o=arguments[2]}else{while(i<r&&!(i in e)){i++}o=e[i++]}while(i<r){if(i in e){o=t(o,e[i],i,e)}i++}return o};e.strTrim=function(t){if(!e.isString(t)){return t}return t.replace(/^\s+|\s+$/g,"")};e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!Aa(e)&&(!Ea(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(Ta(e,r)){n.push(r)}}if(t){var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var o=i.length;for(var a=0;a<o;a++){if(Ta(e,i[a])){n.push(i[a])}}}return n};e.objDefineAccessors=function(e,t,n,r){var i=Object["defineProperty"];if(i){try{var o={enumerable:true,configurable:true};if(n){o.get=n}if(r){o.set=r}i(e,t,o);return true}catch(e){}}return false};e.addEventHandler=function(e,t){var n=false;var r=Yo();if(r){n=Fa(r,e,t);n=Fa(r["body"],e,t)||n}var i=$o();if(i){n=qa.Attach(i,e,t)||n}return n};e.dateNow=function(){var e=Date;if(e.now){return e.now()}return(new e).getTime()};e.perfNow=function(){var t=oa();if(t&&t.now){return t.now()}return e.dateNow()};e.newId=function(t){if(t===void 0){t=22}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var r=e.random32()>>>0;var i=0;var o="";while(o.length<t){i++;o+=n.charAt(r&63);r>>>=6;if(i===5){r=(e.random32()<<2&4294967295|r&3)>>>0;i=0}}return o};e.isIE=function(){if(ya===null){var e=ea()||{};var t=(e.userAgent||"").toLowerCase();ya=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return ya};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/ga*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=ua()||ca();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&ga}else if(e.isIE()){if(!ba){Ia()}n=e.mwcRandom32()&ga}else{n=Math.floor(ma*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){Ia()}else{Sa(e)}};e.mwcRandom32=function(e){xa=36969*(xa&65535)+(xa>>16)&ga;wa=18e3*(wa&65535)+(wa>>16)&ga;var t=(xa<<16)+(wa&65535)>>>0&ga|0;if(!e){t>>>=0}return t};e.generateW3CId=function(){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var n="",r;for(var i=0;i<4;i++){r=e.random32();n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15]}var o=t[8+(e.random32()&3)|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)};e.isTypeof=_a;e.isUndefined=Ca;e.isNullOrUndefined=ka;e.hasOwnProperty=Ta;e.isFunction=Aa;e.isObject=Ea;e.objCreate=ko;return e}();var Ra=/[xy]/g;var qa=function(){function e(){}e.Attach=Fa;e.AttachEvent=Fa;e.Detach=Na;e.DetachEvent=Na;return e}();var Ma;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(Ma||(Ma={}));var Ua={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103};
|
|
2
2
|
/*!
|
|
3
3
|
* Microsoft Dynamic Proto Utility, 1.1.0
|
|
4
4
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
5
|
-
*/var La="constructor";var Ba="prototype";var ja="function";var Va="_dynInstFuncs";var za="_isDynProxy";var Qa="_dynClass";var Ha="_dynCls$";var Wa="_dynInstChk";var Ga=Wa;var Ka="_dfOpts";var Xa="_unknown_";var Ya="__proto__";var Ja="useBaseInst";var $a="setInstFuncs";var Za=Object["getPrototypeOf"];var es=0;function ts(e,t){return e&&Object[Ba].hasOwnProperty.call(e,t)}function ns(e){return typeof e===ja}function rs(e){return e&&(e===Object[Ba]||e===Array[Ba])}function is(e){return rs(e)||e===Function[Ba]}function os(e){if(e){if(Za){return Za(e)}var t=e[Ya]||e[Ba]||e[La];if(t){return t}}return null}function as(e,t,n){return t!==La&&ns(e[t])&&(n||ts(e,t))}function ss(e){throw new TypeError("DynamicProto: "+e)}function us(e){var t={};for(var n in e){if(!t[n]&&as(e,n,false)){t[n]=e[n]}}return t}function cs(e,t){for(var n=e.length-1;n>=0;n--){if(e[n]===t){return true}}return false}function ls(e,t,n,r){function i(e,t,n){var i=t[a];if(i[za]&&r){var o=e[Va]||{};if(o[Ga]!==false){i=(o[t[Qa]]||{})[n]||i}}return function(){return i.apply(e,arguments)}}var o={};for(var a in n){o[a]=i(t,n,a)}var s=os(e);var u=[];while(s&&!is(s)&&!cs(u,s)){for(var a in s){if(!o[a]&&as(s,a,!Za)){o[a]=i(t,s,a)}}u.push(s);s=os(s)}return o}function fs(e,t,n,r){var i=null;if(e&&ts(n,Qa)){var o=e[Va]||{};i=(o[n[Qa]]||{})[t];if(!i){ss("Missing ["+t+"] "+ja)}if(!i[Wa]&&o[Ga]!==false){var a=!ts(e,t);var s=os(e);var u=[];while(a&&s&&!is(s)&&!cs(u,s)){var c=s[t];if(c){a=c===r;break}u.push(s);s=os(s)}try{if(a){e[t]=i}i[Wa]=1}catch(e){o[Ga]=false}}}return i}function ds(e,t,n){var r=t[e];if(r===n){r=os(t)[e]}if(!ns(r)){ss("["+e+"] is not a "+ja)}return r}function ps(e,t,n,r,i){function o(e,t){var n=function(){var r=fs(this,t,e,n)||ds(t,e,n);return r.apply(this,arguments)};n[za]=1;return n}if(!rs(e)){var a=n[Va]=n[Va]||{};var s=a[t]=a[t]||{};if(a[Ga]!==false){a[Ga]=!!i}for(var u in n){if(as(n,u,false)&&n[u]!==r[u]){s[u]=n[u];delete n[u];if(!ts(e,u)||e[u]&&!e[u][za]){e[u]=o(e,u)}}}}}function hs(e,t){var n=os(t);while(n&&!is(n)){if(n===e){return true}n=os(n)}return false}function vs(e,t){if(ts(e,Ba)){return e.name||t||Xa}return((e||{})[La]||{}).name||t||Xa}function ms(e,t,n,r){if(!ts(e,Ba)){ss("theClass is an invalid class definition.")}var i=e[Ba];if(!hs(i,t)){ss("["+vs(e)+"] is not in class hierarchy of ["+vs(t)+"]")}var o=null;if(ts(i,Qa)){o=i[Qa]}else{o=Ha+vs(e,"_")+"$"+es;es++;i[Qa]=o}var a=ms[Ka];var s=!!a[Ja];if(s&&r&&r[Ja]!==undefined){s=!!r[Ja]}var u=us(t);var c=ls(i,t,u,s);n(t,c);var l=!!Za&&!!a[$a];if(l&&r){l=!!r[$a]}ps(i,o,t,u,l!==false)}var gs={setInstFuncs:true,useBaseInst:true};ms[Ka]=gs;var ys="AI (Internal): ";var bs="AI: ";var ws="AITR_";function xs(e){if(e){return'"'+e.replace(/\"/g,"")+'"'}return""}var Ss=function(){function e(e,t,n,r){if(n===void 0){n=false}var i=this;i.messageId=e;i.message=(n?bs:ys)+e;var o="";if(aa()){o=sa().stringify(r)}var a=(t?" message:"+xs(t):"")+(r?" props:"+xs(o):"");i.message+=a}e.dataType="MessageData";return e}();var Is=function(){function e(t){this.identifier="DiagnosticLogger";this.queue=[];var n=0;var r={};ms(e,this,(function(e){var i=Da.isNullOrUndefined;var o=Da.isUndefined;var a=Da.isFunction;if(i(t)){t={}}e.consoleLoggingLevel=function(){return s("loggingLevelConsole",0)};e.telemetryLoggingLevel=function(){return s("loggingLevelTelemetry",1)};e.maxInternalMessageLimit=function(){return s("maxMessageLimit",25)};e.enableDebugExceptions=function(){return s("enableDebugExceptions",false)};e.throwInternal=function(t,n,i,a,s){if(s===void 0){s=false}var u=new Ss(n,i,s,a);if(e.enableDebugExceptions()){throw u}else{if(!o(u)&&!!u){if(!o(u.message)){if(s){var c=+u.messageId;if(!r[c]&&e.consoleLoggingLevel()>=Ma.WARNING){e.warnToConsole(u.message);r[c]=true}}else{if(e.consoleLoggingLevel()>=Ma.WARNING){e.warnToConsole(u.message)}}e.logInternalMessage(t,u)}}}};e.warnToConsole=function(e){var t=ia();if(!!t){var n="log";if(t.warn){n="warn"}if(a(t[n])){t[n](e)}}};e.resetInternalMessageCount=function(){n=0;r={}};e.logInternalMessage=function(t,i){if(u()){return}var o=true;var a=ws+i.messageId;if(r[a]){o=false}else{r[a]=true}if(o){if(t<=e.telemetryLoggingLevel()){e.queue.push(i);n++}if(n===e.maxInternalMessageLimit()){var s="Internal events throttle limit per PageView reached for this app.";var c=new Ss(Ua.MessageLimitPerPVExceeded,s,false);e.queue.push(c);e.warnToConsole(s)}}};function s(e,n){var r=t[e];if(!i(r)){return r}return n}function u(){return n>=e.maxInternalMessageLimit()}}))}e.prototype.enableDebugExceptions=function(){return false};e.prototype.consoleLoggingLevel=function(){return 0};e.prototype.telemetryLoggingLevel=function(){return 1};e.prototype.maxInternalMessageLimit=function(){return 25};e.prototype.throwInternal=function(e,t,n,r,i){};e.prototype.warnToConsole=function(e){};e.prototype.resetInternalMessageCount=function(){};e.prototype.logInternalMessage=function(e,t){};return e}();var _s="ctx";var Cs=function(){function e(t,n,r){var i=this;var o=false;i.start=Da.dateNow();i.name=t;i.isAsync=r;i.isChildEvt=function(){return false};if(Da.isFunction(n)){var a;o=Da.objDefineAccessors(i,"payload",(function(){if(!a&&Da.isFunction(n)){a=n();n=null}return a}))}i.getCtx=function(t){if(t){if(t===e.ParentContextKey||t===e.ChildrenContextKey){return i[t]}return(i[_s]||{})[t]}return null};i.setCtx=function(t,n){if(t){if(t===e.ParentContextKey){if(!i[t]){i.isChildEvt=function(){return true}}i[t]=n}else if(t===e.ChildrenContextKey){i[t]=n}else{var r=i[_s]=i[_s]||{};r[t]=n}}};i.complete=function(){var t=0;var r=i.getCtx(e.ChildrenContextKey);if(Da.isArray(r)){for(var a=0;a<r.length;a++){var s=r[a];if(s){t+=s.time}}}i.time=Da.dateNow()-i.start;i.exTime=i.time-t;i.complete=function(){};if(!o&&Da.isFunction(n)){i.payload=n()}}}e.ParentContextKey="parent";e.ChildrenContextKey="childEvts";return e}();var ks=function(){function e(t){this.ctx={};ms(e,this,(function(e){e.create=function(e,t,n){return new Cs(e,t,n)};e.fire=function(e){if(e){e.complete();if(t){t.perfEvent(e)}}};e.setCtx=function(t,n){if(t){var r=e[_s]=e[_s]||{};r[t]=n}};e.getCtx=function(t){return(e[_s]||{})[t]}}))}e.prototype.create=function(e,t,n){return null};e.prototype.fire=function(e){};e.prototype.setCtx=function(e,t){};e.prototype.getCtx=function(e){};return e}();var Ts="CoreUtils.doPerf";function Es(e,t,n,r,i){if(e){var o=e;if(o&&Da.isFunction(o["getPerfMgr"])){o=o["getPerfMgr"]()}if(o){var a=void 0;var s=o.getCtx(Ts);try{a=o.create(t(),r,i);if(a){if(s&&a.setCtx){a.setCtx(Cs.ParentContextKey,s);if(s.getCtx&&s.setCtx){var u=s.getCtx(Cs.ChildrenContextKey);if(!u){u=[];s.setCtx(Cs.ChildrenContextKey,u)}u.push(a)}}o.setCtx(Ts,a);return n(a)}}catch(e){if(a&&a.setCtx){a.setCtx("exception",e)}}finally{if(a){o.fire(a)}o.setCtx(Ts,s)}}}return n()}var As=Da.isFunction;var Ns=function(){function e(e,t){var n=this;var r=null;var i=As(e.processTelemetry);var o=As(e.setNextPlugin);n._hasRun=false;n.getPlugin=function(){return e};n.getNext=function(){return r};n.setNext=function(e){r=e};n.processTelemetry=function(a,s){if(!s){s=t}var u=e?e.identifier:"TelemetryPluginChain";Es(s?s.core():null,(function(){return u+":processTelemetry"}),(function(){if(e&&i){n._hasRun=true;try{s.setNext(r);if(o){e.setNextPlugin(r)}r&&(r._hasRun=false);e.processTelemetry(a,s)}catch(n){var t=r&&r._hasRun;if(!r||!t){s.diagLog().throwInternal(Ma.CRITICAL,Ua.PluginException,"Plugin ["+e.identifier+"] failed during processTelemetry - "+n)}if(r&&!t){r.processTelemetry(a,s)}}}else if(r){n._hasRun=true;r.processTelemetry(a,s)}}),(function(){return{item:a}}),!a.sync)}}return e}();var Fs=Da.isNullOrUndefined;function Ps(e,t){var n=[];if(e&&e.length>0){var r=null;for(var i=0;i<e.length;i++){var o=e[i];if(o&&Da.isFunction(o.processTelemetry)){var a=new Ns(o,t);n.push(a);if(r){r.setNext(a)}r=a}}}return n.length>0?n[0]:null}function Os(e,t,n){var r=[];var i=n?false:true;if(e){while(e){var o=e.getPlugin();if(i||o===n){i=true;r.push(o)}e=e.getNext()}}if(!i){r.push(n)}return Ps(r,t)}function Ds(e,t,n){var r=e;var i=false;if(n&&e){r=[];Da.arrForEach(e,(function(e){if(i||e===n){i=true;r.push(e)}}))}if(n&&!i){if(!r){r=[]}r.push(n)}return Ps(r,t)}var Rs=function(){function e(t,n,r,i){var o=this;var a=null;if(i!==null){if(t&&Da.isFunction(t.getPlugin)){a=Os(t,o,i||t.getPlugin())}else{if(i){a=Ds(t,o,i)}else if(Da.isUndefined(i)){a=Ps(t,o)}}}o.core=function(){return r};o.diagLog=function(){var e=(r||{}).logger;if(!e){e=new Is(n||{})}return e};o.getCfg=function(){return n};o.getExtCfg=function(e,t){if(t===void 0){t={}}var r;if(n){var i=n.extensionConfig;if(i&&e){r=i[e]}}return r?r:t};o.getConfig=function(e,t,r){if(r===void 0){r=false}var i;var a=o.getExtCfg(e,null);if(a&&!Fs(a[t])){i=a[t]}else if(n&&!Fs(n[t])){i=n[t]}return!Fs(i)?i:r};o.hasNext=function(){return a!=null};o.getNext=function(){return a};o.setNext=function(e){a=e};o.processNext=function(e){var t=a;if(t){a=t.getNext();t.processTelemetry(e,o)}};o.createNew=function(t,i){if(t===void 0){t=null}return new e(t||a,n,r,i)}}return e}();var qs=Da.isFunction;var Ms="getPlugin";var Us=function(){function e(){var e=this;var t=false;var n=null;var r=null;e.core=null;e.diagLog=function(t){return e._getTelCtx(t).diagLog()};e.isInitialized=function(){return t};e.setInitialized=function(e){t=e};e.setNextPlugin=function(e){r=e};e.processNext=function(e,t){if(t){t.processNext(e)}else if(r&&qs(r.processTelemetry)){r.processTelemetry(e,null)}};e._getTelCtx=function(t){if(t===void 0){t=null}var i=t;if(!i){var o=n||new Rs(null,{},e.core);if(r&&r[Ms]){i=o.createNew(null,r[Ms])}else{i=o.createNew(null,r)}}return i};e._baseTelInit=function(i,o,a,s){if(i){i.extensionConfig=i.extensionConfig||[]}if(!s&&o){s=o.getProcessTelContext().getNext()}var u=r;if(r&&r[Ms]){u=r[Ms]()}e.core=o;n=new Rs(s,i,o,u);t=true}}e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)};return e}();var Ls=Da.isFunction;var Bs="processTelemetry";var js="priority";var Vs="setNextPlugin";var zs="isInitialized";function Qs(e,t){var n=[];var r=null;var i=e.getNext();while(i){var o=i.getPlugin();if(o){if(r&&Ls(r[Vs])&&Ls(o[Bs])){r[Vs](o)}if(!Ls(o[zs])||!o[zs]()){n.push(o)}r=o;i=i.getNext()}}Da.arrForEach(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function Hs(e){return e.sort((function(e,t){var n=0;var r=Ls(t[Bs]);if(Ls(e[Bs])){n=r?e[js]-t[js]:1}else if(r){n=-1}return n}))}var Ws=500;var Gs="Channel has invalid priority";var Ks=Da.objDefineAccessors;var Xs=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.identifier="ChannelControllerPlugin";n.priority=Ws;var r=Da.arrForEach;var i;ms(t,n,(function(e,t){e.setNextPlugin=function(e){};e.processTelemetry=function(e,t){if(i){r(i,(function(r){if(r.length>0){var i=n._getTelCtx(t).createNew(r);i.processNext(e)}}))}};e.getChannelControls=function(){return i};e.initialize=function(n,o,a){if(e.isInitialized()){return}t.initialize(n,o,a);if(n.isCookieUseDisabled){Da.disableCookies()}s((n||{}).channels,a);r(i,(function(e){return Qs(new Rs(e,n,o),a)}))}}));function o(e){r(e,(function(e){if(e.priority<Ws){throw Error(Gs+e.identifier)}}))}function a(e){if(e&&e.length>0){e=e.sort((function(e,t){return e.priority-t.priority}));o(e);i.push(e)}}function s(e,t){i=[];if(e){r(e,(function(e){return a(e)}))}if(t){var n=[];r(t,(function(e){if(e.priority>Ws){n.push(e)}}));a(n)}}return n}t.prototype.processTelemetry=function(e,t){};t.prototype.getChannelControls=function(){return null};t.prototype.initialize=function(e,t,n){};t._staticInit=function(){Ks(t.prototype,"ChannelControls",t.prototype.getChannelControls);Ks(t.prototype,"channelQueue",t.prototype.getChannelControls)}();return t}(Us);var Ys="Extensions must provide callback to initialize";var Js=Da.arrForEach;var $s=Da.isNullOrUndefined;var Zs="_notificationManager";var eu=function(){function e(){var t=false;var n;var r;var i;var o;ms(e,this,(function(e){e._extensions=new Array;r=new Xs;e.logger=Da.objCreate({throwInternal:function(e,t,n,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}});n=[];e.isInitialized=function(){return t};e.initialize=function(n,o,a,s){if(e.isInitialized()){throw Error("Core should not be initialized more than once")}if(!n||$s(n.instrumentationKey)){throw Error("Please provide instrumentation key")}i=s;e[Zs]=s;e.config=n||{};n.extensions=$s(n.extensions)?[]:n.extensions;var u=n.extensionConfig=$s(n.extensionConfig)?{}:n.extensionConfig;u.NotificationManager=s;if(a){e.logger=a}var c=[];c.push.apply(c,o.concat(n.extensions));c=Hs(c);var l=[];var f={};Js(c,(function(e){if($s(e)||$s(e.initialize)){throw Error(Ys)}var t=e.priority;var n=e.identifier;if(e&&t){if(!$s(f[t])){a.warnToConsole("Two extensions have same priority #"+t+" - "+f[t]+", "+n)}else{f[t]=n}}if(!t||t<r.priority){l.push(e)}}));c.push(r);l.push(r);c=Hs(c);e._extensions=c;Qs(new Rs([r],n,e),c);Qs(new Rs(l,n,e),c);e._extensions=l;if(e.getTransmissionControls().length===0){throw new Error("No channels available")}t=true;e.releaseQueue()};e.getTransmissionControls=function(){return r.getChannelControls()};e.track=function(t){if(!t.iKey){t.iKey=e.config.instrumentationKey}if(!t.time){t.time=Da.toISOString(new Date)}if($s(t.ver)){t.ver="4.0"}if(e.isInitialized()){e.getProcessTelContext().processNext(t)}else{n.push(t)}};e.getProcessTelContext=function(){var t=e._extensions;var n=t;if(!t||t.length===0){n=[r]}return new Rs(n,e.config,e)};e.getNotifyMgr=function(){if(!i){i=Da.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}});e[Zs]=i}return i};e.getPerfMgr=function(){if(!o){if(e.config&&e.config.enablePerfMgr){o=new ks(e.getNotifyMgr())}}return o};e.setPerfMgr=function(e){o=e};e.eventCnt=function(){return n.length};e.releaseQueue=function(){if(n.length>0){Js(n,(function(t){e.getProcessTelContext().processNext(t)}));n=[]}}}))}e.prototype.initialize=function(e,t,n,r){};e.prototype.getTransmissionControls=function(){return null};e.prototype.track=function(e){};e.prototype.getProcessTelContext=function(){return null};e.prototype.getNotifyMgr=function(){return null};e.prototype.getPerfMgr=function(){return null};e.prototype.setPerfMgr=function(e){};e.prototype.eventCnt=function(){return 0};e.prototype.releaseQueue=function(){};return e}();var tu=function(){function e(t){this.listeners=[];var n=Da.arrForEach;var r=!!(t||{}).perfEvtsSendAll;ms(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)};e.removeNotificationListener=function(t){var n=Da.arrIndexOf(e.listeners,t);while(n>-1){e.listeners.splice(n,1);n=Da.arrIndexOf(e.listeners,t)}};e.eventsSent=function(t){n(e.listeners,(function(e){if(e&&e.eventsSent){setTimeout((function(){return e.eventsSent(t)}),0)}}))};e.eventsDiscarded=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsDiscarded){setTimeout((function(){return e.eventsDiscarded(t,r)}),0)}}))};e.eventsSendRequest=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsSendRequest){if(r){setTimeout((function(){return e.eventsSendRequest(t,r)}),0)}else{try{e.eventsSendRequest(t,r)}catch(e){}}}}))};e.perfEvent=function(t){if(t){if(r||!t.isChildEvt()){n(e.listeners,(function(e){if(e&&e.perfEvent){if(t.isAsync){setTimeout((function(){return e.perfEvent(t)}),0)}else{try{e.perfEvent(t)}catch(e){}}}}))}}}}))}e.prototype.addNotificationListener=function(e){};e.prototype.removeNotificationListener=function(e){};e.prototype.eventsSent=function(e){};e.prototype.eventsDiscarded=function(e,t){};e.prototype.eventsSendRequest=function(e,t){};return e}();var nu=function(e){__extends(t,e);function t(){var n=e.call(this)||this;ms(t,n,(function(e,t){e.initialize=function(e,n,r,i){t.initialize(e,n,r||new Is(e),i||new tu(e))};e.track=function(i){Es(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){if(i===null){r(i);throw Error("Invalid telemetry item")}n(i);t.track(i)}),(function(){return{item:i}}),!i.sync)};e.addNotificationListener=function(t){var n=e.getNotifyMgr();if(n){n.addNotificationListener(t)}};e.removeNotificationListener=function(t){var n=e.getNotifyMgr();if(n){n.removeNotificationListener(t)}};e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;if(!n||!(n>0)){n=1e4}return setInterval((function(){var n=e.logger?e.logger.queue:[];Da.arrForEach(n,(function(n){var r={name:t?t:"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:Da.toISOString(new Date),baseType:Ss.dataType,baseData:{message:n.message}};e.track(r)}));n.length=0}),n)};function n(e){if(Da.isNullOrUndefined(e.name)){r(e);throw Error("telemetry name required")}}function r(t){var n=e.getNotifyMgr();if(n){n.eventsDiscarded([t],Fo.InvalidEvent)}}}));return n}t.prototype.initialize=function(e,t,n,r){};t.prototype.track=function(e){};t.prototype.addNotificationListener=function(e){};t.prototype.removeNotificationListener=function(e){};t.prototype.pollInternalLogs=function(e){return 0};return t}(eu);var ru="_aiHooks";var iu=["req","rsp","hkErr","fnErr"];var ou="__proto__";var au="constructor";function su(e,t){if(e){for(var n=0;n<e.length;n++){if(t(e[n],n)){break}}}}function uu(e,t,n,r,i){if(i>=0&&i<=2){su(e,(function(e,o){var a=e.cbks;var s=a[iu[i]];if(s){t.ctx=function(){var e=r[o]=r[o]||{};return e};try{s.apply(t.inst,n)}catch(e){var u=t.err;try{var c=a[iu[2]];if(c){t.err=e;c.apply(t.inst,n)}}catch(e){}finally{t.err=u}}}}))}}function cu(e){return function(){var t=this;var n=arguments;var r=e.h;var i={name:e.n,inst:t,ctx:null,set:u};var o=[];var a=s([i],n);function s(e,t){su(t,(function(t){e.push(t)}));return e}function u(e,t){n=s([],n);n[e]=t;a=s([i],n)}uu(r,i,a,o,0);var c=e.f;try{i.rslt=c.apply(t,n)}catch(e){i.err=e;uu(r,i,a,o,3);throw e}uu(r,i,a,o,1);return i.rslt}}var lu=Object["getPrototypeOf"];function fu(e){if(e){if(lu){return lu(e)}var t=e[ou]||e[Do]||e[au];if(t){return t}}return null}function du(e,t,n){var r=null;if(e){if(Da.hasOwnProperty(e,t)){r=e}else if(n){r=du(fu(e),t,false)}}return r}function pu(e,t,n){if(e){return hu(e[Do],t,n,false)}return null}function hu(e,t,n,r){if(r===void 0){r=true}if(e&&t&&n){var i=du(e,t,r);if(i){var o=i[t];if(typeof o===Ro){var a=o[ru];if(!a){a={i:0,n:t,f:o,h:[]};var s=cu(a);s[ru]=a;i[t]=s}var u={id:a.i,cbks:n,rm:function(){var e=this.id;su(a.h,(function(t,n){if(t.id===e){a.h.splice(n,1);return 1}}))}};a.i++;a.h.push(u);return u}}}return null}var vu;(function(e){e[e["LocalStorage"]=0]="LocalStorage";e[e["SessionStorage"]=1]="SessionStorage"})(vu||(vu={}));var mu;(function(e){e[e["Default"]=0]="Default";e[e["Required"]=1]="Required";e[e["Array"]=2]="Array";e[e["Hidden"]=4]="Hidden"})(mu||(mu={}));var gu;(function(e){e[e["AI"]=0]="AI";e[e["AI_AND_W3C"]=1]="AI_AND_W3C";e[e["W3C"]=2]="W3C"})(gu||(gu={}));var yu=function(){function e(){}e.requestContextHeader="Request-Context";e.requestContextTargetKey="appId";e.requestContextAppIdFormat="appId=cid-v1:";e.requestIdHeader="Request-Id";e.traceParentHeader="traceparent";e.sdkContextHeader="Sdk-Context";e.sdkContextHeaderAppIdRequest="appId";e.requestContextHeaderLowerCase="request-context";return e}();var bu=function(){function e(){}e.sanitizeKeyAndAddUniqueness=function(t,n,r){var i=n.length;var o=e.sanitizeKey(t,n);if(o.length!==i){var a=0;var s=o;while(r[s]!==undefined){a++;s=o.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(a)}o=s}return o};e.sanitizeKey=function(t,n){var r;if(n){n=e.trim(n.toString());if(n.length>e.MAX_NAME_LENGTH){r=n.substring(0,e.MAX_NAME_LENGTH);t.throwInternal(Ma.WARNING,Ua.NameTooLong,"name is too long. It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},true)}}return r||n};e.sanitizeString=function(t,n,r){if(r===void 0){r=e.MAX_STRING_LENGTH}var i;if(n){r=r?r:e.MAX_STRING_LENGTH;n=e.trim(n);if(n.toString().length>r){i=n.toString().substring(0,r);t.throwInternal(Ma.WARNING,Ua.StringValueTooLong,"string value is too long. It has been truncated to "+r+" characters.",{value:n},true)}}return i||n};e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,Ua.UrlTooLong)};e.sanitizeMessage=function(t,n){var r;if(n){if(n.length>e.MAX_MESSAGE_LENGTH){r=n.substring(0,e.MAX_MESSAGE_LENGTH);t.throwInternal(Ma.WARNING,Ua.MessageTruncated,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},true)}}return r||n};e.sanitizeException=function(t,n){var r;if(n){if(n.length>e.MAX_EXCEPTION_LENGTH){r=n.substring(0,e.MAX_EXCEPTION_LENGTH);t.throwInternal(Ma.WARNING,Ua.ExceptionTruncated,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},true)}}return r||n};e.sanitizeProperties=function(t,n){if(n){var r={};Oa(n,(function(n,i){if(Da.isObject(i)&&aa()){try{i=sa().stringify(i)}catch(e){t.throwInternal(Ma.WARNING,Ua.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:e},true)}}i=e.sanitizeString(t,i,e.MAX_PROPERTY_LENGTH);n=e.sanitizeKeyAndAddUniqueness(t,n,r);r[n]=i}));n=r}return n};e.sanitizeMeasurements=function(t,n){if(n){var r={};Oa(n,(function(n,i){n=e.sanitizeKeyAndAddUniqueness(t,n,r);r[n]=i}));n=r}return n};e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,Ua.IdTooLong).toString():n};e.sanitizeInput=function(t,n,r,i){var o;if(n){n=e.trim(n);if(n.length>r){o=n.substring(0,r);t.throwInternal(Ma.WARNING,i,"input is too long, it has been truncated to "+r+" characters.",{data:n},true)}}return o||n};e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)};e.trim=function(e){if(!Da.isString(e)){return e}return e.replace(/^\s+|\s+$/g,"")};e.MAX_NAME_LENGTH=150;e.MAX_ID_LENGTH=128;e.MAX_PROPERTY_LENGTH=8192;e.MAX_STRING_LENGTH=1024;e.MAX_URL_LENGTH=2048;e.MAX_MESSAGE_LENGTH=32768;e.MAX_EXCEPTION_LENGTH=32768;return e}();var wu=ea();var xu=Da.isString;var Su=null;function Iu(e,t){var n=e.length;var r=n-t.length;return e.substring(r>=0?r:0,n)===t}var _u=function(){function e(){}e.createDomEvent=function(e){var t=null;if(Da.isFunction(Event)){t=new Event(e)}else{var n=$o();if(n&&n.createEvent){t=n.createEvent("Event");t.initEvent(e,true,true)}}return t};e.disableStorage=function(){e._canUseLocalStorage=false;e._canUseSessionStorage=false};e._getLocalStorageObject=function(){if(e.canUseLocalStorage()){return e._getVerifiedStorageObject(vu.LocalStorage)}return null};e._getVerifiedStorageObject=function(e){var t=null;var n;var r;try{if(Da.isNullOrUndefined(Go())){return null}r=new Date;t=e===vu.LocalStorage?Ko("localStorage"):Ko("sessionStorage");t.setItem(r.toString(),r.toString());n=t.getItem(r.toString())!==r.toString();t.removeItem(r.toString());if(n){t=null}}catch(e){t=null}return t};e.isInternalApplicationInsightsEndpoint=function(t){return e._internalEndpoints.indexOf(t.toLowerCase())!==-1};e.canUseLocalStorage=function(){if(e._canUseLocalStorage===undefined){e._canUseLocalStorage=!!e._getVerifiedStorageObject(vu.LocalStorage)}return e._canUseLocalStorage};e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(r!==null){try{return r.getItem(n)}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return null};e.setStorage=function(t,n,r){var i=e._getLocalStorageObject();if(i!==null){try{i.setItem(n,r);return true}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(r!==null){try{r.removeItem(n);return true}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e._getSessionStorageObject=function(){if(e.canUseSessionStorage()){return e._getVerifiedStorageObject(vu.SessionStorage)}return null};e.canUseSessionStorage=function(){if(e._canUseSessionStorage===undefined){e._canUseSessionStorage=!!e._getVerifiedStorageObject(vu.SessionStorage)}return e._canUseSessionStorage};e.getSessionStorageKeys=function(){var t=[];if(e.canUseSessionStorage()){Oa(Ko("sessionStorage"),(function(e){t.push(e)}))}return t};e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(r!==null){try{return r.getItem(n)}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return null};e.setSessionStorage=function(t,n,r){var i=e._getSessionStorageObject();if(i!==null){try{i.setItem(n,r);return true}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(r!==null){try{r.removeItem(n);return true}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.disableCookies=function(){Da.disableCookies()};e.canUseCookies=function(t){if(Da._canUseCookies===undefined){Da._canUseCookies=false;try{Da._canUseCookies=e.document.cookie!==undefined}catch(n){t.throwInternal(Ma.WARNING,Ua.CannotAccessCookie,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return Da._canUseCookies};e.disallowsSameSiteNone=function(e){if(!xu(e)){return false}if(e.indexOf("CPU iPhone OS 12")!==-1||e.indexOf("iPad; CPU OS 12")!==-1){return true}if(e.indexOf("Macintosh; Intel Mac OS X 10_14")!==-1&&e.indexOf("Version/")!==-1&&e.indexOf("Safari")!==-1){return true}if(e.indexOf("Macintosh; Intel Mac OS X 10_14")!==-1&&Iu(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")){return true}if(e.indexOf("Chrome/5")!==-1||e.indexOf("Chrome/6")!==-1){return true}if(e.indexOf("UnrealEngine")!==-1&&e.indexOf("Chrome")===-1){return true}if(e.indexOf("UCBrowser/12")!==-1||e.indexOf("UCBrowser/11")!==-1){return true}return false};e.setCookie=function(t,n,r,i){if(e.canUseCookies(t)){var o="";var a="";if(i){o=";domain="+i}var s=ra();if(s&&s.protocol==="https:"){a=";secure";if(Su===null){Su=e.disallowsSameSiteNone((ea()||{}).userAgent)}if(!Su){r=r+";SameSite=None"}}e.document.cookie=n+"="+r+o+";path=/"+a}};e.stringToBoolOrDefault=function(e,t){if(t===void 0){t=false}if(e===undefined||e===null){return t}return e.toString().toLowerCase()==="true"};e.getCookie=function(t,n){if(!e.canUseCookies(t)){return}var r="";if(n&&n.length){var i=n+"=";var o=e.document.cookie.split(";");for(var a=0;a<o.length;a++){var s=o[a];s=e.trim(s);if(s&&s.indexOf(i)===0){r=s.substring(i.length,o[a].length);break}}}return r};e.deleteCookie=function(t,n){if(e.canUseCookies(t)){e.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;"}};e.random32=function(){return Da.random32(true)};e.getIEVersion=function(e){if(e===void 0){e=null}var t=e?e.toLowerCase():wu?(wu.userAgent||"").toLowerCase():"";if(t.indexOf("msie")!==-1){return parseInt(t.split("msie")[1])}else if(t.indexOf("trident/")){var n=parseInt(t.split("trident/")[1]);if(n){return n+4}}return null};e.msToTimeSpan=function(e){if(isNaN(e)||e<0){e=0}e=Math.round(e);var t=""+e%1e3;var n=""+Math.floor(e/1e3)%60;var r=""+Math.floor(e/(1e3*60))%60;var i=""+Math.floor(e/(1e3*60*60))%24;var o=Math.floor(e/(1e3*60*60*24));t=t.length===1?"00"+t:t.length===2?"0"+t:t;n=n.length<2?"0"+n:n;r=r.length<2?"0"+r:r;i=i.length<2?"0"+i:i;return(o>0?o+".":"")+i+":"+r+":"+n+"."+t};e.isCrossOriginError=function(e,t,n,r,i){return(e==="Script error."||e==="Script error")&&!i};e.dump=function(e){var t=Object[Do].toString.call(e);var n="";if(t==="[object Error]"){n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"}else if(aa()){n=sa().stringify(e)}return t+n};e.getExceptionName=function(e){var t=Object[Do].toString.call(e);if(t==="[object Error]"){return e.name}return""};e.addEventHandler=function(e,t){return qa.Attach(Yo(),e,t)};e.IsBeaconApiSupported=function(){return"sendBeacon"in wu&&wu.sendBeacon};e.getExtension=function(e,t){var n=null;var r=0;while(!n&&r<e.length){if(e[r]&&e[r].identifier===t){n=e[r]}r++}return n};e.document=$o()||{};e._canUseLocalStorage=undefined;e._canUseSessionStorage=undefined;e._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];e.NotSpecified="not_specified";e.trim=Da.strTrim;e.newId=Da.newId;e.generateW3CId=Da.generateW3CId;e.isArray=Da.isArray;e.isError=Da.isError;e.isDate=Da.isDate;e.toISOStringForIE8=Da.toISOString;return e}();var Cu=function(){function e(){}e.parseUrl=function(t){var n=e._htmlAnchorIdx;var r=e._htmlAnchorElement;var i=r[n];if(!e.document.createElement){i={host:e.parseHost(t,true)}}else if(!r[n]){i=r[n]=e.document.createElement("a")}i.href=t;n++;if(n>=r.length){n=0}e._htmlAnchorIdx=n;return i};e.getAbsoluteUrl=function(t){var n;var r=e.parseUrl(t);if(r){n=r.href}return n};e.getPathName=function(t){var n;var r=e.parseUrl(t);if(r){n=r.pathname}return n};e.getCompleteUrl=function(e,t){if(e){return e.toUpperCase()+" "+t}else{return t}};e.parseHost=function(t,n){var r=e.parseFullHost(t,n);if(r){var i=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(i!=null&&i.length>3&&xu(i[2])&&i[2].length>0){return i[2]+(i[3]||"")}}return r};e.parseFullHost=function(e,t){var n=null;if(e){var r=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(r!=null&&r.length>2&&xu(r[2])&&r[2].length>0){n=r[2]||"";if(t&&r.length>2){var i=(r[1]||"").toLowerCase();var o=r[3]||"";if(i==="http"&&o===":80"){o=""}else if(i==="https"&&o===":443"){o=""}n+=o}}}return n};e.document=$o()||{};e._htmlAnchorIdx=0;e._htmlAnchorElement=[null,null,null,null,null];return e}();var ku=function(){function e(){}e.canIncludeCorrelationHeader=function(e,t,n){if(!t||e&&e.disableCorrelationHeaders){return false}if(e&&e.correlationHeaderExcludePatterns){for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++){if(e.correlationHeaderExcludePatterns[r].test(t)){return false}}}var i=Cu.parseUrl(t).host.toLowerCase();if(i&&(i.indexOf(":443")!==-1||i.indexOf(":80")!==-1)){i=(Cu.parseFullHost(t,true)||"").toLowerCase()}if((!e||!e.enableCorsCorrelation)&&i!==n){return false}var o=e&&e.correlationHeaderDomains;if(o){var a;Da.arrForEach(o,(function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));a=a||t.test(i)}));if(!a){return false}}var s=e&&e.correlationHeaderExcludedDomains;if(!s||s.length===0){return true}for(var r=0;r<s.length;r++){var u=new RegExp(s[r].toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));if(u.test(i)){return false}}return i&&i.length>0};e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,yu.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix){return n}}};e.getCorrelationContextValue=function(e,t){if(e){var n=e.split(",");for(var r=0;r<n.length;++r){var i=n[r].split("=");if(i.length===2&&i[0]===t){return i[1]}}}};e.correlationIdPrefix="cid-v1:";return e}();var Tu=function(){function e(){}e.ParseDependencyPath=function(e,t,n,r){var i,o=r,a=r;if(t&&t.length>0){var s=Cu.parseUrl(t);i=s.host;if(!o){if(s.pathname!=null){var u=s.pathname.length===0?"/":s.pathname;if(u.charAt(0)!=="/"){u="/"+u}a=s.pathname;o=bu.sanitizeString(e,n?n+" "+u:u)}else{o=bu.sanitizeString(e,t)}}}else{i=r;o=r}return{target:i,name:o,data:a}};return e}();var Eu=function(){function e(){}e.Now=function(){var e=oa();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0){return t}}return(new Date).getTime()};e.GetDuration=function(e,t){var n=null;if(e!==0&&t!==0&&!Da.isNullOrUndefined(e)&&!Da.isNullOrUndefined(t)){n=t-e}return n};return e}();var Au="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";var Nu="sampleRate";var Fu="ProcessLegacy";var Pu="http.method";var Ou="https://dc.services.visualstudio.com";var Du=function(){function e(){}e.parse=function(t){if(!t){return{}}var n=t.split(e._FIELDS_SEPARATOR);var r=Da.arrReduce(n,(function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(r.length===2){var i=r[0].toLowerCase();var o=r[1];t[i]=o}return t}),{});if(Da.objKeys(r).length>0){if(r.endpointsuffix){var i=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+i+"dc."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||Ou}return r};e._FIELDS_SEPARATOR=";";e._FIELD_KEY_VALUE_SEPARATOR="=";return e}();var Ru=function(){function e(){}return e}();var qu=function(e){__extends(t,e);function t(){return e.call(this)||this}return t}(Ru);var Mu=function(){function e(){this.ver=1;this.sampleRate=100;this.tags={}}return e}();var Uu=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this)||this;i.name=bu.sanitizeString(t,r)||_u.NotSpecified;i.data=n;i.time=Da.toISOString(new Date);i.aiDataContract={time:mu.Required,iKey:mu.Required,name:mu.Required,sampleRate:function(){return i.sampleRate===100?mu.Hidden:mu.Required},tags:mu.Required,data:mu.Required};return i}return t}(Mu);var Lu=function(){function e(){}return e}();var Bu=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Lu);var ju=function(e){__extends(t,e);function t(t,n,r,i){var o=e.call(this)||this;o.aiDataContract={ver:mu.Required,name:mu.Required,properties:mu.Default,measurements:mu.Default};o.name=bu.sanitizeString(t,n)||_u.NotSpecified;o.properties=bu.sanitizeProperties(t,r);o.measurements=bu.sanitizeMeasurements(t,i);return o}t.envelopeType="Microsoft.ApplicationInsights.{0}.Event";t.dataType="EventData";return t}(Bu);var Vu=function(){function e(){}return e}();var zu=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.exceptions=[];t.properties={};t.measurements={};return t}return t}(Lu);var Qu=function(){function e(){this.hasFullStack=true;this.parsedStack=[]}return e}();var Hu="error";function Wu(e){return"hasFullStack"in e&&"typeName"in e}function Gu(e){return"ver"in e&&"exceptions"in e&&"properties"in e}function Ku(e){var t="";if(e){t=e.typeName||e.name||"";if(!t){try{var n=/function (.{1,})\(/;var r=n.exec(e.constructor.toString());t=r&&r.length>1?r[1]:""}catch(e){}}}return t}var Xu=function(e){__extends(t,e);function t(t,n,r,i,o,a){var s=e.call(this)||this;s.aiDataContract={ver:mu.Required,exceptions:mu.Required,severityLevel:mu.Default,properties:mu.Default,measurements:mu.Default};if(!Gu(n)){s.exceptions=[new Yu(t,n)];s.properties=bu.sanitizeProperties(t,r)||{};s.measurements=bu.sanitizeMeasurements(t,i);if(o){s.severityLevel=o}if(a){s.id=a}}else{s.exceptions=n.exceptions;s.properties=n.properties;s.measurements=n.measurements;if(n.severityLevel){s.severityLevel=n.severityLevel}if(n.id){s.id=n.id}if(n.problemGroup){s.problemGroup=n.problemGroup}s.ver=2;if(!Da.isNullOrUndefined(n.isManual)){s.isManual=n.isManual}}return s}t.CreateFromInterface=function(e,n,r,i){var o=n.exceptions&&Da.arrMap(n.exceptions,(function(t){return Yu.CreateFromInterface(e,t)}));var a=new t(e,__assign({},n,{exceptions:o}),r,i);return a};t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,s=e.isManual;var u=t instanceof Array&&Da.arrMap(t,(function(e){return e.toInterface()}))||undefined;return{ver:"4.0",exceptions:u,severityLevel:i,properties:n,measurements:r,problemGroup:o,id:a,isManual:s}};t.CreateSimpleException=function(e,t,n,r,i,o){return{exceptions:[{hasFullStack:true,message:e,stack:i,typeName:t}]}};t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception";t.dataType="ExceptionData";return t}(zu);var Yu=function(e){__extends(t,e);function t(n,r){var i=e.call(this)||this;i.aiDataContract={id:mu.Default,outerId:mu.Default,typeName:mu.Required,message:mu.Required,hasFullStack:mu.Default,stack:mu.Default,parsedStack:mu.Array};if(!Wu(r)){var o=r;if(!_u.isError(o)){o=o[Hu]||o.evt||o}i.typeName=bu.sanitizeString(n,Ku(o))||_u.NotSpecified;i.message=bu.sanitizeMessage(n,r.message)||_u.NotSpecified;var a=r.stack;i.parsedStack=t.parseStack(a);i.stack=bu.sanitizeException(n,a);i.hasFullStack=_u.isArray(i.parsedStack)&&i.parsedStack.length>0}else{i.typeName=r.typeName;i.message=r.message;i.stack=r.stack;i.parsedStack=r.parsedStack;i.hasFullStack=r.hasFullStack}return i}t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&Da.arrMap(this.parsedStack,(function(e){return e.toInterface()}));var t={id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined};return t};t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&Da.arrMap(n.parsedStack,(function(e){return Ju.CreateFromInterface(e)}))||n.parsedStack;var i=new t(e,__assign({},n,{parsedStack:r}));return i};t.parseStack=function(e){var t;if(Da.isString(e)){var n=e.split("\n");t=[];var r=0;var i=0;for(var o=0;o<=n.length;o++){var a=n[o];if(Ju.regex.test(a)){var s=new Ju(n[o],r++);i+=s.sizeInBytes;t.push(s)}}var u=32*1024;if(i>u){var c=0;var l=t.length-1;var f=0;var d=c;var p=l;while(c<l){var h=t[c].sizeInBytes;var v=t[l].sizeInBytes;f+=h+v;if(f>u){var m=p-d+1;t.splice(d,m);break}d=c;p=l;c++;l--}}}return t};return t}(Qu);var Ju=function(e){__extends(t,e);function t(n,r){var i=e.call(this)||this;i.sizeInBytes=0;i.aiDataContract={level:mu.Required,method:mu.Required,assembly:mu.Default,fileName:mu.Default,line:mu.Default};if(typeof n==="string"){var o=n;i.level=r;i.method="<no_method>";i.assembly=_u.trim(o);i.fileName="";i.line=0;var a=o.match(t.regex);if(a&&a.length>=5){i.method=_u.trim(a[2])||i.method;i.fileName=_u.trim(a[4]);i.line=parseInt(a[5])||0}}else{i.level=n.level;i.method=n.method;i.assembly=n.assembly;i.fileName=n.fileName;i.line=n.line;i.sizeInBytes=0}i.sizeInBytes+=i.method.length;i.sizeInBytes+=i.fileName.length;i.sizeInBytes+=i.assembly.length;i.sizeInBytes+=t.baseSize;i.sizeInBytes+=i.level.toString().length;i.sizeInBytes+=i.line.toString().length;return i}t.CreateFromInterface=function(e){return new t(e,null)};t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}};t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/;t.baseSize=58;return t}(Vu);var $u=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.metrics=[];t.properties={};t.measurements={};return t}return t}(Lu);var Zu;(function(e){e[e["Measurement"]=0]="Measurement";e[e["Aggregation"]=1]="Aggregation"})(Zu||(Zu={}));var ec=function(){function e(){this.kind=Zu.Measurement}return e}();var tc=function(e){__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.aiDataContract={name:mu.Required,kind:mu.Default,value:mu.Required,count:mu.Default,min:mu.Default,max:mu.Default,stdDev:mu.Default};return t}return t}(ec);var nc=function(e){__extends(t,e);function t(t,n,r,i,o,a,s,u){var c=e.call(this)||this;c.aiDataContract={ver:mu.Required,metrics:mu.Required,properties:mu.Default};var l=new tc;l.count=i>0?i:undefined;l.max=isNaN(a)||a===null?undefined:a;l.min=isNaN(o)||o===null?undefined:o;l.name=bu.sanitizeString(t,n)||_u.NotSpecified;l.value=r;c.metrics=[l];c.properties=bu.sanitizeProperties(t,s);c.measurements=bu.sanitizeMeasurements(t,u);return c}t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric";t.dataType="MetricData";return t}($u);var rc=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Bu);var ic=function(e){__extends(t,e);function t(t,n,r,i,o,a,s){var u=e.call(this)||this;u.aiDataContract={ver:mu.Required,name:mu.Default,url:mu.Default,duration:mu.Default,properties:mu.Default,measurements:mu.Default,id:mu.Default};u.id=bu.sanitizeId(t,s);u.url=bu.sanitizeUrl(t,r);u.name=bu.sanitizeString(t,n)||_u.NotSpecified;if(!isNaN(i)){u.duration=_u.msToTimeSpan(i)}u.properties=bu.sanitizeProperties(t,o);u.measurements=bu.sanitizeMeasurements(t,a);return u}t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview";t.dataType="PageviewData";return t}(rc);var oc=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.success=true;t.properties={};t.measurements={};return t}return t}(Lu);var ac=function(e){__extends(t,e);function t(t,n,r,i,o,a,s,u,c,l,f,d){if(c===void 0){c="Ajax"}var p=e.call(this)||this;p.aiDataContract={id:mu.Required,ver:mu.Required,name:mu.Default,resultCode:mu.Default,duration:mu.Default,success:mu.Default,data:mu.Default,target:mu.Default,type:mu.Default,properties:mu.Default,measurements:mu.Default,kind:mu.Default,value:mu.Default,count:mu.Default,min:mu.Default,max:mu.Default,stdDev:mu.Default,dependencyKind:mu.Default,dependencySource:mu.Default,commandName:mu.Default,dependencyTypeName:mu.Default};p.id=n;p.duration=_u.msToTimeSpan(o);p.success=a;p.resultCode=s+"";p.type=bu.sanitizeString(t,c);var h=Tu.ParseDependencyPath(t,r,u,i);p.data=bu.sanitizeUrl(t,i)||h.data;p.target=bu.sanitizeString(t,h.target);if(l){p.target=p.target+" | "+l}p.name=bu.sanitizeString(t,h.name);p.properties=bu.sanitizeProperties(t,f);p.measurements=bu.sanitizeMeasurements(t,d);return p}t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency";t.dataType="RemoteDependencyData";return t}(oc);var sc=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Lu);var uc=function(e){__extends(t,e);function t(t,n,r,i,o){var a=e.call(this)||this;a.aiDataContract={ver:mu.Required,message:mu.Required,severityLevel:mu.Default,properties:mu.Default};n=n||_u.NotSpecified;a.message=bu.sanitizeMessage(t,n);a.properties=bu.sanitizeProperties(t,i);a.measurements=bu.sanitizeMeasurements(t,o);if(r){a.severityLevel=r}return a}t.envelopeType="Microsoft.ApplicationInsights.{0}.Message";t.dataType="MessageData";return t}(sc);var cc=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(rc);var lc=function(e){__extends(t,e);function t(t,n,r,i,o,a,s){var u=e.call(this)||this;u.aiDataContract={ver:mu.Required,name:mu.Default,url:mu.Default,duration:mu.Default,perfTotal:mu.Default,networkConnect:mu.Default,sentRequest:mu.Default,receivedResponse:mu.Default,domProcessing:mu.Default,properties:mu.Default,measurements:mu.Default};u.url=bu.sanitizeUrl(t,r);u.name=bu.sanitizeString(t,n)||_u.NotSpecified;u.properties=bu.sanitizeProperties(t,o);u.measurements=bu.sanitizeMeasurements(t,a);if(s){u.domProcessing=s.domProcessing;u.duration=s.duration;u.networkConnect=s.networkConnect;u.perfTotal=s.perfTotal;u.receivedResponse=s.receivedResponse;u.sentRequest=s.sentRequest}return u}t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance";t.dataType="PageviewPerformanceData";return t}(cc);var fc=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.aiDataContract={baseType:mu.Required,baseData:mu.Required};r.baseType=t;r.baseData=n;return r}return t}(qu);var dc;(function(e){e[e["Verbose"]=0]="Verbose";e[e["Information"]=1]="Information";e[e["Warning"]=2]="Warning";e[e["Error"]=3]="Error";e[e["Critical"]=4]="Critical"})(dc||(dc={}));var pc=function(){function e(){this.applicationVersion="ai.application.ver";this.applicationBuild="ai.application.build";this.applicationTypeId="ai.application.typeId";this.applicationId="ai.application.applicationId";this.applicationLayer="ai.application.layer";this.deviceId="ai.device.id";this.deviceIp="ai.device.ip";this.deviceLanguage="ai.device.language";this.deviceLocale="ai.device.locale";this.deviceModel="ai.device.model";this.deviceFriendlyName="ai.device.friendlyName";this.deviceNetwork="ai.device.network";this.deviceNetworkName="ai.device.networkName";this.deviceOEMName="ai.device.oemName";this.deviceOS="ai.device.os";this.deviceOSVersion="ai.device.osVersion";this.deviceRoleInstance="ai.device.roleInstance";this.deviceRoleName="ai.device.roleName";this.deviceScreenResolution="ai.device.screenResolution";this.deviceType="ai.device.type";this.deviceMachineName="ai.device.machineName";this.deviceVMName="ai.device.vmName";this.deviceBrowser="ai.device.browser";this.deviceBrowserVersion="ai.device.browserVersion";this.locationIp="ai.location.ip";this.locationCountry="ai.location.country";this.locationProvince="ai.location.province";this.locationCity="ai.location.city";this.operationId="ai.operation.id";this.operationName="ai.operation.name";this.operationParentId="ai.operation.parentId";this.operationRootId="ai.operation.rootId";this.operationSyntheticSource="ai.operation.syntheticSource";this.operationCorrelationVector="ai.operation.correlationVector";this.sessionId="ai.session.id";this.sessionIsFirst="ai.session.isFirst";this.sessionIsNew="ai.session.isNew";this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate";this.userAccountId="ai.user.accountId";this.userAgent="ai.user.userAgent";this.userId="ai.user.id";this.userStoreRegion="ai.user.storeRegion";this.userAuthUserId="ai.user.authUserId";this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate";this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate";this.cloudName="ai.cloud.name";this.cloudRole="ai.cloud.role";this.cloudRoleVer="ai.cloud.roleVer";this.cloudRoleInstance="ai.cloud.roleInstance";this.cloudEnvironment="ai.cloud.environment";this.cloudLocation="ai.cloud.location";this.cloudDeploymentUnit="ai.cloud.deploymentUnit";this.internalNodeName="ai.internal.nodeName";this.internalSdkVersion="ai.internal.sdkVersion";this.internalAgentVersion="ai.internal.agentVersion";this.internalSnippet="ai.internal.snippet";this.internalSdkSrc="ai.internal.sdkSrc"}return e}();var hc=function(){function e(){}e.create=function(e,t,n,r,i,o){n=bu.sanitizeString(r,n)||_u.NotSpecified;if(Da.isNullOrUndefined(e)||Da.isNullOrUndefined(t)||Da.isNullOrUndefined(n)){throw Error("Input doesn't contain all required fields")}var a={name:n,time:Da.toISOString(new Date),iKey:"",ext:o?o:{},tags:[],data:{},baseType:t,baseData:e};if(!Da.isNullOrUndefined(i)){Oa(i,(function(e,t){a.data[e]=t}))}return a};return e}();var vc=function(){function e(){}e.UserExt="user";e.DeviceExt="device";e.TraceExt="trace";e.WebExt="web";e.AppExt="app";e.OSExt="os";e.SessionExt="ses";e.SDKExt="sdk";return e}();var mc=new pc;var gc="AppInsightsPropertiesPlugin";var yc="AppInsightsChannelPlugin";var bc="ApplicationInsightsAnalytics";
|
|
5
|
+
*/var La="constructor";var Ba="prototype";var ja="function";var Va="_dynInstFuncs";var za="_isDynProxy";var Qa="_dynClass";var Ha="_dynCls$";var Wa="_dynInstChk";var Ga=Wa;var Ka="_dfOpts";var Xa="_unknown_";var Ya="__proto__";var Ja="useBaseInst";var $a="setInstFuncs";var Za=Object["getPrototypeOf"];var es=0;function ts(e,t){return e&&Object[Ba].hasOwnProperty.call(e,t)}function ns(e){return typeof e===ja}function rs(e){return e&&(e===Object[Ba]||e===Array[Ba])}function is(e){return rs(e)||e===Function[Ba]}function os(e){if(e){if(Za){return Za(e)}var t=e[Ya]||e[Ba]||e[La];if(t){return t}}return null}function as(e,t,n){return t!==La&&ns(e[t])&&(n||ts(e,t))}function ss(e){throw new TypeError("DynamicProto: "+e)}function us(e){var t={};for(var n in e){if(!t[n]&&as(e,n,false)){t[n]=e[n]}}return t}function cs(e,t){for(var n=e.length-1;n>=0;n--){if(e[n]===t){return true}}return false}function ls(e,t,n,r){function i(e,t,n){var i=t[a];if(i[za]&&r){var o=e[Va]||{};if(o[Ga]!==false){i=(o[t[Qa]]||{})[n]||i}}return function(){return i.apply(e,arguments)}}var o={};for(var a in n){o[a]=i(t,n,a)}var s=os(e);var u=[];while(s&&!is(s)&&!cs(u,s)){for(var a in s){if(!o[a]&&as(s,a,!Za)){o[a]=i(t,s,a)}}u.push(s);s=os(s)}return o}function fs(e,t,n,r){var i=null;if(e&&ts(n,Qa)){var o=e[Va]||{};i=(o[n[Qa]]||{})[t];if(!i){ss("Missing ["+t+"] "+ja)}if(!i[Wa]&&o[Ga]!==false){var a=!ts(e,t);var s=os(e);var u=[];while(a&&s&&!is(s)&&!cs(u,s)){var c=s[t];if(c){a=c===r;break}u.push(s);s=os(s)}try{if(a){e[t]=i}i[Wa]=1}catch(e){o[Ga]=false}}}return i}function ds(e,t,n){var r=t[e];if(r===n){r=os(t)[e]}if(!ns(r)){ss("["+e+"] is not a "+ja)}return r}function ps(e,t,n,r,i){function o(e,t){var n=function(){var r=fs(this,t,e,n)||ds(t,e,n);return r.apply(this,arguments)};n[za]=1;return n}if(!rs(e)){var a=n[Va]=n[Va]||{};var s=a[t]=a[t]||{};if(a[Ga]!==false){a[Ga]=!!i}for(var u in n){if(as(n,u,false)&&n[u]!==r[u]){s[u]=n[u];delete n[u];if(!ts(e,u)||e[u]&&!e[u][za]){e[u]=o(e,u)}}}}}function hs(e,t){var n=os(t);while(n&&!is(n)){if(n===e){return true}n=os(n)}return false}function vs(e,t){if(ts(e,Ba)){return e.name||t||Xa}return((e||{})[La]||{}).name||t||Xa}function ms(e,t,n,r){if(!ts(e,Ba)){ss("theClass is an invalid class definition.")}var i=e[Ba];if(!hs(i,t)){ss("["+vs(e)+"] is not in class hierarchy of ["+vs(t)+"]")}var o=null;if(ts(i,Qa)){o=i[Qa]}else{o=Ha+vs(e,"_")+"$"+es;es++;i[Qa]=o}var a=ms[Ka];var s=!!a[Ja];if(s&&r&&r[Ja]!==undefined){s=!!r[Ja]}var u=us(t);var c=ls(i,t,u,s);n(t,c);var l=!!Za&&!!a[$a];if(l&&r){l=!!r[$a]}ps(i,o,t,u,l!==false)}var gs={setInstFuncs:true,useBaseInst:true};ms[Ka]=gs;var ys="AI (Internal): ";var bs="AI: ";var ws="AITR_";function xs(e){if(e){return'"'+e.replace(/\"/g,"")+'"'}return""}var Ss=function(){function e(e,t,n,r){if(n===void 0){n=false}var i=this;i.messageId=e;i.message=(n?bs:ys)+e;var o="";if(aa()){o=sa().stringify(r)}var a=(t?" message:"+xs(t):"")+(r?" props:"+xs(o):"");i.message+=a}e.dataType="MessageData";return e}();var Is=function(){function e(t){this.identifier="DiagnosticLogger";this.queue=[];var n=0;var r={};ms(e,this,(function(e){var i=Da.isNullOrUndefined;var o=Da.isUndefined;var a=Da.isFunction;if(i(t)){t={}}e.consoleLoggingLevel=function(){return s("loggingLevelConsole",0)};e.telemetryLoggingLevel=function(){return s("loggingLevelTelemetry",1)};e.maxInternalMessageLimit=function(){return s("maxMessageLimit",25)};e.enableDebugExceptions=function(){return s("enableDebugExceptions",false)};e.throwInternal=function(t,n,i,a,s){if(s===void 0){s=false}var u=new Ss(n,i,s,a);if(e.enableDebugExceptions()){throw u}else{if(!o(u)&&!!u){if(!o(u.message)){if(s){var c=+u.messageId;if(!r[c]&&e.consoleLoggingLevel()>=Ma.WARNING){e.warnToConsole(u.message);r[c]=true}}else{if(e.consoleLoggingLevel()>=Ma.WARNING){e.warnToConsole(u.message)}}e.logInternalMessage(t,u)}}}};e.warnToConsole=function(e){var t=ia();if(!!t){var n="log";if(t.warn){n="warn"}if(a(t[n])){t[n](e)}}};e.resetInternalMessageCount=function(){n=0;r={}};e.logInternalMessage=function(t,i){if(u()){return}var o=true;var a=ws+i.messageId;if(r[a]){o=false}else{r[a]=true}if(o){if(t<=e.telemetryLoggingLevel()){e.queue.push(i);n++}if(n===e.maxInternalMessageLimit()){var s="Internal events throttle limit per PageView reached for this app.";var c=new Ss(Ua.MessageLimitPerPVExceeded,s,false);e.queue.push(c);e.warnToConsole(s)}}};function s(e,n){var r=t[e];if(!i(r)){return r}return n}function u(){return n>=e.maxInternalMessageLimit()}}))}e.prototype.enableDebugExceptions=function(){return false};e.prototype.consoleLoggingLevel=function(){return 0};e.prototype.telemetryLoggingLevel=function(){return 1};e.prototype.maxInternalMessageLimit=function(){return 25};e.prototype.throwInternal=function(e,t,n,r,i){};e.prototype.warnToConsole=function(e){};e.prototype.resetInternalMessageCount=function(){};e.prototype.logInternalMessage=function(e,t){};return e}();var _s="ctx";var Cs=function(){function e(t,n,r){var i=this;var o=false;i.start=Da.dateNow();i.name=t;i.isAsync=r;i.isChildEvt=function(){return false};if(Da.isFunction(n)){var a;o=Da.objDefineAccessors(i,"payload",(function(){if(!a&&Da.isFunction(n)){a=n();n=null}return a}))}i.getCtx=function(t){if(t){if(t===e.ParentContextKey||t===e.ChildrenContextKey){return i[t]}return(i[_s]||{})[t]}return null};i.setCtx=function(t,n){if(t){if(t===e.ParentContextKey){if(!i[t]){i.isChildEvt=function(){return true}}i[t]=n}else if(t===e.ChildrenContextKey){i[t]=n}else{var r=i[_s]=i[_s]||{};r[t]=n}}};i.complete=function(){var t=0;var r=i.getCtx(e.ChildrenContextKey);if(Da.isArray(r)){for(var a=0;a<r.length;a++){var s=r[a];if(s){t+=s.time}}}i.time=Da.dateNow()-i.start;i.exTime=i.time-t;i.complete=function(){};if(!o&&Da.isFunction(n)){i.payload=n()}}}e.ParentContextKey="parent";e.ChildrenContextKey="childEvts";return e}();var ks=function(){function e(t){this.ctx={};ms(e,this,(function(e){e.create=function(e,t,n){return new Cs(e,t,n)};e.fire=function(e){if(e){e.complete();if(t){t.perfEvent(e)}}};e.setCtx=function(t,n){if(t){var r=e[_s]=e[_s]||{};r[t]=n}};e.getCtx=function(t){return(e[_s]||{})[t]}}))}e.prototype.create=function(e,t,n){return null};e.prototype.fire=function(e){};e.prototype.setCtx=function(e,t){};e.prototype.getCtx=function(e){};return e}();var Ts="CoreUtils.doPerf";function Es(e,t,n,r,i){if(e){var o=e;if(o&&Da.isFunction(o["getPerfMgr"])){o=o["getPerfMgr"]()}if(o){var a=void 0;var s=o.getCtx(Ts);try{a=o.create(t(),r,i);if(a){if(s&&a.setCtx){a.setCtx(Cs.ParentContextKey,s);if(s.getCtx&&s.setCtx){var u=s.getCtx(Cs.ChildrenContextKey);if(!u){u=[];s.setCtx(Cs.ChildrenContextKey,u)}u.push(a)}}o.setCtx(Ts,a);return n(a)}}catch(e){if(a&&a.setCtx){a.setCtx("exception",e)}}finally{if(a){o.fire(a)}o.setCtx(Ts,s)}}}return n()}var As=Da.isFunction;var Fs=function(){function e(e,t){var n=this;var r=null;var i=As(e.processTelemetry);var o=As(e.setNextPlugin);n._hasRun=false;n.getPlugin=function(){return e};n.getNext=function(){return r};n.setNext=function(e){r=e};n.processTelemetry=function(a,s){if(!s){s=t}var u=e?e.identifier:"TelemetryPluginChain";Es(s?s.core():null,(function(){return u+":processTelemetry"}),(function(){if(e&&i){n._hasRun=true;try{s.setNext(r);if(o){e.setNextPlugin(r)}r&&(r._hasRun=false);e.processTelemetry(a,s)}catch(n){var t=r&&r._hasRun;if(!r||!t){s.diagLog().throwInternal(Ma.CRITICAL,Ua.PluginException,"Plugin ["+e.identifier+"] failed during processTelemetry - "+n)}if(r&&!t){r.processTelemetry(a,s)}}}else if(r){n._hasRun=true;r.processTelemetry(a,s)}}),(function(){return{item:a}}),!a.sync)}}return e}();var Ns=Da.isNullOrUndefined;function Ps(e,t){var n=[];if(e&&e.length>0){var r=null;for(var i=0;i<e.length;i++){var o=e[i];if(o&&Da.isFunction(o.processTelemetry)){var a=new Fs(o,t);n.push(a);if(r){r.setNext(a)}r=a}}}return n.length>0?n[0]:null}function Os(e,t,n){var r=[];var i=n?false:true;if(e){while(e){var o=e.getPlugin();if(i||o===n){i=true;r.push(o)}e=e.getNext()}}if(!i){r.push(n)}return Ps(r,t)}function Ds(e,t,n){var r=e;var i=false;if(n&&e){r=[];Da.arrForEach(e,(function(e){if(i||e===n){i=true;r.push(e)}}))}if(n&&!i){if(!r){r=[]}r.push(n)}return Ps(r,t)}var Rs=function(){function e(t,n,r,i){var o=this;var a=null;if(i!==null){if(t&&Da.isFunction(t.getPlugin)){a=Os(t,o,i||t.getPlugin())}else{if(i){a=Ds(t,o,i)}else if(Da.isUndefined(i)){a=Ps(t,o)}}}o.core=function(){return r};o.diagLog=function(){var e=(r||{}).logger;if(!e){e=new Is(n||{})}return e};o.getCfg=function(){return n};o.getExtCfg=function(e,t){if(t===void 0){t={}}var r;if(n){var i=n.extensionConfig;if(i&&e){r=i[e]}}return r?r:t};o.getConfig=function(e,t,r){if(r===void 0){r=false}var i;var a=o.getExtCfg(e,null);if(a&&!Ns(a[t])){i=a[t]}else if(n&&!Ns(n[t])){i=n[t]}return!Ns(i)?i:r};o.hasNext=function(){return a!=null};o.getNext=function(){return a};o.setNext=function(e){a=e};o.processNext=function(e){var t=a;if(t){a=t.getNext();t.processTelemetry(e,o)}};o.createNew=function(t,i){if(t===void 0){t=null}return new e(t||a,n,r,i)}}return e}();var qs=Da.isFunction;var Ms="getPlugin";var Us=function(){function e(){var e=this;var t=false;var n=null;var r=null;e.core=null;e.diagLog=function(t){return e._getTelCtx(t).diagLog()};e.isInitialized=function(){return t};e.setInitialized=function(e){t=e};e.setNextPlugin=function(e){r=e};e.processNext=function(e,t){if(t){t.processNext(e)}else if(r&&qs(r.processTelemetry)){r.processTelemetry(e,null)}};e._getTelCtx=function(t){if(t===void 0){t=null}var i=t;if(!i){var o=n||new Rs(null,{},e.core);if(r&&r[Ms]){i=o.createNew(null,r[Ms])}else{i=o.createNew(null,r)}}return i};e._baseTelInit=function(i,o,a,s){if(i){i.extensionConfig=i.extensionConfig||[]}if(!s&&o){s=o.getProcessTelContext().getNext()}var u=r;if(r&&r[Ms]){u=r[Ms]()}e.core=o;n=new Rs(s,i,o,u);t=true}}e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)};return e}();var Ls=Da.isFunction;var Bs="processTelemetry";var js="priority";var Vs="setNextPlugin";var zs="isInitialized";function Qs(e,t){var n=[];var r=null;var i=e.getNext();while(i){var o=i.getPlugin();if(o){if(r&&Ls(r[Vs])&&Ls(o[Bs])){r[Vs](o)}if(!Ls(o[zs])||!o[zs]()){n.push(o)}r=o;i=i.getNext()}}Da.arrForEach(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function Hs(e){return e.sort((function(e,t){var n=0;var r=Ls(t[Bs]);if(Ls(e[Bs])){n=r?e[js]-t[js]:1}else if(r){n=-1}return n}))}var Ws=500;var Gs="Channel has invalid priority";var Ks=Da.objDefineAccessors;var Xs=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.identifier="ChannelControllerPlugin";n.priority=Ws;var r=Da.arrForEach;var i;ms(t,n,(function(e,t){e.setNextPlugin=function(e){};e.processTelemetry=function(e,t){if(i){r(i,(function(r){if(r.length>0){var i=n._getTelCtx(t).createNew(r);i.processNext(e)}}))}};e.getChannelControls=function(){return i};e.initialize=function(n,o,a){if(e.isInitialized()){return}t.initialize(n,o,a);if(n.isCookieUseDisabled){Da.disableCookies()}s((n||{}).channels,a);r(i,(function(e){return Qs(new Rs(e,n,o),a)}))}}));function o(e){r(e,(function(e){if(e.priority<Ws){throw Error(Gs+e.identifier)}}))}function a(e){if(e&&e.length>0){e=e.sort((function(e,t){return e.priority-t.priority}));o(e);i.push(e)}}function s(e,t){i=[];if(e){r(e,(function(e){return a(e)}))}if(t){var n=[];r(t,(function(e){if(e.priority>Ws){n.push(e)}}));a(n)}}return n}t.prototype.processTelemetry=function(e,t){};t.prototype.getChannelControls=function(){return null};t.prototype.initialize=function(e,t,n){};t._staticInit=function(){Ks(t.prototype,"ChannelControls",t.prototype.getChannelControls);Ks(t.prototype,"channelQueue",t.prototype.getChannelControls)}();return t}(Us);var Ys="Extensions must provide callback to initialize";var Js=Da.arrForEach;var $s=Da.isNullOrUndefined;var Zs="_notificationManager";var eu=function(){function e(){var t=false;var n;var r;var i;var o;ms(e,this,(function(e){e._extensions=new Array;r=new Xs;e.logger=Da.objCreate({throwInternal:function(e,t,n,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}});n=[];e.isInitialized=function(){return t};e.initialize=function(n,o,a,s){if(e.isInitialized()){throw Error("Core should not be initialized more than once")}if(!n||$s(n.instrumentationKey)){throw Error("Please provide instrumentation key")}i=s;e[Zs]=s;e.config=n||{};n.extensions=$s(n.extensions)?[]:n.extensions;var u=n.extensionConfig=$s(n.extensionConfig)?{}:n.extensionConfig;u.NotificationManager=s;if(a){e.logger=a}var c=[];c.push.apply(c,o.concat(n.extensions));c=Hs(c);var l=[];var f={};Js(c,(function(e){if($s(e)||$s(e.initialize)){throw Error(Ys)}var t=e.priority;var n=e.identifier;if(e&&t){if(!$s(f[t])){a.warnToConsole("Two extensions have same priority #"+t+" - "+f[t]+", "+n)}else{f[t]=n}}if(!t||t<r.priority){l.push(e)}}));c.push(r);l.push(r);c=Hs(c);e._extensions=c;Qs(new Rs([r],n,e),c);Qs(new Rs(l,n,e),c);e._extensions=l;if(e.getTransmissionControls().length===0){throw new Error("No channels available")}t=true;e.releaseQueue()};e.getTransmissionControls=function(){return r.getChannelControls()};e.track=function(t){if(!t.iKey){t.iKey=e.config.instrumentationKey}if(!t.time){t.time=Da.toISOString(new Date)}if($s(t.ver)){t.ver="4.0"}if(e.isInitialized()){e.getProcessTelContext().processNext(t)}else{n.push(t)}};e.getProcessTelContext=function(){var t=e._extensions;var n=t;if(!t||t.length===0){n=[r]}return new Rs(n,e.config,e)};e.getNotifyMgr=function(){if(!i){i=Da.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}});e[Zs]=i}return i};e.getPerfMgr=function(){if(!o){if(e.config&&e.config.enablePerfMgr){o=new ks(e.getNotifyMgr())}}return o};e.setPerfMgr=function(e){o=e};e.eventCnt=function(){return n.length};e.releaseQueue=function(){if(n.length>0){Js(n,(function(t){e.getProcessTelContext().processNext(t)}));n=[]}}}))}e.prototype.initialize=function(e,t,n,r){};e.prototype.getTransmissionControls=function(){return null};e.prototype.track=function(e){};e.prototype.getProcessTelContext=function(){return null};e.prototype.getNotifyMgr=function(){return null};e.prototype.getPerfMgr=function(){return null};e.prototype.setPerfMgr=function(e){};e.prototype.eventCnt=function(){return 0};e.prototype.releaseQueue=function(){};return e}();var tu=function(){function e(t){this.listeners=[];var n=Da.arrForEach;var r=!!(t||{}).perfEvtsSendAll;ms(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)};e.removeNotificationListener=function(t){var n=Da.arrIndexOf(e.listeners,t);while(n>-1){e.listeners.splice(n,1);n=Da.arrIndexOf(e.listeners,t)}};e.eventsSent=function(t){n(e.listeners,(function(e){if(e&&e.eventsSent){setTimeout((function(){return e.eventsSent(t)}),0)}}))};e.eventsDiscarded=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsDiscarded){setTimeout((function(){return e.eventsDiscarded(t,r)}),0)}}))};e.eventsSendRequest=function(t,r){n(e.listeners,(function(e){if(e&&e.eventsSendRequest){if(r){setTimeout((function(){return e.eventsSendRequest(t,r)}),0)}else{try{e.eventsSendRequest(t,r)}catch(e){}}}}))};e.perfEvent=function(t){if(t){if(r||!t.isChildEvt()){n(e.listeners,(function(e){if(e&&e.perfEvent){if(t.isAsync){setTimeout((function(){return e.perfEvent(t)}),0)}else{try{e.perfEvent(t)}catch(e){}}}}))}}}}))}e.prototype.addNotificationListener=function(e){};e.prototype.removeNotificationListener=function(e){};e.prototype.eventsSent=function(e){};e.prototype.eventsDiscarded=function(e,t){};e.prototype.eventsSendRequest=function(e,t){};return e}();var nu=function(e){__extends(t,e);function t(){var n=e.call(this)||this;ms(t,n,(function(e,t){e.initialize=function(e,n,r,i){t.initialize(e,n,r||new Is(e),i||new tu(e))};e.track=function(i){Es(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){if(i===null){r(i);throw Error("Invalid telemetry item")}n(i);t.track(i)}),(function(){return{item:i}}),!i.sync)};e.addNotificationListener=function(t){var n=e.getNotifyMgr();if(n){n.addNotificationListener(t)}};e.removeNotificationListener=function(t){var n=e.getNotifyMgr();if(n){n.removeNotificationListener(t)}};e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;if(!n||!(n>0)){n=1e4}return setInterval((function(){var n=e.logger?e.logger.queue:[];Da.arrForEach(n,(function(n){var r={name:t?t:"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:Da.toISOString(new Date),baseType:Ss.dataType,baseData:{message:n.message}};e.track(r)}));n.length=0}),n)};function n(e){if(Da.isNullOrUndefined(e.name)){r(e);throw Error("telemetry name required")}}function r(t){var n=e.getNotifyMgr();if(n){n.eventsDiscarded([t],No.InvalidEvent)}}}));return n}t.prototype.initialize=function(e,t,n,r){};t.prototype.track=function(e){};t.prototype.addNotificationListener=function(e){};t.prototype.removeNotificationListener=function(e){};t.prototype.pollInternalLogs=function(e){return 0};return t}(eu);var ru="_aiHooks";var iu=["req","rsp","hkErr","fnErr"];var ou="__proto__";var au="constructor";function su(e,t){if(e){for(var n=0;n<e.length;n++){if(t(e[n],n)){break}}}}function uu(e,t,n,r,i){if(i>=0&&i<=2){su(e,(function(e,o){var a=e.cbks;var s=a[iu[i]];if(s){t.ctx=function(){var e=r[o]=r[o]||{};return e};try{s.apply(t.inst,n)}catch(e){var u=t.err;try{var c=a[iu[2]];if(c){t.err=e;c.apply(t.inst,n)}}catch(e){}finally{t.err=u}}}}))}}function cu(e){return function(){var t=this;var n=arguments;var r=e.h;var i={name:e.n,inst:t,ctx:null,set:u};var o=[];var a=s([i],n);function s(e,t){su(t,(function(t){e.push(t)}));return e}function u(e,t){n=s([],n);n[e]=t;a=s([i],n)}uu(r,i,a,o,0);var c=e.f;try{i.rslt=c.apply(t,n)}catch(e){i.err=e;uu(r,i,a,o,3);throw e}uu(r,i,a,o,1);return i.rslt}}var lu=Object["getPrototypeOf"];function fu(e){if(e){if(lu){return lu(e)}var t=e[ou]||e[Do]||e[au];if(t){return t}}return null}function du(e,t,n){var r=null;if(e){if(Da.hasOwnProperty(e,t)){r=e}else if(n){r=du(fu(e),t,false)}}return r}function pu(e,t,n){if(e){return hu(e[Do],t,n,false)}return null}function hu(e,t,n,r){if(r===void 0){r=true}if(e&&t&&n){var i=du(e,t,r);if(i){var o=i[t];if(typeof o===Ro){var a=o[ru];if(!a){a={i:0,n:t,f:o,h:[]};var s=cu(a);s[ru]=a;i[t]=s}var u={id:a.i,cbks:n,rm:function(){var e=this.id;su(a.h,(function(t,n){if(t.id===e){a.h.splice(n,1);return 1}}))}};a.i++;a.h.push(u);return u}}}return null}var vu;(function(e){e[e["LocalStorage"]=0]="LocalStorage";e[e["SessionStorage"]=1]="SessionStorage"})(vu||(vu={}));var mu;(function(e){e[e["Default"]=0]="Default";e[e["Required"]=1]="Required";e[e["Array"]=2]="Array";e[e["Hidden"]=4]="Hidden"})(mu||(mu={}));var gu;(function(e){e[e["AI"]=0]="AI";e[e["AI_AND_W3C"]=1]="AI_AND_W3C";e[e["W3C"]=2]="W3C"})(gu||(gu={}));var yu=function(){function e(){}e.requestContextHeader="Request-Context";e.requestContextTargetKey="appId";e.requestContextAppIdFormat="appId=cid-v1:";e.requestIdHeader="Request-Id";e.traceParentHeader="traceparent";e.sdkContextHeader="Sdk-Context";e.sdkContextHeaderAppIdRequest="appId";e.requestContextHeaderLowerCase="request-context";return e}();var bu=function(){function e(){}e.sanitizeKeyAndAddUniqueness=function(t,n,r){var i=n.length;var o=e.sanitizeKey(t,n);if(o.length!==i){var a=0;var s=o;while(r[s]!==undefined){a++;s=o.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(a)}o=s}return o};e.sanitizeKey=function(t,n){var r;if(n){n=e.trim(n.toString());if(n.length>e.MAX_NAME_LENGTH){r=n.substring(0,e.MAX_NAME_LENGTH);t.throwInternal(Ma.WARNING,Ua.NameTooLong,"name is too long. It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},true)}}return r||n};e.sanitizeString=function(t,n,r){if(r===void 0){r=e.MAX_STRING_LENGTH}var i;if(n){r=r?r:e.MAX_STRING_LENGTH;n=e.trim(n);if(n.toString().length>r){i=n.toString().substring(0,r);t.throwInternal(Ma.WARNING,Ua.StringValueTooLong,"string value is too long. It has been truncated to "+r+" characters.",{value:n},true)}}return i||n};e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,Ua.UrlTooLong)};e.sanitizeMessage=function(t,n){var r;if(n){if(n.length>e.MAX_MESSAGE_LENGTH){r=n.substring(0,e.MAX_MESSAGE_LENGTH);t.throwInternal(Ma.WARNING,Ua.MessageTruncated,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},true)}}return r||n};e.sanitizeException=function(t,n){var r;if(n){if(n.length>e.MAX_EXCEPTION_LENGTH){r=n.substring(0,e.MAX_EXCEPTION_LENGTH);t.throwInternal(Ma.WARNING,Ua.ExceptionTruncated,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},true)}}return r||n};e.sanitizeProperties=function(t,n){if(n){var r={};Oa(n,(function(n,i){if(Da.isObject(i)&&aa()){try{i=sa().stringify(i)}catch(e){t.throwInternal(Ma.WARNING,Ua.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:e},true)}}i=e.sanitizeString(t,i,e.MAX_PROPERTY_LENGTH);n=e.sanitizeKeyAndAddUniqueness(t,n,r);r[n]=i}));n=r}return n};e.sanitizeMeasurements=function(t,n){if(n){var r={};Oa(n,(function(n,i){n=e.sanitizeKeyAndAddUniqueness(t,n,r);r[n]=i}));n=r}return n};e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,Ua.IdTooLong).toString():n};e.sanitizeInput=function(t,n,r,i){var o;if(n){n=e.trim(n);if(n.length>r){o=n.substring(0,r);t.throwInternal(Ma.WARNING,i,"input is too long, it has been truncated to "+r+" characters.",{data:n},true)}}return o||n};e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)};e.trim=function(e){if(!Da.isString(e)){return e}return e.replace(/^\s+|\s+$/g,"")};e.MAX_NAME_LENGTH=150;e.MAX_ID_LENGTH=128;e.MAX_PROPERTY_LENGTH=8192;e.MAX_STRING_LENGTH=1024;e.MAX_URL_LENGTH=2048;e.MAX_MESSAGE_LENGTH=32768;e.MAX_EXCEPTION_LENGTH=32768;return e}();var wu=ea();var xu=Da.isString;var Su=null;function Iu(e,t){var n=e.length;var r=n-t.length;return e.substring(r>=0?r:0,n)===t}var _u=function(){function e(){}e.createDomEvent=function(e){var t=null;if(Da.isFunction(Event)){t=new Event(e)}else{var n=$o();if(n&&n.createEvent){t=n.createEvent("Event");t.initEvent(e,true,true)}}return t};e.disableStorage=function(){e._canUseLocalStorage=false;e._canUseSessionStorage=false};e._getLocalStorageObject=function(){if(e.canUseLocalStorage()){return e._getVerifiedStorageObject(vu.LocalStorage)}return null};e._getVerifiedStorageObject=function(e){var t=null;var n;var r;try{if(Da.isNullOrUndefined(Go())){return null}r=new Date;t=e===vu.LocalStorage?Ko("localStorage"):Ko("sessionStorage");t.setItem(r.toString(),r.toString());n=t.getItem(r.toString())!==r.toString();t.removeItem(r.toString());if(n){t=null}}catch(e){t=null}return t};e.isInternalApplicationInsightsEndpoint=function(t){return e._internalEndpoints.indexOf(t.toLowerCase())!==-1};e.canUseLocalStorage=function(){if(e._canUseLocalStorage===undefined){e._canUseLocalStorage=!!e._getVerifiedStorageObject(vu.LocalStorage)}return e._canUseLocalStorage};e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(r!==null){try{return r.getItem(n)}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return null};e.setStorage=function(t,n,r){var i=e._getLocalStorageObject();if(i!==null){try{i.setItem(n,r);return true}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(r!==null){try{r.removeItem(n);return true}catch(n){e._canUseLocalStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e._getSessionStorageObject=function(){if(e.canUseSessionStorage()){return e._getVerifiedStorageObject(vu.SessionStorage)}return null};e.canUseSessionStorage=function(){if(e._canUseSessionStorage===undefined){e._canUseSessionStorage=!!e._getVerifiedStorageObject(vu.SessionStorage)}return e._canUseSessionStorage};e.getSessionStorageKeys=function(){var t=[];if(e.canUseSessionStorage()){Oa(Ko("sessionStorage"),(function(e){t.push(e)}))}return t};e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(r!==null){try{return r.getItem(n)}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return null};e.setSessionStorage=function(t,n,r){var i=e._getSessionStorageObject();if(i!==null){try{i.setItem(n,r);return true}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(r!==null){try{r.removeItem(n);return true}catch(n){e._canUseSessionStorage=false;t.throwInternal(Ma.WARNING,Ua.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}}return false};e.disableCookies=function(){Da.disableCookies()};e.canUseCookies=function(t){if(Da._canUseCookies===undefined){Da._canUseCookies=false;try{Da._canUseCookies=e.document.cookie!==undefined}catch(n){t.throwInternal(Ma.WARNING,Ua.CannotAccessCookie,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return Da._canUseCookies};e.disallowsSameSiteNone=function(e){if(!xu(e)){return false}if(e.indexOf("CPU iPhone OS 12")!==-1||e.indexOf("iPad; CPU OS 12")!==-1){return true}if(e.indexOf("Macintosh; Intel Mac OS X 10_14")!==-1&&e.indexOf("Version/")!==-1&&e.indexOf("Safari")!==-1){return true}if(e.indexOf("Macintosh; Intel Mac OS X 10_14")!==-1&&Iu(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")){return true}if(e.indexOf("Chrome/5")!==-1||e.indexOf("Chrome/6")!==-1){return true}if(e.indexOf("UnrealEngine")!==-1&&e.indexOf("Chrome")===-1){return true}if(e.indexOf("UCBrowser/12")!==-1||e.indexOf("UCBrowser/11")!==-1){return true}return false};e.setCookie=function(t,n,r,i){if(e.canUseCookies(t)){var o="";var a="";if(i){o=";domain="+i}var s=ra();if(s&&s.protocol==="https:"){a=";secure";if(Su===null){Su=e.disallowsSameSiteNone((ea()||{}).userAgent)}if(!Su){r=r+";SameSite=None"}}e.document.cookie=n+"="+r+o+";path=/"+a}};e.stringToBoolOrDefault=function(e,t){if(t===void 0){t=false}if(e===undefined||e===null){return t}return e.toString().toLowerCase()==="true"};e.getCookie=function(t,n){if(!e.canUseCookies(t)){return}var r="";if(n&&n.length){var i=n+"=";var o=e.document.cookie.split(";");for(var a=0;a<o.length;a++){var s=o[a];s=e.trim(s);if(s&&s.indexOf(i)===0){r=s.substring(i.length,o[a].length);break}}}return r};e.deleteCookie=function(t,n){if(e.canUseCookies(t)){e.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;"}};e.random32=function(){return Da.random32(true)};e.getIEVersion=function(e){if(e===void 0){e=null}var t=e?e.toLowerCase():wu?(wu.userAgent||"").toLowerCase():"";if(t.indexOf("msie")!==-1){return parseInt(t.split("msie")[1])}else if(t.indexOf("trident/")){var n=parseInt(t.split("trident/")[1]);if(n){return n+4}}return null};e.msToTimeSpan=function(e){if(isNaN(e)||e<0){e=0}e=Math.round(e);var t=""+e%1e3;var n=""+Math.floor(e/1e3)%60;var r=""+Math.floor(e/(1e3*60))%60;var i=""+Math.floor(e/(1e3*60*60))%24;var o=Math.floor(e/(1e3*60*60*24));t=t.length===1?"00"+t:t.length===2?"0"+t:t;n=n.length<2?"0"+n:n;r=r.length<2?"0"+r:r;i=i.length<2?"0"+i:i;return(o>0?o+".":"")+i+":"+r+":"+n+"."+t};e.isCrossOriginError=function(e,t,n,r,i){return(e==="Script error."||e==="Script error")&&!i};e.dump=function(e){var t=Object[Do].toString.call(e);var n="";if(t==="[object Error]"){n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"}else if(aa()){n=sa().stringify(e)}return t+n};e.getExceptionName=function(e){var t=Object[Do].toString.call(e);if(t==="[object Error]"){return e.name}return""};e.addEventHandler=function(e,t){return qa.Attach(Yo(),e,t)};e.IsBeaconApiSupported=function(){return"sendBeacon"in wu&&wu.sendBeacon};e.getExtension=function(e,t){var n=null;var r=0;while(!n&&r<e.length){if(e[r]&&e[r].identifier===t){n=e[r]}r++}return n};e.document=$o()||{};e._canUseLocalStorage=undefined;e._canUseSessionStorage=undefined;e._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];e.NotSpecified="not_specified";e.trim=Da.strTrim;e.newId=Da.newId;e.generateW3CId=Da.generateW3CId;e.isArray=Da.isArray;e.isError=Da.isError;e.isDate=Da.isDate;e.toISOStringForIE8=Da.toISOString;return e}();var Cu=function(){function e(){}e.parseUrl=function(t){var n=e._htmlAnchorIdx;var r=e._htmlAnchorElement;var i=r[n];if(!e.document.createElement){i={host:e.parseHost(t,true)}}else if(!r[n]){i=r[n]=e.document.createElement("a")}i.href=t;n++;if(n>=r.length){n=0}e._htmlAnchorIdx=n;return i};e.getAbsoluteUrl=function(t){var n;var r=e.parseUrl(t);if(r){n=r.href}return n};e.getPathName=function(t){var n;var r=e.parseUrl(t);if(r){n=r.pathname}return n};e.getCompleteUrl=function(e,t){if(e){return e.toUpperCase()+" "+t}else{return t}};e.parseHost=function(t,n){var r=e.parseFullHost(t,n);if(r){var i=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(i!=null&&i.length>3&&xu(i[2])&&i[2].length>0){return i[2]+(i[3]||"")}}return r};e.parseFullHost=function(e,t){var n=null;if(e){var r=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(r!=null&&r.length>2&&xu(r[2])&&r[2].length>0){n=r[2]||"";if(t&&r.length>2){var i=(r[1]||"").toLowerCase();var o=r[3]||"";if(i==="http"&&o===":80"){o=""}else if(i==="https"&&o===":443"){o=""}n+=o}}}return n};e.document=$o()||{};e._htmlAnchorIdx=0;e._htmlAnchorElement=[null,null,null,null,null];return e}();var ku=function(){function e(){}e.canIncludeCorrelationHeader=function(e,t,n){if(!t||e&&e.disableCorrelationHeaders){return false}if(e&&e.correlationHeaderExcludePatterns){for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++){if(e.correlationHeaderExcludePatterns[r].test(t)){return false}}}var i=Cu.parseUrl(t).host.toLowerCase();if(i&&(i.indexOf(":443")!==-1||i.indexOf(":80")!==-1)){i=(Cu.parseFullHost(t,true)||"").toLowerCase()}if((!e||!e.enableCorsCorrelation)&&i!==n){return false}var o=e&&e.correlationHeaderDomains;if(o){var a;Da.arrForEach(o,(function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));a=a||t.test(i)}));if(!a){return false}}var s=e&&e.correlationHeaderExcludedDomains;if(!s||s.length===0){return true}for(var r=0;r<s.length;r++){var u=new RegExp(s[r].toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));if(u.test(i)){return false}}return i&&i.length>0};e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,yu.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix){return n}}};e.getCorrelationContextValue=function(e,t){if(e){var n=e.split(",");for(var r=0;r<n.length;++r){var i=n[r].split("=");if(i.length===2&&i[0]===t){return i[1]}}}};e.correlationIdPrefix="cid-v1:";return e}();var Tu=function(){function e(){}e.ParseDependencyPath=function(e,t,n,r){var i,o=r,a=r;if(t&&t.length>0){var s=Cu.parseUrl(t);i=s.host;if(!o){if(s.pathname!=null){var u=s.pathname.length===0?"/":s.pathname;if(u.charAt(0)!=="/"){u="/"+u}a=s.pathname;o=bu.sanitizeString(e,n?n+" "+u:u)}else{o=bu.sanitizeString(e,t)}}}else{i=r;o=r}return{target:i,name:o,data:a}};return e}();var Eu=function(){function e(){}e.Now=function(){var e=oa();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0){return t}}return(new Date).getTime()};e.GetDuration=function(e,t){var n=null;if(e!==0&&t!==0&&!Da.isNullOrUndefined(e)&&!Da.isNullOrUndefined(t)){n=t-e}return n};return e}();var Au="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";var Fu="sampleRate";var Nu="ProcessLegacy";var Pu="http.method";var Ou="https://dc.services.visualstudio.com";var Du=function(){function e(){}e.parse=function(t){if(!t){return{}}var n=t.split(e._FIELDS_SEPARATOR);var r=Da.arrReduce(n,(function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(r.length===2){var i=r[0].toLowerCase();var o=r[1];t[i]=o}return t}),{});if(Da.objKeys(r).length>0){if(r.endpointsuffix){var i=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+i+"dc."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||Ou}return r};e._FIELDS_SEPARATOR=";";e._FIELD_KEY_VALUE_SEPARATOR="=";return e}();var Ru=function(){function e(){}return e}();var qu=function(e){__extends(t,e);function t(){return e.call(this)||this}return t}(Ru);var Mu=function(){function e(){this.ver=1;this.sampleRate=100;this.tags={}}return e}();var Uu=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this)||this;i.name=bu.sanitizeString(t,r)||_u.NotSpecified;i.data=n;i.time=Da.toISOString(new Date);i.aiDataContract={time:mu.Required,iKey:mu.Required,name:mu.Required,sampleRate:function(){return i.sampleRate===100?mu.Hidden:mu.Required},tags:mu.Required,data:mu.Required};return i}return t}(Mu);var Lu=function(){function e(){}return e}();var Bu=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Lu);var ju=function(e){__extends(t,e);function t(t,n,r,i){var o=e.call(this)||this;o.aiDataContract={ver:mu.Required,name:mu.Required,properties:mu.Default,measurements:mu.Default};o.name=bu.sanitizeString(t,n)||_u.NotSpecified;o.properties=bu.sanitizeProperties(t,r);o.measurements=bu.sanitizeMeasurements(t,i);return o}t.envelopeType="Microsoft.ApplicationInsights.{0}.Event";t.dataType="EventData";return t}(Bu);var Vu=function(){function e(){}return e}();var zu=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.exceptions=[];t.properties={};t.measurements={};return t}return t}(Lu);var Qu=function(){function e(){this.hasFullStack=true;this.parsedStack=[]}return e}();var Hu="error";function Wu(e){return"hasFullStack"in e&&"typeName"in e}function Gu(e){return"ver"in e&&"exceptions"in e&&"properties"in e}function Ku(e){var t="";if(e){t=e.typeName||e.name||"";if(!t){try{var n=/function (.{1,})\(/;var r=n.exec(e.constructor.toString());t=r&&r.length>1?r[1]:""}catch(e){}}}return t}var Xu=function(e){__extends(t,e);function t(t,n,r,i,o,a){var s=e.call(this)||this;s.aiDataContract={ver:mu.Required,exceptions:mu.Required,severityLevel:mu.Default,properties:mu.Default,measurements:mu.Default};if(!Gu(n)){s.exceptions=[new Yu(t,n)];s.properties=bu.sanitizeProperties(t,r)||{};s.measurements=bu.sanitizeMeasurements(t,i);if(o){s.severityLevel=o}if(a){s.id=a}}else{s.exceptions=n.exceptions;s.properties=n.properties;s.measurements=n.measurements;if(n.severityLevel){s.severityLevel=n.severityLevel}if(n.id){s.id=n.id}if(n.problemGroup){s.problemGroup=n.problemGroup}s.ver=2;if(!Da.isNullOrUndefined(n.isManual)){s.isManual=n.isManual}}return s}t.CreateFromInterface=function(e,n,r,i){var o=n.exceptions&&Da.arrMap(n.exceptions,(function(t){return Yu.CreateFromInterface(e,t)}));var a=new t(e,__assign({},n,{exceptions:o}),r,i);return a};t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,s=e.isManual;var u=t instanceof Array&&Da.arrMap(t,(function(e){return e.toInterface()}))||undefined;return{ver:"4.0",exceptions:u,severityLevel:i,properties:n,measurements:r,problemGroup:o,id:a,isManual:s}};t.CreateSimpleException=function(e,t,n,r,i,o){return{exceptions:[{hasFullStack:true,message:e,stack:i,typeName:t}]}};t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception";t.dataType="ExceptionData";return t}(zu);var Yu=function(e){__extends(t,e);function t(n,r){var i=e.call(this)||this;i.aiDataContract={id:mu.Default,outerId:mu.Default,typeName:mu.Required,message:mu.Required,hasFullStack:mu.Default,stack:mu.Default,parsedStack:mu.Array};if(!Wu(r)){var o=r;if(!_u.isError(o)){o=o[Hu]||o.evt||o}i.typeName=bu.sanitizeString(n,Ku(o))||_u.NotSpecified;i.message=bu.sanitizeMessage(n,r.message)||_u.NotSpecified;var a=r.stack;i.parsedStack=t.parseStack(a);i.stack=bu.sanitizeException(n,a);i.hasFullStack=_u.isArray(i.parsedStack)&&i.parsedStack.length>0}else{i.typeName=r.typeName;i.message=r.message;i.stack=r.stack;i.parsedStack=r.parsedStack;i.hasFullStack=r.hasFullStack}return i}t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&Da.arrMap(this.parsedStack,(function(e){return e.toInterface()}));var t={id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined};return t};t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&Da.arrMap(n.parsedStack,(function(e){return Ju.CreateFromInterface(e)}))||n.parsedStack;var i=new t(e,__assign({},n,{parsedStack:r}));return i};t.parseStack=function(e){var t;if(Da.isString(e)){var n=e.split("\n");t=[];var r=0;var i=0;for(var o=0;o<=n.length;o++){var a=n[o];if(Ju.regex.test(a)){var s=new Ju(n[o],r++);i+=s.sizeInBytes;t.push(s)}}var u=32*1024;if(i>u){var c=0;var l=t.length-1;var f=0;var d=c;var p=l;while(c<l){var h=t[c].sizeInBytes;var v=t[l].sizeInBytes;f+=h+v;if(f>u){var m=p-d+1;t.splice(d,m);break}d=c;p=l;c++;l--}}}return t};return t}(Qu);var Ju=function(e){__extends(t,e);function t(n,r){var i=e.call(this)||this;i.sizeInBytes=0;i.aiDataContract={level:mu.Required,method:mu.Required,assembly:mu.Default,fileName:mu.Default,line:mu.Default};if(typeof n==="string"){var o=n;i.level=r;i.method="<no_method>";i.assembly=_u.trim(o);i.fileName="";i.line=0;var a=o.match(t.regex);if(a&&a.length>=5){i.method=_u.trim(a[2])||i.method;i.fileName=_u.trim(a[4]);i.line=parseInt(a[5])||0}}else{i.level=n.level;i.method=n.method;i.assembly=n.assembly;i.fileName=n.fileName;i.line=n.line;i.sizeInBytes=0}i.sizeInBytes+=i.method.length;i.sizeInBytes+=i.fileName.length;i.sizeInBytes+=i.assembly.length;i.sizeInBytes+=t.baseSize;i.sizeInBytes+=i.level.toString().length;i.sizeInBytes+=i.line.toString().length;return i}t.CreateFromInterface=function(e){return new t(e,null)};t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}};t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/;t.baseSize=58;return t}(Vu);var $u=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.metrics=[];t.properties={};t.measurements={};return t}return t}(Lu);var Zu;(function(e){e[e["Measurement"]=0]="Measurement";e[e["Aggregation"]=1]="Aggregation"})(Zu||(Zu={}));var ec=function(){function e(){this.kind=Zu.Measurement}return e}();var tc=function(e){__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.aiDataContract={name:mu.Required,kind:mu.Default,value:mu.Required,count:mu.Default,min:mu.Default,max:mu.Default,stdDev:mu.Default};return t}return t}(ec);var nc=function(e){__extends(t,e);function t(t,n,r,i,o,a,s,u){var c=e.call(this)||this;c.aiDataContract={ver:mu.Required,metrics:mu.Required,properties:mu.Default};var l=new tc;l.count=i>0?i:undefined;l.max=isNaN(a)||a===null?undefined:a;l.min=isNaN(o)||o===null?undefined:o;l.name=bu.sanitizeString(t,n)||_u.NotSpecified;l.value=r;c.metrics=[l];c.properties=bu.sanitizeProperties(t,s);c.measurements=bu.sanitizeMeasurements(t,u);return c}t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric";t.dataType="MetricData";return t}($u);var rc=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Bu);var ic=function(e){__extends(t,e);function t(t,n,r,i,o,a,s){var u=e.call(this)||this;u.aiDataContract={ver:mu.Required,name:mu.Default,url:mu.Default,duration:mu.Default,properties:mu.Default,measurements:mu.Default,id:mu.Default};u.id=bu.sanitizeId(t,s);u.url=bu.sanitizeUrl(t,r);u.name=bu.sanitizeString(t,n)||_u.NotSpecified;if(!isNaN(i)){u.duration=_u.msToTimeSpan(i)}u.properties=bu.sanitizeProperties(t,o);u.measurements=bu.sanitizeMeasurements(t,a);return u}t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview";t.dataType="PageviewData";return t}(rc);var oc=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.success=true;t.properties={};t.measurements={};return t}return t}(Lu);var ac=function(e){__extends(t,e);function t(t,n,r,i,o,a,s,u,c,l,f,d){if(c===void 0){c="Ajax"}var p=e.call(this)||this;p.aiDataContract={id:mu.Required,ver:mu.Required,name:mu.Default,resultCode:mu.Default,duration:mu.Default,success:mu.Default,data:mu.Default,target:mu.Default,type:mu.Default,properties:mu.Default,measurements:mu.Default,kind:mu.Default,value:mu.Default,count:mu.Default,min:mu.Default,max:mu.Default,stdDev:mu.Default,dependencyKind:mu.Default,dependencySource:mu.Default,commandName:mu.Default,dependencyTypeName:mu.Default};p.id=n;p.duration=_u.msToTimeSpan(o);p.success=a;p.resultCode=s+"";p.type=bu.sanitizeString(t,c);var h=Tu.ParseDependencyPath(t,r,u,i);p.data=bu.sanitizeUrl(t,i)||h.data;p.target=bu.sanitizeString(t,h.target);if(l){p.target=p.target+" | "+l}p.name=bu.sanitizeString(t,h.name);p.properties=bu.sanitizeProperties(t,f);p.measurements=bu.sanitizeMeasurements(t,d);return p}t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency";t.dataType="RemoteDependencyData";return t}(oc);var sc=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(Lu);var uc=function(e){__extends(t,e);function t(t,n,r,i,o){var a=e.call(this)||this;a.aiDataContract={ver:mu.Required,message:mu.Required,severityLevel:mu.Default,properties:mu.Default};n=n||_u.NotSpecified;a.message=bu.sanitizeMessage(t,n);a.properties=bu.sanitizeProperties(t,i);a.measurements=bu.sanitizeMeasurements(t,o);if(r){a.severityLevel=r}return a}t.envelopeType="Microsoft.ApplicationInsights.{0}.Message";t.dataType="MessageData";return t}(sc);var cc=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.ver=2;t.properties={};t.measurements={};return t}return t}(rc);var lc=function(e){__extends(t,e);function t(t,n,r,i,o,a,s){var u=e.call(this)||this;u.aiDataContract={ver:mu.Required,name:mu.Default,url:mu.Default,duration:mu.Default,perfTotal:mu.Default,networkConnect:mu.Default,sentRequest:mu.Default,receivedResponse:mu.Default,domProcessing:mu.Default,properties:mu.Default,measurements:mu.Default};u.url=bu.sanitizeUrl(t,r);u.name=bu.sanitizeString(t,n)||_u.NotSpecified;u.properties=bu.sanitizeProperties(t,o);u.measurements=bu.sanitizeMeasurements(t,a);if(s){u.domProcessing=s.domProcessing;u.duration=s.duration;u.networkConnect=s.networkConnect;u.perfTotal=s.perfTotal;u.receivedResponse=s.receivedResponse;u.sentRequest=s.sentRequest}return u}t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance";t.dataType="PageviewPerformanceData";return t}(cc);var fc=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.aiDataContract={baseType:mu.Required,baseData:mu.Required};r.baseType=t;r.baseData=n;return r}return t}(qu);var dc;(function(e){e[e["Verbose"]=0]="Verbose";e[e["Information"]=1]="Information";e[e["Warning"]=2]="Warning";e[e["Error"]=3]="Error";e[e["Critical"]=4]="Critical"})(dc||(dc={}));var pc=function(){function e(){this.applicationVersion="ai.application.ver";this.applicationBuild="ai.application.build";this.applicationTypeId="ai.application.typeId";this.applicationId="ai.application.applicationId";this.applicationLayer="ai.application.layer";this.deviceId="ai.device.id";this.deviceIp="ai.device.ip";this.deviceLanguage="ai.device.language";this.deviceLocale="ai.device.locale";this.deviceModel="ai.device.model";this.deviceFriendlyName="ai.device.friendlyName";this.deviceNetwork="ai.device.network";this.deviceNetworkName="ai.device.networkName";this.deviceOEMName="ai.device.oemName";this.deviceOS="ai.device.os";this.deviceOSVersion="ai.device.osVersion";this.deviceRoleInstance="ai.device.roleInstance";this.deviceRoleName="ai.device.roleName";this.deviceScreenResolution="ai.device.screenResolution";this.deviceType="ai.device.type";this.deviceMachineName="ai.device.machineName";this.deviceVMName="ai.device.vmName";this.deviceBrowser="ai.device.browser";this.deviceBrowserVersion="ai.device.browserVersion";this.locationIp="ai.location.ip";this.locationCountry="ai.location.country";this.locationProvince="ai.location.province";this.locationCity="ai.location.city";this.operationId="ai.operation.id";this.operationName="ai.operation.name";this.operationParentId="ai.operation.parentId";this.operationRootId="ai.operation.rootId";this.operationSyntheticSource="ai.operation.syntheticSource";this.operationCorrelationVector="ai.operation.correlationVector";this.sessionId="ai.session.id";this.sessionIsFirst="ai.session.isFirst";this.sessionIsNew="ai.session.isNew";this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate";this.userAccountId="ai.user.accountId";this.userAgent="ai.user.userAgent";this.userId="ai.user.id";this.userStoreRegion="ai.user.storeRegion";this.userAuthUserId="ai.user.authUserId";this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate";this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate";this.cloudName="ai.cloud.name";this.cloudRole="ai.cloud.role";this.cloudRoleVer="ai.cloud.roleVer";this.cloudRoleInstance="ai.cloud.roleInstance";this.cloudEnvironment="ai.cloud.environment";this.cloudLocation="ai.cloud.location";this.cloudDeploymentUnit="ai.cloud.deploymentUnit";this.internalNodeName="ai.internal.nodeName";this.internalSdkVersion="ai.internal.sdkVersion";this.internalAgentVersion="ai.internal.agentVersion";this.internalSnippet="ai.internal.snippet";this.internalSdkSrc="ai.internal.sdkSrc"}return e}();var hc=function(){function e(){}e.create=function(e,t,n,r,i,o){n=bu.sanitizeString(r,n)||_u.NotSpecified;if(Da.isNullOrUndefined(e)||Da.isNullOrUndefined(t)||Da.isNullOrUndefined(n)){throw Error("Input doesn't contain all required fields")}var a={name:n,time:Da.toISOString(new Date),iKey:"",ext:o?o:{},tags:[],data:{},baseType:t,baseData:e};if(!Da.isNullOrUndefined(i)){Oa(i,(function(e,t){a.data[e]=t}))}return a};return e}();var vc=function(){function e(){}e.UserExt="user";e.DeviceExt="device";e.TraceExt="trace";e.WebExt="web";e.AppExt="app";e.OSExt="os";e.SessionExt="ses";e.SDKExt="sdk";return e}();var mc=new pc;var gc="AppInsightsPropertiesPlugin";var yc="AppInsightsChannelPlugin";var bc="ApplicationInsightsAnalytics";
|
|
6
6
|
/*!
|
|
7
7
|
* Application Insights JavaScript SDK - Web Analytics, 2.5.10
|
|
8
8
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
@@ -26,7 +26,7 @@ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setP
|
|
|
26
26
|
/*!
|
|
27
27
|
* Application Insights JavaScript SDK - Channel, 2.5.10
|
|
28
28
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
29
|
-
*/var
|
|
29
|
+
*/var Fc="baseType";var Nc="baseData";var Pc="properties";var Oc="true";var Dc=Da.isNullOrUndefined;function Rc(e,t,n){if(e&&n){e[t]=n;return e[t]}return null}var qc=function(){function e(){}e.extractPropsAndMeasurements=function(e,t,n){if(!Dc(e)){Oa(e,(function(e,r){if(Da.isNumber(r)){n[e]=r}else if(Da.isString(r)){t[e]=r}else if(aa()){t[e]=sa().stringify(r)}}))}};e.createEnvelope=function(t,n,r,i){var o=new Uu(t,i,n);Rc(o,"sampleRate",r[Fu]);if((r[Nc]||{}).startTime){o.time=Da.toISOString(r[Nc].startTime)}o.iKey=r.iKey;var a=r.iKey.replace(/-/g,"");o.name=o.name.replace("{0}",a);e.extractPartAExtensions(r,o);r.tags=r.tags||[];return o};e.extractPartAExtensions=function(t,n){var r=n.tags=n.tags||{};var i=t.ext=t.ext||{};var o=t.tags=t.tags||[];var a=i.user;if(a){Rc(r,mc.userAuthUserId,a.authId);Rc(r,mc.userId,a.id||a.localId)}var s=i.app;if(s){Rc(r,mc.sessionId,s.sesId)}var u=i.device;if(u){Rc(r,mc.deviceId,u.id||u.localId);Rc(r,mc.deviceType,u.deviceClass);Rc(r,mc.deviceIp,u.ip);Rc(r,mc.deviceModel,u.model);Rc(r,mc.deviceType,u.deviceType)}var c=t.ext.web;if(c){Rc(r,mc.deviceLanguage,c.browserLang);Rc(r,mc.deviceBrowserVersion,c.browserVer);Rc(r,mc.deviceBrowser,c.browser);var l=n.data=n.data||{};var f=l[Nc]=l[Nc]||{};var d=f[Pc]=f[Pc]||{};Rc(d,"domain",c.domain);Rc(d,"isManual",c.isManual?Oc:null);Rc(d,"screenRes",c.screenRes);Rc(d,"userConsent",c.userConsent?Oc:null)}var p=i.os;if(p){Rc(r,mc.deviceOS,p.name)}var h=i.trace;if(h){Rc(r,mc.operationParentId,h.parentID);Rc(r,mc.operationName,h.name);Rc(r,mc.operationId,h.traceID)}var v={};for(var m=o.length-1;m>=0;m--){var g=o[m];Oa(g,(function(e,t){v[e]=t}));o.splice(m,1)}Oa(o,(function(e,t){v[e]=t}));n.tags=__assign({},r,v);if(!n.tags[mc.internalSdkVersion]){n.tags[mc.internalSdkVersion]="javascript:"+e.Version}};e.prototype.Init=function(e,t){this._logger=e;if(Dc(t[Nc])){this._logger.throwInternal(Ma.CRITICAL,Ua.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}};e.Version="2.5.10";return e}();var Mc=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Nc].measurements||{};var i=n[Nc][Pc]||{};qc.extractPropsAndMeasurements(n.data,i,r);var o=n[Nc];if(Dc(o)){t.warnToConsole("Invalid input for dependency data");return null}var a=o[Pc]&&o[Pc][Pu]?o[Pc][Pu]:"GET";var s=new ac(t,o.id,o.target,o.name,o.duration,o.success,o.responseCode,a,o.type,o.correlationContext,i,r);var u=new fc(ac.dataType,s);return qc.createEnvelope(t,ac.envelopeType,n,u)};t.DependencyEnvelopeCreator=new t;return t}(qc);var Uc=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r={};var i={};if(n[Fc]!==ju.dataType){r["baseTypeSource"]=n[Fc]}if(n[Fc]===ju.dataType){r=n[Nc][Pc]||{};i=n[Nc].measurements||{}}else{if(n[Nc]){qc.extractPropsAndMeasurements(n[Nc],r,i)}}qc.extractPropsAndMeasurements(n.data,r,i);var o=n[Nc].name;var a=new ju(t,o,r,i);var s=new fc(ju.dataType,a);return qc.createEnvelope(t,ju.envelopeType,n,s)};t.EventEnvelopeCreator=new t;return t}(qc);var Lc=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Nc].measurements||{};var i=n[Nc][Pc]||{};qc.extractPropsAndMeasurements(n.data,i,r);var o=n[Nc];var a=Xu.CreateFromInterface(t,o,i,r);var s=new fc(Xu.dataType,a);return qc.createEnvelope(t,Xu.envelopeType,n,s)};t.ExceptionEnvelopeCreator=new t;return t}(qc);var Bc=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Nc];var i=r[Pc]||{};var o=r.measurements||{};qc.extractPropsAndMeasurements(n.data,i,o);var a=new nc(t,r.name,r.average,r.sampleCount,r.min,r.max,i,o);var s=new fc(nc.dataType,a);return qc.createEnvelope(t,nc.envelopeType,n,s)};t.MetricEnvelopeCreator=new t;return t}(qc);var jc=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r="duration";var i;var o=n[Nc];if(!Dc(o)&&!Dc(o[Pc])&&!Dc(o[Pc][r])){i=o[Pc][r];delete o[Pc][r]}else if(!Dc(n.data)&&!Dc(n.data[r])){i=n.data[r];delete n.data[r]}var a=n[Nc];var s;if(((n.ext||{}).trace||{}).traceID){s=n.ext.trace.traceID}var u=a.id||s;var c=a.name;var l=a.uri;var f=a[Pc]||{};var d=a.measurements||{};if(!Dc(a.refUri)){f["refUri"]=a.refUri}if(!Dc(a.pageType)){f["pageType"]=a.pageType}if(!Dc(a.isLoggedIn)){f["isLoggedIn"]=a.isLoggedIn.toString()}if(!Dc(a[Pc])){var p=a[Pc];Oa(p,(function(e,t){f[e]=t}))}qc.extractPropsAndMeasurements(n.data,f,d);var h=new ic(t,c,l,i,f,d,u);var v=new fc(ic.dataType,h);return qc.createEnvelope(t,ic.envelopeType,n,v)};t.PageViewEnvelopeCreator=new t;return t}(qc);var Vc=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Nc];var i=r.name;var o=r.uri||r.url;var a=r[Pc]||{};var s=r.measurements||{};qc.extractPropsAndMeasurements(n.data,a,s);var u=new lc(t,i,o,undefined,a,s,r);var c=new fc(lc.dataType,u);return qc.createEnvelope(t,lc.envelopeType,n,c)};t.PageViewPerformanceEnvelopeCreator=new t;return t}(qc);var zc=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Nc].message;var i=n[Nc].severityLevel;var o=n[Nc][Pc]||{};var a=n[Nc].measurements||{};qc.extractPropsAndMeasurements(n.data,o,a);var s=new uc(t,r,i,o,a);var u=new fc(uc.dataType,s);return qc.createEnvelope(t,uc.envelopeType,n,u)};t.TraceEnvelopeCreator=new t;return t}(qc);
|
|
30
30
|
/*!
|
|
31
31
|
* Application Insights JavaScript SDK - Channel, 2.5.10
|
|
32
32
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
@@ -50,11 +50,11 @@ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setP
|
|
|
50
50
|
/*!
|
|
51
51
|
* Application Insights JavaScript SDK - Channel, 2.5.10
|
|
52
52
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
53
|
-
*/function Yc(e){try{return e.responseText}catch(e){}return null}var Jc=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.priority=1001;n.identifier=yc;n._XMLHttpRequestSupported=false;var r;var i;var o;var a;ms(t,n,(function(e,s){function u(){throw new Error("Method not implemented.")}e.pause=u;e.resume=u;e.flush=function(){try{e.triggerSend(true,null,1)}catch(t){e.diagLog().throwInternal(Ma.CRITICAL,Ua.FlushFailed,"flush failed, telemetry will not be collected: "+_u.getExceptionName(t),{exception:_u.dump(t)})}};e.onunloadFlush=function(){if((e._senderConfig.onunloadDisableBeacon()===false||e._senderConfig.isBeaconApiDisabled()===false)&&_u.IsBeaconApiSupported()){try{e.triggerSend(true,l,2)}catch(t){e.diagLog().throwInternal(Ma.CRITICAL,Ua.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+_u.getExceptionName(t),{exception:_u.dump(t)})}}else{e.flush()}};e.teardown=u;e.initialize=function(n,o,u,c){s.initialize(n,o,u,c);var d=e._getTelCtx();var p=e.identifier;a=new Qc(o.logger);r=0;i=null;e._sender=null;var h=t._getDefaultAppInsightsChannelConfig();e._senderConfig=t._getEmptyAppInsightsChannelConfig();Oa(h,(function(t,n){e._senderConfig[t]=function(){return d.getConfig(p,t,n())}}));e._buffer=e._senderConfig.enableSessionStorageBuffer()&&_u.canUseSessionStorage()?new Ac(e.diagLog(),e._senderConfig):new Ec(e._senderConfig);e._sample=new Xc(e._senderConfig.samplingPercentage(),e.diagLog());if(!S(n)){e.diagLog().throwInternal(Ma.CRITICAL,Ua.InvalidInstrumentationKey,"Invalid Instrumentation key "+n.instrumentationKey)}if(!e._senderConfig.isBeaconApiDisabled()&&_u.IsBeaconApiSupported()){e._sender=l}else{if(typeof XMLHttpRequest!==undefined){var v=Ko("XMLHttpRequest");if(v){var m=new v;if("withCredentials"in m){e._sender=f;e._XMLHttpRequestSupported=true}else if(typeof XDomainRequest!==undefined){e._sender=y}}}}};e.processTelemetry=function(n,r){r=e._getTelCtx(r);try{if(e._senderConfig.disableTelemetry()){return}if(!n){r.diagLog().throwInternal(Ma.CRITICAL,Ua.CannotSendEmptyTelemetry,"Cannot send empty telemetry");return}if(n.baseData&&!n.baseType){r.diagLog().throwInternal(Ma.CRITICAL,Ua.InvalidEvent,"Cannot send telemetry without baseData and baseType");return}if(!n.baseType){n.baseType="EventData"}if(!e._sender){r.diagLog().throwInternal(Ma.CRITICAL,Ua.SenderNotInitialized,"Sender was not initialized");return}if(!c(n)){r.diagLog().throwInternal(Ma.WARNING,Ua.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:e._sample.sampleRate});return}else{n[Nu]=e._sample.sampleRate}var i=t.constructEnvelope(n,e._senderConfig.instrumentationKey(),r.diagLog());if(!i){r.diagLog().throwInternal(Ma.CRITICAL,Ua.CreateEnvelopeError,"Unable to create an AppInsights envelope");return}var o=false;if(n.tags&&n.tags[Fu]){Da.arrForEach(n.tags[Fu],(function(e){try{if(e&&e(i)===false){o=true;r.diagLog().warnToConsole("Telemetry processor check returns false")}}catch(e){r.diagLog().throwInternal(Ma.CRITICAL,Ua.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+_u.getExceptionName(e),{exception:_u.dump(e)},true)}}));delete n.tags[Fu]}if(o){return}var s=a.serialize(i);var u=e._buffer.getItems();var l=e._buffer.batchPayloads(u);if(l&&l.length+s.length>e._senderConfig.maxBatchSizeInBytes()){e.triggerSend(true,null,10)}e._buffer.enqueue(s);v()}catch(e){r.diagLog().throwInternal(Ma.WARNING,Ua.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+_u.getExceptionName(e),{exception:_u.dump(e)})}e.processNext(n,r)};e._xhrReadyStateChange=function(t,n,i){if(t.readyState===4){var o=null;if(!e._appId){o=d(Yc(t)||t.response);if(o&&o.appId){e._appId=o.appId}}if((t.status<200||t.status>=300)&&t.status!==0){if(!e._senderConfig.isRetryDisabled()&&m(t.status)){p(n);e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,". "+"Response code "+t.status+". Will retry to send "+n.length+" items.")}else{e._onError(n,g(t))}}else if(Wc.isOffline()){if(!e._senderConfig.isRetryDisabled()){var a=10;p(n,a);e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,". Offline - Response Code: "+t.status+". Offline status: "+Wc.isOffline()+". Will retry to send "+n.length+" items.")}}else{if(t.status===206){if(!o){o=d(Yc(t)||t.response)}if(o&&!e._senderConfig.isRetryDisabled()){e._onPartialSuccess(n,o)}else{e._onError(n,g(t))}}else{r=0;e._onSuccess(n,i)}}}};e.triggerSend=function(t,r,a){if(t===void 0){t=true}try{if(!e._senderConfig.disableTelemetry()){if(e._buffer.count()>0){var s=e._buffer.getItems();x(a||0,t);if(r){r.call(n,s,t)}else{e._sender(s,t)}}}else{e._buffer.clear()}clearTimeout(o);o=null;i=null}catch(t){var u=_u.getIEVersion();if(!u||u>9){e.diagLog().throwInternal(Ma.CRITICAL,Ua.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+_u.getExceptionName(t),{exception:_u.dump(t)})}}};e._onError=function(t,n,r){e.diagLog().throwInternal(Ma.WARNING,Ua.OnError,"Failed to send telemetry.",{message:n});e._buffer.clearSent(t)};e._onPartialSuccess=function(t,n){var r=[];var i=[];var o=n.errors.reverse();for(var a=0,s=o;a<s.length;a++){var u=s[a];var c=t.splice(u.index,1)[0];if(m(u.statusCode)){i.push(c)}else{r.push(c)}}if(t.length>0){e._onSuccess(t,n.itemsAccepted)}if(r.length>0){e._onError(r,g(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" ")))}if(i.length>0){p(i);e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,"Partial success. "+"Delivered: "+t.length+", Failed: "+r.length+". Will retry to send "+i.length+" our of "+n.itemsReceived+" items")}};e._onSuccess=function(t,n){e._buffer.clearSent(t)};e._xdrOnLoad=function(t,n){var i=Yc(t);if(t&&(i+""==="200"||i==="")){r=0;e._onSuccess(n,0)}else{var o=d(i);if(o&&o.itemsReceived&&o.itemsReceived>o.itemsAccepted&&!e._senderConfig.isRetryDisabled()){e._onPartialSuccess(n,o)}else{e._onError(n,b(t))}}};function c(t){return e._sample.isSampledIn(t)}function l(t,n){var r=e._senderConfig.endpointUrl();var i=e._buffer.batchPayloads(t);var o=new Blob([i],{type:"text/plain;charset=UTF-8"});var a=ea().sendBeacon(r,o);if(a){e._buffer.markAsSent(t);e._onSuccess(t,t.length)}else{f(t,true);e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,". "+"Failed to send telemetry with Beacon API, retried with xhrSender.")}}function f(t,n){var r=new XMLHttpRequest;var i=e._senderConfig.endpointUrl();try{r[Au]=true}catch(e){}r.open("POST",i,n);r.setRequestHeader("Content-type","application/json");if(_u.isInternalApplicationInsightsEndpoint(i)){r.setRequestHeader(yu.sdkContextHeader,yu.sdkContextHeaderAppIdRequest)}r.onreadystatechange=function(){return e._xhrReadyStateChange(r,t,t.length)};r.onerror=function(n){return e._onError(t,g(r),n)};var o=e._buffer.batchPayloads(t);r.send(o);e._buffer.markAsSent(t)}function d(t){try{if(t&&t!==""){var n=sa().parse(t);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length){return n}}}catch(n){e.diagLog().throwInternal(Ma.CRITICAL,Ua.InvalidBackendResponse,"Cannot parse the response. "+_u.getExceptionName(n),{response:t})}return null}function p(t,n){if(n===void 0){n=1}if(!t||t.length===0){return}e._buffer.clearSent(t);r++;for(var i=0,o=t;i<o.length;i++){var a=o[i];e._buffer.enqueue(a)}h(n);v()}function h(e){var t=10;var n;if(r<=1){n=t}else{var o=(Math.pow(2,r)-1)/2;var a=Math.floor(Math.random()*o*t)+1;a=e*a;n=Math.max(Math.min(a,3600),t)}var s=Da.dateNow()+n*1e3;i=s}function v(){if(!o){var t=i?Math.max(0,i-Da.dateNow()):0;var n=Math.max(e._senderConfig.maxBatchInterval(),t);o=setTimeout((function(){e.triggerSend(true,null,1)}),n)}}function m(e){return e===408||e===429||e===500||e===503}function g(e,t){if(e){return"XMLHttpRequest,Status:"+e.status+",Response:"+Yc(e)||e.response||""}return t}function y(t,n){var r=Yo();var i=new XDomainRequest;i.onload=function(){return e._xdrOnLoad(i,t)};i.onerror=function(n){return e._onError(t,b(i),n)};var o=r&&r.location&&r.location.protocol||"";if(e._senderConfig.endpointUrl().lastIndexOf(o,0)!==0){e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,". "+"Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.");e._buffer.clear();return}var a=e._senderConfig.endpointUrl().replace(/^(https?:)/,"");i.open("POST",a);var s=e._buffer.batchPayloads(t);i.send(s);e._buffer.markAsSent(t)}function b(e,t){if(e){return"XDomainRequest,Response:"+Yc(e)||""}return t}function w(){var t="getNotifyMgr";if(e.core[t]){return e.core[t]()}return e.core["_notificationManager"]}function x(t,n){var r=w();if(r&&r.eventsSendRequest){try{r.eventsSendRequest(t,n)}catch(t){e.diagLog().throwInternal(Ma.CRITICAL,Ua.NotificationException,"send request notification failed: "+_u.getExceptionName(t),{exception:_u.dump(t)})}}}function S(e){var t=Da.isNullOrUndefined(e.disableInstrumentaionKeyValidation)?false:e.disableInstrumentaionKeyValidation;if(t){return true}var n="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";var r=new RegExp(n);return r.test(e.instrumentationKey)}}));return n}t.constructEnvelope=function(e,t,n){var r;if(t!==e.iKey&&!Da.isNullOrUndefined(t)){r=__assign({},e,{iKey:t})}else{r=e}switch(r.baseType){case ju.dataType:return Uc.EventEnvelopeCreator.Create(n,r);case uc.dataType:return zc.TraceEnvelopeCreator.Create(n,r);case ic.dataType:return jc.PageViewEnvelopeCreator.Create(n,r);case lc.dataType:return Vc.PageViewPerformanceEnvelopeCreator.Create(n,r);case Xu.dataType:return Lc.ExceptionEnvelopeCreator.Create(n,r);case nc.dataType:return Bc.MetricEnvelopeCreator.Create(n,r);case ac.dataType:return Mc.DependencyEnvelopeCreator.Create(n,r);default:return Uc.EventEnvelopeCreator.Create(n,r)}};t._getDefaultAppInsightsChannelConfig=function(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return false},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return false},enableSessionStorageBuffer:function(){return true},isRetryDisabled:function(){return false},isBeaconApiDisabled:function(){return true},onunloadDisableBeacon:function(){return false},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100}}};t._getEmptyAppInsightsChannelConfig=function(){return{endpointUrl:undefined,emitLineDelimitedJson:undefined,maxBatchInterval:undefined,maxBatchSizeInBytes:undefined,disableTelemetry:undefined,enableSessionStorageBuffer:undefined,isRetryDisabled:undefined,isBeaconApiDisabled:undefined,onunloadDisableBeacon:undefined,instrumentationKey:undefined,namePrefix:undefined,samplingPercentage:undefined}};return t}(Us);var $c=function(){function e(){}return e}();var Zc=function(){function e(t,n){var r=this;if(Da.isNullOrUndefined(n)){this._logger=new Is}else{this._logger=n}if(!t){t={}}if(!(typeof t.sessionExpirationMs==="function")){t.sessionExpirationMs=function(){return e.acquisitionSpan}}if(!(typeof t.sessionRenewalMs==="function")){t.sessionRenewalMs=function(){return e.renewalSpan}}this.config=t;this._storageNamePrefix=function(){return r.config.namePrefix&&r.config.namePrefix()?e.cookieNameConst+r.config.namePrefix():e.cookieNameConst};this.automaticSession=new $c}e.prototype.update=function(){if(!this.automaticSession.id){this.initializeAutomaticSession()}var t=(new Date).getTime();var n=this.config.sessionExpirationMs()===0?false:t-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs();var r=this.config.sessionExpirationMs()===0?false:t-this.automaticSession.renewalDate>this.config.sessionRenewalMs();if(n||r){this.renew()}else{if(!this.cookieUpdatedTimestamp||t-this.cookieUpdatedTimestamp>e.cookieUpdateInterval){this.automaticSession.renewalDate=t;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)}}};e.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)};e.prototype.initializeAutomaticSession=function(){var e=_u.getCookie(this._logger,this._storageNamePrefix());if(e&&typeof e.split==="function"){this.initializeAutomaticSessionWithData(e)}else{var t=_u.getStorage(this._logger,this._storageNamePrefix());if(t){this.initializeAutomaticSessionWithData(t)}}if(!this.automaticSession.id){this.renew()}};e.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");if(t.length>0){this.automaticSession.id=t[0]}try{if(t.length>1){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n);this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0}if(t.length>2){var r=+t[2];this.automaticSession.renewalDate=+new Date(r);this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(Ma.CRITICAL,Ua.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+_u.getExceptionName(e),{exception:_u.dump(e)})}if(this.automaticSession.renewalDate===0){this._logger.throwInternal(Ma.WARNING,Ua.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")}};e.prototype.renew=function(){var e=(new Date).getTime();this.automaticSession.id=_u.newId(this.config&&this.config.idLength?this.config.idLength():22);this.automaticSession.acquisitionDate=e;this.automaticSession.renewalDate=e;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate);if(!_u.canUseLocalStorage()){this._logger.throwInternal(Ma.WARNING,Ua.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")}};e.prototype.setCookie=function(e,t,n){var r=t+this.config.sessionExpirationMs();var i=n+this.config.sessionRenewalMs();var o=new Date;var a=[e,t,n];if(r<i){o.setTime(r)}else{o.setTime(i)}var s=this.config.cookieDomain?this.config.cookieDomain():null;var u=this.config.sessionExpirationMs()===0?"0":o.toUTCString();_u.setCookie(this._logger,this._storageNamePrefix(),a.join("|")+";expires="+u,s);this.cookieUpdatedTimestamp=(new Date).getTime()};e.prototype.setStorage=function(e,t,n){_u.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))};e.acquisitionSpan=864e5;e.renewalSpan=18e5;e.cookieUpdateInterval=6e4;e.cookieNameConst="ai_session";return e}();var el=function(){function e(){}return e}();var tl=function(){function e(){this.id="browser";this.deviceClass="Browser"}return e}();var nl="2.5.10";var rl=function(){function e(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:"+nl}return e}();var il=function(){function e(t,n){this.isNewUser=false;this._logger=n;var r=_u.getCookie(this._logger,e.userCookieName);if(r){this.isNewUser=false;var i=r.split(e.cookieSeparator);if(i.length>0){this.id=i[0]}}this.config=t;if(!this.id){this.id=Da.newId(t&&t.idLength?t.idLength():22);var o=new Date;var a=Da.toISOString(o);this.accountAcquisitionDate=a;this.isNewUser=true;o.setTime(o.getTime()+31536e6);var s=[this.id,a];var u=this.config.cookieDomain?this.config.cookieDomain():undefined;_u.setCookie(this._logger,e.userCookieName,s.join(e.cookieSeparator)+";expires="+o.toUTCString(),u);var c=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";_u.removeStorage(this._logger,c)}this.accountId=t.accountId?t.accountId():undefined;var l=_u.getCookie(this._logger,e.authUserCookieName);if(l){l=decodeURI(l);var f=l.split(e.cookieSeparator);if(f[0]){this.authenticatedId=f[0]}if(f.length>1&&f[1]){this.accountId=f[1]}}}e.prototype.setAuthenticatedUserContext=function(t,n,r){if(r===void 0){r=false}var i=!this.validateUserInput(t)||n&&!this.validateUserInput(n);if(i){this._logger.throwInternal(Ma.WARNING,Ua.SetAuthContextFailedAccountName,"Setting auth user context failed. "+"User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",true);return}this.authenticatedId=t;var o=this.authenticatedId;if(n){this.accountId=n;o=[this.authenticatedId,this.accountId].join(e.cookieSeparator)}if(r){_u.setCookie(this._logger,e.authUserCookieName,encodeURI(o),this.config.cookieDomain())}};e.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null;this.accountId=null;_u.deleteCookie(this._logger,e.authUserCookieName)};e.prototype.validateUserInput=function(e){if(typeof e!=="string"||!e||e.match(/,|;|=| |\|/)){return false}return true};e.cookieSeparator="|";e.userCookieName="ai_user";e.authUserCookieName="ai_authUser";return e}();var ol=function(){function e(){}return e}();var al=function(){function e(e,t,n,r){this.traceID=e||_u.generateW3CId();this.parentID=t;this.name=n;var i=ra();if(!n&&i&&i.pathname){this.name=i.pathname}this.name=bu.sanitizeString(r,this.name)}return e}();var sl=function(){function e(e,t){var n=this;n.application=new el;n.internal=new rl(t);if(Xo()){n.sessionManager=new Zc(t,e);n.device=new tl;n.location=new ol;n.user=new il(t,e);n.telemetryTrace=new al(undefined,undefined,undefined,e);n.session=new $c}n.appId=function(){return null}}e.prototype.applySessionContext=function(e,t){var n=this.session;var r=this.sessionManager;var i=n||r&&r.automaticSession;if(i){if(Da.isString(i.id)){e.ext.app.sesId=i.id}}if(n){if(Da.isString(n.id)){e.ext.app.sesId=n.id}else{e.ext.app.sesId=r.automaticSession.id}}};e.prototype.applyOperatingSystemContxt=function(e,t){var n=this.os;if(n&&n.name){e.ext.os=n}};e.prototype.applyApplicationContext=function(e,t){var n=this.application;if(n){if(Da.isString(n.ver)){e.tags[mc.applicationVersion]=n.ver}if(Da.isString(n.build)){e.tags[mc.applicationBuild]=n.build}}};e.prototype.applyDeviceContext=function(e,t){var n=this.device;if(n){if(Da.isString(n.id)){e.ext.device.localId=n.id}if(Da.isString(n.ip)){e.ext.device.ip=n.ip}if(Da.isString(n.model)){e.ext.device.model=n.model}if(Da.isString(n.deviceClass)){e.ext.device.deviceClass=n.deviceClass}}};e.prototype.applyInternalContext=function(e,t){var n=this.internal;if(n){if(Da.isString(n.agentVersion)){e.tags[mc.internalAgentVersion]=n.agentVersion}if(Da.isString(n.sdkVersion)){e.tags[mc.internalSdkVersion]=n.sdkVersion}if(e.baseType===Ss.dataType||e.baseType===ic.dataType){if(Da.isString(n.snippetVer)){e.tags[mc.internalSnippet]=n.snippetVer}if(Da.isString(n.sdkSrc)){e.tags[mc.internalSdkSrc]=n.sdkSrc}}}};e.prototype.applyLocationContext=function(e,t){var n=this.location;if(n){if(Da.isString(n.ip)){e.tags[mc.locationIp]=n.ip}}};e.prototype.applyOperationContext=function(e,t){var n=this.telemetryTrace;if(n){var r=e.ext.trace||{traceID:undefined,parentID:undefined};if(Da.isString(n.traceID)){r.traceID=n.traceID}if(Da.isString(n.name)){r.name=n.name}if(Da.isString(n.parentID)){r.parentID=n.parentID}e.ext.trace=r}};e.prototype.applyWebContext=function(e,t){var n=this.web;if(n){e.ext.web=e.ext.web||{};e.ext.web=n}};e.prototype.applyUserContext=function(e,t){var n=this.user;if(n){if(!e.tags){e.tags=[]}if(Da.isString(n.accountId)){e.tags[mc.userAccountId]=n.accountId}if(Da.isString(n.id)){e.ext.user.id=n.id}if(Da.isString(n.authenticatedId)){e.ext.user.authId=n.authenticatedId}}};e.prototype.cleanUp=function(e,t){if(e.ext[vc.DeviceExt]&&Da.objKeys(e.ext[vc.DeviceExt]).length===0){delete e.ext[vc.DeviceExt]}if(e.ext[vc.UserExt]&&Da.objKeys(e.ext[vc.UserExt]).length===0){delete e.ext[vc.UserExt]}if(e.ext[vc.WebExt]&&Da.objKeys(e.ext[vc.WebExt]).length===0){delete e.ext[vc.WebExt]}if(e.ext[vc.OSExt]&&Da.objKeys(e.ext[vc.OSExt]).length===0){delete e.ext[vc.OSExt]}if(e.ext[vc.AppExt]&&Da.objKeys(e.ext[vc.AppExt]).length===0){delete e.ext[vc.AppExt]}if(e.ext[vc.TraceExt]&&Da.objKeys(e.ext[vc.TraceExt]).length===0){delete e.ext[vc.TraceExt]}};return e}();var ul=function(e){__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.priority=110;t.identifier=gc;return t}t.getDefaultConfig=function(){var e={instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 30*60*1e3},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 24*60*60*1e3},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return false},appId:function(){return null},namePrefix:function(){return undefined},idLength:function(){return 22}};return e};t.prototype.initialize=function(n,r,i,o){var a=this;e.prototype.initialize.call(this,n,r,i,o);var s=this._getTelCtx();var u=this.identifier;var c=t.getDefaultConfig();this._extensionConfig=this._extensionConfig||t.getDefaultConfig();Oa(c,(function(e,t){a._extensionConfig[e]=function(){return s.getConfig(u,e,t())}}));this.context=new sl(r.logger,this._extensionConfig);this._breezeChannel=_u.getExtension(i,yc);this.context.appId=function(){return a._breezeChannel?a._breezeChannel["_appId"]:null}};t.prototype.processTelemetry=function(e,t){if(Da.isNullOrUndefined(e));else{t=this._getTelCtx(t);if(e.name===ic.envelopeType){t.diagLog().resetInternalMessageCount()}if(this.context.session){if(typeof this.context.session.id!=="string"){this.context.sessionManager.update()}}this._processTelemetryInternal(e,t);if(this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=false;var n=new Ss(Ua.SendBrowserInfoOnUserInit,(ea()||{}).userAgent||"");t.diagLog().logInternalMessage(Ma.CRITICAL,n)}this.processNext(e,t)}};t.prototype._processTelemetryInternal=function(e,t){if(!e.tags){e.tags=[]}if(!e.ext){e.ext={}}var n=e.ext;n[vc.DeviceExt]=n[vc.DeviceExt]||{};n[vc.WebExt]=n[vc.WebExt]||{};n[vc.UserExt]=n[vc.UserExt]||{};n[vc.OSExt]=n[vc.OSExt]||{};n[vc.AppExt]=n[vc.AppExt]||{};n[vc.TraceExt]=n[vc.TraceExt]||{};var r=this.context;r.applySessionContext(e,t);r.applyApplicationContext(e,t);r.applyDeviceContext(e,t);r.applyOperationContext(e,t);r.applyUserContext(e,t);r.applyOperatingSystemContxt(e,t);r.applyWebContext(e,t);r.applyLocationContext(e,t);r.applyInternalContext(e,t);r.cleanUp(e,t)};return t}(Us);
|
|
53
|
+
*/function Yc(e){try{return e.responseText}catch(e){}return null}var Jc=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.priority=1001;n.identifier=yc;n._XMLHttpRequestSupported=false;var r;var i;var o;var a;ms(t,n,(function(e,s){function u(){throw new Error("Method not implemented.")}e.pause=u;e.resume=u;e.flush=function(){try{e.triggerSend(true,null,1)}catch(t){e.diagLog().throwInternal(Ma.CRITICAL,Ua.FlushFailed,"flush failed, telemetry will not be collected: "+_u.getExceptionName(t),{exception:_u.dump(t)})}};e.onunloadFlush=function(){if((e._senderConfig.onunloadDisableBeacon()===false||e._senderConfig.isBeaconApiDisabled()===false)&&_u.IsBeaconApiSupported()){try{e.triggerSend(true,l,2)}catch(t){e.diagLog().throwInternal(Ma.CRITICAL,Ua.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+_u.getExceptionName(t),{exception:_u.dump(t)})}}else{e.flush()}};e.teardown=u;e.initialize=function(n,o,u,c){s.initialize(n,o,u,c);var d=e._getTelCtx();var p=e.identifier;a=new Qc(o.logger);r=0;i=null;e._sender=null;var h=t._getDefaultAppInsightsChannelConfig();e._senderConfig=t._getEmptyAppInsightsChannelConfig();Oa(h,(function(t,n){e._senderConfig[t]=function(){return d.getConfig(p,t,n())}}));e._buffer=e._senderConfig.enableSessionStorageBuffer()&&_u.canUseSessionStorage()?new Ac(e.diagLog(),e._senderConfig):new Ec(e._senderConfig);e._sample=new Xc(e._senderConfig.samplingPercentage(),e.diagLog());if(!S(n)){e.diagLog().throwInternal(Ma.CRITICAL,Ua.InvalidInstrumentationKey,"Invalid Instrumentation key "+n.instrumentationKey)}if(!e._senderConfig.isBeaconApiDisabled()&&_u.IsBeaconApiSupported()){e._sender=l}else{if(typeof XMLHttpRequest!==undefined){var v=Ko("XMLHttpRequest");if(v){var m=new v;if("withCredentials"in m){e._sender=f;e._XMLHttpRequestSupported=true}else if(typeof XDomainRequest!==undefined){e._sender=y}}}}};e.processTelemetry=function(n,r){r=e._getTelCtx(r);try{if(e._senderConfig.disableTelemetry()){return}if(!n){r.diagLog().throwInternal(Ma.CRITICAL,Ua.CannotSendEmptyTelemetry,"Cannot send empty telemetry");return}if(n.baseData&&!n.baseType){r.diagLog().throwInternal(Ma.CRITICAL,Ua.InvalidEvent,"Cannot send telemetry without baseData and baseType");return}if(!n.baseType){n.baseType="EventData"}if(!e._sender){r.diagLog().throwInternal(Ma.CRITICAL,Ua.SenderNotInitialized,"Sender was not initialized");return}if(!c(n)){r.diagLog().throwInternal(Ma.WARNING,Ua.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:e._sample.sampleRate});return}else{n[Fu]=e._sample.sampleRate}var i=t.constructEnvelope(n,e._senderConfig.instrumentationKey(),r.diagLog());if(!i){r.diagLog().throwInternal(Ma.CRITICAL,Ua.CreateEnvelopeError,"Unable to create an AppInsights envelope");return}var o=false;if(n.tags&&n.tags[Nu]){Da.arrForEach(n.tags[Nu],(function(e){try{if(e&&e(i)===false){o=true;r.diagLog().warnToConsole("Telemetry processor check returns false")}}catch(e){r.diagLog().throwInternal(Ma.CRITICAL,Ua.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+_u.getExceptionName(e),{exception:_u.dump(e)},true)}}));delete n.tags[Nu]}if(o){return}var s=a.serialize(i);var u=e._buffer.getItems();var l=e._buffer.batchPayloads(u);if(l&&l.length+s.length>e._senderConfig.maxBatchSizeInBytes()){e.triggerSend(true,null,10)}e._buffer.enqueue(s);v()}catch(e){r.diagLog().throwInternal(Ma.WARNING,Ua.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+_u.getExceptionName(e),{exception:_u.dump(e)})}e.processNext(n,r)};e._xhrReadyStateChange=function(t,n,i){if(t.readyState===4){var o=null;if(!e._appId){o=d(Yc(t)||t.response);if(o&&o.appId){e._appId=o.appId}}if((t.status<200||t.status>=300)&&t.status!==0){if(!e._senderConfig.isRetryDisabled()&&m(t.status)){p(n);e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,". "+"Response code "+t.status+". Will retry to send "+n.length+" items.")}else{e._onError(n,g(t))}}else if(Wc.isOffline()){if(!e._senderConfig.isRetryDisabled()){var a=10;p(n,a);e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,". Offline - Response Code: "+t.status+". Offline status: "+Wc.isOffline()+". Will retry to send "+n.length+" items.")}}else{if(t.status===206){if(!o){o=d(Yc(t)||t.response)}if(o&&!e._senderConfig.isRetryDisabled()){e._onPartialSuccess(n,o)}else{e._onError(n,g(t))}}else{r=0;e._onSuccess(n,i)}}}};e.triggerSend=function(t,r,a){if(t===void 0){t=true}try{if(!e._senderConfig.disableTelemetry()){if(e._buffer.count()>0){var s=e._buffer.getItems();x(a||0,t);if(r){r.call(n,s,t)}else{e._sender(s,t)}}}else{e._buffer.clear()}clearTimeout(o);o=null;i=null}catch(t){var u=_u.getIEVersion();if(!u||u>9){e.diagLog().throwInternal(Ma.CRITICAL,Ua.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+_u.getExceptionName(t),{exception:_u.dump(t)})}}};e._onError=function(t,n,r){e.diagLog().throwInternal(Ma.WARNING,Ua.OnError,"Failed to send telemetry.",{message:n});e._buffer.clearSent(t)};e._onPartialSuccess=function(t,n){var r=[];var i=[];var o=n.errors.reverse();for(var a=0,s=o;a<s.length;a++){var u=s[a];var c=t.splice(u.index,1)[0];if(m(u.statusCode)){i.push(c)}else{r.push(c)}}if(t.length>0){e._onSuccess(t,n.itemsAccepted)}if(r.length>0){e._onError(r,g(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" ")))}if(i.length>0){p(i);e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,"Partial success. "+"Delivered: "+t.length+", Failed: "+r.length+". Will retry to send "+i.length+" our of "+n.itemsReceived+" items")}};e._onSuccess=function(t,n){e._buffer.clearSent(t)};e._xdrOnLoad=function(t,n){var i=Yc(t);if(t&&(i+""==="200"||i==="")){r=0;e._onSuccess(n,0)}else{var o=d(i);if(o&&o.itemsReceived&&o.itemsReceived>o.itemsAccepted&&!e._senderConfig.isRetryDisabled()){e._onPartialSuccess(n,o)}else{e._onError(n,b(t))}}};function c(t){return e._sample.isSampledIn(t)}function l(t,n){var r=e._senderConfig.endpointUrl();var i=e._buffer.batchPayloads(t);var o=new Blob([i],{type:"text/plain;charset=UTF-8"});var a=ea().sendBeacon(r,o);if(a){e._buffer.markAsSent(t);e._onSuccess(t,t.length)}else{f(t,true);e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,". "+"Failed to send telemetry with Beacon API, retried with xhrSender.")}}function f(t,n){var r=new XMLHttpRequest;var i=e._senderConfig.endpointUrl();try{r[Au]=true}catch(e){}r.open("POST",i,n);r.setRequestHeader("Content-type","application/json");if(_u.isInternalApplicationInsightsEndpoint(i)){r.setRequestHeader(yu.sdkContextHeader,yu.sdkContextHeaderAppIdRequest)}r.onreadystatechange=function(){return e._xhrReadyStateChange(r,t,t.length)};r.onerror=function(n){return e._onError(t,g(r),n)};var o=e._buffer.batchPayloads(t);r.send(o);e._buffer.markAsSent(t)}function d(t){try{if(t&&t!==""){var n=sa().parse(t);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length){return n}}}catch(n){e.diagLog().throwInternal(Ma.CRITICAL,Ua.InvalidBackendResponse,"Cannot parse the response. "+_u.getExceptionName(n),{response:t})}return null}function p(t,n){if(n===void 0){n=1}if(!t||t.length===0){return}e._buffer.clearSent(t);r++;for(var i=0,o=t;i<o.length;i++){var a=o[i];e._buffer.enqueue(a)}h(n);v()}function h(e){var t=10;var n;if(r<=1){n=t}else{var o=(Math.pow(2,r)-1)/2;var a=Math.floor(Math.random()*o*t)+1;a=e*a;n=Math.max(Math.min(a,3600),t)}var s=Da.dateNow()+n*1e3;i=s}function v(){if(!o){var t=i?Math.max(0,i-Da.dateNow()):0;var n=Math.max(e._senderConfig.maxBatchInterval(),t);o=setTimeout((function(){e.triggerSend(true,null,1)}),n)}}function m(e){return e===408||e===429||e===500||e===503}function g(e,t){if(e){return"XMLHttpRequest,Status:"+e.status+",Response:"+Yc(e)||e.response||""}return t}function y(t,n){var r=Yo();var i=new XDomainRequest;i.onload=function(){return e._xdrOnLoad(i,t)};i.onerror=function(n){return e._onError(t,b(i),n)};var o=r&&r.location&&r.location.protocol||"";if(e._senderConfig.endpointUrl().lastIndexOf(o,0)!==0){e.diagLog().throwInternal(Ma.WARNING,Ua.TransmissionFailed,". "+"Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.");e._buffer.clear();return}var a=e._senderConfig.endpointUrl().replace(/^(https?:)/,"");i.open("POST",a);var s=e._buffer.batchPayloads(t);i.send(s);e._buffer.markAsSent(t)}function b(e,t){if(e){return"XDomainRequest,Response:"+Yc(e)||""}return t}function w(){var t="getNotifyMgr";if(e.core[t]){return e.core[t]()}return e.core["_notificationManager"]}function x(t,n){var r=w();if(r&&r.eventsSendRequest){try{r.eventsSendRequest(t,n)}catch(t){e.diagLog().throwInternal(Ma.CRITICAL,Ua.NotificationException,"send request notification failed: "+_u.getExceptionName(t),{exception:_u.dump(t)})}}}function S(e){var t=Da.isNullOrUndefined(e.disableInstrumentaionKeyValidation)?false:e.disableInstrumentaionKeyValidation;if(t){return true}var n="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";var r=new RegExp(n);return r.test(e.instrumentationKey)}}));return n}t.constructEnvelope=function(e,t,n){var r;if(t!==e.iKey&&!Da.isNullOrUndefined(t)){r=__assign({},e,{iKey:t})}else{r=e}switch(r.baseType){case ju.dataType:return Uc.EventEnvelopeCreator.Create(n,r);case uc.dataType:return zc.TraceEnvelopeCreator.Create(n,r);case ic.dataType:return jc.PageViewEnvelopeCreator.Create(n,r);case lc.dataType:return Vc.PageViewPerformanceEnvelopeCreator.Create(n,r);case Xu.dataType:return Lc.ExceptionEnvelopeCreator.Create(n,r);case nc.dataType:return Bc.MetricEnvelopeCreator.Create(n,r);case ac.dataType:return Mc.DependencyEnvelopeCreator.Create(n,r);default:return Uc.EventEnvelopeCreator.Create(n,r)}};t._getDefaultAppInsightsChannelConfig=function(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return false},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return false},enableSessionStorageBuffer:function(){return true},isRetryDisabled:function(){return false},isBeaconApiDisabled:function(){return true},onunloadDisableBeacon:function(){return false},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100}}};t._getEmptyAppInsightsChannelConfig=function(){return{endpointUrl:undefined,emitLineDelimitedJson:undefined,maxBatchInterval:undefined,maxBatchSizeInBytes:undefined,disableTelemetry:undefined,enableSessionStorageBuffer:undefined,isRetryDisabled:undefined,isBeaconApiDisabled:undefined,onunloadDisableBeacon:undefined,instrumentationKey:undefined,namePrefix:undefined,samplingPercentage:undefined}};return t}(Us);var $c=function(){function e(){}return e}();var Zc=function(){function e(t,n){var r=this;if(Da.isNullOrUndefined(n)){this._logger=new Is}else{this._logger=n}if(!t){t={}}if(!(typeof t.sessionExpirationMs==="function")){t.sessionExpirationMs=function(){return e.acquisitionSpan}}if(!(typeof t.sessionRenewalMs==="function")){t.sessionRenewalMs=function(){return e.renewalSpan}}this.config=t;this._storageNamePrefix=function(){return r.config.namePrefix&&r.config.namePrefix()?e.cookieNameConst+r.config.namePrefix():e.cookieNameConst};this.automaticSession=new $c}e.prototype.update=function(){if(!this.automaticSession.id){this.initializeAutomaticSession()}var t=(new Date).getTime();var n=this.config.sessionExpirationMs()===0?false:t-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs();var r=this.config.sessionExpirationMs()===0?false:t-this.automaticSession.renewalDate>this.config.sessionRenewalMs();if(n||r){this.renew()}else{if(!this.cookieUpdatedTimestamp||t-this.cookieUpdatedTimestamp>e.cookieUpdateInterval){this.automaticSession.renewalDate=t;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)}}};e.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)};e.prototype.initializeAutomaticSession=function(){var e=_u.getCookie(this._logger,this._storageNamePrefix());if(e&&typeof e.split==="function"){this.initializeAutomaticSessionWithData(e)}else{var t=_u.getStorage(this._logger,this._storageNamePrefix());if(t){this.initializeAutomaticSessionWithData(t)}}if(!this.automaticSession.id){this.renew()}};e.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");if(t.length>0){this.automaticSession.id=t[0]}try{if(t.length>1){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n);this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0}if(t.length>2){var r=+t[2];this.automaticSession.renewalDate=+new Date(r);this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(Ma.CRITICAL,Ua.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+_u.getExceptionName(e),{exception:_u.dump(e)})}if(this.automaticSession.renewalDate===0){this._logger.throwInternal(Ma.WARNING,Ua.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")}};e.prototype.renew=function(){var e=(new Date).getTime();this.automaticSession.id=_u.newId(this.config&&this.config.idLength?this.config.idLength():22);this.automaticSession.acquisitionDate=e;this.automaticSession.renewalDate=e;this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate);if(!_u.canUseLocalStorage()){this._logger.throwInternal(Ma.WARNING,Ua.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")}};e.prototype.setCookie=function(e,t,n){var r=t+this.config.sessionExpirationMs();var i=n+this.config.sessionRenewalMs();var o=new Date;var a=[e,t,n];if(r<i){o.setTime(r)}else{o.setTime(i)}var s=this.config.cookieDomain?this.config.cookieDomain():null;var u=this.config.sessionExpirationMs()===0?"0":o.toUTCString();_u.setCookie(this._logger,this._storageNamePrefix(),a.join("|")+";expires="+u,s);this.cookieUpdatedTimestamp=(new Date).getTime()};e.prototype.setStorage=function(e,t,n){_u.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))};e.acquisitionSpan=864e5;e.renewalSpan=18e5;e.cookieUpdateInterval=6e4;e.cookieNameConst="ai_session";return e}();var el=function(){function e(){}return e}();var tl=function(){function e(){this.id="browser";this.deviceClass="Browser"}return e}();var nl="2.5.10";var rl=function(){function e(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:"+nl}return e}();var il=function(){function e(t,n){this.isNewUser=false;this._logger=n;var r=_u.getCookie(this._logger,e.userCookieName);if(r){this.isNewUser=false;var i=r.split(e.cookieSeparator);if(i.length>0){this.id=i[0]}}this.config=t;if(!this.id){this.id=Da.newId(t&&t.idLength?t.idLength():22);var o=new Date;var a=Da.toISOString(o);this.accountAcquisitionDate=a;this.isNewUser=true;o.setTime(o.getTime()+31536e6);var s=[this.id,a];var u=this.config.cookieDomain?this.config.cookieDomain():undefined;_u.setCookie(this._logger,e.userCookieName,s.join(e.cookieSeparator)+";expires="+o.toUTCString(),u);var c=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";_u.removeStorage(this._logger,c)}this.accountId=t.accountId?t.accountId():undefined;var l=_u.getCookie(this._logger,e.authUserCookieName);if(l){l=decodeURI(l);var f=l.split(e.cookieSeparator);if(f[0]){this.authenticatedId=f[0]}if(f.length>1&&f[1]){this.accountId=f[1]}}}e.prototype.setAuthenticatedUserContext=function(t,n,r){if(r===void 0){r=false}var i=!this.validateUserInput(t)||n&&!this.validateUserInput(n);if(i){this._logger.throwInternal(Ma.WARNING,Ua.SetAuthContextFailedAccountName,"Setting auth user context failed. "+"User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",true);return}this.authenticatedId=t;var o=this.authenticatedId;if(n){this.accountId=n;o=[this.authenticatedId,this.accountId].join(e.cookieSeparator)}if(r){_u.setCookie(this._logger,e.authUserCookieName,encodeURI(o),this.config.cookieDomain())}};e.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null;this.accountId=null;_u.deleteCookie(this._logger,e.authUserCookieName)};e.prototype.validateUserInput=function(e){if(typeof e!=="string"||!e||e.match(/,|;|=| |\|/)){return false}return true};e.cookieSeparator="|";e.userCookieName="ai_user";e.authUserCookieName="ai_authUser";return e}();var ol=function(){function e(){}return e}();var al=function(){function e(e,t,n,r){this.traceID=e||_u.generateW3CId();this.parentID=t;this.name=n;var i=ra();if(!n&&i&&i.pathname){this.name=i.pathname}this.name=bu.sanitizeString(r,this.name)}return e}();var sl=function(){function e(e,t){var n=this;n.application=new el;n.internal=new rl(t);if(Xo()){n.sessionManager=new Zc(t,e);n.device=new tl;n.location=new ol;n.user=new il(t,e);n.telemetryTrace=new al(undefined,undefined,undefined,e);n.session=new $c}n.appId=function(){return null}}e.prototype.applySessionContext=function(e,t){var n=this.session;var r=this.sessionManager;var i=n||r&&r.automaticSession;if(i){if(Da.isString(i.id)){e.ext.app.sesId=i.id}}if(n){if(Da.isString(n.id)){e.ext.app.sesId=n.id}else{e.ext.app.sesId=r.automaticSession.id}}};e.prototype.applyOperatingSystemContxt=function(e,t){var n=this.os;if(n&&n.name){e.ext.os=n}};e.prototype.applyApplicationContext=function(e,t){var n=this.application;if(n){if(Da.isString(n.ver)){e.tags[mc.applicationVersion]=n.ver}if(Da.isString(n.build)){e.tags[mc.applicationBuild]=n.build}}};e.prototype.applyDeviceContext=function(e,t){var n=this.device;if(n){if(Da.isString(n.id)){e.ext.device.localId=n.id}if(Da.isString(n.ip)){e.ext.device.ip=n.ip}if(Da.isString(n.model)){e.ext.device.model=n.model}if(Da.isString(n.deviceClass)){e.ext.device.deviceClass=n.deviceClass}}};e.prototype.applyInternalContext=function(e,t){var n=this.internal;if(n){if(Da.isString(n.agentVersion)){e.tags[mc.internalAgentVersion]=n.agentVersion}if(Da.isString(n.sdkVersion)){e.tags[mc.internalSdkVersion]=n.sdkVersion}if(e.baseType===Ss.dataType||e.baseType===ic.dataType){if(Da.isString(n.snippetVer)){e.tags[mc.internalSnippet]=n.snippetVer}if(Da.isString(n.sdkSrc)){e.tags[mc.internalSdkSrc]=n.sdkSrc}}}};e.prototype.applyLocationContext=function(e,t){var n=this.location;if(n){if(Da.isString(n.ip)){e.tags[mc.locationIp]=n.ip}}};e.prototype.applyOperationContext=function(e,t){var n=this.telemetryTrace;if(n){var r=e.ext.trace||{traceID:undefined,parentID:undefined};if(Da.isString(n.traceID)){r.traceID=n.traceID}if(Da.isString(n.name)){r.name=n.name}if(Da.isString(n.parentID)){r.parentID=n.parentID}e.ext.trace=r}};e.prototype.applyWebContext=function(e,t){var n=this.web;if(n){e.ext.web=e.ext.web||{};e.ext.web=n}};e.prototype.applyUserContext=function(e,t){var n=this.user;if(n){if(!e.tags){e.tags=[]}if(Da.isString(n.accountId)){e.tags[mc.userAccountId]=n.accountId}if(Da.isString(n.id)){e.ext.user.id=n.id}if(Da.isString(n.authenticatedId)){e.ext.user.authId=n.authenticatedId}}};e.prototype.cleanUp=function(e,t){if(e.ext[vc.DeviceExt]&&Da.objKeys(e.ext[vc.DeviceExt]).length===0){delete e.ext[vc.DeviceExt]}if(e.ext[vc.UserExt]&&Da.objKeys(e.ext[vc.UserExt]).length===0){delete e.ext[vc.UserExt]}if(e.ext[vc.WebExt]&&Da.objKeys(e.ext[vc.WebExt]).length===0){delete e.ext[vc.WebExt]}if(e.ext[vc.OSExt]&&Da.objKeys(e.ext[vc.OSExt]).length===0){delete e.ext[vc.OSExt]}if(e.ext[vc.AppExt]&&Da.objKeys(e.ext[vc.AppExt]).length===0){delete e.ext[vc.AppExt]}if(e.ext[vc.TraceExt]&&Da.objKeys(e.ext[vc.TraceExt]).length===0){delete e.ext[vc.TraceExt]}};return e}();var ul=function(e){__extends(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.priority=110;t.identifier=gc;return t}t.getDefaultConfig=function(){var e={instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 30*60*1e3},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 24*60*60*1e3},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return false},appId:function(){return null},namePrefix:function(){return undefined},idLength:function(){return 22}};return e};t.prototype.initialize=function(n,r,i,o){var a=this;e.prototype.initialize.call(this,n,r,i,o);var s=this._getTelCtx();var u=this.identifier;var c=t.getDefaultConfig();this._extensionConfig=this._extensionConfig||t.getDefaultConfig();Oa(c,(function(e,t){a._extensionConfig[e]=function(){return s.getConfig(u,e,t())}}));this.context=new sl(r.logger,this._extensionConfig);this._breezeChannel=_u.getExtension(i,yc);this.context.appId=function(){return a._breezeChannel?a._breezeChannel["_appId"]:null}};t.prototype.processTelemetry=function(e,t){if(Da.isNullOrUndefined(e));else{t=this._getTelCtx(t);if(e.name===ic.envelopeType){t.diagLog().resetInternalMessageCount()}if(this.context.session){if(typeof this.context.session.id!=="string"){this.context.sessionManager.update()}}this._processTelemetryInternal(e,t);if(this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=false;var n=new Ss(Ua.SendBrowserInfoOnUserInit,(ea()||{}).userAgent||"");t.diagLog().logInternalMessage(Ma.CRITICAL,n)}this.processNext(e,t)}};t.prototype._processTelemetryInternal=function(e,t){if(!e.tags){e.tags=[]}if(!e.ext){e.ext={}}var n=e.ext;n[vc.DeviceExt]=n[vc.DeviceExt]||{};n[vc.WebExt]=n[vc.WebExt]||{};n[vc.UserExt]=n[vc.UserExt]||{};n[vc.OSExt]=n[vc.OSExt]||{};n[vc.AppExt]=n[vc.AppExt]||{};n[vc.TraceExt]=n[vc.TraceExt]||{};var r=this.context;r.applySessionContext(e,t);r.applyApplicationContext(e,t);r.applyDeviceContext(e,t);r.applyOperationContext(e,t);r.applyUserContext(e,t);r.applyOperatingSystemContxt(e,t);r.applyWebContext(e,t);r.applyLocationContext(e,t);r.applyInternalContext(e,t);r.cleanUp(e,t)};return t}(Us);
|
|
54
54
|
/*!
|
|
55
55
|
* Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
|
|
56
56
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
57
|
-
*/var cl="properties";var ll=Da.objKeys;var fl=Da.arrForEach;function dl(e,t,n){var r=0;var i=e[t];var o=e[n];if(i&&o){r=Eu.GetDuration(i,o)}return r}function pl(e,t,n,r,i){var o=0;var a=dl(n,r,i);if(a){o=hl(e,t,_u.msToTimeSpan(a))}return o}function hl(e,t,n){var r="ajaxPerf";var i=0;if(e&&t&&n){var o=e[r]=e[r]||{};o[t]=n;i=1}return i}function vl(e,t){var n=e.perfTiming;var r=t[cl]||{};var i=0;var o=Da.isString;var a="name";var s="Start";var u="End";var c="domainLookup";var l="connect";var f="redirect";var d="request";var p="response";var h="duration";var v="startTime";var m=c+s;var g=c+u;var y=l+s;var b=l+u;var w=d+s;var x=d+u;var S=p+s;var I=p+u;var _=f+s;var C=f=u;var k="transferSize";var T="encodedBodySize";var E="decodedBodySize";var A="serverTiming";if(n){i|=pl(r,f,n,_,C);i|=pl(r,c,n,m,g);i|=pl(r,l,n,y,b);i|=pl(r,d,n,w,x);i|=pl(r,p,n,S,I);i|=pl(r,"networkConnect",n,v,b);i|=pl(r,"sentRequest",n,w,I);var
|
|
57
|
+
*/var cl="properties";var ll=Da.objKeys;var fl=Da.arrForEach;function dl(e,t,n){var r=0;var i=e[t];var o=e[n];if(i&&o){r=Eu.GetDuration(i,o)}return r}function pl(e,t,n,r,i){var o=0;var a=dl(n,r,i);if(a){o=hl(e,t,_u.msToTimeSpan(a))}return o}function hl(e,t,n){var r="ajaxPerf";var i=0;if(e&&t&&n){var o=e[r]=e[r]||{};o[t]=n;i=1}return i}function vl(e,t){var n=e.perfTiming;var r=t[cl]||{};var i=0;var o=Da.isString;var a="name";var s="Start";var u="End";var c="domainLookup";var l="connect";var f="redirect";var d="request";var p="response";var h="duration";var v="startTime";var m=c+s;var g=c+u;var y=l+s;var b=l+u;var w=d+s;var x=d+u;var S=p+s;var I=p+u;var _=f+s;var C=f=u;var k="transferSize";var T="encodedBodySize";var E="decodedBodySize";var A="serverTiming";if(n){i|=pl(r,f,n,_,C);i|=pl(r,c,n,m,g);i|=pl(r,l,n,y,b);i|=pl(r,d,n,w,x);i|=pl(r,p,n,S,I);i|=pl(r,"networkConnect",n,v,b);i|=pl(r,"sentRequest",n,w,I);var F=n[h];if(!F){F=dl(n,v,I)||0}i|=hl(r,h,F);i|=hl(r,"perfTotal",F);var N=n[A];if(N){var P={};fl(N,(function(e,t){var n=Pa(e[a]||""+t);var r=P[n]||{};Oa(e,(function(e,t){if(e!==a&&o(t)||Da.isNumber(t)){if(r[e]){t=r[e]+";"+t}if(t||!o(t)){r[e]=t}}}));P[n]=r}));i|=hl(r,A,P)}i|=hl(r,k,n[k]);i|=hl(r,T,n[T]);i|=hl(r,E,n[E])}else{if(e.perfMark){i|=hl(r,"missing",e.perfAttempts)}}if(i){t[cl]=r}}var ml=function(){function e(){var e=this;e.openDone=false;e.setRequestHeaderDone=false;e.sendDone=false;e.abortDone=false;e.stateChangeAttached=false}return e}();var gl=function(){function e(t,n,r){var i=this;var o=r;var a="responseText";i.perfMark=null;i.completed=false;i.requestHeadersSize=null;i.requestHeaders=null;i.responseReceivingDuration=null;i.callbackDuration=null;i.ajaxTotalDuration=null;i.aborted=0;i.pageUrl=null;i.requestUrl=null;i.requestSize=0;i.method=null;i.status=null;i.requestSentTime=null;i.responseStartedTime=null;i.responseFinishedTime=null;i.callbackFinishedTime=null;i.endTime=null;i.xhrMonitoringState=new ml;i.clientFailure=0;i.traceID=t;i.spanID=n;ms(e,i,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?Cu.getAbsoluteUrl(e.requestUrl):null};e.getPathName=function(){return e.requestUrl?bu.sanitizeUrl(o,Cu.getCompleteUrl(e.method,e.requestUrl)):null};e.CreateTrackItem=function(t,n,r){e.ajaxTotalDuration=Math.round(Eu.GetDuration(e.requestSentTime,e.responseFinishedTime)*1e3)/1e3;if(e.ajaxTotalDuration<0){return null}var i=(c={id:"|"+e.traceID+"."+e.spanID,target:e.getAbsoluteUrl(),name:e.getPathName(),type:t,duration:e.ajaxTotalDuration,success:+e.status>=200&&+e.status<400,responseCode:+e.status,method:e.method},c[cl]={HttpMethod:e.method},c);vl(e,i);if(n){if(ll(e.requestHeaders).length>0){i[cl]=i[cl]||{};i[cl].requestHeaders=e.requestHeaders}}if(r){var o=r();if(o){var s=o.correlationContext;if(s){i.correlationContext=s}if(o.headerMap){if(ll(o.headerMap).length>0){i[cl]=i[cl]||{};i[cl].responseHeaders=o.headerMap}}if(e.status>=400){var u=o.type;i[cl]=i[cl]||{};if(u===""||u==="text"){i[cl][a]=o[a]?o.statusText+" - "+o[a]:o.statusText}if(u==="json"){i[cl][a]=o.response?o.statusText+" - "+JSON.stringify(o.response):o.statusText}}}}return i;var c}}))}return e}();
|
|
58
58
|
/*!
|
|
59
59
|
* Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
|
|
60
60
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
@@ -62,7 +62,7 @@ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setP
|
|
|
62
62
|
/*!
|
|
63
63
|
* Application Insights JavaScript SDK - Dependencies Plugin, 2.5.10
|
|
64
64
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
65
|
-
*/var bl="ai.ajxmn.";var wl="diagLog";var xl="ajaxData";var Sl="throwInternal";var Il="fetch";var _l=Da.isNullOrUndefined;var Cl=Da.arrForEach;var kl=0;function Tl(){var e=Go();if(!e||_l(e.Request)||_l(e.Request[Do])||_l(e[Il])){return null}return e[Il]}function El(e){var t=false;if(typeof XMLHttpRequest!==Po&&!_l(XMLHttpRequest)){var n=XMLHttpRequest[Do];t=!_l(n)&&!_l(n.open)&&!_l(n.send)&&!_l(n.abort)}var r=_u.getIEVersion();if(r&&r<9){t=false}if(t){try{var i=new XMLHttpRequest;i[xl]={};var o=XMLHttpRequest[Do].open;XMLHttpRequest[Do].open=o}catch(n){t=false;Nl(e,Ua.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:_u.dump(n)})}}return t}function Al(e){var t="";try{if(!_l(e)&&!_l(e[xl])&&!_l(e[xl].requestUrl)){t+="(url: '"+e[xl].requestUrl+"')"}}catch(e){}return t}function Nl(e,t,n,r,i){e[wl]()[Sl](Ma.CRITICAL,t,n,r,i)}function Fl(e,t,n,r,i){e[wl]()[Sl](Ma.WARNING,t,n,r,i)}function Pl(e,t,n){return function(r){Nl(e,t,n,{ajaxDiagnosticsMessage:Al(r.inst),exception:_u.dump(r.err)})}}function Ol(e,t){if(e&&t){return e.indexOf(t)}return-1}var Dl=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier;n.priority=120;var r="trackDependencyDataInternal";var i=ra();var o=false;var a=false;var s=i&&i.host&&i.host.toLowerCase();var u=t.getEmptyConfig();var c=false;var l=0;var f;var d;var p;var h;var v=false;var m=0;var g=false;var y=[];var b={};ms(t,n,(function(e,n){e.initialize=function(r,o,a,s){if(!e.isInitialized()){n.initialize(r,o,a,s);var l=e._getTelCtx();var y=t.getDefaultConfig();Oa(y,(function(e,n){u[e]=l.getConfig(t.identifier,e,n)}));var b=u.distributedTracingMode;c=u.enableRequestHeaderTracking;v=u.enableAjaxPerfTracking;m=u.maxAjaxCallsPerView;g=u.enableResponseHeaderTracking;p=b===gu.AI||b===gu.AI_AND_W3C;d=b===gu.AI_AND_W3C||b===gu.W3C;if(v){var w=r.instrumentationKey||"unkwn";if(w.length>5){h=bl+w.substring(w.length-5)+"."}else{h=bl+w+"."}}if(u.disableAjaxTracking===false){x()}i();if(a.length>0&&a){var S=void 0,I=0;while(!S&&I<a.length){if(a[I]&&a[I].identifier===gc){S=a[I]}I++}if(S){f=S.context}}}};e.teardown=function(){Cl(y,(function(e){e.rm()}));y=[];o=false;a=false;e.setInitialized(false)};e.trackDependencyData=function(t,n){e[r](t,n)};e.includeCorrelationHeaders=function(t,n,r,i){var o=e["_currentWindowHost"]||s;if(n){if(ku.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),o)){if(!r){r={}}r.headers=new Headers(r.headers||(n instanceof Request?n.headers||{}:{}));if(p){var a="|"+t.traceID+"."+t.spanID;r.headers.set(yu.requestIdHeader,a);if(c){t.requestHeaders[yu.requestIdHeader]=a}}var l=u.appId||f&&f.appId();if(l){r.headers.set(yu.requestContextHeader,yu.requestContextAppIdFormat+l);if(c){t.requestHeaders[yu.requestContextHeader]=yu.requestContextAppIdFormat+l}}if(d){var h=new yl(t.traceID,t.spanID);r.headers.set(yu.traceParentHeader,h.toString());if(c){t.requestHeaders[yu.traceParentHeader]=h.toString()}}}return r}else if(i){if(ku.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),o)){if(p){var a="|"+t.traceID+"."+t.spanID;i.setRequestHeader(yu.requestIdHeader,a);if(c){t.requestHeaders[yu.requestIdHeader]=a}}var l=u.appId||f&&f.appId();if(l){i.setRequestHeader(yu.requestContextHeader,yu.requestContextAppIdFormat+l);if(c){t.requestHeaders[yu.requestContextHeader]=yu.requestContextAppIdFormat+l}}if(d){var h=new yl(t.traceID,t.spanID);i.setRequestHeader(yu.traceParentHeader,h.toString());if(c){t.requestHeaders[yu.traceParentHeader]=h.toString()}}}return i}return undefined};e[r]=function(t,n,r){if(m===-1||l<m){if((u.distributedTracingMode===gu.W3C||u.distributedTracingMode===gu.AI_AND_W3C)&&typeof t.id==="string"&&t.id[t.id.length-1]!=="."){t.id+="."}if(Da.isNullOrUndefined(t.startTime)){t.startTime=new Date}var i=hc.create(t,ac.dataType,ac.envelopeType,e[wl](),n,r);e.core.track(i)}else if(l===m){Nl(e,Ua.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",true)}++l};function i(){var t=Tl();if(!t){return}var n=Go();var r=t.polyfill;if(u.disableFetchTracking===false){y.push(hu(n,Il,{req:function(t,n,i){var s;if(o&&!S(null,n,i)&&!(r&&a)){var u=t.ctx();s=F(n,i);var c=e.includeCorrelationHeaders(s,n,i);if(c!==i){t.set(1,c)}u.data=s}},rsp:function(e,t){var n=e.ctx().data;if(n){e.rslt=e.rslt.then((function(t){O(e,(t||{}).status,t,n,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:D(t)};if(g){var n={};t.headers.forEach((function(e,t){n[t]=e}));e.headerMap=n}return e}));return t}))["catch"]((function(r){O(e,0,t,n,null);throw r}))}},hkErr:Pl(e,Ua.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")}));o=true}else if(r){y.push(hu(n,Il,{req:function(e,t,n){S(null,t,n)}}))}if(r){n[Il].polyfill=r}}function w(e,t,n){y.push(pu(e,t,n))}function x(){if(El(e)&&!a){w(XMLHttpRequest,"open",{req:function(e,t,n,r){var i=e.inst;var o=i[xl];if(!S(i,n)&&I(i,true)&&(!o||!o.xhrMonitoringState.openDone)){_(i,t,n,r)}},hkErr:Pl(e,Ua.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")});w(XMLHttpRequest,"send",{req:function(t,n){var r=t.inst;var i=r[xl];if(I(r)&&!i.xhrMonitoringState.sendDone){A("xhr",i);i.requestSentTime=Eu.Now();r=e.includeCorrelationHeaders(i,undefined,undefined,r);i.xhrMonitoringState.sendDone=true}},hkErr:Pl(e,Ua.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")});w(XMLHttpRequest,"abort",{req:function(e){var t=e.inst;var n=t[xl];if(I(t)&&!n.xhrMonitoringState.abortDone){n.aborted=1;n.xhrMonitoringState.abortDone=true}},hkErr:Pl(e,Ua.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")});if(c){w(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){var r=e.inst;if(I(r)){r[xl].requestHeaders[t]=n}},hkErr:Pl(e,Ua.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")})}a=true}}function S(e,t,n){var r=false;var i=((!Da.isString(t)?(t||{}).url||"":t)||"").toLowerCase();var o=Ol(i,"?");var a=Ol(i,"#");if(o===-1||a!==-1&&a<o){o=a}if(o!==-1){i=i.substring(0,o)}if(!_l(e)){r=e[Au]===true||i[Au]===true}else if(!_l(t)){r=(typeof t==="object"?t[Au]===true:false)||(n?n[Au]===true:false)}if(r){if(!b[i]){b[i]=1}}else{if(b[i]){r=true}}return r}function I(e,t){var n=true;var r=a;if(!_l(e)){n=t===true||!_l(e[xl])}return r&&n}function _(t,n,r,i){var o=f&&f.telemetryTrace&&f.telemetryTrace.traceID||_u.generateW3CId();var a=_u.generateW3CId().substr(0,16);var s=new gl(o,a,e[wl]());s.method=n;s.requestUrl=r;s.xhrMonitoringState.openDone=true;s.requestHeaders={};s.async=i;t[xl]=s;C(t)}function C(t){t[xl].xhrMonitoringState.stateChangeAttached=qa.Attach(t,"readystatechange",(function(){try{if(t&&t.readyState===4&&I(t)){T(t)}}catch(r){var n=_u.dump(r);if(!n||Ol(n.toLowerCase(),"c00c023f")===-1){Nl(e,Ua.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Al(t),exception:n})}}}))}function k(e){try{var t=e.responseType;if(t===""||t==="text"){return e.responseText}}catch(e){}return null}function T(t){var n=t[xl];n.responseFinishedTime=Eu.Now();n.status=t.status;function i(n,r){var i=r||{};i["ajaxDiagnosticsMessage"]=Al(t);if(n){i["exception"]=_u.dump(n)}Fl(e,Ua.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}N("xmlhttprequest",n,(function(){try{var o=n.CreateTrackItem("Ajax",c,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:E(t),type:t.responseType,responseText:k(t),response:t.response};if(g){var n=t.getAllResponseHeaders();if(n){var r=Da.strTrim(n).split(/[\r\n]+/);var i={};Cl(r,(function(e){var t=e.split(": ");var n=t.shift();var r=t.join(": ");i[n]=r}));e.headerMap=i}}return e}));if(o){e[r](o)}else{i(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}}finally{try{t[xl]=null}catch(e){}}}),(function(e){i(e,null)}))}function E(t){try{var n=t.getAllResponseHeaders();if(n!==null){var r=Ol(n.toLowerCase(),yu.requestContextHeaderLowerCase);if(r!==-1){var i=t.getResponseHeader(yu.requestContextHeader);return ku.getCorrelationContext(i)}}}catch(n){Fl(e,Ua.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Al(t),exception:_u.dump(n)})}}function A(e,t){if(t.requestUrl&&h&&v){var n=oa();if(n&&Da.isFunction(n.mark)){kl++;var r=h+e+"#"+kl;n.mark(r);var i=n.getEntriesByName(r);if(i&&i.length===1){t.perfMark=i[0]}}}}function N(e,t,n,r){var i=t.perfMark;var o=oa();var a=u.maxAjaxPerfLookupAttempts;var s=u.ajaxPerfLookupDelay;var c=t.requestUrl;var l=0;(function u(){try{if(o&&i){l++;var f=null;var d=o.getEntries();for(var p=d.length-1;p>=0;p--){var h=d[p];if(h){if(h.entryType==="resource"){if(h.initiatorType===e&&(Ol(h.name,c)!==-1||Ol(c,h.name)!==-1)){f=h}}else if(h.entryType==="mark"&&h.name===i.name){t.perfTiming=f;break}if(h.startTime<i.startTime-1e3){break}}}}if(!i||t.perfTiming||l>=a||t.async===false){if(i&&Da.isFunction(o.clearMarks)){o.clearMarks(i.name)}t.perfAttempts=l;n()}else{setTimeout(u,s)}}catch(e){r(e)}})()}function F(t,n){var r=f&&f.telemetryTrace&&f.telemetryTrace.traceID||_u.generateW3CId();var i=_u.generateW3CId().substr(0,16);var o=new gl(r,i,e[wl]());o.requestSentTime=Eu.Now();if(t instanceof Request){o.requestUrl=t?t.url:""}else{o.requestUrl=t}var a="GET";if(n&&n.method){a=n.method}else if(t&&t instanceof Request){a=t.method}o.method=a;var s={};if(c){var u=new Headers((n?n.headers:0)||(t instanceof Request?t.headers||{}:{}));u.forEach((function(e,t){s[t]=e}))}o.requestHeaders=s;A("fetch",o);return o}function P(t){var n="";try{if(!_l(t)){if(typeof t==="string"){n+="(url: '"+t+"')"}else{n+="(url: '"+t.url+"')"}}}catch(t){Nl(e,Ua.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:_u.dump(t)})}return n}function O(t,n,i,o,a,s){if(!o){return}function u(t,n,r){var o=r||{};o["fetchDiagnosticsMessage"]=P(i);if(n){o["exception"]=_u.dump(n)}Fl(e,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",o)}o.responseFinishedTime=Eu.Now();o.status=n;N("fetch",o,(function(){var t=o.CreateTrackItem("Fetch",c,a);if(t){e[r](t)}else{u(Ua.FailedMonitorAjaxDur,null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}}),(function(e){u(Ua.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function D(t){if(t&&t.headers){try{var n=t.headers.get(yu.requestContextHeader);return ku.getCorrelationContext(n)}catch(n){Fl(e,Ua.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:P(t),exception:_u.dump(n)})}}}}));return n}t.getDefaultConfig=function(){var e={maxAjaxCallsPerView:500,disableAjaxTracking:false,disableFetchTracking:true,disableCorrelationHeaders:false,distributedTracingMode:gu.AI,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,appId:undefined,enableCorsCorrelation:false,enableRequestHeaderTracking:false,enableResponseHeaderTracking:false,enableAjaxErrorStatusText:false,enableAjaxPerfTracking:false,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25};return e};t.getEmptyConfig=function(){var e=this.getDefaultConfig();Oa(e,(function(t){e[t]=undefined}));return e};t.prototype.processTelemetry=function(e,t){this.processNext(e,t)};t.identifier="AjaxDependencyPlugin";return t}(Us);
|
|
65
|
+
*/var bl="ai.ajxmn.";var wl="diagLog";var xl="ajaxData";var Sl="throwInternal";var Il="fetch";var _l=Da.isNullOrUndefined;var Cl=Da.arrForEach;var kl=0;function Tl(){var e=Go();if(!e||_l(e.Request)||_l(e.Request[Do])||_l(e[Il])){return null}return e[Il]}function El(e){var t=false;if(typeof XMLHttpRequest!==Po&&!_l(XMLHttpRequest)){var n=XMLHttpRequest[Do];t=!_l(n)&&!_l(n.open)&&!_l(n.send)&&!_l(n.abort)}var r=_u.getIEVersion();if(r&&r<9){t=false}if(t){try{var i=new XMLHttpRequest;i[xl]={};var o=XMLHttpRequest[Do].open;XMLHttpRequest[Do].open=o}catch(n){t=false;Fl(e,Ua.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:_u.dump(n)})}}return t}function Al(e){var t="";try{if(!_l(e)&&!_l(e[xl])&&!_l(e[xl].requestUrl)){t+="(url: '"+e[xl].requestUrl+"')"}}catch(e){}return t}function Fl(e,t,n,r,i){e[wl]()[Sl](Ma.CRITICAL,t,n,r,i)}function Nl(e,t,n,r,i){e[wl]()[Sl](Ma.WARNING,t,n,r,i)}function Pl(e,t,n){return function(r){Fl(e,t,n,{ajaxDiagnosticsMessage:Al(r.inst),exception:_u.dump(r.err)})}}function Ol(e,t){if(e&&t){return e.indexOf(t)}return-1}var Dl=function(e){__extends(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier;n.priority=120;var r="trackDependencyDataInternal";var i=ra();var o=false;var a=false;var s=i&&i.host&&i.host.toLowerCase();var u=t.getEmptyConfig();var c=false;var l=0;var f;var d;var p;var h;var v=false;var m=0;var g=false;var y=[];var b={};ms(t,n,(function(e,n){e.initialize=function(r,o,a,s){if(!e.isInitialized()){n.initialize(r,o,a,s);var l=e._getTelCtx();var y=t.getDefaultConfig();Oa(y,(function(e,n){u[e]=l.getConfig(t.identifier,e,n)}));var b=u.distributedTracingMode;c=u.enableRequestHeaderTracking;v=u.enableAjaxPerfTracking;m=u.maxAjaxCallsPerView;g=u.enableResponseHeaderTracking;p=b===gu.AI||b===gu.AI_AND_W3C;d=b===gu.AI_AND_W3C||b===gu.W3C;if(v){var w=r.instrumentationKey||"unkwn";if(w.length>5){h=bl+w.substring(w.length-5)+"."}else{h=bl+w+"."}}if(u.disableAjaxTracking===false){x()}i();if(a.length>0&&a){var S=void 0,I=0;while(!S&&I<a.length){if(a[I]&&a[I].identifier===gc){S=a[I]}I++}if(S){f=S.context}}}};e.teardown=function(){Cl(y,(function(e){e.rm()}));y=[];o=false;a=false;e.setInitialized(false)};e.trackDependencyData=function(t,n){e[r](t,n)};e.includeCorrelationHeaders=function(t,n,r,i){var o=e["_currentWindowHost"]||s;if(n){if(ku.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),o)){if(!r){r={}}r.headers=new Headers(r.headers||(n instanceof Request?n.headers||{}:{}));if(p){var a="|"+t.traceID+"."+t.spanID;r.headers.set(yu.requestIdHeader,a);if(c){t.requestHeaders[yu.requestIdHeader]=a}}var l=u.appId||f&&f.appId();if(l){r.headers.set(yu.requestContextHeader,yu.requestContextAppIdFormat+l);if(c){t.requestHeaders[yu.requestContextHeader]=yu.requestContextAppIdFormat+l}}if(d){var h=new yl(t.traceID,t.spanID);r.headers.set(yu.traceParentHeader,h.toString());if(c){t.requestHeaders[yu.traceParentHeader]=h.toString()}}}return r}else if(i){if(ku.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),o)){if(p){var a="|"+t.traceID+"."+t.spanID;i.setRequestHeader(yu.requestIdHeader,a);if(c){t.requestHeaders[yu.requestIdHeader]=a}}var l=u.appId||f&&f.appId();if(l){i.setRequestHeader(yu.requestContextHeader,yu.requestContextAppIdFormat+l);if(c){t.requestHeaders[yu.requestContextHeader]=yu.requestContextAppIdFormat+l}}if(d){var h=new yl(t.traceID,t.spanID);i.setRequestHeader(yu.traceParentHeader,h.toString());if(c){t.requestHeaders[yu.traceParentHeader]=h.toString()}}}return i}return undefined};e[r]=function(t,n,r){if(m===-1||l<m){if((u.distributedTracingMode===gu.W3C||u.distributedTracingMode===gu.AI_AND_W3C)&&typeof t.id==="string"&&t.id[t.id.length-1]!=="."){t.id+="."}if(Da.isNullOrUndefined(t.startTime)){t.startTime=new Date}var i=hc.create(t,ac.dataType,ac.envelopeType,e[wl](),n,r);e.core.track(i)}else if(l===m){Fl(e,Ua.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",true)}++l};function i(){var t=Tl();if(!t){return}var n=Go();var r=t.polyfill;if(u.disableFetchTracking===false){y.push(hu(n,Il,{req:function(t,n,i){var s;if(o&&!S(null,n,i)&&!(r&&a)){var u=t.ctx();s=N(n,i);var c=e.includeCorrelationHeaders(s,n,i);if(c!==i){t.set(1,c)}u.data=s}},rsp:function(e,t){var n=e.ctx().data;if(n){e.rslt=e.rslt.then((function(t){O(e,(t||{}).status,t,n,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:D(t)};if(g){var n={};t.headers.forEach((function(e,t){n[t]=e}));e.headerMap=n}return e}));return t}))["catch"]((function(r){O(e,0,t,n,null);throw r}))}},hkErr:Pl(e,Ua.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")}));o=true}else if(r){y.push(hu(n,Il,{req:function(e,t,n){S(null,t,n)}}))}if(r){n[Il].polyfill=r}}function w(e,t,n){y.push(pu(e,t,n))}function x(){if(El(e)&&!a){w(XMLHttpRequest,"open",{req:function(e,t,n,r){var i=e.inst;var o=i[xl];if(!S(i,n)&&I(i,true)&&(!o||!o.xhrMonitoringState.openDone)){_(i,t,n,r)}},hkErr:Pl(e,Ua.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")});w(XMLHttpRequest,"send",{req:function(t,n){var r=t.inst;var i=r[xl];if(I(r)&&!i.xhrMonitoringState.sendDone){A("xhr",i);i.requestSentTime=Eu.Now();r=e.includeCorrelationHeaders(i,undefined,undefined,r);i.xhrMonitoringState.sendDone=true}},hkErr:Pl(e,Ua.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")});w(XMLHttpRequest,"abort",{req:function(e){var t=e.inst;var n=t[xl];if(I(t)&&!n.xhrMonitoringState.abortDone){n.aborted=1;n.xhrMonitoringState.abortDone=true}},hkErr:Pl(e,Ua.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")});if(c){w(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){var r=e.inst;if(I(r)){r[xl].requestHeaders[t]=n}},hkErr:Pl(e,Ua.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")})}a=true}}function S(e,t,n){var r=false;var i=((!Da.isString(t)?(t||{}).url||"":t)||"").toLowerCase();var o=Ol(i,"?");var a=Ol(i,"#");if(o===-1||a!==-1&&a<o){o=a}if(o!==-1){i=i.substring(0,o)}if(!_l(e)){r=e[Au]===true||i[Au]===true}else if(!_l(t)){r=(typeof t==="object"?t[Au]===true:false)||(n?n[Au]===true:false)}if(r){if(!b[i]){b[i]=1}}else{if(b[i]){r=true}}return r}function I(e,t){var n=true;var r=a;if(!_l(e)){n=t===true||!_l(e[xl])}return r&&n}function _(t,n,r,i){var o=f&&f.telemetryTrace&&f.telemetryTrace.traceID||_u.generateW3CId();var a=_u.generateW3CId().substr(0,16);var s=new gl(o,a,e[wl]());s.method=n;s.requestUrl=r;s.xhrMonitoringState.openDone=true;s.requestHeaders={};s.async=i;t[xl]=s;C(t)}function C(t){t[xl].xhrMonitoringState.stateChangeAttached=qa.Attach(t,"readystatechange",(function(){try{if(t&&t.readyState===4&&I(t)){T(t)}}catch(r){var n=_u.dump(r);if(!n||Ol(n.toLowerCase(),"c00c023f")===-1){Fl(e,Ua.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Al(t),exception:n})}}}))}function k(e){try{var t=e.responseType;if(t===""||t==="text"){return e.responseText}}catch(e){}return null}function T(t){var n=t[xl];n.responseFinishedTime=Eu.Now();n.status=t.status;function i(n,r){var i=r||{};i["ajaxDiagnosticsMessage"]=Al(t);if(n){i["exception"]=_u.dump(n)}Nl(e,Ua.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}F("xmlhttprequest",n,(function(){try{var o=n.CreateTrackItem("Ajax",c,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:E(t),type:t.responseType,responseText:k(t),response:t.response};if(g){var n=t.getAllResponseHeaders();if(n){var r=Da.strTrim(n).split(/[\r\n]+/);var i={};Cl(r,(function(e){var t=e.split(": ");var n=t.shift();var r=t.join(": ");i[n]=r}));e.headerMap=i}}return e}));if(o){e[r](o)}else{i(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}}finally{try{t[xl]=null}catch(e){}}}),(function(e){i(e,null)}))}function E(t){try{var n=t.getAllResponseHeaders();if(n!==null){var r=Ol(n.toLowerCase(),yu.requestContextHeaderLowerCase);if(r!==-1){var i=t.getResponseHeader(yu.requestContextHeader);return ku.getCorrelationContext(i)}}}catch(n){Nl(e,Ua.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Al(t),exception:_u.dump(n)})}}function A(e,t){if(t.requestUrl&&h&&v){var n=oa();if(n&&Da.isFunction(n.mark)){kl++;var r=h+e+"#"+kl;n.mark(r);var i=n.getEntriesByName(r);if(i&&i.length===1){t.perfMark=i[0]}}}}function F(e,t,n,r){var i=t.perfMark;var o=oa();var a=u.maxAjaxPerfLookupAttempts;var s=u.ajaxPerfLookupDelay;var c=t.requestUrl;var l=0;(function u(){try{if(o&&i){l++;var f=null;var d=o.getEntries();for(var p=d.length-1;p>=0;p--){var h=d[p];if(h){if(h.entryType==="resource"){if(h.initiatorType===e&&(Ol(h.name,c)!==-1||Ol(c,h.name)!==-1)){f=h}}else if(h.entryType==="mark"&&h.name===i.name){t.perfTiming=f;break}if(h.startTime<i.startTime-1e3){break}}}}if(!i||t.perfTiming||l>=a||t.async===false){if(i&&Da.isFunction(o.clearMarks)){o.clearMarks(i.name)}t.perfAttempts=l;n()}else{setTimeout(u,s)}}catch(e){r(e)}})()}function N(t,n){var r=f&&f.telemetryTrace&&f.telemetryTrace.traceID||_u.generateW3CId();var i=_u.generateW3CId().substr(0,16);var o=new gl(r,i,e[wl]());o.requestSentTime=Eu.Now();if(t instanceof Request){o.requestUrl=t?t.url:""}else{o.requestUrl=t}var a="GET";if(n&&n.method){a=n.method}else if(t&&t instanceof Request){a=t.method}o.method=a;var s={};if(c){var u=new Headers((n?n.headers:0)||(t instanceof Request?t.headers||{}:{}));u.forEach((function(e,t){s[t]=e}))}o.requestHeaders=s;A("fetch",o);return o}function P(t){var n="";try{if(!_l(t)){if(typeof t==="string"){n+="(url: '"+t+"')"}else{n+="(url: '"+t.url+"')"}}}catch(t){Fl(e,Ua.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:_u.dump(t)})}return n}function O(t,n,i,o,a,s){if(!o){return}function u(t,n,r){var o=r||{};o["fetchDiagnosticsMessage"]=P(i);if(n){o["exception"]=_u.dump(n)}Nl(e,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",o)}o.responseFinishedTime=Eu.Now();o.status=n;F("fetch",o,(function(){var t=o.CreateTrackItem("Fetch",c,a);if(t){e[r](t)}else{u(Ua.FailedMonitorAjaxDur,null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}}),(function(e){u(Ua.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function D(t){if(t&&t.headers){try{var n=t.headers.get(yu.requestContextHeader);return ku.getCorrelationContext(n)}catch(n){Nl(e,Ua.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:P(t),exception:_u.dump(n)})}}}}));return n}t.getDefaultConfig=function(){var e={maxAjaxCallsPerView:500,disableAjaxTracking:false,disableFetchTracking:true,disableCorrelationHeaders:false,distributedTracingMode:gu.AI,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,appId:undefined,enableCorsCorrelation:false,enableRequestHeaderTracking:false,enableResponseHeaderTracking:false,enableAjaxErrorStatusText:false,enableAjaxPerfTracking:false,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25};return e};t.getEmptyConfig=function(){var e=this.getDefaultConfig();Oa(e,(function(t){e[t]=undefined}));return e};t.prototype.processTelemetry=function(e,t){this.processNext(e,t)};t.identifier="AjaxDependencyPlugin";return t}(Us);
|
|
66
66
|
/*!
|
|
67
67
|
* Application Insights JavaScript SDK - Web, 2.5.10
|
|
68
68
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|