@microsoft/sp-component-base 1.24.0-beta.2 → 1.24.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  (()=>{var a=document.currentScript;define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0",["@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-page-context","@microsoft/sp-http","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","@msinternal/sp-safehtml","@microsoft/load-themed-styles","@msinternal/sp-telemetry"],(b,c,d,e,f,g,h,i,j)=>(()=>{"use strict";var k,l,m,n,o,p={86(a,b,c){c.d(b,{T:()=>e,X:()=>f});var d=c(676);function e(){return d._SPFlight.isEnabled(60693)}function f(){return d._SPFlight.isEnabled(61389)}}
2
- ,424(a){a.exports=i},676(a){a.exports=b},207(a){a.exports=c},745(a){a.exports=f},909(a){a.exports=e},529(a){a.exports=g},408(a){a.exports=d},356(a){a.exports=h},519(a){a.exports=j}},q={};function r(a){var b=q[a];if(void 0!==b)return b.exports;var c=q[a]={exports:{}};return p[a](c,c.exports,r),c.exports}r.m=p;var s={"216":"YqFzgyVjLuhO8w7HzC63s/jt1GKpbjr6+eq0yE4oiL0=","386":"cFeqXYPW6nXocZvdbBN/107i+x19wnk23Qu8OtfpuIE="};r.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return r.d(b,{a:b}),b},r.d=(a,b)=>{for(var c in b)r.o(b,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((b,c)=>(r.f[c](a,b),b),[])),r.u=a=>"chunk."+({216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"})[a]+"_none_"+({216:"27d3c7c1d01080e4f131",386:"b7f7978a3e90166c361b"})[a]+".js",r.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},r.l=(a,b,c,d)=>{if(k[a])return void k[a].push(b);if(void 0!==c)for(var e,f,g=document.getElementsByTagName("script"),h=0;h<g.length;h++){var i=g[h];if(i.getAttribute("src")==a||i.getAttribute("data-webpack")=="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c){e=i;break}}if(!e){f=!0,(e=document.createElement("script")).charset="utf-8",r.nc&&e.setAttribute("nonce",r.nc),e.setAttribute("data-webpack","467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c),e.src=a,0!==e.src.indexOf(window.location.origin+"/")&&(e.crossOrigin="anonymous");var j="sha256-"+(s[d]||"Missing+Integrity+Hash+For+Script+Aborting=");j&&(e.integrity=j)}k[a]=[b];var l=(b,c)=>{e.onerror=e.onload=null,clearTimeout(m);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=l.bind(null,e.onerror),e.onload=l.bind(null,e.onload),f&&document.head.appendChild(e)},r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.p=(l=a?a.src:"").slice(0,l.lastIndexOf("/")+1),m={826:0},r.f.j=(a,b)=>{var c=r.o(m,a)?m[a]:void 0;if(0!==c)if(c)b.push(c[2]);else{var d=new Promise((b,d)=>c=m[a]=[b,d]);b.push(c[2]=d);var e=r.p+r.u(a),f=Error();r.l(e,b=>{if(r.o(m,a)&&(0!==(c=m[a])&&(m[a]=void 0),c)){var d=b&&("load"===b.type?"missing":b.type),e=b&&b.target&&b.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+e+")",f.name="ChunkLoadError",f.type=d,f.request=e,c[1](f)}},"chunk-"+a,a)}},n=(a,b)=>{var c,d,[e,f,g]=b,h=0;if(e.some(a=>0!==m[a])){for(c in f)r.o(f,c)&&(r.m[c]=f[c]);g&&g(r)}for(a&&a(b);h<e.length;h++)d=e[h],r.o(m,d)&&m[d]&&m[d][0](),m[d]=0},(o=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var t={};return(()=>{r.r(t),r.d(t,{BaseComponent:()=>b,BaseComponentContext:()=>l,DynamicDataProvider:()=>h,DynamicDataSourceManager:()=>j,DynamicProperty:()=>o,RenderableComponentContext:()=>n,ThemeChangedEventArgs:()=>w,ThemeProvider:()=>x,_CacheMissReason:()=>C,_DeferredTeamsAppsClient:()=>E,_LegacyThirdPartyFabricCoreLoader:()=>p,_PropertyMetadataProcessor:()=>u,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>y,_WebPartLoadDataCollector:()=>D,_ensureIsolatedDomainUrl:()=>A});var a=r(676);class b{get _dynamicDataSourceId(){return`${this.manifest.componentType}.${this.manifest.id}.${this.instanceId}`}dispose(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)}get _containsDynamicDataSource(){return this._isWebPartAndContainsDynamicDataSource}set _containsDynamicDataSource(a){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&a}get isDisposed(){return this._isDisposed}get manifest(){return this.context.manifest}onDispose(){}get instanceId(){return this.context.instanceId}get componentId(){return this.context.manifest.id}_initializeContext(a){this.context=a,this.onProvideServices(a.serviceScope),a.serviceScope._isFinished||a.serviceScope.finish(),this.context._initializeDynamicData(this,a.serviceScope)}onProvideServices(a){}constructor(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}}(0,a._ES5CompatibleClass)(b);var c=r(207),d=r(408),e=r(909),f=r(745),g=r(529);class h{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._pendingRegistrations=new Map,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)}dispose(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _isProviderInitialized(){return this._isInitialized}get _dynamicDataSourceId(){return this._component._dynamicDataSourceId}registerSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerSourceChanged(b,this._component,c),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b})):this._addPendingRegistration({id:b,callback:c})}unregisterSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback");let d={id:b,callback:c};this._isRegistrationPending(d)?this._removePendingRegistration(d):(this._dynamicDataManager.unregisterSourceChanged(b,this._component,c),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:b}))}registerPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerPropertyChanged(b,c,this._component,d),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b,propertyId:c})):this._addPendingRegistration({id:b,propertyId:c,callback:d})}unregisterPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback");let e={id:b,callback:d,propertyId:c};this._isRegistrationPending(e)?this._removePendingRegistration(e):(this._dynamicDataManager.unregisterPropertyChanged(b,c,this._component,d),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:b,propertyId:c}))}registerAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,b)}unregisterAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,b)}getAvailableSources(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()}getAvailableSourcesByComponentId(b){this._assertNotDisposed(),this._assertInitialized();let c=[];return this._dynamicDataManager.getSources().forEach(d=>{b.equals(a.Guid.tryParse(d.metadata.componentId)||a.Guid.empty)&&c.push(d)}),c}tryGetSource(b){return this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"id"),this._dynamicDataManager.tryGetSource(b)}_getData(b){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"dataReference");let c=this._dynamicDataManager.tryGetSource(b.sourceId);if(!c)return;let d=c.getPropertyValue(b.property);return d&&b.propertyPath&&b.propertyPath.split(".").forEach(a=>{let b=a.split(h._jsonPathArrayRegex),c=b[0];if(d)if(Array.isArray(d)){let a=[];d.forEach(b=>{b.hasOwnProperty(c)&&a.push(b[c])});let e=b[1];if(b.length>1){let b=[];a.forEach(a=>{a.forEach(a=>b.push(a))}),a=b}d=isNaN(parseInt(e,10))?a:a[e]}else d=d.hasOwnProperty(c)?d[c]:void 0}),d}_onSourcesChanged(){let a=this.getAvailableSources().map(a=>a.id);this._pendingRegistrations.forEach(b=>{-1!==a.indexOf(b.id)&&(b.propertyId?(this._dynamicDataManager.registerPropertyChanged(b.id,b.propertyId,this._component,b.callback),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b.id,propertyId:b.propertyId})):(this._dynamicDataManager.registerSourceChanged(b.id,this._component,b.callback),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b.id})),this._removePendingRegistration(b))})}_assertNotDisposed(){if(this.isDisposed)throw Error("Dynamic Data Provider has been disposed")}_assertInitialized(){if(!this._isInitialized)throw Error("Dynamic Data Provider has not been initialized.")}_addPendingRegistration(a){this._isRegistrationPending(a)||this._pendingRegistrations.set(a.id+(a.propertyId||""),{id:a.id,propertyId:a.propertyId,callback:a.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)}_removePendingRegistration(a){this._pendingRegistrations.delete(a.id+(a.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)}_isRegistrationPending(a){return this._pendingRegistrations.has(a.id+(a.propertyId||""))}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataProvider",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}}h._jsonPathArrayRegex=new RegExp(/\[|\]/);let i=JSON.parse('{"lw":"SourceAlreadyInitialized","Yt":"NoSendEventWhenAllowedEventsIsNonEmpty","C3":"DynamicDataSourceManagerIsDisposed","ad":"DynamicDataSourceManagerIsNotInitialized","fT":"DynamicDataSourceIsNotInitialized","Qm":"InvalidEvent"}');class j{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0}dispose(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _source(){return this._src}initializeSource(b){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw Error(i.lw);this._callableFunctions=b,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),a._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})}notifySourceChanged(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)}notifyPropertyChanged(b){a.Validate.isNonemptyString(b,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,b)}updateMetadata(b){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),a.Validate.isNotNullOrUndefined(b,"metadata"),b.alias=void 0,b.componentId=void 0,b.instanceId=void 0,(0,g.merge)(this._src.metadata,b)}get sourceId(){return this._src?this._src.id:""}_buildSource(a){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw Error(i.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(a),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}}_allowedEvents(){return this._callableFunctions.allowedEvents?(0,g.cloneDeep)(this._callableFunctions.allowedEvents()):void 0}_sendEvent(a,b){this._assertValidEvent(a),this._callableFunctions.sendEvent(a,b)}_getPropertyDefinitions(){return(0,g.cloneDeep)(this._callableFunctions.getPropertyDefinitions())}_getPropertyValue(b){a.Validate.isNotNullOrUndefined(b,"propertyId");let d=new c._QosMonitor("DynamicDataSourceManager._getPropertyValue"),e=b.split(h._jsonPathArrayRegex);try{let a=this._callableFunctions.getPropertyValue(e.shift());if(e.length>0&&!isNaN(parseInt(e[0],10))&&Array.isArray(a)&&(a=a[e[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(a=>a.id===b).length&&this._src)throw Error(`Property "${b}" doesn't exist in source "${this._src.metadata.title}"`);return d.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,propertyId:b}),(0,g.cloneDeep)(a)}catch(a){d.writeUnexpectedFailure("NoPropertyId",a,{propertyId:b}),c._TraceLogger.logErrorData({source:this._logSource,error:a});return}}_getPropertyDefinitionsAsync(){return Promise.resolve(this._getPropertyDefinitions())}_getPropertyValueAsync(a){return Promise.resolve(this._getPropertyValue(a))}_allowedEventsAsync(){return Promise.resolve(this._allowedEvents())}_getAnnotatedPropertyValue(b){let d;a.Validate.isNotNullOrUndefined(b,"propertyId");let e=new c._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue"),{getAnnotatedPropertyValue:f}=this._callableFunctions;if(f){let a=b.split(h._jsonPathArrayRegex);try{d=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(d)&&(d=d[a[0]]),e.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,annotatedPropertyValue:d,propertyId:b})}catch(a){e.writeExpectedFailure("NoAnnotatedPropertyValue",a,{annotatedPropertyValue:d}),c._TraceLogger.logErrorData({source:this._logSource,error:a}),d=void 0}}return d||(d={sampleValue:this._getPropertyValue(b),metadata:void 0}),d}_getAnnotatedPropertyValueAsync(a){return Promise.resolve(this._getAnnotatedPropertyValue(a))}_buildMetadata(a){let b={title:a.manifest.alias,alias:a.manifest.alias,componentId:a.componentId,instanceId:a.instanceId};return a.title&&(b.title=a.title),a.description&&(b.description=a.description),b}_assertValidEvent(b){if(!this._allowedEvents()||-1===(0,g.findIndex)(this._allowedEvents(),{name:b}))throw Error(a.Text.format(i.Qm,b,this._src.metadata.title))}_assertNotDisposed(){if(this.isDisposed)throw Error(i.C3)}_assertInitialized(){if(!this._isInitialized)throw Error(i.ad)}_assertSourceExists(){if(!this._src)throw Error(i.fT)}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataSourceManager",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=c._LogSource.create("DynamicDataSourceManager")}}class k{get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)}get serviceScope(){return this._serviceScope}get instanceId(){return this._instanceId}get pageContext(){return this._pageContext}_initializeDynamicData(a,b){this._dynamicDataProvider._initialize(a,b),this._dynamicDataSourceManager._initialize(a,b)}get dynamicDataProvider(){return this._dynamicDataProvider}get dynamicDataSourceManager(){return this._dynamicDataSourceManager}get aadHttpClientFactory(){return this._aadClientFactory}get aadTokenProviderFactory(){return this._aadTokenFactory}get msGraphClientFactory(){return this._msGraphClientFactory}get httpClient(){return this._httpClient}get spHttpClient(){return this._spHttpClient}get isServedFromLocalhost(){return this._isServedFromLocalhost}constructor(b){this._isDisposed=!1,this._isServedFromLocalhost=!1,a.Validate.isNotNullOrUndefined(b,"parameters"),a.Validate.isNotNullOrUndefined(b.manifest,"manifest"),this.manifest=b.manifest;const{loaderConfig:f}=this.manifest;f&&f.internalModuleBaseUrls&&f.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(f.internalModuleBaseUrls[0])),a.Validate.isNotNullOrUndefined(b.parentServiceScope,"parentServiceScope"),this._serviceScope=b.parentServiceScope.startNewChild(),a.Validate.isNotNullOrUndefined(b.loggingTag,"loggingTag"),this.serviceScope.provide(c._logSourceServiceKey,c._LogSource.create(b.loggingTag)),a.Validate.isNonemptyString(b.instanceId,"instanceId"),this._instanceId=b.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(e.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(e.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(e.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(e.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(e.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(a._ClientManifestData.serviceKey,new a._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(()=>{this._pageContext=this.serviceScope.consume(d.PageContext.serviceKey)}),this._dynamicDataProvider=new h,this._dynamicDataSourceManager=new j}}(0,a._ES5CompatibleClass)(k);let l=k;class m extends l{constructor(b){const{domElement:c,...d}=b;super(d),a.Validate.isNotNullOrUndefined(c,"domElement"),this.domElement=c}}(0,a._ES5CompatibleClass)(m);let n=m;class o{setReference(b){a.Validate.isNonemptyString(b,"id"),this._value=void 0,this._hasValue=!1;let c=new Set;this._callbacks.forEach(a=>c.add(a)),this._callbacks.forEach(a=>this.unregister(a)),this._reference=new f.DynamicDataReference(b),this._sourceId=this._getSourceId(),c.forEach(a=>this.register(a)),this._onSourcesChangedCallback()}setValue(a){let b=this._callbacks;b.forEach(a=>this.unregister(a)),this._value=a,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,b.forEach(a=>this.register(a))}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(a=>this.unregister(a)),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)}toJSON(){return this._hasValue?{__type:o._TYPE_NAME,value:this._value}:{__type:o._TYPE_NAME,reference:this._reference}}get reference(){return this._hasValue?void 0:this._reference.reference}get value(){return this._value}tryGetValue(){if(this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return;a.Validate.isNotDisposed(this,"DynamicData");let b=this._getData();return Array.isArray(b)&&(b=b[0]),b}tryGetValues(){let a=this._getData();return a?Array.isArray(a)||(a=[a]):a=[],a}tryGetSource(){return this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")?void 0:(a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId))}register(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._callbacks.add(b)):this._pendingCallbacks.add(b)}unregister(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._pendingCallbacks.delete(b),this._callbacks.delete(b)}hasDefaultCallback(){return!!this._defaultCallback}removeDefaultCallback(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)}_getSourceId(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId}_getProperty(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property}_getPropertyPath(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""}_cloneDeep(a){return g.cloneDeepWith(a,a=>{if(a instanceof h)return a})}_getPropertyToRegister(){return a.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(o._arrayRegex)[0]}_onSourcesChangedCallback(){if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){let a=this._pendingCallbacks;this._pendingCallbacks=new Set,a.forEach(a=>{this.register(a),a()})}}_getData(){let b;if(!this.isDisposed||a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){a.Validate.isNotDisposed(this,"DynamicData");try{b=this._hasValue?this._value:this._provider._getData(this._reference)}catch(a){throw c._EngagementLogger.logEventWithLogEntry(a),a}return c._EngagementLogger.logEventWithLogEntry(new c._LogEntry("DynamicData","getData",c._LogType.Event,{value:JSON.stringify(this.value)})),b}}constructor(b,c){this._hasValue=!1,this._isDisposed=!1,a.Validate.isNotNullOrUndefined(b,"provider"),this.__type=o._TYPE_NAME,this._provider=b,this._callbacks=new Set,this._pendingCallbacks=new Set,c?(this._pendingCallbacks.add(c),this._defaultCallback=c):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}}o._TYPE_NAME="DynamicProperty",o._arrayRegex=new RegExp(/\[\*\]$/);class p{static load(a){return a||p._isLoaded?Promise.resolve():r.e(386).then(r.bind(r,103)).then(()=>{p._isLoaded=!0})}static forceLoad(a){try{if(p._shouldLoad(a))return r.e(386).then(r.bind(r,103)).then(()=>{p._isLoaded=!0});return Promise.resolve()}catch(a){return Promise.reject(a)}}static needLegacyFabricCss(b){if(b.isInternal)return!1;if(void 0===b.loadLegacyFabricCss){let c=a.Version._tryParseSPFxVersion(b);return!c||c.lessThan(a.Version.parse("1.8.2"))}return b.loadLegacyFabricCss}static _shouldLoad(a){return!p._isLoaded&&p.needLegacyFabricCss(a)}}p._isLoaded=!1;var q=r(86),s=r(356);class u{static serializeServerProcessedData(b,c,d){this._forEachPropertyWithMetaData(b,c,(b,e,f)=>{e.shouldNotPersist&&g.set(c,b,void 0);let h=g.get(c,b);if(d&&"string"==typeof h&&h){if(d.htmlStrings&&e.isHtmlString?d.htmlStrings[b]=h:d.searchablePlainTexts&&e.isSearchablePlainText?d.searchablePlainTexts[b]=h:d.links&&e.isLink?d.links[b]=h:d.imageSources&&e.isImageSource?d.imageSources[b]=h:e.isComponentDependency&&(d.componentDependencies||(d.componentDependencies={}),d.componentDependencies[b]=h),e.customMetadata){let h={};if(e&&e.customMetadata)for(let[b,i]of Object.entries(e.customMetadata)){let j=i;void 0!==f&&-1!==j.indexOf("*")&&(j=j.replace("*",f.toString())),this._validateAndIteratePath(j,c,(f,i)=>{if(void 0===i&&e.customMetadata){let e=g.get(c,f);d&&void 0!==e&&(a._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?h[f]=e:h[b]=e)}})}d.customMetadata||(d.customMetadata={}),d.customMetadata[b]=h}g.set(c,b,void 0)}})}static reInstateServerProcessedData(b,d,e,f){let h=new Set;if(f&&this._forEachPropertyWithMetaData(b,d,(b,e)=>{if((0,q.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===f.id&&a._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;let i=g.get(d,b);if(void 0!==i){let a=new c._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(e.isLink&&(h.add(b),this._isSafeLink(i)||(a.writeUnexpectedFailure("ClearingLinkProperty",Error(b)),g.set(d,b,void 0))),e.isHtmlString){h.add(b);let c=this._getSafeHtml(i);c!==i&&(a.writeUnexpectedFailure("SettingSafeHtml",Error(b)),g.set(d,b,c))}a.hasEnded||a.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==f.id&&e.isHtmlString&&g.set(d,b,void 0)}),e){for(let a of[e.htmlStrings,e.searchablePlainTexts,e.imageSources,e.links,e.componentDependencies])if(a)for(let[b,c]of Object.entries(a))"string"==typeof c&&(g.set(d,b,c),(0,q.X)()&&h.delete(b))}(0,q.X)()&&f&&h.size>0&&new c._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:f.id,properties:Array.from(h).join(",")})}static _isSafeLink(a){try{let b=new URL(a);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{try{let b=new URL(a,window.location.origin);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{return!1}}}static _getSafeHtml(a){return s.SafeHtml.clean(a)}static _forEachPropertyWithMetaData(a,b,c){if(a)for(let[d,e]of Object.entries(a))this._validateAndIteratePath(d,b,(a,b)=>{c(a,e,b)})}static _validateAndIteratePath(a,b,c){let d=(a.match(/\*/g)||[]).length;if(d>1)return void console.warn(`Invalid property path: Multiple wildcards are not supported in property paths.
2
+ ,424(a){a.exports=i},676(a){a.exports=b},207(a){a.exports=c},745(a){a.exports=f},909(a){a.exports=e},529(a){a.exports=g},408(a){a.exports=d},356(a){a.exports=h},519(a){a.exports=j}},q={};function r(a){var b=q[a];if(void 0!==b)return b.exports;var c=q[a]={exports:{}};return p[a](c,c.exports,r),c.exports}r.m=p;var s={"216":"YqFzgyVjLuhO8w7HzC63s/jt1GKpbjr6+eq0yE4oiL0=","386":"rksY1A7OQvPjyEo6xsP0NDYfPdrYxffnANlpmHqRwVc="};r.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return r.d(b,{a:b}),b},r.d=(a,b)=>{for(var c in b)r.o(b,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((b,c)=>(r.f[c](a,b),b),[])),r.u=a=>"chunk."+({216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"})[a]+"_none_"+({216:"f9e7cc08e9d9393a3c31",386:"7af1ee40a1508a652eb3"})[a]+".js",r.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},r.l=(a,b,c,d)=>{if(k[a])return void k[a].push(b);if(void 0!==c)for(var e,f,g=document.getElementsByTagName("script"),h=0;h<g.length;h++){var i=g[h];if(i.getAttribute("src")==a||i.getAttribute("data-webpack")=="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c){e=i;break}}if(!e){f=!0,(e=document.createElement("script")).charset="utf-8",r.nc&&e.setAttribute("nonce",r.nc),e.setAttribute("data-webpack","467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c),e.src=a,0!==e.src.indexOf(window.location.origin+"/")&&(e.crossOrigin="anonymous");var j="sha256-"+(s[d]||"Missing+Integrity+Hash+For+Script+Aborting=");j&&(e.integrity=j)}k[a]=[b];var l=(b,c)=>{e.onerror=e.onload=null,clearTimeout(m);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=l.bind(null,e.onerror),e.onload=l.bind(null,e.onload),f&&document.head.appendChild(e)},r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.p=(l=a?a.src:"").slice(0,l.lastIndexOf("/")+1),m={826:0},r.f.j=(a,b)=>{var c=r.o(m,a)?m[a]:void 0;if(0!==c)if(c)b.push(c[2]);else{var d=new Promise((b,d)=>c=m[a]=[b,d]);b.push(c[2]=d);var e=r.p+r.u(a),f=Error();r.l(e,b=>{if(r.o(m,a)&&(0!==(c=m[a])&&(m[a]=void 0),c)){var d=b&&("load"===b.type?"missing":b.type),e=b&&b.target&&b.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+e+")",f.name="ChunkLoadError",f.type=d,f.request=e,c[1](f)}},"chunk-"+a,a)}},n=(a,b)=>{var c,d,[e,f,g]=b,h=0;if(e.some(a=>0!==m[a])){for(c in f)r.o(f,c)&&(r.m[c]=f[c]);g&&g(r)}for(a&&a(b);h<e.length;h++)d=e[h],r.o(m,d)&&m[d]&&m[d][0](),m[d]=0},(o=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var t={};return(()=>{r.r(t),r.d(t,{BaseComponent:()=>b,BaseComponentContext:()=>l,DynamicDataProvider:()=>h,DynamicDataSourceManager:()=>j,DynamicProperty:()=>o,RenderableComponentContext:()=>n,ThemeChangedEventArgs:()=>w,ThemeProvider:()=>x,_CacheMissReason:()=>C,_DeferredTeamsAppsClient:()=>E,_LegacyThirdPartyFabricCoreLoader:()=>p,_PropertyMetadataProcessor:()=>u,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>y,_WebPartLoadDataCollector:()=>D,_ensureIsolatedDomainUrl:()=>A});var a=r(676);class b{get _dynamicDataSourceId(){return`${this.manifest.componentType}.${this.manifest.id}.${this.instanceId}`}dispose(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)}get _containsDynamicDataSource(){return this._isWebPartAndContainsDynamicDataSource}set _containsDynamicDataSource(a){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&a}get isDisposed(){return this._isDisposed}get manifest(){return this.context.manifest}onDispose(){}get instanceId(){return this.context.instanceId}get componentId(){return this.context.manifest.id}_initializeContext(a){this.context=a,this.onProvideServices(a.serviceScope),a.serviceScope._isFinished||a.serviceScope.finish(),this.context._initializeDynamicData(this,a.serviceScope)}onProvideServices(a){}constructor(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}}(0,a._ES5CompatibleClass)(b);var c=r(207),d=r(408),e=r(909),f=r(745),g=r(529);class h{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._pendingRegistrations=new Map,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)}dispose(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _isProviderInitialized(){return this._isInitialized}get _dynamicDataSourceId(){return this._component._dynamicDataSourceId}registerSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerSourceChanged(b,this._component,c),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b})):this._addPendingRegistration({id:b,callback:c})}unregisterSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback");let d={id:b,callback:c};this._isRegistrationPending(d)?this._removePendingRegistration(d):(this._dynamicDataManager.unregisterSourceChanged(b,this._component,c),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:b}))}registerPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerPropertyChanged(b,c,this._component,d),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b,propertyId:c})):this._addPendingRegistration({id:b,propertyId:c,callback:d})}unregisterPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback");let e={id:b,callback:d,propertyId:c};this._isRegistrationPending(e)?this._removePendingRegistration(e):(this._dynamicDataManager.unregisterPropertyChanged(b,c,this._component,d),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:b,propertyId:c}))}registerAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,b)}unregisterAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,b)}getAvailableSources(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()}getAvailableSourcesByComponentId(b){this._assertNotDisposed(),this._assertInitialized();let c=[];return this._dynamicDataManager.getSources().forEach(d=>{b.equals(a.Guid.tryParse(d.metadata.componentId)||a.Guid.empty)&&c.push(d)}),c}tryGetSource(b){return this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"id"),this._dynamicDataManager.tryGetSource(b)}_getData(b){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"dataReference");let c=this._dynamicDataManager.tryGetSource(b.sourceId);if(!c)return;let d=c.getPropertyValue(b.property);return d&&b.propertyPath&&b.propertyPath.split(".").forEach(a=>{let b=a.split(h._jsonPathArrayRegex),c=b[0];if(d)if(Array.isArray(d)){let a=[];d.forEach(b=>{b.hasOwnProperty(c)&&a.push(b[c])});let e=b[1];if(b.length>1){let b=[];a.forEach(a=>{a.forEach(a=>b.push(a))}),a=b}d=isNaN(parseInt(e,10))?a:a[e]}else d=d.hasOwnProperty(c)?d[c]:void 0}),d}_onSourcesChanged(){let a=this.getAvailableSources().map(a=>a.id);this._pendingRegistrations.forEach(b=>{-1!==a.indexOf(b.id)&&(b.propertyId?(this._dynamicDataManager.registerPropertyChanged(b.id,b.propertyId,this._component,b.callback),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b.id,propertyId:b.propertyId})):(this._dynamicDataManager.registerSourceChanged(b.id,this._component,b.callback),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b.id})),this._removePendingRegistration(b))})}_assertNotDisposed(){if(this.isDisposed)throw Error("Dynamic Data Provider has been disposed")}_assertInitialized(){if(!this._isInitialized)throw Error("Dynamic Data Provider has not been initialized.")}_addPendingRegistration(a){this._isRegistrationPending(a)||this._pendingRegistrations.set(a.id+(a.propertyId||""),{id:a.id,propertyId:a.propertyId,callback:a.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)}_removePendingRegistration(a){this._pendingRegistrations.delete(a.id+(a.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)}_isRegistrationPending(a){return this._pendingRegistrations.has(a.id+(a.propertyId||""))}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataProvider",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}}h._jsonPathArrayRegex=new RegExp(/\[|\]/);let i=JSON.parse('{"lw":"SourceAlreadyInitialized","Yt":"NoSendEventWhenAllowedEventsIsNonEmpty","C3":"DynamicDataSourceManagerIsDisposed","ad":"DynamicDataSourceManagerIsNotInitialized","fT":"DynamicDataSourceIsNotInitialized","Qm":"InvalidEvent"}');class j{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0}dispose(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _source(){return this._src}initializeSource(b){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw Error(i.lw);this._callableFunctions=b,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),a._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})}notifySourceChanged(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)}notifyPropertyChanged(b){a.Validate.isNonemptyString(b,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,b)}updateMetadata(b){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),a.Validate.isNotNullOrUndefined(b,"metadata"),b.alias=void 0,b.componentId=void 0,b.instanceId=void 0,(0,g.merge)(this._src.metadata,b)}get sourceId(){return this._src?this._src.id:""}_buildSource(a){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw Error(i.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(a),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}}_allowedEvents(){return this._callableFunctions.allowedEvents?(0,g.cloneDeep)(this._callableFunctions.allowedEvents()):void 0}_sendEvent(a,b){this._assertValidEvent(a),this._callableFunctions.sendEvent(a,b)}_getPropertyDefinitions(){return(0,g.cloneDeep)(this._callableFunctions.getPropertyDefinitions())}_getPropertyValue(b){a.Validate.isNotNullOrUndefined(b,"propertyId");let d=new c._QosMonitor("DynamicDataSourceManager._getPropertyValue"),e=b.split(h._jsonPathArrayRegex);try{let a=this._callableFunctions.getPropertyValue(e.shift());if(e.length>0&&!isNaN(parseInt(e[0],10))&&Array.isArray(a)&&(a=a[e[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(a=>a.id===b).length&&this._src)throw Error(`Property "${b}" doesn't exist in source "${this._src.metadata.title}"`);return d.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,propertyId:b}),(0,g.cloneDeep)(a)}catch(a){d.writeUnexpectedFailure("NoPropertyId",a,{propertyId:b}),c._TraceLogger.logErrorData({source:this._logSource,error:a});return}}_getPropertyDefinitionsAsync(){return Promise.resolve(this._getPropertyDefinitions())}_getPropertyValueAsync(a){return Promise.resolve(this._getPropertyValue(a))}_allowedEventsAsync(){return Promise.resolve(this._allowedEvents())}_getAnnotatedPropertyValue(b){let d;a.Validate.isNotNullOrUndefined(b,"propertyId");let e=new c._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue"),{getAnnotatedPropertyValue:f}=this._callableFunctions;if(f){let a=b.split(h._jsonPathArrayRegex);try{d=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(d)&&(d=d[a[0]]),e.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,annotatedPropertyValue:d,propertyId:b})}catch(a){e.writeExpectedFailure("NoAnnotatedPropertyValue",a,{annotatedPropertyValue:d}),c._TraceLogger.logErrorData({source:this._logSource,error:a}),d=void 0}}return d||(d={sampleValue:this._getPropertyValue(b),metadata:void 0}),d}_getAnnotatedPropertyValueAsync(a){return Promise.resolve(this._getAnnotatedPropertyValue(a))}_buildMetadata(a){let b={title:a.manifest.alias,alias:a.manifest.alias,componentId:a.componentId,instanceId:a.instanceId};return a.title&&(b.title=a.title),a.description&&(b.description=a.description),b}_assertValidEvent(b){if(!this._allowedEvents()||-1===(0,g.findIndex)(this._allowedEvents(),{name:b}))throw Error(a.Text.format(i.Qm,b,this._src.metadata.title))}_assertNotDisposed(){if(this.isDisposed)throw Error(i.C3)}_assertInitialized(){if(!this._isInitialized)throw Error(i.ad)}_assertSourceExists(){if(!this._src)throw Error(i.fT)}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataSourceManager",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=c._LogSource.create("DynamicDataSourceManager")}}class k{get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)}get serviceScope(){return this._serviceScope}get instanceId(){return this._instanceId}get pageContext(){return this._pageContext}_initializeDynamicData(a,b){this._dynamicDataProvider._initialize(a,b),this._dynamicDataSourceManager._initialize(a,b)}get dynamicDataProvider(){return this._dynamicDataProvider}get dynamicDataSourceManager(){return this._dynamicDataSourceManager}get aadHttpClientFactory(){return this._aadClientFactory}get aadTokenProviderFactory(){return this._aadTokenFactory}get msGraphClientFactory(){return this._msGraphClientFactory}get httpClient(){return this._httpClient}get spHttpClient(){return this._spHttpClient}get isServedFromLocalhost(){return this._isServedFromLocalhost}constructor(b){this._isDisposed=!1,this._isServedFromLocalhost=!1,a.Validate.isNotNullOrUndefined(b,"parameters"),a.Validate.isNotNullOrUndefined(b.manifest,"manifest"),this.manifest=b.manifest;const{loaderConfig:f}=this.manifest;f&&f.internalModuleBaseUrls&&f.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(f.internalModuleBaseUrls[0])),a.Validate.isNotNullOrUndefined(b.parentServiceScope,"parentServiceScope"),this._serviceScope=b.parentServiceScope.startNewChild(),a.Validate.isNotNullOrUndefined(b.loggingTag,"loggingTag"),this.serviceScope.provide(c._logSourceServiceKey,c._LogSource.create(b.loggingTag)),a.Validate.isNonemptyString(b.instanceId,"instanceId"),this._instanceId=b.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(e.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(e.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(e.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(e.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(e.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(a._ClientManifestData.serviceKey,new a._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(()=>{this._pageContext=this.serviceScope.consume(d.PageContext.serviceKey)}),this._dynamicDataProvider=new h,this._dynamicDataSourceManager=new j}}(0,a._ES5CompatibleClass)(k);let l=k;class m extends l{constructor(b){const{domElement:c,...d}=b;super(d),a.Validate.isNotNullOrUndefined(c,"domElement"),this.domElement=c}}(0,a._ES5CompatibleClass)(m);let n=m;class o{setReference(b){a.Validate.isNonemptyString(b,"id"),this._value=void 0,this._hasValue=!1;let c=new Set;this._callbacks.forEach(a=>c.add(a)),this._callbacks.forEach(a=>this.unregister(a)),this._reference=new f.DynamicDataReference(b),this._sourceId=this._getSourceId(),c.forEach(a=>this.register(a)),this._onSourcesChangedCallback()}setValue(a){let b=this._callbacks;b.forEach(a=>this.unregister(a)),this._value=a,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,b.forEach(a=>this.register(a))}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(a=>this.unregister(a)),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)}toJSON(){return this._hasValue?{__type:o._TYPE_NAME,value:this._value}:{__type:o._TYPE_NAME,reference:this._reference}}get reference(){return this._hasValue?void 0:this._reference.reference}get value(){return this._value}tryGetValue(){if(this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return;a.Validate.isNotDisposed(this,"DynamicData");let b=this._getData();return Array.isArray(b)&&(b=b[0]),b}tryGetValues(){let a=this._getData();return a?Array.isArray(a)||(a=[a]):a=[],a}tryGetSource(){return this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")?void 0:(a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId))}register(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._callbacks.add(b)):this._pendingCallbacks.add(b)}unregister(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._pendingCallbacks.delete(b),this._callbacks.delete(b)}hasDefaultCallback(){return!!this._defaultCallback}removeDefaultCallback(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)}_getSourceId(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId}_getProperty(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property}_getPropertyPath(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""}_cloneDeep(a){return g.cloneDeepWith(a,a=>{if(a instanceof h)return a})}_getPropertyToRegister(){return a.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(o._arrayRegex)[0]}_onSourcesChangedCallback(){if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){let a=this._pendingCallbacks;this._pendingCallbacks=new Set,a.forEach(a=>{this.register(a),a()})}}_getData(){let b;if(!this.isDisposed||a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){a.Validate.isNotDisposed(this,"DynamicData");try{b=this._hasValue?this._value:this._provider._getData(this._reference)}catch(a){throw c._EngagementLogger.logEventWithLogEntry(a),a}return c._EngagementLogger.logEventWithLogEntry(new c._LogEntry("DynamicData","getData",c._LogType.Event,{value:JSON.stringify(this.value)})),b}}constructor(b,c){this._hasValue=!1,this._isDisposed=!1,a.Validate.isNotNullOrUndefined(b,"provider"),this.__type=o._TYPE_NAME,this._provider=b,this._callbacks=new Set,this._pendingCallbacks=new Set,c?(this._pendingCallbacks.add(c),this._defaultCallback=c):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}}o._TYPE_NAME="DynamicProperty",o._arrayRegex=new RegExp(/\[\*\]$/);class p{static load(a){return a||p._isLoaded?Promise.resolve():r.e(386).then(r.bind(r,294)).then(()=>{p._isLoaded=!0})}static forceLoad(a){try{if(p._shouldLoad(a))return r.e(386).then(r.bind(r,294)).then(()=>{p._isLoaded=!0});return Promise.resolve()}catch(a){return Promise.reject(a)}}static needLegacyFabricCss(b){if(b.isInternal)return!1;if(void 0===b.loadLegacyFabricCss){let c=a.Version._tryParseSPFxVersion(b);return!c||c.lessThan(a.Version.parse("1.8.2"))}return b.loadLegacyFabricCss}static _shouldLoad(a){return!p._isLoaded&&p.needLegacyFabricCss(a)}}p._isLoaded=!1;var q=r(86),s=r(356);class u{static serializeServerProcessedData(b,c,d){this._forEachPropertyWithMetaData(b,c,(b,e,f)=>{e.shouldNotPersist&&g.set(c,b,void 0);let h=g.get(c,b);if(d&&"string"==typeof h&&h){if(d.htmlStrings&&e.isHtmlString?d.htmlStrings[b]=h:d.searchablePlainTexts&&e.isSearchablePlainText?d.searchablePlainTexts[b]=h:d.links&&e.isLink?d.links[b]=h:d.imageSources&&e.isImageSource?d.imageSources[b]=h:e.isComponentDependency&&(d.componentDependencies||(d.componentDependencies={}),d.componentDependencies[b]=h),e.customMetadata){let h={};if(e&&e.customMetadata)for(let[b,i]of Object.entries(e.customMetadata)){let j=i;void 0!==f&&-1!==j.indexOf("*")&&(j=j.replace("*",f.toString())),this._validateAndIteratePath(j,c,(f,i)=>{if(void 0===i&&e.customMetadata){let e=g.get(c,f);d&&void 0!==e&&(a._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?h[f]=e:h[b]=e)}})}d.customMetadata||(d.customMetadata={}),d.customMetadata[b]=h}g.set(c,b,void 0)}})}static reInstateServerProcessedData(b,d,e,f){let h=new Set;if(f&&this._forEachPropertyWithMetaData(b,d,(b,e)=>{if((0,q.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===f.id&&a._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;let i=g.get(d,b);if(void 0!==i){let a=new c._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(e.isLink&&(h.add(b),this._isSafeLink(i)||(a.writeUnexpectedFailure("ClearingLinkProperty",Error(b)),g.set(d,b,void 0))),e.isHtmlString){h.add(b);let c=this._getSafeHtml(i);c!==i&&(a.writeUnexpectedFailure("SettingSafeHtml",Error(b)),g.set(d,b,c))}a.hasEnded||a.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==f.id&&e.isHtmlString&&g.set(d,b,void 0)}),e){for(let a of[e.htmlStrings,e.searchablePlainTexts,e.imageSources,e.links,e.componentDependencies])if(a)for(let[b,c]of Object.entries(a))"string"==typeof c&&(g.set(d,b,c),(0,q.X)()&&h.delete(b))}(0,q.X)()&&f&&h.size>0&&new c._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:f.id,properties:Array.from(h).join(",")})}static _isSafeLink(a){try{let b=new URL(a);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{try{let b=new URL(a,window.location.origin);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{return!1}}}static _getSafeHtml(a){return s.SafeHtml.clean(a)}static _forEachPropertyWithMetaData(a,b,c){if(a)for(let[d,e]of Object.entries(a))this._validateAndIteratePath(d,b,(a,b)=>{c(a,e,b)})}static _validateAndIteratePath(a,b,c){let d=(a.match(/\*/g)||[]).length;if(d>1)return void console.warn(`Invalid property path: Multiple wildcards are not supported in property paths.
3
3
  Entry with path '${a}' got ignored in the properties metadata.`);if(1===d){let d=a.indexOf("[*]");if(d<-1)return void console.warn(`Invalid property path: Wildcards are only supported inside brackets to select array
4
4
  indices as in 'foo[*].bar'. Entry with path '${a}' got ignored in the properties metadata.`);{let e=a.substr(0,d),f=g.get(b,e);if(!f)return void console.warn(`Invalid property path: Could not find an array named '${e}' in the properties.
5
5
  Entry with path '${a}' got ignored in the properties metadata.`);for(let b=0;b<f.length;b++)c(a.replace("*",`${b}`),b)}}else c(a)}}let v={htmlString:1,link:2,imageSource:3,searchablePlainText:4};class w extends a.SPEventArgs{}class x{get _themeChangedEventName(){return x._themeChangedEventNameLiteral+this._id}_clearTheme(){this._theme=void 0,this._themeV2=void 0,this._raiseEvent()}_setTheme(b,c){a.Validate.isNotNullOrUndefined(b,"theme"),this._theme=Object.freeze(b),c&&(this._themeV2=Object.freeze(c)),this._raiseEvent()}tryGetTheme(){return this._theme}tryGetThemeV2(){return this._themeV2}_raiseEvent(){a._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme,themeV2:this._themeV2})}constructor(b,c,d){this._id=x._instanceCount++,this.themeChangedEvent=new a.SPEvent(this._themeChangedEventName),c&&(this._theme=Object.freeze(c)),d&&(this._themeV2=Object.freeze(d))}}x.serviceKey=a.ServiceKey.create("sp-component-base.ThemeProvider",x),x._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",x._instanceCount=0,r(424).loadStyles(".s_NEWFn_o5ljQ{background-color:transparent;height:100%;margin:5px;position:relative;width:100%}.s__9-NN_o5ljQ{fill:#f4f4f4}",!0);class y{static createShimmer(a,b,c,d,e){a=a||100,b=b||100;let f=document.createElement("div");f.className="s_NEWFn_o5ljQ";let g=document.createElement("div"),h=.9*b/9,i=2*(h=Math.min(16,h)),j=h,k=j+i,l=k+i,m="s__9-NN_o5ljQ";g.innerHTML=`<svg width=${a} height=${b} viewBox="0 0 ${a} ${b}" version="1.1"
@@ -1,5 +1,5 @@
1
1
  (()=>{var a=document.currentScript;define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0",["@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-page-context","@microsoft/sp-http","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","@msinternal/sp-safehtml","@microsoft/load-themed-styles","@msinternal/sp-telemetry"],(b,c,d,e,f,g,h,i,j)=>(()=>{"use strict";var k,l,m,n,o,p={86(a,b,c){c.d(b,{T:()=>e,X:()=>f});var d=c(676);function e(){return d._SPFlight.isEnabled(60693)}function f(){return d._SPFlight.isEnabled(61389)}}
2
- ,424(a){a.exports=i},676(a){a.exports=b},207(a){a.exports=c},745(a){a.exports=f},909(a){a.exports=e},529(a){a.exports=g},408(a){a.exports=d},356(a){a.exports=h},519(a){a.exports=j}},q={};function r(a){var b=q[a];if(void 0!==b)return b.exports;var c=q[a]={exports:{}};return p[a](c,c.exports,r),c.exports}r.m=p;var s={"216":"YqFzgyVjLuhO8w7HzC63s/jt1GKpbjr6+eq0yE4oiL0=","386":"cFeqXYPW6nXocZvdbBN/107i+x19wnk23Qu8OtfpuIE="};r.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return r.d(b,{a:b}),b},r.d=(a,b)=>{for(var c in b)r.o(b,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((b,c)=>(r.f[c](a,b),b),[])),r.u=a=>"chunk."+({216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"})[a]+"_none_"+({216:"27d3c7c1d01080e4f131",386:"b7f7978a3e90166c361b"})[a]+".js",r.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},r.l=(a,b,c,d)=>{if(k[a])return void k[a].push(b);if(void 0!==c)for(var e,f,g=document.getElementsByTagName("script"),h=0;h<g.length;h++){var i=g[h];if(i.getAttribute("src")==a||i.getAttribute("data-webpack")=="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c){e=i;break}}if(!e){f=!0,(e=document.createElement("script")).charset="utf-8",r.nc&&e.setAttribute("nonce",r.nc),e.setAttribute("data-webpack","467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c),e.src=a,0!==e.src.indexOf(window.location.origin+"/")&&(e.crossOrigin="anonymous");var j="sha256-"+(s[d]||"Missing+Integrity+Hash+For+Script+Aborting=");j&&(e.integrity=j)}k[a]=[b];var l=(b,c)=>{e.onerror=e.onload=null,clearTimeout(m);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=l.bind(null,e.onerror),e.onload=l.bind(null,e.onload),f&&document.head.appendChild(e)},r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.p=(l=a?a.src:"").slice(0,l.lastIndexOf("/")+1),m={826:0},r.f.j=(a,b)=>{var c=r.o(m,a)?m[a]:void 0;if(0!==c)if(c)b.push(c[2]);else{var d=new Promise((b,d)=>c=m[a]=[b,d]);b.push(c[2]=d);var e=r.p+r.u(a),f=Error();r.l(e,b=>{if(r.o(m,a)&&(0!==(c=m[a])&&(m[a]=void 0),c)){var d=b&&("load"===b.type?"missing":b.type),e=b&&b.target&&b.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+e+")",f.name="ChunkLoadError",f.type=d,f.request=e,c[1](f)}},"chunk-"+a,a)}},n=(a,b)=>{var c,d,[e,f,g]=b,h=0;if(e.some(a=>0!==m[a])){for(c in f)r.o(f,c)&&(r.m[c]=f[c]);g&&g(r)}for(a&&a(b);h<e.length;h++)d=e[h],r.o(m,d)&&m[d]&&m[d][0](),m[d]=0},(o=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var t={};return(()=>{r.r(t),r.d(t,{BaseComponent:()=>b,BaseComponentContext:()=>l,DynamicDataProvider:()=>h,DynamicDataSourceManager:()=>j,DynamicProperty:()=>o,RenderableComponentContext:()=>n,ThemeChangedEventArgs:()=>w,ThemeProvider:()=>x,_CacheMissReason:()=>C,_DeferredTeamsAppsClient:()=>E,_LegacyThirdPartyFabricCoreLoader:()=>p,_PropertyMetadataProcessor:()=>u,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>y,_WebPartLoadDataCollector:()=>D,_ensureIsolatedDomainUrl:()=>A});var a=r(676);class b{get _dynamicDataSourceId(){return`${this.manifest.componentType}.${this.manifest.id}.${this.instanceId}`}dispose(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)}get _containsDynamicDataSource(){return this._isWebPartAndContainsDynamicDataSource}set _containsDynamicDataSource(a){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&a}get isDisposed(){return this._isDisposed}get manifest(){return this.context.manifest}onDispose(){}get instanceId(){return this.context.instanceId}get componentId(){return this.context.manifest.id}_initializeContext(a){this.context=a,this.onProvideServices(a.serviceScope),a.serviceScope._isFinished||a.serviceScope.finish(),this.context._initializeDynamicData(this,a.serviceScope)}onProvideServices(a){}constructor(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}}(0,a._ES5CompatibleClass)(b);var c=r(207),d=r(408),e=r(909),f=r(745),g=r(529);class h{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._pendingRegistrations=new Map,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)}dispose(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _isProviderInitialized(){return this._isInitialized}get _dynamicDataSourceId(){return this._component._dynamicDataSourceId}registerSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerSourceChanged(b,this._component,c),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b})):this._addPendingRegistration({id:b,callback:c})}unregisterSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback");let d={id:b,callback:c};this._isRegistrationPending(d)?this._removePendingRegistration(d):(this._dynamicDataManager.unregisterSourceChanged(b,this._component,c),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:b}))}registerPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerPropertyChanged(b,c,this._component,d),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b,propertyId:c})):this._addPendingRegistration({id:b,propertyId:c,callback:d})}unregisterPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback");let e={id:b,callback:d,propertyId:c};this._isRegistrationPending(e)?this._removePendingRegistration(e):(this._dynamicDataManager.unregisterPropertyChanged(b,c,this._component,d),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:b,propertyId:c}))}registerAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,b)}unregisterAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,b)}getAvailableSources(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()}getAvailableSourcesByComponentId(b){this._assertNotDisposed(),this._assertInitialized();let c=[];return this._dynamicDataManager.getSources().forEach(d=>{b.equals(a.Guid.tryParse(d.metadata.componentId)||a.Guid.empty)&&c.push(d)}),c}tryGetSource(b){return this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"id"),this._dynamicDataManager.tryGetSource(b)}_getData(b){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"dataReference");let c=this._dynamicDataManager.tryGetSource(b.sourceId);if(!c)return;let d=c.getPropertyValue(b.property);return d&&b.propertyPath&&b.propertyPath.split(".").forEach(a=>{let b=a.split(h._jsonPathArrayRegex),c=b[0];if(d)if(Array.isArray(d)){let a=[];d.forEach(b=>{b.hasOwnProperty(c)&&a.push(b[c])});let e=b[1];if(b.length>1){let b=[];a.forEach(a=>{a.forEach(a=>b.push(a))}),a=b}d=isNaN(parseInt(e,10))?a:a[e]}else d=d.hasOwnProperty(c)?d[c]:void 0}),d}_onSourcesChanged(){let a=this.getAvailableSources().map(a=>a.id);this._pendingRegistrations.forEach(b=>{-1!==a.indexOf(b.id)&&(b.propertyId?(this._dynamicDataManager.registerPropertyChanged(b.id,b.propertyId,this._component,b.callback),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b.id,propertyId:b.propertyId})):(this._dynamicDataManager.registerSourceChanged(b.id,this._component,b.callback),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b.id})),this._removePendingRegistration(b))})}_assertNotDisposed(){if(this.isDisposed)throw Error("Dynamic Data Provider has been disposed")}_assertInitialized(){if(!this._isInitialized)throw Error("Dynamic Data Provider has not been initialized.")}_addPendingRegistration(a){this._isRegistrationPending(a)||this._pendingRegistrations.set(a.id+(a.propertyId||""),{id:a.id,propertyId:a.propertyId,callback:a.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)}_removePendingRegistration(a){this._pendingRegistrations.delete(a.id+(a.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)}_isRegistrationPending(a){return this._pendingRegistrations.has(a.id+(a.propertyId||""))}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataProvider",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}}h._jsonPathArrayRegex=new RegExp(/\[|\]/);let i=JSON.parse('{"lw":"Source has already been initialized.","Yt":"\\u0022sendEvent()\\u0022 must be defined, when the \\u0022allowedEvents()\\u0022 returns a non-empty value.","C3":"Dynamic Data Source Manager has been disposed.","ad":"Dynamic Data Source Manager has not been initialized.","fT":"Dynamic Data Source has not been initialized.","Qm":"\\u0022{0}\\u0022 event is not allowed on the source \\u0022{1}\\u0022"}');class j{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0}dispose(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _source(){return this._src}initializeSource(b){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw Error(i.lw);this._callableFunctions=b,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),a._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})}notifySourceChanged(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)}notifyPropertyChanged(b){a.Validate.isNonemptyString(b,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,b)}updateMetadata(b){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),a.Validate.isNotNullOrUndefined(b,"metadata"),b.alias=void 0,b.componentId=void 0,b.instanceId=void 0,(0,g.merge)(this._src.metadata,b)}get sourceId(){return this._src?this._src.id:""}_buildSource(a){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw Error(i.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(a),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}}_allowedEvents(){return this._callableFunctions.allowedEvents?(0,g.cloneDeep)(this._callableFunctions.allowedEvents()):void 0}_sendEvent(a,b){this._assertValidEvent(a),this._callableFunctions.sendEvent(a,b)}_getPropertyDefinitions(){return(0,g.cloneDeep)(this._callableFunctions.getPropertyDefinitions())}_getPropertyValue(b){a.Validate.isNotNullOrUndefined(b,"propertyId");let d=new c._QosMonitor("DynamicDataSourceManager._getPropertyValue"),e=b.split(h._jsonPathArrayRegex);try{let a=this._callableFunctions.getPropertyValue(e.shift());if(e.length>0&&!isNaN(parseInt(e[0],10))&&Array.isArray(a)&&(a=a[e[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(a=>a.id===b).length&&this._src)throw Error(`Property "${b}" doesn't exist in source "${this._src.metadata.title}"`);return d.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,propertyId:b}),(0,g.cloneDeep)(a)}catch(a){d.writeUnexpectedFailure("NoPropertyId",a,{propertyId:b}),c._TraceLogger.logErrorData({source:this._logSource,error:a});return}}_getPropertyDefinitionsAsync(){return Promise.resolve(this._getPropertyDefinitions())}_getPropertyValueAsync(a){return Promise.resolve(this._getPropertyValue(a))}_allowedEventsAsync(){return Promise.resolve(this._allowedEvents())}_getAnnotatedPropertyValue(b){let d;a.Validate.isNotNullOrUndefined(b,"propertyId");let e=new c._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue"),{getAnnotatedPropertyValue:f}=this._callableFunctions;if(f){let a=b.split(h._jsonPathArrayRegex);try{d=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(d)&&(d=d[a[0]]),e.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,annotatedPropertyValue:d,propertyId:b})}catch(a){e.writeExpectedFailure("NoAnnotatedPropertyValue",a,{annotatedPropertyValue:d}),c._TraceLogger.logErrorData({source:this._logSource,error:a}),d=void 0}}return d||(d={sampleValue:this._getPropertyValue(b),metadata:void 0}),d}_getAnnotatedPropertyValueAsync(a){return Promise.resolve(this._getAnnotatedPropertyValue(a))}_buildMetadata(a){let b={title:a.manifest.alias,alias:a.manifest.alias,componentId:a.componentId,instanceId:a.instanceId};return a.title&&(b.title=a.title),a.description&&(b.description=a.description),b}_assertValidEvent(b){if(!this._allowedEvents()||-1===(0,g.findIndex)(this._allowedEvents(),{name:b}))throw Error(a.Text.format(i.Qm,b,this._src.metadata.title))}_assertNotDisposed(){if(this.isDisposed)throw Error(i.C3)}_assertInitialized(){if(!this._isInitialized)throw Error(i.ad)}_assertSourceExists(){if(!this._src)throw Error(i.fT)}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataSourceManager",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=c._LogSource.create("DynamicDataSourceManager")}}class k{get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)}get serviceScope(){return this._serviceScope}get instanceId(){return this._instanceId}get pageContext(){return this._pageContext}_initializeDynamicData(a,b){this._dynamicDataProvider._initialize(a,b),this._dynamicDataSourceManager._initialize(a,b)}get dynamicDataProvider(){return this._dynamicDataProvider}get dynamicDataSourceManager(){return this._dynamicDataSourceManager}get aadHttpClientFactory(){return this._aadClientFactory}get aadTokenProviderFactory(){return this._aadTokenFactory}get msGraphClientFactory(){return this._msGraphClientFactory}get httpClient(){return this._httpClient}get spHttpClient(){return this._spHttpClient}get isServedFromLocalhost(){return this._isServedFromLocalhost}constructor(b){this._isDisposed=!1,this._isServedFromLocalhost=!1,a.Validate.isNotNullOrUndefined(b,"parameters"),a.Validate.isNotNullOrUndefined(b.manifest,"manifest"),this.manifest=b.manifest;const{loaderConfig:f}=this.manifest;f&&f.internalModuleBaseUrls&&f.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(f.internalModuleBaseUrls[0])),a.Validate.isNotNullOrUndefined(b.parentServiceScope,"parentServiceScope"),this._serviceScope=b.parentServiceScope.startNewChild(),a.Validate.isNotNullOrUndefined(b.loggingTag,"loggingTag"),this.serviceScope.provide(c._logSourceServiceKey,c._LogSource.create(b.loggingTag)),a.Validate.isNonemptyString(b.instanceId,"instanceId"),this._instanceId=b.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(e.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(e.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(e.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(e.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(e.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(a._ClientManifestData.serviceKey,new a._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(()=>{this._pageContext=this.serviceScope.consume(d.PageContext.serviceKey)}),this._dynamicDataProvider=new h,this._dynamicDataSourceManager=new j}}(0,a._ES5CompatibleClass)(k);let l=k;class m extends l{constructor(b){const{domElement:c,...d}=b;super(d),a.Validate.isNotNullOrUndefined(c,"domElement"),this.domElement=c}}(0,a._ES5CompatibleClass)(m);let n=m;class o{setReference(b){a.Validate.isNonemptyString(b,"id"),this._value=void 0,this._hasValue=!1;let c=new Set;this._callbacks.forEach(a=>c.add(a)),this._callbacks.forEach(a=>this.unregister(a)),this._reference=new f.DynamicDataReference(b),this._sourceId=this._getSourceId(),c.forEach(a=>this.register(a)),this._onSourcesChangedCallback()}setValue(a){let b=this._callbacks;b.forEach(a=>this.unregister(a)),this._value=a,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,b.forEach(a=>this.register(a))}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(a=>this.unregister(a)),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)}toJSON(){return this._hasValue?{__type:o._TYPE_NAME,value:this._value}:{__type:o._TYPE_NAME,reference:this._reference}}get reference(){return this._hasValue?void 0:this._reference.reference}get value(){return this._value}tryGetValue(){if(this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return;a.Validate.isNotDisposed(this,"DynamicData");let b=this._getData();return Array.isArray(b)&&(b=b[0]),b}tryGetValues(){let a=this._getData();return a?Array.isArray(a)||(a=[a]):a=[],a}tryGetSource(){return this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")?void 0:(a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId))}register(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._callbacks.add(b)):this._pendingCallbacks.add(b)}unregister(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._pendingCallbacks.delete(b),this._callbacks.delete(b)}hasDefaultCallback(){return!!this._defaultCallback}removeDefaultCallback(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)}_getSourceId(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId}_getProperty(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property}_getPropertyPath(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""}_cloneDeep(a){return g.cloneDeepWith(a,a=>{if(a instanceof h)return a})}_getPropertyToRegister(){return a.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(o._arrayRegex)[0]}_onSourcesChangedCallback(){if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){let a=this._pendingCallbacks;this._pendingCallbacks=new Set,a.forEach(a=>{this.register(a),a()})}}_getData(){let b;if(!this.isDisposed||a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){a.Validate.isNotDisposed(this,"DynamicData");try{b=this._hasValue?this._value:this._provider._getData(this._reference)}catch(a){throw c._EngagementLogger.logEventWithLogEntry(a),a}return c._EngagementLogger.logEventWithLogEntry(new c._LogEntry("DynamicData","getData",c._LogType.Event,{value:JSON.stringify(this.value)})),b}}constructor(b,c){this._hasValue=!1,this._isDisposed=!1,a.Validate.isNotNullOrUndefined(b,"provider"),this.__type=o._TYPE_NAME,this._provider=b,this._callbacks=new Set,this._pendingCallbacks=new Set,c?(this._pendingCallbacks.add(c),this._defaultCallback=c):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}}o._TYPE_NAME="DynamicProperty",o._arrayRegex=new RegExp(/\[\*\]$/);class p{static load(a){return a||p._isLoaded?Promise.resolve():r.e(386).then(r.bind(r,103)).then(()=>{p._isLoaded=!0})}static forceLoad(a){try{if(p._shouldLoad(a))return r.e(386).then(r.bind(r,103)).then(()=>{p._isLoaded=!0});return Promise.resolve()}catch(a){return Promise.reject(a)}}static needLegacyFabricCss(b){if(b.isInternal)return!1;if(void 0===b.loadLegacyFabricCss){let c=a.Version._tryParseSPFxVersion(b);return!c||c.lessThan(a.Version.parse("1.8.2"))}return b.loadLegacyFabricCss}static _shouldLoad(a){return!p._isLoaded&&p.needLegacyFabricCss(a)}}p._isLoaded=!1;var q=r(86),s=r(356);class u{static serializeServerProcessedData(b,c,d){this._forEachPropertyWithMetaData(b,c,(b,e,f)=>{e.shouldNotPersist&&g.set(c,b,void 0);let h=g.get(c,b);if(d&&"string"==typeof h&&h){if(d.htmlStrings&&e.isHtmlString?d.htmlStrings[b]=h:d.searchablePlainTexts&&e.isSearchablePlainText?d.searchablePlainTexts[b]=h:d.links&&e.isLink?d.links[b]=h:d.imageSources&&e.isImageSource?d.imageSources[b]=h:e.isComponentDependency&&(d.componentDependencies||(d.componentDependencies={}),d.componentDependencies[b]=h),e.customMetadata){let h={};if(e&&e.customMetadata)for(let[b,i]of Object.entries(e.customMetadata)){let j=i;void 0!==f&&-1!==j.indexOf("*")&&(j=j.replace("*",f.toString())),this._validateAndIteratePath(j,c,(f,i)=>{if(void 0===i&&e.customMetadata){let e=g.get(c,f);d&&void 0!==e&&(a._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?h[f]=e:h[b]=e)}})}d.customMetadata||(d.customMetadata={}),d.customMetadata[b]=h}g.set(c,b,void 0)}})}static reInstateServerProcessedData(b,d,e,f){let h=new Set;if(f&&this._forEachPropertyWithMetaData(b,d,(b,e)=>{if((0,q.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===f.id&&a._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;let i=g.get(d,b);if(void 0!==i){let a=new c._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(e.isLink&&(h.add(b),this._isSafeLink(i)||(a.writeUnexpectedFailure("ClearingLinkProperty",Error(b)),g.set(d,b,void 0))),e.isHtmlString){h.add(b);let c=this._getSafeHtml(i);c!==i&&(a.writeUnexpectedFailure("SettingSafeHtml",Error(b)),g.set(d,b,c))}a.hasEnded||a.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==f.id&&e.isHtmlString&&g.set(d,b,void 0)}),e){for(let a of[e.htmlStrings,e.searchablePlainTexts,e.imageSources,e.links,e.componentDependencies])if(a)for(let[b,c]of Object.entries(a))"string"==typeof c&&(g.set(d,b,c),(0,q.X)()&&h.delete(b))}(0,q.X)()&&f&&h.size>0&&new c._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:f.id,properties:Array.from(h).join(",")})}static _isSafeLink(a){try{let b=new URL(a);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{try{let b=new URL(a,window.location.origin);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{return!1}}}static _getSafeHtml(a){return s.SafeHtml.clean(a)}static _forEachPropertyWithMetaData(a,b,c){if(a)for(let[d,e]of Object.entries(a))this._validateAndIteratePath(d,b,(a,b)=>{c(a,e,b)})}static _validateAndIteratePath(a,b,c){let d=(a.match(/\*/g)||[]).length;if(d>1)return void console.warn(`Invalid property path: Multiple wildcards are not supported in property paths.
2
+ ,424(a){a.exports=i},676(a){a.exports=b},207(a){a.exports=c},745(a){a.exports=f},909(a){a.exports=e},529(a){a.exports=g},408(a){a.exports=d},356(a){a.exports=h},519(a){a.exports=j}},q={};function r(a){var b=q[a];if(void 0!==b)return b.exports;var c=q[a]={exports:{}};return p[a](c,c.exports,r),c.exports}r.m=p;var s={"216":"YqFzgyVjLuhO8w7HzC63s/jt1GKpbjr6+eq0yE4oiL0=","386":"rksY1A7OQvPjyEo6xsP0NDYfPdrYxffnANlpmHqRwVc="};r.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return r.d(b,{a:b}),b},r.d=(a,b)=>{for(var c in b)r.o(b,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((b,c)=>(r.f[c](a,b),b),[])),r.u=a=>"chunk."+({216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"})[a]+"_none_"+({216:"f9e7cc08e9d9393a3c31",386:"7af1ee40a1508a652eb3"})[a]+".js",r.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},r.l=(a,b,c,d)=>{if(k[a])return void k[a].push(b);if(void 0!==c)for(var e,f,g=document.getElementsByTagName("script"),h=0;h<g.length;h++){var i=g[h];if(i.getAttribute("src")==a||i.getAttribute("data-webpack")=="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c){e=i;break}}if(!e){f=!0,(e=document.createElement("script")).charset="utf-8",r.nc&&e.setAttribute("nonce",r.nc),e.setAttribute("data-webpack","467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c),e.src=a,0!==e.src.indexOf(window.location.origin+"/")&&(e.crossOrigin="anonymous");var j="sha256-"+(s[d]||"Missing+Integrity+Hash+For+Script+Aborting=");j&&(e.integrity=j)}k[a]=[b];var l=(b,c)=>{e.onerror=e.onload=null,clearTimeout(m);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=l.bind(null,e.onerror),e.onload=l.bind(null,e.onload),f&&document.head.appendChild(e)},r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.p=(l=a?a.src:"").slice(0,l.lastIndexOf("/")+1),m={826:0},r.f.j=(a,b)=>{var c=r.o(m,a)?m[a]:void 0;if(0!==c)if(c)b.push(c[2]);else{var d=new Promise((b,d)=>c=m[a]=[b,d]);b.push(c[2]=d);var e=r.p+r.u(a),f=Error();r.l(e,b=>{if(r.o(m,a)&&(0!==(c=m[a])&&(m[a]=void 0),c)){var d=b&&("load"===b.type?"missing":b.type),e=b&&b.target&&b.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+e+")",f.name="ChunkLoadError",f.type=d,f.request=e,c[1](f)}},"chunk-"+a,a)}},n=(a,b)=>{var c,d,[e,f,g]=b,h=0;if(e.some(a=>0!==m[a])){for(c in f)r.o(f,c)&&(r.m[c]=f[c]);g&&g(r)}for(a&&a(b);h<e.length;h++)d=e[h],r.o(m,d)&&m[d]&&m[d][0](),m[d]=0},(o=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var t={};return(()=>{r.r(t),r.d(t,{BaseComponent:()=>b,BaseComponentContext:()=>l,DynamicDataProvider:()=>h,DynamicDataSourceManager:()=>j,DynamicProperty:()=>o,RenderableComponentContext:()=>n,ThemeChangedEventArgs:()=>w,ThemeProvider:()=>x,_CacheMissReason:()=>C,_DeferredTeamsAppsClient:()=>E,_LegacyThirdPartyFabricCoreLoader:()=>p,_PropertyMetadataProcessor:()=>u,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>y,_WebPartLoadDataCollector:()=>D,_ensureIsolatedDomainUrl:()=>A});var a=r(676);class b{get _dynamicDataSourceId(){return`${this.manifest.componentType}.${this.manifest.id}.${this.instanceId}`}dispose(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)}get _containsDynamicDataSource(){return this._isWebPartAndContainsDynamicDataSource}set _containsDynamicDataSource(a){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&a}get isDisposed(){return this._isDisposed}get manifest(){return this.context.manifest}onDispose(){}get instanceId(){return this.context.instanceId}get componentId(){return this.context.manifest.id}_initializeContext(a){this.context=a,this.onProvideServices(a.serviceScope),a.serviceScope._isFinished||a.serviceScope.finish(),this.context._initializeDynamicData(this,a.serviceScope)}onProvideServices(a){}constructor(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}}(0,a._ES5CompatibleClass)(b);var c=r(207),d=r(408),e=r(909),f=r(745),g=r(529);class h{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._pendingRegistrations=new Map,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)}dispose(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _isProviderInitialized(){return this._isInitialized}get _dynamicDataSourceId(){return this._component._dynamicDataSourceId}registerSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerSourceChanged(b,this._component,c),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b})):this._addPendingRegistration({id:b,callback:c})}unregisterSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback");let d={id:b,callback:c};this._isRegistrationPending(d)?this._removePendingRegistration(d):(this._dynamicDataManager.unregisterSourceChanged(b,this._component,c),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:b}))}registerPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerPropertyChanged(b,c,this._component,d),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b,propertyId:c})):this._addPendingRegistration({id:b,propertyId:c,callback:d})}unregisterPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback");let e={id:b,callback:d,propertyId:c};this._isRegistrationPending(e)?this._removePendingRegistration(e):(this._dynamicDataManager.unregisterPropertyChanged(b,c,this._component,d),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:b,propertyId:c}))}registerAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,b)}unregisterAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,b)}getAvailableSources(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()}getAvailableSourcesByComponentId(b){this._assertNotDisposed(),this._assertInitialized();let c=[];return this._dynamicDataManager.getSources().forEach(d=>{b.equals(a.Guid.tryParse(d.metadata.componentId)||a.Guid.empty)&&c.push(d)}),c}tryGetSource(b){return this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"id"),this._dynamicDataManager.tryGetSource(b)}_getData(b){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"dataReference");let c=this._dynamicDataManager.tryGetSource(b.sourceId);if(!c)return;let d=c.getPropertyValue(b.property);return d&&b.propertyPath&&b.propertyPath.split(".").forEach(a=>{let b=a.split(h._jsonPathArrayRegex),c=b[0];if(d)if(Array.isArray(d)){let a=[];d.forEach(b=>{b.hasOwnProperty(c)&&a.push(b[c])});let e=b[1];if(b.length>1){let b=[];a.forEach(a=>{a.forEach(a=>b.push(a))}),a=b}d=isNaN(parseInt(e,10))?a:a[e]}else d=d.hasOwnProperty(c)?d[c]:void 0}),d}_onSourcesChanged(){let a=this.getAvailableSources().map(a=>a.id);this._pendingRegistrations.forEach(b=>{-1!==a.indexOf(b.id)&&(b.propertyId?(this._dynamicDataManager.registerPropertyChanged(b.id,b.propertyId,this._component,b.callback),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b.id,propertyId:b.propertyId})):(this._dynamicDataManager.registerSourceChanged(b.id,this._component,b.callback),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b.id})),this._removePendingRegistration(b))})}_assertNotDisposed(){if(this.isDisposed)throw Error("Dynamic Data Provider has been disposed")}_assertInitialized(){if(!this._isInitialized)throw Error("Dynamic Data Provider has not been initialized.")}_addPendingRegistration(a){this._isRegistrationPending(a)||this._pendingRegistrations.set(a.id+(a.propertyId||""),{id:a.id,propertyId:a.propertyId,callback:a.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)}_removePendingRegistration(a){this._pendingRegistrations.delete(a.id+(a.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)}_isRegistrationPending(a){return this._pendingRegistrations.has(a.id+(a.propertyId||""))}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataProvider",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}}h._jsonPathArrayRegex=new RegExp(/\[|\]/);let i=JSON.parse('{"lw":"Source has already been initialized.","Yt":"\\u0022sendEvent()\\u0022 must be defined, when the \\u0022allowedEvents()\\u0022 returns a non-empty value.","C3":"Dynamic Data Source Manager has been disposed.","ad":"Dynamic Data Source Manager has not been initialized.","fT":"Dynamic Data Source has not been initialized.","Qm":"\\u0022{0}\\u0022 event is not allowed on the source \\u0022{1}\\u0022"}');class j{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0}dispose(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _source(){return this._src}initializeSource(b){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw Error(i.lw);this._callableFunctions=b,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),a._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})}notifySourceChanged(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)}notifyPropertyChanged(b){a.Validate.isNonemptyString(b,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,b)}updateMetadata(b){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),a.Validate.isNotNullOrUndefined(b,"metadata"),b.alias=void 0,b.componentId=void 0,b.instanceId=void 0,(0,g.merge)(this._src.metadata,b)}get sourceId(){return this._src?this._src.id:""}_buildSource(a){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw Error(i.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(a),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}}_allowedEvents(){return this._callableFunctions.allowedEvents?(0,g.cloneDeep)(this._callableFunctions.allowedEvents()):void 0}_sendEvent(a,b){this._assertValidEvent(a),this._callableFunctions.sendEvent(a,b)}_getPropertyDefinitions(){return(0,g.cloneDeep)(this._callableFunctions.getPropertyDefinitions())}_getPropertyValue(b){a.Validate.isNotNullOrUndefined(b,"propertyId");let d=new c._QosMonitor("DynamicDataSourceManager._getPropertyValue"),e=b.split(h._jsonPathArrayRegex);try{let a=this._callableFunctions.getPropertyValue(e.shift());if(e.length>0&&!isNaN(parseInt(e[0],10))&&Array.isArray(a)&&(a=a[e[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(a=>a.id===b).length&&this._src)throw Error(`Property "${b}" doesn't exist in source "${this._src.metadata.title}"`);return d.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,propertyId:b}),(0,g.cloneDeep)(a)}catch(a){d.writeUnexpectedFailure("NoPropertyId",a,{propertyId:b}),c._TraceLogger.logErrorData({source:this._logSource,error:a});return}}_getPropertyDefinitionsAsync(){return Promise.resolve(this._getPropertyDefinitions())}_getPropertyValueAsync(a){return Promise.resolve(this._getPropertyValue(a))}_allowedEventsAsync(){return Promise.resolve(this._allowedEvents())}_getAnnotatedPropertyValue(b){let d;a.Validate.isNotNullOrUndefined(b,"propertyId");let e=new c._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue"),{getAnnotatedPropertyValue:f}=this._callableFunctions;if(f){let a=b.split(h._jsonPathArrayRegex);try{d=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(d)&&(d=d[a[0]]),e.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,annotatedPropertyValue:d,propertyId:b})}catch(a){e.writeExpectedFailure("NoAnnotatedPropertyValue",a,{annotatedPropertyValue:d}),c._TraceLogger.logErrorData({source:this._logSource,error:a}),d=void 0}}return d||(d={sampleValue:this._getPropertyValue(b),metadata:void 0}),d}_getAnnotatedPropertyValueAsync(a){return Promise.resolve(this._getAnnotatedPropertyValue(a))}_buildMetadata(a){let b={title:a.manifest.alias,alias:a.manifest.alias,componentId:a.componentId,instanceId:a.instanceId};return a.title&&(b.title=a.title),a.description&&(b.description=a.description),b}_assertValidEvent(b){if(!this._allowedEvents()||-1===(0,g.findIndex)(this._allowedEvents(),{name:b}))throw Error(a.Text.format(i.Qm,b,this._src.metadata.title))}_assertNotDisposed(){if(this.isDisposed)throw Error(i.C3)}_assertInitialized(){if(!this._isInitialized)throw Error(i.ad)}_assertSourceExists(){if(!this._src)throw Error(i.fT)}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataSourceManager",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=c._LogSource.create("DynamicDataSourceManager")}}class k{get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)}get serviceScope(){return this._serviceScope}get instanceId(){return this._instanceId}get pageContext(){return this._pageContext}_initializeDynamicData(a,b){this._dynamicDataProvider._initialize(a,b),this._dynamicDataSourceManager._initialize(a,b)}get dynamicDataProvider(){return this._dynamicDataProvider}get dynamicDataSourceManager(){return this._dynamicDataSourceManager}get aadHttpClientFactory(){return this._aadClientFactory}get aadTokenProviderFactory(){return this._aadTokenFactory}get msGraphClientFactory(){return this._msGraphClientFactory}get httpClient(){return this._httpClient}get spHttpClient(){return this._spHttpClient}get isServedFromLocalhost(){return this._isServedFromLocalhost}constructor(b){this._isDisposed=!1,this._isServedFromLocalhost=!1,a.Validate.isNotNullOrUndefined(b,"parameters"),a.Validate.isNotNullOrUndefined(b.manifest,"manifest"),this.manifest=b.manifest;const{loaderConfig:f}=this.manifest;f&&f.internalModuleBaseUrls&&f.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(f.internalModuleBaseUrls[0])),a.Validate.isNotNullOrUndefined(b.parentServiceScope,"parentServiceScope"),this._serviceScope=b.parentServiceScope.startNewChild(),a.Validate.isNotNullOrUndefined(b.loggingTag,"loggingTag"),this.serviceScope.provide(c._logSourceServiceKey,c._LogSource.create(b.loggingTag)),a.Validate.isNonemptyString(b.instanceId,"instanceId"),this._instanceId=b.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(e.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(e.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(e.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(e.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(e.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(a._ClientManifestData.serviceKey,new a._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(()=>{this._pageContext=this.serviceScope.consume(d.PageContext.serviceKey)}),this._dynamicDataProvider=new h,this._dynamicDataSourceManager=new j}}(0,a._ES5CompatibleClass)(k);let l=k;class m extends l{constructor(b){const{domElement:c,...d}=b;super(d),a.Validate.isNotNullOrUndefined(c,"domElement"),this.domElement=c}}(0,a._ES5CompatibleClass)(m);let n=m;class o{setReference(b){a.Validate.isNonemptyString(b,"id"),this._value=void 0,this._hasValue=!1;let c=new Set;this._callbacks.forEach(a=>c.add(a)),this._callbacks.forEach(a=>this.unregister(a)),this._reference=new f.DynamicDataReference(b),this._sourceId=this._getSourceId(),c.forEach(a=>this.register(a)),this._onSourcesChangedCallback()}setValue(a){let b=this._callbacks;b.forEach(a=>this.unregister(a)),this._value=a,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,b.forEach(a=>this.register(a))}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(a=>this.unregister(a)),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)}toJSON(){return this._hasValue?{__type:o._TYPE_NAME,value:this._value}:{__type:o._TYPE_NAME,reference:this._reference}}get reference(){return this._hasValue?void 0:this._reference.reference}get value(){return this._value}tryGetValue(){if(this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return;a.Validate.isNotDisposed(this,"DynamicData");let b=this._getData();return Array.isArray(b)&&(b=b[0]),b}tryGetValues(){let a=this._getData();return a?Array.isArray(a)||(a=[a]):a=[],a}tryGetSource(){return this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")?void 0:(a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId))}register(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._callbacks.add(b)):this._pendingCallbacks.add(b)}unregister(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._pendingCallbacks.delete(b),this._callbacks.delete(b)}hasDefaultCallback(){return!!this._defaultCallback}removeDefaultCallback(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)}_getSourceId(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId}_getProperty(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property}_getPropertyPath(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""}_cloneDeep(a){return g.cloneDeepWith(a,a=>{if(a instanceof h)return a})}_getPropertyToRegister(){return a.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(o._arrayRegex)[0]}_onSourcesChangedCallback(){if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){let a=this._pendingCallbacks;this._pendingCallbacks=new Set,a.forEach(a=>{this.register(a),a()})}}_getData(){let b;if(!this.isDisposed||a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){a.Validate.isNotDisposed(this,"DynamicData");try{b=this._hasValue?this._value:this._provider._getData(this._reference)}catch(a){throw c._EngagementLogger.logEventWithLogEntry(a),a}return c._EngagementLogger.logEventWithLogEntry(new c._LogEntry("DynamicData","getData",c._LogType.Event,{value:JSON.stringify(this.value)})),b}}constructor(b,c){this._hasValue=!1,this._isDisposed=!1,a.Validate.isNotNullOrUndefined(b,"provider"),this.__type=o._TYPE_NAME,this._provider=b,this._callbacks=new Set,this._pendingCallbacks=new Set,c?(this._pendingCallbacks.add(c),this._defaultCallback=c):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}}o._TYPE_NAME="DynamicProperty",o._arrayRegex=new RegExp(/\[\*\]$/);class p{static load(a){return a||p._isLoaded?Promise.resolve():r.e(386).then(r.bind(r,294)).then(()=>{p._isLoaded=!0})}static forceLoad(a){try{if(p._shouldLoad(a))return r.e(386).then(r.bind(r,294)).then(()=>{p._isLoaded=!0});return Promise.resolve()}catch(a){return Promise.reject(a)}}static needLegacyFabricCss(b){if(b.isInternal)return!1;if(void 0===b.loadLegacyFabricCss){let c=a.Version._tryParseSPFxVersion(b);return!c||c.lessThan(a.Version.parse("1.8.2"))}return b.loadLegacyFabricCss}static _shouldLoad(a){return!p._isLoaded&&p.needLegacyFabricCss(a)}}p._isLoaded=!1;var q=r(86),s=r(356);class u{static serializeServerProcessedData(b,c,d){this._forEachPropertyWithMetaData(b,c,(b,e,f)=>{e.shouldNotPersist&&g.set(c,b,void 0);let h=g.get(c,b);if(d&&"string"==typeof h&&h){if(d.htmlStrings&&e.isHtmlString?d.htmlStrings[b]=h:d.searchablePlainTexts&&e.isSearchablePlainText?d.searchablePlainTexts[b]=h:d.links&&e.isLink?d.links[b]=h:d.imageSources&&e.isImageSource?d.imageSources[b]=h:e.isComponentDependency&&(d.componentDependencies||(d.componentDependencies={}),d.componentDependencies[b]=h),e.customMetadata){let h={};if(e&&e.customMetadata)for(let[b,i]of Object.entries(e.customMetadata)){let j=i;void 0!==f&&-1!==j.indexOf("*")&&(j=j.replace("*",f.toString())),this._validateAndIteratePath(j,c,(f,i)=>{if(void 0===i&&e.customMetadata){let e=g.get(c,f);d&&void 0!==e&&(a._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?h[f]=e:h[b]=e)}})}d.customMetadata||(d.customMetadata={}),d.customMetadata[b]=h}g.set(c,b,void 0)}})}static reInstateServerProcessedData(b,d,e,f){let h=new Set;if(f&&this._forEachPropertyWithMetaData(b,d,(b,e)=>{if((0,q.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===f.id&&a._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;let i=g.get(d,b);if(void 0!==i){let a=new c._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(e.isLink&&(h.add(b),this._isSafeLink(i)||(a.writeUnexpectedFailure("ClearingLinkProperty",Error(b)),g.set(d,b,void 0))),e.isHtmlString){h.add(b);let c=this._getSafeHtml(i);c!==i&&(a.writeUnexpectedFailure("SettingSafeHtml",Error(b)),g.set(d,b,c))}a.hasEnded||a.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==f.id&&e.isHtmlString&&g.set(d,b,void 0)}),e){for(let a of[e.htmlStrings,e.searchablePlainTexts,e.imageSources,e.links,e.componentDependencies])if(a)for(let[b,c]of Object.entries(a))"string"==typeof c&&(g.set(d,b,c),(0,q.X)()&&h.delete(b))}(0,q.X)()&&f&&h.size>0&&new c._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:f.id,properties:Array.from(h).join(",")})}static _isSafeLink(a){try{let b=new URL(a);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{try{let b=new URL(a,window.location.origin);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{return!1}}}static _getSafeHtml(a){return s.SafeHtml.clean(a)}static _forEachPropertyWithMetaData(a,b,c){if(a)for(let[d,e]of Object.entries(a))this._validateAndIteratePath(d,b,(a,b)=>{c(a,e,b)})}static _validateAndIteratePath(a,b,c){let d=(a.match(/\*/g)||[]).length;if(d>1)return void console.warn(`Invalid property path: Multiple wildcards are not supported in property paths.
3
3
  Entry with path '${a}' got ignored in the properties metadata.`);if(1===d){let d=a.indexOf("[*]");if(d<-1)return void console.warn(`Invalid property path: Wildcards are only supported inside brackets to select array
4
4
  indices as in 'foo[*].bar'. Entry with path '${a}' got ignored in the properties metadata.`);{let e=a.substr(0,d),f=g.get(b,e);if(!f)return void console.warn(`Invalid property path: Could not find an array named '${e}' in the properties.
5
5
  Entry with path '${a}' got ignored in the properties metadata.`);for(let b=0;b<f.length;b++)c(a.replace("*",`${b}`),b)}}else c(a)}}let v={htmlString:1,link:2,imageSource:3,searchablePlainText:4};class w extends a.SPEventArgs{}class x{get _themeChangedEventName(){return x._themeChangedEventNameLiteral+this._id}_clearTheme(){this._theme=void 0,this._themeV2=void 0,this._raiseEvent()}_setTheme(b,c){a.Validate.isNotNullOrUndefined(b,"theme"),this._theme=Object.freeze(b),c&&(this._themeV2=Object.freeze(c)),this._raiseEvent()}tryGetTheme(){return this._theme}tryGetThemeV2(){return this._themeV2}_raiseEvent(){a._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme,themeV2:this._themeV2})}constructor(b,c,d){this._id=x._instanceCount++,this.themeChangedEvent=new a.SPEvent(this._themeChangedEventName),c&&(this._theme=Object.freeze(c)),d&&(this._themeV2=Object.freeze(d))}}x.serviceKey=a.ServiceKey.create("sp-component-base.ThemeProvider",x),x._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",x._instanceCount=0,r(424).loadStyles(".s_NEWFn_o5ljQ{background-color:transparent;height:100%;margin:5px;position:relative;width:100%}.s__9-NN_o5ljQ{fill:#f4f4f4}",!0);class y{static createShimmer(a,b,c,d,e){a=a||100,b=b||100;let f=document.createElement("div");f.className="s_NEWFn_o5ljQ";let g=document.createElement("div"),h=.9*b/9,i=2*(h=Math.min(16,h)),j=h,k=j+i,l=k+i,m="s__9-NN_o5ljQ";g.innerHTML=`<svg width=${a} height=${b} viewBox="0 0 ${a} ${b}" version="1.1"
@@ -1,5 +1,5 @@
1
1
  (()=>{var a=document.currentScript;define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0",["@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-page-context","@microsoft/sp-http","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","@msinternal/sp-safehtml","@microsoft/load-themed-styles","@msinternal/sp-telemetry"],(b,c,d,e,f,g,h,i,j)=>(()=>{"use strict";var k,l,m,n,o,p={86(a,b,c){c.d(b,{T:()=>e,X:()=>f});var d=c(676);function e(){return d._SPFlight.isEnabled(60693)}function f(){return d._SPFlight.isEnabled(61389)}}
2
- ,424(a){a.exports=i},676(a){a.exports=b},207(a){a.exports=c},745(a){a.exports=f},909(a){a.exports=e},529(a){a.exports=g},408(a){a.exports=d},356(a){a.exports=h},519(a){a.exports=j}},q={};function r(a){var b=q[a];if(void 0!==b)return b.exports;var c=q[a]={exports:{}};return p[a](c,c.exports,r),c.exports}r.m=p;var s={"216":"YqFzgyVjLuhO8w7HzC63s/jt1GKpbjr6+eq0yE4oiL0=","386":"cFeqXYPW6nXocZvdbBN/107i+x19wnk23Qu8OtfpuIE="};r.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return r.d(b,{a:b}),b},r.d=(a,b)=>{for(var c in b)r.o(b,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((b,c)=>(r.f[c](a,b),b),[])),r.u=a=>"chunk."+({216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"})[a]+"_none_"+({216:"27d3c7c1d01080e4f131",386:"b7f7978a3e90166c361b"})[a]+".js",r.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},r.l=(a,b,c,d)=>{if(k[a])return void k[a].push(b);if(void 0!==c)for(var e,f,g=document.getElementsByTagName("script"),h=0;h<g.length;h++){var i=g[h];if(i.getAttribute("src")==a||i.getAttribute("data-webpack")=="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c){e=i;break}}if(!e){f=!0,(e=document.createElement("script")).charset="utf-8",r.nc&&e.setAttribute("nonce",r.nc),e.setAttribute("data-webpack","467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c),e.src=a,0!==e.src.indexOf(window.location.origin+"/")&&(e.crossOrigin="anonymous");var j="sha256-"+(s[d]||"Missing+Integrity+Hash+For+Script+Aborting=");j&&(e.integrity=j)}k[a]=[b];var l=(b,c)=>{e.onerror=e.onload=null,clearTimeout(m);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=l.bind(null,e.onerror),e.onload=l.bind(null,e.onload),f&&document.head.appendChild(e)},r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.p=(l=a?a.src:"").slice(0,l.lastIndexOf("/")+1),m={826:0},r.f.j=(a,b)=>{var c=r.o(m,a)?m[a]:void 0;if(0!==c)if(c)b.push(c[2]);else{var d=new Promise((b,d)=>c=m[a]=[b,d]);b.push(c[2]=d);var e=r.p+r.u(a),f=Error();r.l(e,b=>{if(r.o(m,a)&&(0!==(c=m[a])&&(m[a]=void 0),c)){var d=b&&("load"===b.type?"missing":b.type),e=b&&b.target&&b.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+e+")",f.name="ChunkLoadError",f.type=d,f.request=e,c[1](f)}},"chunk-"+a,a)}},n=(a,b)=>{var c,d,[e,f,g]=b,h=0;if(e.some(a=>0!==m[a])){for(c in f)r.o(f,c)&&(r.m[c]=f[c]);g&&g(r)}for(a&&a(b);h<e.length;h++)d=e[h],r.o(m,d)&&m[d]&&m[d][0](),m[d]=0},(o=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var t={};return(()=>{r.r(t),r.d(t,{BaseComponent:()=>b,BaseComponentContext:()=>l,DynamicDataProvider:()=>h,DynamicDataSourceManager:()=>j,DynamicProperty:()=>o,RenderableComponentContext:()=>n,ThemeChangedEventArgs:()=>w,ThemeProvider:()=>x,_CacheMissReason:()=>C,_DeferredTeamsAppsClient:()=>E,_LegacyThirdPartyFabricCoreLoader:()=>p,_PropertyMetadataProcessor:()=>u,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>y,_WebPartLoadDataCollector:()=>D,_ensureIsolatedDomainUrl:()=>A});var a=r(676);class b{get _dynamicDataSourceId(){return`${this.manifest.componentType}.${this.manifest.id}.${this.instanceId}`}dispose(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)}get _containsDynamicDataSource(){return this._isWebPartAndContainsDynamicDataSource}set _containsDynamicDataSource(a){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&a}get isDisposed(){return this._isDisposed}get manifest(){return this.context.manifest}onDispose(){}get instanceId(){return this.context.instanceId}get componentId(){return this.context.manifest.id}_initializeContext(a){this.context=a,this.onProvideServices(a.serviceScope),a.serviceScope._isFinished||a.serviceScope.finish(),this.context._initializeDynamicData(this,a.serviceScope)}onProvideServices(a){}constructor(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}}(0,a._ES5CompatibleClass)(b);var c=r(207),d=r(408),e=r(909),f=r(745),g=r(529);class h{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._pendingRegistrations=new Map,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)}dispose(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _isProviderInitialized(){return this._isInitialized}get _dynamicDataSourceId(){return this._component._dynamicDataSourceId}registerSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerSourceChanged(b,this._component,c),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b})):this._addPendingRegistration({id:b,callback:c})}unregisterSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback");let d={id:b,callback:c};this._isRegistrationPending(d)?this._removePendingRegistration(d):(this._dynamicDataManager.unregisterSourceChanged(b,this._component,c),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:b}))}registerPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerPropertyChanged(b,c,this._component,d),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b,propertyId:c})):this._addPendingRegistration({id:b,propertyId:c,callback:d})}unregisterPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback");let e={id:b,callback:d,propertyId:c};this._isRegistrationPending(e)?this._removePendingRegistration(e):(this._dynamicDataManager.unregisterPropertyChanged(b,c,this._component,d),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:b,propertyId:c}))}registerAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,b)}unregisterAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,b)}getAvailableSources(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()}getAvailableSourcesByComponentId(b){this._assertNotDisposed(),this._assertInitialized();let c=[];return this._dynamicDataManager.getSources().forEach(d=>{b.equals(a.Guid.tryParse(d.metadata.componentId)||a.Guid.empty)&&c.push(d)}),c}tryGetSource(b){return this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"id"),this._dynamicDataManager.tryGetSource(b)}_getData(b){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"dataReference");let c=this._dynamicDataManager.tryGetSource(b.sourceId);if(!c)return;let d=c.getPropertyValue(b.property);return d&&b.propertyPath&&b.propertyPath.split(".").forEach(a=>{let b=a.split(h._jsonPathArrayRegex),c=b[0];if(d)if(Array.isArray(d)){let a=[];d.forEach(b=>{b.hasOwnProperty(c)&&a.push(b[c])});let e=b[1];if(b.length>1){let b=[];a.forEach(a=>{a.forEach(a=>b.push(a))}),a=b}d=isNaN(parseInt(e,10))?a:a[e]}else d=d.hasOwnProperty(c)?d[c]:void 0}),d}_onSourcesChanged(){let a=this.getAvailableSources().map(a=>a.id);this._pendingRegistrations.forEach(b=>{-1!==a.indexOf(b.id)&&(b.propertyId?(this._dynamicDataManager.registerPropertyChanged(b.id,b.propertyId,this._component,b.callback),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b.id,propertyId:b.propertyId})):(this._dynamicDataManager.registerSourceChanged(b.id,this._component,b.callback),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b.id})),this._removePendingRegistration(b))})}_assertNotDisposed(){if(this.isDisposed)throw Error("Dynamic Data Provider has been disposed")}_assertInitialized(){if(!this._isInitialized)throw Error("Dynamic Data Provider has not been initialized.")}_addPendingRegistration(a){this._isRegistrationPending(a)||this._pendingRegistrations.set(a.id+(a.propertyId||""),{id:a.id,propertyId:a.propertyId,callback:a.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)}_removePendingRegistration(a){this._pendingRegistrations.delete(a.id+(a.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)}_isRegistrationPending(a){return this._pendingRegistrations.has(a.id+(a.propertyId||""))}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataProvider",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}}h._jsonPathArrayRegex=new RegExp(/\[|\]/);let i=JSON.parse('{"lw":"[!!--##Śōũŕćē ĥàś àĺŕēàďŷ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","Yt":"[!!--##\\u0022śēńďĒvēńţ()\\u0022 mũśţ ƀē ďēƒĩńēď, ŵĥēń ţĥē \\u0022àĺĺōŵēďĒvēńţś()\\u0022 ŕēţũŕńś à ńōń-ēmƥţŷ vàĺũē.##--!!]","C3":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ƀēēń ďĩśƥōśēď.##--!!]","ad":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","fT":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","Qm":"[!!--##\\u0022{0}\\u0022 ēvēńţ ĩś ńōţ àĺĺōŵēď ōń ţĥē śōũŕćē \\u0022{1}\\u0022##--!!]"}');class j{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0}dispose(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _source(){return this._src}initializeSource(b){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw Error(i.lw);this._callableFunctions=b,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),a._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})}notifySourceChanged(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)}notifyPropertyChanged(b){a.Validate.isNonemptyString(b,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,b)}updateMetadata(b){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),a.Validate.isNotNullOrUndefined(b,"metadata"),b.alias=void 0,b.componentId=void 0,b.instanceId=void 0,(0,g.merge)(this._src.metadata,b)}get sourceId(){return this._src?this._src.id:""}_buildSource(a){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw Error(i.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(a),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}}_allowedEvents(){return this._callableFunctions.allowedEvents?(0,g.cloneDeep)(this._callableFunctions.allowedEvents()):void 0}_sendEvent(a,b){this._assertValidEvent(a),this._callableFunctions.sendEvent(a,b)}_getPropertyDefinitions(){return(0,g.cloneDeep)(this._callableFunctions.getPropertyDefinitions())}_getPropertyValue(b){a.Validate.isNotNullOrUndefined(b,"propertyId");let d=new c._QosMonitor("DynamicDataSourceManager._getPropertyValue"),e=b.split(h._jsonPathArrayRegex);try{let a=this._callableFunctions.getPropertyValue(e.shift());if(e.length>0&&!isNaN(parseInt(e[0],10))&&Array.isArray(a)&&(a=a[e[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(a=>a.id===b).length&&this._src)throw Error(`Property "${b}" doesn't exist in source "${this._src.metadata.title}"`);return d.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,propertyId:b}),(0,g.cloneDeep)(a)}catch(a){d.writeUnexpectedFailure("NoPropertyId",a,{propertyId:b}),c._TraceLogger.logErrorData({source:this._logSource,error:a});return}}_getPropertyDefinitionsAsync(){return Promise.resolve(this._getPropertyDefinitions())}_getPropertyValueAsync(a){return Promise.resolve(this._getPropertyValue(a))}_allowedEventsAsync(){return Promise.resolve(this._allowedEvents())}_getAnnotatedPropertyValue(b){let d;a.Validate.isNotNullOrUndefined(b,"propertyId");let e=new c._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue"),{getAnnotatedPropertyValue:f}=this._callableFunctions;if(f){let a=b.split(h._jsonPathArrayRegex);try{d=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(d)&&(d=d[a[0]]),e.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,annotatedPropertyValue:d,propertyId:b})}catch(a){e.writeExpectedFailure("NoAnnotatedPropertyValue",a,{annotatedPropertyValue:d}),c._TraceLogger.logErrorData({source:this._logSource,error:a}),d=void 0}}return d||(d={sampleValue:this._getPropertyValue(b),metadata:void 0}),d}_getAnnotatedPropertyValueAsync(a){return Promise.resolve(this._getAnnotatedPropertyValue(a))}_buildMetadata(a){let b={title:a.manifest.alias,alias:a.manifest.alias,componentId:a.componentId,instanceId:a.instanceId};return a.title&&(b.title=a.title),a.description&&(b.description=a.description),b}_assertValidEvent(b){if(!this._allowedEvents()||-1===(0,g.findIndex)(this._allowedEvents(),{name:b}))throw Error(a.Text.format(i.Qm,b,this._src.metadata.title))}_assertNotDisposed(){if(this.isDisposed)throw Error(i.C3)}_assertInitialized(){if(!this._isInitialized)throw Error(i.ad)}_assertSourceExists(){if(!this._src)throw Error(i.fT)}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataSourceManager",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=c._LogSource.create("DynamicDataSourceManager")}}class k{get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)}get serviceScope(){return this._serviceScope}get instanceId(){return this._instanceId}get pageContext(){return this._pageContext}_initializeDynamicData(a,b){this._dynamicDataProvider._initialize(a,b),this._dynamicDataSourceManager._initialize(a,b)}get dynamicDataProvider(){return this._dynamicDataProvider}get dynamicDataSourceManager(){return this._dynamicDataSourceManager}get aadHttpClientFactory(){return this._aadClientFactory}get aadTokenProviderFactory(){return this._aadTokenFactory}get msGraphClientFactory(){return this._msGraphClientFactory}get httpClient(){return this._httpClient}get spHttpClient(){return this._spHttpClient}get isServedFromLocalhost(){return this._isServedFromLocalhost}constructor(b){this._isDisposed=!1,this._isServedFromLocalhost=!1,a.Validate.isNotNullOrUndefined(b,"parameters"),a.Validate.isNotNullOrUndefined(b.manifest,"manifest"),this.manifest=b.manifest;const{loaderConfig:f}=this.manifest;f&&f.internalModuleBaseUrls&&f.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(f.internalModuleBaseUrls[0])),a.Validate.isNotNullOrUndefined(b.parentServiceScope,"parentServiceScope"),this._serviceScope=b.parentServiceScope.startNewChild(),a.Validate.isNotNullOrUndefined(b.loggingTag,"loggingTag"),this.serviceScope.provide(c._logSourceServiceKey,c._LogSource.create(b.loggingTag)),a.Validate.isNonemptyString(b.instanceId,"instanceId"),this._instanceId=b.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(e.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(e.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(e.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(e.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(e.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(a._ClientManifestData.serviceKey,new a._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(()=>{this._pageContext=this.serviceScope.consume(d.PageContext.serviceKey)}),this._dynamicDataProvider=new h,this._dynamicDataSourceManager=new j}}(0,a._ES5CompatibleClass)(k);let l=k;class m extends l{constructor(b){const{domElement:c,...d}=b;super(d),a.Validate.isNotNullOrUndefined(c,"domElement"),this.domElement=c}}(0,a._ES5CompatibleClass)(m);let n=m;class o{setReference(b){a.Validate.isNonemptyString(b,"id"),this._value=void 0,this._hasValue=!1;let c=new Set;this._callbacks.forEach(a=>c.add(a)),this._callbacks.forEach(a=>this.unregister(a)),this._reference=new f.DynamicDataReference(b),this._sourceId=this._getSourceId(),c.forEach(a=>this.register(a)),this._onSourcesChangedCallback()}setValue(a){let b=this._callbacks;b.forEach(a=>this.unregister(a)),this._value=a,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,b.forEach(a=>this.register(a))}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(a=>this.unregister(a)),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)}toJSON(){return this._hasValue?{__type:o._TYPE_NAME,value:this._value}:{__type:o._TYPE_NAME,reference:this._reference}}get reference(){return this._hasValue?void 0:this._reference.reference}get value(){return this._value}tryGetValue(){if(this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return;a.Validate.isNotDisposed(this,"DynamicData");let b=this._getData();return Array.isArray(b)&&(b=b[0]),b}tryGetValues(){let a=this._getData();return a?Array.isArray(a)||(a=[a]):a=[],a}tryGetSource(){return this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")?void 0:(a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId))}register(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._callbacks.add(b)):this._pendingCallbacks.add(b)}unregister(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._pendingCallbacks.delete(b),this._callbacks.delete(b)}hasDefaultCallback(){return!!this._defaultCallback}removeDefaultCallback(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)}_getSourceId(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId}_getProperty(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property}_getPropertyPath(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""}_cloneDeep(a){return g.cloneDeepWith(a,a=>{if(a instanceof h)return a})}_getPropertyToRegister(){return a.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(o._arrayRegex)[0]}_onSourcesChangedCallback(){if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){let a=this._pendingCallbacks;this._pendingCallbacks=new Set,a.forEach(a=>{this.register(a),a()})}}_getData(){let b;if(!this.isDisposed||a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){a.Validate.isNotDisposed(this,"DynamicData");try{b=this._hasValue?this._value:this._provider._getData(this._reference)}catch(a){throw c._EngagementLogger.logEventWithLogEntry(a),a}return c._EngagementLogger.logEventWithLogEntry(new c._LogEntry("DynamicData","getData",c._LogType.Event,{value:JSON.stringify(this.value)})),b}}constructor(b,c){this._hasValue=!1,this._isDisposed=!1,a.Validate.isNotNullOrUndefined(b,"provider"),this.__type=o._TYPE_NAME,this._provider=b,this._callbacks=new Set,this._pendingCallbacks=new Set,c?(this._pendingCallbacks.add(c),this._defaultCallback=c):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}}o._TYPE_NAME="DynamicProperty",o._arrayRegex=new RegExp(/\[\*\]$/);class p{static load(a){return a||p._isLoaded?Promise.resolve():r.e(386).then(r.bind(r,103)).then(()=>{p._isLoaded=!0})}static forceLoad(a){try{if(p._shouldLoad(a))return r.e(386).then(r.bind(r,103)).then(()=>{p._isLoaded=!0});return Promise.resolve()}catch(a){return Promise.reject(a)}}static needLegacyFabricCss(b){if(b.isInternal)return!1;if(void 0===b.loadLegacyFabricCss){let c=a.Version._tryParseSPFxVersion(b);return!c||c.lessThan(a.Version.parse("1.8.2"))}return b.loadLegacyFabricCss}static _shouldLoad(a){return!p._isLoaded&&p.needLegacyFabricCss(a)}}p._isLoaded=!1;var q=r(86),s=r(356);class u{static serializeServerProcessedData(b,c,d){this._forEachPropertyWithMetaData(b,c,(b,e,f)=>{e.shouldNotPersist&&g.set(c,b,void 0);let h=g.get(c,b);if(d&&"string"==typeof h&&h){if(d.htmlStrings&&e.isHtmlString?d.htmlStrings[b]=h:d.searchablePlainTexts&&e.isSearchablePlainText?d.searchablePlainTexts[b]=h:d.links&&e.isLink?d.links[b]=h:d.imageSources&&e.isImageSource?d.imageSources[b]=h:e.isComponentDependency&&(d.componentDependencies||(d.componentDependencies={}),d.componentDependencies[b]=h),e.customMetadata){let h={};if(e&&e.customMetadata)for(let[b,i]of Object.entries(e.customMetadata)){let j=i;void 0!==f&&-1!==j.indexOf("*")&&(j=j.replace("*",f.toString())),this._validateAndIteratePath(j,c,(f,i)=>{if(void 0===i&&e.customMetadata){let e=g.get(c,f);d&&void 0!==e&&(a._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?h[f]=e:h[b]=e)}})}d.customMetadata||(d.customMetadata={}),d.customMetadata[b]=h}g.set(c,b,void 0)}})}static reInstateServerProcessedData(b,d,e,f){let h=new Set;if(f&&this._forEachPropertyWithMetaData(b,d,(b,e)=>{if((0,q.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===f.id&&a._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;let i=g.get(d,b);if(void 0!==i){let a=new c._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(e.isLink&&(h.add(b),this._isSafeLink(i)||(a.writeUnexpectedFailure("ClearingLinkProperty",Error(b)),g.set(d,b,void 0))),e.isHtmlString){h.add(b);let c=this._getSafeHtml(i);c!==i&&(a.writeUnexpectedFailure("SettingSafeHtml",Error(b)),g.set(d,b,c))}a.hasEnded||a.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==f.id&&e.isHtmlString&&g.set(d,b,void 0)}),e){for(let a of[e.htmlStrings,e.searchablePlainTexts,e.imageSources,e.links,e.componentDependencies])if(a)for(let[b,c]of Object.entries(a))"string"==typeof c&&(g.set(d,b,c),(0,q.X)()&&h.delete(b))}(0,q.X)()&&f&&h.size>0&&new c._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:f.id,properties:Array.from(h).join(",")})}static _isSafeLink(a){try{let b=new URL(a);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{try{let b=new URL(a,window.location.origin);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{return!1}}}static _getSafeHtml(a){return s.SafeHtml.clean(a)}static _forEachPropertyWithMetaData(a,b,c){if(a)for(let[d,e]of Object.entries(a))this._validateAndIteratePath(d,b,(a,b)=>{c(a,e,b)})}static _validateAndIteratePath(a,b,c){let d=(a.match(/\*/g)||[]).length;if(d>1)return void console.warn(`Invalid property path: Multiple wildcards are not supported in property paths.
2
+ ,424(a){a.exports=i},676(a){a.exports=b},207(a){a.exports=c},745(a){a.exports=f},909(a){a.exports=e},529(a){a.exports=g},408(a){a.exports=d},356(a){a.exports=h},519(a){a.exports=j}},q={};function r(a){var b=q[a];if(void 0!==b)return b.exports;var c=q[a]={exports:{}};return p[a](c,c.exports,r),c.exports}r.m=p;var s={"216":"YqFzgyVjLuhO8w7HzC63s/jt1GKpbjr6+eq0yE4oiL0=","386":"rksY1A7OQvPjyEo6xsP0NDYfPdrYxffnANlpmHqRwVc="};r.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return r.d(b,{a:b}),b},r.d=(a,b)=>{for(var c in b)r.o(b,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((b,c)=>(r.f[c](a,b),b),[])),r.u=a=>"chunk."+({216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"})[a]+"_none_"+({216:"f9e7cc08e9d9393a3c31",386:"7af1ee40a1508a652eb3"})[a]+".js",r.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},r.l=(a,b,c,d)=>{if(k[a])return void k[a].push(b);if(void 0!==c)for(var e,f,g=document.getElementsByTagName("script"),h=0;h<g.length;h++){var i=g[h];if(i.getAttribute("src")==a||i.getAttribute("data-webpack")=="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c){e=i;break}}if(!e){f=!0,(e=document.createElement("script")).charset="utf-8",r.nc&&e.setAttribute("nonce",r.nc),e.setAttribute("data-webpack","467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c),e.src=a,0!==e.src.indexOf(window.location.origin+"/")&&(e.crossOrigin="anonymous");var j="sha256-"+(s[d]||"Missing+Integrity+Hash+For+Script+Aborting=");j&&(e.integrity=j)}k[a]=[b];var l=(b,c)=>{e.onerror=e.onload=null,clearTimeout(m);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=l.bind(null,e.onerror),e.onload=l.bind(null,e.onload),f&&document.head.appendChild(e)},r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.p=(l=a?a.src:"").slice(0,l.lastIndexOf("/")+1),m={826:0},r.f.j=(a,b)=>{var c=r.o(m,a)?m[a]:void 0;if(0!==c)if(c)b.push(c[2]);else{var d=new Promise((b,d)=>c=m[a]=[b,d]);b.push(c[2]=d);var e=r.p+r.u(a),f=Error();r.l(e,b=>{if(r.o(m,a)&&(0!==(c=m[a])&&(m[a]=void 0),c)){var d=b&&("load"===b.type?"missing":b.type),e=b&&b.target&&b.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+e+")",f.name="ChunkLoadError",f.type=d,f.request=e,c[1](f)}},"chunk-"+a,a)}},n=(a,b)=>{var c,d,[e,f,g]=b,h=0;if(e.some(a=>0!==m[a])){for(c in f)r.o(f,c)&&(r.m[c]=f[c]);g&&g(r)}for(a&&a(b);h<e.length;h++)d=e[h],r.o(m,d)&&m[d]&&m[d][0](),m[d]=0},(o=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var t={};return(()=>{r.r(t),r.d(t,{BaseComponent:()=>b,BaseComponentContext:()=>l,DynamicDataProvider:()=>h,DynamicDataSourceManager:()=>j,DynamicProperty:()=>o,RenderableComponentContext:()=>n,ThemeChangedEventArgs:()=>w,ThemeProvider:()=>x,_CacheMissReason:()=>C,_DeferredTeamsAppsClient:()=>E,_LegacyThirdPartyFabricCoreLoader:()=>p,_PropertyMetadataProcessor:()=>u,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>y,_WebPartLoadDataCollector:()=>D,_ensureIsolatedDomainUrl:()=>A});var a=r(676);class b{get _dynamicDataSourceId(){return`${this.manifest.componentType}.${this.manifest.id}.${this.instanceId}`}dispose(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)}get _containsDynamicDataSource(){return this._isWebPartAndContainsDynamicDataSource}set _containsDynamicDataSource(a){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&a}get isDisposed(){return this._isDisposed}get manifest(){return this.context.manifest}onDispose(){}get instanceId(){return this.context.instanceId}get componentId(){return this.context.manifest.id}_initializeContext(a){this.context=a,this.onProvideServices(a.serviceScope),a.serviceScope._isFinished||a.serviceScope.finish(),this.context._initializeDynamicData(this,a.serviceScope)}onProvideServices(a){}constructor(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}}(0,a._ES5CompatibleClass)(b);var c=r(207),d=r(408),e=r(909),f=r(745),g=r(529);class h{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._pendingRegistrations=new Map,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)}dispose(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _isProviderInitialized(){return this._isInitialized}get _dynamicDataSourceId(){return this._component._dynamicDataSourceId}registerSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerSourceChanged(b,this._component,c),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b})):this._addPendingRegistration({id:b,callback:c})}unregisterSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback");let d={id:b,callback:c};this._isRegistrationPending(d)?this._removePendingRegistration(d):(this._dynamicDataManager.unregisterSourceChanged(b,this._component,c),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:b}))}registerPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerPropertyChanged(b,c,this._component,d),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b,propertyId:c})):this._addPendingRegistration({id:b,propertyId:c,callback:d})}unregisterPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback");let e={id:b,callback:d,propertyId:c};this._isRegistrationPending(e)?this._removePendingRegistration(e):(this._dynamicDataManager.unregisterPropertyChanged(b,c,this._component,d),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:b,propertyId:c}))}registerAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,b)}unregisterAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,b)}getAvailableSources(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()}getAvailableSourcesByComponentId(b){this._assertNotDisposed(),this._assertInitialized();let c=[];return this._dynamicDataManager.getSources().forEach(d=>{b.equals(a.Guid.tryParse(d.metadata.componentId)||a.Guid.empty)&&c.push(d)}),c}tryGetSource(b){return this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"id"),this._dynamicDataManager.tryGetSource(b)}_getData(b){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"dataReference");let c=this._dynamicDataManager.tryGetSource(b.sourceId);if(!c)return;let d=c.getPropertyValue(b.property);return d&&b.propertyPath&&b.propertyPath.split(".").forEach(a=>{let b=a.split(h._jsonPathArrayRegex),c=b[0];if(d)if(Array.isArray(d)){let a=[];d.forEach(b=>{b.hasOwnProperty(c)&&a.push(b[c])});let e=b[1];if(b.length>1){let b=[];a.forEach(a=>{a.forEach(a=>b.push(a))}),a=b}d=isNaN(parseInt(e,10))?a:a[e]}else d=d.hasOwnProperty(c)?d[c]:void 0}),d}_onSourcesChanged(){let a=this.getAvailableSources().map(a=>a.id);this._pendingRegistrations.forEach(b=>{-1!==a.indexOf(b.id)&&(b.propertyId?(this._dynamicDataManager.registerPropertyChanged(b.id,b.propertyId,this._component,b.callback),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b.id,propertyId:b.propertyId})):(this._dynamicDataManager.registerSourceChanged(b.id,this._component,b.callback),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b.id})),this._removePendingRegistration(b))})}_assertNotDisposed(){if(this.isDisposed)throw Error("Dynamic Data Provider has been disposed")}_assertInitialized(){if(!this._isInitialized)throw Error("Dynamic Data Provider has not been initialized.")}_addPendingRegistration(a){this._isRegistrationPending(a)||this._pendingRegistrations.set(a.id+(a.propertyId||""),{id:a.id,propertyId:a.propertyId,callback:a.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)}_removePendingRegistration(a){this._pendingRegistrations.delete(a.id+(a.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)}_isRegistrationPending(a){return this._pendingRegistrations.has(a.id+(a.propertyId||""))}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataProvider",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}}h._jsonPathArrayRegex=new RegExp(/\[|\]/);let i=JSON.parse('{"lw":"[!!--##Śōũŕćē ĥàś àĺŕēàďŷ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","Yt":"[!!--##\\u0022śēńďĒvēńţ()\\u0022 mũśţ ƀē ďēƒĩńēď, ŵĥēń ţĥē \\u0022àĺĺōŵēďĒvēńţś()\\u0022 ŕēţũŕńś à ńōń-ēmƥţŷ vàĺũē.##--!!]","C3":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ƀēēń ďĩśƥōśēď.##--!!]","ad":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","fT":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","Qm":"[!!--##\\u0022{0}\\u0022 ēvēńţ ĩś ńōţ àĺĺōŵēď ōń ţĥē śōũŕćē \\u0022{1}\\u0022##--!!]"}');class j{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0}dispose(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _source(){return this._src}initializeSource(b){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw Error(i.lw);this._callableFunctions=b,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),a._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})}notifySourceChanged(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)}notifyPropertyChanged(b){a.Validate.isNonemptyString(b,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,b)}updateMetadata(b){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),a.Validate.isNotNullOrUndefined(b,"metadata"),b.alias=void 0,b.componentId=void 0,b.instanceId=void 0,(0,g.merge)(this._src.metadata,b)}get sourceId(){return this._src?this._src.id:""}_buildSource(a){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw Error(i.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(a),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}}_allowedEvents(){return this._callableFunctions.allowedEvents?(0,g.cloneDeep)(this._callableFunctions.allowedEvents()):void 0}_sendEvent(a,b){this._assertValidEvent(a),this._callableFunctions.sendEvent(a,b)}_getPropertyDefinitions(){return(0,g.cloneDeep)(this._callableFunctions.getPropertyDefinitions())}_getPropertyValue(b){a.Validate.isNotNullOrUndefined(b,"propertyId");let d=new c._QosMonitor("DynamicDataSourceManager._getPropertyValue"),e=b.split(h._jsonPathArrayRegex);try{let a=this._callableFunctions.getPropertyValue(e.shift());if(e.length>0&&!isNaN(parseInt(e[0],10))&&Array.isArray(a)&&(a=a[e[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(a=>a.id===b).length&&this._src)throw Error(`Property "${b}" doesn't exist in source "${this._src.metadata.title}"`);return d.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,propertyId:b}),(0,g.cloneDeep)(a)}catch(a){d.writeUnexpectedFailure("NoPropertyId",a,{propertyId:b}),c._TraceLogger.logErrorData({source:this._logSource,error:a});return}}_getPropertyDefinitionsAsync(){return Promise.resolve(this._getPropertyDefinitions())}_getPropertyValueAsync(a){return Promise.resolve(this._getPropertyValue(a))}_allowedEventsAsync(){return Promise.resolve(this._allowedEvents())}_getAnnotatedPropertyValue(b){let d;a.Validate.isNotNullOrUndefined(b,"propertyId");let e=new c._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue"),{getAnnotatedPropertyValue:f}=this._callableFunctions;if(f){let a=b.split(h._jsonPathArrayRegex);try{d=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(d)&&(d=d[a[0]]),e.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,annotatedPropertyValue:d,propertyId:b})}catch(a){e.writeExpectedFailure("NoAnnotatedPropertyValue",a,{annotatedPropertyValue:d}),c._TraceLogger.logErrorData({source:this._logSource,error:a}),d=void 0}}return d||(d={sampleValue:this._getPropertyValue(b),metadata:void 0}),d}_getAnnotatedPropertyValueAsync(a){return Promise.resolve(this._getAnnotatedPropertyValue(a))}_buildMetadata(a){let b={title:a.manifest.alias,alias:a.manifest.alias,componentId:a.componentId,instanceId:a.instanceId};return a.title&&(b.title=a.title),a.description&&(b.description=a.description),b}_assertValidEvent(b){if(!this._allowedEvents()||-1===(0,g.findIndex)(this._allowedEvents(),{name:b}))throw Error(a.Text.format(i.Qm,b,this._src.metadata.title))}_assertNotDisposed(){if(this.isDisposed)throw Error(i.C3)}_assertInitialized(){if(!this._isInitialized)throw Error(i.ad)}_assertSourceExists(){if(!this._src)throw Error(i.fT)}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataSourceManager",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=c._LogSource.create("DynamicDataSourceManager")}}class k{get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)}get serviceScope(){return this._serviceScope}get instanceId(){return this._instanceId}get pageContext(){return this._pageContext}_initializeDynamicData(a,b){this._dynamicDataProvider._initialize(a,b),this._dynamicDataSourceManager._initialize(a,b)}get dynamicDataProvider(){return this._dynamicDataProvider}get dynamicDataSourceManager(){return this._dynamicDataSourceManager}get aadHttpClientFactory(){return this._aadClientFactory}get aadTokenProviderFactory(){return this._aadTokenFactory}get msGraphClientFactory(){return this._msGraphClientFactory}get httpClient(){return this._httpClient}get spHttpClient(){return this._spHttpClient}get isServedFromLocalhost(){return this._isServedFromLocalhost}constructor(b){this._isDisposed=!1,this._isServedFromLocalhost=!1,a.Validate.isNotNullOrUndefined(b,"parameters"),a.Validate.isNotNullOrUndefined(b.manifest,"manifest"),this.manifest=b.manifest;const{loaderConfig:f}=this.manifest;f&&f.internalModuleBaseUrls&&f.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(f.internalModuleBaseUrls[0])),a.Validate.isNotNullOrUndefined(b.parentServiceScope,"parentServiceScope"),this._serviceScope=b.parentServiceScope.startNewChild(),a.Validate.isNotNullOrUndefined(b.loggingTag,"loggingTag"),this.serviceScope.provide(c._logSourceServiceKey,c._LogSource.create(b.loggingTag)),a.Validate.isNonemptyString(b.instanceId,"instanceId"),this._instanceId=b.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(e.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(e.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(e.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(e.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(e.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(a._ClientManifestData.serviceKey,new a._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(()=>{this._pageContext=this.serviceScope.consume(d.PageContext.serviceKey)}),this._dynamicDataProvider=new h,this._dynamicDataSourceManager=new j}}(0,a._ES5CompatibleClass)(k);let l=k;class m extends l{constructor(b){const{domElement:c,...d}=b;super(d),a.Validate.isNotNullOrUndefined(c,"domElement"),this.domElement=c}}(0,a._ES5CompatibleClass)(m);let n=m;class o{setReference(b){a.Validate.isNonemptyString(b,"id"),this._value=void 0,this._hasValue=!1;let c=new Set;this._callbacks.forEach(a=>c.add(a)),this._callbacks.forEach(a=>this.unregister(a)),this._reference=new f.DynamicDataReference(b),this._sourceId=this._getSourceId(),c.forEach(a=>this.register(a)),this._onSourcesChangedCallback()}setValue(a){let b=this._callbacks;b.forEach(a=>this.unregister(a)),this._value=a,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,b.forEach(a=>this.register(a))}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(a=>this.unregister(a)),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)}toJSON(){return this._hasValue?{__type:o._TYPE_NAME,value:this._value}:{__type:o._TYPE_NAME,reference:this._reference}}get reference(){return this._hasValue?void 0:this._reference.reference}get value(){return this._value}tryGetValue(){if(this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return;a.Validate.isNotDisposed(this,"DynamicData");let b=this._getData();return Array.isArray(b)&&(b=b[0]),b}tryGetValues(){let a=this._getData();return a?Array.isArray(a)||(a=[a]):a=[],a}tryGetSource(){return this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")?void 0:(a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId))}register(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._callbacks.add(b)):this._pendingCallbacks.add(b)}unregister(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._pendingCallbacks.delete(b),this._callbacks.delete(b)}hasDefaultCallback(){return!!this._defaultCallback}removeDefaultCallback(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)}_getSourceId(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId}_getProperty(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property}_getPropertyPath(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""}_cloneDeep(a){return g.cloneDeepWith(a,a=>{if(a instanceof h)return a})}_getPropertyToRegister(){return a.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(o._arrayRegex)[0]}_onSourcesChangedCallback(){if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){let a=this._pendingCallbacks;this._pendingCallbacks=new Set,a.forEach(a=>{this.register(a),a()})}}_getData(){let b;if(!this.isDisposed||a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){a.Validate.isNotDisposed(this,"DynamicData");try{b=this._hasValue?this._value:this._provider._getData(this._reference)}catch(a){throw c._EngagementLogger.logEventWithLogEntry(a),a}return c._EngagementLogger.logEventWithLogEntry(new c._LogEntry("DynamicData","getData",c._LogType.Event,{value:JSON.stringify(this.value)})),b}}constructor(b,c){this._hasValue=!1,this._isDisposed=!1,a.Validate.isNotNullOrUndefined(b,"provider"),this.__type=o._TYPE_NAME,this._provider=b,this._callbacks=new Set,this._pendingCallbacks=new Set,c?(this._pendingCallbacks.add(c),this._defaultCallback=c):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}}o._TYPE_NAME="DynamicProperty",o._arrayRegex=new RegExp(/\[\*\]$/);class p{static load(a){return a||p._isLoaded?Promise.resolve():r.e(386).then(r.bind(r,294)).then(()=>{p._isLoaded=!0})}static forceLoad(a){try{if(p._shouldLoad(a))return r.e(386).then(r.bind(r,294)).then(()=>{p._isLoaded=!0});return Promise.resolve()}catch(a){return Promise.reject(a)}}static needLegacyFabricCss(b){if(b.isInternal)return!1;if(void 0===b.loadLegacyFabricCss){let c=a.Version._tryParseSPFxVersion(b);return!c||c.lessThan(a.Version.parse("1.8.2"))}return b.loadLegacyFabricCss}static _shouldLoad(a){return!p._isLoaded&&p.needLegacyFabricCss(a)}}p._isLoaded=!1;var q=r(86),s=r(356);class u{static serializeServerProcessedData(b,c,d){this._forEachPropertyWithMetaData(b,c,(b,e,f)=>{e.shouldNotPersist&&g.set(c,b,void 0);let h=g.get(c,b);if(d&&"string"==typeof h&&h){if(d.htmlStrings&&e.isHtmlString?d.htmlStrings[b]=h:d.searchablePlainTexts&&e.isSearchablePlainText?d.searchablePlainTexts[b]=h:d.links&&e.isLink?d.links[b]=h:d.imageSources&&e.isImageSource?d.imageSources[b]=h:e.isComponentDependency&&(d.componentDependencies||(d.componentDependencies={}),d.componentDependencies[b]=h),e.customMetadata){let h={};if(e&&e.customMetadata)for(let[b,i]of Object.entries(e.customMetadata)){let j=i;void 0!==f&&-1!==j.indexOf("*")&&(j=j.replace("*",f.toString())),this._validateAndIteratePath(j,c,(f,i)=>{if(void 0===i&&e.customMetadata){let e=g.get(c,f);d&&void 0!==e&&(a._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?h[f]=e:h[b]=e)}})}d.customMetadata||(d.customMetadata={}),d.customMetadata[b]=h}g.set(c,b,void 0)}})}static reInstateServerProcessedData(b,d,e,f){let h=new Set;if(f&&this._forEachPropertyWithMetaData(b,d,(b,e)=>{if((0,q.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===f.id&&a._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;let i=g.get(d,b);if(void 0!==i){let a=new c._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(e.isLink&&(h.add(b),this._isSafeLink(i)||(a.writeUnexpectedFailure("ClearingLinkProperty",Error(b)),g.set(d,b,void 0))),e.isHtmlString){h.add(b);let c=this._getSafeHtml(i);c!==i&&(a.writeUnexpectedFailure("SettingSafeHtml",Error(b)),g.set(d,b,c))}a.hasEnded||a.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==f.id&&e.isHtmlString&&g.set(d,b,void 0)}),e){for(let a of[e.htmlStrings,e.searchablePlainTexts,e.imageSources,e.links,e.componentDependencies])if(a)for(let[b,c]of Object.entries(a))"string"==typeof c&&(g.set(d,b,c),(0,q.X)()&&h.delete(b))}(0,q.X)()&&f&&h.size>0&&new c._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:f.id,properties:Array.from(h).join(",")})}static _isSafeLink(a){try{let b=new URL(a);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{try{let b=new URL(a,window.location.origin);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{return!1}}}static _getSafeHtml(a){return s.SafeHtml.clean(a)}static _forEachPropertyWithMetaData(a,b,c){if(a)for(let[d,e]of Object.entries(a))this._validateAndIteratePath(d,b,(a,b)=>{c(a,e,b)})}static _validateAndIteratePath(a,b,c){let d=(a.match(/\*/g)||[]).length;if(d>1)return void console.warn(`Invalid property path: Multiple wildcards are not supported in property paths.
3
3
  Entry with path '${a}' got ignored in the properties metadata.`);if(1===d){let d=a.indexOf("[*]");if(d<-1)return void console.warn(`Invalid property path: Wildcards are only supported inside brackets to select array
4
4
  indices as in 'foo[*].bar'. Entry with path '${a}' got ignored in the properties metadata.`);{let e=a.substr(0,d),f=g.get(b,e);if(!f)return void console.warn(`Invalid property path: Could not find an array named '${e}' in the properties.
5
5
  Entry with path '${a}' got ignored in the properties metadata.`);for(let b=0;b<f.length;b++)c(a.replace("*",`${b}`),b)}}else c(a)}}let v={htmlString:1,link:2,imageSource:3,searchablePlainText:4};class w extends a.SPEventArgs{}class x{get _themeChangedEventName(){return x._themeChangedEventNameLiteral+this._id}_clearTheme(){this._theme=void 0,this._themeV2=void 0,this._raiseEvent()}_setTheme(b,c){a.Validate.isNotNullOrUndefined(b,"theme"),this._theme=Object.freeze(b),c&&(this._themeV2=Object.freeze(c)),this._raiseEvent()}tryGetTheme(){return this._theme}tryGetThemeV2(){return this._themeV2}_raiseEvent(){a._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme,themeV2:this._themeV2})}constructor(b,c,d){this._id=x._instanceCount++,this.themeChangedEvent=new a.SPEvent(this._themeChangedEventName),c&&(this._theme=Object.freeze(c)),d&&(this._themeV2=Object.freeze(d))}}x.serviceKey=a.ServiceKey.create("sp-component-base.ThemeProvider",x),x._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",x._instanceCount=0,r(424).loadStyles(".s_NEWFn_o5ljQ{background-color:transparent;height:100%;margin:5px;position:relative;width:100%}.s__9-NN_o5ljQ{fill:#f4f4f4}",!0);class y{static createShimmer(a,b,c,d,e){a=a||100,b=b||100;let f=document.createElement("div");f.className="s_NEWFn_o5ljQ";let g=document.createElement("div"),h=.9*b/9,i=2*(h=Math.min(16,h)),j=h,k=j+i,l=k+i,m="s__9-NN_o5ljQ";g.innerHTML=`<svg width=${a} height=${b} viewBox="0 0 ${a} ${b}" version="1.1"
@@ -1,5 +1,5 @@
1
1
  (()=>{var a=document.currentScript;define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0",["@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-page-context","@microsoft/sp-http","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","@msinternal/sp-safehtml","@microsoft/load-themed-styles","@msinternal/sp-telemetry"],(b,c,d,e,f,g,h,i,j)=>(()=>{"use strict";var k,l,m,n,o,p={86(a,b,c){c.d(b,{T:()=>e,X:()=>f});var d=c(676);function e(){return d._SPFlight.isEnabled(60693)}function f(){return d._SPFlight.isEnabled(61389)}}
2
- ,424(a){a.exports=i},676(a){a.exports=b},207(a){a.exports=c},745(a){a.exports=f},909(a){a.exports=e},529(a){a.exports=g},408(a){a.exports=d},356(a){a.exports=h},519(a){a.exports=j}},q={};function r(a){var b=q[a];if(void 0!==b)return b.exports;var c=q[a]={exports:{}};return p[a](c,c.exports,r),c.exports}r.m=p;var s={"216":"YqFzgyVjLuhO8w7HzC63s/jt1GKpbjr6+eq0yE4oiL0=","386":"cFeqXYPW6nXocZvdbBN/107i+x19wnk23Qu8OtfpuIE="};r.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return r.d(b,{a:b}),b},r.d=(a,b)=>{for(var c in b)r.o(b,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((b,c)=>(r.f[c](a,b),b),[])),r.u=a=>"chunk."+({216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"})[a]+"_none_"+({216:"27d3c7c1d01080e4f131",386:"b7f7978a3e90166c361b"})[a]+".js",r.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},r.l=(a,b,c,d)=>{if(k[a])return void k[a].push(b);if(void 0!==c)for(var e,f,g=document.getElementsByTagName("script"),h=0;h<g.length;h++){var i=g[h];if(i.getAttribute("src")==a||i.getAttribute("data-webpack")=="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c){e=i;break}}if(!e){f=!0,(e=document.createElement("script")).charset="utf-8",r.nc&&e.setAttribute("nonce",r.nc),e.setAttribute("data-webpack","467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c),e.src=a,0!==e.src.indexOf(window.location.origin+"/")&&(e.crossOrigin="anonymous");var j="sha256-"+(s[d]||"Missing+Integrity+Hash+For+Script+Aborting=");j&&(e.integrity=j)}k[a]=[b];var l=(b,c)=>{e.onerror=e.onload=null,clearTimeout(m);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=l.bind(null,e.onerror),e.onload=l.bind(null,e.onload),f&&document.head.appendChild(e)},r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.p=(l=a?a.src:"").slice(0,l.lastIndexOf("/")+1),m={826:0},r.f.j=(a,b)=>{var c=r.o(m,a)?m[a]:void 0;if(0!==c)if(c)b.push(c[2]);else{var d=new Promise((b,d)=>c=m[a]=[b,d]);b.push(c[2]=d);var e=r.p+r.u(a),f=Error();r.l(e,b=>{if(r.o(m,a)&&(0!==(c=m[a])&&(m[a]=void 0),c)){var d=b&&("load"===b.type?"missing":b.type),e=b&&b.target&&b.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+e+")",f.name="ChunkLoadError",f.type=d,f.request=e,c[1](f)}},"chunk-"+a,a)}},n=(a,b)=>{var c,d,[e,f,g]=b,h=0;if(e.some(a=>0!==m[a])){for(c in f)r.o(f,c)&&(r.m[c]=f[c]);g&&g(r)}for(a&&a(b);h<e.length;h++)d=e[h],r.o(m,d)&&m[d]&&m[d][0](),m[d]=0},(o=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var t={};return(()=>{r.r(t),r.d(t,{BaseComponent:()=>b,BaseComponentContext:()=>l,DynamicDataProvider:()=>h,DynamicDataSourceManager:()=>j,DynamicProperty:()=>o,RenderableComponentContext:()=>n,ThemeChangedEventArgs:()=>w,ThemeProvider:()=>x,_CacheMissReason:()=>C,_DeferredTeamsAppsClient:()=>E,_LegacyThirdPartyFabricCoreLoader:()=>p,_PropertyMetadataProcessor:()=>u,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>y,_WebPartLoadDataCollector:()=>D,_ensureIsolatedDomainUrl:()=>A});var a=r(676);class b{get _dynamicDataSourceId(){return`${this.manifest.componentType}.${this.manifest.id}.${this.instanceId}`}dispose(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)}get _containsDynamicDataSource(){return this._isWebPartAndContainsDynamicDataSource}set _containsDynamicDataSource(a){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&a}get isDisposed(){return this._isDisposed}get manifest(){return this.context.manifest}onDispose(){}get instanceId(){return this.context.instanceId}get componentId(){return this.context.manifest.id}_initializeContext(a){this.context=a,this.onProvideServices(a.serviceScope),a.serviceScope._isFinished||a.serviceScope.finish(),this.context._initializeDynamicData(this,a.serviceScope)}onProvideServices(a){}constructor(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}}(0,a._ES5CompatibleClass)(b);var c=r(207),d=r(408),e=r(909),f=r(745),g=r(529);class h{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._pendingRegistrations=new Map,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)}dispose(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _isProviderInitialized(){return this._isInitialized}get _dynamicDataSourceId(){return this._component._dynamicDataSourceId}registerSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerSourceChanged(b,this._component,c),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b})):this._addPendingRegistration({id:b,callback:c})}unregisterSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback");let d={id:b,callback:c};this._isRegistrationPending(d)?this._removePendingRegistration(d):(this._dynamicDataManager.unregisterSourceChanged(b,this._component,c),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:b}))}registerPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerPropertyChanged(b,c,this._component,d),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b,propertyId:c})):this._addPendingRegistration({id:b,propertyId:c,callback:d})}unregisterPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback");let e={id:b,callback:d,propertyId:c};this._isRegistrationPending(e)?this._removePendingRegistration(e):(this._dynamicDataManager.unregisterPropertyChanged(b,c,this._component,d),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:b,propertyId:c}))}registerAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,b)}unregisterAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,b)}getAvailableSources(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()}getAvailableSourcesByComponentId(b){this._assertNotDisposed(),this._assertInitialized();let c=[];return this._dynamicDataManager.getSources().forEach(d=>{b.equals(a.Guid.tryParse(d.metadata.componentId)||a.Guid.empty)&&c.push(d)}),c}tryGetSource(b){return this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"id"),this._dynamicDataManager.tryGetSource(b)}_getData(b){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"dataReference");let c=this._dynamicDataManager.tryGetSource(b.sourceId);if(!c)return;let d=c.getPropertyValue(b.property);return d&&b.propertyPath&&b.propertyPath.split(".").forEach(a=>{let b=a.split(h._jsonPathArrayRegex),c=b[0];if(d)if(Array.isArray(d)){let a=[];d.forEach(b=>{b.hasOwnProperty(c)&&a.push(b[c])});let e=b[1];if(b.length>1){let b=[];a.forEach(a=>{a.forEach(a=>b.push(a))}),a=b}d=isNaN(parseInt(e,10))?a:a[e]}else d=d.hasOwnProperty(c)?d[c]:void 0}),d}_onSourcesChanged(){let a=this.getAvailableSources().map(a=>a.id);this._pendingRegistrations.forEach(b=>{-1!==a.indexOf(b.id)&&(b.propertyId?(this._dynamicDataManager.registerPropertyChanged(b.id,b.propertyId,this._component,b.callback),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b.id,propertyId:b.propertyId})):(this._dynamicDataManager.registerSourceChanged(b.id,this._component,b.callback),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b.id})),this._removePendingRegistration(b))})}_assertNotDisposed(){if(this.isDisposed)throw Error("Dynamic Data Provider has been disposed")}_assertInitialized(){if(!this._isInitialized)throw Error("Dynamic Data Provider has not been initialized.")}_addPendingRegistration(a){this._isRegistrationPending(a)||this._pendingRegistrations.set(a.id+(a.propertyId||""),{id:a.id,propertyId:a.propertyId,callback:a.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)}_removePendingRegistration(a){this._pendingRegistrations.delete(a.id+(a.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)}_isRegistrationPending(a){return this._pendingRegistrations.has(a.id+(a.propertyId||""))}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataProvider",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}}h._jsonPathArrayRegex=new RegExp(/\[|\]/);let i=JSON.parse('{"lw":"Śōũŕćē ĥàś àĺŕēàďŷ ƀēēń ĩńĩţĩàĺĩźēď.","Yt":"\\u0022śēńďĒvēńţ()\\u0022 mũśţ ƀē ďēƒĩńēď, ŵĥēń ţĥē \\u0022àĺĺōŵēďĒvēńţś()\\u0022 ŕēţũŕńś à ńōń-ēmƥţŷ vàĺũē.","C3":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ƀēēń ďĩśƥōśēď.","ad":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","fT":"Ďŷńàmĩć Ďàţà Śōũŕćē ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","Qm":"\\u0022{0}\\u0022 ēvēńţ ĩś ńōţ àĺĺōŵēď ōń ţĥē śōũŕćē \\u0022{1}\\u0022"}');class j{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0}dispose(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _source(){return this._src}initializeSource(b){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw Error(i.lw);this._callableFunctions=b,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),a._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})}notifySourceChanged(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)}notifyPropertyChanged(b){a.Validate.isNonemptyString(b,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,b)}updateMetadata(b){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),a.Validate.isNotNullOrUndefined(b,"metadata"),b.alias=void 0,b.componentId=void 0,b.instanceId=void 0,(0,g.merge)(this._src.metadata,b)}get sourceId(){return this._src?this._src.id:""}_buildSource(a){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw Error(i.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(a),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}}_allowedEvents(){return this._callableFunctions.allowedEvents?(0,g.cloneDeep)(this._callableFunctions.allowedEvents()):void 0}_sendEvent(a,b){this._assertValidEvent(a),this._callableFunctions.sendEvent(a,b)}_getPropertyDefinitions(){return(0,g.cloneDeep)(this._callableFunctions.getPropertyDefinitions())}_getPropertyValue(b){a.Validate.isNotNullOrUndefined(b,"propertyId");let d=new c._QosMonitor("DynamicDataSourceManager._getPropertyValue"),e=b.split(h._jsonPathArrayRegex);try{let a=this._callableFunctions.getPropertyValue(e.shift());if(e.length>0&&!isNaN(parseInt(e[0],10))&&Array.isArray(a)&&(a=a[e[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(a=>a.id===b).length&&this._src)throw Error(`Property "${b}" doesn't exist in source "${this._src.metadata.title}"`);return d.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,propertyId:b}),(0,g.cloneDeep)(a)}catch(a){d.writeUnexpectedFailure("NoPropertyId",a,{propertyId:b}),c._TraceLogger.logErrorData({source:this._logSource,error:a});return}}_getPropertyDefinitionsAsync(){return Promise.resolve(this._getPropertyDefinitions())}_getPropertyValueAsync(a){return Promise.resolve(this._getPropertyValue(a))}_allowedEventsAsync(){return Promise.resolve(this._allowedEvents())}_getAnnotatedPropertyValue(b){let d;a.Validate.isNotNullOrUndefined(b,"propertyId");let e=new c._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue"),{getAnnotatedPropertyValue:f}=this._callableFunctions;if(f){let a=b.split(h._jsonPathArrayRegex);try{d=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(d)&&(d=d[a[0]]),e.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,annotatedPropertyValue:d,propertyId:b})}catch(a){e.writeExpectedFailure("NoAnnotatedPropertyValue",a,{annotatedPropertyValue:d}),c._TraceLogger.logErrorData({source:this._logSource,error:a}),d=void 0}}return d||(d={sampleValue:this._getPropertyValue(b),metadata:void 0}),d}_getAnnotatedPropertyValueAsync(a){return Promise.resolve(this._getAnnotatedPropertyValue(a))}_buildMetadata(a){let b={title:a.manifest.alias,alias:a.manifest.alias,componentId:a.componentId,instanceId:a.instanceId};return a.title&&(b.title=a.title),a.description&&(b.description=a.description),b}_assertValidEvent(b){if(!this._allowedEvents()||-1===(0,g.findIndex)(this._allowedEvents(),{name:b}))throw Error(a.Text.format(i.Qm,b,this._src.metadata.title))}_assertNotDisposed(){if(this.isDisposed)throw Error(i.C3)}_assertInitialized(){if(!this._isInitialized)throw Error(i.ad)}_assertSourceExists(){if(!this._src)throw Error(i.fT)}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataSourceManager",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=c._LogSource.create("DynamicDataSourceManager")}}class k{get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)}get serviceScope(){return this._serviceScope}get instanceId(){return this._instanceId}get pageContext(){return this._pageContext}_initializeDynamicData(a,b){this._dynamicDataProvider._initialize(a,b),this._dynamicDataSourceManager._initialize(a,b)}get dynamicDataProvider(){return this._dynamicDataProvider}get dynamicDataSourceManager(){return this._dynamicDataSourceManager}get aadHttpClientFactory(){return this._aadClientFactory}get aadTokenProviderFactory(){return this._aadTokenFactory}get msGraphClientFactory(){return this._msGraphClientFactory}get httpClient(){return this._httpClient}get spHttpClient(){return this._spHttpClient}get isServedFromLocalhost(){return this._isServedFromLocalhost}constructor(b){this._isDisposed=!1,this._isServedFromLocalhost=!1,a.Validate.isNotNullOrUndefined(b,"parameters"),a.Validate.isNotNullOrUndefined(b.manifest,"manifest"),this.manifest=b.manifest;const{loaderConfig:f}=this.manifest;f&&f.internalModuleBaseUrls&&f.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(f.internalModuleBaseUrls[0])),a.Validate.isNotNullOrUndefined(b.parentServiceScope,"parentServiceScope"),this._serviceScope=b.parentServiceScope.startNewChild(),a.Validate.isNotNullOrUndefined(b.loggingTag,"loggingTag"),this.serviceScope.provide(c._logSourceServiceKey,c._LogSource.create(b.loggingTag)),a.Validate.isNonemptyString(b.instanceId,"instanceId"),this._instanceId=b.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(e.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(e.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(e.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(e.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(e.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(a._ClientManifestData.serviceKey,new a._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(()=>{this._pageContext=this.serviceScope.consume(d.PageContext.serviceKey)}),this._dynamicDataProvider=new h,this._dynamicDataSourceManager=new j}}(0,a._ES5CompatibleClass)(k);let l=k;class m extends l{constructor(b){const{domElement:c,...d}=b;super(d),a.Validate.isNotNullOrUndefined(c,"domElement"),this.domElement=c}}(0,a._ES5CompatibleClass)(m);let n=m;class o{setReference(b){a.Validate.isNonemptyString(b,"id"),this._value=void 0,this._hasValue=!1;let c=new Set;this._callbacks.forEach(a=>c.add(a)),this._callbacks.forEach(a=>this.unregister(a)),this._reference=new f.DynamicDataReference(b),this._sourceId=this._getSourceId(),c.forEach(a=>this.register(a)),this._onSourcesChangedCallback()}setValue(a){let b=this._callbacks;b.forEach(a=>this.unregister(a)),this._value=a,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,b.forEach(a=>this.register(a))}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(a=>this.unregister(a)),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)}toJSON(){return this._hasValue?{__type:o._TYPE_NAME,value:this._value}:{__type:o._TYPE_NAME,reference:this._reference}}get reference(){return this._hasValue?void 0:this._reference.reference}get value(){return this._value}tryGetValue(){if(this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return;a.Validate.isNotDisposed(this,"DynamicData");let b=this._getData();return Array.isArray(b)&&(b=b[0]),b}tryGetValues(){let a=this._getData();return a?Array.isArray(a)||(a=[a]):a=[],a}tryGetSource(){return this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")?void 0:(a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId))}register(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._callbacks.add(b)):this._pendingCallbacks.add(b)}unregister(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._pendingCallbacks.delete(b),this._callbacks.delete(b)}hasDefaultCallback(){return!!this._defaultCallback}removeDefaultCallback(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)}_getSourceId(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId}_getProperty(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property}_getPropertyPath(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""}_cloneDeep(a){return g.cloneDeepWith(a,a=>{if(a instanceof h)return a})}_getPropertyToRegister(){return a.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(o._arrayRegex)[0]}_onSourcesChangedCallback(){if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){let a=this._pendingCallbacks;this._pendingCallbacks=new Set,a.forEach(a=>{this.register(a),a()})}}_getData(){let b;if(!this.isDisposed||a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){a.Validate.isNotDisposed(this,"DynamicData");try{b=this._hasValue?this._value:this._provider._getData(this._reference)}catch(a){throw c._EngagementLogger.logEventWithLogEntry(a),a}return c._EngagementLogger.logEventWithLogEntry(new c._LogEntry("DynamicData","getData",c._LogType.Event,{value:JSON.stringify(this.value)})),b}}constructor(b,c){this._hasValue=!1,this._isDisposed=!1,a.Validate.isNotNullOrUndefined(b,"provider"),this.__type=o._TYPE_NAME,this._provider=b,this._callbacks=new Set,this._pendingCallbacks=new Set,c?(this._pendingCallbacks.add(c),this._defaultCallback=c):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}}o._TYPE_NAME="DynamicProperty",o._arrayRegex=new RegExp(/\[\*\]$/);class p{static load(a){return a||p._isLoaded?Promise.resolve():r.e(386).then(r.bind(r,103)).then(()=>{p._isLoaded=!0})}static forceLoad(a){try{if(p._shouldLoad(a))return r.e(386).then(r.bind(r,103)).then(()=>{p._isLoaded=!0});return Promise.resolve()}catch(a){return Promise.reject(a)}}static needLegacyFabricCss(b){if(b.isInternal)return!1;if(void 0===b.loadLegacyFabricCss){let c=a.Version._tryParseSPFxVersion(b);return!c||c.lessThan(a.Version.parse("1.8.2"))}return b.loadLegacyFabricCss}static _shouldLoad(a){return!p._isLoaded&&p.needLegacyFabricCss(a)}}p._isLoaded=!1;var q=r(86),s=r(356);class u{static serializeServerProcessedData(b,c,d){this._forEachPropertyWithMetaData(b,c,(b,e,f)=>{e.shouldNotPersist&&g.set(c,b,void 0);let h=g.get(c,b);if(d&&"string"==typeof h&&h){if(d.htmlStrings&&e.isHtmlString?d.htmlStrings[b]=h:d.searchablePlainTexts&&e.isSearchablePlainText?d.searchablePlainTexts[b]=h:d.links&&e.isLink?d.links[b]=h:d.imageSources&&e.isImageSource?d.imageSources[b]=h:e.isComponentDependency&&(d.componentDependencies||(d.componentDependencies={}),d.componentDependencies[b]=h),e.customMetadata){let h={};if(e&&e.customMetadata)for(let[b,i]of Object.entries(e.customMetadata)){let j=i;void 0!==f&&-1!==j.indexOf("*")&&(j=j.replace("*",f.toString())),this._validateAndIteratePath(j,c,(f,i)=>{if(void 0===i&&e.customMetadata){let e=g.get(c,f);d&&void 0!==e&&(a._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?h[f]=e:h[b]=e)}})}d.customMetadata||(d.customMetadata={}),d.customMetadata[b]=h}g.set(c,b,void 0)}})}static reInstateServerProcessedData(b,d,e,f){let h=new Set;if(f&&this._forEachPropertyWithMetaData(b,d,(b,e)=>{if((0,q.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===f.id&&a._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;let i=g.get(d,b);if(void 0!==i){let a=new c._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(e.isLink&&(h.add(b),this._isSafeLink(i)||(a.writeUnexpectedFailure("ClearingLinkProperty",Error(b)),g.set(d,b,void 0))),e.isHtmlString){h.add(b);let c=this._getSafeHtml(i);c!==i&&(a.writeUnexpectedFailure("SettingSafeHtml",Error(b)),g.set(d,b,c))}a.hasEnded||a.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==f.id&&e.isHtmlString&&g.set(d,b,void 0)}),e){for(let a of[e.htmlStrings,e.searchablePlainTexts,e.imageSources,e.links,e.componentDependencies])if(a)for(let[b,c]of Object.entries(a))"string"==typeof c&&(g.set(d,b,c),(0,q.X)()&&h.delete(b))}(0,q.X)()&&f&&h.size>0&&new c._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:f.id,properties:Array.from(h).join(",")})}static _isSafeLink(a){try{let b=new URL(a);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{try{let b=new URL(a,window.location.origin);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{return!1}}}static _getSafeHtml(a){return s.SafeHtml.clean(a)}static _forEachPropertyWithMetaData(a,b,c){if(a)for(let[d,e]of Object.entries(a))this._validateAndIteratePath(d,b,(a,b)=>{c(a,e,b)})}static _validateAndIteratePath(a,b,c){let d=(a.match(/\*/g)||[]).length;if(d>1)return void console.warn(`Invalid property path: Multiple wildcards are not supported in property paths.
2
+ ,424(a){a.exports=i},676(a){a.exports=b},207(a){a.exports=c},745(a){a.exports=f},909(a){a.exports=e},529(a){a.exports=g},408(a){a.exports=d},356(a){a.exports=h},519(a){a.exports=j}},q={};function r(a){var b=q[a];if(void 0!==b)return b.exports;var c=q[a]={exports:{}};return p[a](c,c.exports,r),c.exports}r.m=p;var s={"216":"YqFzgyVjLuhO8w7HzC63s/jt1GKpbjr6+eq0yE4oiL0=","386":"rksY1A7OQvPjyEo6xsP0NDYfPdrYxffnANlpmHqRwVc="};r.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return r.d(b,{a:b}),b},r.d=(a,b)=>{for(var c in b)r.o(b,c)&&!r.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((b,c)=>(r.f[c](a,b),b),[])),r.u=a=>"chunk."+({216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"})[a]+"_none_"+({216:"f9e7cc08e9d9393a3c31",386:"7af1ee40a1508a652eb3"})[a]+".js",r.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},r.l=(a,b,c,d)=>{if(k[a])return void k[a].push(b);if(void 0!==c)for(var e,f,g=document.getElementsByTagName("script"),h=0;h<g.length;h++){var i=g[h];if(i.getAttribute("src")==a||i.getAttribute("data-webpack")=="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c){e=i;break}}if(!e){f=!0,(e=document.createElement("script")).charset="utf-8",r.nc&&e.setAttribute("nonce",r.nc),e.setAttribute("data-webpack","467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0:"+c),e.src=a,0!==e.src.indexOf(window.location.origin+"/")&&(e.crossOrigin="anonymous");var j="sha256-"+(s[d]||"Missing+Integrity+Hash+For+Script+Aborting=");j&&(e.integrity=j)}k[a]=[b];var l=(b,c)=>{e.onerror=e.onload=null,clearTimeout(m);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},m=setTimeout(l.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=l.bind(null,e.onerror),e.onload=l.bind(null,e.onload),f&&document.head.appendChild(e)},r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},r.p=(l=a?a.src:"").slice(0,l.lastIndexOf("/")+1),m={826:0},r.f.j=(a,b)=>{var c=r.o(m,a)?m[a]:void 0;if(0!==c)if(c)b.push(c[2]);else{var d=new Promise((b,d)=>c=m[a]=[b,d]);b.push(c[2]=d);var e=r.p+r.u(a),f=Error();r.l(e,b=>{if(r.o(m,a)&&(0!==(c=m[a])&&(m[a]=void 0),c)){var d=b&&("load"===b.type?"missing":b.type),e=b&&b.target&&b.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+e+")",f.name="ChunkLoadError",f.type=d,f.request=e,c[1](f)}},"chunk-"+a,a)}},n=(a,b)=>{var c,d,[e,f,g]=b,h=0;if(e.some(a=>0!==m[a])){for(c in f)r.o(f,c)&&(r.m[c]=f[c]);g&&g(r)}for(a&&a(b);h<e.length;h++)d=e[h],r.o(m,d)&&m[d]&&m[d][0](),m[d]=0},(o=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.24.0"]||[]).forEach(n.bind(null,0)),o.push=n.bind(null,o.push.bind(o));var t={};return(()=>{r.r(t),r.d(t,{BaseComponent:()=>b,BaseComponentContext:()=>l,DynamicDataProvider:()=>h,DynamicDataSourceManager:()=>j,DynamicProperty:()=>o,RenderableComponentContext:()=>n,ThemeChangedEventArgs:()=>w,ThemeProvider:()=>x,_CacheMissReason:()=>C,_DeferredTeamsAppsClient:()=>E,_LegacyThirdPartyFabricCoreLoader:()=>p,_PropertyMetadataProcessor:()=>u,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>y,_WebPartLoadDataCollector:()=>D,_ensureIsolatedDomainUrl:()=>A});var a=r(676);class b{get _dynamicDataSourceId(){return`${this.manifest.componentType}.${this.manifest.id}.${this.instanceId}`}dispose(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)}get _containsDynamicDataSource(){return this._isWebPartAndContainsDynamicDataSource}set _containsDynamicDataSource(a){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&a}get isDisposed(){return this._isDisposed}get manifest(){return this.context.manifest}onDispose(){}get instanceId(){return this.context.instanceId}get componentId(){return this.context.manifest.id}_initializeContext(a){this.context=a,this.onProvideServices(a.serviceScope),a.serviceScope._isFinished||a.serviceScope.finish(),this.context._initializeDynamicData(this,a.serviceScope)}onProvideServices(a){}constructor(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}}(0,a._ES5CompatibleClass)(b);var c=r(207),d=r(408),e=r(909),f=r(745),g=r(529);class h{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._pendingRegistrations=new Map,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)}dispose(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _isProviderInitialized(){return this._isInitialized}get _dynamicDataSourceId(){return this._component._dynamicDataSourceId}registerSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerSourceChanged(b,this._component,c),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b})):this._addPendingRegistration({id:b,callback:c})}unregisterSourceChanged(b,c){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNotNullOrUndefined(c,"callback");let d={id:b,callback:c};this._isRegistrationPending(d)?this._removePendingRegistration(d):(this._dynamicDataManager.unregisterSourceChanged(b,this._component,c),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:b}))}registerPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback"),-1!==this.getAvailableSources().map(a=>a.id).indexOf(b)?(this._dynamicDataManager.registerPropertyChanged(b,c,this._component,d),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b,propertyId:c})):this._addPendingRegistration({id:b,propertyId:c,callback:d})}unregisterPropertyChanged(b,c,d){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNonemptyString(b,"sourceId"),a.Validate.isNonemptyString(c,"propertyId"),a.Validate.isNotNullOrUndefined(d,"callback");let e={id:b,callback:d,propertyId:c};this._isRegistrationPending(e)?this._removePendingRegistration(e):(this._dynamicDataManager.unregisterPropertyChanged(b,c,this._component,d),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:b,propertyId:c}))}registerAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,b)}unregisterAvailableSourcesChanged(b){a.Validate.isNotNullOrUndefined(b,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,b)}getAvailableSources(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()}getAvailableSourcesByComponentId(b){this._assertNotDisposed(),this._assertInitialized();let c=[];return this._dynamicDataManager.getSources().forEach(d=>{b.equals(a.Guid.tryParse(d.metadata.componentId)||a.Guid.empty)&&c.push(d)}),c}tryGetSource(b){return this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"id"),this._dynamicDataManager.tryGetSource(b)}_getData(b){this._assertNotDisposed(),this._assertInitialized(),a.Validate.isNotNullOrUndefined(b,"dataReference");let c=this._dynamicDataManager.tryGetSource(b.sourceId);if(!c)return;let d=c.getPropertyValue(b.property);return d&&b.propertyPath&&b.propertyPath.split(".").forEach(a=>{let b=a.split(h._jsonPathArrayRegex),c=b[0];if(d)if(Array.isArray(d)){let a=[];d.forEach(b=>{b.hasOwnProperty(c)&&a.push(b[c])});let e=b[1];if(b.length>1){let b=[];a.forEach(a=>{a.forEach(a=>b.push(a))}),a=b}d=isNaN(parseInt(e,10))?a:a[e]}else d=d.hasOwnProperty(c)?d[c]:void 0}),d}_onSourcesChanged(){let a=this.getAvailableSources().map(a=>a.id);this._pendingRegistrations.forEach(b=>{-1!==a.indexOf(b.id)&&(b.propertyId?(this._dynamicDataManager.registerPropertyChanged(b.id,b.propertyId,this._component,b.callback),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:b.id,propertyId:b.propertyId})):(this._dynamicDataManager.registerSourceChanged(b.id,this._component,b.callback),this._logFeatureEntry("RegisterSourceChanged",{sourceId:b.id})),this._removePendingRegistration(b))})}_assertNotDisposed(){if(this.isDisposed)throw Error("Dynamic Data Provider has been disposed")}_assertInitialized(){if(!this._isInitialized)throw Error("Dynamic Data Provider has not been initialized.")}_addPendingRegistration(a){this._isRegistrationPending(a)||this._pendingRegistrations.set(a.id+(a.propertyId||""),{id:a.id,propertyId:a.propertyId,callback:a.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)}_removePendingRegistration(a){this._pendingRegistrations.delete(a.id+(a.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)}_isRegistrationPending(a){return this._pendingRegistrations.has(a.id+(a.propertyId||""))}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataProvider",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}}h._jsonPathArrayRegex=new RegExp(/\[|\]/);let i=JSON.parse('{"lw":"Śōũŕćē ĥàś àĺŕēàďŷ ƀēēń ĩńĩţĩàĺĩźēď.","Yt":"\\u0022śēńďĒvēńţ()\\u0022 mũśţ ƀē ďēƒĩńēď, ŵĥēń ţĥē \\u0022àĺĺōŵēďĒvēńţś()\\u0022 ŕēţũŕńś à ńōń-ēmƥţŷ vàĺũē.","C3":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ƀēēń ďĩśƥōśēď.","ad":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","fT":"Ďŷńàmĩć Ďàţà Śōũŕćē ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","Qm":"\\u0022{0}\\u0022 ēvēńţ ĩś ńōţ àĺĺōŵēď ōń ţĥē śōũŕćē \\u0022{1}\\u0022"}');class j{_initialize(b,c){a.Validate.isNotNullOrUndefined(b,"component"),a.Validate.isNotNullOrUndefined(c,"serviceScope"),this._component=b,this._dynamicDataManager=c.consume(f._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0}dispose(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)}get isDisposed(){return this._isDisposed}get _source(){return this._src}initializeSource(b){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw Error(i.lw);this._callableFunctions=b,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),a._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})}notifySourceChanged(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)}notifyPropertyChanged(b){a.Validate.isNonemptyString(b,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,b)}updateMetadata(b){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),a.Validate.isNotNullOrUndefined(b,"metadata"),b.alias=void 0,b.componentId=void 0,b.instanceId=void 0,(0,g.merge)(this._src.metadata,b)}get sourceId(){return this._src?this._src.id:""}_buildSource(a){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw Error(i.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(a),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}}_allowedEvents(){return this._callableFunctions.allowedEvents?(0,g.cloneDeep)(this._callableFunctions.allowedEvents()):void 0}_sendEvent(a,b){this._assertValidEvent(a),this._callableFunctions.sendEvent(a,b)}_getPropertyDefinitions(){return(0,g.cloneDeep)(this._callableFunctions.getPropertyDefinitions())}_getPropertyValue(b){a.Validate.isNotNullOrUndefined(b,"propertyId");let d=new c._QosMonitor("DynamicDataSourceManager._getPropertyValue"),e=b.split(h._jsonPathArrayRegex);try{let a=this._callableFunctions.getPropertyValue(e.shift());if(e.length>0&&!isNaN(parseInt(e[0],10))&&Array.isArray(a)&&(a=a[e[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(a=>a.id===b).length&&this._src)throw Error(`Property "${b}" doesn't exist in source "${this._src.metadata.title}"`);return d.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,propertyId:b}),(0,g.cloneDeep)(a)}catch(a){d.writeUnexpectedFailure("NoPropertyId",a,{propertyId:b}),c._TraceLogger.logErrorData({source:this._logSource,error:a});return}}_getPropertyDefinitionsAsync(){return Promise.resolve(this._getPropertyDefinitions())}_getPropertyValueAsync(a){return Promise.resolve(this._getPropertyValue(a))}_allowedEventsAsync(){return Promise.resolve(this._allowedEvents())}_getAnnotatedPropertyValue(b){let d;a.Validate.isNotNullOrUndefined(b,"propertyId");let e=new c._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue"),{getAnnotatedPropertyValue:f}=this._callableFunctions;if(f){let a=b.split(h._jsonPathArrayRegex);try{d=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(d)&&(d=d[a[0]]),e.writeSuccess({...this._src&&this._src.metadata||{},sourceId:this._src&&this._src.id,annotatedPropertyValue:d,propertyId:b})}catch(a){e.writeExpectedFailure("NoAnnotatedPropertyValue",a,{annotatedPropertyValue:d}),c._TraceLogger.logErrorData({source:this._logSource,error:a}),d=void 0}}return d||(d={sampleValue:this._getPropertyValue(b),metadata:void 0}),d}_getAnnotatedPropertyValueAsync(a){return Promise.resolve(this._getAnnotatedPropertyValue(a))}_buildMetadata(a){let b={title:a.manifest.alias,alias:a.manifest.alias,componentId:a.componentId,instanceId:a.instanceId};return a.title&&(b.title=a.title),a.description&&(b.description=a.description),b}_assertValidEvent(b){if(!this._allowedEvents()||-1===(0,g.findIndex)(this._allowedEvents(),{name:b}))throw Error(a.Text.format(i.Qm,b,this._src.metadata.title))}_assertNotDisposed(){if(this.isDisposed)throw Error(i.C3)}_assertInitialized(){if(!this._isInitialized)throw Error(i.ad)}_assertSourceExists(){if(!this._src)throw Error(i.fT)}_logFeatureEntry(a,b){let d=this._component.manifest.isInternal||!1,e={alias:this._component.manifest.alias,isInternal:d.toString()},f=new c._LogEntry("DynamicDataSourceManager",a,c._LogType.Event,g.merge(e,b));c._EngagementLogger.logEventWithLogEntry(f)}constructor(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=c._LogSource.create("DynamicDataSourceManager")}}class k{get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)}get serviceScope(){return this._serviceScope}get instanceId(){return this._instanceId}get pageContext(){return this._pageContext}_initializeDynamicData(a,b){this._dynamicDataProvider._initialize(a,b),this._dynamicDataSourceManager._initialize(a,b)}get dynamicDataProvider(){return this._dynamicDataProvider}get dynamicDataSourceManager(){return this._dynamicDataSourceManager}get aadHttpClientFactory(){return this._aadClientFactory}get aadTokenProviderFactory(){return this._aadTokenFactory}get msGraphClientFactory(){return this._msGraphClientFactory}get httpClient(){return this._httpClient}get spHttpClient(){return this._spHttpClient}get isServedFromLocalhost(){return this._isServedFromLocalhost}constructor(b){this._isDisposed=!1,this._isServedFromLocalhost=!1,a.Validate.isNotNullOrUndefined(b,"parameters"),a.Validate.isNotNullOrUndefined(b.manifest,"manifest"),this.manifest=b.manifest;const{loaderConfig:f}=this.manifest;f&&f.internalModuleBaseUrls&&f.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(f.internalModuleBaseUrls[0])),a.Validate.isNotNullOrUndefined(b.parentServiceScope,"parentServiceScope"),this._serviceScope=b.parentServiceScope.startNewChild(),a.Validate.isNotNullOrUndefined(b.loggingTag,"loggingTag"),this.serviceScope.provide(c._logSourceServiceKey,c._LogSource.create(b.loggingTag)),a.Validate.isNonemptyString(b.instanceId,"instanceId"),this._instanceId=b.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(e.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(e.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(e.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(e.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(e.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(a._ClientManifestData.serviceKey,new a._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(()=>{this._pageContext=this.serviceScope.consume(d.PageContext.serviceKey)}),this._dynamicDataProvider=new h,this._dynamicDataSourceManager=new j}}(0,a._ES5CompatibleClass)(k);let l=k;class m extends l{constructor(b){const{domElement:c,...d}=b;super(d),a.Validate.isNotNullOrUndefined(c,"domElement"),this.domElement=c}}(0,a._ES5CompatibleClass)(m);let n=m;class o{setReference(b){a.Validate.isNonemptyString(b,"id"),this._value=void 0,this._hasValue=!1;let c=new Set;this._callbacks.forEach(a=>c.add(a)),this._callbacks.forEach(a=>this.unregister(a)),this._reference=new f.DynamicDataReference(b),this._sourceId=this._getSourceId(),c.forEach(a=>this.register(a)),this._onSourcesChangedCallback()}setValue(a){let b=this._callbacks;b.forEach(a=>this.unregister(a)),this._value=a,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,b.forEach(a=>this.register(a))}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(a=>this.unregister(a)),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)}toJSON(){return this._hasValue?{__type:o._TYPE_NAME,value:this._value}:{__type:o._TYPE_NAME,reference:this._reference}}get reference(){return this._hasValue?void 0:this._reference.reference}get value(){return this._value}tryGetValue(){if(this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return;a.Validate.isNotDisposed(this,"DynamicData");let b=this._getData();return Array.isArray(b)&&(b=b[0]),b}tryGetValues(){let a=this._getData();return a?Array.isArray(a)||(a=[a]):a=[],a}tryGetSource(){return this.isDisposed&&!a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")?void 0:(a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId))}register(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._callbacks.add(b)):this._pendingCallbacks.add(b)}unregister(b){a.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),b),this._pendingCallbacks.delete(b),this._callbacks.delete(b)}hasDefaultCallback(){return!!this._defaultCallback}removeDefaultCallback(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)}_getSourceId(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId}_getProperty(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property}_getPropertyPath(){return a.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""}_cloneDeep(a){return g.cloneDeepWith(a,a=>{if(a instanceof h)return a})}_getPropertyToRegister(){return a.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(o._arrayRegex)[0]}_onSourcesChangedCallback(){if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){let a=this._pendingCallbacks;this._pendingCallbacks=new Set,a.forEach(a=>{this.register(a),a()})}}_getData(){let b;if(!this.isDisposed||a._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){a.Validate.isNotDisposed(this,"DynamicData");try{b=this._hasValue?this._value:this._provider._getData(this._reference)}catch(a){throw c._EngagementLogger.logEventWithLogEntry(a),a}return c._EngagementLogger.logEventWithLogEntry(new c._LogEntry("DynamicData","getData",c._LogType.Event,{value:JSON.stringify(this.value)})),b}}constructor(b,c){this._hasValue=!1,this._isDisposed=!1,a.Validate.isNotNullOrUndefined(b,"provider"),this.__type=o._TYPE_NAME,this._provider=b,this._callbacks=new Set,this._pendingCallbacks=new Set,c?(this._pendingCallbacks.add(c),this._defaultCallback=c):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}}o._TYPE_NAME="DynamicProperty",o._arrayRegex=new RegExp(/\[\*\]$/);class p{static load(a){return a||p._isLoaded?Promise.resolve():r.e(386).then(r.bind(r,294)).then(()=>{p._isLoaded=!0})}static forceLoad(a){try{if(p._shouldLoad(a))return r.e(386).then(r.bind(r,294)).then(()=>{p._isLoaded=!0});return Promise.resolve()}catch(a){return Promise.reject(a)}}static needLegacyFabricCss(b){if(b.isInternal)return!1;if(void 0===b.loadLegacyFabricCss){let c=a.Version._tryParseSPFxVersion(b);return!c||c.lessThan(a.Version.parse("1.8.2"))}return b.loadLegacyFabricCss}static _shouldLoad(a){return!p._isLoaded&&p.needLegacyFabricCss(a)}}p._isLoaded=!1;var q=r(86),s=r(356);class u{static serializeServerProcessedData(b,c,d){this._forEachPropertyWithMetaData(b,c,(b,e,f)=>{e.shouldNotPersist&&g.set(c,b,void 0);let h=g.get(c,b);if(d&&"string"==typeof h&&h){if(d.htmlStrings&&e.isHtmlString?d.htmlStrings[b]=h:d.searchablePlainTexts&&e.isSearchablePlainText?d.searchablePlainTexts[b]=h:d.links&&e.isLink?d.links[b]=h:d.imageSources&&e.isImageSource?d.imageSources[b]=h:e.isComponentDependency&&(d.componentDependencies||(d.componentDependencies={}),d.componentDependencies[b]=h),e.customMetadata){let h={};if(e&&e.customMetadata)for(let[b,i]of Object.entries(e.customMetadata)){let j=i;void 0!==f&&-1!==j.indexOf("*")&&(j=j.replace("*",f.toString())),this._validateAndIteratePath(j,c,(f,i)=>{if(void 0===i&&e.customMetadata){let e=g.get(c,f);d&&void 0!==e&&(a._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?h[f]=e:h[b]=e)}})}d.customMetadata||(d.customMetadata={}),d.customMetadata[b]=h}g.set(c,b,void 0)}})}static reInstateServerProcessedData(b,d,e,f){let h=new Set;if(f&&this._forEachPropertyWithMetaData(b,d,(b,e)=>{if((0,q.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===f.id&&a._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;let i=g.get(d,b);if(void 0!==i){let a=new c._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(e.isLink&&(h.add(b),this._isSafeLink(i)||(a.writeUnexpectedFailure("ClearingLinkProperty",Error(b)),g.set(d,b,void 0))),e.isHtmlString){h.add(b);let c=this._getSafeHtml(i);c!==i&&(a.writeUnexpectedFailure("SettingSafeHtml",Error(b)),g.set(d,b,c))}a.hasEnded||a.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==f.id&&e.isHtmlString&&g.set(d,b,void 0)}),e){for(let a of[e.htmlStrings,e.searchablePlainTexts,e.imageSources,e.links,e.componentDependencies])if(a)for(let[b,c]of Object.entries(a))"string"==typeof c&&(g.set(d,b,c),(0,q.X)()&&h.delete(b))}(0,q.X)()&&f&&h.size>0&&new c._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:f.id,properties:Array.from(h).join(",")})}static _isSafeLink(a){try{let b=new URL(a);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{try{let b=new URL(a,window.location.origin);return s.SafeHtml.isSafeLinkProtocol(b.protocol)}catch{return!1}}}static _getSafeHtml(a){return s.SafeHtml.clean(a)}static _forEachPropertyWithMetaData(a,b,c){if(a)for(let[d,e]of Object.entries(a))this._validateAndIteratePath(d,b,(a,b)=>{c(a,e,b)})}static _validateAndIteratePath(a,b,c){let d=(a.match(/\*/g)||[]).length;if(d>1)return void console.warn(`Invalid property path: Multiple wildcards are not supported in property paths.
3
3
  Entry with path '${a}' got ignored in the properties metadata.`);if(1===d){let d=a.indexOf("[*]");if(d<-1)return void console.warn(`Invalid property path: Wildcards are only supported inside brackets to select array
4
4
  indices as in 'foo[*].bar'. Entry with path '${a}' got ignored in the properties metadata.`);{let e=a.substr(0,d),f=g.get(b,e);if(!f)return void console.warn(`Invalid property path: Could not find an array named '${e}' in the properties.
5
5
  Entry with path '${a}' got ignored in the properties metadata.`);for(let b=0;b<f.length;b++)c(a.replace("*",`${b}`),b)}}else c(a)}}let v={htmlString:1,link:2,imageSource:3,searchablePlainText:4};class w extends a.SPEventArgs{}class x{get _themeChangedEventName(){return x._themeChangedEventNameLiteral+this._id}_clearTheme(){this._theme=void 0,this._themeV2=void 0,this._raiseEvent()}_setTheme(b,c){a.Validate.isNotNullOrUndefined(b,"theme"),this._theme=Object.freeze(b),c&&(this._themeV2=Object.freeze(c)),this._raiseEvent()}tryGetTheme(){return this._theme}tryGetThemeV2(){return this._themeV2}_raiseEvent(){a._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme,themeV2:this._themeV2})}constructor(b,c,d){this._id=x._instanceCount++,this.themeChangedEvent=new a.SPEvent(this._themeChangedEventName),c&&(this._theme=Object.freeze(c)),d&&(this._themeV2=Object.freeze(d))}}x.serviceKey=a.ServiceKey.create("sp-component-base.ThemeProvider",x),x._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",x._instanceCount=0,r(424).loadStyles(".s_NEWFn_o5ljQ{background-color:transparent;height:100%;margin:5px;position:relative;width:100%}.s__9-NN_o5ljQ{fill:#f4f4f4}",!0);class y{static createShimmer(a,b,c,d,e){a=a||100,b=b||100;let f=document.createElement("div");f.className="s_NEWFn_o5ljQ";let g=document.createElement("div"),h=.9*b/9,i=2*(h=Math.min(16,h)),j=h,k=j+i,l=k+i,m="s__9-NN_o5ljQ";g.innerHTML=`<svg width=${a} height=${b} viewBox="0 0 ${a} ${b}" version="1.1"
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.58.7"
8
+ "packageVersion": "7.58.12"
9
9
  }
10
10
  ]
11
11
  }
@@ -41,4 +41,5 @@ export interface IStrings {
41
41
  */
42
42
  declare const strings: IStrings;
43
43
 
44
- export default strings;
44
+ export default strings;
45
+ //# sourceMappingURL=Strings.resx.d.ts.map