LWR.define('@salesforce/i18n/dir', [], function() { return "ltr"; });LWR.define('@salesforce/i18n/locale', [], function() { return "en-US"; });LWR.define('@salesforce/gate/lds.enable-input-validation', [], () => {const gateObj = { isOpen: (fallbackObj) => true, hasError: () => false, }; return Object.freeze(gateObj);});(function() { LWR.define("force/luvioEngine",["exports"],function(e){var t;!function(e){e.Fulfilled="Fulfilled",e.Unfulfilled="Unfulfilled",e.Error="Error",e.Pending="Pending",e.Stale="Stale"}(t||(t={}));const{create:r,entries:s,freeze:n,keys:i,values:a,assign:o}=Object,{hasOwnProperty:h}=Object.prototype,{isArray:l}=Array,{push:c,indexOf:d,slice:u}=Array.prototype,{parse:p,stringify:v}=JSON,f=new WeakSet;let S=!1;function g(e){if(!S&&"object"==typeof e&&null!==e&&!f.has(e)){if(f.add(e),l(e))for(let t=0,r=e.length;t(T(s(e,!1,!0,r),t),e)).catch(e=>{throw T(s(e,!0,!0,r),t),e}):(T(s(i,!1,!1,r),t),i)}catch(e){throw T(s(e,!0,!1,r),t),e}}}const E=Promise.resolve();function O(e){setTimeout(()=>{throw e},0)}function C(){let e=Date.now()-5001;return(t,r)=>{const s=Date.now();if(e+5e3{this.keyMap.set(t,e)}),e.valueMap.forEach((e,t)=>{this.valueMap.set(t,e)})}set(e,t){const r=q(e);if(void 0!==r)return this.keyMap.set(r,e),this.valueMap.set(r,t);throw new Error(`${_}: set`)}size(){return this.valueMap.size}values(){return this.valueMap.values()}}const F="Undefined value used in StoreKeySet operation";class U{constructor(){this.set=new Set,this.valueMap=new Map}add(e){const t=q(e);if(void 0===t)throw new Error(`${F}: add`);return this.set.add(t),this.valueMap.set(t,e),this}clear(){this.set.clear(),this.valueMap.clear()}delete(e){const t=q(e);if(void 0!==t)return this.set.delete(t),this.valueMap.delete(t);throw new Error(`${F}: delete`)}entries(){return this.valueMap.entries()}forEach(e,t){return this.valueMap.forEach(e,t)}has(e){const t=q(e);if(void 0!==t)return this.set.has(t);throw new Error(`${F}: has`)}keys(){return this.valueMap.values()}keysAsArray(){return Array.from(this.keys())}keysAsStrings(){return this.set.keys()}merge(e){e.set.forEach(e=>{this.set.add(e)}),e.valueMap.forEach((e,t)=>{this.valueMap.set(t,e)})}size(){return this.set.size}values(){return this.valueMap.values()}}function Q(e,t){return new Promise(r=>{let s=0;const{pendingTrimKeys:n,retainedIds:i,metadata:a}=e,o=Date.now();n.forEach(e=>{const r=a[e];void 0!==i[e]||void 0===r||void 0!==r&&r.expirationTimestamp>=o||(t(e),s++)}),r({deallocatedCount:s})})}function z(e,t){const{length:r}=t,{seenRecords:s}=e;for(let n=0;n{e(i,e=>{R({type:"store-snapshot-rebuild",timestamp:Date.now(),snapshot:e,subscriptionId:n.id},this.eventObservers),this.emitOrRefreshRebuiltSnapshot(e,n,t).then(()=>r())})}))}for(let e=0,t=n.length;e0){const e=[];for(let t=0,r=s.length;t{})}broadcastNonCachedSnapshot(e,t){const{snapshotSubscriptions:r}=this;for(let s=0,n=r.length;s{const{snapshotSubscriptions:e}=this,t=d.call(e,r);if(t>-1){this.snapshotSubscriptions=[...u.call(e,0,t),...u.call(e,t+1)];const{snapshot:s,id:n}=r;R({type:"store-snapshot-unsubscribe",subscriptionId:n,snapshot:s,timestamp:Date.now()},this.eventObservers),m(s)||this.releaseSnapshotIds(s)}}}updateAvailable(e){const{snapshotSubscriptions:t}=this;this.expirePossibleStaleRecords(e);const r=[];for(let s=0,n=t.length;s{}).catch(e=>Promise.resolve(void 0))}retain(e){const t=e.length;for(let r=0;r{this.release(e)}}watch(e,t){const r={prefix:e,callback:t};return this.watchSubscriptions=[...this.watchSubscriptions,r],()=>{const{watchSubscriptions:e}=this,t=d.call(e,r);this.watchSubscriptions=[...u.call(e,0,t),...u.call(e,t+1)]}}evict(e){const t=this.getCanonicalRecordId(e);delete this.records[t],this.markVisited(t)}cleanup(){this.scheduleTrim()}dealloc(e){const t=this.getCanonicalRecordId(e);delete this.records[t]}keyExistsInStore(e){return void 0!==this.records[e]}publishMetadata(e,t){this.putMetadata(e,t,!0);const r=this.getCanonicalRecordId(e);this.markRefreshed(r)}putMetadata(e,t,r){const{namespace:s,representationName:n,ingestionTimestamp:i}=t,a=function(e,t,r){const s=t[e];return void 0===s?r:s}(G(s,n),this.ttlOverrides,this.defaultTTLOverride),o=this.getCanonicalRecordId(e);if(void 0!==a&&!0===r){const e=i+a,r={...t,expirationTimestamp:e};this.metadata[o]=r}else this.metadata[o]=t}expirePossibleStaleRecords(e){const t=Date.now()-1;for(let r=0,s=e.length;rt&&this.publishMetadata(s,{...n,expirationTimestamp:t})}}setTTLOverride(e,t,r){this.ttlOverrides[G(e,t)]=r}getTTLOverride(e,t){return this.ttlOverrides[G(e,t)]}getTTLOverrides(){return this.ttlOverrides}setDefaultTTLOverride(e){this.defaultTTLOverride=e}getDefaultTTLOverride(){return this.defaultTTLOverride}reset(){this.records=r(null),this.snapshotSubscriptions=[],this.watchSubscriptions=[],this.visitedIds=r(null),this.refreshedIds=r(null),this.insertedIds=r(null),this.redirectKeys=r(null),this.reverseRedirectKeys=r(null),this.retainedIds=r(null),this.ttlOverrides=r(null),this.trimTask=null,this.metadata=r(null),this.defaultTTLOverride=void 0,R({type:"store-reset",timestamp:Date.now()},this.eventObservers)}addStoreEventObserver(e){return this.eventObservers.push(e),()=>{const{eventObservers:t}=this,r=this.eventObservers.indexOf(e);r>-1&&(this.eventObservers=[...u.call(t,0,r),...u.call(t,r+1)])}}scheduleTrim(){null===this.trimTask&&(this.trimTask=()=>{const{metadata:e,pendingTrimKeys:t,retainedIds:r,records:s,dealloc:n}=this;return this.trimPolicy({metadata:e,pendingTrimKeys:t,retainedIds:r,storeRecords:s},n.bind(this)).then(e=>{this.pendingTrimKeys.clear();const{trimKeysSkipped:t}=e;return void 0!==t&&(this.pendingTrimKeys=t),e})},this.scheduler(this.trimTask,()=>{this.trimTask=null}))}buildIngestionStagingStore(){const e=new H,t=this,r=e.readEntry.bind(e),s=e.readMetadata.bind(e),n=e.evict.bind(e);return e.readEntry=e=>{const s=r(e);return void 0===s?t.readEntry(e):s},e.readMetadata=e=>{const r=s(e);return r||t.readMetadata(e)},e.evict=e=>{n(e),t.evict(e)},e.ttlOverrides=t.ttlOverrides,e.defaultTTLOverride=t.defaultTTLOverride,e.redirectKeys=t.redirectKeys,e.reverseRedirectKeys=t.reverseRedirectKeys,e}updateSubscriptionSnapshot(e,t){const{snapshot:r}=e;r!==t&&(e.snapshot=t,m(t)||this.retainSnapshotIds(t),m(r)||this.releaseSnapshotIds(r))}refreshSnapshot(e,t,r){const{refresh:s}=e;return void 0!==s?(R({type:"store-snapshot-refresh",subscriptionId:t,reason:r,snapshot:e,timestamp:Date.now()},this.eventObservers),s.resolve(s.config)):Promise.resolve(void 0)}instrumentIngestedNewData(e,t){const r=t.recordId,s=this.metadata[r];s?R({type:"cache-miss-out-of-ttl",oldSnapshot:e,newSnapshot:t,recordId:r,recordMetadata:s,timestamp:Date.now()},this.eventObservers):t.seenRecords.keysAsArray().forEach(r=>{const s=this.metadata[r];s&&R({type:"cache-miss-out-of-ttl",oldSnapshot:e,newSnapshot:t,recordId:r,recordMetadata:s,timestamp:Date.now()},this.eventObservers)})}emitOrRefreshRebuiltSnapshot(e,t,r){const{snapshot:s,callback:n,id:i}=t;if(M(e))return M(s)?this.updateSubscriptionSnapshot(t,e):m(s)||s.seenRecords.merge(e.seenRecords),Promise.resolve();if(this.updateSubscriptionSnapshot(t,e),r(e))e!==s&&(R({type:"store-snapshot-emit",snapshot:e,timestamp:Date.now(),subscriptionId:i},this.eventObservers),n(e)),this.instrumentIngestedNewDataOnFulfilledSnapshots(s,e);else if(k(e))return this.refreshSnapshot(e,i,"rebuild-unfulfilled").then();return Promise.resolve()}instrumentIngestedNewDataOnFulfilledSnapshots(e,t){y(e)&&y(t)&&this.instrumentIngestedNewData(e,t)}retainSnapshotIds(e){const t=e.recordId,{seenRecords:r}=e,s=void 0===r?[t]:[t,...Array.from(r.keysAsStrings())];this.retain(s)}releaseSnapshotIds(e){const t=e.recordId,{seenRecords:r}=e,s=void 0===r?[t]:[t,...Array.from(r.keysAsStrings())];this.release(s)}increaseRetentionCount(e){const t=this.retainedIds[e];this.retainedIds[e]=void 0===t?1:t+1,this.pendingTrimKeys.delete(e)}decreaseRetentionCount(e){const t=this.retainedIds[e];return 1===t?(this.pendingTrimKeys.add(e),delete this.retainedIds[e]):(void 0===t||(this.retainedIds[e]=t-1),!1)}release(e){const t=e.length;let r=!1;for(let s=0;s{const s=e[r],n=s.expirationTimestamp-s.ingestionTimestamp;s.ingestionTimestamp=t,s.expirationTimestamp=t+n})}return e}}function J(e,t){const{seenRecords:r}=e;return t.some(t=>r.has(t)||t===e.recordId)}function X(e,t){return!1===M(e)&&!1===J(e,t)}function Y(e,t,r){return!0===M(e)&&!1===J(e,r)&&!1===J(e,t)}function Z(e,t){const r=i(e);return t.filter(t=>r.every(r=>e[r]===t[r]))}class ee{constructor(e={}){this.recordsMap=new j,this.metadataMap=new j,this.visitedIdsSet=new U,this.refreshedIdsSet=new U,this.redirectKeysMap=new j,this.retainedIdsMap=new j,this.ttlOverridesMap=new j,this.snapshotSubscriptions=[],this.trimTask=null,this.pendingTrims=new U,this.defaultTTLOverride=void 0,this.watchSubscriptions=[],this.eventObservers=[],this.insertedIdsSet=new U,this.reverseRedirectKeysMap=new j,this.scheduler=e.scheduler||C(),this.fallbackStringKeyInMemoryStore=new H(e)}readEntry(e){return"string"==typeof e?this.fallbackStringKeyInMemoryStore.readEntry(e):this.recordsMap.get(e)}getNumEntries(){const e=this.recordsMap.size();return 0===e?this.fallbackStringKeyInMemoryStore.getNumEntries():e}readMetadata(e){return"string"==typeof e?this.fallbackStringKeyInMemoryStore.readMetadata(e):this.metadataMap.get(e)}readMetadataWhere(e){const t=this.metadataMap.keysAsArray();if(0===t.length)return this.fallbackStringKeyInMemoryStore.readMetadataWhere(e);const r=[],s=h.call(e,"namespace"),n=h.call(e,"representationName"),i=h.call(e,"ttlOverride");for(let a=0,o=t.length;a{this.emitOrRefreshRebuiltSnapshot(e,n,t)})}for(let e=0,t=s.length;e0){const e=[];for(let t=0,r=n.length;t{const{snapshotSubscriptions:e}=this,t=d.call(e,r);if(t>-1){this.snapshotSubscriptions=[...u.call(e,0,t),...u.call(e,t+1)];const{snapshot:s}=r;m(s)||this.releaseSnapshotIds(s)}}}updateAvailable(e){if(e.length>0&&"string"==typeof e[0])return this.fallbackStringKeyInMemoryStore.updateAvailable(e);const{snapshotSubscriptions:t}=this;this.expirePossibleStaleRecords(e);const r=[];for(let s=0,n=t.length;s{}).catch(e=>Promise.resolve(void 0))}retain(e){if(e.length>0&&"string"==typeof e[0])return this.fallbackStringKeyInMemoryStore.retain(e);for(let t=0,r=e.length;t{this.release(e)}}watch(e,t){if("string"==typeof e)return this.fallbackStringKeyInMemoryStore.watch(e,t);const r={partialKey:e,callback:t};return this.watchSubscriptions=[...this.watchSubscriptions,r],()=>{const{watchSubscriptions:e}=this,t=d.call(e,r);this.watchSubscriptions=[...u.call(e,0,t),...u.call(e,t+1)]}}evict(e){if("string"==typeof e)return void this.fallbackStringKeyInMemoryStore.evict(e);const t=this.getCanonicalRecordId(e);this.recordsMap.delete(t),this.markVisited(t)}cleanup(){this.fallbackStringKeyInMemoryStore.pendingTrimKeys.size>0&&this.fallbackStringKeyInMemoryStore.cleanup()}dealloc(e){if("string"==typeof e)return void this.fallbackStringKeyInMemoryStore.dealloc(e);const t=this.getCanonicalRecordId(e);this.recordsMap.delete(t)}keyExistsInStore(e){return"string"==typeof e?this.fallbackStringKeyInMemoryStore.keyExistsInStore(e):void 0!==this.recordsMap.get(e)}publishMetadata(e,t){if("string"==typeof e)return void this.fallbackStringKeyInMemoryStore.publishMetadata(e,t);this.putMetadata(e,t,!0);const r=this.getCanonicalRecordId(e);this.markRefreshed(r)}putMetadata(e,t,r){if("string"==typeof e)return void this.fallbackStringKeyInMemoryStore.putMetadata(e,t,r);const{namespace:s,representationName:n,ingestionTimestamp:i}=t,a=function(e,t,r){const s=t.get(e);return void 0===s?r:s}(this.buildStructuredKey(s,n,{}),this.ttlOverridesMap,this.defaultTTLOverride),o=this.getCanonicalRecordId(e);if(void 0!==a&&r){const e=i+a,r={...t,expirationTimestamp:e};this.metadataMap.set(o,r)}else this.metadataMap.set(o,t)}expirePossibleStaleRecords(e){if(e.length>0&&"string"==typeof e[0])return this.fallbackStringKeyInMemoryStore.expirePossibleStaleRecords(e);const t=Date.now();for(let r=0,s=e.length;r{const{eventObservers:r}=this,s=this.eventObservers.indexOf(e);s>-1&&(this.eventObservers=[...u.call(r,0,s),...u.call(r,s+1)]),t()}}scheduleTrim(){this.fallbackStringKeyInMemoryStore.pendingTrimKeys.size>0?this.fallbackStringKeyInMemoryStore.scheduleTrim():null===this.trimTask&&(this.trimTask=()=>{const{metadataMap:e,retainedIdsMap:t,pendingTrims:r}=this;let s=0;const n=Date.now();return r.forEach(r=>{const i=e.get(r);void 0!==t.get(r)||void 0===i||void 0!==i&&i.expirationTimestamp>=n||(this.dealloc(r),s++)}),r.clear(),Promise.resolve({deallocatedCount:s})},this.scheduler(this.trimTask,()=>{this.trimTask=null}))}updateSubscriptionSnapshot(e,t){const{snapshot:r}=e;r!==t&&(e.snapshot=t,m(t)||this.retainSnapshotIds(t),m(r)||this.releaseSnapshotIds(r))}refreshSnapshot(e){const{refresh:t}=e;return void 0!==t?t.resolve(t.config):Promise.resolve(void 0)}instrumentIngestedNewData(e,t){const r=t.recordId,s=this.metadataMap.get(r);s?R({type:"cache-miss-out-of-ttl",oldSnapshot:e,newSnapshot:t,recordId:r,recordMetadata:s,timestamp:Date.now()},this.eventObservers):t.seenRecords.keysAsArray().forEach(r=>{const s=this.metadataMap.get(r);s&&R({type:"cache-miss-out-of-ttl",oldSnapshot:e,newSnapshot:t,recordId:r,recordMetadata:s,timestamp:Date.now()},this.eventObservers)})}emitOrRefreshRebuiltSnapshot(e,t,r){const{snapshot:s,callback:n}=t;if(M(e))M(s)&&this.updateSubscriptionSnapshot(t,e);else if(this.updateSubscriptionSnapshot(t,e),r(e))e!==s&&n(e),this.instrumentIngestedNewDataOnFulfilledSnapshots(s,e);else if(k(e)){const{refresh:t}=e;void 0!==t&&t.resolve(t.config)}}instrumentIngestedNewDataOnFulfilledSnapshots(e,t){y(e)&&y(t)&&this.instrumentIngestedNewData(e,t)}retainSnapshotIds(e){const{recordId:t,seenRecords:r}=e,s=void 0===r?[t]:[t,...r.keysAsArray()];this.retain(s)}releaseSnapshotIds(e){const{recordId:t,seenRecords:r}=e,s=void 0===r?[t]:[t,...r.keysAsArray()];this.release(s)}increaseRetentionCount(e){const t=this.retainedIdsMap.get(e);this.retainedIdsMap.set(e,void 0===t?1:t+1),this.pendingTrims.delete(e)}decreaseRetentionCount(e){const t=this.retainedIdsMap.get(e);return 1===t?(this.pendingTrims.add(e),this.retainedIdsMap.delete(e),!0):(void 0===t||this.retainedIdsMap.set(e,t-1),!1)}release(e){const t=e.length;let r=!1;for(let s=0;se(r,s,t);return r.ttlStrategy=t,r}function ie(e){const{buildNetworkSnapshot:t,buildSnapshotContext:r,coercedAdapterRequestContext:s}=e;return t(r,s).then(t=>"Pending"===t.state?e.resolvePendingSnapshot(t):t)}function ae(t=0){return(r,s,n)=>{if(void 0!==s){const{expirationTimestamp:i}=s;if(r>i)return r<=i+t&&!0!==n?e.StoreResolveResultState.Stale:e.StoreResolveResultState.NotPresent}return!0===n?e.StoreResolveResultState.Error:e.StoreResolveResultState.Found}}function oe(e,t){return w(e)?e.then(t):t(e)}e.HttpStatusCode=void 0,(re=e.HttpStatusCode||(e.HttpStatusCode={}))[re.Ok=200]="Ok",re[re.Created=201]="Created",re[re.NoContent=204]="NoContent",re[re.NotModified=304]="NotModified",re[re.BadRequest=400]="BadRequest",re[re.Unauthorized=401]="Unauthorized",re[re.Forbidden=403]="Forbidden",re[re.NotFound=404]="NotFound",re[re.TooManyRequests=429]="TooManyRequests",re[re.ServerError=500]="ServerError",re[re.ServiceUnavailable=503]="ServiceUnavailable",re[re.GatewayTimeout=504]="GatewayTimeout";const he=function(e){const{buildCachedSnapshot:t,buildSnapshotContext:r,storeLookup:s,luvio:n}=e;return oe(t(r,ne(s,ae()),n),t=>{if(void 0!==t){if(y(t)||m(t))return t;if(M(t))return e.resolvePendingSnapshot(t)}return ie(e)})},le=function(e){return ie(e)},ce=function(t){const{buildCachedSnapshot:r,buildSnapshotContext:s,storeLookup:n,luvio:i}=t;return oe(r(s,ne(n,ae()),i),t=>{if(void 0!==t&&(y(t)||m(t)))return t;const r=void 0!==t?t.refresh:void 0;return I({body:void 0,headers:{},ok:!1,status:e.HttpStatusCode.GatewayTimeout,statusText:"Data requested with only-if-cached policy and not found in the cache.",errorType:"fetchResponse"},r)})};function de(e){return"object"==typeof e&&null!==e&&(h.call(e,"__ref")||h.call(e,"isMissing"))}function ue(e){return null!==e&&e.type===pe.Node}var pe,ve;!function(e){e.Link="Link",e.Node="Node",e.Error="Error",e.Locked="Locked"}(pe||(pe={}));class fe{constructor(e,t){this.type=pe.Error,this.store=e,this.data=t}retrieve(){return this.data}}class Se{constructor(e,t){this.type=pe.Link,this.store=e,this.data=t}isPending(){return!0===this.data.pending}isMissing(){return!0===this.data.isMissing}follow(){const{__ref:e}=this.data;if(void 0===e)return null;const t=(r=this.store,s=e,r.readEntry(s));var r,s;return null==t?null:A(t)?new fe(this.store,t):new ge(this.store,t,e)}linkData(){return this.data.data}writeLinkData(e){this.data.data=e}}class ge{constructor(e,t,r){this.type=pe.Node,this.store=e,this.data=t,this.storeKey=r}object(e){const t=this.data[e];if(de(t))throw new Error(`Cannot walk to path ${String(e)}. "${String(e)}" is a link: "${t}"`);if("object"!=typeof t||null===t)throw new Error(`Cannot walk to path ${String(e)}. "${String(e)}" is a scalar: "${t}"`);return new ge(this.store,t,this.storeKey)}link(e){const t=this.data[e];if(!de(t))throw new Error(`Cannot walk to link ${String(e)}. "${String(e)}" is not a link: "${t}"`);return new Se(this.store,t)}scalar(e){const t=this.data[e];if("object"==typeof t&&null!==t)throw new Error(`Cannot return value at path ${String(e)}. ${String(e)} is not a scalar.`);return t}keys(){return i(this.data)}isScalar(e){if(void 0===this.data)return!0;const t=this.data[e];return"object"!=typeof t||null===t}isMissing(e){const t=this.data[e];return!(!t||"object"!=typeof t.__state||null===t.__state)&&!!t.__state.isMissing}isPending(e){const t=this.data[e];return!(!t||"object"!=typeof t.__state||null===t.__state)&&!!t.__state.pending}write(e,t){this.data[e]=t;const r=this.store.getCanonicalRecordId(this.storeKey);this.store.markVisited(r)}isUndefined(e){return void 0===this.data[e]}retrieve(){return this.data}}function me(e){return!0===e.reader}function ye(e,t){const{args:r,name:s}=e;return r&&0!==r.length?function(e,t){if(!t)return e;var r=[];for(var s in t)if(h.call(t,s)){var n=t[s];null===n&&void 0===n||r.push(s+":"+v(n))}return 0===r.length?e:e+"(".concat(r.join(","),")")}(s,function(e,t){const r={};return e.forEach(e=>{"Variable"===e.kind?r[e.name]=t[e.variableName]:r[e.name]=e.value}),r}(r,t)):s}function be(e){return null!=e}function ke(e){return"object"==typeof e&&null!==e}function Me(e){if(void 0===e)return{state:ve.NotPresent};if(null===e)return{state:ve.Null};const{__ref:t,pending:r,isMissing:s}=e;return!0===r?{state:ve.Pending}:!0===s?{state:ve.Missing}:void 0===t?{state:ve.RefNotPresent}:{state:ve.RefPresent,key:t}}!function(e){e[e.NotPresent=0]="NotPresent",e[e.RefNotPresent=1]="RefNotPresent",e[e.RefPresent=2]="RefPresent",e[e.Null=3]="Null",e[e.Missing=4]="Missing",e[e.Pending=5]="Pending"}(ve||(ve={}));const Ie=(t,r,s)=>!0===s?e.StoreResolveResultState.Error:e.StoreResolveResultState.Found;const we="ROOT";var Re;!function(e){e[e.Missing=0]="Missing",e[e.Success=1]="Success",e[e.Error=2]="Error"}(Re||(Re={}));const Te={state:Re.Missing};const Pe=new WeakMap;class Ee{constructor(r,s,n,i,a){this.store=r,this.hasPendingData=!1,this.getLinkState=Me,this.StoreLinkStateValues=ve,this.StoreResolveResultState=e.StoreResolveResultState,this.variables=s,this.seenIds=new U,this.missingPaths=new U,this.missingLinks=new U,this.isMissingData=!1,this.hasStaleData=!1,this.refresh=n;let o,h=!0;void 0===i||i.state!==t.Fulfilled&&i.state!==t.Stale||(o=i.data,h=!1),this.snapshotChanged=h,this.currentPath={fullPath:"",key:we,parent:null,baseSnapshotValue:o},this.baseSnapshot=i,this.timestamp=Date.now(),this.ttlStrategy=void 0===a?Ie:a}resolveMetadata(e,t){const r=Me(e.__metadata);if(r.state!==ve.RefPresent)return void this.markMissing();const s=this.resolveKey(r.key);if(s.version===t)return s.value;this.markMissing()}readFragmentUnion(e,t){const{value:r}=e,{discriminator:s}=t,n=r[s];return this.readFragment(e,t.unionSelections[n])}read(e){const{node:t}=e,{recordId:r}=e,s=this.storeLookup(r),n=this.readFragment(s,t);switch(n.state){case Re.Missing:return!1===this.isMissingData&&(this.isMissingData=!0,this.snapshotChanged=!0),this.createSnapshot(void 0,e);case Re.Error:return this.createErrorSnapshot(n.value);default:return this.createSnapshot(n.value,e)}}getSnapshotState(){return!0===this.isMissingData?t.Unfulfilled:!0===this.hasPendingData?t.Pending:!0===this.hasStaleData?t.Stale:t.Fulfilled}createErrorSnapshot(e){return{data:void 0,error:e,state:t.Error,refresh:this.refresh}}createSnapshot(e,t){return!1===this.snapshotChanged&&t.recordId===this.baseSnapshot.recordId?this.baseSnapshot:(g(e),{recordId:t.recordId,select:t,variables:this.variables,seenRecords:this.seenIds,data:e,state:this.getSnapshotState(),missingPaths:this.missingPaths,missingLinks:this.missingLinks,refresh:this.refresh})}opaqueCopy(e){return p(v(e))}deepCopy(t,r,s,n){const i=t[s];if(this.enterPath(s),l(i)){const e=[];this.selectAll(i,e,n),r[s]=e}else if("object"==typeof i&&null!==i)if(void 0!==i.__ref){const t=i.__ref;if(l(t)){const e=[];this.selectAll(t,e,n),r[s]=e}else{if(!0===h.call(n,t))throw new Error("Invalid eager selection on records with circular references.");const i=this.resolveKey(t);switch(i.state){case e.StoreResolveResultState.NotPresent:r[s]=void 0;break;case e.StoreResolveResultState.Found:{const e={};this.selectAll(i.value,e,{...n,[t]:!0}),r[s]=e;break}}}}else{const e={};this.selectAll(i,e,n),r[s]=e}else this.checkIfChanged(i),r[s]=i;this.exitPath()}selectAllArray(e,t,r){const{length:s}=e;for(let n=0;n{if(void 0!==e){if(y(e)||m(e)||b(e))return s(n,a),e;if(M(e))return t.resolvePendingSnapshot(e)}return ie(t)})}}(e.staleDurationSeconds);case"cache-then-network":return he;case"no-cache":return le;case"only-if-cached":return ce;case"stale-while-revalidate":return a=e.staleDurationSeconds,function(e){const{buildCachedSnapshot:r,buildNetworkSnapshot:s,buildSnapshotContext:n,storeLookup:i,coercedAdapterRequestContext:o,luvio:h}=e;return oe(r(n,ne(i,ae(1e3*a)),h),r=>{if(void 0!==r){if(y(r)||m(r))return r;if(M(r))return e.resolvePendingSnapshot(r);if(r.state===t.Stale)return s(n,o),r}return ie(e)})};case"valid-at":{const t=Oe(e.basePolicy,r);return n=t,i=e.timestamp,function(e){return n({...e,storeLookup:(t,r,s)=>e.storeLookup(t,r,(e,t,r)=>s(i,t,r))})}}default:return Oe(r,r)}var n,i,a}const Ce=Symbol("Wildcard");function Ke(e,t,r,s){return Object.entries(t).map(([n,i])=>n.startsWith("$")?function(e,t,r,s,n){const i=Ne[t];if(void 0===i)return!1;return i(e,r,s,n)}(e,n,t,r,s):"object"==typeof r?!l(r)&&Ke(e,i,s(e,r[n]),s):void 0).every(e=>!0===e)}const Ne={$eq:Le,$ne:function(e,t,r,s){return!Le(e,{$eq:t.$ne},r)},$gt:function(e,t,r,s){return r>t.$gt},$gte:function(e,t,r,s){return r>=t.$gte},$lt:function(e,t,r,s){return r{this.networkAdapter(e,t).then(e=>{const t=Date.now();return T({type:"network-request-end",timestamp:t,duration:t-s,response:e,uuid:n},r),e.ok?i(e):a({...e,errorType:"fetchResponse"})},e=>{const t=Date.now();return T({type:"network-request-error",uuid:n,timestamp:t,duration:t-s,error:e},r),a(function(e){return null!==e&&"object"==typeof e&&"status"in e}(e)?{...e,errorType:"fetchResponse"}:function(e){if("object"==typeof e&&e instanceof Error)return e.errorType="networkAdapterError",e;const t=new Error(`NetworkAdapter rejected with non-Error object: ${void 0===e?"undefined":v(e)}`);return t.errorType="networkAdapterError",t}(e))})})}isErrorCacheable(t){const{error:r}=t;return"fetchResponse"===r.errorType&&r.status===e.HttpStatusCode.NotFound}resolvePendingSnapshot(e){return new Promise(t=>{let r;r=this.storeSubscribe(e,e=>{void 0!==r&&r(),t(e)})})}storeIngest(e,t,r,s,n){null!==t&&t(r,{fullPath:e,parent:null,propertyName:null},s,void 0===n?this.store:n,Date.now())}storeIngestError(e,t,r,s){const{error:i}=t;if(this.isErrorCacheable(t)){const t=void 0===s?this.store:s,a={__type:N.Error,status:K.RESOURCE_NOT_FOUND,error:i};if(n(a),t.publish(e,a),void 0!==r){const{ttl:s,namespace:n,representationName:i,version:a}=r,o=Date.now(),h={ingestionTimestamp:o,expirationTimestamp:o+s,representationName:i,namespace:n,version:a};t.publishMetadata(e,h)}return}this.store.broadcastNonCachedSnapshot(e,t)}storePublish(e,t){this.store.publish(e,t)}storePut(e,t){this.store.put(e,t)}storeRedirect(e,t){this.store.redirect(e,t)}storeGetCanonicalKey(e){return this.store.getCanonicalRecordId(e)}storeBroadcast(e,t){return this.store.broadcast(e,t)}storeSubscribe(e,t){return this.store.subscribe(e,t)}storeWatch(e,t){return this.store.watch(e,t)}storeLookup(e,t,r,s){return this.store.lookup(e,t,r,s)}storeCleanup(){this.store.cleanup()}storeEvict(e){this.store.evict(e)}storeDealloc(e){this.store.dealloc(e)}storeReset(){this.store.reset()}storeRetain(e){return this.store.retain(e)}storeKeyExists(e){return this.store.keyExistsInStore(e)}snapshotAvailable(e){return y(e)||m(e)||b(e)}createSnapshot(e,t,r){return new Ee(this.store,e.variables,t,void 0,r).read(e)}rebuildSnapshot(e,t){t(new Ee(this.store,e.variables,e.refresh,e).read(e.select))}getNode(e,t){const r=void 0===t?this.store:t,s=r.readEntry(e);return void 0===s?null:this.wrapNormalizedGraphNode(s,e,r)}wrapNormalizedGraphNode(e,t,r){if(null===e)return null;const s=void 0===r?this.store:r;return A(e)?new fe(s,e):new ge(s,e,t)}withContext(e,t){const{contextId:s,onContextLoaded:n}=t;void 0===this.adapterContextMap[s]&&(this.adapterContextMap[s]=r(null));const i=this.adapterContextMap[s],a={set(e,t){i[e]=t},get:e=>i[e]};if(void 0===n)return(t,r)=>e(t,a,r);let o=!0;const h=n(a);return(t,r)=>o?h.then(()=>(o=!1,e(t,a,r))):e(t,a,r)}publishStoreMetadata(e,t){this.store.publishMetadata(e,t)}putStoreMetadata(e,t,r){this.store.putMetadata(e,t,r)}storeSetTTLOverride(e,t,r){return this.store.setTTLOverride(e,t,r),this.recomputeTTLOverrideExpirations(e,t),Promise.resolve()}storeGetTTLOverride(e,t){return Promise.resolve(this.store.getTTLOverride(e,t))}storeGetTTLOverrides(){return this.store.getTTLOverrides()}recomputeTTLOverrideExpirations(e,t){const r=this.store.readMetadataWhere({namespace:e,representationName:t});for(let e=0,t=r.length;e{const n=Date.now();return{type:"adapter-lookup-end",hasError:t,timestamp:n,duration:n-s.timestamp}})}(h,void 0===a?i.type:a.type,o),l=function(e,t){return P(e,t,{type:"cache-lookup-start",timestamp:Date.now()},(e,t,r,s)=>{const n=Date.now();return{type:"cache-lookup-end",hasError:t,wasResultAsync:r,snapshotState:void 0!==e&&(i=t,!1===i)?e.state:void 0,timestamp:n,duration:n-s.timestamp};var i})}(s,o),c=function(e,t){return P(e,t,{type:"network-lookup-start",timestamp:Date.now()},(e,t,r,s)=>{const n=Date.now();return{type:"network-lookup-end",hasError:t,timestamp:n,duration:n-s.timestamp}})}(n,o)}return h({buildCachedSnapshot:l,buildNetworkSnapshot:c,buildSnapshotContext:r,resolvePendingSnapshot:e=>this.resolvePendingSnapshot(e),storeLookup:(e,t,r)=>this.storeLookup(e,this.createSnapshot,t,r),coercedAdapterRequestContext:se(t),luvio:e})}handleSuccessResponse(e,t){return e()}handleErrorResponse(e){return e()}getNotifyChangeStoreEntries(e){const t=[];for(let r=0,s=e.length;r{})}},e.GraphNode=ge,e.InMemoryStore=ee,e.InMemoryStoreQueryEvaluator=class{constructor(e){this.store=e,this.storeToIndexMap=new WeakMap,this.storeToIndexMap.set(e,{nodeType:"indexBySchema",value:{}})}queryByKey(e,t){const r=this.getKeyIndex(this.store,t);if(void 0===r)return Promise.resolve([]);let s=[r];for(let r=0;r"key"===e.nodeType);return Promise.resolve(n.map(e=>e.value))}queryWhere(e,t,r,s){const n=null!=s?s:(e,t)=>this.resolveData(e,t);return this.queryByKey(e,t).then(e=>e.filter(e=>{const t=this.store.readEntry(JSON.stringify(e));return Ke(this.store,r,n(this.store,t),n)}))}resolveData(e,t){return"object"==typeof t&&null!==t&&"__link"in t&&"string"==typeof t.__link?e.readEntry(t.__link):t}registerKey(e,t,r){const s=this.getOrRegisterKeyIndex(e,r);if(void 0===s)return;const n=r.length;let i=s;for(let e=0;e{let e;return function(){return void 0===e&&(e=t()),e}})())}handleErrorResponse(e){return this.environment.handleErrorResponse(e)}getNotifyChangeStoreEntries(e){return this.environment.getNotifyChangeStoreEntries(e)}notifyStoreUpdateAvailable(e){return this.environment.notifyStoreUpdateAvailable(e)}registerStoreQueryEvaluator(e){return this.environment.registerStoreQueryEvaluator(e)}getStoreQueryEvaluator(){return this.environment.getStoreQueryEvaluator()}registerTypeQueryEvaluator(e,t,r){return this.environment.registerTypeQueryEvaluator(e,t,r)}getTypeQueryEvaluator(e,t){return this.environment.getTypeQueryEvaluator(e,t)}buildStructuredKey(e,t,r){return this.environment.buildStructuredKey(e,t,r)}},e.Reader=Ee,e.StoreKeyMap=j,e.StoreKeySet=U,e.StringKeyInMemoryStore=H,e.Wildcard=Ce,e.adapterToNetworkPriority=te,e.buildNetworkSnapshotCachePolicy=function(e,t,r,s,n){const{luvio:i,config:a}=e,{networkPriority:o,requestCorrelator:h,eventObservers:l,sourceContext:c}=t,d={resourceRequestContext:{requestCorrelator:h,sourceContext:c,luvioRequestMethod:s},eventObservers:l};return"normal"!==o&&(d.overrides={priority:o}),n?r(i,a,d,e.cacheSnapshot):r(i,a,d)},e.coerceAdapterRequestContext=se,e.coerceConfig=function(e,t){const r={};return t.forEach(({name:t,coerceFn:s})=>{const n=void 0===s?e[t]:s(e[t]);void 0!==n&&(r[t]=n)}),r},e.createCustomAdapterEventEmitter=(e,t=[])=>r=>{T({type:"custom",namespace:e,timestamp:Date.now(),data:r},t)},e.createResourceParams=function(e){return t=>function(e,t){const r=(t,{name:r})=>(t[r]=e[r],t),s=t.filter(e=>e.resourceType===Ae.UrlParameter).reduce(r,{}),n=t.filter(e=>e.resourceType===Ae.QueryParameter).reduce(r,{}),a=t.filter(e=>e.resourceType===Ae.Header).reduce(r,{}),o=t.filter(e=>e.resourceType===Ae.Body),h=o.reduce((t,{name:r,required:s})=>{const n=e[r];return(s||void 0!==n)&&(t[r]=n),t},{}),l={};i(s).length>0&&(l[qe]=s);i(n).length>0&&(l[_e]=n);o.length>0&&(l[je]=h);i(a).length>0&&(l[Fe]=a);return l}(t,e)},e.deepFreeze=g,e.emitAdapterEvent=T,e.ingestShape=function(e,t,r,s,n,i,a,o,h,l,c,d){const u=s.readEntry(a);let p=o(e,u,{fullPath:a,parent:t.parent,propertyName:t.propertyName,ttl:i},r,s,n);if(void 0!==u&&!1!==d(u,p)||r.storePublish(a,p),void 0!==i){const e={ttl:i,namespace:h,version:l,representationName:c,ingestionTimestamp:n};r.publishStoreMetadata(a,e)}},e.isFileReference=function(e){return"object"==typeof e&&null!==e&&"isFileReference"in e&&!0===e.isFileReference},e.isFormData=function(e){return"object"==typeof e&&null!==e&&"namedEntries"in e&&l(e.namedEntries)},e.resolveLink=function(e,t,r){const{StoreLinkStateValues:s}=e,n=e.getLinkState(t);switch(n.state){case s.RefNotPresent:case s.NotPresent:case s.Missing:return e.markMissingLink(t.__ref),void e.markMissing();case s.Pending:return void e.markPending();case s.Null:return}const{key:i}=n;return e.read({recordId:i,node:{kind:"Fragment",private:[],opaque:!0,version:r},variables:{}})},e.serializeStructuredKey=q,e.setBypassDeepFreeze=function(e){S=e},e.typeCheckConfig=function(e,t,r){r.forEach(({name:r,typeCheckShape:s,isArrayShape:n})=>{switch(s){case $e.Unsupported:return;case $e.String:case $e.Boolean:case $e.Number:case $e.Integer:if(n)!function(e,t,r,s){const n=e[r];if(l(n)){const e=[];for(let t=0,r=n.length;t({[r]:!0,adapterName:o})),void 0===u)return Promise.resolve(void 0);return s.refreshSnapshot(u).then(e=>{if(a(e))throw e.error})}(n,i,e)}}!function(e){e.Fulfilled="Fulfilled",e.Unfulfilled="Unfulfilled",e.Error="Error",e.Pending="Pending",e.Stale="Stale"}(o||(o={}));const{isArray:c}=Array,{stringify:d}=JSON;function l(e,t){if(e instanceof Error)throw e.message=`${t}\n[${e.message}]`,e;throw new Error(`${t}\n[${d(e)}]`)}class h{constructor(e){this.obj=e,this.copy={},this.currentPath={key:"",value:e,parent:null,data:this.copy}}sanitize(){const e=this;return d(this.obj,function(t,r){if(""===t)return r;const n=this;return n!==e.currentPath.value&&e.exit(n),"object"==typeof r&&null!==r?(e.enter(t,r),r):(e.currentPath.data[t]=r,r)}),this.copy}enter(e,t){const{currentPath:r}=this,n=r.data[e]=c(t)?[]:{};this.currentPath={key:e,value:t,parent:r,data:n}}exit(e){for(;this.currentPath.value!==e;)this.currentPath=this.currentPath.parent||this.currentPath}}function f(e){return new h(e).sanitize()}class p{constructor(e,t,r,n,s){this.connected=!1,this.adapter=e,this.name=t,this.luvio=r,this.callback=n,this.sourceContext=s,this.emit()}connect(){this.connected=!0,this.callAdapter(this.generateAdapterRequestContext())}disconnect(){this.unsubscribe(),this.connected=!1}update(e,t){this.unsubscribe(),this.config=f(e),this.callAdapter(this.generateAdapterRequestContext(t))}generateAdapterRequestContext(e){return this.sourceContext?{sourceContext:{...this.sourceContext}}:{}}callAdapter(e){if(!this.connected||void 0===this.config)return;const t=this.adapter(this.config,e);this.processAdapterResponse(t)}processAdapterResponse(e){if(null===e)return;const t=this.config,r=e=>{null!==e&&(!function(e){return e.state===o.Unfulfilled}(e)?this.config===t&&((function(e){return e.state===o.Fulfilled}(e)||a(e)||function(e){return e.state===o.Stale}(e))&&this.emit(e),this.subscribe(e)):this.luvio.instrument(()=>({[n]:!0,adapterName:this.adapter.name,missingPaths:e.missingPaths,missingLinks:e.missingLinks})))};void 0===e.then?r(e):e.then(r,e=>l(e,"Luvio wire adapter Promise rejected. Original error:"))}emit(e){const t=function(e){return void 0===e?{data:void 0,error:void 0}:a(e)?{data:void 0,error:e.error}:{data:e.data,error:void 0}}(e);i.set(t,[this.name,e]);try{this.callback(t)}catch(e){e instanceof Error&&l(e,s)}}subscribe(e){this.unsubscribe(),this.connected&&(this.unsubscriber=this.luvio.storeSubscribe(e,this.emit.bind(this)))}unsubscribe(){void 0!==this.unsubscriber&&(this.unsubscriber(),this.unsubscriber=void 0)}}function v(e,t){if(e===t)return!0;if(null==e||null==t)return e===t;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r{var n;return!(null===(n=this.paginationConfigParamNames)||void 0===n?void 0:n.includes(t))&&!v(e[t],null==r?void 0:r[t])})&&(this.connectTimestamp=Date.now());const n=this.generateAdapterRequestContext(t);super.unsubscribe(),this.config=f(e),super.callAdapter(n)}else super.update(e,t)}generateAdapterRequestContext(e){return{...super.generateAdapterRequestContext(e),cachePolicy:{type:"valid-at",timestamp:this.connectTimestamp}}}subscribe(e){var t;if(super.subscribe(e),this.connected&&(null===(t=e.refresh)||void 0===t?void 0:t.resolve)){const t=e.refresh.resolve;e.refresh.resolve=e=>(this.connectTimestamp=Date.now(),t(e))}}}function b(e){const t={data:void 0,errors:void 0};return void 0===e||(t.data=function(e){if("data"in e&&void 0!==e.data){const t="data"in e.data&&void 0!==e.data.data,r="results"in e.data&&void 0!==e.data.results;if(t)return e.data.data;if(r)return e.data}}(e),"error"in e&&void 0!==e.error&&(Array.isArray(e.error)?t.errors=e.error:t.errors=[e.error])),t}class m extends p{constructor(e,t,r,n,s,i){super(e,t,r,s,i),this.astResolver=n}update(e,t){this.unsubscribe(),e.batchQuery?this.config={batchQuery:e.batchQuery.map(e=>A(e))}:this.config=A(e),this.callAdapter(super.generateAdapterRequestContext(t))}emit(e){const t=b(e);i.set(t,[this.name,e]);try{this.callback(t)}catch(e){e instanceof Error&&l(e,s)}}callAdapter(e){if(!this.connected||void 0===this.config)return;const t=this.config;if("batchQuery"in t){const r={batchQuery:t.batchQuery.map(e=>this.resolveQueryAst(e))};if(r.batchQuery.some(e=>void 0===e))return;const n=this.adapter(r,e);this.processAdapterResponse(n)}else if("query"in t){const r=this.resolveQueryAst(t);if(void 0!==r){const t=this.adapter(r,e);this.processAdapterResponse(t)}}}resolveQueryAst(e){if(null===e.query)return;const t=this.astResolver(e.query);if(void 0===t&&void 0!==e.query)return;return{...e,query:t}}}function A(e){return{...f(e),query:e.query}}let g={refreshCalled:e=>{},instrumentAdapter:(e,t)=>e};e.refresh=void 0;const{create:I,defineProperty:T,defineProperties:C}=Object;var R;function N(e){return e.state===R.Error}function P(e){return e.state===R.Pending}function x(e){return null!==e&&void 0!==e.then}function k(e){return N(e)?{data:void 0,error:e.error}:{data:e.data,error:void 0}}function q(e){if(N(e))return"adapterError"===e.error.errorType?{data:void 0,errors:e.error.error}:{data:void 0,errors:[e.error]};const t={},r=e;return"data"in r.data&&void 0!==r.data.data&&(t.data=r.data.data),void 0!==r.data.errors&&(t.errors=r.data.errors),t}function O(e){return N(e)?{data:void 0,error:e.error}:{data:e.data,error:void 0}}!function(e){e.Fulfilled="Fulfilled",e.Unfulfilled="Unfulfilled",e.Error="Error",e.Pending="Pending",e.Stale="Stale"}(R||(R={})),e.ADAPTER_UNFULFILLED_ERROR=n,e.REFRESH_ADAPTER_EVENT=r,e.bindWireRefresh=function(t){const r=u(t);e.refresh=(e,t)=>(g.refreshCalled(t),r(e))},e.createGraphQLImperativeAdapter=function(e,t,r,n){const{name:s}=r,i=(r,s,i)=>{let o=null,a=!1;if("batchQuery"in r){if(a=!0,o={batchQuery:r.batchQuery.map(e=>({...e,query:n(e.query)}))},o.batchQuery.some(e=>void 0===e.query))return void i({data:void 0,errors:[{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}]})}else if("query"in r){const e=n(r.query);if(void 0===e)return void i({data:void 0,errors:[{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}]});o={...r,query:e}}const u=t(o,s);null!==u?x(u)?u.then(e=>{i(null!==e?a?O(e):q(e):{data:void 0,errors:[{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}]})}).finally(()=>{e.storeCleanup()}):i(a?O(u):q(u)):i({data:void 0,errors:[{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}]})};T(i,"name",{value:`${s}_invoke`});const o=(r,s,i)=>{let o,a=i,u=null,c=!1;if("batchQuery"in r){if(c=!0,u={batchQuery:r.batchQuery.map(e=>({...e,query:n(e.query)}))},u.batchQuery.some(e=>void 0===e.query))return i({data:void 0,errors:[{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}]}),()=>{}}else if("query"in r){const e=n(r.query);if(void 0===e)return i({data:void 0,errors:[{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}]}),()=>{};u={...r,query:e}}const d=t(u,s);if(null===d)return a({data:void 0,errors:[{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}]}),()=>{};const l=t=>{o=e.storeSubscribe(t,e=>{null===a||P(e)||a(c?O(e):q(e))})};return x(d)?d.then(e=>{if(null!==a){if(null===e)return void a({data:void 0,errors:[{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}]});P(e)||a(c?O(e):q(e)),l(e)}}):(P(d)||a(c?O(d):q(d)),l(d)),()=>{null!==a&&void 0!==o&&o(),a=null,o=void 0}};return T(o,"name",{value:`${s}_subscribe`}),{invoke:i,subscribe:o}},e.createGraphQLWireAdapterConstructor=function(e,t,r,n){const{apiFamily:s,name:i}=r;return function(e,t,r,n){const s=function(s,i){const o=new m(e,t,r,n,s,i);this.connect=()=>o.connect(),this.disconnect=()=>o.disconnect(),this.update=(e,t)=>o.update(e,t)};return Object.defineProperty(s,"name",{value:t}),s}(t,`${s}.${i}`,e,n)},e.createImperativeAdapter=function(e,t,r){const{name:n}=r,s=(r,n,s)=>{const i=t(r,n);null!==i?x(i)?i.then(e=>{s(null!==e?k(e):{data:void 0,error:{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}})}).finally(()=>{e.storeCleanup()}):s(k(i)):s({data:void 0,error:{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}})};T(s,"name",{value:`${n}_invoke`});const i=(r,n,s)=>{let i,o=s;const a=t(r,n);if(null===a)return o({data:void 0,error:{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}}),()=>{};const u=t=>{i=e.storeSubscribe(t,e=>{null===o||P(e)||o(k(e))})};return x(a)?a.then(e=>{if(null!==o){if(null===e)return void o({data:void 0,error:{ok:!1,status:400,statusText:"INVALID_CONFIG",body:void 0,headers:{},errorType:"fetchResponse"}});P(e)||o(k(e)),u(e)}}):(P(a)||o(k(a)),u(a)),()=>{null!==o&&void 0!==i&&i(),o=null,i=void 0}};return T(i,"name",{value:`${n}_subscribe`}),{invoke:s,subscribe:i}},e.createInfiniteScrollingWireAdapterConstructor=function(e,t,r,n){const{apiFamily:s,name:i}=r;return function(e,t,r,n){const s=function(s,i){const o=new y(e,t,r,s,i,n);this.connect=()=>o.connect(),this.disconnect=()=>o.disconnect(),this.update=(e,t)=>o.update(e,t)};return Object.defineProperty(s,"name",{value:t}),s}(t,`${s}.${i}`,e,n)},e.createInstrumentedAdapter=function(e,t){return g.instrumentAdapter(e,t)},e.createLDSAdapter=function(e,t,r){return r(e)},e.createWireAdapterConstructor=function(e,t,r){const{apiFamily:n,name:s}=r;return function(e,t,r){const n=function(n,s){const i=new p(e,t,r,n,s);this.connect=()=>i.connect(),this.disconnect=()=>i.disconnect(),this.update=(e,t)=>i.update(e,t)};return Object.defineProperty(n,"name",{value:t}),n}(t,`${n}.${s}`,e)},e.instrument=function(e){g=Object.assign(g,e)},Object.defineProperty(e,"__esModule",{value:!0})}); })();(function() { LWR.define("force/ldsAdaptersApex",["exports","force/luvioEngine","@salesforce/gate/lds.enable-input-validation","force/ldsBindings","force/ldsEngineWebruntime"],function(e,r,t,n,o){function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(t);const{create:i,keys:u,values:l,getPrototypeOf:c}=Object,{hasOwnProperty:d}=Object.prototype;const{isArray:f}=Array;function p(e){if("object"!=typeof e||null===e)return!1;const r=c(e);return null===r||null===c(r)}const{keys:m,create:h}=Object,{stringify:v}=JSON,{isArray:y}=Array;const x={overrides:{headers:{"Cache-Control":"no-cache"}}};function C(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0===e)return;if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return v(e);let r,t;if(y(e)){for(t="[",r=0;r{const s=t.fullPath,i=e,u=o.readEntry(s);var l,c;return r.deepFreeze(i),void 0!==u&&!1!=(l=u,w(i)===w(l))||n.storePublish(s,i),n.publishStoreMetadata(s,{...O,ingestionTimestamp:a}),c=s,{__ref:r.serializeStructuredKey(c)}};function q(e){if("object"==typeof(r=e)&&null!==r&&!1===y(r)){return-1===P(e).indexOf(void 0)?e:null}var r;return e}const j=":";function k(e){return null==e||"object"==typeof e&&0===g(e).length}function D(e,r,t,n){return[e.replace("__",j),r,t,k(n)?"":C(n)].join(j)}function I(e,r,t,n){return{apexMethod:t,apexClass:r,methodParams:e,xSFDCAllowContinuation:n+""}}function M(e,r){return""!==e?`${e}__${r}`:r}function N(e){const{headers:r}=e,t=function(e){if(void 0===e)return;const r=g(e);for(let t=0,n=r.length;tJ(t,n,x)})}function E(e,t,n,o){const a=R(n),s={recordId:a,node:{kind:"Fragment",opaque:!0,private:[],version:F},variables:{}};if(N(o)){const r=function(e,r,t,n){const{body:o}=t,a=R(r),s={recordId:a,node:{kind:"Fragment",opaque:!0,private:[],version:F},variables:{}};return e.storeIngest(a,_,o),e.storeLookup(s,n)}(e,n,o,{config:t,resolve:()=>J(e,t,x)});return e.storeBroadcast().then(()=>r)}return Promise.resolve({recordId:a,variables:{},seenRecords:new r.StoreKeySet,select:s,state:"Fulfilled",data:o.body})}function J(e,t,n){const o=function(e){const r=b(null);return k(e.methodParams)||(r.methodParams=e.methodParams),{queryParams:r,urlParams:{apexMethod:e.apexMethod,apexClass:e.apexClass},headers:{xSFDCAllowContinuation:e.xSFDCAllowContinuation}}}(t),a=function(e){const r={},t=e.headers.xSFDCAllowContinuation;return void 0!==t&&(r["X-SFDC-Allow-Continuation"]=t),{baseUri:"/lwr/apex/v68.0",basePath:"/"+e.urlParams.apexClass+"/"+e.urlParams.apexMethod,method:"get",body:null,urlParams:e.urlParams,queryParams:e.queryParams,headers:r,priority:"normal"}}(o);return e.dispatchResourceRequest(a,n).then(n=>e.handleSuccessResponse(()=>E(e,t,o,n),()=>new r.StoreKeyMap),r=>e.handleErrorResponse(()=>function(e,r,t,n){return Promise.resolve(e.errorSnapshot(n,{config:r,resolve:()=>J(e,r,x)}))}(e,t,0,r)))}function L(e,r){const{luvio:t,config:n}=e,{networkPriority:o,requestCorrelator:a,eventObservers:s,sourceContext:i}=r,u={resourceRequestContext:{requestCorrelator:a,sourceContext:i},eventObservers:s};return"normal"!==o&&(u.overrides={priority:o}),J(t,n,u)}const K=(e,r)=>{const{namespace:t,classname:n,method:o,isContinuation:a}=r;return V(e,t,n,o,a)};function V(e,r,t,n,o){return(a,s)=>{const i=q(a);if(null===i)return null;const u=I(i,M(r,t),n,o);return e.applyCachePolicy(s||{},{config:u,luvio:e},$,L)}}function B(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0===e)return;if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return w(e);let r,t;if(S(e)){for(t="[",r=0;rr)}return Promise.resolve({recordId:a,variables:{},seenRecords:new r.StoreKeySet,select:s,state:"Fulfilled",data:o.body})}function z(e,t,n){const o=function(e){return{urlParams:{apexMethod:e.apexMethod,apexClass:e.apexClass},body:e.methodParams,headers:{xSFDCAllowContinuation:e.xSFDCAllowContinuation}}}(t),a=function(e){const r={},t=e.headers.xSFDCAllowContinuation;return void 0!==t&&(r["X-SFDC-Allow-Continuation"]=t),{baseUri:"/lwr/apex/v68.0",basePath:"/"+e.urlParams.apexClass+"/"+e.urlParams.apexMethod,method:"post",body:e.body,urlParams:e.urlParams,queryParams:{},headers:r,priority:"normal"}}(o);return e.dispatchResourceRequest(a,n).then(t=>e.handleSuccessResponse(()=>X(e,0,o,t),()=>new r.StoreKeyMap),r=>e.handleErrorResponse(()=>function(e,r,t,n){return Promise.resolve(e.errorSnapshot(n))}(e,0,0,r)))}function U(e,r){const{luvio:t,config:n}=e,{networkPriority:o,requestCorrelator:a,eventObservers:s,sourceContext:i}=r,u={resourceRequestContext:{requestCorrelator:a,sourceContext:i},eventObservers:s};return"normal"!==o&&(u.overrides={priority:o}),z(t,n,u)}function G(e){if("Error"===e.state)throw e.error;return e.data}const H=(e,r,t)=>{const{namespace:n,classname:o,method:a,isContinuation:s}=r;return function(e){return(r,t)=>{const n=e(r,t);return Promise.resolve(n).then(G)}}(t(e,n,o,a,s))},Q=(e,r)=>H(e,r,Z),Y=(e,r)=>H(e,r,V);function Z(e,r,t,n,o){return(a,s)=>{const i=I(a,M(r,t),n,o);return e.applyCachePolicy(s||{},{config:i,luvio:e},W,U)}}const ee=new Map;function re(e,r,t,n){return(o,a)=>{const s=function(e){return ee.get(e)}(r),i=e(o,a);return null===i||void 0===s||a&&a.excludeFromPredictions||s.saveRequest({adapterName:"getApex",config:{name:n,invokerParams:t,config:o}}),i}}let te;o.withDefaultLuvio(e=>{te=e,n.bindWireRefresh(te)});e.GetApexWireAdapterFactory=K,e.getApexInvoker=function(e,r,t,o,a){const s=`getApex_${e}_${r}_${t}_${o}`,i={apiFamily:"Apex",name:s},u=a?Y:Q,l=n.createLDSAdapter(te,s,n=>u(n,{namespace:e,classname:r,method:t,isContinuation:o}));return l.adapter=n.createWireAdapterConstructor(te,n.createInstrumentedAdapter(re(n.createLDSAdapter(te,s,n=>K(n,{namespace:e,classname:r,method:t,isContinuation:o})),te,{namespace:e,classname:r,method:t,isContinuation:o},s),i),i),l},e.getApexInvoker_imperative=function(e,r,t,o){const a=`getApex_${e}_${r}_${t}_${o}`,s={apiFamily:"Apex",name:a},i=n.createInstrumentedAdapter(n.createLDSAdapter(te,a,n=>K(n,{namespace:e,classname:r,method:t,isContinuation:o})),s);return n.createImperativeAdapter(te,i,s)},e.getSObjectValue=function(e,r){if(!1==("object"==typeof(t=e)&&null!==t&&!1===f(t)))return;var t;const n=s.default.isOpen({fallback:!1}),o=function(e){const r=e.indexOf(".");if(r<1)throw new TypeError("Value does not include an object API name.");return[e.substring(0,r),e.substring(r+1)]}(function(e){if("string"==typeof e)return e;if(e&&"string"==typeof e.objectApiName&&"string"==typeof e.fieldApiName)return e.objectApiName+"."+e.fieldApiName;throw new TypeError("Value is not a string or FieldId.")}(r))[1].split(".");let a=e;for(let e=0,r=o.length;e1?(e.pop(),"auspost:"+e.join(":")):"No Previous Page"}handlePageRef(e){if(!e)return;const t=(window===globalThis||window===document?location:window.location).pathname;this._lastScheduledPath!==t&&(this._lastScheduledPath=t,this._schedulePageView())}_schedulePageView(){this._timer&&clearTimeout(this._timer),this._timer=setTimeout(()=>{this._pushPageView()},2e3)}_pushPageView(){if(this._lastFiredPath===(window===globalThis||window===document?location:window.location).pathname)return;const e=(window===globalThis||window===document?location:window.location).pathname,t=e.split("/").filter(Boolean),n={event:"site-impression",dataChannel:"web",userInfo:{apcn:"",apbcn:""},pageInfo:{pageName:t.length?"auspost:"+t.join(":"):"auspost:home",pageType:"Help and Support",pageCategory:t[0]||"",description:document.title,pageURL:(window===globalThis||window===document?location:window.location).href,previousPage:this._getPreviousPage(),navMethod:"click",pageError:"",pageAbort:!1,site:"auspost",siteName:"Australia Post",sitePrefix:"auspost",siteSection:t[0]||"",siteSubSection:t[1]||"",siteSubSection1:t[2]||"",siteSubSection2:t[3]||"",platform:this._getPlatform(),pageViews:{id:this._generateId(),value:1}}};i.pushDataOnPageView(n),this._previousPageUrl="auspost:"+(window===globalThis||window===document?location:window.location).pathname.split("/").filter(Boolean).join(":"),this._lastFiredPath=e}_getPlatform(){const e=navigator.userAgent;return/tablet|ipad/i.test(e)?"tablet":/mobile|iphone|android/i.test(e)?"mobile":"desktop"}_generateId(){return"pv-"+Date.now()+"-"+Math.random().toString(36).slice(2,11)}}t.registerDecorators(h,{wire:{handlePageRef:{adapter:n.CurrentPageReference,method:1,config:function(e){return{}}}},fields:["_timer","_lastScheduledPath","_lastFiredPath","_launchScriptRequested","_previousPageUrl"]});const p=t.registerComponent(h,{tmpl:c,sel:"c-adobe-analytics-manager",apiVersion:62});e.default=p,Object.defineProperty(e,"__esModule",{value:!0})}); })();(function() { LWR.define("lightning/platformResourceLoader",["exports"],function(e){function t(e){if(e&&e.constructor&&"light"===e.constructor.renderMode)return e.ownerDocument;if(e&&e.template&&e.template.ownerDocument){return e.template.ownerDocument}throw new TypeError("The first parameter of loadScript() and loadStyle() must be an LWC component.")}function r(e,t){e._ltngRequireLoaded=!0,t()}function n(e,t){e.stopPropagation(),t(e.message)}e.loadScript=function(e,o){const a=t(e),i=function(e,t){const r=e.createElement("script");return r.src=t,r.charset="utf-8",r.type="text/javascript",r}(a,o),c=function(e,t){return e.querySelector(`script[src='${t}']`)||e.querySelector(`script[data-locker-src='${t}']`)}(a,i.src);return c?function(e,t){if(!e._ltngRequireCreated)throw new Error("platformResourceLoader encountered an existing

`,u=a.parseFragment``,g={classMap:{"help-support-header":!0},key:2},f={classMap:{hsh:!0,"hsh--landing-page":!0,"js-hsh":!0},attrs:{"data-variant":"landing-page","data-hsh-index":"0"},key:3},m={classMap:{hsh__wrapper:!0},key:4},w={attrs:{name:"heading"},key:5},y={classMap:{"help-support-search-form":!0},key:8},v={classMap:{hssf:!0,"hssf--header":!0,"js-hssf":!0},key:9},b={classMap:{"hssf__form-bar":!0},key:10},S={classMap:{"hssf__form-field-wrapper":!0,"js-hssf-form-field-wrapper":!0},key:11},$={attrs:{name:"search-input"},key:12},_={attrs:{name:"search-button"},key:17};function k(e,a,t,s){const{st:n,gid:r,d:i,sp:l,s:o,b:k,h:P}=e,{_m0:E,_m1:I,_m2:L,_m3:M}=s;return[a.isLoading?n(c,1):null,a.isLoading?null:P("div",g,[P("div",f,[P("div",m,[o("heading",w,[n(h,"@heading:7",[l(0,{attrs:{id:r("search-heading")}},null),l(1,null,i(a.title))])],t),P("div",y,[P("div",v,[P("div",b,[P("div",S,[o("search-input",$,[n(d,"@search-input:14",[l(0,{on:I||(s._m1={input:k(a.handleSearchInputChange),keydown:k(a.handleSearchInputKeydown)}),attrs:{id:r("topic-search-input2"),placeholder:a.placeholder,"aria-label":a.title,"aria-describedby":r(a.instructionElementId)}},null)])],t),n(p,16,[l(0,{attrs:{id:r(a.instructionElementId)}},null),l(1,null,i(a.placeholder))])]),o("search-button",_,[n(u,"@search-button:19",[l(0,{on:M||(s._m3={click:k(a.handleSearch)}),attrs:{id:r("helpSupportSearchFormSubmit")}},null)])],t)])])])])])])]}var P=a.registerTemplate(k);function E(e,a,t,s,n,r,i){try{var l=e[r](i),o=l.value}catch(e){return void t(e)}l.done?a(o):Promise.resolve(o).then(s,n)}k.slots=["heading","search-button","search-input"],k.stylesheets=[],k.stylesheetToken="lwc-5ftoiqhrq34",k.legacyStylesheetToken="c-aphsCategoryArticleSearchEngine_aphsCategoryArticleSearchEngine",a.freezeTemplate(k);let I=0,L=!1;class M extends(t.NavigationMixin(a.LightningElement)){constructor(...e){super(...e),this.searchKey="",this.answersPath="",this.placeholder="",this.title="",this.isLoading=!0,this.instructionElementId="topic-search-instructions-"+I++}connectedCallback(){L||s.loadStyle(this,o.default+"/styles/aphsCategoryArticleSearchEngine.css").then(()=>{L=!0}).catch(()=>{})}wiredLabels({data:e,error:a}){void 0===e&&void 0===a||(this.isLoading=!1),e?(this.placeholder=this.placeholder||e.articleSearchPlaceholder,this.title=this.title||e.articleSearchTitle,this.answersPath=e.articleSearchAnswersPath||this.answersPath):a&&console.error("Error loading APHS UI Labels:",a)}handleSearchInputChange(e){this.searchKey=e.target.value.trim()}handleSearchInputKeydown(e){"Enter"===e.key&&(e.preventDefault(),this.handleSearch())}clearSearchInput(){this.searchKey="";const e=this.template.querySelector("input.js-hssf-form-input");e&&(e.value="");const a=this.template.querySelector('slot[name="search-input"]');if(!a)return;a.assignedElements({flatten:!0}).forEach(e=>{if("INPUT"===e.tagName)return void(e.value="");const a=e.querySelector?e.querySelector("input"):null;a&&(a.value="")})}handleSearch(){var e,a=this;return(e=function*(){const e=a.searchKey||"",s=`${a.answersPath}?s=${encodeURIComponent(e)}`,n=(window===globalThis||window===document?location:window.location).pathname+(window===globalThis||window===document?location:window.location).search;try{const e=yield a[t.NavigationMixin.GenerateUrl]({type:"standard__webPage",attributes:{url:s}});(e||s)===n?(window===globalThis||window===document?location:window.location).reload():(window===globalThis||window===document?location:window.location).assign(e||s)}catch(e){(window===globalThis||window===document?location:window.location).assign(s)}finally{a.clearSearchInput()}},function(){var a=this,t=arguments;return new Promise(function(s,n){var r=e.apply(a,t);function i(e){E(r,s,n,i,l,"next",e)}function l(e){E(r,s,n,i,l,"throw",e)}i(void 0)})})()}setSearchKey(e){this.searchKey="string"==typeof e?e.trim():""}triggerSearch(){return this.handleSearch()}}a.registerDecorators(M,{publicProps:{placeholder:{config:0},title:{config:0}},publicMethods:["setSearchKey","triggerSearch"],track:{isLoading:1},wire:{wiredLabels:{adapter:l.default,method:1,config:function(e){return{}}}},fields:["searchKey","answersPath","instructionElementId"]});const x=a.registerComponent(M,{tmpl:P,sel:"c-aphs-category-article-search-engine",apiVersion:66});e.default=x,Object.defineProperty(e,"__esModule",{value:!0})}); })();(function() { LWR.define("lightning/shadowBaseClassPrivate",["exports","lwc"],function(e,t){const s=[];function n(e,t,n,a){return s}var a=t.registerTemplate(n);n.stylesheets=[],n.stylesheetToken="lwc-758d5qnnql0",n.legacyStylesheetToken="lightning-shadowBaseClassPrivate_shadowBaseClassPrivate",t.freezeTemplate(n);class l extends t.LightningElement{connectedCallback(){this.template.synthetic||this.setAttribute("data-render-mode","shadow")}}const i=t.registerComponent(l,{tmpl:a,sel:"lightning-shadow-base-class-private",apiVersion:66,enableSyntheticElementInternals:!0,enablePrivateMethods:!0});e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}); })();(function() { LWR.define("lwr/environment",["exports"],function(e){const a=globalThis?.LWR?.env||{},s=a&&("true"===a.SSR||!0===a.SSR),t=a&&a.basePath,l=a&&a.locale,n=a&&a.assetBasePath,o=a&&a.uiBasePath;e.assetBasePath=n,e.basePath=t,e.isServer=s,e.locale=l,e.uiBasePath=o,Object.defineProperty(e,"__esModule",{value:!0})}); })();(function() { LWR.define("lightning/utils",["exports","lwr/environment"],function(e,t){function n(e,t){if("string"==typeof t){const n=t.trim().split(/\s+/);for(let t=0,{length:r}=n;t0||n>0}(e)}function s(e){return"enable"===e.dataset.navigation||e.tabIndex>=0&&N(e)}const o=/^(\/+|\.+|ftp|http(s?):\/\/)/i;function S(e){return o.test(e)}function M(e){const n=t.isServer?"https:":window.location.protocol;return S(e)?e:`${n}//${e}`}const i="((?:(?:https?|ftp):\\/\\/(?:[\\w\\-\\|=%~#\\/+*@\\.,;:\\?!']|&){0,2047}(?:[\\(\\)\\.\\w=\\/+#-]*)[^\\s()\\.<>,;\\[\\]`'\"])|(?:\\b(?:[a-z0-9](?:[-a-z0-9]{0,62}[a-z0-9])?\\.)+(?:AC|AD|AE|AERO|AF|AG|AI|AL|AM|AN|AO|AQ|AR|ARPA|AS|ASIA|AT|AU|AW|AX|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BIZ|BJ|BM|BN|BO|BR|BS|BT|BV|BW|BY|BZ|CA|CAT|CC|CD|CF|CG|CH|CI|CK|CL|CM|CN|CO|COM|COOP|CR|CU|CV|CX|CY|CZ|DE|DJ|DK|DM|DO|DZ|EC|EDU|EE|EG|ER|ES|ET|EU|FI|FJ|FK|FM|FO|FR|GA|GB|GD|GE|GF|GG|GH|GI|GL|GM|GN|GOV|GP|GQ|GR|GS|GT|GU|GW|GY|HK|HM|HN|HR|HT|HU|ID|IE|IL|IM|IN|INFO|INT|IO|IQ|IR|IS|IT|JE|JM|JO|JOBS|JP|KE|KG|KH|KI|KM|KN|KP|KR|KW|KY|KZ|LA|LB|LC|LI|LK|LR|LS|LT|LU|LV|LY|MA|MC|MD|ME|MG|MH|MIL|MK|ML|MM|MN|MO|MOBI|MP|MQ|MR|MS|MT|MU|MUSEUM|MV|MW|MX|MY|MZ|NA|NAME|NC|NE|NET|NF|NG|NI|NL|NO|NP|NR|NU|NZ|OM|ORG|PA|PE|PF|PG|PH|PK|PL|PM|PN|PR|PRO|PS|PT|PW|PY|QA|RE|RO|RS|RU|RW|SA|SB|SC|SD|SE|SG|SH|SI|SJ|SK|SL|SM|SN|SO|SR|ST|SU|SV|SY|SZ|TC|TD|TEL|TF|TG|TH|TJ|TK|TL|TM|TN|TO|TP|TR|TRAVEL|TT|TV|TW|TZ|UA|UG|UK|US|UY|UZ|VA|VC|VE|VG|VI|VN|VU|WF|WS|XN--0ZWM56D|XN--11B5BS3A9AJ6G|XN--80AKHBYKNJ4F|XN--9T4B11YI5A|XN--DEBA0AD|XN--FIQS8S|XN--FIQZ9S|XN--G6W251D|XN--HGBK6AJ7F53BBA|XN--HLCJ6AYA9ESC7A|XN--J6W193G|XN--JXALPDLP|XN--KGBECHTV|XN--KPRW13D|XN--KPRY57D|XN--MGBAAM7A8H|XN--MGBERP4A5D4AR|XN--P1AI|XN--WGBH1C|XN--ZCKZAH|YE|YT|ZA|ZM|ZW)(?!@(?:[a-z0-9](?:[-a-z0-9]{0,62}[a-z0-9])?\\.)+(?:AC|AD|AE|AERO|AF|AG|AI|AL|AM|AN|AO|AQ|AR|ARPA|AS|ASIA|AT|AU|AW|AX|AZ|BA|BB|BD|BE|BF|BG|BH|BI|BIZ|BJ|BM|BN|BO|BR|BS|BT|BV|BW|BY|BZ|CA|CAT|CC|CD|CF|CG|CH|CI|CK|CL|CM|CN|CO|COM|COOP|CR|CU|CV|CX|CY|CZ|DE|DJ|DK|DM|DO|DZ|EC|EDU|EE|EG|ER|ES|ET|EU|FI|FJ|FK|FM|FO|FR|GA|GB|GD|GE|GF|GG|GH|GI|GL|GM|GN|GOV|GP|GQ|GR|GS|GT|GU|GW|GY|HK|HM|HN|HR|HT|HU|ID|IE|IL|IM|IN|INFO|INT|IO|IQ|IR|IS|IT|JE|JM|JO|JOBS|JP|KE|KG|KH|KI|KM|KN|KP|KR|KW|KY|KZ|LA|LB|LC|LI|LK|LR|LS|LT|LU|LV|LY|MA|MC|MD|ME|MG|MH|MIL|MK|ML|MM|MN|MO|MOBI|MP|MQ|MR|MS|MT|MU|MUSEUM|MV|MW|MX|MY|MZ|NA|NAME|NC|NE|NET|NF|NG|NI|NL|NO|NP|NR|NU|NZ|OM|ORG|PA|PE|PF|PG|PH|PK|PL|PM|PN|PR|PRO|PS|PT|PW|PY|QA|RE|RO|RS|RU|RW|SA|SB|SC|SD|SE|SG|SH|SI|SJ|SK|SL|SM|SN|SO|SR|ST|SU|SV|SY|SZ|TC|TD|TEL|TF|TG|TH|TJ|TK|TL|TM|TN|TO|TP|TR|TRAVEL|TT|TV|TW|TZ|UA|UG|UK|US|UY|UZ|VA|VC|VE|VG|VI|VN|VU|WF|WS|XN--0ZWM56D|XN--11B5BS3A9AJ6G|XN--80AKHBYKNJ4F|XN--9T4B11YI5A|XN--DEBA0AD|XN--FIQS8S|XN--FIQZ9S|XN--G6W251D|XN--HGBK6AJ7F53BBA|XN--HLCJ6AYA9ESC7A|XN--J6W193G|XN--JXALPDLP|XN--KGBECHTV|XN--KPRW13D|XN--KPRY57D|XN--MGBAAM7A8H|XN--MGBERP4A5D4AR|XN--P1AI|XN--WGBH1C|XN--ZCKZAH|YE|YT|ZA|ZM|ZW))(?:/[\\w\\-=?/.&;:%~,+@#*]{0,2048}(?:[\\w=/+#-]|\\([^\\s()]*\\)))?(?:$|(?=\\.$)|(?=\\.\\s)|(?=[^\\w\\.]))))",a="([\\w-\\.\\+_']{1,64}@(?:[\\w-]){1,255}(?:\\.[\\w-]{1,255}){1,10})",G=function(e){return M(e)},c=function(e){return`mailto:${e}`};e.classSet=function(e){return n(Object.create(r),e)},e.createEmailHref=c,e.createHttpHref=G,e.emailRegexString=a,e.formatLabel=function(e,...t){let n=[];return n=Array.isArray(t[0])?t[0]:t,e.replace(/{(\d+)}/g,(e,t)=>{const r=n[t];return null!=r?r:""})},e.formatUrl=M,e.isValidUrl=S,e.linkTextNodes=function(e){const t=new RegExp(`^${i}/?$`,"i"),n=new RegExp(`^${a}$`,"i"),r=[],A=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(;A.nextNode();){const e=A.currentNode,N=A.currentNode.parentNode;if("A"!==N.nodeName){const s=A.currentNode.nodeValue.split(/("|;|["']?\s+["']?|["]|[.,!?]+(?=\s|$))/g),o=document.createDocumentFragment();let S=!1;s.forEach((e,r)=>{if(r%2==0)if(e.match(t)){const t=document.createElement("a");t.href=G(e),t.target="_blank",t.rel="noopener",t.appendChild(document.createTextNode(e)),o.appendChild(t),S=!0}else if(e.match(n)){const t=document.createElement("a");t.href=c(e),t.appendChild(document.createTextNode(e)),o.appendChild(t),S=!0}else e&&o.appendChild(document.createTextNode(e));else e&&o.appendChild(document.createTextNode(e))}),S&&r.push({parent:N,fragment:o,currentNode:e})}}r.forEach(({parent:e,fragment:t,currentNode:n})=>{e.replaceChild(t,n)})},e.newLineRegexString="(\r\n|\r|\n)",e.queryFocusable=function(e){const t=e.querySelectorAll("*"),n=[];for(let e=0,{length:r}=t;e]+[^/]>[\\s\\S]*?|]+/>|]+[^/]>[\\s\\S]*?|]+/>|]+[^/]>[\\s\\S]*?|]+/>|]+[^/]>[\\s\\S]*?|]+/>|]+[^/]>[\\s\\S]*?|]+>|

]+[^/]>[\\s\\S]*?|
]+/>|]+[^/]>[\\s\\S]*?|]+/>|]+[^/]>[\\s\\S]*?|]+/>|]+[^/]>[\\s\\S]*?|]+/>||