"use strict";(()=>{var qR=Object.create;var fl=Object.defineProperty;var DR=Object.getOwnPropertyDescriptor;var LR=Object.getOwnPropertyNames;var MR=Object.getPrototypeOf,BR=Object.prototype.hasOwnProperty;var Id=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),zR=e=>{throw TypeError(e)};var nu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,a)=>(typeof require<"u"?require:r)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Xv=(e,r)=>()=>(e&&(r=e(e=0)),r);var T=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),FR=(e,r)=>{for(var a in r)fl(e,a,{get:r[a],enumerable:!0})},Qv=(e,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(var u=LR(r),l=0,d=u.length,p;lr[v]).bind(null,p),enumerable:!(n=DR(r,p))||n.enumerable});return e};var Y=(e,r,a)=>(a=e!=null?qR(MR(e)):{},Qv(r||!e||!e.__esModule?fl(a,"default",{value:e,enumerable:!0}):a,e)),ey=e=>Qv(fl({},"__esModule",{value:!0}),e);var VR=function(e,r){this[0]=e,this[1]=r};var ie=e=>{var r=e[Id("asyncIterator")],a=!1,n,u={};return r==null?(r=e[Id("iterator")](),n=l=>u[l]=d=>r[l](d)):(r=r.call(e),n=l=>u[l]=d=>{if(a){if(a=!1,l==="throw")throw d;return d}return a=!0,{done:!1,value:new VR(new Promise(p=>{var v=r[l](d);v instanceof Object||zR("Object expected"),p(v)}),1)}}),u[Id("iterator")]=()=>u,n("next"),"throw"in r?n("throw"):u.throw=l=>{throw l},"return"in r&&n("return"),u};var ty=T((exports,module)=>{f();if(exports.__platformBundles!==void 0)for(platformBundles=exports.__platformBundles.concat(),Reflect.deleteProperty(exports,"__platformBundles"),i=0;i{global=new Function("return this;")();ty()});var Dt=T((nj,ry)=>{f();ry.exports=OfficePlatformGlobal.ReactNative.Components});var Ue=T((aj,iu)=>{f();function $R(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}iu.exports=$R,iu.exports.__esModule=!0,iu.exports.default=iu.exports});var dl=T((uj,ai)=>{f();function Rd(e){"@babel/helpers - typeof";return ai.exports=Rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ai.exports.__esModule=!0,ai.exports.default=ai.exports,Rd(e)}ai.exports=Rd,ai.exports.__esModule=!0,ai.exports.default=ai.exports});var iy=T((lj,au)=>{f();var ny=dl().default;function NR(e,r){if(ny(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,r||"default");if(ny(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}au.exports=NR,au.exports.__esModule=!0,au.exports.default=au.exports});var qd=T((fj,ou)=>{f();var UR=dl().default,WR=iy();function jR(e){var r=WR(e,"string");return UR(r)=="symbol"?r:r+""}ou.exports=jR,ou.exports.__esModule=!0,ou.exports.default=ou.exports});var We=T((pj,uu)=>{f();var HR=qd();function ay(e,r){for(var a=0;a{f();function KR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}su.exports=KR,su.exports.__esModule=!0,su.exports.default=su.exports});var vt=T((vj,lu)=>{f();var ZR=dl().default,JR=oy();function YR(e,r){if(r&&(ZR(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JR(e)}lu.exports=YR,lu.exports.__esModule=!0,lu.exports.default=lu.exports});var ht=T((Cj,oi)=>{f();function Dd(e){return oi.exports=Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oi.exports.__esModule=!0,oi.exports.default=oi.exports,Dd(e)}oi.exports=Dd,oi.exports.__esModule=!0,oi.exports.default=oi.exports});var uy=T((bj,ui)=>{f();function Ld(e,r){return ui.exports=Ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},ui.exports.__esModule=!0,ui.exports.default=ui.exports,Ld(e,r)}ui.exports=Ld,ui.exports.__esModule=!0,ui.exports.default=ui.exports});var yt=T((xj,cu)=>{f();var XR=uy();function QR(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&XR(e,r)}cu.exports=QR,cu.exports.__esModule=!0,cu.exports.default=cu.exports});var ye=T((Tj,sy)=>{f();sy.exports=OfficePlatformGlobal.React});var cy=T((kj,ly)=>{"use strict";f();var e2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ly.exports=e2});var gy=T((Oj,py)=>{"use strict";f();var t2=cy();function fy(){}function dy(){}dy.resetWarningCache=fy;py.exports=function(){function e(n,u,l,d,p,v){if(v!==t2){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}e.isRequired=e;function r(){return e}var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:dy,resetWarningCache:fy};return a.PropTypes=a,a}});var my=T((Ij,hy)=>{f();hy.exports=gy()()});var wy=T(xt=>{"use strict";f();var Bd=Symbol.for("react.element"),zd=Symbol.for("react.portal"),pl=Symbol.for("react.fragment"),gl=Symbol.for("react.strict_mode"),hl=Symbol.for("react.profiler"),ml=Symbol.for("react.provider"),vl=Symbol.for("react.context"),a2=Symbol.for("react.server_context"),yl=Symbol.for("react.forward_ref"),Cl=Symbol.for("react.suspense"),_l=Symbol.for("react.suspense_list"),bl=Symbol.for("react.memo"),Sl=Symbol.for("react.lazy"),o2=Symbol.for("react.offscreen"),xy;xy=Symbol.for("react.module.reference");function ln(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case Bd:switch(e=e.type,e){case pl:case hl:case gl:case Cl:case _l:return e;default:switch(e=e&&e.$$typeof,e){case a2:case vl:case yl:case Sl:case bl:case ml:return e;default:return r}}case zd:return r}}}xt.ContextConsumer=vl;xt.ContextProvider=ml;xt.Element=Bd;xt.ForwardRef=yl;xt.Fragment=pl;xt.Lazy=Sl;xt.Memo=bl;xt.Portal=zd;xt.Profiler=hl;xt.StrictMode=gl;xt.Suspense=Cl;xt.SuspenseList=_l;xt.isAsyncMode=function(){return!1};xt.isConcurrentMode=function(){return!1};xt.isContextConsumer=function(e){return ln(e)===vl};xt.isContextProvider=function(e){return ln(e)===ml};xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bd};xt.isForwardRef=function(e){return ln(e)===yl};xt.isFragment=function(e){return ln(e)===pl};xt.isLazy=function(e){return ln(e)===Sl};xt.isMemo=function(e){return ln(e)===bl};xt.isPortal=function(e){return ln(e)===zd};xt.isProfiler=function(e){return ln(e)===hl};xt.isStrictMode=function(e){return ln(e)===gl};xt.isSuspense=function(e){return ln(e)===Cl};xt.isSuspenseList=function(e){return ln(e)===_l};xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pl||e===hl||e===gl||e===Cl||e===_l||e===o2||typeof e=="object"&&e!==null&&(e.$$typeof===Sl||e.$$typeof===bl||e.$$typeof===ml||e.$$typeof===vl||e.$$typeof===yl||e.$$typeof===xy||e.getModuleId!==void 0)};xt.typeOf=ln});var Fd=T((t8,Ty)=>{"use strict";f();Ty.exports=wy()});var Ry=T((n8,Iy)=>{"use strict";f();var Vd=Fd(),u2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Oy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$d={};$d[Vd.ForwardRef]=l2;$d[Vd.Memo]=Oy;function Ay(e){return Vd.isMemo(e)?Oy:$d[e.$$typeof]||u2}var c2=Object.defineProperty,f2=Object.getOwnPropertyNames,ky=Object.getOwnPropertySymbols,d2=Object.getOwnPropertyDescriptor,p2=Object.getPrototypeOf,Ey=Object.prototype;function Py(e,r,a){if(typeof r!="string"){if(Ey){var n=p2(r);n&&n!==Ey&&Py(e,n,a)}var u=f2(r);ky&&(u=u.concat(ky(r)));for(var l=Ay(e),d=Ay(r),p=0;p{"use strict";f();Object.defineProperty(vu,"__esModule",{value:!0});vu.CardSchema=void 0;var U2;(function(e){var r;(function(d){d[d.None=0]="None",d[d.Geography=1]="Geography",d[d.Stock=2]="Stock",d[d.Food=3]="Food",d[d.Addin=4]="Addin"})(r=e.Domain||(e.Domain={}));var a;(function(d){d[d.None=0]="None",d[d.ConnectedEntity=1]="ConnectedEntity",d[d.Flag=2]="Flag",d[d.Checkmark=3]="Checkmark",d[d.MoreImages=4]="MoreImages"})(a=e.CardIcon||(e.CardIcon={}));var n;(function(d){d[d.Text=0]="Text",d[d.Number=1]="Number",d[d.ImageUrl=2]="ImageUrl",d[d.Hyperlink=3]="Hyperlink",d.Entity="entity",d.Array="array"})(n=e.FieldType||(e.FieldType={}));var u;(function(d){d.Array="array"})(u=e.EntityType||(e.EntityType={}));var l;(function(d){d.Left="left",d.Center="center",d.Right="right"})(l=e.TextAlign||(e.TextAlign={}))})(U2=vu.CardSchema||(vu.CardSchema={}))});var Cu=T((H4,yu)=>{f();var W2=qd();function j2(e,r,a){return(r=W2(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}yu.exports=j2,yu.exports.__esModule=!0,yu.exports.default=yu.exports});var Ut=T((Qa,_u)=>{f();(function(){var e,r="4.17.21",a=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,v="__lodash_placeholder__",w=1,k=2,z=4,W=1,M=2,P=1,A=2,G=4,oe=8,ee=16,se=32,ce=64,L=128,K=256,fe=512,ge=30,at="...",Ae=800,nt=16,Je=1,pt=2,ze=3,ae=1/0,Se=9007199254740991,Ot=17976931348623157e292,he=NaN,D=4294967295,U=4294967294,ke=2147483647,Le=[["ary",L],["bind",P],["bindKey",A],["curry",oe],["curryRight",ee],["flip",fe],["partial",se],["partialRight",ce],["rearg",K]],je="[object Arguments]",Pt="[object Array]",_t="[object AsyncFunction]",Mt="[object Boolean]",te="[object Date]",F="[object DOMException]",V="[object Error]",H="[object Function]",Ce="[object GeneratorFunction]",ue="[object Map]",ve="[object Number]",le="[object Null]",Ee="[object Object]",Qe="[object Promise]",ct="[object Proxy]",ft="[object RegExp]",Fe="[object Set]",re="[object String]",_e="[object Symbol]",it="[object Undefined]",Ve="[object WeakMap]",tr="[object WeakSet]",wt="[object ArrayBuffer]",Jt="[object DataView]",de="[object Float32Array]",Yt="[object Float64Array]",Wt="[object Int8Array]",Xt="[object Int16Array]",_="[object Int32Array]",R="[object Uint8Array]",B="[object Uint8ClampedArray]",h="[object Uint16Array]",C="[object Uint32Array]",S=/\b__p \+= '';/g,x=/\b(__p \+=) '' \+/g,O=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,ne=RegExp(N.source),be=RegExp(X.source),He=/<%-([\s\S]+?)%>/g,Me=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,gt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ye=/^\w*$/,ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tt=/[\\^$.*+?()[\]{}|]/g,$e=RegExp(Tt.source),Pr=/^\s+/,Ir=/\s/,hi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yf=/\{\n\/\* \[wrapped with (.+)\] \*/,Cf=/,? & /,_f=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xs=/[()=,{}\[\]\/\s]/,Ke=/\\(\\)?/g,ur=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mi=/\w*$/,ws=/^[-+]0x[0-9a-f]+$/i,bf=/^0b[01]+$/i,Ma=/^\[object .+?Constructor\]$/,Ba=/^0o[0-7]+$/i,Rr=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,sr=/['\n\r\u2028\u2029\\]/g,It="\\ud800-\\udfff",br="\\u0300-\\u036f",Kn="\\ufe20-\\ufe2f",Sr="\\u20d0-\\u20ff",vi="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",qr="\\u2700-\\u27bf",Qr="a-z\\xdf-\\xf6\\xf8-\\xff",Qt="\\xac\\xb1\\xd7\\xf7",Dr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sf="\\u2000-\\u206f",yn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Zn="A-Z\\xc0-\\xd6\\xd8-\\xde",$o="\\ufe0e\\ufe0f",za="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cn="['\u2019]",Ts="[\\ud800-\\udfff]",yi="[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]",Fa="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",IT="\\d+",RT="[\\u2700-\\u27bf]",j6="[a-z\\xdf-\\xf6\\xf8-\\xff]",H6="[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",G6="\\ud83c[\\udffb-\\udfff]",K6="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])",qT="[^\\ud800-\\udfff]",xf="(?:\\ud83c[\\udde6-\\uddff]){2}",wf="[\\ud800-\\udbff][\\udc00-\\udfff]",DT="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Z6="\\u200d",J6="(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])",Y6="(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])",X6="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Q6="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",LT="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",MT="[\\ufe0e\\ufe0f]?",BT="(?:\\u200d(?:"+[qT,xf,wf].join("|")+")"+MT+LT+")*",zT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wh="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?"+BT,VT="(?:"+[RT,xf,wf].join("|")+")"+Wh,$T="(?:"+["[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?",Fa,xf,wf,Ts].join("|")+")",NT=RegExp(Cn,"g"),UT=RegExp(Fa,"g"),Tf=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+$T+Wh,"g"),WT=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[yi,DT,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[yi,"[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])","$"].join("|")+")","[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?","[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",FT,zT,IT,VT].join("|"),"g"),jT=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),HT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,GT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],KT=-1,qt={};qt[de]=qt[Yt]=qt[Wt]=qt[Xt]=qt[_]=qt[R]=qt[B]=qt[h]=qt[C]=!0,qt[je]=qt[Pt]=qt[wt]=qt[Mt]=qt[Jt]=qt[te]=qt[V]=qt[H]=qt[ue]=qt[ve]=qt[Ee]=qt[ft]=qt[Fe]=qt[re]=qt[Ve]=!1;var Rt={};Rt[je]=Rt[Pt]=Rt[wt]=Rt[Jt]=Rt[Mt]=Rt[te]=Rt[de]=Rt[Yt]=Rt[Wt]=Rt[Xt]=Rt[_]=Rt[ue]=Rt[ve]=Rt[Ee]=Rt[ft]=Rt[Fe]=Rt[re]=Rt[_e]=Rt[R]=Rt[B]=Rt[h]=Rt[C]=!0,Rt[V]=Rt[H]=Rt[Ve]=!1;var ZT={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},JT={"&":"&","<":"<",">":">",'"':""","'":"'"},YT={"&":"&","<":"<",">":">",""":'"',"'":"'"},XT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QT=parseFloat,eA=parseInt,jh=typeof global=="object"&&global&&global.Object===Object&&global,tA=typeof self=="object"&&self&&self.Object===Object&&self,lr=jh||tA||Function("return this")(),Af=typeof Qa=="object"&&Qa&&!Qa.nodeType&&Qa,aa=Af&&typeof _u=="object"&&_u&&!_u.nodeType&&_u,Hh=aa&&aa.exports===Af,kf=Hh&&jh.process,en=function(){try{var I=aa&&aa.require&&aa.require("util").types;return I||kf&&kf.binding&&kf.binding("util")}catch(j){}}(),Gh=en&&en.isArrayBuffer,Kh=en&&en.isDate,Zh=en&&en.isMap,Jh=en&&en.isRegExp,Yh=en&&en.isSet,Xh=en&&en.isTypedArray;function Wr(I,j,$){switch($.length){case 0:return I.call(j);case 1:return I.call(j,$[0]);case 2:return I.call(j,$[0],$[1]);case 3:return I.call(j,$[0],$[1],$[2])}return I.apply(j,$)}function rA(I,j,$,me){for(var Ne=-1,mt=I==null?0:I.length;++Ne-1}function Ef(I,j,$){for(var me=-1,Ne=I==null?0:I.length;++me-1;);return $}function om(I,j){for(var $=I.length;$--&&Va(j,I[$],0)>-1;);return $}function fA(I,j){for(var $=I.length,me=0;$--;)I[$]===j&&++me;return me}var dA=Rf(ZT),pA=Rf(JT);function gA(I){return"\\"+XT[I]}function hA(I,j){return I==null?e:I[j]}function $a(I){return jT.test(I)}function mA(I){return HT.test(I)}function vA(I){for(var j,$=[];!(j=I.next()).done;)$.push(j.value);return $}function Mf(I){var j=-1,$=Array(I.size);return I.forEach(function(me,Ne){$[++j]=[Ne,me]}),$}function um(I,j){return function($){return I(j($))}}function bi(I,j){for(var $=-1,me=I.length,Ne=0,mt=[];++$-1}function ik(t,o){var s=this.__data__,c=Us(s,t);return c<0?(++this.size,s.push([t,o])):s[c][1]=o,this}Jn.prototype.clear=ek,Jn.prototype.delete=tk,Jn.prototype.get=rk,Jn.prototype.has=nk,Jn.prototype.set=ik;function Yn(t){var o=-1,s=t==null?0:t.length;for(this.clear();++o=o?t:o)),t}function an(t,o,s,c,g,y){var b,E=o&w,q=o&k,Z=o&z;if(s&&(b=g?s(t,c,g,y):s(t)),b!==e)return b;if(!Nt(t))return t;var J=Ge(t);if(J){if(b=sE(t),!E)return Lr(t,b)}else{var Q=gr(t),pe=Q==H||Q==Ce;if(Ei(t))return Um(t,E);if(Q==Ee||Q==je||pe&&!g){if(b=q||pe?{}:sv(t),!E)return q?Yk(t,_k(b,t)):Jk(t,Cm(b,t))}else{if(!Rt[Q])return g?t:{};b=lE(t,Q,E)}}y||(y=new bn);var we=y.get(t);if(we)return we;y.set(t,b),Bv(t)?t.forEach(function(De){b.add(an(De,o,s,De,t,y))}):Lv(t)&&t.forEach(function(De,st){b.set(st,an(De,o,s,st,t,y))});var qe=Z?q?sd:ud:q?Br:cr,et=J?e:qe(t);return tn(et||t,function(De,st){et&&(st=De,De=t[st]),Ko(b,st,an(De,o,s,st,t,y))}),b}function bk(t){var o=cr(t);return function(s){return _m(s,t,o)}}function _m(t,o,s){var c=s.length;if(t==null)return!c;for(t=Et(t);c--;){var g=s[c],y=o[g],b=t[g];if(b===e&&!(g in t)||!y(b))return!1}return!0}function bm(t,o,s){if(typeof t!="function")throw new rn(u);return tu(function(){t.apply(e,s)},o)}function Zo(t,o,s,c){var g=-1,y=As,b=!0,E=t.length,q=[],Z=o.length;if(!E)return q;s&&(o=Bt(o,jr(s))),c?(y=Ef,b=!1):o.length>=a&&(y=No,b=!1,o=new sa(o));e:for(;++gg?0:g+s),c=c===e||c>g?g:Xe(c),c<0&&(c+=g),c=s>c?0:Fv(c);s0&&s(E)?o>1?dr(E,o-1,s,c,g):_i(g,E):c||(g[g.length]=E)}return g}var Uf=Zm(),wm=Zm(!0);function In(t,o){return t&&Uf(t,o,cr)}function Wf(t,o){return t&&wm(t,o,cr)}function js(t,o){return Ci(o,function(s){return ri(t[s])})}function ca(t,o){o=Ai(o,t);for(var s=0,c=o.length;t!=null&&so}function wk(t,o){return t!=null&&St.call(t,o)}function Tk(t,o){return t!=null&&o in Et(t)}function Ak(t,o,s){return t>=pr(o,s)&&t=120&&J.length>=120)?new sa(b&&J):e}J=t[0];var Q=-1,pe=E[0];e:for(;++Q-1;)E!==t&&Ms.call(E,q,1),Ms.call(t,q,1);return t}function Lm(t,o){for(var s=t?o.length:0,c=s-1;s--;){var g=o[s];if(s==c||g!==y){var y=g;ti(g)?Ms.call(t,g,1):ed(t,g)}}return t}function Yf(t,o){return t+Fs(hm()*(o-t+1))}function Fk(t,o,s,c){for(var g=-1,y=nr(zs((o-t)/(s||1)),0),b=$(y);y--;)b[c?y:++g]=t,t+=s;return b}function Xf(t,o){var s="";if(!t||o<1||o>Se)return s;do o%2&&(s+=t),o=Fs(o/2),o&&(t+=t);while(o);return s}function rt(t,o){return hd(fv(t,o,zr),t+"")}function Vk(t){return ym(Ya(t))}function $k(t,o){var s=Ya(t);return rl(s,la(o,0,s.length))}function Xo(t,o,s,c){if(!Nt(t))return t;o=Ai(o,t);for(var g=-1,y=o.length,b=y-1,E=t;E!=null&&++gg?0:g+o),s=s>g?g:s,s<0&&(s+=g),g=o>s?0:s-o>>>0,o>>>=0;for(var y=$(g);++c>>1,b=t[y];b!==null&&!Gr(b)&&(s?b<=o:b=a){var Z=o?null:tE(t);if(Z)return Es(Z);b=!1,g=No,q=new sa}else q=o?[]:E;e:for(;++c=c?t:on(t,o,s)}var Nm=RA||function(t){return lr.clearTimeout(t)};function Um(t,o){if(o)return t.slice();var s=t.length,c=cm?cm(s):new t.constructor(s);return t.copy(c),c}function id(t){var o=new t.constructor(t.byteLength);return new Ds(o).set(new Ds(t)),o}function Hk(t,o){var s=o?id(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function Gk(t){var o=new t.constructor(t.source,mi.exec(t));return o.lastIndex=t.lastIndex,o}function Kk(t){return Go?Et(Go.call(t)):{}}function Wm(t,o){var s=o?id(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function jm(t,o){if(t!==o){var s=t!==e,c=t===null,g=t===t,y=Gr(t),b=o!==e,E=o===null,q=o===o,Z=Gr(o);if(!E&&!Z&&!y&&t>o||y&&b&&q&&!E&&!Z||c&&b&&q||!s&&q||!g)return 1;if(!c&&!y&&!Z&&t=E)return q;var Z=s[c];return q*(Z=="desc"?-1:1)}}return t.index-o.index}function Hm(t,o,s,c){for(var g=-1,y=t.length,b=s.length,E=-1,q=o.length,Z=nr(y-b,0),J=$(q+Z),Q=!c;++E1?s[g-1]:e,b=g>2?s[2]:e;for(y=t.length>3&&typeof y=="function"?(g--,y):e,b&&wr(s[0],s[1],b)&&(y=g<3?e:y,g=1),o=Et(o);++c-1?g[y?o[b]:b]:e}}function Xm(t){return ei(function(o){var s=o.length,c=s,g=nn.prototype.thru;for(t&&o.reverse();c--;){var y=o[c];if(typeof y!="function")throw new rn(u);if(g&&!b&&el(y)=="wrapper")var b=new nn([],!0)}for(c=b?c:s;++c1&&dt.reverse(),J&&qE))return!1;var Z=y.get(t),J=y.get(o);if(Z&&J)return Z==o&&J==t;var Q=-1,pe=!0,we=s&M?new sa:e;for(y.set(t,o),y.set(o,t);++Q1?"& ":"")+o[c],o=o.join(s>2?", ":" "),t.replace(hi,"{\n/* [wrapped with "+o+"] */\n")}function fE(t){return Ge(t)||pa(t)||!!(pm&&t&&t[pm])}function ti(t,o){var s=typeof t;return o=o??Se,!!o&&(s=="number"||s!="symbol"&&Rr.test(t))&&t>-1&&t%1==0&&t0){if(++o>=Ae)return arguments[0]}else o=0;return t.apply(e,arguments)}}function rl(t,o){var s=-1,c=t.length,g=c-1;for(o=o===e?c:o;++s1?t[o-1]:e;return s=typeof s=="function"?(t.pop(),s):e,xv(t,s)});function wv(t){var o=m(t);return o.__chain__=!0,o}function SO(t,o){return o(t),t}function nl(t,o){return o(t)}var xO=ei(function(t){var o=t.length,s=o?t[0]:0,c=this.__wrapped__,g=function(b){return Nf(b,t)};return o>1||this.__actions__.length||!(c instanceof ut)||!ti(s)?this.thru(g):(c=c.slice(s,+s+(o?1:0)),c.__actions__.push({func:nl,args:[g],thisArg:e}),new nn(c,this.__chain__).thru(function(y){return o&&!y.length&&y.push(e),y}))});function wO(){return wv(this)}function TO(){return new nn(this.value(),this.__chain__)}function AO(){this.__values__===e&&(this.__values__=zv(this.value()));var t=this.__index__>=this.__values__.length,o=t?e:this.__values__[this.__index__++];return{done:t,value:o}}function kO(){return this}function EO(t){for(var o,s=this;s instanceof Ns;){var c=vv(s);c.__index__=0,c.__values__=e,o?g.__wrapped__=c:o=c;var g=c;s=s.__wrapped__}return g.__wrapped__=t,o}function OO(){var t=this.__wrapped__;if(t instanceof ut){var o=t;return this.__actions__.length&&(o=new ut(this)),o=o.reverse(),o.__actions__.push({func:nl,args:[md],thisArg:e}),new nn(o,this.__chain__)}return this.thru(md)}function PO(){return Vm(this.__wrapped__,this.__actions__)}var IO=Zs(function(t,o,s){St.call(t,s)?++t[s]:Xn(t,s,1)});function RO(t,o,s){var c=Ge(t)?Qh:Sk;return s&&wr(t,o,s)&&(o=e),c(t,Re(o,3))}function qO(t,o){var s=Ge(t)?Ci:xm;return s(t,Re(o,3))}var DO=Ym(yv),LO=Ym(Cv);function MO(t,o){return dr(il(t,o),1)}function BO(t,o){return dr(il(t,o),ae)}function zO(t,o,s){return s=s===e?1:Xe(s),dr(il(t,o),s)}function Tv(t,o){var s=Ge(t)?tn:wi;return s(t,Re(o,3))}function Av(t,o){var s=Ge(t)?nA:Sm;return s(t,Re(o,3))}var FO=Zs(function(t,o,s){St.call(t,s)?t[s].push(o):Xn(t,s,[o])});function VO(t,o,s,c){t=Mr(t)?t:Ya(t),s=s&&!c?Xe(s):0;var g=t.length;return s<0&&(s=nr(g+s,0)),ll(t)?s<=g&&t.indexOf(o,s)>-1:!!g&&Va(t,o,s)>-1}var $O=rt(function(t,o,s){var c=-1,g=typeof o=="function",y=Mr(t)?$(t.length):[];return wi(t,function(b){y[++c]=g?Wr(o,b,s):Jo(b,o,s)}),y}),NO=Zs(function(t,o,s){Xn(t,s,o)});function il(t,o){var s=Ge(t)?Bt:Om;return s(t,Re(o,3))}function UO(t,o,s,c){return t==null?[]:(Ge(o)||(o=o==null?[]:[o]),s=c?e:s,Ge(s)||(s=s==null?[]:[s]),qm(t,o,s))}var WO=Zs(function(t,o,s){t[s?0:1].push(o)},function(){return[[],[]]});function jO(t,o,s){var c=Ge(t)?Of:nm,g=arguments.length<3;return c(t,Re(o,4),s,g,wi)}function HO(t,o,s){var c=Ge(t)?iA:nm,g=arguments.length<3;return c(t,Re(o,4),s,g,Sm)}function GO(t,o){var s=Ge(t)?Ci:xm;return s(t,ul(Re(o,3)))}function KO(t){var o=Ge(t)?ym:Vk;return o(t)}function ZO(t,o,s){(s?wr(t,o,s):o===e)?o=1:o=Xe(o);var c=Ge(t)?vk:$k;return c(t,o)}function JO(t){var o=Ge(t)?yk:Uk;return o(t)}function YO(t){if(t==null)return 0;if(Mr(t))return ll(t)?Na(t):t.length;var o=gr(t);return o==ue||o==Fe?t.size:Kf(t).length}function XO(t,o,s){var c=Ge(t)?Pf:Wk;return s&&wr(t,o,s)&&(o=e),c(t,Re(o,3))}var QO=rt(function(t,o){if(t==null)return[];var s=o.length;return s>1&&wr(t,o[0],o[1])?o=[]:s>2&&wr(o[0],o[1],o[2])&&(o=[o[0]]),qm(t,dr(o,1),[])}),al=qA||function(){return lr.Date.now()};function eP(t,o){if(typeof o!="function")throw new rn(u);return t=Xe(t),function(){if(--t<1)return o.apply(this,arguments)}}function kv(t,o,s){return o=s?e:o,o=t&&o==null?t.length:o,Qn(t,L,e,e,e,e,o)}function Ev(t,o){var s;if(typeof o!="function")throw new rn(u);return t=Xe(t),function(){return--t>0&&(s=o.apply(this,arguments)),t<=1&&(o=e),s}}var yd=rt(function(t,o,s){var c=P;if(s.length){var g=bi(s,Za(yd));c|=se}return Qn(t,c,o,s,g)}),Ov=rt(function(t,o,s){var c=3;if(s.length){var g=bi(s,Za(Ov));c|=se}return Qn(o,c,t,s,g)});function Pv(t,o,s){o=s?e:o;var c=Qn(t,oe,e,e,e,e,e,o);return c.placeholder=Pv.placeholder,c}function Iv(t,o,s){o=s?e:o;var c=Qn(t,ee,e,e,e,e,e,o);return c.placeholder=Iv.placeholder,c}function Rv(t,o,s){var c,g,y,b,E,q,Z=0,J=!1,Q=!1,pe=!0;if(typeof t!="function")throw new rn(u);o=sn(o)||0,Nt(s)&&(J=!!s.leading,Q="maxWait"in s,y=Q?nr(sn(s.maxWait)||0,o):y,pe="trailing"in s?!!s.trailing:pe);function we(Kt){var xn=c,ii=g;return c=g=e,Z=Kt,b=t.apply(ii,xn),b}function qe(Kt){return Z=Kt,E=tu(st,o),J?we(Kt):b}function et(Kt){var xn=Kt-q,ii=Kt-Z,Yv=o-xn;return Q?pr(Yv,y-ii):Yv}function De(Kt){var xn=Kt-q,ii=Kt-Z;return q===e||xn>=o||xn<0||Q&&ii>=y}function st(){var Kt=al();if(De(Kt))return dt(Kt);E=tu(st,et(Kt))}function dt(Kt){return E=e,pe&&c?we(Kt):(c=g=e,b)}function hr(){E!==e&&Nm(E),Z=0,c=q=g=E=e}function Tr(){return E===e?b:dt(al())}function Kr(){var Kt=al(),xn=De(Kt);if(c=arguments,g=this,q=Kt,xn){if(E===e)return qe(q);if(Q)return Nm(E),E=tu(st,o),we(q)}return E===e&&(E=tu(st,o)),b}return Kr.cancel=hr,Kr.flush=Tr,Kr}var tP=rt(function(t,o){return bm(t,1,o)}),rP=rt(function(t,o,s){return bm(t,sn(o)||0,s)});function nP(t){return Qn(t,fe)}function ol(t,o){if(typeof t!="function"||o!=null&&typeof o!="function")throw new rn(u);var s=function(){var g=arguments,y=o?o.apply(this,g):g[0],b=s.cache;if(b.has(y))return b.get(y);var E=t.apply(this,g);return s.cache=b.set(y,E)||b,E};return s.cache=new(ol.Cache||Yn),s}ol.Cache=Yn;function ul(t){if(typeof t!="function")throw new rn(u);return function(){var o=arguments;switch(o.length){case 0:return!t.call(this);case 1:return!t.call(this,o[0]);case 2:return!t.call(this,o[0],o[1]);case 3:return!t.call(this,o[0],o[1],o[2])}return!t.apply(this,o)}}function iP(t){return Ev(2,t)}var aP=jk(function(t,o){o=o.length==1&&Ge(o[0])?Bt(o[0],jr(Re())):Bt(dr(o,1),jr(Re()));var s=o.length;return rt(function(c){for(var g=-1,y=pr(c.length,s);++g=o}),pa=Am(function(){return arguments}())?Am:function(t){return jt(t)&&St.call(t,"callee")&&!dm.call(t,"callee")},Ge=$.isArray,_P=Gh?jr(Gh):Ek;function Mr(t){return t!=null&&sl(t.length)&&!ri(t)}function Gt(t){return jt(t)&&Mr(t)}function bP(t){return t===!0||t===!1||jt(t)&&xr(t)==Mt}var Ei=LA||Pd,SP=Kh?jr(Kh):Ok;function xP(t){return jt(t)&&t.nodeType===1&&!ru(t)}function wP(t){if(t==null)return!0;if(Mr(t)&&(Ge(t)||typeof t=="string"||typeof t.splice=="function"||Ei(t)||Ja(t)||pa(t)))return!t.length;var o=gr(t);if(o==ue||o==Fe)return!t.size;if(eu(t))return!Kf(t).length;for(var s in t)if(St.call(t,s))return!1;return!0}function TP(t,o){return Yo(t,o)}function AP(t,o,s){s=typeof s=="function"?s:e;var c=s?s(t,o):e;return c===e?Yo(t,o,e,s):!!c}function _d(t){if(!jt(t))return!1;var o=xr(t);return o==V||o==F||typeof t.message=="string"&&typeof t.name=="string"&&!ru(t)}function kP(t){return typeof t=="number"&&gm(t)}function ri(t){if(!Nt(t))return!1;var o=xr(t);return o==H||o==Ce||o==_t||o==ct}function Dv(t){return typeof t=="number"&&t==Xe(t)}function sl(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Se}function Nt(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function jt(t){return t!=null&&typeof t=="object"}var Lv=Zh?jr(Zh):Ik;function EP(t,o){return t===o||Gf(t,o,cd(o))}function OP(t,o,s){return s=typeof s=="function"?s:e,Gf(t,o,cd(o),s)}function PP(t){return Mv(t)&&t!=+t}function IP(t){if(gE(t))throw new Ne(n);return km(t)}function RP(t){return t===null}function qP(t){return t==null}function Mv(t){return typeof t=="number"||jt(t)&&xr(t)==ve}function ru(t){if(!jt(t)||xr(t)!=Ee)return!1;var o=Ls(t);if(o===null)return!0;var s=St.call(o,"constructor")&&o.constructor;return typeof s=="function"&&s instanceof s&&Is.call(s)==OA}var bd=Jh?jr(Jh):Rk;function DP(t){return Dv(t)&&t>=-9007199254740991&&t<=Se}var Bv=Yh?jr(Yh):qk;function ll(t){return typeof t=="string"||!Ge(t)&&jt(t)&&xr(t)==re}function Gr(t){return typeof t=="symbol"||jt(t)&&xr(t)==_e}var Ja=Xh?jr(Xh):Dk;function LP(t){return t===e}function MP(t){return jt(t)&&gr(t)==Ve}function BP(t){return jt(t)&&xr(t)==tr}var zP=Qs(Zf),FP=Qs(function(t,o){return t<=o});function zv(t){if(!t)return[];if(Mr(t))return ll(t)?_n(t):Lr(t);if(Uo&&t[Uo])return vA(t[Uo]());var o=gr(t),s=o==ue?Mf:o==Fe?Es:Ya;return s(t)}function ni(t){if(!t)return t===0?t:0;if(t=sn(t),t===ae||t===-1/0){var o=t<0?-1:1;return o*Ot}return t===t?t:0}function Xe(t){var o=ni(t),s=o%1;return o===o?s?o-s:o:0}function Fv(t){return t?la(Xe(t),0,D):0}function sn(t){if(typeof t=="number")return t;if(Gr(t))return he;if(Nt(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=Nt(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=im(t);var s=bf.test(t);return s||Ba.test(t)?eA(t.slice(2),s?2:8):ws.test(t)?he:+t}function Vv(t){return Rn(t,Br(t))}function VP(t){return t?la(Xe(t),-9007199254740991,Se):t===0?t:0}function Ct(t){return t==null?"":Hr(t)}var $P=Ga(function(t,o){if(eu(o)||Mr(o)){Rn(o,cr(o),t);return}for(var s in o)St.call(o,s)&&Ko(t,s,o[s])}),$v=Ga(function(t,o){Rn(o,Br(o),t)}),cl=Ga(function(t,o,s,c){Rn(o,Br(o),t,c)}),NP=Ga(function(t,o,s,c){Rn(o,cr(o),t,c)}),UP=ei(Nf);function WP(t,o){var s=Ha(t);return o==null?s:Cm(s,o)}var jP=rt(function(t,o){t=Et(t);var s=-1,c=o.length,g=c>2?o[2]:e;for(g&&wr(o[0],o[1],g)&&(c=1);++s1),y}),Rn(t,sd(t),s),c&&(s=an(s,7,rE));for(var g=o.length;g--;)ed(s,o[g]);return s});function lI(t,o){return Uv(t,ul(Re(o)))}var cI=ei(function(t,o){return t==null?{}:Bk(t,o)});function Uv(t,o){if(t==null)return{};var s=Bt(sd(t),function(c){return[c]});return o=Re(o),Dm(t,s,function(c,g){return o(c,g[0])})}function fI(t,o,s){o=Ai(o,t);var c=-1,g=o.length;for(g||(g=1,t=e);++co){var c=t;t=o,o=c}if(s||t%1||o%1){var g=hm();return pr(t+g*(o-t+QT("1e-"+((g+"").length-1))),o)}return Yf(t,o)}var SI=Ka(function(t,o,s){return o=o.toLowerCase(),t+(s?Hv(o):o)});function Hv(t){return wd(Ct(t).toLowerCase())}function Gv(t){return t=Ct(t),t&&t.replace(Ze,dA).replace(UT,"")}function xI(t,o,s){t=Ct(t),o=Hr(o);var c=t.length;s=s===e?c:la(Xe(s),0,c);var g=s;return s-=o.length,s>=0&&t.slice(s,g)==o}function wI(t){return t=Ct(t),t&&be.test(t)?t.replace(X,pA):t}function TI(t){return t=Ct(t),t&&$e.test(t)?t.replace(Tt,"\\$&"):t}var AI=Ka(function(t,o,s){return t+(s?"-":"")+o.toLowerCase()}),kI=Ka(function(t,o,s){return t+(s?" ":"")+o.toLowerCase()}),EI=Jm("toLowerCase");function OI(t,o,s){t=Ct(t),o=Xe(o);var c=o?Na(t):0;if(!o||c>=o)return t;var g=(o-c)/2;return Xs(Fs(g),s)+t+Xs(zs(g),s)}function PI(t,o,s){t=Ct(t),o=Xe(o);var c=o?Na(t):0;return o&&c>>0,s?(t=Ct(t),t&&(typeof o=="string"||o!=null&&!bd(o))&&(o=Hr(o),!o&&$a(t))?ki(_n(t),0,s):t.split(o,s)):[]}var BI=Ka(function(t,o,s){return t+(s?" ":"")+wd(o)});function zI(t,o,s){return t=Ct(t),s=s==null?0:la(Xe(s),0,t.length),o=Hr(o),t.slice(s,s+o.length)==o}function FI(t,o,s){var c=m.templateSettings;s&&wr(t,o,s)&&(o=e),t=Ct(t),o=cl({},o,c,nv);var g=cl({},o.imports,c.imports,nv),y=cr(g),b=Lf(g,y),E,q,Z=0,J=o.interpolate||bt,Q="__p += '",pe=Bf((o.escape||bt).source+"|"+J.source+"|"+(J===Oe?ur:bt).source+"|"+(o.evaluate||bt).source+"|$","g"),we="//# sourceURL="+(St.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++KT+"]")+"\n";t.replace(pe,function(De,st,dt,hr,Tr,Kr){return dt||(dt=hr),Q+=t.slice(Z,Kr).replace(sr,gA),st&&(E=!0,Q+="' +\n__e("+st+") +\n'"),Tr&&(q=!0,Q+="';\n"+Tr+";\n__p += '"),dt&&(Q+="' +\n((__t = ("+dt+")) == null ? '' : __t) +\n'"),Z=Kr+De.length,De}),Q+="';\n";var qe=St.call(o,"variable")&&o.variable;if(!qe)Q="with (obj) {\n"+Q+"\n}\n";else if(xs.test(qe))throw new Ne(l);Q=(q?Q.replace(S,""):Q).replace(x,"$1").replace(O,"$1;"),Q="function("+(qe||"obj")+") {\n"+(qe?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(E?", __e = _.escape":"")+(q?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+Q+"return __p\n}";var et=Zv(function(){return mt(y,we+"return "+Q).apply(e,b)});if(et.source=Q,_d(et))throw et;return et}function VI(t){return Ct(t).toLowerCase()}function $I(t){return Ct(t).toUpperCase()}function NI(t,o,s){if(t=Ct(t),t&&(s||o===e))return im(t);if(!t||!(o=Hr(o)))return t;var c=_n(t),g=_n(o),y=am(c,g),b=om(c,g)+1;return ki(c,y,b).join("")}function UI(t,o,s){if(t=Ct(t),t&&(s||o===e))return t.slice(0,sm(t)+1);if(!t||!(o=Hr(o)))return t;var c=_n(t),g=om(c,_n(o))+1;return ki(c,0,g).join("")}function WI(t,o,s){if(t=Ct(t),t&&(s||o===e))return t.replace(Pr,"");if(!t||!(o=Hr(o)))return t;var c=_n(t),g=am(c,_n(o));return ki(c,g).join("")}function jI(t,o){var s=ge,c=at;if(Nt(o)){var g="separator"in o?o.separator:g;s="length"in o?Xe(o.length):s,c="omission"in o?Hr(o.omission):c}t=Ct(t);var y=t.length;if($a(t)){var b=_n(t);y=b.length}if(s>=y)return t;var E=s-Na(c);if(E<1)return c;var q=b?ki(b,0,E).join(""):t.slice(0,E);if(g===e)return q+c;if(b&&(E+=q.length-E),bd(g)){if(t.slice(E).search(g)){var Z,J=q;for(g.global||(g=Bf(g.source,Ct(mi.exec(g))+"g")),g.lastIndex=0;Z=g.exec(J);)var Q=Z.index;q=q.slice(0,Q===e?E:Q)}}else if(t.indexOf(Hr(g),E)!=E){var pe=q.lastIndexOf(g);pe>-1&&(q=q.slice(0,pe))}return q+c}function HI(t){return t=Ct(t),t&&ne.test(t)?t.replace(N,bA):t}var GI=Ka(function(t,o,s){return t+(s?" ":"")+o.toUpperCase()}),wd=Jm("toUpperCase");function Kv(t,o,s){return t=Ct(t),o=s?e:o,o===e?mA(t)?wA(t):uA(t):t.match(o)||[]}var Zv=rt(function(t,o){try{return Wr(t,e,o)}catch(s){return _d(s)?s:new Ne(s)}}),KI=ei(function(t,o){return tn(o,function(s){s=qn(s),Xn(t,s,yd(t[s],t))}),t});function ZI(t){var o=t==null?0:t.length,s=Re();return t=o?Bt(t,function(c){if(typeof c[1]!="function")throw new rn(u);return[s(c[0]),c[1]]}):[],rt(function(c){for(var g=-1;++gSe)return[];var s=D,c=pr(t,D);o=Re(o),t-=D;for(var g=Df(c,o);++s0||o<0)?new ut(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),o!==e&&(o=Xe(o),s=o<0?s.dropRight(-o):s.take(o-t)),s)},ut.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ut.prototype.toArray=function(){return this.take(D)},In(ut.prototype,function(t,o){var s=/^(?:filter|find|map|reject)|While$/.test(o),c=/^(?:head|last)$/.test(o),g=m[c?"take"+(o=="last"?"Right":""):o],y=c||/^find/.test(o);g&&(m.prototype[o]=function(){var b=this.__wrapped__,E=c?[1]:arguments,q=b instanceof ut,Z=E[0],J=q||Ge(b),Q=function(dt){var hr=g.apply(m,_i([dt],E));return c&&pe?hr[0]:hr};J&&s&&typeof Z=="function"&&Z.length!=1&&(q=J=!1);var pe=this.__chain__,we=!!this.__actions__.length,qe=y&&!pe,et=q&&!we;if(!y&&J){b=et?b:new ut(this);var De=t.apply(b,E);return De.__actions__.push({func:nl,args:[Q],thisArg:e}),new nn(De,pe)}return qe&&et?t.apply(this,E):(De=this.thru(Q),qe?c?De.value()[0]:De.value():De)})}),tn(["pop","push","shift","sort","splice","unshift"],function(t){var o=Os[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);m.prototype[t]=function(){var g=arguments;if(c&&!this.__chain__){var y=this.value();return o.apply(Ge(y)?y:[],g)}return this[s](function(b){return o.apply(Ge(b)?b:[],g)})}}),In(ut.prototype,function(t,o){var s=m[o];if(s){var c=s.name+"";St.call(ja,c)||(ja[c]=[]),ja[c].push({name:o,func:s})}}),ja[Js(e,A).name]=[{name:"wrapper",func:e}],ut.prototype.clone=HA,ut.prototype.reverse=GA,ut.prototype.value=KA,m.prototype.at=xO,m.prototype.chain=wO,m.prototype.commit=TO,m.prototype.next=AO,m.prototype.plant=EO,m.prototype.reverse=OO,m.prototype.toJSON=m.prototype.valueOf=m.prototype.value=PO,m.prototype.first=m.prototype.head,Uo&&(m.prototype[Uo]=kO),m},Si=TA();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(lr._=Si,define(function(){return Si})):aa?((aa.exports=Si)._=Si,Af._=Si):lr._=Si}).call(Qa)});var $y=T((Vy,Gd)=>{f();(function(e){if(typeof Vy=="object"&&typeof Gd<"u")Gd.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var r;typeof window<"u"?r=window:typeof global<"u"?r=global:typeof self<"u"?r=self:r=this,r.jsonata=e()}})(function(){var e,r,a;return function(){function n(u,l,d){function p(k,z){if(!l[k]){if(!u[k]){var W=typeof nu=="function"&νif(!z&&W)return W(k,!0);if(v)return v(k,!0);var M=new Error("Cannot find module '"+k+"'");throw M.code="MODULE_NOT_FOUND",M}var P=l[k]={exports:{}};u[k][0].call(P.exports,function(A){var G=u[k][1][A];return p(G||A)},P,P.exports,n,u,l,d)}return l[k].exports}for(var v=typeof nu=="function"&&nu,w=0;w0?Ee+="-"+V(ct,!1,le):le&&(Ee=Ee.substring(0,Ee.length-1)+"ieth")}else if(ue<1e3){var ft=Math.floor(ue/100),Fe=ue%100;Ee=(ve?", ":"")+p[ft]+" Hundred",Fe>0?Ee+=V(Fe,!0,le):le&&(Ee+="th")}else{var re=Math.floor(Math.log10(ue)/3);re>k.length&&(re=k.length);var _e=Math.pow(10,re*3),it=Math.floor(ue/_e),Ve=ue-it*_e;Ee=(ve?", ":"")+V(it,!1,!1)+" "+k[re-1],Ve>0?Ee+=V(Ve,!0,le):le&&(Ee+="th")}return Ee},H=V(te,!1,F);return H}var W={};p.forEach(function(te,F){W[te.toLowerCase()]=F}),v.forEach(function(te,F){W[te.toLowerCase()]=F}),w.forEach(function(te,F){var V=te.toLowerCase();W[V]=(F+2)*10,W[V.substring(0,te.length-1)+"ieth"]=W[V]}),W.hundredth=100,k.forEach(function(te,F){var V=te.toLowerCase(),H=Math.pow(10,(F+1)*3);W[V]=H,W[V+"th"]=H});function M(te){var F=te.split(/,\s|\sand\s|[\s\\-]/),V=F.map(function(ue){return W[ue]}),H=[0];V.forEach(function(ue){if(ue<100){var ve=H.pop();ve>=1e3&&(H.push(ve),ve=0),H.push(ve+ue)}else H.push(H.pop()*ue)});var Ce=H.reduce(function(ue,ve){return ue+ve},0);return Ce}var P=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],A={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function G(te){for(var F=0;F=V[0])return V[1]+G(te-V[0])}return""}function oe(te){for(var F=0,V=1,H=te.length-1;H>=0;H--){var Ce=te[H],ue=A[Ce];ue0;)V.unshift(String.fromCharCode((te-1)%26+H)),te=Math.floor((te-1)/26);return V.join("")}function se(te,F){for(var V=F.charCodeAt(0),H=0,Ce=0;Ce"u")){te=Math.floor(te);var V=at(F);return fe(te,V)}}var L={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},K={UPPER:"upper",LOWER:"lower",TITLE:"title"};function fe(te,F){var V,H=te<0;switch(te=Math.abs(te),F.primary){case L.LETTERS:V=ee(te,F.case===K.UPPER?"A":"a");break;case L.ROMAN:V=G(te),F.case===K.UPPER&&(V=V.toUpperCase());break;case L.WORDS:V=z(te,F.ordinal),F.case===K.UPPER?V=V.toUpperCase():F.case===K.LOWER&&(V=V.toLowerCase());break;case L.DECIMAL:V=""+te;var Ce=F.mandatoryDigits-V.length;if(Ce>0){var ue=new Array(Ce+1).join("0");V=ue+V}if(F.zeroCode!==48&&(V=Array.from(V).map(function(Fe){return String.fromCodePoint(Fe.codePointAt(0)+F.zeroCode-48)}).join("")),F.regular)for(var ve=Math.floor((V.length-1)/F.groupingSeparators.position),le=ve;le>0;le--){var Ee=V.length-le*F.groupingSeparators.position;V=V.substr(0,Ee)+F.groupingSeparators.character+V.substr(Ee)}else F.groupingSeparators.reverse().forEach(function(Fe){var re=V.length-Fe.position;V=V.substr(0,re)+Fe.character+V.substr(re)});if(F.ordinal){var Qe={1:"st",2:"nd",3:"rd"},ct=V[V.length-1],ft=Qe[ct];(!ft||V.length>1&&V[V.length-2]==="1")&&(ft="th"),V=V+ft}break;case L.SEQUENCE:throw{code:"D3130",value:F.token}}return H&&(V="-"+V),V}var ge=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296];function at(te){var F={type:"integer",primary:L.DECIMAL,case:K.LOWER,ordinal:!1},V,H,Ce=te.lastIndexOf(";");switch(Ce===-1?V=te:(V=te.substring(0,Ce),H=te.substring(Ce+1),H[0]==="o"&&(F.ordinal=!0)),V){case"A":F.case=K.UPPER;case"a":F.primary=L.LETTERS;break;case"I":F.case=K.UPPER;case"i":F.primary=L.ROMAN;break;case"W":F.case=K.UPPER,F.primary=L.WORDS;break;case"Ww":F.case=K.TITLE,F.primary=L.WORDS;break;case"w":F.primary=L.WORDS;break;default:{var ue=null,ve=0,le=0,Ee=[],Qe=0,ct=Array.from(V,function(re){return re.codePointAt(0)}).reverse();if(ct.forEach(function(re){for(var _e=!1,it=0;it=Ve&&re<=Ve+9){if(_e=!0,ve++,Qe++,ue===null)ue=Ve;else if(Ve!==ue)throw{code:"D3131"};break}}_e||(re===35?(Qe++,le++):Ee.push({position:Qe,character:String.fromCodePoint(re)}))}),ve>0){F.primary=L.DECIMAL,F.zeroCode=ue,F.mandatoryDigits=ve,F.optionalDigits=le;var ft=function(_e){if(_e.length===0)return 0;for(var it=_e[0].character,Ve=1;Ve<_e.length;Ve++)if(_e[Ve].character!==it)return 0;for(var tr=_e.map(function(Yt){return Yt.position}),wt=function(Wt,Xt){return Xt===0?Wt:wt(Xt,Wt%Xt)},Jt=tr.reduce(wt),de=1;de<=tr.length;de++)if(tr.indexOf(de*Jt)===-1)return 0;return Jt},Fe=ft(Ee);Fe>0?(F.regular=!0,F.groupingSeparators={position:Fe,character:Ee[0].character}):(F.regular=!1,F.groupingSeparators=Ee)}else F.primary=L.SEQUENCE,F.token=V}}return F}var Ae={Y:"1",M:"1",D:"1",d:"1",F:"n",W:"1",w:"1",X:"1",x:"1",H:"1",h:"1",P:"n",m:"01",s:"01",f:"1",Z:"01:01",z:"01:01",C:"n",E:"n"};function nt(te){for(var F=[],V={type:"datetime",parts:F},H=function(de,Yt){if(Yt>de){var Wt=te.substring(de,Yt);Wt=Wt.split("]]").join("]"),F.push({type:"literal",value:Wt})}},Ce=0,ue=0;ue"u"||de==="*"))return parseInt(de)};ft===-1?Fe=ct:(Fe=ct.substring(0,ft),re=ct.substring(ft+1));var it={min:_e(Fe),max:_e(re)};le.width=it,Qe=ve.substring(1,Ee)}else Qe=ve.substring(1);if(Qe.length===1)le.presentation1=Qe;else if(Qe.length>1){var Ve=Qe.charAt(Qe.length-1);"atco".indexOf(Ve)!==-1?(le.presentation2=Ve,Ve==="o"&&(le.ordinal=!0),le.presentation1=Qe.substring(0,Qe.length-1)):le.presentation1=Qe}else le.presentation1=Ae[le.component];if(typeof le.presentation1>"u")throw{code:"D3132",value:le.component};if(le.presentation1[0]==="n")le.names=K.LOWER;else if(le.presentation1[0]==="N")le.presentation1[1]==="n"?le.names=K.TITLE:le.names=K.UPPER;else if("YMDdFWwXxHhmsf".indexOf(le.component)!==-1){var tr=le.presentation1;if(le.presentation2&&(tr+=";"+le.presentation2),le.integerFormat=at(tr),le.width&&le.width.min!==void 0&&le.integerFormat.mandatoryDigits=2&&(le.n=wt)}}(le.component==="Z"||le.component==="z")&&(le.integerFormat=at(le.presentation1)),F.push(le),Ce=ue+1}ue++}return H(Ce,ue),V}var Je=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],pt=["January","February","March","April","May","June","July","August","September","October","November","December"],ze=864e5,ae=function(F){var V=Date.UTC(F.year,F.month),H=new Date(V).getDay();return H===0&&(H=7),H>4?V+(8-H)*ze:V-(H-1)*ze},Se=function(F,V){return{year:F,month:V,nextMonth:function(){return V===11?Se(F+1,0):Se(F,V+1)},previousMonth:function(){return V===0?Se(F-1,11):Se(F,V-1)},nextYear:function(){return Se(F+1,V)},previousYear:function(){return Se(F-1,V)}}},Ot=function(F,V){return(V-F)/6048e5+1},he=function(F,V){var H;switch(V){case"Y":H=F.getUTCFullYear();break;case"M":H=F.getUTCMonth()+1;break;case"D":H=F.getUTCDate();break;case"d":{var Ce=Date.UTC(F.getUTCFullYear(),F.getUTCMonth(),F.getUTCDate()),ue=Date.UTC(F.getUTCFullYear(),0);H=(Ce-ue)/ze+1;break}case"F":H=F.getUTCDay(),H===0&&(H=7);break;case"W":{var ve=Se(F.getUTCFullYear(),0),le=ae(ve),Ee=Date.UTC(ve.year,F.getUTCMonth(),F.getUTCDate()),Qe=Ot(le,Ee);if(Qe>52){var ct=ae(ve.nextYear());Ee>=ct&&(Qe=1)}else if(Qe<1){var ft=ae(ve.previousYear());Qe=Ot(ft,Ee)}H=Math.floor(Qe);break}case"w":{var Fe=Se(F.getUTCFullYear(),F.getUTCMonth()),re=ae(Fe),_e=Date.UTC(Fe.year,Fe.month,F.getUTCDate()),it=Ot(re,_e);if(it>4){var Ve=ae(Fe.nextMonth());_e>=Ve&&(it=1)}else if(it<1){var tr=ae(Fe.previousMonth());it=Ot(tr,_e)}H=Math.floor(it);break}case"X":{var wt=Se(F.getUTCFullYear(),0),Jt=ae(wt),de=ae(wt.nextYear()),Yt=F.getTime();Yt=de?H=wt.year+1:H=wt.year;break}case"x":{var Wt=Se(F.getUTCFullYear(),F.getUTCMonth()),Xt=ae(Wt),_=Wt.nextMonth(),R=ae(_),B=F.getTime();B=R?H=_.month+1:H=Wt.month+1;break}case"H":H=F.getUTCHours();break;case"h":H=F.getUTCHours(),H=H%12,H===0&&(H=12);break;case"P":H=F.getUTCHours()>=12?"pm":"am";break;case"m":H=F.getUTCMinutes();break;case"s":H=F.getUTCSeconds();break;case"f":H=F.getUTCMilliseconds();break;case"Z":case"z":break;case"C":H="ISO";break;case"E":H="ISO";break}return H},D=nt("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]");function U(te,F,V){var H=0,Ce=0;if(typeof V<"u"){var ue=parseInt(V);H=Math.floor(ue/100),Ce=ue%100}var ve=function(Fe,re){var _e=he(Fe,re.component);if("YMDdFWwXxHhms".indexOf(re.component)!==-1)if(re.component==="Y"&&re.n!==-1&&(_e=_e%Math.pow(10,re.n)),re.names){if(re.component==="M"||re.component==="x")_e=pt[_e-1];else if(re.component==="F")_e=Je[_e];else throw{code:"D3133",value:re.component};re.names===K.UPPER?_e=_e.toUpperCase():re.names===K.LOWER&&(_e=_e.toLowerCase()),re.width&&_e.length>re.width.max&&(_e=_e.substring(0,re.width.max))}else _e=fe(_e,re.integerFormat);else if(re.component==="f")_e=fe(_e,re.integerFormat);else if(re.component==="Z"||re.component==="z"){var it=H*100+Ce;if(re.integerFormat.regular)_e=fe(it,re.integerFormat);else{var Ve=re.integerFormat.mandatoryDigits;if(Ve===1||Ve===2)_e=fe(H,re.integerFormat),Ce!==0&&(_e+=":"+ce(Ce,"00"));else if(Ve===3||Ve===4)_e=fe(it,re.integerFormat);else throw{code:"D3134",value:Ve}}it>=0&&(_e="+"+_e),re.component==="z"&&(_e="GMT"+_e),it===0&&re.presentation2==="t"&&(_e="Z")}return _e},le;typeof F>"u"?le=D:le=nt(F);var Ee=(60*H+Ce)*60*1e3,Qe=new Date(te+Ee),ct="";return le.parts.forEach(function(ft){ft.type==="literal"?ct+=ft.value:ct+=ve(Qe,ft)}),ct}function ke(te){var F={};if(te.type==="datetime")F.type="datetime",F.parts=te.parts.map(function(H){var Ce={};if(H.type==="literal")Ce.regex=H.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if(H.integerFormat)Ce=ke(H.integerFormat);else{Ce.regex="[a-zA-Z]+";var ue={};if(H.component==="M"||H.component==="x")pt.forEach(function(ve,le){H.width&&H.width.max?ue[ve.substring(0,H.width.max)]=le+1:ue[ve]=le+1});else if(H.component==="F")Je.forEach(function(ve,le){le>0&&(H.width&&H.width.max?ue[ve.substring(0,H.width.max)]=le:ue[ve]=le)});else if(H.component==="P")ue={am:0,AM:0,pm:1,PM:1};else throw{code:"D3133",value:H.component};Ce.parse=function(ve){return ue[ve]}}return Ce.component=H.component,Ce});else{F.type="integer";var V=te.case===K.UPPER;switch(te.primary){case L.LETTERS:F.regex=V?"[A-Z]+":"[a-z]+",F.parse=function(H){return se(H,V?"A":"a")};break;case L.ROMAN:F.regex=V?"[MDCLXVI]+":"[mdclxvi]+",F.parse=function(H){return oe(V?H:H.toUpperCase())};break;case L.WORDS:F.regex="(?:"+Object.keys(W).concat("and","[\\-, ]").join("|")+")+",F.parse=function(H){return M(H.toLowerCase())};break;case L.DECIMAL:F.regex="[0-9]+",te.ordinal&&(F.regex+="(?:th|st|nd|rd)"),F.parse=function(H){var Ce=H;return te.ordinal&&(Ce=H.substring(0,H.length-2)),te.regular?Ce=Ce.split(",").join(""):te.groupingSeparators.forEach(function(ue){Ce=Ce.split(ue.character).join("")}),te.zeroCode!==48&&(Ce=Ce.split("").map(function(ue){return String.fromCodePoint(ue.codePointAt(0)-te.zeroCode+48)}).join("")),parseInt(Ce)}}}return F}function Le(te,F){if(!(typeof te>"u")){var V=at(F),H=ke(V),Ce=H.parse(te);return Ce}}function je(te,F){var V=nt(F),H=ke(V),Ce="^"+H.parts.map(function(be){return"("+be.regex+")"}).join("")+"$",ue=new RegExp(Ce,"i"),ve=ue.exec(te);if(ve!==null){for(var le=161,Ee=130,Qe=84,ct=72,ft=23,Fe=47,re={},_e=1;_e"u")S?(re[be]="MDd".indexOf(be)!==-1?1:0,x=!0):re[be]=he(C,be);else if(S=!0,x)throw{code:"D3136"}}),re.M>0?re.M-=1:re.M=0,de){var O=Date.UTC(re.Y,0),N=(re.d-1)*1e3*60*60*24,X=new Date(O+N);re.M=X.getMonth(),re.D=X.getDate()}if(Yt)throw{code:"D3136"};if(Wt)throw{code:"D3136"};_&&(re.H=re.h===12?0:re.h,re.P===1&&(re.H+=12));var ne=Date.UTC(re.Y,re.M,re.D,re.H,re.m,re.s,re.f);return ne}}var Pt=new RegExp("^\\d{4}(-[01]\\d)*(-[0-3]\\d)*(T[0-2]\\d:[0-5]\\d:[0-5]\\d)*(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");function _t(te,F){if(!(typeof te>"u"))if(typeof F>"u"){if(!Pt.test(te))throw{stack:new Error().stack,code:"D3110",value:te};return Date.parse(te)}else return je.call(this,te,F)}function Mt(te,F,V){if(!(typeof te>"u"))return U.call(this,te,F,V)}return{formatInteger:ce,parseInteger:Le,fromMillis:Mt,toMillis:_t}}();u.exports=d},{}],2:[function(n,u,l){(function(d){var p=n("./utils"),v=function(){"use strict";var w=p.isNumeric,k=p.isArrayOfStrings,z=p.isArrayOfNumbers,W=p.createSequence,M=p.isFunction,P=p.isLambda,A=p.isIterable,G=p.getFunctionArity;function oe(_){if(!(typeof _>"u")){var R=0;return _.forEach(function(B){R+=B}),R}}function ee(_){return typeof _>"u"?0:_.length}function se(_){if(!(typeof _>"u"||_.length===0))return Math.max.apply(Math,_)}function ce(_){if(!(typeof _>"u"||_.length===0))return Math.min.apply(Math,_)}function L(_){if(!(typeof _>"u"||_.length===0)){var R=0;return _.forEach(function(B){R+=B}),R/_.length}}function K(_){if(!(typeof _>"u")){var R;if(typeof _=="string")R=_;else if(M(_))R="";else{if(typeof _=="number"&&!isFinite(_))throw{code:"D3001",value:_,stack:new Error().stack};R=JSON.stringify(_,function(B,h){return typeof h<"u"&&h!==null&&h.toPrecision&&w(h)?Number(h.toPrecision(15)):h&&M(h)?"":h})}return R}}function fe(_,R,B){if(!(typeof _>"u")){var h=Array.from(_),C=h.length;if(C+R<0&&(R=0),typeof B<"u"){if(B<=0)return"";var S=R>=0?R+B:C+R+B;return h.slice(R,S).join("")}return h.slice(R).join("")}}function ge(_,R){if(!(typeof _>"u")){var B=_.indexOf(R);return B>-1?_.substr(0,B):_}}function at(_,R){if(!(typeof _>"u")){var B=_.indexOf(R);return B>-1?_.substr(B+R.length):_}}function Ae(_){if(!(typeof _>"u"))return _.toLowerCase()}function nt(_){if(!(typeof _>"u"))return _.toUpperCase()}function Je(_){if(!(typeof _>"u"))return Array.from(_).length}function pt(_){if(!(typeof _>"u")){var R=_.replace(/[ \t\n\r]+/gm," ");return R.charAt(0)===" "&&(R=R.substring(1)),R.charAt(R.length-1)===" "&&(R=R.substring(0,R.length-1)),R}}function ze(_,R,B){if(!(typeof _>"u")){(typeof B>"u"||B.length===0)&&(B=" ");var h,C=Math.abs(R)-Je(_);if(C>0){var S=new Array(C+1).join(B);B.length>1&&(S=fe(S,0,C)),R>0?h=_+S:h=S+_}else h=_;return h}}function*ae(_,R){var B=_.apply(this,[R]);if(A(B)&&(B=yield*ie(B)),B&&!(typeof B.start=="number"||B.end==="number"||Array.isArray(B.groups)||M(B.next)))throw{code:"T1010",stack:new Error().stack};return B}function*Se(_,R){if(!(typeof _>"u")){var B;if(typeof R=="string")B=_.indexOf(R)!==-1;else{var h=yield*ie(ae(R,_));B=typeof h<"u"}return B}}function*Ot(_,R,B){if(!(typeof _>"u")){if(B<0)throw{stack:new Error().stack,value:B,code:"D3040",index:3};var h=W();if(typeof B>"u"||B>0){var C=0,S=yield*ie(ae(R,_));if(typeof S<"u")for(;typeof S<"u"&&(typeof B>"u"||C"u")){var C=this;if(R==="")throw{code:"D3010",stack:new Error().stack,value:R,index:2};if(h<0)throw{code:"D3011",stack:new Error().stack,value:h,index:4};var S;typeof B=="string"?S=function(Me){for(var Oe="",gt=0,Ye=B.indexOf("$",gt);Ye!==-1&>1&&Ye>Me.groups.length&&(Ye=parseInt(B.substring(gt,gt+Tt-1),10)),isNaN(Ye))Oe+="$";else{if(Me.groups.length>0){var $e=Me.groups[Ye-1];typeof $e<"u"&&(Oe+=$e)}gt+=Ye.toString().length}}Ye=B.indexOf("$",gt)}return Oe+=B.substring(gt),Oe}:S=B;var x="",O=0;if(typeof h>"u"||h>0){var N=0;if(typeof R=="string"){for(var X=_.indexOf(R,O);X!==-1&&(typeof h>"u"||N"u"||N"u")){var R=typeof window<"u"?window.btoa:function(B){return new d.Buffer(B,"binary").toString("base64")};return R(_)}}function U(_){if(!(typeof _>"u")){var R=typeof window<"u"?window.atob:function(B){return new d.Buffer(B,"base64").toString("binary")};return R(_)}}function*ke(_,R,B){if(!(typeof _>"u")){if(B<0)throw{code:"D3020",stack:new Error().stack,value:B,index:3};var h=[];if(typeof B>"u"||B>0)if(typeof R=="string")h=_.split(R,B);else{var C=0,S=yield*ie(ae(R,_));if(typeof S<"u"){for(var x=0;typeof S<"u"&&(typeof B>"u"||C"u"||C"u"))return typeof R>"u"&&(R=""),_.join(R)}function je(_,R,B){if(!(typeof _>"u")){var h={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"\u2030","zero-digit":"0",digit:"#","pattern-separator":";"},C=h;typeof B<"u"&&Object.keys(B).forEach(function(Rr){C[Rr]=B[Rr]});for(var S=[],x=C["zero-digit"].charCodeAt(0),O=x;O2)throw{code:"D3080",stack:new Error().stack};var ne=function(Ze){var bt=function(){for(var Qt,Dr=0;Dr=0;Dr--)if(Qt=Ze.charAt(Dr),N.indexOf(Qt)!==-1&&Qt!==C["exponent-separator"])return Ze.substring(Dr+1)}(),It=Ze.substring(bt.length,Ze.length-sr.length),br,Kn,Sr,vi,qr=Ze.indexOf(C["exponent-separator"],bt.length);qr===-1||qr>Ze.length-sr.length?(br=It,Kn=void 0):(br=It.substring(0,qr),Kn=It.substring(qr+1));var Qr=br.indexOf(C["decimal-separator"]);return Qr===-1?(Sr=br,vi=sr):(Sr=br.substring(0,Qr),vi=br.substring(Qr+1)),{prefix:bt,suffix:sr,activePart:It,mantissaPart:br,exponentPart:Kn,integerPart:Sr,fractionalPart:vi,subpicture:Ze}},be=function(Ze){var bt,sr,It=Ze.subpicture,br=It.indexOf(C["decimal-separator"]);br!==It.lastIndexOf(C["decimal-separator"])&&(bt="D3081"),It.indexOf(C.percent)!==It.lastIndexOf(C.percent)&&(bt="D3082"),It.indexOf(C["per-mille"])!==It.lastIndexOf(C["per-mille"])&&(bt="D3083"),It.indexOf(C.percent)!==-1&&It.indexOf(C["per-mille"])!==-1&&(bt="D3084");var Kn=!1;for(sr=0;sr-1}).length>0&&(bt="D3090"),qr=Ze.fractionalPart.lastIndexOf(C.digit),qr!==-1&&Ze.fractionalPart.substring(qr).split("").filter(function(Qt){return S.indexOf(Qt)>-1}).length>0&&(bt="D3091");var Qr=typeof Ze.exponentPart=="string";if(Qr&&Ze.exponentPart.length>0&&(It.indexOf(C.percent)!==-1||It.indexOf(C["per-mille"])!==-1)&&(bt="D3092"),Qr&&(Ze.exponentPart.length===0||Ze.exponentPart.split("").filter(function(Qt){return S.indexOf(Qt)===-1}).length>0)&&(bt="D3093"),bt)throw{code:bt,stack:new Error().stack}},He=function(Ze){var bt=function(Zn,$o){for(var za=[],Cn=Zn.indexOf(C["grouping-separator"]);Cn!==-1;){var Ts=($o?Zn.substring(0,Cn):Zn.substring(Cn)).split("").filter(function(yi){return S.indexOf(yi)!==-1||yi===C.digit}).length;za.push(Ts),Cn=Ze.integerPart.indexOf(C["grouping-separator"],Cn+1)}return za},sr=bt(Ze.integerPart),It=function(Zn){if(Zn.length===0)return 0;for(var $o=function(yi,Fa){return Fa===0?yi:$o(Fa,yi%Fa)},za=Zn.reduce($o),Cn=1;Cn<=Zn.length;Cn++)if(Zn.indexOf(Cn*za)===-1)return 0;return za},br=It(sr),Kn=bt(Ze.fractionalPart,!0),Sr=Ze.integerPart.split("").filter(function(yn){return S.indexOf(yn)!==-1}).length,vi=Sr,qr=Ze.fractionalPart.split(""),Qr=qr.filter(function(yn){return S.indexOf(yn)!==-1}).length,Qt=qr.filter(function(yn){return S.indexOf(yn)!==-1||yn===C.digit}).length,Dr=typeof Ze.exponentPart=="string";Sr===0&&Qt===0&&(Dr?(Qr=1,Qt=1):Sr=1),Dr&&Sr===0&&Ze.integerPart.indexOf(C.digit)!==-1&&(Sr=1),Sr===0&&Qr===0&&(Qr=1);var Sf=0;return Dr&&(Sf=Ze.exponentPart.split("").filter(function(yn){return S.indexOf(yn)!==-1}).length),{integerPartGroupingPositions:sr,regularGrouping:br,minimumIntegerPartSize:Sr,scalingFactor:vi,prefix:Ze.prefix,fractionalPartGroupingPositions:Kn,minimumFactionalPartSize:Qr,maximumFactionalPartSize:Qt,minimumExponentSize:Sf,suffix:Ze.suffix,picture:Ze.subpicture}},Me=X.map(ne);Me.forEach(be);var Oe=Me.map(He),gt=C["minus-sign"],Ye=C["zero-digit"],ot=C["decimal-separator"],Tt=C["grouping-separator"];Oe.length===1&&(Oe.push(JSON.parse(JSON.stringify(Oe[0]))),Oe[1].prefix=gt+Oe[1].prefix);var $e;_>=0?$e=Oe[0]:$e=Oe[1];var Pr;$e.picture.indexOf(C.percent)!==-1?Pr=_*100:$e.picture.indexOf(C["per-mille"])!==-1?Pr=_*1e3:Pr=_;var Ir,hi;if($e.minimumExponentSize===0)Ir=Pr;else{var yf=Math.pow(10,$e.scalingFactor),Cf=Math.pow(10,$e.scalingFactor-1);for(Ir=Pr,hi=0;Iryf;)Ir/=10,hi+=1}var _f=V(Ir,$e.maximumFactionalPartSize),xs=function(Ze,bt){var sr=Math.abs(Ze).toFixed(bt);return Ye!=="0"&&(sr=sr.split("").map(function(It){return It>="0"&&It<="9"?S[It.charCodeAt(0)-48]:It}).join("")),sr},Ke=xs(_f,$e.maximumFactionalPartSize),ur=Ke.indexOf(".");for(ur===-1?Ke=Ke+ot:Ke=Ke.replace(".",ot);Ke.charAt(0)===Ye;)Ke=Ke.substring(1);for(;Ke.charAt(Ke.length-1)===Ye;)Ke=Ke.substring(0,Ke.length-1);ur=Ke.indexOf(ot);var mi=$e.minimumIntegerPartSize-ur,ws=$e.minimumFactionalPartSize-(Ke.length-ur-1);if(Ke=(mi>0?new Array(mi+1).join(Ye):"")+Ke,Ke=Ke+(ws>0?new Array(ws+1).join(Ye):""),ur=Ke.indexOf(ot),$e.regularGrouping>0)for(var bf=Math.floor((ur-1)/$e.regularGrouping),Ma=1;Ma<=bf;Ma++)Ke=[Ke.slice(0,ur-Ma*$e.regularGrouping),Tt,Ke.slice(ur-Ma*$e.regularGrouping)].join("");else $e.integerPartGroupingPositions.forEach(function(Rr){Ke=[Ke.slice(0,ur-Rr),Tt,Ke.slice(ur-Rr)].join(""),ur++});if(ur=Ke.indexOf(ot),$e.fractionalPartGroupingPositions.forEach(function(Rr){Ke=[Ke.slice(0,Rr+ur+1),Tt,Ke.slice(Rr+ur+1)].join("")}),ur=Ke.indexOf(ot),($e.picture.indexOf(ot)===-1||ur===Ke.length-1)&&(Ke=Ke.substring(0,Ke.length-1)),typeof hi<"u"){var Ba=xs(hi,0);mi=$e.minimumExponentSize-Ba.length,mi>0&&(Ba=new Array(mi+1).join(Ye)+Ba),Ke=Ke+C["exponent-separator"]+(hi<0?gt:"")+Ba}return Ke=$e.prefix+Ke+$e.suffix,Ke}}function Pt(_,R){if(!(typeof _>"u")){if(_=V(_),typeof R>"u"?R=10:R=V(R),R<2||R>36)throw{code:"D3100",stack:new Error().stack,value:R};var B=_.toString(R);return B}}function _t(_){var R;if(!(typeof _>"u")){if(typeof _=="number")R=_;else if(typeof _=="string"&&/^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(_)&&!isNaN(parseFloat(_))&&isFinite(_))R=parseFloat(_);else if(_===!0)R=1;else if(_===!1)R=0;else throw{code:"D3030",value:_,stack:new Error().stack,index:1};return R}}function Mt(_){var R;if(!(typeof _>"u"))return R=Math.abs(_),R}function te(_){var R;if(!(typeof _>"u"))return R=Math.floor(_),R}function F(_){var R;if(!(typeof _>"u"))return R=Math.ceil(_),R}function V(_,R){var B;if(!(typeof _>"u")){if(R){var h=_.toString().split("e");_=+(h[0]+"e"+(h[1]?+h[1]+R:R))}B=Math.round(_);var C=B-_;return Math.abs(C)===.5&&Math.abs(B%2)===1&&(B=B-1),R&&(h=B.toString().split("e"),B=+(h[0]+"e"+(h[1]?+h[1]-R:-R))),Object.is(B,-0)&&(B=0),B}}function H(_){var R;if(!(typeof _>"u")){if(_<0)throw{stack:new Error().stack,code:"D3060",index:1,value:_};return R=Math.sqrt(_),R}}function Ce(_,R){var B;if(!(typeof _>"u")){if(B=Math.pow(_,R),!isFinite(B))throw{stack:new Error().stack,code:"D3061",index:1,value:_,exp:R};return B}}function ue(){return Math.random()}function ve(_){if(!(typeof _>"u")){var R=!1;if(Array.isArray(_)){if(_.length===1)R=ve(_[0]);else if(_.length>1){var B=_.filter(function(h){return ve(h)});R=B.length>0}}else typeof _=="string"?_.length>0&&(R=!0):w(_)?_!==0&&(R=!0):_!==null&&typeof _=="object"?Object.keys(_).length>0&&(R=!0):typeof _=="boolean"&&_===!0&&(R=!0);return R}}function le(_){return!ve(_)}function Ee(_,R,B,h){var C=[R],S=G(_);return S>=2&&C.push(B),S>=3&&C.push(h),C}function*Qe(_,R){if(!(typeof _>"u")){for(var B=W(),h=0;h<_.length;h++){var C=Ee(R,_[h],h,_),S=yield*ie(R.apply(this,C));typeof S<"u"&&B.push(S)}return B}}function*ct(_,R){if(!(typeof _>"u")){for(var B=W(),h=0;h<_.length;h++){var C=_[h],S=Ee(R,C,h,_),x=yield*ie(R.apply(this,S));ve(x)&&B.push(C)}return B}}function ft(){for(var _=[],R=Array.prototype.slice.call(arguments),B=Math.min.apply(Math,R.map(function(S){return Array.isArray(S)?S.length:0})),h=0;h"u")){var h;if(G(R)!==2)throw{stack:new Error().stack,code:"D3050",index:1};var C;for(typeof B>"u"&&_.length>0?(h=_[0],C=1):(h=B,C=0);C<_.length;)h=yield*ie(R.apply(this,[h,_[C]])),C++;return h}}function re(_){var R=W();if(Array.isArray(_)){var B={};_.forEach(function(h){var C=re(h);C.forEach(function(S){B[S]=!0})}),R=re(B)}else _!==null&&typeof _=="object"&&!P(_)&&Object.keys(_).forEach(function(h){return R.push(h)});return R}function _e(_,R){var B;if(Array.isArray(_)){B=W();for(var h=0;h<_.length;h++){var C=_e(_[h],R);typeof C<"u"&&B.push(C)}}else _!==null&&typeof _=="object"&&(B=_[R]);return B}function it(_,R){return typeof _>"u"?R:typeof R>"u"?_:(Array.isArray(_)||(_=W(_)),Array.isArray(R)||(R=[R]),_.concat(R))}function Ve(_){return!(typeof _>"u")}function tr(_){var R=W();if(Array.isArray(_))_.forEach(function(C){R=it(R,tr(C))});else if(_!==null&&typeof _=="object"&&!P(_))for(var B in _){var h={};h[B]=_[B],R.push(h)}else R=_;return R}function wt(_){if(!(typeof _>"u")){var R={};return _.forEach(function(B){for(var h in B)R[h]=B[h]}),R}}function Jt(_){if(!(typeof _>"u")){if(_.length<=1)return _;for(var R=_.length,B=new Array(R),h=0;h"u")){if(_.length<=1)return _;var B;if(typeof R>"u"){if(!z(_)&&!k(_))throw{stack:new Error().stack,code:"D3070",index:1};B=function*(O,N){return O>N}}else B=R;var h=function*(O,N){var X=function*(He,Me,Oe){Me.length===0?Array.prototype.push.apply(He,Oe):Oe.length===0?Array.prototype.push.apply(He,Me):(yield*ie(B(Me[0],Oe[0])))?(He.push(Oe[0]),yield*ie(X(He,Me,Oe.slice(1)))):(He.push(Me[0]),yield*ie(X(He,Me.slice(1),Oe)))},ne=[];return yield*ie(X(ne,O,N)),ne},C=function*(O){if(!Array.isArray(O)||O.length<=1)return O;var N=Math.floor(O.length/2),X=O.slice(0,N),ne=O.slice(N);return X=yield*ie(C(X)),ne=yield*ie(C(ne)),yield*ie(h(X,ne))},S=yield*ie(C(_));return S}}function Wt(_){if(!(typeof _>"u")){if(_.length<=1)return _;for(var R=new Array(_.length),B=0;B<_.length;B++){var h=Math.floor(Math.random()*(B+1));B!==h&&(R[B]=R[h]),R[h]=_[B]}return R}}function*Xt(_,R){var B={};for(var h in _){var C=_[h],S=Ee(R,C,h,_),x=yield*ie(R.apply(this,S));ve(x)&&(B[h]=C)}return Object.keys(B).length===0&&(B=void 0),B}return{sum:oe,count:ee,max:se,min:ce,average:L,string:K,substring:fe,substringBefore:ge,substringAfter:at,lowercase:Ae,uppercase:nt,length:Je,trim:pt,pad:ze,match:Ot,contains:Se,replace:he,split:ke,join:Le,formatNumber:je,formatBase:Pt,number:_t,floor:te,ceil:F,round:V,abs:Mt,sqrt:H,power:Ce,random:ue,boolean:ve,not:le,map:Qe,zip:ft,filter:ct,foldLeft:Fe,sift:Xt,keys:re,lookup:_e,append:it,exists:Ve,spread:tr,merge:wt,reverse:Jt,each:de,sort:Yt,shuffle:Wt,base64encode:D,base64decode:U}}();u.exports=v}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./utils":6}],3:[function(n,u,l){var d=n("./datetime"),p=n("./functions"),v=n("./utils"),w=n("./parser"),k=n("./signature"),z=function(){"use strict";var W=v.isNumeric,M=v.isArrayOfStrings,P=v.isArrayOfNumbers,A=v.createSequence,G=v.isSequence,oe=v.isFunction,ee=v.isLambda,se=v.isIterable,ce=v.getFunctionArity,L=Xt(null);function*K(h,C,S){var x,O=S.lookup("__evaluate_entry");switch(O&&O(h,C,S),h.type){case"path":x=yield*ie(fe(h,C,S));break;case"binary":x=yield*ie(nt(h,C,S));break;case"unary":x=yield*ie(Je(h,C,S));break;case"name":x=pt(h,C,S);break;case"string":case"number":case"value":x=ze(h,C,S);break;case"wildcard":x=ae(h,C,S);break;case"descendant":x=Ot(h,C,S);break;case"condition":x=yield*ie(F(h,C,S));break;case"block":x=yield*ie(V(h,C,S));break;case"bind":x=yield*ie(te(h,C,S));break;case"regex":x=H(h,C,S);break;case"function":x=yield*ie(Qe(h,C,S));break;case"variable":x=Ce(h,C,S);break;case"lambda":x=Fe(h,C,S);break;case"partial":x=yield*ie(re(h,C,S));break;case"apply":x=yield*ie(Ee(h,C,S));break;case"sort":x=yield*ie(ue(h,C,S));break;case"transform":x=ve(h,C,S);break}S.async&&(typeof x>"u"||x===null||typeof x.then!="function")&&(x=Promise.resolve(x)),S.async&&typeof x.then=="function"&&h.nextFunction&&typeof x[h.nextFunction]=="function"||(x=yield x),h.hasOwnProperty("predicate")&&(x=yield*ie(at(h.predicate,x,S))),h.hasOwnProperty("group")&&(x=yield*ie(_t(h.group,x,S)));var N=S.lookup("__evaluate_exit");return N&&N(h,C,S,x),x&&G(x)&&(h.keepArray&&(x.keepSingleton=!0),x.length===0?x=void 0:x.length===1&&(x=x.keepSingleton?x:x[0])),x}function*fe(h,C,S){var x;h.steps[0].type==="variable"?x=A(C):Array.isArray(C)?x=C:x=A(C);for(var O,N=0;N"u"||O.length===0)break;x=O}return h.keepSingletonArray&&(O.keepSingleton=!0),O}function*ge(h,C,S,x){for(var O=A(),N=0;N":case">=":x=ke(O,N,X);break;case"&":x=Pt(O,N);break;case"and":case"or":x=je(O,N,X);break;case"..":x=Mt(O,N);break;case"in":x=Le(O,N);break}}catch(ne){throw ne.position=h.position,ne.token=X,ne}return x}function*Je(h,C,S){var x;switch(h.value){case"-":if(x=yield*ie(K(h.expression,C,S)),typeof x>"u")x=void 0;else if(W(x))x=-x;else throw{code:"D1002",stack:new Error().stack,position:h.position,token:h.value,value:x};break;case"[":x=[];for(var O=0;O"u"&&(C=[]),Array.isArray(h)?h.forEach(function(S){Se(S,C)}):C.push(h),C}function Ot(h,C){var S,x=A();return typeof C<"u"&&(he(C,x),x.length===1?S=x[0]:S=x),S}function he(h,C){Array.isArray(h)||C.push(h),Array.isArray(h)?h.forEach(function(S){he(S,C)}):h!==null&&typeof h=="object"&&Object.keys(h).forEach(function(S){he(h[S],C)})}function D(h,C,S){var x;if(typeof h<"u"&&!W(h))throw{code:"T2001",stack:new Error().stack,value:h};if(typeof C<"u"&&!W(C))throw{code:"T2002",stack:new Error().stack,value:C};if(typeof h>"u"||typeof C>"u")return x;switch(S){case"+":x=h+C;break;case"-":x=h-C;break;case"*":x=h*C;break;case"/":x=h/C;break;case"%":x=h%C;break}return x}function U(h,C,S){var x,O=typeof h,N=typeof C;if(O==="undefined"||N==="undefined")return!1;switch(S){case"=":x=h===C;break;case"!=":x=h!==C;break}return x}function ke(h,C,S){var x,O=typeof h,N=typeof C,X=O==="undefined"||O==="string"||O==="number",ne=N==="undefined"||N==="string"||N==="number";if(!X||!ne)throw{code:"T2010",stack:new Error().stack,value:O==="string"||O==="number"?C:h};if(!(O==="undefined"||N==="undefined")){if(O!==N)throw{code:"T2009",stack:new Error().stack,value:h,value2:C};switch(S){case"<":x=h":x=h>C;break;case">=":x=h>=C;break}return x}}function Le(h,C){var S=!1;if(typeof h>"u"||typeof C>"u")return!1;Array.isArray(C)||(C=[C]);for(var x=0;x"u"&&(O=!1),typeof N>"u"&&(N=!1),S){case"and":x=O&&N;break;case"or":x=O||N;break}return x}function Pt(h,C){var S,x="",O="";return typeof h<"u"&&(x=p.string(h)),typeof C<"u"&&(O=p.string(C)),S=x.concat(O),S}function*_t(h,C,S){var x={},O={};Array.isArray(C)||(C=A(C));for(var N=0;N"u"||typeof C>"u"||h>C)return S;var x=C-h+1;if(x>1e7)throw{code:"D2014",stack:new Error().stack,value:x};S=new Array(x);for(var O=h,N=0;O<=C;O++,N++)S[N]=O;return S.sequence=!0,S}function*te(h,C,S){var x=yield*ie(K(h.rhs,C,S));return S.bind(h.lhs.value,x),x}function*F(h,C,S){var x,O=yield*ie(K(h.condition,C,S));return p.boolean(O)?x=yield*ie(K(h.then,C,S)):typeof h.else<"u"&&(x=yield*ie(K(h.else,C,S))),x}function*V(h,C,S){for(var x,O=Xt(S),N=0;N1)for(var ne=1;ne=O.length)){var be=S(O);if(be&&be.match==="")throw{code:"D1004",stack:new Error().stack,position:h.position,value:h.value.source};return be}}}return N};return S}function Ce(h,C,S){var x;return h.value===""?x=C:x=S.lookup(h.value),x}function*ue(h,C,S){var x,O=yield*ie(K(h.lhs,C,S)),N=function*(be,He){for(var Me=0,Oe=0;Me===0&&Oe"u")){var X=S.lookup("clone");if(!oe(X))throw{code:"T2013",stack:new Error().stack,position:h.position};var ne=yield*ie(ct(X,[N],null,S)),be=yield*ie(K(h.pattern,ne,S));if(typeof be<"u"){Array.isArray(be)||(be=[be]);for(var He=0;He")}var le=w("function($f, $g) { function($x){ $g($f($x)) } }");function*Ee(h,C,S){var x,O=yield*ie(K(h.lhs,C,S));if(h.rhs.type==="function")x=yield*ie(Qe(h.rhs,C,S,{context:O}));else{var N=yield*ie(K(h.rhs,C,S));if(!oe(N))throw{code:"T2006",stack:new Error().stack,position:h.position,value:N};if(oe(O)){var X=yield*ie(K(le,null,S));x=yield*ie(ct(X,[O,N],null,S))}else x=yield*ie(ct(N,[O],null,S))}return x}function*Qe(h,C,S,x){var O,N=yield*ie(K(h.procedure,C,S));if(typeof N>"u"&&h.procedure.type==="path"&&S.lookup(h.procedure.steps[0].value))throw{code:"T1005",stack:new Error().stack,position:h.position,token:h.procedure.steps[0].value};var X=[];typeof x<"u"&&X.push(x.context);for(var ne=function*(){var Oe=yield*ie(K(h.arguments[be],C,S));if(oe(Oe)){var gt=function*(){for(var ot=arguments.length,Tt=new Array(ot),$e=0;$e"u"&&typeof h.token<"u"&&(ne.token=h.token),ne.position=h.position),ne}return O}function Fe(h,C,S){var x={_jsonata_lambda:!0,input:C,environment:S,arguments:h.arguments,signature:h.signature,body:h.body};return h.thunk===!0&&(x.thunk=!0),x.apply=function*(O,N){return yield*ie(ct(x,N,C,O.environment))},x}function*re(h,C,S){for(var x,O=[],N=0;N"u"&&h.procedure.type==="path"&&S.lookup(h.procedure.steps[0].value))throw{code:"T1007",stack:new Error().stack,position:h.position,token:h.procedure.steps[0].value};if(ee(ne))x=Ve(ne,O);else if(ne&&ne._jsonata_function===!0)x=tr(ne.implementation,O);else if(typeof ne=="function")x=tr(ne,O);else throw{code:"T1008",stack:new Error().stack,position:h.position,token:h.procedure.type==="path"?h.procedure.steps[0].value:h.procedure.value};return x}function _e(h,C,S){if(typeof h>"u")return C;var x=h.validate(C,S);return x}function*it(h,C){var S,x=Xt(h.environment);return h.arguments.forEach(function(O,N){x.bind(O.value,C[N])}),typeof h.body=="function"?S=yield*ie(wt(h.body,x)):S=yield*ie(K(h.body,h.input,x)),S}function Ve(h,C){var S=Xt(h.environment),x=[];h.arguments.forEach(function(N,X){var ne=C[X];ne&&ne.type==="operator"&&ne.value==="?"?x.push(N):S.bind(N.value,ne)});var O={_jsonata_lambda:!0,input:h.input,environment:S,arguments:x,body:h.body};return O}function tr(h,C){var S=Jt(h);S=S.map(function(X){return"$"+X.trim()});var x="function("+S.join(", ")+"){ _ }",O=w(x);O.body=h;var N=Ve(O,C);return N}function*wt(h,C){var S=Jt(h),x=S.map(function(X){return C.lookup(X.trim())}),O={environment:C},N=h.apply(O,x);return se(N)&&(N=yield*ie(N)),N}function Jt(h){var C=h.toString(),S=/\(([^)]*)\)/.exec(C)[1],x=S.split(",");return x}function de(h,C){var S={_jsonata_function:!0,implementation:h};return typeof C<"u"&&(S.signature=k(C)),S}function*Yt(h,C){if(!(typeof h>"u")){var S=this.input;typeof C<"u"&&(S=C);try{var x=w(h,!1)}catch(N){throw R(N),{stack:new Error().stack,code:"D3120",value:N.message,error:N}}try{var O=yield*ie(K(x,S,this.environment))}catch(N){throw R(N),{stack:new Error().stack,code:"D3121",value:N.message,error:N}}return O}}function Wt(h){if(!(typeof h>"u"))return JSON.parse(p.string(h))}function Xt(h){var C={};return{bind:function(x,O){C[x]=O},lookup:function(x){var O;return C.hasOwnProperty(x)?O=C[x]:h&&(O=h.lookup(x)),O},timestamp:h?h.timestamp:null,async:h?h.async:!1}}L.bind("sum",de(p.sum,":n>")),L.bind("count",de(p.count,"")),L.bind("max",de(p.max,":n>")),L.bind("min",de(p.min,":n>")),L.bind("average",de(p.average,":n>")),L.bind("string",de(p.string,"")),L.bind("substring",de(p.substring,"")),L.bind("substringBefore",de(p.substringBefore,"")),L.bind("substringAfter",de(p.substringAfter,"")),L.bind("lowercase",de(p.lowercase,"")),L.bind("uppercase",de(p.uppercase,"")),L.bind("length",de(p.length,"")),L.bind("trim",de(p.trim,"")),L.bind("pad",de(p.pad,"")),L.bind("match",de(p.match,"n?:a>")),L.bind("contains",de(p.contains,"")),L.bind("replace",de(p.replace,"")),L.bind("split",de(p.split,">")),L.bind("join",de(p.join,"s?:s>")),L.bind("formatNumber",de(p.formatNumber,"")),L.bind("formatBase",de(p.formatBase,"")),L.bind("formatInteger",de(d.formatInteger,"")),L.bind("parseInteger",de(d.parseInteger,"")),L.bind("number",de(p.number,"<(nsb)-:n>")),L.bind("floor",de(p.floor,"")),L.bind("ceil",de(p.ceil,"")),L.bind("round",de(p.round,"")),L.bind("abs",de(p.abs,"")),L.bind("sqrt",de(p.sqrt,"")),L.bind("power",de(p.power,"")),L.bind("random",de(p.random,"<:n>")),L.bind("boolean",de(p.boolean,"")),L.bind("not",de(p.not,"")),L.bind("map",de(p.map,"")),L.bind("zip",de(p.zip,"")),L.bind("filter",de(p.filter,"")),L.bind("reduce",de(p.foldLeft,"")),L.bind("sift",de(p.sift,"")),L.bind("keys",de(p.keys,">")),L.bind("lookup",de(p.lookup,"")),L.bind("append",de(p.append,"")),L.bind("exists",de(p.exists,"")),L.bind("spread",de(p.spread,">")),L.bind("merge",de(p.merge,":o>")),L.bind("reverse",de(p.reverse,"")),L.bind("each",de(p.each,"")),L.bind("sort",de(p.sort,"")),L.bind("shuffle",de(p.shuffle,"")),L.bind("base64encode",de(p.base64encode,"")),L.bind("base64decode",de(p.base64decode,"")),L.bind("eval",de(Yt,"")),L.bind("toMillis",de(d.toMillis,"")),L.bind("fromMillis",de(d.fromMillis,"")),L.bind("clone",de(Wt,"<(oa)-:o>"));var _={S0101:"String literal must be terminated by a matching quote",S0102:"Number out of range: {{token}}",S0103:"Unsupported escape sequence: \\{{token}}",S0104:"The escape sequence \\u must be followed by 4 hex digits",S0105:"Quoted property name must be terminated with a backquote (`)",S0106:"Comment has no closing tag",S0201:"Syntax error: {{token}}",S0202:"Expected {{value}}, got {{token}}",S0203:"Expected {{value}} before end of expression",S0204:"Unknown operator: {{token}}",S0205:"Unexpected token: {{token}}",S0206:"Unknown expression type: {{token}}",S0207:"Unexpected end of expression",S0208:"Parameter {{value}} of function definition must be a variable name (start with $)",S0209:"A predicate cannot follow a grouping expression in a step",S0210:"Each step can only have one grouping expression",S0211:"The symbol {{token}} cannot be used as a unary operator",S0212:"The left side of := must be a variable name (start with $)",S0213:"The literal value {{value}} cannot be used as a step within a path expression",S0301:"Empty regular expressions are not allowed",S0302:"No terminating / in regular expression",S0402:"Choice groups containing parameterized types are not supported",S0401:"Type parameters can only be applied to functions and arrays",S0500:"Attempted to evaluate an expression containing syntax error(s)",T0410:"Argument {{index}} of function {{token}} does not match function signature",T0411:"Context value is not a compatible type with argument {{index}} of function {{token}}",T0412:"Argument {{index}} of function {{token}} must be an array of {{type}}",D1001:"Number out of range: {{value}}",D1002:"Cannot negate a non-numeric value: {{value}}",T1003:"Key in object structure must evaluate to a string; got: {{value}}",D1004:"Regular expression matches zero length string",T1005:"Attempted to invoke a non-function. Did you mean ${{{token}}}?",T1006:"Attempted to invoke a non-function",T1007:"Attempted to partially apply a non-function. Did you mean ${{{token}}}?",T1008:"Attempted to partially apply a non-function",D1009:"Multiple key definitions evaluate to same key: {{value}}",T1010:"The matcher function argument passed to function {{token}} does not return the correct object structure",T2001:"The left side of the {{token}} operator must evaluate to a number",T2002:"The right side of the {{token}} operator must evaluate to a number",T2003:"The left side of the range operator (..) must evaluate to an integer",T2004:"The right side of the range operator (..) must evaluate to an integer",D2005:"The left side of := must be a variable name (start with $)",T2006:"The right side of the function application operator ~> must be a function",T2007:"Type mismatch when comparing values {{value}} and {{value2}} in order-by clause",T2008:"The expressions within an order-by clause must evaluate to numeric or string values",T2009:"The values {{value}} and {{value2}} either side of operator {{token}} must be of the same data type",T2010:"The expressions either side of operator {{token}} must evaluate to numeric or string values",T2011:"The insert/update clause of the transform expression must evaluate to an object: {{value}}",T2012:"The delete clause of the transform expression must evaluate to a string or array of strings: {{value}}",T2013:"The transform expression clones the input object using the $clone() function. This has been overridden in the current scope by a non-function.",D2014:"The size of the sequence allocated by the range operator (..) must not exceed 1e6. Attempted to allocate {{value}}.",D3001:"Attempting to invoke string function on Infinity or NaN",D3010:"Second argument of replace function cannot be an empty string",D3011:"Fourth argument of replace function must evaluate to a positive number",D3012:"Attempted to replace a matched string with a non-string value",D3020:"Third argument of split function must evaluate to a positive number",D3030:"Unable to cast value to a number: {{value}}",D3040:"Third argument of match function must evaluate to a positive number",D3050:"First argument of reduce function must be a function with two arguments",D3060:"The sqrt function cannot be applied to a negative number: {{value}}",D3061:"The power function has resulted in a value that cannot be represented as a JSON number: base={{value}}, exponent={{exp}}",D3070:"The single argument form of the sort function can only be applied to an array of strings or an array of numbers. Use the second argument to specify a comparison function",D3080:"The picture string must only contain a maximum of two sub-pictures",D3081:"The sub-picture must not contain more than one instance of the 'decimal-separator' character",D3082:"The sub-picture must not contain more than one instance of the 'percent' character",D3083:"The sub-picture must not contain more than one instance of the 'per-mille' character",D3084:"The sub-picture must not contain both a 'percent' and a 'per-mille' character",D3085:"The mantissa part of a sub-picture must contain at least one character that is either an 'optional digit character' or a member of the 'decimal digit family'",D3086:"The sub-picture must not contain a passive character that is preceded by an active character and that is followed by another active character",D3087:"The sub-picture must not contain a 'grouping-separator' character that appears adjacent to a 'decimal-separator' character",D3088:"The sub-picture must not contain a 'grouping-separator' at the end of the integer part",D3089:"The sub-picture must not contain two adjacent instances of the 'grouping-separator' character",D3090:"The integer part of the sub-picture must not contain a member of the 'decimal digit family' that is followed by an instance of the 'optional digit character'",D3091:"The fractional part of the sub-picture must not contain an instance of the 'optional digit character' that is followed by a member of the 'decimal digit family'",D3092:"A sub-picture that contains a 'percent' or 'per-mille' character must not contain a character treated as an 'exponent-separator'",D3093:"The exponent part of the sub-picture must comprise only of one or more characters that are members of the 'decimal digit family'",D3100:"The radix of the formatBase function must be between 2 and 36. It was given {{value}}",D3110:"The argument of the toMillis function must be an ISO 8601 formatted timestamp. Given {{value}}",D3120:"Syntax error in expression passed to function eval: {{value}}",D3121:"Dynamic error evaluating the expression passed to function eval: {{value}}",D3130:"Formatting an integer as a sequence starting with {{value}} is not supported by this implementation",D3131:"In a decimal digit pattern, all digits must be from the same decimal group",D3132:"Unknown component specifier {{value}} in date/time picture string",D3133:"The 'name' modifier can only be applied to months and days in the date/time picture string, not {{value}}",D3134:"The timezone integer format specifier cannot have more than four digits",D3135:"No matching closing bracket ']' in date/time picture string",D3136:"The date/time picture string is missing specifiers required to parse the timestamp"};function R(h){var C=_[h.code];if(typeof C<"u"){var S=C.replace(/\{\{\{([^}]+)}}}/g,function(){return h[arguments[1]]});S=S.replace(/\{\{([^}]+)}}/g,function(){return JSON.stringify(h[arguments[1]])}),h.message=S}}function B(h,C){var S,x;try{S=w(h,C&&C.recover),x=S.errors,delete S.errors}catch(X){throw R(X),X}var O=Xt(L),N=new Date;return O.bind("now",de(function(X,ne){return d.fromMillis(N.getTime(),X,ne)},"")),O.bind("millis",de(function(){return N.getTime()},"<:n>")),{evaluate:function(ne,be,He){if(typeof x<"u"){var Me={code:"S0500",position:0};throw R(Me),Me}if(typeof be<"u"){var Oe;Oe=Xt(O);for(var gt in be)Oe.bind(gt,be[gt])}else Oe=O;Oe.bind("$",ne),N=new Date,Oe.timestamp=N;var Ye,ot;if(typeof He=="function"){Oe.async=!0;var Tt=function(Ir){R(Ir),He(Ir,null)},$e=function(Ir){Ye=ot.next(Ir),Ye.done?He(null,Ye.value):Ye.value.then($e).catch(Tt)};ot=K(S,ne,Oe),Ye=ot.next(),Ye.value.then($e).catch(Tt)}else try{for(ot=K(S,ne,Oe),Ye=ot.next();!Ye.done;)Ye=ot.next(Ye.value);return Ye.value}catch(Pr){throw R(Pr),Pr}},assign:function(ne,be){O.bind(ne,be)},registerFunction:function(ne,be,He){var Me=de(be,He);O.bind(ne,Me)},ast:function(){return S},errors:function(){return x}}}return B.parser=w,B}();u.exports=z},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(n,u,l){var d=n("./signature"),p=function(){"use strict";var v={".":75,"[":80,"]":0,"{":70,"}":0,"(":80,")":0,",":0,"@":75,"#":70,";":80,":":80,"?":20,"+":50,"-":50,"*":60,"/":60,"%":60,"|":20,"=":40,"<":40,">":40,"^":40,"**":60,"..":20,":=":10,"!=":40,"<=":40,">=":40,"~>":40,and:30,or:25,in:40,"&":50,"!":0,"~":0},w={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},k=function(M){var P=0,A=M.length,G=function(ce,L){var K={type:ce,value:L,position:P};return K},oe=function(){for(var ce=P,L=0,K,fe;P=A)return null;for(var L=M.charAt(P);P-1;)P++,L=M.charAt(P);if(L==="/"&&M.charAt(P+1)==="*"){var K=P;for(P+=2,L=M.charAt(P);!(L==="*"&&M.charAt(P+1)==="/");)if(L=M.charAt(++P),P>=A)throw{code:"S0106",stack:new Error().stack,position:K};return P+=2,L=M.charAt(P),ee(ce)}if(ce!==!0&&L==="/")return P++,G("regex",oe());if(L==="."&&M.charAt(P+1)===".")return P+=2,G("operator","..");if(L===":"&&M.charAt(P+1)==="=")return P+=2,G("operator",":=");if(L==="!"&&M.charAt(P+1)==="=")return P+=2,G("operator","!=");if(L===">"&&M.charAt(P+1)==="=")return P+=2,G("operator",">=");if(L==="<"&&M.charAt(P+1)==="=")return P+=2,G("operator","<=");if(L==="*"&&M.charAt(P+1)==="*")return P+=2,G("operator","**");if(L==="~"&&M.charAt(P+1)===">")return P+=2,G("operator","~>");if(v.hasOwnProperty(L))return P++,G("operator",L);if(L==='"'||L==="'"){var fe=L;P++;for(var ge="";P-1||v.hasOwnProperty(Ot)){if(M.charAt(P)==="$")return ze=M.substring(P+1,Se),P=Se,G("variable",ze);switch(ze=M.substring(P,Se),P=Se,ze){case"or":case"in":case"and":return G("operator",ze);case"true":return G("value",!0);case"false":return G("value",!1);case"null":return G("value",null);default:return P===A&&ze===""?null:G("name",ze)}}else Se++};return ee},z=function(M,P){var A,G,oe={},ee=[],se=function(){var D=[];A.id!=="(end)"&&D.push({type:A.type,value:A.value,position:A.position});for(var U=G();U!==null;)D.push(U),U=G();return D},ce={nud:function(){var D={code:"S0211",token:this.value,position:this.position};if(P)return D.remaining=se(),D.type="error",ee.push(D),D;throw D.stack=new Error().stack,D}},L=function(D,U){var ke=oe[D];return U=U||0,ke?U>=ke.lbp&&(ke.lbp=U):(ke=Object.create(ce),ke.id=ke.value=D,ke.lbp=U,oe[D]=ke),ke},K=function(D){if(P){D.remaining=se(),ee.push(D);var U=oe["(error)"];return A=Object.create(U),A.error=D,A.type="(error)",A}else throw D.stack=new Error().stack,D},fe=function(D,U){if(D&&A.id!==D){var ke;A.id==="(end)"?ke="S0203":ke="S0202";var Le={code:ke,position:A.position,token:A.value,value:D};return K(Le)}var je=G(U);if(je===null)return A=oe["(end)"],A.position=M.length,A;var Pt=je.value,_t=je.type,Mt;switch(_t){case"name":case"variable":Mt=oe["(name)"];break;case"operator":if(Mt=oe[Pt],!Mt)return K({code:"S0204",stack:new Error().stack,position:je.position,token:Pt});break;case"string":case"number":case"value":Mt=oe["(literal)"];break;case"regex":_t="regex",Mt=oe["(regex)"];break;default:return K({code:"S0205",stack:new Error().stack,position:je.position,token:Pt})}return A=Object.create(Mt),A.value=Pt,A.type=_t,A.position=je.position,A},ge=function(D){var U,ke=A;for(fe(null,!0),U=ke.nud();D"),Ae("!="),Ae("<="),Ae(">="),Ae("&"),Ae("and"),Ae("or"),Ae("in"),at("and"),at("or"),at("in"),Je("-"),Ae("~>"),nt("(error)",10,function(he){return this.lhs=he,this.error=A.error,this.remaining=se(),this.type="error",this}),Je("*",function(){return this.type="wildcard",this}),Je("**",function(){return this.type="descendant",this}),Ae("(",v["("],function(he){if(this.procedure=he,this.type="function",this.arguments=[],A.id!==")")for(;A.type==="operator"&&A.id==="?"?(this.type="partial",this.arguments.push(A),fe("?")):this.arguments.push(ge(0)),A.id===",";)fe(",");if(fe(")",!0),he.type==="name"&&(he.value==="function"||he.value==="\u03BB")){if(this.arguments.forEach(function(je,Pt){if(je.type!=="variable")return K({code:"S0208",stack:new Error().stack,position:je.position,token:je.value,value:Pt+1})}),this.type="lambda",A.id==="<"){for(var D=A.position,U=1,ke="<";U>0&&A.id!=="{"&&A.id!=="(end)";){var Le=fe();Le.id===">"?U--:Le.id==="<"&&U++,ke+=Le.value}fe(">");try{this.signature=d(ke)}catch(je){return je.position=D+je.offset,K(je)}}fe("{"),this.body=ge(0),fe("}")}return this}),Je("(",function(){for(var he=[];A.id!==")"&&(he.push(ge(0)),A.id===";");)fe(";");return fe(")",!0),this.type="block",this.expressions=he,this}),Je("[",function(){var he=[];if(A.id!=="]")for(;;){var D=ge(0);if(A.id===".."){var U={type:"binary",value:"..",position:A.position,lhs:D};fe(".."),U.rhs=ge(0),D=U}if(he.push(D),A.id!==",")break;fe(",")}return fe("]",!0),this.expressions=he,this.type="unary",this}),Ae("[",v["["],function(he){if(A.id==="]"){for(var D=he;D&&D.type==="binary"&&D.value==="[";)D=D.lhs;return D.keepArray=!0,fe("]"),he}else return this.lhs=he,this.rhs=ge(v["]"]),this.type="binary",fe("]",!0),this}),Ae("^",v["^"],function(he){fe("(");for(var D=[];;){var U={descending:!1};if(A.id==="<"?fe("<"):A.id===">"&&(U.descending=!0,fe(">")),U.expression=ge(0),D.push(U),A.id!==",")break;fe(",")}return fe(")"),this.lhs=he,this.rhs=D,this.type="binary",this});var pt=function(D){var U=[];if(A.id!=="}")for(;;){var ke=ge(0);fe(":");var Le=ge(0);if(U.push([ke,Le]),A.id!==",")break;fe(",")}return fe("}",!0),typeof D>"u"?(this.lhs=U,this.type="unary"):(this.lhs=D,this.rhs=U,this.type="binary"),this};Je("{",pt),Ae("{",v["{"],pt),nt(":=",v[":="],function(he){return he.type!=="variable"?K({code:"S0212",stack:new Error().stack,position:he.position,token:he.value}):(this.lhs=he,this.rhs=ge(v[":="]-1),this.type="binary",this)}),Ae("?",v["?"],function(he){return this.type="condition",this.condition=he,this.then=ge(0),A.id===":"&&(fe(":"),this.else=ge(0)),this}),Je("|",function(){return this.type="transform",this.pattern=ge(0),fe("|"),this.update=ge(0),A.id===","&&(fe(","),this.delete=ge(0)),fe("|"),this});var ze=function(D){var U;if(D.type==="function"&&!D.predicate){var ke={type:"lambda",thunk:!0,arguments:[],position:D.position};ke.body=D,U=ke}else if(D.type==="condition")D.then=ze(D.then),typeof D.else<"u"&&(D.else=ze(D.else)),U=D;else if(D.type==="block"){var Le=D.expressions.length;Le>0&&(D.expressions[Le-1]=ze(D.expressions[Le-1])),U=D}else U=D;return U},ae=function(D){var U;switch(D.type){case"binary":switch(D.value){case".":var ke=ae(D.lhs);U={type:"path",steps:[]},ke.type==="path"?Array.prototype.push.apply(U.steps,ke.steps):U.steps=[ke];var Le=ae(D.rhs);Le.type==="function"&&Le.procedure.type==="path"&&Le.procedure.steps.length===1&&Le.procedure.steps[0].type==="name"&&U.steps[U.steps.length-1].type==="function"&&(U.steps[U.steps.length-1].nextFunction=Le.procedure.steps[0].value),Le.type!=="path"&&(Le={type:"path",steps:[Le]}),Array.prototype.push.apply(U.steps,Le.steps),U.steps.filter(function(V){if(V.type==="number"||V.type==="value")throw{code:"S0213",stack:new Error().stack,position:V.position,value:V.value};return V.type==="string"}).forEach(function(V){V.type="name"}),U.steps.filter(function(V){return V.keepArray===!0}).length>0&&(U.keepSingletonArray=!0);var je=U.steps[0];je.type==="unary"&&je.value==="["&&(je.consarray=!0);var Pt=U.steps[U.steps.length-1];Pt.type==="unary"&&Pt.value==="["&&(Pt.consarray=!0);break;case"[":U=ae(D.lhs);var _t=U;if(U.type==="path"&&(_t=U.steps[U.steps.length-1]),typeof _t.group<"u")throw{code:"S0209",stack:new Error().stack,position:D.position};typeof _t.predicate>"u"&&(_t.predicate=[]),_t.predicate.push(ae(D.rhs));break;case"{":if(U=ae(D.lhs),typeof U.group<"u")throw{code:"S0210",stack:new Error().stack,position:D.position};U.group={lhs:D.rhs.map(function(V){return[ae(V[0]),ae(V[1])]}),position:D.position};break;case"^":U={type:"sort",value:D.value,position:D.position,consarray:!0},U.lhs=ae(D.lhs),U.rhs=D.rhs.map(function(V){return{descending:V.descending,expression:ae(V.expression)}});break;case":=":U={type:"bind",value:D.value,position:D.position},U.lhs=ae(D.lhs),U.rhs=ae(D.rhs);break;case"~>":U={type:"apply",value:D.value,position:D.position},U.lhs=ae(D.lhs),U.rhs=ae(D.rhs);break;default:U={type:D.type,value:D.value,position:D.position},U.lhs=ae(D.lhs),U.rhs=ae(D.rhs)}break;case"unary":U={type:D.type,value:D.value,position:D.position},D.value==="["?U.expressions=D.expressions.map(function(V){return ae(V)}):D.value==="{"?U.lhs=D.lhs.map(function(V){return[ae(V[0]),ae(V[1])]}):(U.expression=ae(D.expression),D.value==="-"&&U.expression.type==="number"&&(U=U.expression,U.value=-U.value));break;case"function":case"partial":U={type:D.type,name:D.name,value:D.value,position:D.position},U.arguments=D.arguments.map(function(V){return ae(V)}),U.procedure=ae(D.procedure);break;case"lambda":U={type:D.type,arguments:D.arguments,signature:D.signature,position:D.position};var Mt=ae(D.body);U.body=ze(Mt);break;case"condition":U={type:D.type,position:D.position},U.condition=ae(D.condition),U.then=ae(D.then),typeof D.else<"u"&&(U.else=ae(D.else));break;case"transform":U={type:D.type,position:D.position},U.pattern=ae(D.pattern),U.update=ae(D.update),typeof D.delete<"u"&&(U.delete=ae(D.delete));break;case"block":U={type:D.type,position:D.position},U.expressions=D.expressions.map(function(V){var H=ae(V);return(H.consarray||H.type==="path"&&H.steps[0].consarray)&&(U.consarray=!0),H});break;case"name":U={type:"path",steps:[D]},D.keepArray&&(U.keepSingletonArray=!0);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":U=D;break;case"operator":if(D.value==="and"||D.value==="or"||D.value==="in")D.type="name",U=ae(D);else if(D.value==="?")U=D;else throw{code:"S0201",stack:new Error().stack,position:D.position,token:D.value};break;case"error":U=D,D.lhs&&(U=ae(D.lhs));break;default:var te="S0206";D.id==="(end)"&&(te="S0207");var F={code:te,position:D.position,token:D.value};if(P)return ee.push(F),{type:"error",error:F};throw F.stack=new Error().stack,F}return D.keepArray&&(U.keepArray=!0),U};G=k(M),fe();var Se=ge(0);if(A.id!=="(end)"){var Ot={code:"S0201",position:A.position,token:A.value};K(Ot)}return Se=ae(Se),ee.length>0&&(Se.errors=ee),Se};return z}();u.exports=p},{"./signature":5}],5:[function(n,u,l){var d=n("./utils"),p=function(){"use strict";var v={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function w(k){for(var z=1,W=[],M={},P=M;z");P.subtype=k.substring(z+1,ce),z=ce}else throw{code:"S0401",stack:new Error().stack,value:P.type,offset:z};break}z++}var L="^"+W.map(function(at){return"("+at.regex+")"}).join("")+"$",K=new RegExp(L),fe=function(Ae){var nt;if(d.isFunction(Ae))nt="f";else{var Je=typeof Ae;switch(Je){case"string":nt="s";break;case"number":nt="n";break;case"boolean":nt="b";break;case"object":Ae===null?nt="l":Array.isArray(Ae)?nt="a":nt="o";break;case"undefined":default:nt="m"}}return nt},ge=function(Ae,nt){for(var Je="^",pt=0,ze=0;ze0){var je=fe(he[0]);if(je!==Se.subtype.charAt(0))Le=!1;else{var Pt=he.filter(function(_t){return fe(_t)!==je});Le=Pt.length===0}}}if(!Le)throw{code:"T0412",stack:new Error().stack,value:he,index:ae+1,type:v[Se.subtype]};ke!=="a"&&(he=[he])}ze.push(he),ae++}else ze.push(he),ae++})}),ze}ge(Ae,Je)}}}return w}();u.exports=p},{"./utils":6}],6:[function(n,u,l){var d=function(){"use strict";function p(ee){var se=!1;if(typeof ee=="number"&&(se=!isNaN(ee),se&&!isFinite(ee)))throw{code:"D1001",value:ee,stack:new Error().stack};return se}function v(ee){var se=!1;return Array.isArray(ee)&&(se=ee.filter(function(ce){return typeof ce!="string"}).length===0),se}function w(ee){var se=!1;return Array.isArray(ee)&&(se=ee.filter(function(ce){return!p(ce)}).length===0),se}function k(){var ee=[];return ee.sequence=!0,arguments.length===1&&ee.push(arguments[0]),ee}function z(ee){return ee.sequence===!0&&Array.isArray(ee)}function W(ee){return ee&&(ee._jsonata_function===!0||ee._jsonata_lambda===!0)||typeof ee=="function"}function M(ee){var se=typeof ee.arity=="number"?ee.arity:typeof ee.implementation=="function"?ee.implementation.length:typeof ee.length=="number"?ee.length:ee.arguments.length;return se}function P(ee){return ee&&ee._jsonata_lambda===!0}var A=typeof Symbol=="function"?Symbol:{},G=A.iterator||"@@iterator";function oe(ee){return typeof ee=="object"&&ee!==null&&G in ee&&"next"in ee&&typeof ee.next=="function"}return{isNumeric:p,isArrayOfStrings:v,isArrayOfNumbers:w,createSequence:k,isSequence:z,isFunction:W,isLambda:P,isIterable:oe,getFunctionArity:M}}();u.exports=d},{}]},{},[3])(3)})});var Zd=T(Kd=>{"use strict";f();Object.defineProperty(Kd,"__esModule",{value:!0});Kd.jsonata=$y()});var Jd=T(Tl=>{"use strict";f();Object.defineProperty(Tl,"__esModule",{value:!0});Tl.parseTransform=void 0;var H2=Zd();function G2(e,r,a){for(var n=[],u=[],l=0;l=e.length-1){if(a)for(var d=r-u.length;d>0;d--)u.push(a);n.push(u)}return n}function K2(e){var r=(0,H2.jsonata)(e);return r.registerFunction("partition",G2,""),r.evaluate}Tl.parseTransform=K2});var Ny=T(Dn=>{"use strict";f();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.parseInterpolatedBindingExpression=Dn.isDateTimeLiteral=Dn.containsSubBindingExpression=Dn.isBindingExpression=void 0;var Z2=/^{{(DATE\(|TIME\().*\)}}$/;function J2(e){return e&&typeof e=="string"&&/[^]*{{[^]*}}[^]*/.test(e)}Dn.isBindingExpression=J2;function Y2(e){return!/^{{((?!{{[^]*}})[^])*}}$/.test(e)}Dn.containsSubBindingExpression=Y2;function X2(e){return Z2.test(e)}Dn.isDateTimeLiteral=X2;function Q2(e,r){for(var a=/{{((?!{{[^]*}})[^])*}}/g,n=a.exec(e),u;n;){var l=e.slice(u?u.index+u[0].length:0,n.index);l.length>0&&r(l,!1),r(n[0],!0),u=n,n=a.exec(e)}var d=e.slice(u.index+u[0].length);d.length>0&&r(d,!1)}Dn.parseInterpolatedBindingExpression=Q2});var Wy=T(to=>{"use strict";f();Object.defineProperty(to,"__esModule",{value:!0});to.compileBindable=to.parseBindable=void 0;var Ln=Ut(),eq=Jd(),Al=Ny(),eo={source:"$source",templates:"$templates",template:"$template"};function tq(e){return Ln.isArray(e)}function rq(e){return Ln.isObject(e)}function nq(e){return Ln.isString(e)||Ln.isNumber(e)||Ln.isBoolean(e)||Ln.isNull(e)||Ln.isUndefined(e)}function iq(e){return(0,Al.isBindingExpression)(e)}function aq(e){return eo.templates in e}function oq(e){return eo.source in e}function uq(e){return eo.template in e}function Uy(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function a(A){return r?A.split("\n").map(function(G){return G.length===0?"":" "+G}).join("\n"):A}function n(A){return!r||A.length===0||A[A.length-1]==="\n"?A:A+"\n"}function u(A){if(tq(A))return l(A);if(rq(A))return d(A);if(nq(A))return z(A);throw new Error("Element is not bindable")}function l(A){return"[".concat(A.map(function(G){return u(G)}).join(","),"]")}function d(A){return aq(A)?p(A):oq(A)?v(A):uq(A)?w(A):k(A)}function p(A){var G=Ln.omit(A,eo.templates),oe=A.$templates,ee="{\n"+a(Object.keys(oe).map(function(se){return'"'.concat(se,'": function($this,$param){\n')+a("$this.(\n"+n(a(u(oe[se])))+")}")}).join(",\n"))+"\n}";return"(\n"+a("$templateOuter := $template;\n$template := function($id, $try) {(\n"+a("$templates :=\n"+a(ee+";\n")+"\n$result := $lookup($templates, $id);\n$result ? $result : $templateOuter($id, $try)\n")+")};\n\n"+n(d(G)))+")\n"}function v(A){var G=Ln.omit(A,eo.source);return"($__source:=(".concat(u(A.$source),"); $__source.($this:=$; ").concat(d(G),"))")}function w(A){var G=Ln.omit(A,eo.template);return"$template(".concat(u(A.$template),")($this,\n").concat(a(k(G)),")\n")}function k(A){return"{\n"+a(Object.keys(A).map(function(G){return'"'.concat(G,'":\n')+a(u(A[G]))}).join(",\n"))+"\n}\n"}function z(A){return iq(A)?M(A):P(A)}function W(A){if((0,Al.isDateTimeLiteral)(A))return JSON.stringify(A);var G=A.slice(2,A.length-2);return G.length===0?"$":G}function M(A){if((0,Al.containsSubBindingExpression)(A)){var G=[];return(0,Al.parseInterpolatedBindingExpression)(A,function(oe,ee){G.push(ee?"$string(".concat(W(oe),")"):JSON.stringify(oe))}),"$join([".concat(G.join(","),"])")}return W(A)}function P(A){return JSON.stringify(A)}return"(\n $root:=$;\n $this:=$;\n $template:=function($id, $try) {(\n $nativeTemplate := $nativeTemplates ? $lookup($nativeTemplates, $id);\n\n $exists($nativeTemplate)\n ? function($this,$param){ $nativeTemplate($this,$param,$env) }\n : $try ? undefined : function($this,$param){undefined};\n )};\n\n ".concat(n(u(e)),"\n )\n")}to.parseBindable=Uy;function sq(e,r){var a=(0,eq.parseTransform)(Uy(e));return function(n,u){return a(n,{env:u,nativeTemplates:r})}}to.compileBindable=sq});var kl=T(Mn=>{"use strict";f();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.jsonata=Mn.parseTransform=Mn.parseBindable=Mn.compileBindable=void 0;var jy=Wy();Object.defineProperty(Mn,"compileBindable",{enumerable:!0,get:function(){return jy.compileBindable}});Object.defineProperty(Mn,"parseBindable",{enumerable:!0,get:function(){return jy.parseBindable}});var lq=Jd();Object.defineProperty(Mn,"parseTransform",{enumerable:!0,get:function(){return lq.parseTransform}});var cq=Zd();Object.defineProperty(Mn,"jsonata",{enumerable:!0,get:function(){return cq.jsonata}})});var Ol=T(El=>{"use strict";f();Object.defineProperty(El,"__esModule",{value:!0});El.parseTransform=void 0;var fq=kl();function dq(e){var r=(0,fq.jsonata)(e);return r.registerFunction("partition",function(a,n,u){for(var l=[],d=[],p=0;p=a.length-1){if(u)for(var v=n-d.length;v>0;v--)d.push(u);l.push(d)}return l},""),r}El.parseTransform=dq});var Pl=T(cn=>{"use strict";f();Object.defineProperty(cn,"__esModule",{value:!0});cn.logElapsedTime=cn.setMessageLogger=cn.logError=cn.logMessage=cn.measureTime=void 0;function Hy(e){var r=Date.now(),a=e(),n=Date.now();return{result:a,elapsedTimeMS:n-r}}cn.measureTime=Hy;var bu=function(r){};function pq(e){bu(e)}cn.logMessage=pq;function gq(e){bu("ERROR:".concat(e))}cn.logError=gq;function hq(e){var r=bu;return bu=e,r}cn.setMessageLogger=hq;function mq(e,r){var a=Hy(r),n=a.result,u=a.elapsedTimeMS;return bu("Time to execute [".concat(e,"]: ").concat(u,"ms.\n")),n}cn.logElapsedTime=mq});var Il=T(Yd=>{"use strict";f();Object.defineProperty(Yd,"__esModule",{value:!0});function vq(e){if(e.actionId)return{type:"Action.Submit",title:e.altText,data:{actionId:e.actionId,parameters:e.parameters}};if(e.linkUrl)return{type:"Action.OpenUrl",title:e.altText,url:e.linkUrl}}Yd.default=vq});var Xd=T((pH,Su)=>{f();function yq(e,r){(r==null||r>e.length)&&(r=e.length);for(var a=0,n=Array(r);a{f();var Cq=Xd();function _q(e){if(Array.isArray(e))return Cq(e)}xu.exports=_q,xu.exports.__esModule=!0,xu.exports.default=xu.exports});var Ky=T((vH,wu)=>{f();function bq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}wu.exports=bq,wu.exports.__esModule=!0,wu.exports.default=wu.exports});var Qd=T((CH,Tu)=>{f();var Zy=Xd();function Sq(e,r){if(e){if(typeof e=="string")return Zy(e,r);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Zy(e,r):void 0}}Tu.exports=Sq,Tu.exports.__esModule=!0,Tu.exports.default=Tu.exports});var Jy=T((bH,Au)=>{f();function xq(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Au.exports=xq,Au.exports.__esModule=!0,Au.exports.default=Au.exports});var Pi=T((xH,ku)=>{f();var wq=Gy(),Tq=Ky(),Aq=Qd(),kq=Jy();function Eq(e){return wq(e)||Tq(e)||Aq(e)||kq()}ku.exports=Eq,ku.exports.__esModule=!0,ku.exports.default=ku.exports});var zt=T(At=>{"use strict";f();var Oq=Pi();Object.defineProperty(At,"__esModule",{value:!0});At.getValidColumnCount=At.partitionAndPadRows=At.partitionArray=At.applyTemplateSingle=At.applyTemplateAll=At.flattenAll=At.compactAll=At.asArray=At.isNullOrUndefined=At.isUndefined=At.isNonEmptyArray=At.isObject=At.isString=void 0;function Pq(e){return typeof e=="string"}At.isString=Pq;function Iq(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}At.isObject=Iq;function Rq(e){return e&&e.length>0}At.isNonEmptyArray=Rq;function Bn(e){return e===void 0}At.isUndefined=Bn;function qq(e){return e==null}At.isNullOrUndefined=qq;function Dq(e){if(e!==void 0)return Array.isArray(e)?e:[e]}At.asArray=Dq;function Lq(e){if(!Bn(e)){for(var r,a=0;a0?e:a;return Math.min(n,Math.max(r,a))}At.getValidColumnCount=$q});var ha=T(ep=>{"use strict";f();Object.defineProperty(ep,"__esModule",{value:!0});var Rl=Oi(),Nq=zt();function Uq(e){if((0,Nq.isString)(e))return e;switch(e){case Rl.CardSchema.CardIcon.ConnectedEntity:return"connectedEntity";case Rl.CardSchema.CardIcon.Flag:return"flag";case Rl.CardSchema.CardIcon.Checkmark:return"checkmark";case Rl.CardSchema.CardIcon.MoreImages:return"moreImages";default:return}}var Wq=function(r,a){return{type:"Icon",iconId:Uq(a.icon),selectAction:a.selectAction,altText:a.tooltip,showTooltip:!0}};ep.default=Wq});var rp=T(tp=>{"use strict";f();Object.defineProperty(tp,"__esModule",{value:!0});var jq=Il(),Hq=ha(),Gq=function(r){return{type:"Column",style:"button",width:"auto",noShrink:!0,verticalContentAlignment:"center",selectAction:(0,jq.default)(r),items:[(0,Hq.default)(void 0,{icon:r.icon,tooltip:r.actionId||r.linkUrl?void 0:r.altText})]}};tp.default=Gq});var ip=T(np=>{"use strict";f();Object.defineProperty(np,"__esModule",{value:!0});var Kq=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"TextBlock",selectable:a.selectable,size:"small",text:r.label}};np.default=Kq});var Xy=T(ap=>{"use strict";f();Object.defineProperty(ap,"__esModule",{value:!0});var Yy=Il(),Zq=zt(),Jq=ha(),Yq=ip(),Xq=function(r){return{type:"ColumnSet",spacing:"medium",columns:[{type:"Column",style:"button",width:"auto",noShrink:!0,verticalContentAlignment:"center",selectAction:(0,Yy.default)(r),items:[(0,Jq.default)(void 0,{icon:r.icon,tooltip:r.actionId||r.linkUrl?void 0:r.altText})]},{type:"Column",selectAction:(0,Yy.default)(r),items:[(0,Zq.applyTemplateSingle)({label:r.altText},Yq.default)]}]}};ap.default=Xq});var Qy=T(op=>{"use strict";f();Object.defineProperty(op,"__esModule",{value:!0});var Qq=function(r){return{type:"Container",padding:{left:"padding",right:"padding"},items:[{type:"TextBlock",officeStyle:"SmallStandard",text:r,spacing:"medium",wrap:!0,markdown:!0}]}};op.default=Qq});var up=T(ro=>{"use strict";f();Object.defineProperty(ro,"__esModule",{value:!0});ro.arrayValueCustom=void 0;var eC=zt(),eD=function(r,a,n){return{type:"Array",value:r.value,rowsTruncated:!(0,eC.isUndefined)(r.totalRows)&&r.value.rows.length0&&r.value.rows[0].length{"use strict";f();Object.defineProperty(sp,"__esModule",{value:!0});var rD=up(),nD=function(r,a,n){return(0,rD.arrayValueCustom)(r,!1,n.readOnly)};sp.default=nD});var rC=T(lp=>{"use strict";f();Object.defineProperty(lp,"__esModule",{value:!0});var iD=zt(),aD=function(r){var a=(0,iD.isObject)(r)?r:{display:r};return{type:"Image",maxPixelHeight:20,url:a.imageUrl,showTooltip:!0,altText:a.url?void 0:a.display,onError:{type:"TextBlock",officeStyle:"MediumSecondary",text:a.display}}};lp.default=aD});var nC=T(fp=>{"use strict";f();Object.defineProperty(fp,"__esModule",{value:!0});var cp=zt(),oD=rC(),uD=rp(),sD=function(r){return{type:"ColumnSet",spacing:"none",padding:"padding",columns:[{type:"Column",width:"stretch",spacing:"none",selectAction:(0,cp.isObject)(r.attributionFooter)?{type:"Action.OpenUrl",title:r.attributionFooter.display,url:r.attributionFooter.url}:void 0,items:[(0,cp.applyTemplateSingle)(r.attributionFooter,oD.default)]},{type:"Column",width:"auto",items:[{type:"ColumnSet",columns:(0,cp.applyTemplateAll)(r.actions,uD.default)}]}]}};fp.default=sD});var Fr=T((jH,iC)=>{f();iC.exports=OfficePlatformGlobal.Ply.View});var zn=T((GH,aC)=>{f();aC.exports=OfficePlatformGlobal.Ply.StyleSheet});var Zr=T((ZH,oC)=>{f();oC.exports=OfficePlatformGlobal.Ply.Platform});var uC=T(Te=>{"use strict";f();Object.defineProperty(Te,"__esModule",{value:!0});Te.ShowActionModeTypes=Te.BackgroundImageModes=Te.DateFormats=Te.VerticalDockingValues=Te.HorizontalDockingValues=Te.VerticalAlignments=Te.HorizontalAlignments=Te.SpacingStyles=Te.ContainerHeights=Te.CommandStyles=Te.ImageStyles=Te.ImageSizes=Te.TextWeights=Te.TextSizes=Te.TextColors=Te.FontWeights=Te.ColumnWidths=Te.ActionsOrientationTypes=Te.ActionTypes=Te.ActionAlignmentTypes=Te.InputChoiceTypes=Te.ElementTypes=Te.AdaptiveCardTypes=Te.StandardLineThickness=Te.LineStyle=Te.StandardBackgroundColor=Te.StandardForegroundColor=void 0;var lD;(function(e){e.default="default",e.dark="dark",e.light="light",e.accent="accent",e.good="good",e.warning="warning",e.attention="attention"})(lD=Te.StandardForegroundColor||(Te.StandardForegroundColor={}));var cD;(function(e){e.default="default",e.dark="dark",e.light="light"})(cD=Te.StandardBackgroundColor||(Te.StandardBackgroundColor={}));var fD;(function(e){e.solid="solid",e.dotted="dotted",e.dashed="dashed"})(fD=Te.LineStyle||(Te.LineStyle={}));var dD;(function(e){e.thinner="thinner",e.default="default",e.thicker="thicker"})(dD=Te.StandardLineThickness||(Te.StandardLineThickness={}));Te.AdaptiveCardTypes={adaptiveCard:"AdaptiveCard"};Te.ElementTypes={textBlock:"TextBlock",image:"Image",icon:"Icon",container:"Container",list:"List",wrapContainer:"WrapContainer",columnSet:"ColumnSet",column:"Column",factSet:"FactSet",imageSet:"ImageSet",overlay:"Overlay",inputText:"Input.Text",inputDate:"Input.Date",inputTime:"Input.Time",inputNumber:"Input.Number",inputToggle:"Input.Toggle",inputChoiceSet:"Input.ChoiceSet",command:"Command",custom:"Custom",throbber:"Throbber"};Te.InputChoiceTypes={inputChoice:"Input.Choice"};Te.ActionAlignmentTypes={left:"left",center:"center",right:"right",stretch:"stretch"};Te.ActionTypes={actionOpenUrl:"Action.OpenUrl",actionSubmit:"Action.Submit",actionShowCard:"Action.ShowCard",actionToggleVisibility:"Action.ToggleVisibility",actionEvent:"Action.Event"};Te.ActionsOrientationTypes={horizontal:"horizontal",vertical:"vertical"};Te.ColumnWidths={auto:"auto",stretch:"stretch"};Te.FontWeights={normal:"normal",bold:"bold",100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900"};Te.TextColors={default:"default",dark:"dark",light:"light",accent:"accent",good:"good",warning:"warning",attention:"attention"};Te.TextSizes={small:"small",default:"default",medium:"medium",large:"large",extraLarge:"extraLarge",huge:"huge"};Te.TextWeights={lighter:"lighter",default:"default",bolder:"bolder"};Te.ImageSizes={auto:"auto",stretch:"stretch",cover:"cover",small:"small",medium:"medium",large:"large"};Te.ImageStyles={default:"default",person:"person"};Te.CommandStyles={hyperlink:"hyperlink",button:"button"};Te.ContainerHeights={auto:"auto",stretch:"stretch"};Te.SpacingStyles={none:"none",extraSmall:"extraSmall",small:"small",default:"default",medium:"medium",large:"large",extraLarge:"extraLarge",padding:"padding"};Te.HorizontalAlignments={left:"left",center:"center",right:"right"};Te.VerticalAlignments={top:"top",center:"center",bottom:"bottom"};Te.HorizontalDockingValues={left:"left",fill:"fill",right:"right"};Te.VerticalDockingValues={top:"top",fill:"fill",bottom:"bottom"};Te.DateFormats={compact:"compact",short:"short",long:"long"};Te.BackgroundImageModes={stretch:"stretch",repeatHorizontally:"repeatHorizontally",repeatVertically:"repeatVertically",repeat:"repeat"};Te.ShowActionModeTypes={inlineEdgeToEdge:"InlineEdgeToEdge",inline:"Inline",popup:"Popup"}});var Zt=T(ql=>{"use strict";f();Object.defineProperty(ql,"__esModule",{value:!0});ql.Types=void 0;var pD=uC();ql.Types=pD});var io=T(no=>{"use strict";f();Object.defineProperty(no,"__esModule",{value:!0});no.createEventAction=no.EmptySpacing=void 0;no.EmptySpacing={padding:{},spacing:{},separator:!1};function gD(e,r,a){return{type:"Action.Event",sourceType:e.type,sourceId:e.id,event:r,eventArgs:a}}no.createEventAction=gD});var ao=T(Be=>{"use strict";f();Object.defineProperty(Be,"__esModule",{value:!0});Be.ValidationError=Be.ContainerStyle=Be.BackgroundImageMode=Be.Orientation=Be.ShowCardActionMode=Be.ImageStyle=Be.ActionAlignment=Be.VerticalAlignment=Be.HorizontalAlignment=Be.TextColor=Be.TextWeight=Be.Padding=Be.Spacing=Be.TextSize=Be.ImageSize=void 0;var hD;(function(e){e[e.Auto=0]="Auto",e[e.Stretch=1]="Stretch",e[e.Small=2]="Small",e[e.Medium=3]="Medium",e[e.Large=4]="Large"})(hD=Be.ImageSize||(Be.ImageSize={}));var mD;(function(e){e[e.small=0]="small",e[e.default=1]="default",e[e.medium=2]="medium",e[e.large=3]="large",e[e.extraLarge=4]="extraLarge"})(mD=Be.TextSize||(Be.TextSize={}));var vD;(function(e){e[e.none=0]="none",e[e.extraSmall=1]="extraSmall",e[e.small=2]="small",e[e.default=3]="default",e[e.medium=4]="medium",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.padding=7]="padding"})(vD=Be.Spacing||(Be.Spacing={}));var yD;(function(e){e[e.None=0]="None",e[e.Default=1]="Default"})(yD=Be.Padding||(Be.Padding={}));var CD;(function(e){e[e.lighter=0]="lighter",e[e.default=1]="default",e[e.bolder=2]="bolder"})(CD=Be.TextWeight||(Be.TextWeight={}));var _D;(function(e){e[e.default=0]="default",e[e.accent=1]="accent",e[e.good=2]="good",e[e.warning=3]="warning",e[e.attention=4]="attention"})(_D=Be.TextColor||(Be.TextColor={}));var bD;(function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"})(bD=Be.HorizontalAlignment||(Be.HorizontalAlignment={}));var SD;(function(e){e[e.Top=0]="Top",e[e.Center=1]="Center",e[e.Bottom=2]="Bottom"})(SD=Be.VerticalAlignment||(Be.VerticalAlignment={}));var xD;(function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right",e[e.Stretch=3]="Stretch"})(xD=Be.ActionAlignment||(Be.ActionAlignment={}));var wD;(function(e){e[e.Default=0]="Default",e[e.Person=1]="Person"})(wD=Be.ImageStyle||(Be.ImageStyle={}));var TD;(function(e){e[e.Inline=0]="Inline",e[e.Popup=1]="Popup"})(TD=Be.ShowCardActionMode||(Be.ShowCardActionMode={}));var AD;(function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"})(AD=Be.Orientation||(Be.Orientation={}));var kD;(function(e){e[e.Stretch=0]="Stretch",e[e.RepeatHorizontally=1]="RepeatHorizontally",e[e.RepeatVertically=2]="RepeatVertically",e[e.Repeat=3]="Repeat"})(kD=Be.BackgroundImageMode||(Be.BackgroundImageMode={}));var ED;(function(e){e[e.Default=0]="Default",e[e.Emphasis=1]="Emphasis"})(ED=Be.ContainerStyle||(Be.ContainerStyle={}));var OD;(function(e){e[e.Hint=0]="Hint",e[e.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",e[e.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",e[e.Deprecated=3]="Deprecated",e[e.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",e[e.InteractivityNotAllowed=5]="InteractivityNotAllowed",e[e.InvalidPropertyValue=6]="InvalidPropertyValue",e[e.MissingCardType=7]="MissingCardType",e[e.PropertyCantBeNull=8]="PropertyCantBeNull",e[e.TooManyActions=9]="TooManyActions",e[e.UnknownActionType=10]="UnknownActionType",e[e.UnknownElementType=11]="UnknownElementType",e[e.UnsupportedCardVersion=12]="UnsupportedCardVersion"})(OD=Be.ValidationError||(Be.ValidationError={}))});var sC=T((a9,Eu)=>{f();var PD=ht();function ID(e,r){for(;!{}.hasOwnProperty.call(e,r)&&(e=PD(e))!==null;);return e}Eu.exports=ID,Eu.exports.__esModule=!0,Eu.exports.default=Eu.exports});var Ii=T((u9,li)=>{f();var RD=sC();function dp(){return li.exports=dp=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,r,a){var n=RD(e,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?e:a):u.value}},li.exports.__esModule=!0,li.exports.default=li.exports,dp.apply(null,arguments)}li.exports=dp,li.exports.__esModule=!0,li.exports.default=li.exports});var pp=T((l9,lC)=>{f();lC.exports=OfficePlatformGlobal.Ply.ScrollView});var cC=T(Dl=>{"use strict";f();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.wrapClickable=void 0;var qD=ye(),DD=ma(),LD=function(r){var a=r.onPress,n=r.hostConfig,u=r.action,l=r.children;return a?qD.createElement(DD.ACClickable,{onPress:a,hostConfig:n,title:u.title,showTooltip:u.showTooltip,children:l}):l};Dl.wrapClickable=LD});var fC=T(Ll=>{"use strict";f();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.ContainerStyleContext=void 0;var MD=ye();Ll.ContainerStyleContext=MD.createContext(void 0)});var dC=T(Ml=>{"use strict";f();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.getBordersStyle=void 0;var Ri=Ut(),Ou=Zt(),BD=Zr();function zD(e,r,a){function n(v){return{borderStyle:Ou.Types.LineStyle.solid,borderColor:r.getForegroundColor(v.color,v.isSubtle),borderWidth:e.getLineThickness(v.width)}}function u(v){return{borderStyle:Ou.Types.LineStyle.solid,borderColor:r.getForegroundColor(v.color,v.isSubtle),borderWidth:e.getLineThickness(v.width),borderRadius:v.radius}}function l(v,w,k,z){return Ri.isUndefined(w)?!1:(Ri.isBoolean(w)?w&&(v[k]=v.borderWidth):(Ri.isUndefined(w.width)?v[k]=v.borderWidth:v[k]=e.getLineThickness(w.width),(!Ri.isUndefined(w.color)||!Ri.isUndefined(w.isSubtle))&&(v[z]=r.getForegroundColor(w.color,w.isSubtle))),!0)}if(!Ri.isUndefined(a)){if(Ri.isBoolean(a))return a?n({}):void 0;var d=a.radius?u(a):n(a),p=l(d,a.left,"borderStartWidth","borderStartColor");return p=l(d,a.right,"borderEndWidth","borderEndColor")||p,p=l(d,a.top,"borderTopWidth","borderTopColor")||p,p=l(d,a.bottom,"borderBottomWidth","borderBottomColor")||p,p?d.borderWidth=0:Ri.isUndefined(a.style)||(d.borderStyle=Ou.Types.LineStyle[a.style]||Ou.Types.LineStyle.solid,BD.Platform.select({android:d.borderRadius=a.style!=Ou.Types.LineStyle.solid?1:a.radius})),d}}Ml.getBordersStyle=zD});var vC=T(fn=>{"use strict";f();var FD=Ue(),VD=We(),$D=vt(),pC=ht(),ND=yt();function UD(e,r,a){return r=pC(r),$D(e,hC()?Reflect.construct(r,a||[],pC(e).constructor):r.apply(e,a))}function hC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(hC=function(){return!!e})()}var WD=fn&&fn.__createBinding||(Object.create?function(e,r,a,n){n===void 0&&(n=a);var u=Object.getOwnPropertyDescriptor(r,a);(!u||("get"in u?!r.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return r[a]}}),Object.defineProperty(e,n,u)}:function(e,r,a,n){n===void 0&&(n=a),e[n]=r[a]}),jD=fn&&fn.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),HD=fn&&fn.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&WD(r,e,a);return jD(r,e),r};Object.defineProperty(fn,"__esModule",{value:!0});fn.ContainerBackground=fn.renderFloatingContent=void 0;var Bl=ye(),GD=HD(Dt()),gC=Tn(),KD=dC(),ZD=function(r,a,n){return n?a(r):null};fn.renderFloatingContent=ZD;var mC=function(e){function r(a,n){var u;return FD(this,r),u=UD(this,r,[a,n]),u._isMounted=!1,u.renderWithStyle=function(l){var d=!l||!!u.props.containerStyle||!!u.props.backgroundColor,p=u._computedContainerStyle(l),v=u.props.hostConfig.containerStyles.getStyle(p),w=d?v.getBackgroundColor(u.props.backgroundColor):void 0,k=u.props.haveFloatingContent&&!!u.props.onActiveChanged,z=Object.assign({flexGrow:1,flexShrink:1,backgroundColor:w},(0,KD.getBordersStyle)(u.props.hostConfig,v,u.props.borders));return Bl.createElement(gC.ContainerStyleContext.Provider,{value:p},Bl.createElement(GD.View,Object.assign({style:z},{onFocus:k?u._onFocus:void 0,onBlur:k?u._onBlur:void 0,onMouseEnter:k?u._onMouseEnter:void 0,onMouseLeave:k?u._onMouseLeave:void 0}),u.props.children))},u._onMouseEnter=function(){return u.setState({mouseOver:!0})},u._onMouseLeave=function(){return u.setState({mouseOver:!1})},u._onFocus=function(){return u.setState({focusOn:!0})},u._onBlur=function(){return u.setState({focusOn:!1})},u.state={focusOn:!1,mouseOver:!1},u}return ND(r,e),VD(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"componentDidUpdate",value:function(n,u){var l=this,d=r._isActiveState(this.state);r._isActiveState(u)!=d&&(d?this.props.onActiveChanged(!0):setTimeout(function(){l._isMounted&&!r._isActiveState(l.state)&&l.props.onActiveChanged(!1)},1))}},{key:"render",value:function(){return Bl.createElement(gC.ContainerStyleContext.Consumer,null,this.renderWithStyle)}},{key:"_computedContainerStyle",value:function(n){return this.props.containerStyle||n||"default"}}])}(Bl.Component);fn.ContainerBackground=mC;mC._isActiveState=function(e){return e.focusOn||e.mouseOver}});var Tn=T(qi=>{"use strict";f();Object.defineProperty(qi,"__esModule",{value:!0});qi.renderFloatingContent=qi.ContainerBackground=qi.ContainerStyleContext=void 0;var JD=fC();Object.defineProperty(qi,"ContainerStyleContext",{enumerable:!0,get:function(){return JD.ContainerStyleContext}});var yC=vC();Object.defineProperty(qi,"ContainerBackground",{enumerable:!0,get:function(){return yC.ContainerBackground}});Object.defineProperty(qi,"renderFloatingContent",{enumerable:!0,get:function(){return yC.renderFloatingContent}})});var SC=T(Fn=>{"use strict";f();var YD=Ue(),XD=We(),QD=vt(),CC=ht(),eL=yt();function tL(e,r,a){return r=CC(r),QD(e,_C()?Reflect.construct(r,a||[],CC(e).constructor):r.apply(e,a))}function _C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_C=function(){return!!e})()}var rL=Fn&&Fn.__createBinding||(Object.create?function(e,r,a,n){n===void 0&&(n=a);var u=Object.getOwnPropertyDescriptor(r,a);(!u||("get"in u?!r.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return r[a]}}),Object.defineProperty(e,n,u)}:function(e,r,a,n){n===void 0&&(n=a),e[n]=r[a]}),nL=Fn&&Fn.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),iL=Fn&&Fn.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&rL(r,e,a);return nL(r,e),r};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.ACClickable=void 0;var gp=iL(ye()),aL=Dt(),oL=zn(),uL=Tn(),sL=oL.StyleSheet.createViewStyle({flexGrow:1,flexShrink:1}),bC=function(e){function r(a){var n;return YD(this,r),n=tL(this,r,[a]),n._onPressPending=!1,n.renderWithStyle=function(u){return gp.createElement(aL.TouchableOpacity,Object.assign({style:[sL,n.state.focusOn||n.state.mouseOver?{backgroundColor:n._getHoverBackgroundColor(u)}:void 0],onPress:n._onPress,accessibilityLabel:n.props.title},{tooltip:n.props.showTooltip?n.props.title:void 0,onFocus:n._onFocus,onBlur:n._onBlur,onMouseEnter:n._onMouseEnter,onMouseLeave:n._onMouseLeave,accessibilityState:n.props.accessibilityState,accessibilityRole:"button"}),n.props.children)},n._onPress=function(u){u.stopPropagation(),n._onPressPending||(n._onPressPending=!0,setTimeout(function(){n._onPressPending&&(n._onPressPending=!1,n.props.onPress())},1))},n._onMouseEnter=function(){return n.setState({mouseOver:!0})},n._onMouseLeave=function(){return n.setState({mouseOver:!1})},n._onFocus=function(){return n.setState({focusOn:!0})},n._onBlur=function(){return n.setState({focusOn:!1})},n.state={focusOn:!1,mouseOver:!1},n}return eL(r,e),XD(r,[{key:"render",value:function(){return gp.createElement(uL.ContainerStyleContext.Consumer,null,this.renderWithStyle)}},{key:"componentWillUnmount",value:function(){this._onPressPending=!1}},{key:"_getHoverBackgroundColor",value:function(n){var u=this._getContainerStyle(n);return u.hoverBackgroundColor?u.hoverBackgroundColor:void 0}},{key:"_getContainerStyle",value:function(n){var u=this.props.hostConfig.containerStyles;return n?u.getStyle(n):u.default}}])}(gp.Component);Fn.ACClickable=bC;bC.defaultProps={showTooltip:!0}});var ma=T(oo=>{"use strict";f();Object.defineProperty(oo,"__esModule",{value:!0});oo.ACClickable=oo.wrapClickable=void 0;var lL=cC();Object.defineProperty(oo,"wrapClickable",{enumerable:!0,get:function(){return lL.wrapClickable}});var cL=SC();Object.defineProperty(oo,"ACClickable",{enumerable:!0,get:function(){return cL.ACClickable}})});var Pu=T(Di=>{"use strict";f();Object.defineProperty(Di,"__esModule",{value:!0});Di.elementSpacingToPaddingStyle=Di.elementSpacingToSpacingStyle=Di.swapLeftAndRight=void 0;function fL(e){return!1}Di.swapLeftAndRight=fL;function dL(e){var r=e.spacing;return{marginTop:r.top,marginStart:r.left,marginEnd:r.right,marginBottom:r.bottom}}Di.elementSpacingToSpacingStyle=dL;function pL(e){var r=e.padding;return{paddingTop:r.top,paddingStart:r.left,paddingEnd:r.right,paddingBottom:r.bottom}}Di.elementSpacingToPaddingStyle=pL});var Vn=T(Fl=>{"use strict";f();var gL=Ue(),hL=We(),mL=vt(),xC=ht(),vL=yt();function yL(e,r,a){return r=xC(r),mL(e,TC()?Reflect.construct(r,a||[],xC(e).constructor):r.apply(e,a))}function TC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(TC=function(){return!!e})()}Object.defineProperty(Fl,"__esModule",{value:!0});Fl.ElementBaseView=void 0;var zl=Ut(),CL=ye(),hp=Zt(),wC=Pu(),_L=function(e){function r(){var a;return gL(this,r),a=yL(this,r,arguments),a.onActionPress=function(){a.isActionable&&a.props.onExecuteAction(a.selectAction)},a.onActionKeyPress=function(n){a.isActionable&&(n.key==="Enter"||n.key===" ")&&(n.stopPropagation(),a.props.onExecuteAction(a.selectAction))},a}return vL(r,e),hL(r,[{key:"isActionable",get:function(){return!!this.selectAction&&!!this.props.onExecuteAction}},{key:"selectAction",get:function(){}},{key:"spacingStyle",get:function(){return this.getSpacingStyle()}},{key:"paddingStyle",get:function(){return this.getPaddingStyle()}},{key:"actionPress",get:function(){return this.isActionable?this.onActionPress:void 0}},{key:"actionKeyPress",get:function(){return this.isActionable?this.onActionKeyPress:void 0}},{key:"actionTitle",get:function(){return this.isActionable?this.selectAction.title:void 0}},{key:"getSpacingStyle",value:function(){return(0,wC.elementSpacingToSpacingStyle)(this.props.spacing)}},{key:"getPaddingStyle",value:function(){var n=(0,wC.elementSpacingToPaddingStyle)(this.props.spacing),u=this.getSizeConstraints();return u?Object.assign(Object.assign({},n),{minHeight:zl.isUndefined(u.minHeight)?void 0:parseFloat(u.minHeight),maxHeight:zl.isUndefined(u.maxHeight)?void 0:parseFloat(u.maxHeight),minWidth:zl.isUndefined(u.minWidth)?void 0:parseFloat(u.minWidth),maxWidth:zl.isUndefined(u.maxWidth)?void 0:parseFloat(u.maxWidth)}):n}},{key:"getSizeConstraints",value:function(){}},{key:"getVerticalAlignStyle",value:function(n){switch(n){case hp.Types.VerticalAlignments.top:default:return{justifyContent:"flex-start"};case hp.Types.VerticalAlignments.center:return{justifyContent:"center"};case hp.Types.VerticalAlignments.bottom:return{justifyContent:"flex-end"}}}}])}(CL.Component);Fl.ElementBaseView=_L});var mp=T(Li=>{"use strict";f();Object.defineProperty(Li,"__esModule",{value:!0});Li.imageSourceIsEqual=Li.imageSourceIsInlineContent=Li.imageSourceIsUrl=void 0;function bL(e){return e&&"url"in e}Li.imageSourceIsUrl=bL;function SL(e){return e&&"content"in e}Li.imageSourceIsInlineContent=SL;function xL(e,r){return e?!!r&&e.url===r.url&&e.defaultSize===r.defaultSize&&e.content===r.content:!r}Li.imageSourceIsEqual=xL});var Vl=T(fr=>{"use strict";f();Object.defineProperty(fr,"__esModule",{value:!0});fr.iconSourceIsImageUrlSource=fr.iconSourceIsInlineContent=fr.iconSourceIsDynamicColorUrlImage=fr.iconsSourceIsTintableUrl=fr.iconSourceIsImageSource=fr.iconSourceIsRecolorableUrlImage=fr.getRegisteredIcon=fr.registerIcons=void 0;var AC=mp(),kC={};function wL(e){for(var r of e)kC[r.iconId]=typeof r.source=="object"?r.source:{url:r.source}}fr.registerIcons=wL;function TL(e){return kC[e]}fr.getRegisteredIcon=TL;function EC(e){return e&&("applyTint"in e||"colorUrl"in e)}fr.iconSourceIsRecolorableUrlImage=EC;function AL(e){return e&&!EC(e)}fr.iconSourceIsImageSource=AL;function kL(e){return e&&"applyTint"in e}fr.iconsSourceIsTintableUrl=kL;function EL(e){return e&&"colorUrl"in e}fr.iconSourceIsDynamicColorUrlImage=EL;function OL(e){return e&&(0,AC.imageSourceIsInlineContent)(e)}fr.iconSourceIsInlineContent=OL;function PL(e){return e&&(0,AC.imageSourceIsUrl)(e)}fr.iconSourceIsImageUrlSource=PL});var PC=T(Mi=>{"use strict";f();var IL=Mi&&Mi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.renderIconElement=Mi.renderImageElement=void 0;var yp=ye(),OC=IL(uo()),RL=Tn(),vp=Vl();function qL(e,r,a,n,u,l){return yp.createElement(OC.default,{key:r,source:{url:e.url},style:e.style,selectAction:e.selectAction,size:e.size,maxPixelHeight:e.maxPixelHeight,altText:e.altText,showTooltip:e.showTooltip,horizontalAlignment:e.horizontalAlignment,hostConfig:u.hostConfig,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,onExecuteAction:u.onExecuteAction,onErrorUI:e.onError,onLoadingUI:e.onLoading,captionUI:e.caption,renderElement:l})}Mi.renderImageElement=qL;function DL(e,r,a,n,u,l){function d(k,z){return yp.createElement(OC.default,{key:r,source:k,tintColor:z,style:e.style,selectAction:e.selectAction,size:e.size,maxPixelHeight:e.maxPixelHeight,altText:e.altText,showTooltip:e.showTooltip,horizontalAlignment:e.horizontalAlignment,hostConfig:u.hostConfig,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,onExecuteAction:u.onExecuteAction,renderElement:l})}var p=u.getIcon(e.iconId);if((0,vp.iconSourceIsRecolorableUrlImage)(p)||(0,vp.iconSourceIsInlineContent)(p)&&(e.color||e.isSubtle)){var v=p,w=function(z){var W=u.hostConfig.containerStyles,M=z?W.getStyle(z):W.default,P=M.getForegroundColor(e.color,e.isSubtle),A,G;return(0,vp.iconSourceIsDynamicColorUrlImage)(v)?A={url:v.colorUrl(P),size:v.size}:(A=v,G=P),d(A,G)};return yp.createElement(RL.ContainerStyleContext.Consumer,{key:r},w)}return d(p)}Mi.renderIconElement=DL});var Iu=T((L9,IC)=>{f();IC.exports=OfficePlatformGlobal.Ply.Text});var qC=T((B9,RC)=>{f();RC.exports=OfficePlatformGlobal.Ply.Separator});var zC=T(Ru=>{"use strict";f();var LL=Ue(),ML=We(),BL=vt(),DC=ht(),zL=yt();function FL(e,r,a){return r=DC(r),BL(e,MC()?Reflect.construct(r,a||[],DC(e).constructor):r.apply(e,a))}function MC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(MC=function(){return!!e})()}Object.defineProperty(Ru,"__esModule",{value:!0});Ru.ACSeparator=void 0;var LC=ye(),VL=qC(),BC=function(e){function r(){return LL(this,r),FL(this,r,arguments)}return zL(r,e),ML(r,[{key:"render",value:function(){return LC.createElement(VL.Separator,{vertical:this.props.vertical})}}])}(LC.Component);Ru.ACSeparator=BC;Ru.default=BC});var FC=T($l=>{"use strict";f();Object.defineProperty($l,"__esModule",{value:!0});$l.ACSeparator=void 0;var $L=zC();Object.defineProperty($l,"ACSeparator",{enumerable:!0,get:function(){return $L.ACSeparator}})});var VC=T(Nl=>{"use strict";f();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.makeInnerView=void 0;var NL=ye(),UL=Fr();function WL(e,r){return NL.createElement(UL.View,Object.assign({},e))}Nl.makeInnerView=WL});var An=T(so=>{"use strict";f();var jL=so&&so.__rest||function(e,r){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,n=Object.getOwnPropertySymbols(e);u{"use strict";f();var Cp=Cu(),ZL=Ue(),JL=We(),YL=vt(),bp=ht(),XL=Ii(),QL=yt();function eM(e,r,a){return r=bp(r),YL(e,HC()?Reflect.construct(r,a||[],bp(e).constructor):r.apply(e,a))}function HC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(HC=function(){return!!e})()}function tM(e,r,a,n){var u=XL(bp(1&n?e.prototype:e),r,a);return 2&n&&typeof u=="function"?function(l){return u.apply(a,l)}:u}var rM=ci&&ci.__createBinding||(Object.create?function(e,r,a,n){n===void 0&&(n=a);var u=Object.getOwnPropertyDescriptor(r,a);(!u||("get"in u?!r.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return r[a]}}),Object.defineProperty(e,n,u)}:function(e,r,a,n){n===void 0&&(n=a),e[n]=r[a]}),nM=ci&&ci.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),iM=ci&&ci.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&rM(r,e,a);return nM(r,e),r};Object.defineProperty(ci,"__esModule",{value:!0});var UC=Ut(),va=ye(),lo=iM(Dt()),aM=Fr(),oM=Iu(),_p=zn(),uM=Zr(),er=Zt(),sM=ma(),lM=Vn(),WC=ya(),jC=mp(),cM=An(),Sp={imageBackground:_p.StyleSheet.createViewStyle({overflow:"hidden",position:"absolute",top:0,bottom:0,left:0,right:0}),imageError:_p.StyleSheet.createViewStyle({flexGrow:1,flexShrink:1,flexDirection:"column",alignItems:"center",justifyContent:"center"}),tooltip:_p.StyleSheet.createViewStyle({flexGrow:1,flexShrink:1})},qu={flexStart:"flex-start",flexEnd:"flex-end",center:"center"},GC=function(e){function r(a){var n;return ZL(this,r),n=eM(this,r,[a]),n._isMounted=!1,n._queryImageSize=function(){lo.Image.getSize(n.state.imageUrl,n._onQueryImageSizeSucceeded,n._onQueryImageSizeFailed)},n._onQueryImageSizeSucceeded=function(u,l){n._isMounted&&n.setState({imageWidth:u,imageAspectRatio:l>0?u/l:void 0,imageSizePending:!1})},n._onQueryImageSizeFailed=function(){n._isMounted&&n.setState({isError:!0,imageSizePending:!1})},n.state={isError:!1,isLoading:!0,fixedSize:!1,imageSizePending:!1},n}return QL(r,e),JL(r,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.state.imageSizePending&&this._queryImageSize()}},{key:"componentDidUpdate",value:function(){this.state.imageSizePending&&this._queryImageSize()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){return this.props.isBackground?this._renderBackgroundImage():this._renderImage()}},{key:"selectAction",get:function(){return this.props.selectAction}},{key:"_imageSource",get:function(){var n=this.state.imageUrl;return r._isUriSource(n)?{uri:n}:n}},{key:"getSpacingStyle",value:function(){return Object.assign(Object.assign({},tM(r,"getSpacingStyle",this,3)([])),{flexGrow:0,flexShrink:this.state.fixedSize?0:1})}},{key:"_renderBackgroundImage",value:function(){return this.state.imageUrl?va.createElement(lo.Image,{key:(0,WC.getReactKey)("imageView",this.state.imageUrl),resizeMode:this._getImageResizeMode(),style:Sp.imageBackground,source:this._imageSource}):void 0}},{key:"_renderImage",value:function(){var n=this,u=this.state.isError?this.props.onErrorUI&&this.props.renderElement?this.props.renderElement(this.props.onErrorUI,0,1):va.createElement(aM.View,{style:Sp.imageError},va.createElement(oM.Text,null,"X")):void 0,l=this.state.isLoading&&!this.state.isError&&this.props.onLoadingUI?this.props.renderElement(this.props.onLoadingUI,0,1):void 0,d,p;if(!this.state.isError&&this.state.imageAspectRatio){var v=this._getImageACTSize(),w=r._getImageAlignment(this.props.horizontalAlignment,v),k=l?uM.Platform.select({ios:1,macos:1,default:0}):this.props.maxPixelHeight,z=v===er.Types.ImageSizes.cover||v===er.Types.ImageSizes.stretch,W=this.state.imageAspectRatio,M=this._getImageWidth(),P=Math.ceil(M/W),A=this._getImageContainerStyle(w,k),G=this._getImageStyle({imageDesiredWidth:M,imageDesiredHeight:P,aspectRatio:W,stretch:z,size:v});d=va.createElement(lo.View,{style:A},fM(this.props.showTooltip?this.props.altText:void 0,(0,sM.wrapClickable)({hostConfig:this.props.hostConfig,onPress:this.actionPress,action:this.selectAction,children:[va.createElement(lo.Image,{key:(0,WC.getReactKey)("imageView",this.state.imageUrl),style:[G,this.props.tintColor&&{tintColor:this.props.tintColor}],source:this._imageSource,accessible:!!this.props.altText,accessibilityLabel:this.props.altText,onLoad:function(){n.setState({isLoading:!1})}})]}))),this.props.captionUI&&(p=this.props.renderElement(this.props.captionUI,0,1))}return va.createElement(cM.ACView,{style:this.spacingStyle,separator:this.props.spacing.separator},l,u,d,p)}},{key:"_getImageContainerStyle",value:function(n,u){return{overflow:"hidden",flexGrow:0,flexShrink:1,maxHeight:u,alignItems:n}}},{key:"_getImageStyle",value:function(n){var u=n.imageDesiredWidth,l=n.imageDesiredHeight,d=n.aspectRatio,p=n.stretch,v=n.size;return!r._isUriSource(this.state.imageUrl)&&v!==er.Types.ImageSizes.stretch&&v!==er.Types.ImageSizes.cover&&v!==er.Types.ImageSizes.auto?{width:u,height:l}:{flexShrink:1,width:"100%",aspectRatio:d,maxWidth:p?void 0:u,maxHeight:p?void 0:l}}},{key:"_getImageACTSize",value:function(){return this.props.size||er.Types.ImageSizes.auto}},{key:"_getImageWidth",value:function(){var n=this._getImageACTSize();switch(n){case er.Types.ImageSizes.stretch:case er.Types.ImageSizes.cover:case er.Types.ImageSizes.auto:return this.state.imageWidth;default:return r._convertACTSizeToPixels(this.props.hostConfig,n)}}},{key:"_getImageResizeMode",value:function(){if(!this.props.isBackground)return"contain";switch(this.props.mode){case er.Types.BackgroundImageModes.repeat:case er.Types.BackgroundImageModes.repeatHorizontally:case er.Types.BackgroundImageModes.repeatVertically:return"repeat";default:return"cover"}}}],[{key:"getDerivedStateFromProps",value:function(n,u){if(!(0,jC.imageSourceIsEqual)(n.source,u.prevSource)){var l,d;(0,jC.imageSourceIsUrl)(n.source)&&n.source.url&&(d=n.eventEmitter&&n.eventEmitter.proxyImageUrl?n.eventEmitter.proxyImageUrl(n.source.url):n.source.url,l={url:d,size:n.source.size});var p=!n.isBackground&&!UC.isUndefined(l),v=p?r._getImageSize(n,l):void 0;return{prevSource:n.source,imageUrl:d,imageAspectRatio:v&&v.height>0?v.width/v.height:void 0,imageWidth:v&&v.width,fixedSize:!!(v&&v.fixedSize),isError:!d,imageSizePending:p&&UC.isUndefined(v),isLoading:p}}return null}},{key:"_getImageSize",value:function(n,u){if(u.size!==void 0)return{width:u.size,height:u.size,fixedSize:!0};if(!r._isUriSource(u.url)){var l=lo.Image.resolveAssetSource;if(l){var d=l(u.url);return{width:d.width,height:d.height,fixedSize:!0}}var p=r._convertACTSizeToPixels(n.hostConfig,n.size);return{width:p,height:p}}}},{key:"_getImageAlignment",value:function(n,u){return u===er.Types.ImageSizes.stretch||u===er.Types.ImageSizes.cover?qu.center:r._alignmentMap[n||er.Types.HorizontalAlignments.left]||qu.flexStart}},{key:"_isUriSource",value:function(n){return typeof n=="string"}},{key:"_convertACTSizeToPixels",value:function(n,u){switch(u){case er.Types.ImageSizes.medium:return n.imageSizes.medium;case er.Types.ImageSizes.large:return n.imageSizes.large;default:return n.imageSizes.small}}}])}(lM.ElementBaseView);GC._alignmentMap=Cp(Cp(Cp({},er.Types.HorizontalAlignments.left,qu.flexStart),er.Types.HorizontalAlignments.right,qu.flexEnd),er.Types.HorizontalAlignments.center,qu.center);function fM(e,r){return e?va.createElement(lo.View,Object.assign({style:Sp.tooltip},{tooltip:e}),r):r}ci.default=GC});var uo=T($n=>{"use strict";f();var dM=$n&&$n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($n,"__esModule",{value:!0});$n.default=$n.renderIconElement=$n.renderImageElement=void 0;var ZC=PC();Object.defineProperty($n,"renderImageElement",{enumerable:!0,get:function(){return ZC.renderImageElement}});Object.defineProperty($n,"renderIconElement",{enumerable:!0,get:function(){return ZC.renderIconElement}});var pM=KC();Object.defineProperty($n,"default",{enumerable:!0,get:function(){return dM(pM).default}})});var t_=T(fi=>{"use strict";f();var gM=Ue(),hM=We(),mM=vt(),xp=ht(),vM=Ii(),yM=yt();function CM(e,r,a){return r=xp(r),mM(e,e_()?Reflect.construct(r,a||[],xp(e).constructor):r.apply(e,a))}function e_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(e_=function(){return!!e})()}function Du(e,r,a,n){var u=vM(xp(1&n?e.prototype:e),r,a);return 2&n&&typeof u=="function"?function(l){return u.apply(a,l)}:u}var _M=fi&&fi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fi,"__esModule",{value:!0});fi.renderListElement=fi.renderContainerElement=void 0;var JC=Ut(),Ca=ye(),bM=Fr(),SM=pp(),YC=Zr(),XC=Zt(),xM=ma(),QC=Tn(),wM=Vn(),TM=io(),AM=_M(uo()),kM=An(),wp=function(e){function r(a){var n;return gM(this,r),n=CM(this,r,[a]),n._renderFloatingElement=function(u){return n.props.renderElement(u,0,1)},n._onActiveChanged=function(u){n.setState({showFloatingContent:u})},n.state={showFloatingContent:!1},n}return yM(r,e),hM(r,[{key:"selectAction",get:function(){return this.props.container.selectAction}},{key:"render",value:function(){var n=this,u=JC.compact(this.props.container.items),l=u.length,d=JC.map(u,function(P,A){return n.props.renderElement(P,A,l)}),p=this.props.container.floatingContent;if(p){var v=(0,QC.renderFloatingContent)(p,this._renderFloatingElement,this.state.showFloatingContent);v&&d.push(v)}var w=this.props.scrollableView?Ca.createElement(SM.ScrollView,{key:"containerContent",contentContainerStyle:this.getContentContainerSyle(),style:this.paddingStyle,scrollDirection:"vertical"},d):Ca.createElement(bM.View,{key:"containerContent",style:this.paddingStyle},d),k=this.props.container,z=k.style,W=k.borders,M=k.backgroundColor;return Ca.createElement(kM.ACView,{key:"container",style:this.spacingStyle,separator:this.props.spacing.separator},Ca.createElement(QC.ContainerBackground,{hostConfig:this.props.hostConfig,dir:this.props.isRTL?"rtl":void 0,containerStyle:z,borders:W,backgroundColor:M,haveFloatingContent:!!p,onActiveChanged:this._onActiveChanged},(0,xM.wrapClickable)({onPress:this.actionPress,hostConfig:this.props.hostConfig,action:this.selectAction,children:[this.props.container.backgroundImage&&Ca.createElement(AM.default,{key:"background-image",source:{url:this.props.container.backgroundImage.url},mode:this.props.container.backgroundImage.mode,horizontalAlignment:this.props.container.backgroundImage.horizontalAlignment,size:XC.Types.ImageSizes.stretch,isBackground:!0,hostConfig:this.props.hostConfig,eventEmitter:this.props.eventEmitter,spacing:TM.EmptySpacing}),w]})))}},{key:"getSpacingStyle",value:function(){return this.props.container.height!==XC.Types.ContainerHeights.stretch?Object.assign(Object.assign({},Du(r,"getSpacingStyle",this,3)([])),{flexShrink:this.props.container.allowShrink?1:0}):Object.assign(Object.assign({},Du(r,"getSpacingStyle",this,3)([])),{flexGrow:1,flexShrink:1})}},{key:"getPaddingStyle",value:function(){return this.props.scrollableView?Object.assign(Object.assign({},YC.Platform.select({web:Du(r,"getPaddingStyle",this,3)([]),default:void 0})),{flexGrow:1,flexShrink:1}):Object.assign(Object.assign(Object.assign({},Du(r,"getPaddingStyle",this,3)([])),{flexGrow:1,flexShrink:1}),this.getVerticalAlignStyle(this.props.container.verticalContentAlignment))}},{key:"getSizeConstraints",value:function(){return this.props.container}},{key:"getContentContainerSyle",value:function(){return YC.Platform.select({web:void 0,default:Du(r,"getPaddingStyle",this,3)([])})}}])}(wM.ElementBaseView);function EM(e,r,a,n,u,l){return Ca.createElement(wp,{key:r,container:e,hostConfig:u.hostConfig,isRTL:u.isRTL,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,renderElement:l,onExecuteAction:u.onExecuteAction})}fi.renderContainerElement=EM;function OM(e,r,a,n,u,l){return Ca.createElement(wp,{key:r,container:e,hostConfig:u.hostConfig,isRTL:u.isRTL,eventEmitter:{proxyImageUrl:u.proxyImageUrl},scrollableView:!0,spacing:a,renderElement:l,onExecuteAction:u.onExecuteAction})}fi.renderListElement=OM;fi.default=wp});var a_=T(Lu=>{"use strict";f();var PM=Ue(),IM=We(),RM=vt(),Tp=ht(),qM=Ii(),DM=yt();function LM(e,r,a){return r=Tp(r),RM(e,n_()?Reflect.construct(r,a||[],Tp(e).constructor):r.apply(e,a))}function n_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(n_=function(){return!!e})()}function r_(e,r,a,n){var u=qM(Tp(1&n?e.prototype:e),r,a);return 2&n&&typeof u=="function"?function(l){return u.apply(a,l)}:u}Object.defineProperty(Lu,"__esModule",{value:!0});Lu.renderWrapContainerElement=void 0;var MM=Ut(),Ul=ye(),BM=Fr(),zM=zn(),FM=Zt(),VM=Tn(),$M=Vn(),NM=An(),UM=Zr(),WM={contentWrapper:zM.StyleSheet.createViewStyle({flexGrow:1,flexShrink:1,overflow:UM.Platform.select({macos:"hidden",default:void 0}),flexDirection:"row",flexWrap:"wrap",alignItems:"stretch",alignContent:"stretch"})},i_=function(e){function r(){return PM(this,r),LM(this,r,arguments)}return DM(r,e),IM(r,[{key:"render",value:function(){var n=this,u=this.props.wrapContainer.items.length,l=MM.map(this.props.wrapContainer.items,function(k,z){return k?n.props.renderElement(k,z,u):null}),d=this.props.wrapContainer,p=d.style,v=d.borders,w=d.backgroundColor;return Ul.createElement(NM.ACView,{style:this.spacingStyle,separator:this.props.spacing.separator},Ul.createElement(VM.ContainerBackground,{hostConfig:this.props.hostConfig,dir:this.props.isRTL?"rtl":void 0,containerStyle:p,borders:v,backgroundColor:w},Ul.createElement(BM.View,{style:[this.paddingStyle,WM.contentWrapper,this.getAlignmentStyle()]},l)))}},{key:"getSpacingStyle",value:function(){return this.props.wrapContainer.height!==FM.Types.ContainerHeights.stretch?r_(r,"getSpacingStyle",this,3)([]):Object.assign(Object.assign({},r_(r,"getSpacingStyle",this,3)([])),{flexGrow:1,flexShrink:1})}},{key:"getSizeConstraints",value:function(){return this.props.wrapContainer}},{key:"getAlignmentStyle",value:function(){var n;switch(this.props.wrapContainer.alignItems){default:case"left":n="flex-start";break;case"center":n="center";break;case"right":n="flex-end";break}return{justifyContent:n}}}])}($M.ElementBaseView);function jM(e,r,a,n,u,l){return Ul.createElement(i_,{key:r,wrapContainer:e,hostConfig:u.hostConfig,isRTL:u.isRTL,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,renderElement:l,onExecuteAction:u.onExecuteAction})}Lu.renderWrapContainerElement=jM;Lu.default=i_});var c_=T(Bu=>{"use strict";f();var HM=Ue(),GM=We(),KM=vt(),kp=ht(),ZM=Ii(),JM=yt();function YM(e,r,a){return r=kp(r),KM(e,s_()?Reflect.construct(r,a||[],kp(e).constructor):r.apply(e,a))}function s_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(s_=function(){return!!e})()}function o_(e,r,a,n){var u=ZM(kp(1&n?e.prototype:e),r,a);return 2&n&&typeof u=="function"?function(l){return u.apply(a,l)}:u}Object.defineProperty(Bu,"__esModule",{value:!0});Bu.renderColumnSetElement=void 0;var XM=Ut(),Mu=ye(),QM=Fr(),eB=pp(),tB=zn(),u_=Zr(),rB=Zt(),nB=ma(),iB=Tn(),aB=Vn(),oB=An(),Ap={columnSetView:tB.StyleSheet.createViewStyle({flexGrow:1,flexShrink:1,flexDirection:"row",alignItems:"stretch",justifyContent:"flex-start"}),scrollViewStyle:{flexGrow:1,flexShrink:1}},l_=function(e){function r(){return HM(this,r),YM(this,r,arguments)}return JM(r,e),GM(r,[{key:"selectAction",get:function(){return this.props.columnSet.selectAction}},{key:"render",value:function(){var n=this,u=this.props.columnSet.columns.length,l=XM.map(this.props.columnSet.columns,function(W,M){return W?n.props.renderElement(W,M,u):null}),d=this.props.columnSet,p=d.style,v=d.borders,w=d.backgroundColor,k=d.scrollable,z=this.props.columnSet.scrollable?Mu.createElement(eB.ScrollView,{key:"columns",contentContainerStyle:this.getContentContainerSyle(),style:this.getScrollViewStyle(),scrollDirection:"horizontal"},l):Mu.createElement(QM.View,{key:"columns",style:[this.paddingStyle,Ap.columnSetView]},l);return Mu.createElement(oB.ACView,{style:this.spacingStyle,separator:this.props.spacing.separator},Mu.createElement(iB.ContainerBackground,{hostConfig:this.props.hostConfig,dir:this.props.isRTL?"rtl":void 0,containerStyle:p,borders:v,backgroundColor:w},(0,nB.wrapClickable)({onPress:this.actionPress,hostConfig:this.props.hostConfig,action:this.selectAction,children:[z]})))}},{key:"getSpacingStyle",value:function(){return this.props.columnSet.height!==rB.Types.ContainerHeights.stretch?o_(r,"getSpacingStyle",this,3)([]):Object.assign(Object.assign({},o_(r,"getSpacingStyle",this,3)([])),{flexGrow:1,flexShrink:1})}},{key:"getSizeConstraints",value:function(){return this.props.columnSet}},{key:"getScrollViewStyle",value:function(){return u_.Platform.select({web:Object.assign(Object.assign({},this.paddingStyle),Ap.scrollViewStyle),default:Ap.scrollViewStyle})}},{key:"getContentContainerSyle",value:function(){return u_.Platform.select({web:void 0,default:this.paddingStyle})}}])}(aB.ElementBaseView);function uB(e,r,a,n,u,l){return Mu.createElement(l_,{key:r,columnSet:e,hostConfig:u.hostConfig,isRTL:u.isRTL,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,renderElement:l,onExecuteAction:u.onExecuteAction})}Bu.renderColumnSetElement=uB;Bu.default=l_});var g_=T(_a=>{"use strict";f();var sB=Ue(),lB=We(),cB=vt(),Op=ht(),fB=Ii(),dB=yt();function pB(e,r,a){return r=Op(r),cB(e,d_()?Reflect.construct(r,a||[],Op(e).constructor):r.apply(e,a))}function d_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(d_=function(){return!!e})()}function f_(e,r,a,n){var u=fB(Op(1&n?e.prototype:e),r,a);return 2&n&&typeof u=="function"?function(l){return u.apply(a,l)}:u}var gB=_a&&_a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_a,"__esModule",{value:!0});_a.renderColumnElement=void 0;var hB=Ut(),zu=ye(),mB=Fr(),Ep=Zt(),vB=ma(),yB=Tn(),CB=Vn(),_B=io(),bB=gB(uo()),SB=An(),p_=function(e){function r(){return sB(this,r),pB(this,r,arguments)}return dB(r,e),lB(r,[{key:"selectAction",get:function(){return this.props.column.selectAction}},{key:"render",value:function(){var n=this,u=this.props.column.items.length,l=hB.map(this.props.column.items,function(z,W){return z?n.props.renderElement(z,W,u):null}),d=zu.createElement(mB.View,{key:"column-container",style:this.paddingStyle},l),p=this.props.column,v=p.style,w=p.borders,k=p.backgroundColor;return zu.createElement(SB.ACView,{style:this.spacingStyle,separator:this.props.spacing.separator,vertical:!0},zu.createElement(yB.ContainerBackground,{hostConfig:this.props.hostConfig,dir:this.props.isRTL?"rtl":void 0,containerStyle:v,borders:w,backgroundColor:k},(0,vB.wrapClickable)({hostConfig:this.props.hostConfig,onPress:this.actionPress,action:this.selectAction,children:[this.props.column.backgroundImage&&zu.createElement(bB.default,{key:"background-image",source:{url:this.props.column.backgroundImage.url},mode:this.props.column.backgroundImage.mode,horizontalAlignment:this.props.column.backgroundImage.horizontalAlignment,size:Ep.Types.ImageSizes.stretch,isBackground:!0,hostConfig:this.props.hostConfig,eventEmitter:this.props.eventEmitter,spacing:_B.EmptySpacing}),d]})))}},{key:"getSpacingStyle",value:function(){return Object.assign(Object.assign({},f_(r,"getSpacingStyle",this,3)([])),this._getColumnWidthStyle(this.props.column))}},{key:"getPaddingStyle",value:function(){return Object.assign(Object.assign(Object.assign({},f_(r,"getPaddingStyle",this,3)([])),{flexGrow:1,flexShrink:1}),this.getVerticalAlignStyle(this.props.column.verticalContentAlignment))}},{key:"getSizeConstraints",value:function(){return this.props.column}},{key:"_getColumnWidthStyle",value:function(n){var u=n.pixelWidth,l=typeof u=="number";if(!l&&typeof n.width=="string"&&n.width.substring(n.width.length-2)==="px"&&(u=parseFloat(n.width),l=!0),l)return{flexGrow:0,flexShrink:0,flexBasis:u};var d=n.noShrink?0:1;if(n.width===Ep.Types.ColumnWidths.auto)return{flexGrow:0,flexShrink:d};if(n.width===Ep.Types.ColumnWidths.stretch)return{flexGrow:1,flexShrink:d};var p=n.width?parseInt(n.width,10):1;return isNaN(p)&&(p=1),{flexGrow:p,flexBasis:0}}}])}(CB.ElementBaseView);function xB(e,r,a,n,u,l){return zu.createElement(p_,{key:r,column:e,hostConfig:u.hostConfig,isRTL:u.isRTL,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,renderElement:l,onExecuteAction:u.onExecuteAction})}_a.renderColumnElement=xB;_a.default=p_});var y_=T(ba=>{"use strict";f();Object.defineProperty(ba,"__esModule",{value:!0});ba.parseMarkdownText=ba.MarkdownTextStyle=void 0;var Wl=Ut(),Pp=Zt(),Ip;(function(e){e[e.Bold=0]="Bold",e[e.Italics=1]="Italics"})(Ip=ba.MarkdownTextStyle||(ba.MarkdownTextStyle={}));function m_(e,r){for(var a=0,n,u=h_(e,a);u;)n=e.slice(a,u.match.index),n&&n.length&&r.handleText(n),a=u.match.index+u.match[0].length,u.tag.processToken(u.match,r),u=h_(e,a);return n=e.slice(a),n&&n.length&&r.handleText(n),r}ba.parseMarkdownText=m_;var wB=/(\*\*)(.*?)\1/g,TB=/(_)(.*?)\1/g,AB=/\{\{(DATE|TIME)\((.*?)\)\}\}/g,kB=/\[([^\[]+)\]\(([^\)]+)\)/g,EB=[{regExp:wB,processToken:OB},{regExp:TB,processToken:PB},{regExp:AB,processToken:IB},{regExp:kB,processToken:RB}];function h_(e,r){if(!(r>=e.length)){var a=Wl.compact(Wl.map(EB,function(n){n.regExp.lastIndex=r;var u=n.regExp.exec(e);if(u)return{tag:n,match:u}})).sort(function(n,u){return n.match.index-u.match.index});return Wl.isEmpty(a)?void 0:a[0]}}function v_(e,r){e.length>2&&m_(e[2],r)}function OB(e,r){r.handleBeginTextStyle(Ip.Bold),v_(e,r),r.handleEndTextStyle()}function PB(e,r){r.handleBeginTextStyle(Ip.Italics),v_(e,r),r.handleEndTextStyle()}function IB(e,r){if(!(e.length<=2)){var a=e[2].split(",",2);if(a.length){var n=new Date(a[0].trim());if(!(!n||Wl.isNaN(n))){var u=e[1].toLowerCase();if(u==="time"){var l={hour:"numeric",minute:"numeric"};r.handleText(n.toLocaleTimeString(void 0,l));return}if(u==="date"){var d={},p=a.length>1?a[1].trim().toLowerCase():Pp.Types.DateFormats.compact;switch(p){case Pp.Types.DateFormats.short:d={year:"numeric",month:"short",day:"numeric",weekday:"short"};break;case Pp.Types.DateFormats.long:d={year:"numeric",month:"long",day:"numeric",weekday:"long"};break;default:d={year:"numeric",month:"numeric",day:"numeric"}}r.handleText(n.toLocaleDateString(void 0,d));return}}}}}function RB(e,r){r.handleUrl(e[2],e[1])}});var Rp=T((u5,C_)=>{f();C_.exports=OfficePlatformGlobal.Ply.Palettes});var w_=T(Fu=>{"use strict";f();var qB=Ue(),DB=We(),LB=vt(),__=ht(),MB=yt();function BB(e,r,a){return r=__(r),LB(e,x_()?Reflect.construct(r,a||[],__(e).constructor):r.apply(e,a))}function x_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(x_=function(){return!!e})()}Object.defineProperty(Fu,"__esModule",{value:!0});Fu.ACLink=void 0;var b_=ye(),zB=Dt(),S_=Rp(),FB=Zr(),VB=FB.Platform.select({macos:S_.Palettes.Default.TextLink,default:S_.Palettes.Default.TextEmphasis}),qp=function(e){function r(){var a;return qB(this,r),a=BB(this,r,arguments),a._handlePress=function(n){n.stopPropagation(),a.props.onPress(a.props.url)},a}return MB(r,e),DB(r,[{key:"render",value:function(){var n=this.props.url,u=this.props.text||n,l=this.props.color||VB,d="underline";return b_.createElement(zB.Text,{style:{color:l,textDecorationLine:d},onPress:this._handlePress},u)}}])}(b_.Component);Fu.ACLink=qp;qp.defaultProps={showUnderline:!0};Fu.default=qp});var T_=T(jl=>{"use strict";f();Object.defineProperty(jl,"__esModule",{value:!0});jl.ACLink=void 0;var $B=w_();Object.defineProperty(jl,"ACLink",{enumerable:!0,get:function(){return $B.ACLink}})});var P_=T(kn=>{"use strict";f();var NB=Ue(),UB=We(),WB=vt(),A_=ht(),jB=yt();function HB(e,r,a){return r=A_(r),WB(e,E_()?Reflect.construct(r,a||[],A_(e).constructor):r.apply(e,a))}function E_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(E_=function(){return!!e})()}var GB=kn&&kn.__createBinding||(Object.create?function(e,r,a,n){n===void 0&&(n=a);var u=Object.getOwnPropertyDescriptor(r,a);(!u||("get"in u?!r.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return r[a]}}),Object.defineProperty(e,n,u)}:function(e,r,a,n){n===void 0&&(n=a),e[n]=r[a]}),KB=kn&&kn.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),ZB=kn&&kn.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&GB(r,e,a);return KB(r,e),r};Object.defineProperty(kn,"__esModule",{value:!0});kn.ACText=void 0;var k_=ZB(ye()),JB=Dt(),O_=function(e){function r(){return NB(this,r),HB(this,r,arguments)}return jB(r,e),UB(r,[{key:"render",value:function(){var n=this.props.style;return n&&n.fontWeight&&(n=Object.assign(Object.assign({},n),{fontWeight:n.fontWeight.toString()})),k_.createElement(JB.Text,{selectable:this.props.selectable,style:n,numberOfLines:this.props.numberOfLines},this.props.children)}}])}(k_.Component);kn.ACText=O_;kn.default=O_});var Dp=T(Hl=>{"use strict";f();Object.defineProperty(Hl,"__esModule",{value:!0});Hl.ACText=void 0;var YB=P_();Object.defineProperty(Hl,"ACText",{enumerable:!0,get:function(){return YB.ACText}})});var R_=T(Gl=>{"use strict";f();var XB=Ue(),QB=We();Object.defineProperty(Gl,"__esModule",{value:!0});Gl.tokenizeMarkdownText=void 0;var I_=ye(),ez=ya(),Lp=y_(),tz=T_(),rz=Dp(),nz=function(){function e(r,a,n,u){XB(this,e),this._key=0,this._hasHyperlinks=!1,this._reactValueStack=[[]],this._textStyleStack=[],this._hyperlinkStyle=r?{color:r.color,underline:r.underline}:void 0,this._focusOutlineColor=a||void 0,this._hoverBackgroundColor=n||void 0,this._onClickUrl=u}return QB(e,[{key:"hasHyperlinks",get:function(){return this._hasHyperlinks}},{key:"stackTop",value:function(){return this._reactValueStack[this._reactValueStack.length-1]}},{key:"handleUrl",value:function(a,n){this._hasHyperlinks=!0,this.stackTop().push(I_.createElement(tz.ACLink,{key:this._nextKey(),text:n,url:a,color:this._hyperlinkStyle?this._hyperlinkStyle.color:void 0,showUnderline:this._hyperlinkStyle?this._hyperlinkStyle.underline:void 0,focusOutlineColor:this._focusOutlineColor,hoverBackgroundColor:this._hoverBackgroundColor,onPress:this._onClickUrl}))}},{key:"handleText",value:function(a){this.stackTop().push(a)}},{key:"handleBeginTextStyle",value:function(a){this._reactValueStack.push([]),this._textStyleStack.push(a)}},{key:"handleEndTextStyle",value:function(){var a=this.stackTop(),n=this._textStyleStack[this._textStyleStack.length-1];this._reactValueStack.pop(),this._textStyleStack.pop(),a.length!==0&&this.stackTop().push(I_.createElement(rz.ACText,{key:(0,ez.getReactKey)("text",this._nextKey()),style:this._computeTextStyle(n)},a))}},{key:"_computeTextStyle",value:function(a){switch(a){case Lp.MarkdownTextStyle.Bold:return{fontWeight:"bold"};case Lp.MarkdownTextStyle.Italics:return{fontStyle:"italic"};default:return{}}}},{key:"_nextKey",value:function(){return++this._key}}])}();function iz(e,r,a,n,u){var l=new nz(r,a,n,u);(0,Lp.parseMarkdownText)(e,l);var d=l.stackTop();return Array.isArray(d)&&d.length===1&&typeof d[0]=="string"&&(d=d[0]),{textContent:d,hasHyperlinks:l.hasHyperlinks}}Gl.tokenizeMarkdownText=iz});var q_=T(Bi=>{"use strict";f();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.transformTextAlign=Bi.isolateTextContent=Bi.defaultTextAlign=void 0;Bi.defaultTextAlign="auto";function az(e){return e}Bi.isolateTextContent=az;function oz(e,r){return e}Bi.transformTextAlign=oz});var M_=T(zi=>{"use strict";f();Object.defineProperty(zi,"__esModule",{value:!0});zi.isolateTextContent=zi.transformTextAlign=zi.defaultTextAlign=void 0;var D_=ye(),L_=q_();Object.defineProperty(zi,"defaultTextAlign",{enumerable:!0,get:function(){return L_.defaultTextAlign}});Object.defineProperty(zi,"transformTextAlign",{enumerable:!0,get:function(){return L_.transformTextAlign}});function uz(e){return D_.createElement(D_.Fragment,null,"\u2068",e,"\u2069")}zi.isolateTextContent=uz});var Bp=T(fo=>{"use strict";f();var sz=Ue(),lz=We(),cz=vt(),B_=ht(),fz=yt();function dz(e,r,a){return r=B_(r),cz(e,F_()?Reflect.construct(r,a||[],B_(e).constructor):r.apply(e,a))}function F_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(F_=function(){return!!e})()}Object.defineProperty(fo,"__esModule",{value:!0});fo.renderTextBlockElement=fo.TextBlockView=void 0;var co=Ut(),Fi=ye(),Kl=Zt(),pz=Vn(),gz=R_(),hz=Tn(),Mp=Dp(),mz=An(),Zl=M_(),z_=Iu(),vz=ya(),yz=Zr(),V_=function(e){function r(){var a;return sz(this,r),a=dz(this,r,arguments),a.renderWithStyle=function(n){var u=n=="attributionPane",l=yz.Platform.select({macos:!1,default:u}),d=a._getContainerStyle(n),p=a._parseText(d,a.props.textBlock.text),v;return a.props.textBlock.officeStyle?(v=Fi.createElement(z_.Text,{style:a._getPolyesterTextStyleProp(),textStyle:a.props.textBlock.officeStyle,numberOfLines:a._getNumberOfLines()},(0,Zl.isolateTextContent)(p.textContent)),a.props.textBlock.selectable&&(v=Fi.createElement(Mp.ACText,{selectable:!0,containerStyle:d,numberOfLines:a._getNumberOfLines(),isTopLevel:!0},v))):v=Fi.createElement(Mp.ACText,{selectable:a.props.textBlock.selectable,containerStyle:d,style:a._getBaseTextStyle(d,l),numberOfLines:a._getNumberOfLines(),isTopLevel:!0},(0,Zl.isolateTextContent)(p.textContent)),Fi.createElement(mz.ACView,{style:a.spacingStyle,separator:a.props.spacing.separator,stopEventPropagation:p.hasHyperlinks},v)},a._onClickUrl=function(n){if(a.props.onExecuteAction){var u={type:Kl.Types.ActionTypes.actionOpenUrl,url:n};a.props.onExecuteAction(u)}},a}return fz(r,e),lz(r,[{key:"render",value:function(){return Fi.createElement(hz.ContainerStyleContext.Consumer,null,this.renderWithStyle)}},{key:"_parseTextRun",value:function(n,u,l,d){if(co.isString(l))return l;var p={color:co.isUndefined(l.color)?u.color:l.color,isSubtle:co.isUndefined(l.isSubtle)?u.isSubtle:l.isSubtle},v=this._parseInnerTextDefinition(n,p,l.text),w=(0,vz.getReactKey)("run",d);return l.officeStyle?Fi.createElement(z_.Text,{key:w,textStyle:l.officeStyle},v):Fi.createElement(Mp.ACText,{key:w,style:this._getTextRunStyle(n,p,l)},v)}},{key:"_parseTextRuns",value:function(n,u,l){var d=this;return l.map(function(p,v){return d._parseTextRun(n,u,p,v)})}},{key:"_parseInnerTextDefinition",value:function(n,u,l){return co.isString(l)?l:this._parseTextRuns(n,u,l)}},{key:"_parseText",value:function(n,u){var l=n.hyperlinkStyle,d=n.focusOutlineColor,p=n.hoverBackgroundColor;if(co.isString(u))return this.props.markdown?(0,gz.tokenizeMarkdownText)(u,l,d,p,this._onClickUrl):{textContent:u,hasHyperlinks:!1};var v={color:this.props.textBlock.color,isSubtle:this.props.textBlock.isSubtle};return{textContent:this._parseTextRuns(n,v,u),hasHyperlinks:!1}}},{key:"_getTextAlign",value:function(){switch(this.props.textBlock.horizontalAlignment){case Kl.Types.HorizontalAlignments.left:case Kl.Types.HorizontalAlignments.center:case Kl.Types.HorizontalAlignments.right:return(0,Zl.transformTextAlign)(this.props.textBlock.horizontalAlignment,this.props.isRTL);default:return Zl.defaultTextAlign}}},{key:"_getDecorationLine",value:function(n,u){return n&&u?"underline line-through":n?"underline":u?"line-through":"none"}},{key:"_getContainerStyle",value:function(n){return this.props.hostConfig.containerStyles.getStyle(n)}},{key:"_getPolyesterTextStyleProp",value:function(){return{textAlign:this._getTextAlign()}}},{key:"_getTextRunStyle",value:function(n,u,l){var d=this.props.hostConfig,p=l.weight?d.fontWeights[l.weight]:void 0,v=l.size?d.fontSizes[l.size]:void 0,w=l.color||!co.isUndefined(l.isSubtle)?this._getFontColor(n,u):void 0,k=l.italic?"italic":"normal",z=this._getDecorationLine(l.underLine,l.strikeThrough);return{color:w,fontSize:v,fontWeight:p,fontStyle:k,textDecorationLine:z}}},{key:"_getBaseTextStyle",value:function(n,u){var l=this.props,d=l.hostConfig,p=l.textBlock,v=p.weight?d.fontWeights[p.weight]:d.fontWeights.default,w=p.size?d.fontSizes[p.size]:d.fontSizes.default,k=u?n.getBackgroundColor():void 0,z=this._getFontColor(n,{color:p.color,isSubtle:p.isSubtle}),W=this._getTextAlign(),M=p.italic?"italic":"normal",P=this._getDecorationLine(p.underLine,p.strikeThrough);return{backgroundColor:k,color:z,textAlign:W,fontFamily:d.fontFamily,fontSize:w,fontWeight:v,fontStyle:M,textDecorationLine:P}}},{key:"_getFontColor",value:function(n,u){return n.getForegroundColor(u.color,u.isSubtle)}},{key:"_getNumberOfLines",value:function(){return this.props.textBlock.wrap?this.props.textBlock.maxLines||void 0:1}}])}(pz.ElementBaseView);fo.TextBlockView=V_;function Cz(e,r,a,n,u,l){var d=typeof e.markdown=="boolean"?e.markdown:typeof u.markdown=="boolean"?u.markdown:u.hostConfig.markdown;return Fi.createElement(V_,{key:r,textBlock:e,hostConfig:u.hostConfig,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,onExecuteAction:u.onExecuteAction,markdown:d,isRTL:u.isRTL})}fo.renderTextBlockElement=Cz});var Z_=T(Vu=>{"use strict";f();var $_=Pi(),_z=Ue(),bz=We(),Sz=vt(),zp=ht(),xz=Ii(),wz=yt();function Tz(e,r,a){return r=zp(r),Sz(e,G_()?Reflect.construct(r,a||[],zp(e).constructor):r.apply(e,a))}function G_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(G_=function(){return!!e})()}function Az(e,r,a,n){var u=xz(zp(1&n?e.prototype:e),r,a);return 2&n&&typeof u=="function"?function(l){return u.apply(a,l)}:u}Object.defineProperty(Vu,"__esModule",{value:!0});Vu.renderFactSetElement=void 0;var N_=Ut(),Vi=ye(),U_=Fr(),kz=zn(),W_=Zt(),Ez=Vn(),Jl=ya(),Nn=ao(),j_=Bp(),Oz=An(),H_={factTextContainer:kz.StyleSheet.createViewStyle({flexDirection:"column",justifyContent:"flex-start"})},K_=function(e){function r(){return _z(this,r),Tz(this,r,arguments)}return wz(r,e),bz(r,[{key:"render",value:function(){var n=this,u=N_.map(this.props.factSet.facts,function(d,p){return d?n._renderFactTitles(d,p):void 0}),l=N_.map(this.props.factSet.facts,function(d,p){return d?n._renderFactValues(d,p):void 0});return Vi.createElement(Oz.ACView,{style:this.spacingStyle,separator:this.props.spacing.separator},Vi.createElement.apply(Vi,[U_.View,{key:(0,Jl.getReactKey)("factTitles"),style:H_.factTextContainer}].concat($_(u))),Vi.createElement.apply(Vi,[U_.View,{key:(0,Jl.getReactKey)("factValues"),style:H_.factTextContainer}].concat($_(l))))}},{key:"getSpacingStyle",value:function(){return Object.assign(Object.assign({},Az(r,"getSpacingStyle",this,3)([])),{flex:1,flexDirection:"row"})}},{key:"_renderFactTitles",value:function(n,u){var l={type:W_.Types.ElementTypes.textBlock,text:n.title,size:Nn.TextSize[this.props.hostConfig.factSet.title.size],color:Nn.TextColor[this.props.hostConfig.factSet.title.color],isSubtle:this.props.hostConfig.factSet.title.isSubtle,weight:Nn.TextWeight[this.props.hostConfig.factSet.title.weight],wrap:this.props.hostConfig.factSet.title.wrap,spacing:Nn.Spacing[Nn.Spacing.none]},d={padding:{},spacing:{top:this.props.hostConfig.factSet.separation.spacing},separator:!1};return Vi.createElement(j_.TextBlockView,{key:(0,Jl.getReactKey)("factTitle",u,n.title),textBlock:l,hostConfig:this.props.hostConfig,spacing:d,isRTL:this.props.isRTL})}},{key:"_renderFactValues",value:function(n,u){var l={type:W_.Types.ElementTypes.textBlock,text:n.value,size:Nn.TextSize[this.props.hostConfig.factSet.value.size],color:Nn.TextColor[this.props.hostConfig.factSet.value.color],isSubtle:this.props.hostConfig.factSet.value.isSubtle,weight:Nn.TextWeight[this.props.hostConfig.factSet.value.weight],wrap:this.props.hostConfig.factSet.value.wrap,spacing:Nn.Spacing[Nn.Spacing.none]},d={padding:{},spacing:{top:this.props.hostConfig.factSet.separation.spacing,left:this.props.hostConfig.factSet.spacing},separator:!1};return Vi.createElement(j_.TextBlockView,{key:(0,Jl.getReactKey)("factValue",u,n.value),textBlock:l,hostConfig:this.props.hostConfig,spacing:d,isRTL:this.props.isRTL})}}])}(Ez.ElementBaseView);function Pz(e,r,a,n,u,l){return Vi.createElement(K_,{key:r,factSet:e,hostConfig:u.hostConfig,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,onExecuteAction:u.onExecuteAction,isRTL:u.isRTL})}Vu.renderFactSetElement=Pz;Vu.default=K_});var Q_=T($u=>{"use strict";f();var Iz=Ue(),Rz=We(),qz=vt(),Fp=ht(),Dz=Ii(),Lz=yt();function Mz(e,r,a){return r=Fp(r),qz(e,J_()?Reflect.construct(r,a||[],Fp(e).constructor):r.apply(e,a))}function J_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(J_=function(){return!!e})()}function Bz(e,r,a,n){var u=Dz(Fp(1&n?e.prototype:e),r,a);return 2&n&&typeof u=="function"?function(l){return u.apply(a,l)}:u}Object.defineProperty($u,"__esModule",{value:!0});$u.renderImageSetElement=void 0;var zz=Ut(),Y_=ye(),Fz=Zt(),Vz=Vn(),$z=An(),X_=function(e){function r(){return Iz(this,r),Mz(this,r,arguments)}return Lz(r,e),Rz(r,[{key:"render",value:function(){var n=this,u=this.props.imageSet.images.length,l=zz.map(this.props.imageSet.images,function(d,p){if(d){var v=Object.assign(Object.assign({},d),{size:n.props.imageSet.imageSize||Fz.Types.ImageSizes.medium});return n.props.renderElement(v,p,u)}});return Y_.createElement($z.ACView,{style:this.spacingStyle,separator:this.props.spacing.separator},l)}},{key:"getSpacingStyle",value:function(){return Object.assign(Object.assign({},Bz(r,"getSpacingStyle",this,3)([])),{flex:1,flexDirection:"row",justifyContent:"center",flexWrap:"wrap"})}}])}(Vz.ElementBaseView);function Nz(e,r,a,n,u,l){return Y_.createElement(X_,{key:r,imageSet:e,hostConfig:u.hostConfig,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,renderElement:l,onExecuteAction:u.onExecuteAction})}$u.renderImageSetElement=Nz;$u.default=X_});var eb=T(po=>{"use strict";f();var Uz=po&&po.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(po,"__esModule",{value:!0});po.renderInputNumberElement=void 0;var Wz=Ut(),jz=ye(),Hz=Uz(Vp());function Gz(e,r,a,n,u,l){return jz.createElement(Hz.default,{key:r,inputNumber:e,inputValue:Wz.isNumber(n)?n:void 0,hostConfig:u.hostConfig,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,onInputValueChanged:u.onInputValueChanged,onExecuteAction:u.onExecuteAction})}po.renderInputNumberElement=Gz});var $p=T(Nu=>{"use strict";f();var Kz=Ue(),Zz=We(),Jz=vt(),tb=ht(),Yz=yt();function Xz(e,r,a){return r=tb(r),Jz(e,rb()?Reflect.construct(r,a||[],tb(e).constructor):r.apply(e,a))}function rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(rb=function(){return!!e})()}Object.defineProperty(Nu,"__esModule",{value:!0});Nu.BaseInputView=void 0;var Qz=Vn(),nb=function(e){function r(){return Kz(this,r),Xz(this,r,arguments)}return Yz(r,e),Zz(r,[{key:"handleInputValueChanged",value:function(n){this.props.onInputValueChanged(this.inputId,n)}}])}(Qz.ElementBaseView);Nu.BaseInputView=nb;Nu.default=nb});var ob=T(Np=>{"use strict";f();var eF=Ue(),tF=We(),rF=vt(),ib=ht(),nF=yt();function iF(e,r,a){return r=ib(r),rF(e,ab()?Reflect.construct(r,a||[],ib(e).constructor):r.apply(e,a))}function ab(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(ab=function(){return!!e})()}Object.defineProperty(Np,"__esModule",{value:!0});var aF=ye(),oF=Iu(),uF=$p(),sF=function(e){function r(){return eF(this,r),iF(this,r,arguments)}return nF(r,e),tF(r,[{key:"inputId",get:function(){return this.props.inputNumber.id}},{key:"render",value:function(){return console.warn("InputNumberView not implemented"),aF.createElement(oF.Text,null,"InputNumberView not implemented")}}])}(uF.BaseInputView);Np.default=sF});var Vp=T($i=>{"use strict";f();var lF=$i&&$i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($i,"__esModule",{value:!0});$i.default=$i.renderInputNumberElement=void 0;var cF=eb();Object.defineProperty($i,"renderInputNumberElement",{enumerable:!0,get:function(){return cF.renderInputNumberElement}});var fF=ob();Object.defineProperty($i,"default",{enumerable:!0,get:function(){return lF(fF).default}})});var ub=T(go=>{"use strict";f();var dF=go&&go.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(go,"__esModule",{value:!0});go.renderInputTextElement=void 0;var pF=Ut(),gF=ye(),hF=dF(Up());function mF(e,r,a,n,u,l){return gF.createElement(hF.default,{key:r,inputText:e,inputValue:pF.isString(n)?n:void 0,hostConfig:u.hostConfig,eventEmitter:{proxyImageUrl:u.proxyImageUrl},spacing:a,onInputValueChanged:u.onInputValueChanged,onExecuteAction:u.onExecuteAction})}go.renderInputTextElement=mF});var cb=T(Wp=>{"use strict";f();var vF=Ue(),yF=We(),CF=vt(),sb=ht(),_F=yt();function bF(e,r,a){return r=sb(r),CF(e,lb()?Reflect.construct(r,a||[],sb(e).constructor):r.apply(e,a))}function lb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(lb=function(){return!!e})()}Object.defineProperty(Wp,"__esModule",{value:!0});var SF=ye(),xF=Iu(),wF=$p(),TF=function(e){function r(){return vF(this,r),bF(this,r,arguments)}return _F(r,e),yF(r,[{key:"inputId",get:function(){return this.props.inputText.id}},{key:"render",value:function(){return console.warn("InputTextView not implemented"),SF.createElement(xF.Text,null,"InputTextView not implemented")}}])}(wF.BaseInputView);Wp.default=TF});var Up=T(Ni=>{"use strict";f();var AF=Ni&&Ni.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.default=Ni.renderInputTextElement=void 0;var kF=ub();Object.defineProperty(Ni,"renderInputTextElement",{enumerable:!0,get:function(){return kF.renderInputTextElement}});var EF=cb();Object.defineProperty(Ni,"default",{enumerable:!0,get:function(){return AF(EF).default}})});var fb=T(Yl=>{"use strict";f();Object.defineProperty(Yl,"__esModule",{value:!0});Yl.renderOverlayElement=void 0;var OF=ye(),PF=Fr(),Ui=Zt();function IF(e,r,a,n,u,l){var d=e.dockVertical===Ui.Types.VerticalDockingValues.top||e.dockVertical===Ui.Types.VerticalDockingValues.bottom?"100%":void 0,p=e.dockHorizontal===Ui.Types.HorizontalDockingValues.left||e.dockHorizontal===Ui.Types.HorizontalDockingValues.right?"100%":void 0,v={position:"absolute",top:e.dockVertical===Ui.Types.VerticalDockingValues.bottom?void 0:a.padding.top||0,bottom:e.dockVertical===Ui.Types.VerticalDockingValues.top?void 0:a.padding.bottom||0,start:e.dockHorizontal===Ui.Types.HorizontalDockingValues.right?void 0:a.padding.left||0,end:e.dockHorizontal===Ui.Types.HorizontalDockingValues.left?void 0:a.padding.right||0,maxWidth:p,maxHeight:d};return OF.createElement(PF.View,{key:r,style:v},l(e.content,0,1))}Yl.renderOverlayElement=IF});var pb=T((j5,db)=>{f();db.exports=OfficePlatformGlobal.Ply.DefaultButton});var Xl=T((G5,gb)=>{f();gb.exports=OfficePlatformGlobal.Polyester.Components});var hb=T(ec=>{"use strict";f();Object.defineProperty(ec,"__esModule",{value:!0});ec.ACHyperlinkButton=void 0;var jp=ye(),Ql=Dt(),RF=Ql.StyleSheet.create({button:{flexGrow:0,flexShrink:1}}),qF=function(r){var a="underline";return jp.createElement(Ql.View,{style:{flexDirection:"row"}},jp.createElement(Ql.TouchableOpacity,{accessibilityRole:"link",onPress:r.onClick,style:RF.button},jp.createElement(Ql.Text,{style:{color:r.color,textDecorationLine:a,fontSize:r.size}},r.hyperlinkText)))};ec.ACHyperlinkButton=qF});var mb=T(tc=>{"use strict";f();Object.defineProperty(tc,"__esModule",{value:!0});tc.makeHyperlinkButton=void 0;var DF=ye(),LF=Xl(),MF=hb();function BF(e,r,a,n){var u=LF.Palettes.Default.TextLink,l=a?n.hostConfig.fontSizes[a]:n.hostConfig.fontSizes.default;return DF.createElement(MF.ACHyperlinkButton,{hyperlinkText:e,color:u,size:l,onClick:function(){return n.onExecuteAction(r)}})}tc.makeHyperlinkButton=BF});var Cb=T(rc=>{"use strict";f();Object.defineProperty(rc,"__esModule",{value:!0});rc.renderCommandElement=void 0;var vb=ye(),yb=Zt(),zF=pb(),FF=An(),VF=Pu(),$F=mb();function NF(e,r,a,n,u,l){var d,p=e.action,v=p.title||(p.type==="Action.OpenUrl"?p.url:"-");switch(e.style){default:case yb.Types.CommandStyles.hyperlink:d=(0,$F.makeHyperlinkButton)(v,p,e.size,u);break;case yb.Types.CommandStyles.button:d=vb.createElement(zF.DefaultButton,{text:e.action.title,onClick:function(){return u.onExecuteAction(e.action)}});break}return vb.createElement(FF.ACView,{key:r,style:(0,VF.elementSpacingToSpacingStyle)(a),separator:a.separator},d)}rc.renderCommandElement=NF});var _b=T(nc=>{"use strict";f();Object.defineProperty(nc,"__esModule",{value:!0});nc.renderThrobber=void 0;var UF=ye(),WF=Dt();function jF(){return UF.createElement(WF.ActivityIndicator,{size:"large",style:{height:150}})}nc.renderThrobber=jF});var xb=T(Wi=>{"use strict";f();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.XmlAndHtmlEntities=Wi.CharToXmlEntity=Wi.CharsToXmlEscapeRegExp=void 0;var bb=Ut(),Sb={quot:'"',amp:"&",apos:"'",lt:"<",gt:">"};Wi.CharsToXmlEscapeRegExp=new RegExp("["+bb.values(Sb).join("")+"]","g");Wi.CharToXmlEntity=bb.invert(Sb);Wi.XmlAndHtmlEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u0294",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var ic=T(Sa=>{"use strict";f();var HF=Ue(),GF=We();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.Utils=Sa.ItemPlacement=void 0;var wb=xb(),Tb=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})/gi,Ab=/&(?:#x([0-9a-fA-F]+)|#(\d+)|([a-zA-Z]+));/g,Uu;(function(e){e[e.Single=0]="Single",e[e.First=1]="First",e[e.Middle=2]="Middle",e[e.Last=3]="Last"})(Uu=Sa.ItemPlacement||(Sa.ItemPlacement={}));var KF=function(){function e(){HF(this,e)}return GF(e,null,[{key:"getItemPlacement",value:function(a,n){return n===1?Uu.Single:a===0?Uu.First:a===n-1?Uu.Last:Uu.Middle}},{key:"legacyAdaptiveCardColorToCssColor",value:function(a){Tb.lastIndex=0;var n=Tb.exec(a);return n?"#".concat(n[2]).concat(n[3]).concat(n[4]).concat(n[1]):a}},{key:"unescapeXml",value:function(a){if(!a)return a;var n=a.replace(Ab,function(u,l,d,p){return l?String.fromCharCode(parseInt(l,16)):d?String.fromCharCode(parseInt(d,10)):p&&wb.XmlAndHtmlEntities.hasOwnProperty(p)?wb.XmlAndHtmlEntities[p]:u});return Ab.lastIndex=0,n}}])}();Sa.Utils=KF});var oc=T(ac=>{"use strict";f();var ZF=Ue(),JF=We();Object.defineProperty(ac,"__esModule",{value:!0});ac.Sanitizer=void 0;var Pe=Ut(),kt=Zt(),YF=ic(),XF=function(){function e(){ZF(this,e)}return JF(e,null,[{key:"sanitizeAdaptiveCard",value:function(a,n){if(n){var u=e.sanitizeElements(a,n.body),l=e.sanitizeActions(a,n.actions);if(!(Pe.isEmpty(u)&&Pe.isEmpty(l)))return{body:u,type:kt.Types.AdaptiveCardTypes.adaptiveCard,actions:l,version:n.version,minVersion:n.minVersion,fallbackText:n.fallbackText,speak:n.speak,style:n.style,backgroundImage:e.sanitizeBackgroundImage(n.backgroundImage),padding:e.sanitizePadding(n.padding),markdown:n.markdown}}}},{key:"sanitizeString",value:function(a){if(!(!a||typeof a!="string"))return a}},{key:"sanitizeNumber",value:function(a){if(!(!a||typeof a!="number"))return a}},{key:"sanitizePixelSize",value:function(a){if(Pe.isString(a))return a.substring(a.length-2)==="px"?a:void 0}},{key:"sanitizeElementType",value:function(a){if(!(!a||typeof a!="string"))return a}},{key:"sanitizeBaseElement",value:function(a){if(a){var n=e.sanitizeElementType(a.type);if(n)return{id:a.id?e.sanitizeString(a.id):void 0,type:n,spacing:a.spacing,separator:a.separator,style:a.style,isVisible:a.isVisible!==!1}}}},{key:"sanitizeContainerElementCommon",value:function(a){var n=e.sanitizeBaseElement(a);if(n)return Object.assign(Object.assign({},n),{borders:e.sanitizeBorders(a.borders),backgroundColor:a.backgroundColor,minHeight:e.sanitizePixelSize(a.minHeight),maxHeight:e.sanitizePixelSize(a.maxHeight),minWidth:e.sanitizePixelSize(a.minWidth),maxWidth:e.sanitizePixelSize(a.maxWidth)})}},{key:"sanitizeTargetElement",value:function(a){if(typeof a=="string")return e.sanitizeString(a);var n=e.sanitizeString(a.elementId);if(n)switch(a.isVisible){case!0:case!1:return{elementId:n,isVisible:a.isVisible};default:return n}}},{key:"sanitizeTargetElements",value:function(a){var n=Pe.compact(Pe.map(a,e.sanitizeTargetElement));return Pe.isEmpty(n)?void 0:n}},{key:"sanitizeElements",value:function(a,n){return Pe.compact(Pe.map(n,function(u){return a(u)}))}},{key:"sanitizeAction",value:function(a,n){if(!(!n||!n.type)){var u=n.type;if(Pe.some(kt.Types.ActionTypes,function(w){return w===u})){var l=e.sanitizeString(n.title);switch(u){case kt.Types.ActionTypes.actionOpenUrl:{var d=n.url;if(d)return{type:u,showTooltip:n.showTooltip,title:l,url:d};break}case kt.Types.ActionTypes.actionShowCard:{var p=e.sanitizeAdaptiveCard(a,n.card);if(p)return{type:u,showTooltip:n.showTooltip,title:l,card:p};break}case kt.Types.ActionTypes.actionSubmit:return{type:u,showTooltip:n.showTooltip,title:l,data:n.data};case kt.Types.ActionTypes.actionToggleVisibility:{var v=e.sanitizeTargetElements(n.targetElements);if(v)return{type:u,showTooltip:n.showTooltip,title:l,targetElements:v}}case kt.Types.ActionTypes.actionEvent:default:return}}}}},{key:"sanitizeActions",value:function(a,n){var u=Pe.compact(Pe.map(n,function(l){return e.sanitizeAction(a,l)}));return Pe.isEmpty(u)?void 0:u}},{key:"sanitizeColumn",value:function(a,n){if(n){var u=e.sanitizeContainerElementCommon(n);if(!(!u||u.type!==kt.Types.ElementTypes.column))return Object.assign(Object.assign({},u),{pixelWidth:e.sanitizeNumber(n.pixelWidth),width:n.width,noShrink:n.noShrink,items:e.sanitizeElements(a,n.items)||[],selectAction:e.sanitizeAction(a,n.selectAction),backgroundImage:e.sanitizeBackgroundImage(n.backgroundImage),padding:e.sanitizePadding(n.padding),verticalContentAlignment:n.verticalContentAlignment})}}},{key:"sanitizeContainer",value:function(a,n){return e._sanitizeContainerType(a,kt.Types.ElementTypes.container,n)}},{key:"sanitizeList",value:function(a,n){return e._sanitizeContainerType(a,kt.Types.ElementTypes.list,n)}},{key:"sanitizeOverlay",value:function(a,n){if(!(!n||!n.content)){var u=e.sanitizeBaseElement(n);if(u&&u.type===kt.Types.ElementTypes.overlay){var l=a(n.content);if(l)return Object.assign(Object.assign({},u),{content:l,dockHorizontal:n.dockHorizontal,dockVertical:n.dockVertical,padding:e.sanitizePadding(n.padding)})}}}},{key:"sanitizeFact",value:function(a){if(a){var n=e.sanitizeText(a.title),u=e.sanitizeText(a.value);if(!(!n&&!u))return n=n||" ",u=u||" ",{title:n,value:u}}}},{key:"sanitizeFactSet",value:function(a){if(!(!a||!a.facts||Pe.isEmpty(a.facts))){var n=e.sanitizeBaseElement(a);if(n&&n.type===kt.Types.ElementTypes.factSet){var u=Pe.compact(Pe.map(a.facts,function(l,d){return e.sanitizeFact(l)}));if(!Pe.isEmpty(u))return Object.assign(Object.assign({},n),{facts:u})}}}},{key:"sanitizeImage",value:function(a,n){if(n){var u=e.sanitizeBaseElement(n);if(u&&u.type===kt.Types.ElementTypes.image)return Object.assign(Object.assign({},u),{url:n.url,size:n.size,maxPixelHeight:e.sanitizeNumber(n.maxPixelHeight),altText:n.altText,showTooltip:n.showTooltip,horizontalAlignment:n.horizontalAlignment,selectAction:e.sanitizeAction(a,n.selectAction),onError:a(n.onError),onLoading:a(n.onLoading),caption:a(n.caption)})}}},{key:"sanitizeIcon",value:function(a,n){if(!(!n||!n.iconId)){var u=e.sanitizeBaseElement(n);if(u&&u.type===kt.Types.ElementTypes.icon)return Object.assign(Object.assign({},u),{iconId:n.iconId,size:n.size,maxPixelHeight:e.sanitizeNumber(n.maxPixelHeight),altText:n.altText,showTooltip:n.showTooltip,horizontalAlignment:n.horizontalAlignment,color:n.color,isSubtle:n.isSubtle,selectAction:e.sanitizeAction(a,n.selectAction)})}}},{key:"sanitizePadding",value:function(a){if(a){if(typeof a=="string")return a;if(Pe.isPlainObject(a))return{left:a.left,top:a.top,right:a.right,bottom:a.bottom}}}},{key:"sanitizeEdgeBorderSpec",value:function(a){if(Pe.isUndefined(a)||Pe.isBoolean(a))return a;var n={};return Pe.isBoolean(a.isSubtle)&&(n.isSubtle=a.isSubtle),Pe.isString(a.color)&&(n.color=a.color),Pe.isString(a.width)&&(n.width=a.width),n}},{key:"sanitizeIBordersSpec",value:function(a){if(Pe.isPlainObject(a)){var n={},u=kt.Types.LineStyle[a.style];u&&(n.style=u),Pe.isBoolean(a.isSubtle)&&(n.isSubtle=a.isSubtle),Pe.isString(a.color)&&(n.color=a.color),Pe.isString(a.width)&&(n.width=a.width);var l=e.sanitizeEdgeBorderSpec(a.left);return Pe.isUndefined(l)||(n.left=l),l=e.sanitizeEdgeBorderSpec(a.top),Pe.isUndefined(l)||(n.top=l),l=e.sanitizeEdgeBorderSpec(a.right),Pe.isUndefined(l)||(n.right=l),l=e.sanitizeEdgeBorderSpec(a.bottom),Pe.isUndefined(l)||(n.bottom=l),Pe.isNumber(a.radius)&&(n.radius=a.radius),n}}},{key:"sanitizeBorders",value:function(a){return Pe.isUndefined(a)||Pe.isBoolean(a)?a:e.sanitizeIBordersSpec(a)}},{key:"sanitizeBackgroundImage",value:function(a){if(a){var n={url:""};if(typeof a=="string"){var u=a;if(!u)return;n.url=u,n.mode="stretch"}else{var l=a;n.url=l.url,n.mode=l.mode,n.horizontalAlignment=l.horizontalAlignment,n.verticalAlignment=l.verticalAlignment}return n}}},{key:"sanitizeImageSet",value:function(a,n){if(!(!n||!n.images||Pe.isEmpty(n.images))){var u=e.sanitizeBaseElement(n);if(u&&u.type===kt.Types.ElementTypes.imageSet){var l=Pe.compact(Pe.map(n.images,function(d,p){return e.sanitizeImage(a,d)}));if(!Pe.isEmpty(l))return Object.assign(Object.assign({},u),{images:l,imageSize:n.imageSize})}}}},{key:"sanitizeWrapContainer",value:function(a,n){if(!(!n||!n.items||Pe.isEmpty(n.items))){var u=e.sanitizeContainerElementCommon(n);if(u&&u.type===kt.Types.ElementTypes.wrapContainer){var l=e.sanitizeElements(a,n.items);if(!Pe.isEmpty(l))return Object.assign(Object.assign({},u),{items:l,alignItems:n.alignItems,padding:e.sanitizePadding(n.padding),height:n.height})}}}},{key:"sanitizeColumnSet",value:function(a,n){if(!(!n||!n.columns||Pe.isEmpty(n.columns))){var u=e.sanitizeContainerElementCommon(n);if(u&&u.type===kt.Types.ElementTypes.columnSet){var l=Pe.compact(Pe.map(n.columns,function(d,p){return e.sanitizeColumn(a,d)}));if(!Pe.isEmpty(l))return Object.assign(Object.assign({},u),{columns:l,selectAction:e.sanitizeAction(a,n.selectAction),padding:e.sanitizePadding(n.padding),height:n.height,scrollable:n.scrollable?!0:void 0})}}}},{key:"sanitizeText",value:function(a){var n=e.sanitizeString(a);if(n){var u=YF.Utils.unescapeXml(n);if(u.length!==0)return u=u.replace(/\r/g,"\n"),u}}},{key:"sanitizeITextRun",value:function(a){if(a.text){var n=e.sanitizeTextDefinition(a.text);if(n)return{text:n,size:a.size,weight:a.weight,italic:a.italic,underLine:a.underLine,strikeThrough:a.strikeThrough,color:a.color,isSubtle:a.isSubtle,officeStyle:a.officeStyle}}}},{key:"sanitizeTextRun",value:function(a){if(a){if(Pe.isString(a))return e.sanitizeText(a);if(Pe.isPlainObject(a))return e.sanitizeITextRun(a)}}},{key:"sanitizeTextRuns",value:function(a){var n=Pe.compact(Pe.map(a,function(u){return e.sanitizeTextRun(u)}));return n.length===0?void 0:n}},{key:"sanitizeTextDefinition",value:function(a){if(a){if(Pe.isString(a))return e.sanitizeText(a);if(Pe.isArray(a))return e.sanitizeTextRuns(a)}}},{key:"sanitizeTextBlock",value:function(a){if(!(!a||!a.text)){var n=e.sanitizeBaseElement(a);if(n&&n.type===kt.Types.ElementTypes.textBlock){var u=e.sanitizeTextDefinition(a.text);if(u)return Object.assign(Object.assign({},n),{text:u,size:a.size,weight:a.weight,italic:a.italic,underLine:a.underLine,strikeThrough:a.strikeThrough,color:a.color,markdown:a.markdown,isSubtle:a.isSubtle,maxLines:a.maxLines,horizontalAlignment:a.horizontalAlignment,wrap:a.wrap,selectable:a.selectable,officeStyle:a.officeStyle})}}}},{key:"sanitizeInputText",value:function(a){if(a){var n=e.sanitizeBaseElement(a);if(n&&n.type===kt.Types.ElementTypes.inputText&&n.id){var u=a.maxLength||void 0;return Object.assign(Object.assign({},n),{isMultiline:a.isMultiline,maxLength:u,placeholder:e.sanitizeString(a.placeholder),value:e.sanitizeString(a.value)})}}}},{key:"sanitizeInputNumber",value:function(a){if(a){var n=e.sanitizeBaseElement(a);if(n&&n.type===kt.Types.ElementTypes.inputNumber&&n.id)return Object.assign(Object.assign({},n),{max:e.sanitizeNumber(a.max),min:e.sanitizeNumber(a.min),placeholder:e.sanitizeString(a.placeholder),value:e.sanitizeNumber(a.value)})}}},{key:"sanitizeInputDate",value:function(a){if(a){var n=e.sanitizeBaseElement(a);if(n&&n.type===kt.Types.ElementTypes.inputDate&&n.id)return Object.assign(Object.assign({},n),{max:e.sanitizeString(a.max),min:e.sanitizeString(a.min),placeholder:e.sanitizeString(a.placeholder),value:e.sanitizeString(a.value)})}}},{key:"sanitizeInputTime",value:function(a){if(a){var n=e.sanitizeBaseElement(a);if(n&&n.type===kt.Types.ElementTypes.inputTime&&n.id)return Object.assign(Object.assign({},n),{max:e.sanitizeString(a.max),min:e.sanitizeString(a.min),placeholder:e.sanitizeString(a.placeholder),value:e.sanitizeString(a.value)})}}},{key:"sanitizeInputToggle",value:function(a){if(a){var n=e.sanitizeBaseElement(a);if(n&&n.type===kt.Types.ElementTypes.inputToggle){var u=e.sanitizeString(a.title);if(u&&n.id)return Object.assign(Object.assign({},n),{title:u,value:e.sanitizeString(a.value),valueOff:e.sanitizeString(a.valueOff),valueOn:e.sanitizeString(a.valueOn)})}}}},{key:"sanitizeInputChoiceSet",value:function(a){if(!(!a||!a.choices||Pe.isEmpty(a.choices))){var n=e.sanitizeBaseElement(a);if(n&&n.type===kt.Types.ElementTypes.inputChoiceSet){var u=Pe.compact(Pe.map(a.choices,function(d,p){return e.sanitizeInputChoice(d)}));if(!Pe.isEmpty(u)){var l=e.sanitizeString(a.value);if(l&&n.id)return Object.assign(Object.assign({},n),{choices:u,isMultiSelect:a.isMultiSelect,value:l})}}}}},{key:"sanitizeInputChoice",value:function(a){if(a){var n=e.sanitizeString(a.title),u=e.sanitizeString(a.value);if(!(!n||!u))return{type:kt.Types.InputChoiceTypes.inputChoice,title:n,value:u}}}},{key:"sanitizeCommand",value:function(a,n){if(!(!n||!n.action||n.action.type===kt.Types.ActionTypes.actionShowCard)){var u=e.sanitizeBaseElement(n);if(u&&u.type===kt.Types.ElementTypes.command){var l=e.sanitizeAction(a,n.action);if(l)return Object.assign(Object.assign({},u),{action:l,size:n.size})}}}},{key:"_sanitizeContainerType",value:function(a,n,u){if(u){var l=e.sanitizeContainerElementCommon(u);if(l&&l.type===n)return Object.assign(Object.assign({},l),{items:e.sanitizeElements(a,u.items),selectAction:e.sanitizeAction(a,u.selectAction),backgroundImage:e.sanitizeBackgroundImage(u.backgroundImage),padding:e.sanitizePadding(u.padding),height:u.height,allowShrink:u.allowShrink,verticalContentAlignment:u.verticalContentAlignment,floatingContent:a(u.floatingContent)})}}}])}();ac.Sanitizer=XF});var sc=T(Jr=>{"use strict";f();var Ar=Cu(),Hp;Object.defineProperty(Jr,"__esModule",{value:!0});Jr.getElementHandler=Jr.registerElementHandler=Jr.makeElementSanitizer=Jr.makeElementSanitizerLookup=Jr.ContainerLayoutDirection=void 0;var kb=Ut(),kr=Zt(),Eb=t_(),QF=a_(),eV=c_(),tV=g_(),rV=Z_(),nV=Q_(),Ob=uo(),iV=Vp(),aV=Up(),oV=Bp(),uV=fb(),sV=Cb(),lV=_b(),Vr=oc(),uc;(function(e){e[e.Down=0]="Down",e[e.Across=1]="Across"})(uc=Jr.ContainerLayoutDirection||(Jr.ContainerLayoutDirection={}));function cV(e){return function(r){var a=e(r);return a?a.fnSanitize:void 0}}Jr.makeElementSanitizerLookup=cV;function fV(e){var r=function(n){var u=e(n);return u?u(r,n):void 0};return r}Jr.makeElementSanitizer=fV;var Pb=(Hp={},Ar(Ar(Ar(Ar(Ar(Ar(Ar(Ar(Ar(Ar(Hp,kr.Types.ElementTypes.container,{default:{fnRenderElement:Eb.renderContainerElement,isPaddedContainer:!0,fnSanitize:Vr.Sanitizer.sanitizeContainer,fnSetInitialInputValues:function(r,a,n){return n(r.items)}}}),kr.Types.ElementTypes.list,{default:{fnRenderElement:Eb.renderListElement,isPaddedContainer:!0,fnSanitize:Vr.Sanitizer.sanitizeList,fnSetInitialInputValues:function(r,a,n){return n(r.items)}}}),kr.Types.ElementTypes.wrapContainer,{default:{fnRenderElement:QF.renderWrapContainerElement,isPaddedContainer:!0,containerLayoutDirection:uc.Across,fnSanitize:Vr.Sanitizer.sanitizeWrapContainer,fnSetInitialInputValues:function(r,a,n){return n(r.items)}}}),kr.Types.ElementTypes.overlay,{default:{fnRenderElement:uV.renderOverlayElement,isPaddedContainer:!0,fnSanitize:Vr.Sanitizer.sanitizeOverlay}}),kr.Types.ElementTypes.imageSet,{default:{fnRenderElement:nV.renderImageSetElement,containerLayoutDirection:uc.Across,fnSanitize:Vr.Sanitizer.sanitizeImageSet}}),kr.Types.ElementTypes.columnSet,{default:{fnRenderElement:eV.renderColumnSetElement,isPaddedContainer:!0,containerLayoutDirection:uc.Across,fnSanitize:Vr.Sanitizer.sanitizeColumnSet,fnSetInitialInputValues:function(r,a,n){return n(r.columns)}}}),kr.Types.ElementTypes.column,{default:{fnRenderElement:tV.renderColumnElement,isPaddedContainer:!0,fnSanitize:Vr.Sanitizer.sanitizeColumn,fnSetInitialInputValues:function(r,a,n){return n(r.items)}}}),kr.Types.ElementTypes.factSet,{default:{fnRenderElement:rV.renderFactSetElement,fnSanitize:function(r,a){return Vr.Sanitizer.sanitizeFactSet(a)}}}),kr.Types.ElementTypes.image,{default:{fnRenderElement:Ob.renderImageElement,fnSanitize:Vr.Sanitizer.sanitizeImage}}),kr.Types.ElementTypes.icon,{default:{fnRenderElement:Ob.renderIconElement,fnSanitize:Vr.Sanitizer.sanitizeIcon}}),Ar(Ar(Ar(Ar(Ar(Hp,kr.Types.ElementTypes.textBlock,{default:{fnRenderElement:oV.renderTextBlockElement,fnSanitize:function(r,a){return Vr.Sanitizer.sanitizeTextBlock(a)}}}),kr.Types.ElementTypes.inputText,{default:{fnRenderElement:aV.renderInputTextElement,fnSanitize:function(r,a){return Vr.Sanitizer.sanitizeInputText(a)},fnSetInitialInputValues:function(r,a){kb.isUndefined(r.value)||a(r.value)}}}),kr.Types.ElementTypes.inputNumber,{default:{fnRenderElement:iV.renderInputNumberElement,fnSanitize:function(r,a){return Vr.Sanitizer.sanitizeInputNumber(a)},fnSetInitialInputValues:function(r,a){kb.isUndefined(r.value)||a(r.value)}}}),kr.Types.ElementTypes.command,{default:{fnRenderElement:sV.renderCommandElement,fnSanitize:Vr.Sanitizer.sanitizeCommand}}),kr.Types.ElementTypes.throbber,{default:{fnRenderElement:lV.renderThrobber,fnSanitize:function(r,a){return a}}}));function dV(e,r){Pb[e]={default:r}}Jr.registerElementHandler=dV;function pV(e){var r=e?Pb[e.type]:void 0;if(r){if(r.styleTable&&e.style){var a=r.styleTable[e.style];if(a)return Object.assign(Object.assign({},r.default),{fnRenderElement:a})}return r.default}}Jr.getElementHandler=pV});var Ib=T((f7,Wu)=>{f();function gV(e){if(Array.isArray(e))return e}Wu.exports=gV,Wu.exports.__esModule=!0,Wu.exports.default=Wu.exports});var Rb=T((p7,ju)=>{f();function hV(e,r){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,u,l,d,p=[],v=!0,w=!1;try{if(l=(a=a.call(e)).next,r===0){if(Object(a)!==a)return;v=!1}else for(;!(v=(n=l.call(a)).done)&&(p.push(n.value),p.length!==r);v=!0);}catch(k){w=!0,u=k}finally{try{if(!v&&a.return!=null&&(d=a.return(),Object(d)!==d))return}finally{if(w)throw u}}return p}}ju.exports=hV,ju.exports.__esModule=!0,ju.exports.default=ju.exports});var qb=T((h7,Hu)=>{f();function mV(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Hu.exports=mV,Hu.exports.__esModule=!0,Hu.exports.default=Hu.exports});var xa=T((v7,Gu)=>{f();var vV=Ib(),yV=Rb(),CV=Qd(),_V=qb();function bV(e,r){return vV(e)||yV(e,r)||CV(e,r)||_V()}Gu.exports=bV,Gu.exports.__esModule=!0,Gu.exports.default=Gu.exports});var Gp=T(dn=>{"use strict";f();var SV=xa(),xV=Ue(),wV=We();Object.defineProperty(dn,"__esModule",{value:!0});dn.VisibleElementRenderer=dn.ElementVisibilityContext=dn.ElementVisibilityManager=dn.ElementVisibility=void 0;var lc=Ut(),cc=ye(),Ht;(function(e){e[e.Default=0]="Default",e[e.Inverted=1]="Inverted",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Ht=dn.ElementVisibility||(dn.ElementVisibility={}));var Db=function(){function e(){xV(this,e),this.elementVisibility={},this.subscriptions={}}return wV(e,[{key:"isElementVisible",value:function(a){var n=a.isVisible!==!1;if(a.id)switch(this.elementVisibility[a.id]||Ht.Default){case Ht.Default:break;case Ht.Inverted:n=!n;break;case Ht.Hidden:n=!1;break;case Ht.Visible:n=!0;break}return n}},{key:"onToggleVisibility",value:function(a){var n=this,u=[];lc.forEach(a.targetElements,function(l){var d,p=Ht.Inverted;lc.isString(l)?d=l:(d=l.elementId,lc.isBoolean(l.isVisible)&&(p=l.isVisible?Ht.Visible:Ht.Hidden));var v;switch(p){case Ht.Visible:v=Ht.Visible;break;case Ht.Hidden:v=Ht.Hidden;break;default:switch(n.elementVisibility[d]||Ht.Default){case Ht.Default:v=Ht.Inverted;break;case Ht.Inverted:v=Ht.Default;break;case Ht.Visible:v=Ht.Hidden;break;case Ht.Hidden:v=Ht.Visible;break}}n.elementVisibility[d]=v,u.push(d)}),lc.forEach(u,function(l){var d,p;return(p=(d=n.subscriptions)[l])===null||p===void 0?void 0:p.call(d)})}},{key:"subscribeOnVisibilityChange",value:function(a,n){this.subscriptions[a]&&console.log("Multiple subscriptions to element with ID, ".concat(a,". Potential duplicated Element ID in card definition.")),this.subscriptions[a]=n}},{key:"unsubscribe",value:function(a){delete this.subscriptions[a]}}])}();dn.ElementVisibilityManager=Db;dn.ElementVisibilityContext=cc.createContext(new Db);var TV=function(r){var a=r.element,n=r.fnRenderElement,u=cc.useContext(dn.ElementVisibilityContext),l=cc.useState(0),d=SV(l,2),p=d[1];return cc.useEffect(function(){return u.subscribeOnVisibilityChange(a.id,function(){return p(function(v){return++v})}),function(){return u.unsubscribe(a.id)}},[u,a]),u.isElementVisible(a)?n():null};dn.VisibleElementRenderer=TV});var ya=T(ho=>{"use strict";f();var AV=Ue(),kV=We();Object.defineProperty(ho,"__esModule",{value:!0});ho.CardRenderer=ho.getReactKey=void 0;var Lb=Ut(),EV=ye(),OV=Zt(),wa=ao(),fc=sc(),Kp=Pu(),PV=Gp();function Mb(e){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n0){var z=this._getSpacingValue(n.spacing,wa.Spacing.default);z!==0&&(a===fc.ContainerLayoutDirection.Down?k.top=z:(0,Kp.swapLeftAndRight)(this._cardContext)?k.right=z:k.left=z)}return{padding:p,spacing:k,separator:n.separator&&l>0}}},{key:"_renderElement",value:function(a,n,u,l){var d=this;if(!n)return null;var p=this._fnElementHandlerLookup(n);if(!p)return null;var v=!!p.isPaddedContainer,w=p.containerLayoutDirection||fc.ContainerLayoutDirection.Down,k=Mb(n.type,n.id||u),z=this._getElementSpacing(a,n,v,u,l),W=n.id?this._fnGetCurrentInputValue(n.id):void 0,M=function(){return p.fnRenderElement(n,k,z,W,d._cardContext,function(A,G,oe){return d._renderElement(w,A,G,oe)})};return n.id?EV.createElement(PV.VisibleElementRenderer,{key:"vr-"+k,element:n,fnRenderElement:M}):n.isVisible!==!1?M():null}}])}();ho.CardRenderer=IV});var zb=T((x7,Bb)=>{f();Bb.exports=OfficePlatformGlobal.Ply.CommandButton});var Nb=T(Zp=>{"use strict";f();var RV=Ue(),qV=We(),DV=vt(),Fb=ht(),LV=yt();function MV(e,r,a){return r=Fb(r),DV(e,$b()?Reflect.construct(r,a||[],Fb(e).constructor):r.apply(e,a))}function $b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return($b=function(){return!!e})()}Object.defineProperty(Zp,"__esModule",{value:!0});var Vb=ye(),BV=zb(),zV=zn(),FV={buttonBase:zV.StyleSheet.createViewStyle({flex:1,flexDirection:"row",alignItems:"center"})},VV=function(e){function r(){var a;return RV(this,r),a=MV(this,r,arguments),a._onClick=function(n){a.props.onExecuteAction&&a.props.onExecuteAction(a.props.action)},a}return LV(r,e),qV(r,[{key:"render",value:function(){return Vb.createElement(BV.CommandButton,{style:FV.buttonBase,text:this.props.action.title,onClick:this._onClick})}}])}(Vb.Component);Zp.default=VV});var Gb=T(Zu=>{"use strict";f();var $V=Pi(),NV=Ue(),UV=We(),WV=vt(),Ub=ht(),jV=yt();function HV(e,r,a){return r=Ub(r),WV(e,Hb()?Reflect.construct(r,a||[],Ub(e).constructor):r.apply(e,a))}function Hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Hb=function(){return!!e})()}var GV=Zu&&Zu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zu,"__esModule",{value:!0});var Wb=Ut(),Ta=ye(),dc=Fr(),KV=zn(),jb=Zt(),ZV=GV(Nb()),Ku=ao(),JV=ya(),YV=ic(),XV=io(),QV={containerStyle:KV.StyleSheet.createViewStyle({flex:1,flexDirection:"column"})},e$=function(e){function r(a){var n;return NV(this,r),n=HV(this,r,[a]),n._onExecuteAction=function(u){if(u.type===jb.Types.ActionTypes.actionShowCard){var l=u.card,d=n.state.actionCard===l?void 0:l;d&&n.props.initializeInputs(d),n.setState({actionCard:d})}n.props.onExecuteAction&&n.props.onExecuteAction(u)},n.state={prevActions:a.actions,actionCard:void 0},n}return jV(r,e),UV(r,[{key:"render",value:function(){var n=this,u=this.props.hostConfig.actions.actionsOrientation===Ku.Orientation.Horizontal,l=this.props.hostConfig.actions.actionAlignment===Ku.ActionAlignment.Stretch,d=Math.min(this.props.actions.length,this.props.hostConfig.actions.maxActions),p=Wb.compact(Wb.map(this.props.actions,function(W,M){return W&&M0?this.props.hostConfig.actions.buttonSpacing:void 0,w={flex:p?1:void 0,flexBasis:p&&d?0:void 0,marginLeft:d?v:void 0,marginTop:d?void 0:v},k=n.type===jb.Types.ActionTypes.actionShowCard&&n.card===this.state.actionCard;return Ta.createElement(dc.View,{key:(0,JV.getReactKey)("action",u),style:w},Ta.createElement(ZV.default,{action:n,hostConfig:this.props.hostConfig,spacing:XV.EmptySpacing,placement:YV.Utils.getItemPlacement(u,l),isExpanded:k,onExecuteAction:this._onExecuteAction}))}}],[{key:"getDerivedStateFromProps",value:function(n,u){return n.actions!==u.prevActions?{prevActions:n.actions,actionCard:void 0}:null}}])}(Ta.Component);Zu.default=e$});var Kb=T(pc=>{"use strict";f();Object.defineProperty(pc,"__esModule",{value:!0});pc.sanitizeColor=void 0;function t$(e){return e}pc.sanitizeColor=t$});var Jp=T(ji=>{"use strict";f();Object.defineProperty(ji,"__esModule",{value:!0});ji.platformColorToAdaptiveCardColorValue=ji.isSemanticColor=ji.semanticColor=void 0;function r$(e){return{semantic:e}}ji.semanticColor=r$;function Zb(e){return typeof e=="object"&&"semantic"in e}ji.isSemanticColor=Zb;function n$(e){return Zb(e)?e:":"+e}ji.platformColorToAdaptiveCardColorValue=n$});var ug=T(Ie=>{"use strict";f();var i$=vt(),Jb=ht(),mr=yt(),ir=Ue(),ar=We();function vr(e,r,a){return r=Jb(r),i$(e,Yb()?Reflect.construct(r,a||[],Jb(e).constructor):r.apply(e,a))}function Yb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Yb=function(){return!!e})()}var a$=Ie&&Ie.__createBinding||(Object.create?function(e,r,a,n){n===void 0&&(n=a);var u=Object.getOwnPropertyDescriptor(r,a);(!u||("get"in u?!r.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return r[a]}}),Object.defineProperty(e,n,u)}:function(e,r,a,n){n===void 0&&(n=a),e[n]=r[a]}),o$=Ie&&Ie.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),u$=Ie&&Ie.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a in e)a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)&&a$(r,e,a);return o$(r,e),r};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.HostConfig=Ie.ContainerStyleSet=Ie.ActionsConfig=Ie.ShowCardActionConfig=Ie.FactSetConfig=Ie.FactTitleDefinition=Ie.FactTextDefinition=Ie.ImageSetConfig=Ie.ImageConfig=Ie.ChoiceSetConfig=Ie.AdaptiveCardConfig=Ie.ContainerStyleDefinition=Ie.TextColorDefinition=Ie.HyperlinkStyleDefinition=Ie.missingColor=Ie.PaddingDefinition=Ie.SpacingDefinition=Ie.HostConfigBase=void 0;var mo=Ut(),xe=u$(ao()),s$=ic(),pn=Kb(),Yp=Jp(),Aa={default:"default",emphasis:"emphasis"},yr=function(){function e(){ir(this,e)}return ar(e,[{key:"getEnumValueOrDefault",value:function(a,n,u){if(this._isNullOrEmpty(n))return u;for(var l of Object.keys(a)){var d=parseInt(l,10);if(!isNaN(d)&&d>=0){var p=a[d];if(p&&typeof p=="string"&&n&&p.toLowerCase()===n.toLowerCase())return d}}return u}},{key:"getValueOrDefault",value:function(a,n){return a||n}},{key:"parseConfigEnum",value:function(a,n,u){return typeof n=="string"?this.getEnumValueOrDefault(a,n,u):typeof n=="number"?this.getValueOrDefault(n,u):u}},{key:"_isNullOrEmpty",value:function(a){return a===void 0||a===void 0||a===""}}])}();Ie.HostConfigBase=yr;var l$=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.left=0,n.top=0,n.right=0,n.bottom=0,a&&(n.top=a.top||n.top,n.right=a.right||n.right,n.bottom=a.bottom||n.bottom,n.left=a.left||n.left),n}return mr(r,e),ar(r)}(yr);Ie.SpacingDefinition=l$;var c$=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.top=xe.Padding.None,n.right=xe.Padding.None,n.bottom=xe.Padding.None,n.left=xe.Padding.None,a&&(n.top=n.parseConfigEnum(xe.Padding,a.top,xe.Padding.None),n.right=n.parseConfigEnum(xe.Padding,a.right,xe.Padding.None),n.bottom=n.parseConfigEnum(xe.Padding,a.bottom,xe.Padding.None),n.left=n.parseConfigEnum(xe.Padding,a.left,xe.Padding.None)),n}return mr(r,e),ar(r,[{key:"toJSON",value:function(){return{top:xe.Padding[this.top],right:xe.Padding[this.right],bottom:xe.Padding[this.bottom],left:xe.Padding[this.left]}}}])}(yr);Ie.PaddingDefinition=c$;Ie.missingColor="magenta";var Ju=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.color="#015A9D",n.underline=!1,a&&(n.color=(0,pn.sanitizeColor)(a.color)||n.color,n.underline=a.underline||n.underline),n}return mr(r,e),ar(r)}(yr);Ie.HyperlinkStyleDefinition=Ju;Ju.BadStyle=new Ju({color:Ie.missingColor,underline:!0});var Yr=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.default=Ie.missingColor,n.subtle=Ie.missingColor,a&&(typeof a=="string"||(0,Yp.isSemanticColor)(a)?n.default=n.subtle=(0,pn.sanitizeColor)(a):(n.default=(0,pn.sanitizeColor)(a.default)||Ie.missingColor,n.subtle=(0,pn.sanitizeColor)(a.subtle)||n.default)),n}return mr(r,e),ar(r)}(yr);Ie.TextColorDefinition=Yr;Yr.Missing=new Yr;var gc=function(){function e(){ir(this,e)}return ar(e,[{key:"hoverBackgroundColor",get:function(){return Ie.missingColor}},{key:"focusOutlineColor",get:function(){return Ie.missingColor}},{key:"hyperlinkStyle",get:function(){return Ju.BadStyle}},{key:"getStyleForegroundColor",value:function(a){return Yr.Missing}},{key:"getStyleBackgroundColor",value:function(a){return Ie.missingColor}}])}();gc.Instance=new gc;var vo=function(){function e(){ir(this,e)}return ar(e,[{key:"getStyleForegroundColor",value:function(a){return e._foregroundColors[a]||Yr.Missing}},{key:"getStyleBackgroundColor",value:function(a){return e._backgroundColors[a]||Ie.missingColor}}])}();vo.Instance=new vo;vo._foregroundColors={default:new Yr({default:"#2B2C33",subtle:"#8A8D91"}),dark:new Yr({default:"#000000",subtle:"rgba(0,0,0,0.4)"}),light:new Yr({default:"#FFFFFF",subtle:"rgba(0,0,0,0.2)"}),accent:new Yr({default:"#1686D9",subtle:"rgba(22, 134, 217, 0.5)"}),good:new Yr({default:"#4CAF50",subtle:"rgba(76, 175, 80, 0.8)"}),warning:new Yr({default:"#F0C01E",subtle:"rgba(240, 192, 30, 0.8)"}),attention:new Yr({default:"#F44336",subtle:"rgba(244, 67, 54, 0.8)"})};vo._backgroundColors={default:"#FFFFFF",dark:"#000000",light:"#FFFFFF"};var hc=function(e){function r(a,n){var u;if(ir(this,r),u=vr(this,r),u._hoverBackgroundColor=void 0,u._focusOutlineColor=void 0,u._hyperlinkStyle=void 0,u._foregroundColors={},u._backgroundColors={},u._activatedStyle=void 0,u._parentStyle=n||vo.Instance,a){u._hoverBackgroundColor=(0,pn.sanitizeColor)(u.getNullableValue(a,"hoverBackgroundColor",function(p){return p})),u._focusOutlineColor=(0,pn.sanitizeColor)(u.getNullableValue(a,"focusOutlineColor",function(p){return p})),u._activatedStyle=u.getNullableValue(a,"activatedStyle",function(p){return p});var l=a.foregroundColors;if(l&&Object.keys(l).forEach(function(p){return u._foregroundColors[p]=new Yr(l[p])}),a.backgroundColor)u._backgroundColors={default:(0,pn.sanitizeColor)(a.backgroundColor)};else{var d=a.backgroundColors;d&&Object.keys(d).forEach(function(p){return u._backgroundColors[p]=(0,pn.sanitizeColor)(d[p])})}u._hyperlinkStyle=u.getNullableValue(a,"hyperlinkStyle",function(p){return new Ju(p)})}return u}return mr(r,e),ar(r,[{key:"hoverBackgroundColor",get:function(){if(this._hoverBackgroundColor!==null)return this._hoverBackgroundColor||this._parentStyle.hoverBackgroundColor}},{key:"focusOutlineColor",get:function(){if(this._focusOutlineColor!==null)return this._focusOutlineColor||this._parentStyle.focusOutlineColor}},{key:"activatedStyle",get:function(){if(this._activatedStyle!==null)return this._activatedStyle||this._parentStyle.activatedStyle}},{key:"hyperlinkStyle",get:function(){if(this._hyperlinkStyle!==null)return this._hyperlinkStyle||this._parentStyle.hyperlinkStyle}},{key:"getStyleForegroundColor",value:function(n){return this._foregroundColors[n]||this._parentStyle.getStyleForegroundColor(n)}},{key:"getStyleBackgroundColor",value:function(n){return this._backgroundColors[n]||this._parentStyle.getStyleBackgroundColor(n)}},{key:"getBackgroundColor",value:function(n){if(!n)n="default";else{if((0,Yp.isSemanticColor)(n))return n;if(n.substring(0,1)==="#")return(0,pn.sanitizeColor)(n);if(n.substring(0,1)===":")return(0,pn.sanitizeColor)(n.substring(1,n.length))}return this.getStyleBackgroundColor(n)}},{key:"getForegroundColor",value:function(n,u){if(!n)n="default";else{if((0,Yp.isSemanticColor)(n))return n;if(n.substring(0,1)==="#")return(0,pn.sanitizeColor)(n);if(n.substring(0,1)===":")return(0,pn.sanitizeColor)(n.substring(1,n.length))}var l=this.getStyleForegroundColor(n);return u?l.subtle:l.default}},{key:"getNullableValue",value:function(n,u,l){if(u in n){var d=n[u];return d?l(d):null}}}])}(yr);Ie.ContainerStyleDefinition=hc;var Xp=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.allowCustomStyle=!1,a&&(n.allowCustomStyle=a.allowCustomStyle||n.allowCustomStyle),n}return mr(r,e),ar(r)}(yr);Ie.AdaptiveCardConfig=Xp;var Qp=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.separation={spacing:0,lineThickness:0,lineColor:"#EEEEEE"},a&&a.separation&&(n.separation.spacing=a.separation.spacing!==void 0?a.separation.spacing:n.separation.spacing,n.separation.lineThickness=a.separation.lineThickness!==void 0?a.separation.lineThickness:n.separation.lineThickness,n.separation.lineColor=a.separation.lineColor||n.separation.lineColor),n}return mr(r,e),ar(r)}(yr);Ie.ChoiceSetConfig=Qp;var eg=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.size=xe.ImageSize.Medium,a&&(n.size=a.size!==void 0?a.size:n.size),n}return mr(r,e),ar(r,[{key:"toJSON",value:function(){return{size:xe.ImageSize[this.size]}}}])}(yr);Ie.ImageConfig=eg;var tg=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.imageSize=xe.ImageSize.Medium,n.maxImageHeight=100,a&&(n.imageSize=a.imageSize!==void 0?a.imageSize:n.imageSize,n.maxImageHeight=n.getValueOrDefault("maxImageHeight",100)),n}return mr(r,e),ar(r,[{key:"toJSON",value:function(){return{imageSize:xe.ImageSize[this.imageSize],maxImageHeight:this.maxImageHeight}}}])}(yr);Ie.ImageSetConfig=tg;var mc=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.size=xe.TextSize.default,n.color=xe.TextColor.default,n.isSubtle=!1,n.weight=xe.TextWeight.default,n.wrap=!0,a&&(n.size=n.parseConfigEnum(xe.TextSize,a.size,xe.TextSize.default),n.color=n.parseConfigEnum(xe.TextColor,a.color,xe.TextColor.default),n.isSubtle=a.isSubtle||n.isSubtle,n.weight=n.parseConfigEnum(xe.TextWeight,a.weight,xe.TextWeight.default),n.wrap=a.wrap!==void 0?a.wrap:n.wrap),n}return mr(r,e),ar(r,[{key:"toJSON",value:function(){return{size:xe.TextSize[this.size],color:xe.TextColor[this.color],isSubtle:this.isSubtle,weight:xe.TextWeight[this.weight],wrap:this.wrap}}}])}(yr);Ie.FactTextDefinition=mc;var rg=function(e){function r(a){var n;return ir(this,r),n=vr(this,r,[a]),n.maxWidth=150,n.weight=xe.TextWeight.bolder,a&&(n.maxWidth=a.maxWidth!==void 0?a.maxWidth:n.maxWidth),n}return mr(r,e),ar(r)}(mc);Ie.FactTitleDefinition=rg;var ng=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.title=new rg,n.value=new mc,n.spacing=10,n.separation={spacing:0,lineThickness:0,lineColor:"#EEEEEE"},a&&(n.title=new rg(a.title),n.value=new mc(a.value),n.spacing=a.spacing!==void 0?a.spacing:n.spacing,a.separation&&(n.separation.spacing=a.separation.spacing!==void 0?a.separation.spacing:n.separation.spacing,n.separation.lineThickness=a.separation.lineThickness!==void 0?a.separation.lineThickness:n.separation.lineThickness,n.separation.lineColor=a.separation.lineColor||n.separation.lineColor)),n}return mr(r,e),ar(r)}(yr);Ie.FactSetConfig=ng;var ig=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.actionMode=xe.ShowCardActionMode.Inline,n.inlineTopMargin=16,n.style=xe.ContainerStyle.Emphasis,a&&(n.actionMode=n.parseConfigEnum(xe.ShowCardActionMode,a.actionMode,xe.ShowCardActionMode.Inline),n.inlineTopMargin=a.inlineTopMargin!==void 0?a.inlineTopMargin:n.inlineTopMargin,n.style=n.parseConfigEnum(xe.ContainerStyle,a.style,xe.ContainerStyle.Emphasis)),n}return mr(r,e),ar(r,[{key:"toJSON",value:function(){return{actionMode:xe.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style?xe.ContainerStyle[this.style]:xe.ContainerStyle.Default}}}])}(yr);Ie.ShowCardActionConfig=ig;var ag=function(e){function r(a){var n;return ir(this,r),n=vr(this,r),n.maxActions=5,n.spacing=xe.Spacing.default,n.buttonSpacing=10,n.showCard=new ig,n.preExpandSingleShowCardAction=!1,n.actionsOrientation=xe.Orientation.Horizontal,n.actionAlignment=xe.ActionAlignment.Left,a&&(n.maxActions=a.maxActions!==void 0?Math.max(a.maxActions,1):n.maxActions,n.spacing=n.parseConfigEnum(xe.Spacing,a.spacing,xe.Spacing.default),n.buttonSpacing=a.buttonSpacing!==void 0?a.buttonSpacing:n.buttonSpacing,n.showCard=new ig(a.showCard),n.preExpandSingleShowCardAction=n.getValueOrDefault(a.preExpandSingleShowCardAction,!1),n.actionsOrientation=n.parseConfigEnum(xe.Orientation,a.actionsOrientation,xe.Orientation.Horizontal),n.actionAlignment=n.parseConfigEnum(xe.ActionAlignment,a.actionAlignment,xe.ActionAlignment.Left)),n}return mr(r,e),ar(r,[{key:"toJSON",value:function(){return{maxActions:this.maxActions,spacing:xe.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:xe.Orientation[this.actionsOrientation],actionAlignment:xe.ActionAlignment[this.actionAlignment]}}}])}(yr);Ie.ActionsConfig=ag;function Xb(e,r){var a=e.styleTable[r];if(a)return a;if(e.loading[r])return gc.Instance;var n=e.styleDefinitions[r];if(!n)return gc.Instance;e.loading[r]=!0;var u=vo.Instance;if(r!==Aa.default&&n.basedOn!==null){var l=n.basedOn||Aa.default;u=Xb(e,l)}return a=new hc(n,u),e.styleTable[r]=a,a}var og=function(e){function r(a){var n;ir(this,r),n=vr(this,r),n._styles={};var u=mo.isPlainObject(a);if((!u||!a[Aa.default])&&(n._styles[Aa.default]=new hc),(!u||!a[Aa.emphasis])&&(n._styles[Aa.emphasis]=new hc({backgroundColor:"#00000080"})),u){var l={styleDefinitions:a,styleTable:n._styles,loading:{}};mo.forOwn(a,function(d,p){Xb(l,p)})}return n.default=n._styles[Aa.default],n}return mr(r,e),ar(r,[{key:"getStyle",value:function(n){return this._styles[n||"default"]||this.default}}])}(yr);Ie.ContainerStyleSet=og;var f$=function(e){function r(a){var n;if(ir(this,r),n=vr(this,r),n.supportsInteractivity=!0,n.markdown=!0,n.fontFamily="SF Regular",n.fontSizes={small:11,default:12,medium:14,large:16,extraLarge:24,huge:26},n.fontWeights={lighter:200,default:400,bolder:600,bold:"bold"},n.imageSizes={small:40,medium:80,large:160},n.spacing={none:0,extraSmall:3,small:3,default:8,medium:20,large:30,extraLarge:40,padding:20},n.separator={lineThickness:1,lineColor:"#EEEEEE"},n.actions=new ag,n.adaptiveCard=new Xp,n.choiceSet=new Qp,n.image=new eg,n.imageSet=new tg,n.factSet=new ng,n._lineThicknesses={default:1,thinner:.5,thicker:2},!a)n.containerStyles=new og;else{a.useCSSColors||(a=r._translateConfigColors(a)),n.supportsInteractivity=a.supportsInteractivity||n.supportsInteractivity,"markdown"in a&&(n.markdown=!!a.markdown),n.fontFamily=a.fontFamily||n.fontFamily,a.fontSizes&&(n.fontSizes=Object.assign(Object.assign({},n.fontSizes),a.fontSizes)),a.fontWeights&&(n.fontWeights={lighter:a.fontWeights.lighter||n.fontWeights.lighter,default:a.fontWeights.default||n.fontWeights.default,bolder:a.fontWeights.bolder||n.fontWeights.bolder,bold:n.fontWeights.bold}),a.imageSizes&&(n.imageSizes={small:a.imageSizes.small||n.imageSizes.small,medium:a.imageSizes.medium||n.imageSizes.medium,large:a.imageSizes.large||n.imageSizes.large}),n.containerStyles=new og(a.containerStyles),a.spacing&&(n.spacing=Object.assign(Object.assign({},n.spacing),a.spacing)),a.separator&&(n.separator={lineThickness:a.separator.lineThickness||n.separator.lineThickness,lineColor:a.separator.lineColor||n.separator.lineColor});{var u=a.lineThicknesses;if(u){var l=n._lineThicknesses;l.default=u.default||l.default,l.thinner=u.thinner||l.thinner,l.thicker=u.thicker||l.thicker}}n.actions=new ag(a.actions),n.adaptiveCard=new Xp(a.adaptiveCard),n.choiceSet=new Qp(a.choiceSet),n.image=new eg(a.image),n.imageSet=new tg(a.imageSet),n.factSet=new ng(a.factSet)}return n}return mr(r,e),ar(r,[{key:"getLineThickness",value:function(n){return n?n.substring(n.length-2)==="px"?parseFloat(n):this._lineThicknesses[n]||this._lineThicknesses.default:this._lineThicknesses.default}},{key:"getEffectiveSpacing",value:function(n){switch(n){case xe.Spacing.extraSmall:return this.spacing.extraSmall;case xe.Spacing.small:return this.spacing.small;case xe.Spacing.default:return this.spacing.default;case xe.Spacing.medium:return this.spacing.medium;case xe.Spacing.large:return this.spacing.large;case xe.Spacing.extraLarge:return this.spacing.extraLarge;case xe.Spacing.padding:return this.spacing.padding;default:return 0}}}],[{key:"parse",value:function(n){var u=JSON.parse(n);return new r(u)}},{key:"_translateConfigColors",value:function(n){return mo.isString(n)?s$.Utils.legacyAdaptiveCardColorToCssColor(n):mo.isArray(n)?n.map(r._translateConfigColors):mo.isPlainObject(n)?mo.mapValues(n,r._translateConfigColors):n}}])}(yr);Ie.HostConfig=f$});var sg=T(di=>{"use strict";f();var d$=xa(),p$=Ue(),g$=We();Object.defineProperty(di,"__esModule",{value:!0});di.InputStateTracker=di.CardInputStateContext=di.InputStateManager=void 0;var vc=ye(),Qb=function(){function e(r,a){p$(this,e),this.subscriptions={},this.inputState=r,this.onFullRefresh=a}return g$(e,[{key:"getOnFullRefreshCallback",value:function(){return this.onFullRefresh}},{key:"getCurrentState",value:function(){return this.inputState}},{key:"loadState",value:function(a){this.inputState=a}},{key:"getInputState",value:function(a){return this.inputState[a]}},{key:"onUpdateInputState",value:function(a,n){if(this.inputState[a]!==n){this.inputState[a]=n;var u=this.subscriptions[a];u?u():this.onFullRefresh()}}},{key:"subscribeOnInputStateChanged",value:function(a,n){this.subscriptions[a]&&console.log("Multiple subscriptions to element with ID, ".concat(a,". Potential duplicated Element ID in card definition.")),this.subscriptions[a]=n}},{key:"unsubscribe",value:function(a){delete this.subscriptions[a]}}])}();di.InputStateManager=Qb;di.CardInputStateContext=vc.createContext(new Qb({},function(){}));var h$=function(r){var a=r.inputElementId,n=r.children,u=vc.useContext(di.CardInputStateContext),l=vc.useState(0),d=d$(l,2),p=d[1];return vc.useEffect(function(){return u.subscribeOnInputStateChanged(a,function(){return p(function(v){return++v})}),function(){return u.unsubscribe(a)}},[u,a]),n(u.getInputState(a),function(v){return u.onUpdateInputState(a,v)})};di.InputStateTracker=h$});var f0=T(ka=>{"use strict";f();var m$=Ue(),v$=We(),y$=vt(),e0=ht(),C$=yt();function _$(e,r,a){return r=e0(r),y$(e,s0()?Reflect.construct(r,a||[],e0(e).constructor):r.apply(e,a))}function s0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(s0=function(){return!!e})()}var l0=ka&&ka.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ka,"__esModule",{value:!0});ka.AdaptiveCardView=void 0;var En=Ut(),Hi=ye(),t0=Fr(),r0=zn(),yo=Zt(),n0=io(),i0=ya(),b$=Tn(),S$=l0(Gb()),x$=ug(),w$=l0(uo()),a0=Vl(),o0=oc(),Co=sc(),lg=Gp(),cg=sg(),u0={cardStyle:r0.StyleSheet.createViewStyle({flexGrow:1,flexShrink:1}),elementsContainer:r0.StyleSheet.createViewStyle({flexGrow:1,flexShrink:1})},c0=function(e){function r(a){var n;m$(this,r),n=_$(this,r,[a]),n._onFullRefresh=function(){return n.forceUpdate()},n._getIcon=function(p){return n.props.lookupIcon?n.props.lookupIcon(p):(0,a0.getRegisteredIcon)(p)||(0,a0.getRegisteredIcon)("missing")},n._renderCard=function(p){var v={hostConfig:n.state.hostConfig,isRTL:!!n.props.rtl,markdown:p.markdown,proxyImageUrl:n.props.eventEmitter?n.props.eventEmitter.proxyImageUrl:void 0,getIcon:n._getIcon,onInputValueChanged:n._onInputValueChanged,initializeInputs:n._initializeNestedCardInputs,onExecuteAction:n._onExecuteAction,renderCard:n._renderCard},w=new i0.CardRenderer(v,n.state.fnElementHandlerLookup,n._getCurrentInputValue),k=w.getCardSpacing(p),z={paddingTop:k.padding.top,paddingLeft:k.padding.left,paddingRight:k.padding.right,paddingBottom:k.padding.bottom},W=!En.isEmpty(p.body),M=!En.isEmpty(p.actions),P=W?n._renderBody(p.body,w.renderElement):null,A=M?n._renderActions(p.actions):null;return Hi.createElement(b$.ContainerBackground,{key:(0,i0.getReactKey)("card",W?p.body.length:0,M?p.actions.length:0),hostConfig:n.state.hostConfig,containerStyle:p.style,dir:n.props.rtl?"rtl":n.props.rtl===!1?"ltr":void 0},p.backgroundImage&&Hi.createElement(w$.default,{source:{url:p.backgroundImage.url},mode:p.backgroundImage.mode,horizontalAlignment:p.backgroundImage.horizontalAlignment,size:yo.Types.ImageSizes.stretch,isBackground:!0,eventEmitter:n.props.eventEmitter,hostConfig:n.state.hostConfig,spacing:n0.EmptySpacing}),Hi.createElement(t0.View,{key:"cardContent",style:[u0.cardStyle,z]},P,A))},n._getCurrentInputValue=function(p){return n.state.inputStateManager.getInputState(p)},n._onInputValueChanged=function(p,v){return n.state.inputStateManager.onUpdateInputState(p,v)},n._onExecuteAction=function(p){if(p.type===yo.Types.ActionTypes.actionToggleVisibility){n.state.elementVisibilityManager.onToggleVisibility(p);return}if(n.props.onExecuteAction)switch(p.type){case yo.Types.ActionTypes.actionOpenUrl:case yo.Types.ActionTypes.actionShowCard:case yo.Types.ActionTypes.actionEvent:{n.props.onExecuteAction(p);return}case yo.Types.ActionTypes.actionSubmit:{var v=p,w=n.state.inputStateManager.getCurrentState(),k=typeof v.data=="string"?En.isEmpty(w)?v.data:w:En.merge(v.data,w);n.props.onExecuteAction(En.merge(v,{data:k}));return}default:console.log("Action type not supported: %s",p.type);return}},n._initializeNestedCardInputs=function(p){n.state.inputStateManager.loadState(Object.assign(Object.assign({},r._buildInitialInputState(p,n.state.fnElementHandlerLookup)),n.state.inputStateManager.getCurrentState())),n.forceUpdate()};var u=r._makeFnElementHandlerLookup(a.fnGetCustomElementHandler),l=(0,Co.makeElementSanitizer)((0,Co.makeElementSanitizerLookup)(u)),d=a.sanitizationDisabled?a.adaptiveCard:o0.Sanitizer.sanitizeAdaptiveCard(l,a.adaptiveCard);return n.state={sourceCard:a.adaptiveCard,derivedFromPropsCard:d,inputStateManager:new cg.InputStateManager(r._buildInitialInputState(d,u),n._onFullRefresh),elementVisibilityManager:new lg.ElementVisibilityManager,hostConfig:a.hostConfig||new x$.HostConfig,fnElementHandlerLookup:u},n}return C$(r,e),v$(r,[{key:"render",value:function(){return this.state.derivedFromPropsCard?Hi.createElement(cg.CardInputStateContext.Provider,{value:this.state.inputStateManager},Hi.createElement(lg.ElementVisibilityContext.Provider,{value:this.state.elementVisibilityManager},this._renderCard(this.state.derivedFromPropsCard))):null}},{key:"_renderBody",value:function(n,u){var l=n.length,d=En.map(n,function(p,v){return u(p,v,l)});return Hi.createElement(t0.View,{key:"elementsContainer",style:u0.elementsContainer},d)}},{key:"_renderActions",value:function(n){return Hi.createElement(S$.default,{spacing:n0.EmptySpacing,actions:n,hostConfig:this.state.hostConfig,onExecuteAction:this._onExecuteAction,renderCard:this._renderCard,initializeInputs:this._initializeNestedCardInputs})}}],[{key:"getDerivedStateFromProps",value:function(n,u){var l={},d=!1;if(!En.isUndefined(n.hostConfig)&&u.hostConfig!==n.hostConfig&&(d=!0,l.hostConfig=n.hostConfig),u.sourceCard!==n.adaptiveCard){d=!0,l.fnElementHandlerLookup=r._makeFnElementHandlerLookup(n.fnGetCustomElementHandler);var p=(0,Co.makeElementSanitizer)((0,Co.makeElementSanitizerLookup)(l.fnElementHandlerLookup)),v=n.sanitizationDisabled?n.adaptiveCard:o0.Sanitizer.sanitizeAdaptiveCard(p,n.adaptiveCard);l.sourceCard=n.adaptiveCard,l.derivedFromPropsCard=v,l.inputStateManager=new cg.InputStateManager(r._buildInitialInputState(v,l.fnElementHandlerLookup),u.inputStateManager.getOnFullRefreshCallback()),l.elementVisibilityManager=new lg.ElementVisibilityManager}return d?l:null}},{key:"_buildInitialInputState",value:function(n,u){var l={},d=function(k){En.isArray(k)&&En.forEach(k,v)},p=function(k){console.log("[Warning] - Can't set initial value for element without an id")},v=function(k){var z=u(k);if(!(!z||!z.fnSetInitialInputValues)){var W=k.id?function(M){l[k.id]=M}:p;z.fnSetInitialInputValues(k,W,d)}};return n&&En.isArray(n.body)&&En.forEach(n.body,function(w){return v(w)}),l}},{key:"_makeFnElementHandlerLookup",value:function(n){return n?function(u){var l=n(u);return l||(0,Co.getElementHandler)(u)}:Co.getElementHandler}}])}(Hi.Component);ka.AdaptiveCardView=c0;ka.default=c0});var pi=T(tt=>{"use strict";f();Object.defineProperty(tt,"__esModule",{value:!0});tt.elementSpacingToPaddingStyle=tt.elementSpacingToSpacingStyle=tt.registerElementHandler=tt.Types=tt.HostConfig=tt.default=tt.createEventAction=tt.iconSourceIsInlineContent=tt.iconSourceIsImageUrlSource=tt.getRegisteredIcon=tt.registerIcons=tt.InputStateTracker=tt.platformColorToAdaptiveCardColorValue=tt.semanticColor=tt.Spacing=tt.ContainerStyleContext=tt.ContainerBackground=tt.ACClickable=tt.ACView=void 0;var T$=f0();Object.defineProperty(tt,"default",{enumerable:!0,get:function(){return T$.AdaptiveCardView}});var A$=ug();Object.defineProperty(tt,"HostConfig",{enumerable:!0,get:function(){return A$.HostConfig}});var k$=sc();Object.defineProperty(tt,"registerElementHandler",{enumerable:!0,get:function(){return k$.registerElementHandler}});var d0=Pu();Object.defineProperty(tt,"elementSpacingToSpacingStyle",{enumerable:!0,get:function(){return d0.elementSpacingToSpacingStyle}});Object.defineProperty(tt,"elementSpacingToPaddingStyle",{enumerable:!0,get:function(){return d0.elementSpacingToPaddingStyle}});var E$=Zt();Object.defineProperty(tt,"Types",{enumerable:!0,get:function(){return E$.Types}});var O$=An();Object.defineProperty(tt,"ACView",{enumerable:!0,get:function(){return O$.ACView}});var P$=ma();Object.defineProperty(tt,"ACClickable",{enumerable:!0,get:function(){return P$.ACClickable}});var p0=Tn();Object.defineProperty(tt,"ContainerBackground",{enumerable:!0,get:function(){return p0.ContainerBackground}});Object.defineProperty(tt,"ContainerStyleContext",{enumerable:!0,get:function(){return p0.ContainerStyleContext}});var I$=ao();Object.defineProperty(tt,"Spacing",{enumerable:!0,get:function(){return I$.Spacing}});var g0=Jp();Object.defineProperty(tt,"semanticColor",{enumerable:!0,get:function(){return g0.semanticColor}});Object.defineProperty(tt,"platformColorToAdaptiveCardColorValue",{enumerable:!0,get:function(){return g0.platformColorToAdaptiveCardColorValue}});var R$=sg();Object.defineProperty(tt,"InputStateTracker",{enumerable:!0,get:function(){return R$.InputStateTracker}});var yc=Vl();Object.defineProperty(tt,"registerIcons",{enumerable:!0,get:function(){return yc.registerIcons}});Object.defineProperty(tt,"getRegisteredIcon",{enumerable:!0,get:function(){return yc.getRegisteredIcon}});Object.defineProperty(tt,"iconSourceIsImageUrlSource",{enumerable:!0,get:function(){return yc.iconSourceIsImageUrlSource}});Object.defineProperty(tt,"iconSourceIsInlineContent",{enumerable:!0,get:function(){return yc.iconSourceIsInlineContent}});var q$=io();Object.defineProperty(tt,"createEventAction",{enumerable:!0,get:function(){return q$.createEventAction}})});var y0=T(bo=>{"use strict";f();Object.defineProperty(bo,"__esModule",{value:!0});bo.renderExpandoButtonElement=bo.registerExpandoButton=void 0;var _o=ye(),h0=Fr(),D$=zn(),L$=Zr(),Gi=pi(),M$=zt(),B$="ExpandoButton",z$={fnRenderElement:v0,fnSanitize:function(r,a){return a},isPaddedContainer:!0};function F$(){(0,Gi.registerElementHandler)(B$,z$)}bo.registerExpandoButton=F$;function v0(e,r,a,n,u,l){var d=(0,Gi.elementSpacingToPaddingStyle)(a),p=u.hostConfig.getEffectiveSpacing(Gi.Spacing.small),v=L$.Platform.select({web:u.isRTL?{marginLeft:p}:{marginRight:p},default:{marginEnd:p}});return _o.createElement(Gi.ACView,{key:r,style:(0,Gi.elementSpacingToSpacingStyle)(a),separator:a.separator},_o.createElement(Gi.ContainerBackground,{hostConfig:u.hostConfig,containerStyle:e.style},_o.createElement(Gi.InputStateTracker,{inputElementId:e.id},function(w,k){var z,W,M,P=!!(w===void 0?e.expanded:w),A=e.options&&(P?e.options.expanded:e.options.collapsed),G=(z=e.toggleAction)===null||z===void 0?void 0:z.title,oe=(W=A==null?void 0:A.tooltip)!==null&&W!==void 0?W:G,ee=(M=A==null?void 0:A.icon)!==null&&M!==void 0?M:P?"upChevron":"downChevron";return _o.createElement(Gi.ACClickable,{hostConfig:u.hostConfig,title:oe,accessibilityState:{expanded:P},onPress:function(){k(!P),e.toggleAction&&u.onExecuteAction(e.toggleAction)}},_o.createElement(h0.View,{style:[m0.buttonContentContainer,d]},!(0,M$.isNullOrUndefined)(G)&&_o.createElement(h0.View,{style:[m0.buttonTextContainer,v]},l({type:"TextBlock",weight:"bolder",size:"large",text:G,markdown:!1},0,1)),l({type:"Icon",iconId:ee},0,1)))})))}bo.renderExpandoButtonElement=v0;var m0={buttonContentContainer:D$.StyleSheet.createViewStyle({flexDirection:"row",alignItems:"center"}),buttonTextContainer:{flexGrow:1,flexShrink:1}}});var Yu=T(So=>{"use strict";f();Object.defineProperty(So,"__esModule",{value:!0});So.registerAdaptiveCardCustomElements=So.customElement=void 0;var V$=y0();function $$(e){return e}So.customElement=$$;function N$(){(0,V$.registerExpandoButton)()}So.registerAdaptiveCardCustomElements=N$});var dg=T(fg=>{"use strict";f();Object.defineProperty(fg,"__esModule",{value:!0});var U$=zt(),W$=Yu(),j$=function(r,a){return{type:"Container",spacing:"medium",items:[(0,W$.customElement)({type:"ExpandoButton",id:"".concat(a.id,"-Button"),style:"emphasis",padding:{left:"padding",right:"padding",bottom:"small",top:"small"},expanded:a.expanded,toggleAction:{title:a.title,type:"Action.ToggleVisibility",targetElements:["".concat(a.id,"-Content")]}}),{type:"Container",id:"".concat(a.id,"-Content"),isVisible:a.expanded,items:(0,U$.asArray)(a.content)}]}};fg.default=j$});var gg=T(pg=>{"use strict";f();Object.defineProperty(pg,"__esModule",{value:!0});var H$=pi(),G$=zt(),K$=Yu(),Z$=function(r,a){return{type:"Container",spacing:"medium",items:[(0,K$.customElement)({type:"ExpandoButton",id:"collapsible-button-".concat(a.id),style:"buttonSubtle",padding:{left:"padding",right:"padding",bottom:"small",top:"small"},expanded:a.expanded,toggleAction:{title:a.title,type:"Action.ToggleVisibility",targetElements:["collapsible-content-".concat(a.id)]}}),{type:"Container",padding:{left:"padding",right:"padding",bottom:"none",top:"small"},items:[{type:"Container",padding:{top:"padding",bottom:"padding",left:"none",right:"none"},id:"collapsible-content-".concat(a.id),borders:{color:"groupBorder",style:H$.Types.LineStyle.solid,radius:4},isVisible:a.expanded,items:(0,G$.asArray)(a.content)}]}]}};pg.default=Z$});var mg=T(xo=>{"use strict";f();Object.defineProperty(xo,"__esModule",{value:!0});xo.LabelValueSize=void 0;var hg;(function(e){e[e.Small=0]="Small",e[e.Medium=1]="Medium"})(hg=xo.LabelValueSize||(xo.LabelValueSize={}));var J$=function(r,a){return{type:"Container",spacing:"none",items:[{type:"TextBlock",wrap:!0,selectable:!0,text:[{officeStyle:_0(a.size,!1),text:C0(r)?r.label+": ":""},{officeStyle:_0(a.size,!0),text:C0(r)?r.value:""}]}]}};function C0(e){return!!(e.label&&e.value)}function _0(e,r){var a=r?"Standard":"Secondary";switch(e){case hg.Small:return"Small"+a;case hg.Medium:default:return"Medium"+a}}xo.default=J$});var S0=T(vg=>{"use strict";f();Object.defineProperty(vg,"__esModule",{value:!0});var Y$=zt(),b0=mg(),X$=function(r){return r.dataRetrievedTime?{type:"Container",spacing:"small",padding:{left:"padding"},items:[(0,Y$.applyTemplateSingle)(r.dataRetrievedTime,function(a){return(0,b0.default)(a,{size:b0.LabelValueSize.Small})})]}:void 0};vg.default=X$});var wo=T(yg=>{"use strict";f();Object.defineProperty(yg,"__esModule",{value:!0});var Q$=Il(),e3=ha(),t3=function(r){return{type:"Overlay",dockHorizontal:"right",content:{type:"Container",style:"button",padding:{left:"padding",right:"padding"},height:"stretch",verticalContentAlignment:"center",selectAction:(0,Q$.default)(r),items:[(0,e3.default)(void 0,{icon:r.icon})]}}};yg.default=t3});var Cg=T(Er=>{"use strict";f();Object.defineProperty(Er,"__esModule",{value:!0});Er.richValueIconUrlInfo=Er.genericIconId=Er.urlScheme=Er.sizePt=Er.sizePx=Er.sizePixels=void 0;Er.sizePixels=16;Er.sizePx=Er.sizePixels+"px";Er.sizePt="11pt";Er.urlScheme="ms-rv-icon:";Er.genericIconId="ms-rv-icon:Generic";var r3=/^(ms-rv-icon:[^?]+)(?:(?:\?|[^&]+&)codepoint=(\d+))?/;function n3(e){var r=e.match(r3);if(r){var a=r[2];return{baseIconId:r[1],codepoint:a===void 0?void 0:parseInt(a,10)}}}Er.richValueIconUrlInfo=n3});var x0=T(_g=>{"use strict";f();Object.defineProperty(_g,"__esModule",{value:!0});var i3=Cg(),a3=ha(),o3=function(r){return{type:"ColumnSet",columns:[{type:"Column",width:"auto",noShrink:!0,verticalContentAlignment:"center",items:[(0,a3.default)(void 0,{icon:r.icon||i3.genericIconId})]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:r.text,size:"medium"}]}]}};_g.default=o3});var bg=T(To=>{"use strict";f();Object.defineProperty(To,"__esModule",{value:!0});To.getLocString=To.setStringTable=void 0;var w0={getString:function(){return""}};function u3(e){w0=e}To.setStringTable=u3;function s3(e){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n{"use strict";f();Object.defineProperty(Sg,"__esModule",{value:!0});var T0=zt(),l3=ha(),c3=function(r){return{type:"Column",width:"auto",spacing:"small",verticalContentAlignment:"center",noShrink:(0,T0.isObject)(r.icon),items:[(0,T0.isObject)(r.icon)?(0,l3.default)(void 0,{icon:r.icon.icon,selectAction:{type:"Action.OpenUrl",title:r.icon.display||r.icon.url,url:r.icon.url}}):{type:"TextBlock",size:"small",text:r.text,markdown:!0}]}};Sg.default=c3});var Xu=T(Ao=>{"use strict";f();Object.defineProperty(Ao,"__esModule",{value:!0});Ao.imageAttributionsIdPrefix=void 0;var E0=zt(),f3=A0();Ao.imageAttributionsIdPrefix="imageattr-attributions-";function d3(e){return e.replace(/[()]/g,function(r){return r=="("?"%28":"%29"})}function p3(e,r){return"["+(r||e)+"]("+d3(e)+")"}function k0(e){return(0,E0.isUndefined)(e.icon)||e.icon===0?{text:p3(e.url,e.display)}:{icon:e}}function g3(e){if(e.length!=0){for(var r=[k0(e[0])],a=1;a{"use strict";f();Object.defineProperty(xg,"__esModule",{value:!0});var O0=bg(),m3=Yu(),v3=Xu(),y3=function(r,a){return{type:"Overlay",dockHorizontal:"left",dockVertical:"bottom",content:{type:"Container",style:"overlay",items:[(0,m3.customElement)({id:"imageattr-btn-".concat(a.id),type:"ExpandoButton",padding:"small",toggleAction:{type:"Action.ToggleVisibility",targetElements:["".concat(v3.imageAttributionsIdPrefix).concat(a.id)]},options:{expanded:{tooltip:(0,O0.getLocString)("buttonHideImageAttributionTooltip")},collapsed:{tooltip:(0,O0.getLocString)("buttonShowImageAttributionTooltip")}}})]}}};xg.default=y3});var Ag=T(Tg=>{"use strict";f();Object.defineProperty(Tg,"__esModule",{value:!0});var C3=function(r){return{type:"Container",style:"messageFrame",padding:{left:"small"},items:[{type:"Container",style:"messageContent",padding:"default",items:[{type:"ColumnSet",columns:[{type:"Column",width:"auto",verticalContentAlignment:"center",noShrink:!0,items:[{type:"Icon",iconId:"alertWarning"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:r.imageFailedToLoadString||"Failed to load image",wrap:!0}]}]}]}]}};Tg.default=C3});var Eg=T(kg=>{"use strict";f();Object.defineProperty(kg,"__esModule",{value:!0});var _3=function(){return{type:"Throbber"}};kg.default=_3});var Cc=T(Og=>{"use strict";f();Object.defineProperty(Og,"__esModule",{value:!0});var b3=zt(),S3=wg(),x3=Ag(),w3=Eg(),T3=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Image",horizontalAlignment:"center",url:r.value,altText:r.display,maxPixelHeight:a.capHeight?200:void 0,onError:(0,x3.default)(r),onLoading:(0,w3.default)(),caption:(0,b3.applyTemplateSingle)(r.attributions,function(n){return(0,S3.default)(n,{id:r.key})})}};Og.default=T3});var Qu=T(Pg=>{"use strict";f();Object.defineProperty(Pg,"__esModule",{value:!0});var _c=Oi(),A3=Zr(),k3=up(),E3=x0(),O3=Cc(),P3=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};switch(r.fieldType){case _c.CardSchema.FieldType.ImageUrl:return(0,O3.default)(r,{capHeight:!0});case _c.CardSchema.FieldType.Entity:return(0,E3.default)(r);case _c.CardSchema.FieldType.Array:return(0,k3.default)(r);case _c.CardSchema.FieldType.Hyperlink:return A3.Platform.select({macos:{type:"Command",style:"hyperlink",size:a.smaller?"small":"medium",action:{type:"Action.OpenUrl",title:r.display,url:r.value}},default:{type:"TextBlock",officeStyle:a.smaller?"SmallSecondary":"MediumStandard",wrap:!0,text:r.text,spacing:"none",markdown:!0}});default:return{type:"TextBlock",size:a.smaller?"small":"medium",selectable:!0,wrap:!0,text:r.text,spacing:"none",weight:a.textWeight}}};Pg.default=P3});var Sc=T(Ig=>{"use strict";f();Object.defineProperty(Ig,"__esModule",{value:!0});var bc=Oi();function I3(e){var r=e.text||e.display;return r?"".concat(e.key,": ").concat(r):e.key}function R3(e){switch(e.fieldType){case bc.CardSchema.FieldType.Array:case bc.CardSchema.FieldType.ImageUrl:return e.key;case bc.CardSchema.FieldType.Entity:if(e.entityType===bc.CardSchema.EntityType.Array)return e.key;break}return e.text||e.key}var q3=function(r){return{type:"Action.Submit",title:I3(r),data:{actionId:"NavigateIn",parameters:{key:r.key,text:R3(r)}}}};Ig.default=q3});var I0=T(Rg=>{"use strict";f();Object.defineProperty(Rg,"__esModule",{value:!0});var P0=zt(),D3=Cc(),L3=wo(),M3=Sc(),B3=Xu(),z3=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"Container",height:"stretch",verticalContentAlignment:"center",items:[{type:"Container",padding:a.padding,floatingContent:(0,P0.applyTemplateSingle)(r.action,L3.default),height:"stretch",verticalContentAlignment:"center",style:r.isNavigable?"button":void 0,selectAction:r.isNavigable?(0,M3.default)(r):void 0,items:[(0,D3.default)(r,a)]},(0,P0.applyTemplateSingle)(r.attributions,function(n){return(0,B3.default)(n,{id:r.key})})]}};Rg.default=z3});var es=T(Dg=>{"use strict";f();Object.defineProperty(Dg,"__esModule",{value:!0});var R0=Oi(),qg=zt(),F3=Sc(),V3=Qu(),$3=wo(),N3=ip(),U3=Xu();function W3(e,r){return e.fieldType!==R0.CardSchema.FieldType.ImageUrl?r:{type:"Container",padding:r.padding,items:[Object.assign(Object.assign({},r),{padding:void 0}),(0,qg.applyTemplateSingle)(e.attributions,function(a){return(0,U3.default)(a,{id:e.key})})]}}var j3=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return W3(r,{type:"Container",style:r.isNavigable?"button":void 0,selectAction:r.isNavigable?(0,F3.default)(r):void 0,padding:{left:"padding",right:"padding",top:"small",bottom:"small"},items:[a.hideLabel?void 0:(0,N3.default)(r,{selectable:!r.isNavigable}),(0,V3.default)(r),H3(r)],floatingContent:(0,qg.applyTemplateSingle)(r.action,$3.default)})};function H3(e){if(e.fieldType!==R0.CardSchema.FieldType.ImageUrl)return(0,qg.applyTemplateSingle)(e.attributionText,function(r){return{type:"TextBlock",officeStyle:"SmallStandard",text:r,spacing:"none",markdown:!0}})}Dg.default=j3});var Mg=T(Lg=>{"use strict";f();Object.defineProperty(Lg,"__esModule",{value:!0});var G3=zt(),K3=Sc(),Z3=Qu(),J3=wo(),Y3=function(r){return{type:"Container",style:r.isNavigable?"button":void 0,selectAction:r.isNavigable?(0,K3.default)(r):void 0,padding:{left:"padding",right:"padding",top:"small",bottom:"small"},items:[{type:"ColumnSet",columns:[{type:"Column",width:"1",items:[X3(r)]},{type:"Column",width:"1",items:[(0,Z3.default)(r,{textWeight:"bolder"})]}]}],floatingContent:(0,G3.applyTemplateSingle)(r.action,J3.default)}},X3=function(r){return{type:"TextBlock",selectable:!r.isNavigable,officeStyle:"MediumSecondary",text:r.label,wrap:!0}};Lg.default=Y3});var L0=T(Bg=>{"use strict";f();Object.defineProperty(Bg,"__esModule",{value:!0});var q0=zt(),D0=mg(),Q3=function(r){return r.infoToolTipLabels?{type:"Container",spacing:"medium",padding:{left:"padding"},separator:(0,q0.isNonEmptyArray)(r.infoToolTipLabels),items:(0,q0.applyTemplateAll)(r.infoToolTipLabels,function(a){return(0,D0.default)(a,{size:D0.LabelValueSize.Medium})})}:void 0};Bg.default=Q3});var F0=T(Zi=>{"use strict";f();var eN=xa();Object.defineProperty(Zi,"__esModule",{value:!0});Zi.twoColumnTemplate=Zi.rowWithTwoColumns=Zi.distributeFieldsAcrossTwoColumns=void 0;var Ki=zt(),zg=es(),M0=ko();function B0(e){if(!(0,Ki.isUndefined)(e)){var r=(0,Ki.partitionArray)(e,2);return(0,Ki.applyTemplateAll)(r,z0)}}Zi.distributeFieldsAcrossTwoColumns=B0;function z0(e){var r=eN(e,2),a=r[0],n=r[1],u,l;return{type:"ColumnSet",padding:{left:"padding",right:"padding",top:"small",bottom:"small"},columns:[{type:"Column",width:"1",items:(u=(0,Ki.asArray)((0,Ki.applyTemplateSingle)(a,zg.default)))!==null&&u!==void 0?u:[]},{type:"Column",width:"1",items:(l=(0,Ki.asArray)((0,Ki.applyTemplateSingle)(n,zg.default)))!==null&&l!==void 0?l:[]}]}}Zi.rowWithTwoColumns=z0;var tN=function(r){if(!(0,Ki.isUndefined)(r.fields))return r.fields.length===1?(0,zg.default)(r.fields[0],{hideLabel:(0,M0.isCollapsible)(r)&&(0,M0.firstFieldLabelMatchesPodTitle)(r)}):B0(r.fields)};Zi.twoColumnTemplate=tN});var V0=T(xc=>{"use strict";f();Object.defineProperty(xc,"__esModule",{value:!0});xc.tableTemplate=void 0;var rN=Mg(),nN=zt(),iN=function(r){return(0,nN.applyTemplateAll)(r.fields,rN.default)};xc.tableTemplate=iN});var U0=T(wc=>{"use strict";f();Object.defineProperty(wc,"__esModule",{value:!0});wc.listTemplate=void 0;var $0=es(),aN=zt(),N0=ko(),oN=function(r){return(0,N0.isCollapsible)(r)&&r.fields.length===1&&(0,N0.firstFieldLabelMatchesPodTitle)(r)?(0,$0.default)(r.fields[0],{hideLabel:!0}):(0,aN.applyTemplateAll)(r.fields,function(a){return(0,$0.default)(a)})};wc.listTemplate=oN});var G0=T(Oo=>{"use strict";f();Object.defineProperty(Oo,"__esModule",{value:!0});Oo.multiColumnTemplate=Oo.distributeFieldsAcrossMultiColumns=void 0;var Eo=zt(),j0=es(),W0=ko();function uN(e){return{type:"ColumnSet",padding:{left:"padding",right:"padding",top:"small",bottom:"small"},columns:e.map(function(r){return{type:"Column",width:"1",items:r?[(0,Eo.applyTemplateSingle)(r,j0.default)]:[]}})}}function H0(e,r){if(!(0,Eo.isUndefined)(e)){var a=(0,Eo.partitionAndPadRows)(e,r);return(0,Eo.applyTemplateAll)(a,uN)}}Oo.distributeFieldsAcrossMultiColumns=H0;var sN=function(r){if(!(0,Eo.isUndefined)(r.fields)){var a=(0,Eo.getValidColumnCount)(r.columncount,r.fields.length);return r.fields.length===1?(0,j0.default)(r.fields[0],{hideLabel:(0,W0.isCollapsible)(r)&&(0,W0.firstFieldLabelMatchesPodTitle)(r)}):H0(r.fields,a)}};Oo.multiColumnTemplate=sN});var ko=T(Un=>{"use strict";f();var K0=Pi();Object.defineProperty(Un,"__esModule",{value:!0});Un.getTemplateName=Un.firstFieldLabelMatchesPodTitle=Un.isCollapsible=void 0;var Po=zt(),FG=dg(),lN=gg(),cN=F0(),fN=V0(),dN=U0(),pN=G0(),gN=function(r){return r.collapsible!==void 0?r.collapsible:r.title!==void 0};Un.isCollapsible=gN;var Z0=function(r,a){return r.collapsed!==void 0?r.collapsed:a>0},hN=function(r){var a=r.metadata.pods,n=r.fields.reduce(function(p,v){return p[v.key]=v,p},{}),u=a.reduce(function(p,v){return(v.fields||[]).reduce(function(w,k){return w[k]=!0,w},p)},{}),l=r.fields.filter(function(p){return!u[p.key]}),d=(0,Po.applyTemplateAll)(r.metadata.pods,function(p){var v=(0,Po.applyTemplateAll)(p.fields,function(w){return n[w]});return(0,Po.isUndefined)(v)||v.length===0?void 0:Object.assign(Object.assign({},p),{fields:v})})||[];if(l.length>0&&(l.length>200&&(l.length=200),d=[].concat(K0(d),[{fields:l}])),d.length!==0)return d.reduce(function(p,v,w,k){var z=CN(v,w,w>0,r.metadata.groupingControlEnabled||!1);return Array.isArray(z)?p.push.apply(p,K0(z)):p.push(z),p},[])};function mN(e){return e.fields.length>0&&typeof e.title=="string"&&e.fields[0].label.toLowerCase()===e.title.toLowerCase()}Un.firstFieldLabelMatchesPodTitle=mN;function vN(e){var r,a,n;return(n=(a=(r=e.layout)===null||r===void 0?void 0:r.template)!==null&&a!==void 0?a:e.template)!==null&&n!==void 0?n:"list"}Un.getTemplateName=vN;var yN=function(r){var a,n,u=r.layout;r.template&&(0,Po.isUndefined)(r.layout)&&(u={template:r.template});var l=(a=u==null?void 0:u.template)!==null&&a!==void 0?a:"list",d=(n=_N[l])!==null&&n!==void 0?n:dN.listTemplate;return d(r,u)},CN=function(r,a,n,u){var l=yN(r);return(0,Un.isCollapsible)(r)?u?{type:"Grouping",expanded:r.fields.length===1||!Z0(r,a),headerText:r.title,items:(0,Po.asArray)(l)}:(0,lN.default)(void 0,{id:"pod-".concat(a),title:r.title,expanded:!Z0(r,a),content:l}):n?{type:"Container",separator:!0,spacing:"medium",items:(0,Po.asArray)(l)}:l},_N={table:fN.tableTemplate,twocolumn:cN.twoColumnTemplate,multicolumn:pN.multiColumnTemplate};Un.default=hN});var J0=T(Vg=>{"use strict";f();Object.defineProperty(Vg,"__esModule",{value:!0});var bN=Zr(),Fg=bN.Platform.select({win32:function(r){return"\u200E"+r},default:function(r){return r}}),SN=function(r){return{type:"Container",items:[{type:"TextBlock",officeStyle:"MediumStandard",wrap:!0,text:[{officeStyle:"HugeStandard",text:[{weight:"bolder",text:Fg(r.price)}]},Fg(" "+(r.currency||"")),{color:r.changeColor,text:Fg(" "+(r.change||""))}]},{type:"TextBlock",officeStyle:"SmallSecondary",text:r.time,spacing:"none"}]}};Vg.default=SN});var Y0=T($g=>{"use strict";f();Object.defineProperty($g,"__esModule",{value:!0});var xN=Qu(),wN=function(r){return{type:"Container",spacing:"none",padding:{left:"padding",right:"padding"},items:[(0,xN.default)(r,{smaller:!0})]}};$g.default=wN});var X0=T(Ng=>{"use strict";f();Object.defineProperty(Ng,"__esModule",{value:!0});var TN=zt(),AN=wo(),kN=function(r){return{type:"Container",floatingContent:(0,TN.applyTemplateSingle)(r.action,AN.default),padding:{left:"padding",right:"padding"},items:[{type:"TextBlock",size:"extraLarge",selectable:!0,wrap:!0,text:r.text}]}};Ng.default=kN});var Ug=T(Tc=>{"use strict";f();Object.defineProperty(Tc,"__esModule",{value:!0});Tc.builtinTemplates=void 0;var EN=rp(),ON=Xy(),PN=Qy(),IN=tC(),RN=nC(),qN=dg(),DN=gg(),LN=S0(),MN=wo(),BN=Qu(),zN=ha(),FN=Ag(),VN=I0(),$N=Cc(),NN=wg(),UN=Xu(),WN=es(),jN=Mg(),HN=L0(),GN=ko(),KN=J0(),ZN=Y0(),JN=Eg(),YN=X0();function XN(e){return function(r,a,n){try{return e(r,a,n)}catch(u){return}}}function QN(e){var r={};return Object.keys(e).forEach(function(a){r[a]=XN(e[a])}),r}Tc.builtinTemplates=QN({actionIcon:EN.default,actionIconWithText:ON.default,aggregatedAttribution:PN.default,arrayCard:IN.default,cardFooter:RN.default,collapsibleContainer:qN.default,collapsibleContainerWithBorder:DN.default,dataRetrievedTime:LN.default,fieldValue:BN.default,fieldAction:MN.default,icon:zN.default,imageError:FN.default,imageField:VN.default,imageValue:$N.default,imageAttributions:UN.default,imageAttributionToggleButton:NN.default,individualField:WN.default,individualFieldHorizontal:jN.default,infoToolTipLabel:HN.default,pods:GN.default,stockSummary:KN.default,subTitle:ZN.default,throbber:JN.default,title:YN.default})});var Q0=T(Ji=>{"use strict";f();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.defaultLandscapeLayout=Ji.foodCardPortraitLayout=Ji.defaultPortraitLayout=void 0;var Wg=[{$template:"title",$source:"{{title}}"},{$template:"subTitle",$source:"{{subTitle}}"},{$source:"{{metadata}}",$template:"dataRetrievedTime"},{$template:"{{metadata.pods ? 'pods' : 'fields'}}",$templates:{fields:{$source:"{{fields}}",$template:"individualField"}}},{$source:"{{metadata}}",$template:"infoToolTipLabel"},{$template:"aggregatedAttribution",$source:"{{aggregatedAttributionText}}"}],eU=[{type:"List",height:"stretch",padding:{top:"padding"},items:Wg},{$source:"{{$this}}",$template:"cardFooter"}];Ji.defaultPortraitLayout=[{type:"List",height:"stretch",padding:{top:"{{$not($exists(heroImage)) ? 'padding'}}"},items:[{$source:"{{heroImage}}",$template:"imageField",capHeight:!0}].concat(Wg)},{$source:"{{$this}}",$template:"cardFooter"}];Ji.foodCardPortraitLayout=[{type:"List",height:"stretch",padding:{top:"{{$not($exists(heroImage)) ? 'padding'}}"},items:[{$source:"{{heroImage}}",$template:"imageField",padding:{top:"small",bottom:"none",left:"padding",right:"padding"}}].concat(Wg)},{$source:"{{$this}}",$template:"cardFooter"}];Ji.defaultLandscapeLayout=[{type:"ColumnSet",height:"stretch",columns:[{$source:"{{heroImage}}",type:"Column",verticalContentAlignment:"center",items:[{$template:"imageField"}]},{type:"Column",separator:!0,items:eU}]}]});var jg=T(Ac=>{"use strict";f();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.dataTransformCommon=void 0;Ac.dataTransformCommon='\n $escapeUrl := function($url){\n $replace($url, /[()]/, function($m){ $m.match = "(" ? "%28" : "%29" })};\n\n $makeUrl := function($url, $display){ $url ? "[" & ($display != "" ? $display : $url) & "](" & $escapeUrl($url) & ")" : $display };\n $makeAttributionText := function($attributions){ $attributions ? $join([$attributions.($makeUrl(url, display))], " • ") : undefined };\n\n $trimLeadingTrailingSpaces := function($string){\n $replace($string, /^\\s+|\\s+$/, "")\n };\n $newTrim := metadata.onlyTrimLeadingAndTrailingSpaces;\n $trimmedText := function($text){\n $newTrim ?\n $trimLeadingTrailingSpaces($text)\n : $trim($text)\n };\n $makeText := function($field){\n $field.(\n ($string(fieldType)=fieldType ? 1 : fieldType < 2)\n ? $trimmedText(display ? display : $string(value))\n : fieldType = 3 ? $makeUrl(value, display) : undefined\n )\n };\n\n /* $incSublabel - (optional) include subLabel? (default: true) */\n $preprocessField := function($field, $incSubLabel){(\n $incSubLabel := $not($incSubLabel = false);\n $field.(\n $merge([$, {\n "canonicalKey": canonicalKey ? canonicalKey : key,\n "label": (label ? label : key) & (subLabel and $incSubLabel ? (" • " & subLabel) : ""),\n "text": $makeText($),\n "attributionText": $makeAttributionText(attributions)\n }])\n )\n )};\n\n /* First image field marked \'isPrimary\'; otherwise, first image field */\n $heroImageField := fields[fieldType=2 and isPrimary][0];\n $heroImageKey := $heroImageField.(canonicalKey ? canonicalKey : key);\n\n $titleKey := fields[isTitle][0].(canonicalKey ? canonicalKey : key);\n\n $title := $preprocessField(title);\n $subTitle := $preprocessField(subTitle);\n'});var eS=T(kc=>{"use strict";f();Object.defineProperty(kc,"__esModule",{value:!0});kc.defaultCardTransform=void 0;var tU=jg();kc.defaultCardTransform="(\n ".concat(tU.dataTransformCommon,'\n\n $fields := fields.$preprocessField($);\n\n {\n "description": description,\n "headerLabel": headerLabel,\n "heroImage": $heroImageField,\n "title": $title ? $title : $fields[canonicalKey = $titleKey],\n "subTitle": $subTitle,\n "fields": [$fields[$not(canonicalKey in [$heroImageKey, $titleKey] or hidden)]],\n "attributionFooter": attributionFooter,\n "aggregatedAttributionText": attributions ? (attributionsHeading & $makeAttributionText(attributions)) : undefined,\n "actions": actions,\n "metadata": metadata\n }\n)')});var rS=T(Io=>{"use strict";f();Object.defineProperty(Io,"__esModule",{value:!0});Io.stockCardLandscapeLayout=Io.stockCardPortraitLayout=void 0;var tS=[{type:"Container",padding:{left:"padding",right:"padding"},items:[{$template:"stockSummary",$source:"{{summary}}"},{type:"Container",$source:"{{title}}",items:[{type:"Container",floatingContent:{$template:"fieldAction",$source:"{{action}}"},items:[{type:"TextBlock",selectable:!0,text:"{{text}}",wrap:!0,size:"extraLarge",weight:"bold"}]},{type:"TextBlock",officeStyle:"SmallSecondary",text:"{{symbolEx}}",spacing:"none"}]}]},{$template:"subTitle",$source:"{{subTitle}}"},{type:"Container",spacing:"medium",items:[{type:"ColumnSet",$source:"{{fields}}",columns:[{$source:"{{$this}}",type:"Column",width:1,items:[{$template:"individualField"}]}]}]},{type:"Container",spacing:"medium",items:[{$source:"{{topFields}}",$template:"individualField"}]},{$source:"{{aggregatedAttributionText}}",$template:"aggregatedAttribution"}];Io.stockCardPortraitLayout=[{type:"List",height:"stretch",padding:{top:"{{$not($exists(heroImage)) ? 'padding'}}"},items:[{$source:"{{heroImage}}",$template:"imageField",capHeight:!0},{type:"Container",spacing:"none",separator:!0,items:tS}]},{$source:"{{$this}}",$template:"cardFooter"}];var rU=[{type:"List",height:"stretch",padding:{top:"padding"},items:tS},{$source:"{{$this}}",$template:"cardFooter"}];Io.stockCardLandscapeLayout=[{type:"ColumnSet",height:"stretch",columns:[{$source:"{{heroImage}}",type:"Column",width:1,verticalContentAlignment:"center",items:[{$template:"imageField"}]},{type:"Column",width:2,separator:!0,items:rU}]}]});var nS=T(Ec=>{"use strict";f();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.stockCardTransform=void 0;var nU=jg();Ec.stockCardTransform="(\n ".concat(nU.dataTransformCommon,'\n\n $fields := fields.$preprocessField($, false);\n\n $topFields := ["Description", "CEO", "Employees", "Year founded", "Headquarters", "Industry"];\n $removeFields := [$heroImageKey, $titleKey, $topFields];\n\n $priceField := $fields[canonicalKey = "Price"];\n $price := $replace($priceField.text, /[^\\d]*([\\d.,]+)[^\\d]*/, "$1");\n $deltaPct := $replace($fields[canonicalKey = "Change (%)"].text, /[^\\d-]*([-\\d.,%]+)[^\\d]*/, "$1");\n $delta := $replace($fields[canonicalKey = "Change"].text, /[^\\d-]*([\\d.,-]+)[^\\d]*/, "$1");\n\n $noch := $delta = "-";\n $down := $substring($deltaPct, 0, 1) = "-";\n $deltaPct := $down ? $substring($deltaPct, 1) : $deltaPct;\n $changeText := ($noch ? "" : (($down ? "▼" : "▲") & " ")) & $delta & " (" & $deltaPct & ")";\n $exch := $fields[canonicalKey = "Exchange"].text;\n $symbol := $fields[canonicalKey = "Ticker symbol"].text;\n $currency := $fields[canonicalKey = "Currency"].text;\n\n {\n "description": description,\n "headerLabel": headerLabel,\n "heroImage": $heroImageField,\n "title": $title ? $title : $fields[canonicalKey = $titleKey],\n "subTitle": $subTitle,\n "symbolEx": $exch ? ($exch & ": " & $symbol) : $symbol,\n "summary": {\n "price": $price,\n "currency": $currency ? $currency : "",\n "change": $changeText,\n "changeColor": ($noch ? "default" : ($down ? "attention" : "good")),\n "time": $fields[canonicalKey = "Last trade time"].text & ($priceField.subLabel ? " • " & $priceField.subLabel : "")\n },\n "topFields": $fields[canonicalKey in $topFields and $not(hidden)],\n "fields": $partition($fields[$not(canonicalKey in $removeFields or hidden)], 2, {}),\n "attributionFooter": attributionFooter,\n "actions": actions,\n "metadata": metadata,\n "aggregatedAttributionText": attributions ? (attributionsHeading & $makeAttributionText(attributions)) : undefined\n }\n)')});var Gg=T(Wn=>{"use strict";f();var ts=Cu(),oS=We(),uS=Ue();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.DomainCards=Wn.compileLayout=Wn.isCompiledLayout=Wn.CompiledLayout=void 0;var gn=Oi(),iU=Ol(),aU=kl(),iS=Pl(),oU=Ug(),Yi=Q0(),Oc=eS(),aS=rS(),uU=nS(),Hg=oS(function e(r){uS(this,e),this.apply=r});Wn.CompiledLayout=Hg;function sU(e){return e instanceof Hg}Wn.isCompiledLayout=sU;function sS(e){return new Hg(aU.compileBindable(e,oU.builtinTemplates))}Wn.compileLayout=sS;var Ro=function(){function e(){uS(this,e)}return oS(e,null,[{key:"getLayoutForDomain",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn.CardSchema.Domain.None,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{isTablet:!1,isLandscapeMode:!1},u=e._commonBaseCard;return u.body=e._getCardBodyForDomain(a,n),u}},{key:"getCompiledLayoutForDomain",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn.CardSchema.Domain.None,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{isTablet:!1,isLandscapeMode:!1};(this._compiledLayoutHostContext.isTablet!==n.isTablet||this._compiledLayoutHostContext.isLandscapeMode!==n.isLandscapeMode)&&(this._compiledLayoutMap={},this._compiledLayoutHostContext=Object.assign({},n)),this._domainProps[a]||(a=gn.CardSchema.Domain.None);var u=this._compiledLayoutMap[a];if(!u){var l=this.getLayoutForDomain(a,n);u=(0,iS.logElapsedTime)("compiling layout",function(){return sS(l)}),this._compiledLayoutMap[a]=u}return u}},{key:"getTransformforDomain",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn.CardSchema.Domain.None,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{isTablet:!1,isLandscapeMode:!1};return this._domainProps[a]||(a=gn.CardSchema.Domain.None),this._domainProps[a].transform}},{key:"getParsedTransformForDomain",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn.CardSchema.Domain.None;this._domainProps[a]||(a=gn.CardSchema.Domain.None);var n=this._parsedTransformMap[a];return n||(n=(0,iS.logElapsedTime)("parsing transform",function(){return(0,iU.parseTransform)(e.getTransformforDomain(a))}),this._parsedTransformMap[a]=n),n}},{key:"_getCardBodyForDomain",value:function(a,n){var u=this._domainProps[a].layout;return Array.isArray(u)?u:n.isLandscapeMode&&!n.isTablet?u.landscape:u.portrait}}])}();Wn.DomainCards=Ro;Ro._commonBaseCard={type:"AdaptiveCard",$schema:"https://adaptivecards.io/schemas/adaptive-card.json",version:"1.0",body:[],padding:"none"};Ro._domainProps=ts(ts(ts(ts(ts({},gn.CardSchema.Domain.None,{layout:{portrait:Yi.defaultPortraitLayout,landscape:Yi.defaultLandscapeLayout},transform:Oc.defaultCardTransform}),gn.CardSchema.Domain.Food,{layout:{portrait:Yi.foodCardPortraitLayout,landscape:Yi.defaultLandscapeLayout},transform:Oc.defaultCardTransform}),gn.CardSchema.Domain.Geography,{layout:{portrait:Yi.defaultPortraitLayout,landscape:Yi.defaultLandscapeLayout},transform:Oc.defaultCardTransform}),gn.CardSchema.Domain.Stock,{layout:{portrait:aS.stockCardPortraitLayout,landscape:aS.stockCardLandscapeLayout},transform:uU.stockCardTransform}),gn.CardSchema.Domain.Addin,{layout:{portrait:Yi.defaultPortraitLayout,landscape:Yi.defaultLandscapeLayout},transform:Oc.defaultCardTransform});Ro._compiledLayoutMap={};Ro._compiledLayoutHostContext={isTablet:!1,isLandscapeMode:!1};Ro._parsedTransformMap={}});var Ft=T((sK,lS)=>{f();lS.exports=OfficePlatformGlobal.ReactNative.AssetRegistry});var fS=T((cK,cS)=>{f();cS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:16,height:16,scales:[1,2,3,4],hash:"55b50696ac7d5e103e3d6da1b4141b68",name:"cardview-checkmark",type:"png",__useShortPath:!0})});var pS=T((dK,dS)=>{f();dS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:20,height:20,scales:[1,2,3,4],hash:"5f75af24ccbb55b9f1e28738585d3f6e",name:"cardview-moreimages",type:"png",__useShortPath:!0})});var Kg=T((gK,gS)=>{f();gS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:16,height:16,scales:[1,2,3,4],hash:"53a32bc043b42433a7f5023c8af8b0b3",name:"cardview-addtotable",type:"png",__useShortPath:!0})});var mS=T((mK,hS)=>{f();hS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:20,height:20,scales:[1,2,3,4],hash:"8e38b63cab479d10d46d97d7c042ae4d",name:"cardview-linkedentity",type:"png",__useShortPath:!0})});var yS=T((yK,vS)=>{f();vS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:20,height:20,scales:[1,2,3,4],hash:"3bd481c7d609969c05359c3e2292e69b",name:"cardview-flag",type:"png",__useShortPath:!0})});var _S=T((_K,CS)=>{f();CS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:20,height:20,scales:[1,2,3,4],hash:"4afc3c214c4b84726616ad9959e3238d",name:"cardview-warning",type:"png",__useShortPath:!0})});var SS=T((SK,bS)=>{f();bS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:16,height:16,scales:[1,2,3,4],hash:"eea24aae3f40e87e20bf2e52cc279e94",name:"cardview-chevronup",type:"png",__useShortPath:!0})});var wS=T((wK,xS)=>{f();xS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:16,height:16,scales:[1,2,3,4],hash:"2bbe175929db5f9d0279380bdd576c04",name:"cardview-chevrondown",type:"png",__useShortPath:!0})});var AS=T((AK,TS)=>{f();TS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:16,height:16,scales:[1,2,3,4],hash:"6c7b7119825d3d000d4aa1fd7cff3603",name:"cardview-richvalue-generic",type:"png",__useShortPath:!0})});var ES=T((EK,kS)=>{f();kS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:16,height:16,scales:[1,2,3,4],hash:"0e09d16ad4700ae3d1b9df27dc661c68",name:"cardview-richvalue-finance",type:"png",__useShortPath:!0})});var PS=T((PK,OS)=>{f();OS.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/../cardview/lib/native-common/assets",width:16,height:16,scales:[1,2,3,4],hash:"5fe55eb9a417bca14e664027221e98bd",name:"cardview-richvalue-map",type:"png",__useShortPath:!0})});var IS=T(Pc=>{"use strict";f();Object.defineProperty(Pc,"__esModule",{value:!0});Pc.cardIconMap=void 0;Pc.cardIconMap={checkmark:{url:fS()},moreImages:{url:pS()},addToTable:{url:Kg()},"addToTable-dark":{url:Kg(),applyTint:!0},connectedEntity:{url:mS(),applyTint:!0},flag:{url:yS(),applyTint:!0},alertWarning:{url:_S(),applyTint:!0},upChevron:{url:SS(),applyTint:!0},downChevron:{url:wS(),applyTint:!0},"ms-rv-icon:Generic":{url:AS(),applyTint:!0},"ms-rv-icon:Finance":{url:ES(),applyTint:!0},"ms-rv-icon:Map":{url:PS(),applyTint:!0}}});var RS=T(Ic=>{"use strict";f();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.lookupRegisteredIconWithVariant=void 0;var lU=pi();function cU(e,r){var a=e.match(/(.*)-(light|dark)$/),n=a?a[1]:e;a&&a[2]==="dark"&&(r=Object.assign(Object.assign({},r),{dark:!0}));var u=[];r.rtl?(r.dark&&u.push("-rtl-dark"),u.push("-rtl")):r.dark&&u.push("-dark"),u.push("");for(var l=0;l{"use strict";f();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.lookupIcon=void 0;var fU=pi(),qS=RS(),DS=Cg();function dU(e,r){var a=DS.richValueIconUrlInfo(e),n=a?a.baseIconId:e,u=(0,qS.lookupRegisteredIconWithVariant)(n,r);return u===void 0&&a&&(u=(0,qS.lookupRegisteredIconWithVariant)(DS.genericIconId,r)),u===void 0&&(u=(0,fU.getRegisteredIcon)("missing")),u}Rc.lookupIcon=dU});var Zg=T(qc=>{"use strict";f();Object.defineProperty(qc,"__esModule",{value:!0});qc.lookupIcon=void 0;var pU=LS();Object.defineProperty(qc,"lookupIcon",{enumerable:!0,get:function(){return pU.lookupIcon}})});var US=T(Xi=>{"use strict";f();var gU=Ue(),hU=We(),mU=vt(),MS=ht(),vU=yt();function yU(e,r,a){return r=MS(r),mU(e,FS()?Reflect.construct(r,a||[],MS(e).constructor):r.apply(e,a))}function FS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(FS=function(){return!!e})()}Object.defineProperty(Xi,"__esModule",{value:!0});Xi.CardView=Xi.buildAdaptiveCard=Xi.bindLayoutToData=void 0;var BS=ye(),CU=Oi(),Jg=Gg(),_U=Ol(),rs=Pl(),bU=kl(),Yg=pi(),zS=IS(),SU=Zg(),xU=Ug(),wU=Yu();(0,Yg.registerIcons)(Object.keys(zS.cardIconMap).map(function(e){return{iconId:e,source:zS.cardIconMap[e]}}));(0,wU.registerAdaptiveCardCustomElements)();function VS(e,r,a){return(0,bU.compileBindable)(e,xU.builtinTemplates)(r,a)}Xi.bindLayoutToData=VS;function Dc(e){return typeof e>"u"||e===null}function $S(e,r,a,n){var u;try{var l=typeof r=="string"?(0,_U.parseTransform)(r):r;u=(0,rs.logElapsedTime)("apply data transform",function(){return l.evaluate(e,n)})}catch(p){(0,rs.logMessage)("JSONata error: "+p.message)}var d;return(0,Jg.isCompiledLayout)(a)?d=(0,rs.logElapsedTime)("apply layout",function(){return a.apply(u,n)}):d=(0,rs.logElapsedTime)("compile and apply layout",function(){return VS(a,u,n)}),{transformedData:u,card:d}}Xi.buildAdaptiveCard=$S;var NS=function(e){function r(a,n){var u;return gU(this,r),u=yU(this,r,[a,n]),u._lookupIcon=function(l){return(0,SU.lookupIcon)(l,u._getVariant())},u.state={},u}return vU(r,e),hU(r,[{key:"render",value:function(){return BS.createElement(Yg.default,{adaptiveCard:this.state.adaptiveCard,hostConfig:this._hostConfig,lookupIcon:this._lookupIcon,rtl:this.props.hostContext?this.props.hostContext.rtl:!1,onExecuteAction:this.props.executeActionCallback,fnGetCustomElementHandler:this.props.fnGetCustomElementHandler})}},{key:"_hostConfig",get:function(){return this.props.hostConfig||r._defaultHostConfig}},{key:"_getVariant",value:function(){var n=this.props.hostContext;return n?{dark:n.theme==="dark",rtl:!!n.rtl}:{dark:!1,rtl:!1}}}],[{key:"_defaultHostConfig",get:function(){return r._defaultHostConfigLazy===void 0&&(r._defaultHostConfigLazy=new Yg.HostConfig),r._defaultHostConfigLazy}},{key:"getDerivedStateFromProps",value:function(n,u){var l=u.prevCardInfo;return!l||l.data!==n.data||l.layout!==n.layout||l.transform!==n.transform||l.environment!==n.environment||l.hostContext!==n.hostContext?(l={data:n.data,layout:n.layout,transform:n.transform,hostContext:n.hostContext,environment:n.environment},{prevCardInfo:l,adaptiveCard:r._generateAdaptiveCard(l)}):null}},{key:"_generateAdaptiveCard",value:function(n){var u=n.data&&typeof n.data=="object",l=u&&n.data.CardData!==null&&n.data.CardData!==void 0,d=l?n.data.CardData:n.data,p=u&&d.domain?d.domain:CU.CardSchema.Domain.None,v=n.environment||{};v=Object.assign(Object.assign({},v),{readOnly:!!(n.hostContext&&n.hostContext.readOnly),rtl:!!(n.hostContext&&n.hostContext.rtl)});var w=n.layout,k=n.transform;Dc(w)&&Dc(k)?(w=Jg.DomainCards.getCompiledLayoutForDomain(p,n.hostContext),k=Jg.DomainCards.getParsedTransformForDomain(p)):(w=Dc(w)?"{{$}}":w,k=Dc(k)?"$":k);try{return $S(d,k,w,v).card}catch(z){(0,rs.logMessage)("Error building adaptive card: "+z.message)}}}])}(BS.Component);Xi.CardView=NS;NS._defaultHostConfigLazy=void 0});var jS=T(qo=>{"use strict";f();Object.defineProperty(qo,"__esModule",{value:!0});qo.getExternalIcon=qo.setIcons=void 0;var TU=function(){return null},WS={};function AU(e){WS=e}qo.setIcons=AU;function kU(e){return WS[e]||TU}qo.getExternalIcon=kU});var $r=T(lt=>{"use strict";f();Object.defineProperty(lt,"__esModule",{value:!0});lt.getTemplateName=lt.setIcons=lt.setStringTable=lt.lookupIcon=lt.measureTime=lt.logElapsedTime=lt.setMessageLogger=lt.logError=lt.logMessage=lt.compileLayout=lt.isCompiledLayout=lt.CompiledLayout=lt.DomainCards=lt.CardSchema=lt.parseTransform=lt.buildAdaptiveCard=lt.CardView=void 0;var HS=US();Object.defineProperty(lt,"CardView",{enumerable:!0,get:function(){return HS.CardView}});Object.defineProperty(lt,"buildAdaptiveCard",{enumerable:!0,get:function(){return HS.buildAdaptiveCard}});var EU=Ol();Object.defineProperty(lt,"parseTransform",{enumerable:!0,get:function(){return EU.parseTransform}});var OU=Oi();Object.defineProperty(lt,"CardSchema",{enumerable:!0,get:function(){return OU.CardSchema}});var Lc=Gg();Object.defineProperty(lt,"DomainCards",{enumerable:!0,get:function(){return Lc.DomainCards}});Object.defineProperty(lt,"CompiledLayout",{enumerable:!0,get:function(){return Lc.CompiledLayout}});Object.defineProperty(lt,"isCompiledLayout",{enumerable:!0,get:function(){return Lc.isCompiledLayout}});Object.defineProperty(lt,"compileLayout",{enumerable:!0,get:function(){return Lc.compileLayout}});var ns=Pl();Object.defineProperty(lt,"logMessage",{enumerable:!0,get:function(){return ns.logMessage}});Object.defineProperty(lt,"logError",{enumerable:!0,get:function(){return ns.logError}});Object.defineProperty(lt,"setMessageLogger",{enumerable:!0,get:function(){return ns.setMessageLogger}});Object.defineProperty(lt,"logElapsedTime",{enumerable:!0,get:function(){return ns.logElapsedTime}});Object.defineProperty(lt,"measureTime",{enumerable:!0,get:function(){return ns.measureTime}});var PU=Zg();Object.defineProperty(lt,"lookupIcon",{enumerable:!0,get:function(){return PU.lookupIcon}});var IU=bg();Object.defineProperty(lt,"setStringTable",{enumerable:!0,get:function(){return IU.setStringTable}});var RU=jS();Object.defineProperty(lt,"setIcons",{enumerable:!0,get:function(){return RU.setIcons}});var qU=ko();Object.defineProperty(lt,"getTemplateName",{enumerable:!0,get:function(){return qU.getTemplateName}})});var Mc=T((HK,is)=>{f();function GS(e,r,a,n,u,l,d){try{var p=e[l](d),v=p.value}catch(w){return void a(w)}p.done?r(v):Promise.resolve(v).then(n,u)}function DU(e){return function(){var r=this,a=arguments;return new Promise(function(n,u){var l=e.apply(r,a);function d(v){GS(l,n,u,d,p,"next",v)}function p(v){GS(l,n,u,d,p,"throw",v)}d(void 0)})}}is.exports=DU,is.exports.__esModule=!0,is.exports.default=is.exports});var ax=T((mZ,ix)=>{f();ix.exports=OfficePlatformGlobal.SDX.StringResources});var ux=T((yZ,ox)=>{f();ox.exports=ax().StringResources.createLazyTable({location:"strings.resjson"})});var fx=T((RZ,cx)=>{f();cx.exports=OfficePlatformGlobal.Reka});var Px=T(Uc=>{"use strict";f();Object.defineProperty(Uc,"__esModule",{value:!0});Uc.defaultArrayComponentStyle=void 0;Uc.defaultArrayComponentStyle={headerBackgroundColor:"#fcfcfc",headerTextColor:"#9f9286",gridTextColor:"black",borderColor:"#e3eae3",ghostedTextColor:"gray",selectedTextColor:"black",selectedBorderColor:"rgb(63, 153, 70)",selectedBackgroundColor:"#e3eae3",alternatingEven:"#fcfcfc",alternatingOdd:"#fcfcfc",controlBackgroundColor:"#fcfcfc"}});var Ix=T(Wc=>{"use strict";f();Object.defineProperty(Wc,"__esModule",{value:!0});Wc.defaultArrayLocalizedStrings=void 0;Wc.defaultArrayLocalizedStrings={row:"Row",column:"Column",clickableCellRemarks:""}});var Gc=T($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.debounced=$t.useDebouncedFocus=$t.calculateColumnWidths=$t.calculateTotalTableWidth=$t.minColWidth=$t.cellPaddingInPixels=$t.sum=void 0;var jc=ye(),GU=function(r){return r.reduce(function(a,n){return a+n},0)};$t.sum=GU;$t.cellPaddingInPixels={borderWidth:1,internalMargin:4,horizontalContentMargin:4,gapBetweenIconAndText:2};var KU=32,Hc=function(r,a){return r+(a?$t.cellPaddingInPixels.gapBetweenIconAndText+KU:0)};$t.minColWidth=Hc(40,!1)+2*$t.cellPaddingInPixels.horizontalContentMargin;var Rx=Hc(400,!1),ZU=$t.cellPaddingInPixels.borderWidth+$t.cellPaddingInPixels.internalMargin*2+$t.cellPaddingInPixels.horizontalContentMargin*2;function JU(e){return(0,$t.sum)(e)+ZU*e.length+$t.cellPaddingInPixels.borderWidth}$t.calculateTotalTableWidth=JU;var YU=function(r,a){var n=[];if(r!=null)for(var u=0;u{"use strict";f();Object.defineProperty(Kc,"__esModule",{value:!0});Kc.isolateText=void 0;function eW(e){return"\u2068"+e+"\u2069"}Kc.isolateText=eW});var Lx=T(us=>{"use strict";f();Object.defineProperty(us,"__esModule",{value:!0});us.TouchableType=void 0;var tW;(function(e){e[e.Button=0]="Button",e[e.Selector=1]="Selector"})(tW=us.TouchableType||(us.TouchableType={}))});var gh=T(Mo=>{"use strict";f();var rW=xa();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.TouchableType=Mo.Touchable=void 0;var na=ye(),Mx=Dt(),Bx=Lx();Object.defineProperty(Mo,"TouchableType",{enumerable:!0,get:function(){return Bx.TouchableType}});Mo.Touchable=na.forwardRef(function(e,r){var a=na.useRef(void 0);na.useImperativeHandle(r,function(){return{focus:function(){a.current&&a.current.focus()}}});var n=na.useState(!1),u=rW(n,2),l=u[0],d=u[1],p=na.useCallback(function(){d(!0),e.onFocus&&e.onFocus()},[e.onFocus]),v=na.useCallback(function(){d(!1),e.onBlur&&e.onBlur()},[e.onBlur]),w=e.touchableType===Bx.TouchableType.Selector,k=w?"text":"button",z=l&&e.focusBackgroundColor?{backgroundColor:e.focusBackgroundColor}:void 0;return na.createElement(Mx.TouchableHighlight,Object.assign({style:[e.style,z],onPress:e.onPress,onFocus:p,onBlur:v},{focusable:!1},{underlayColor:"transparent"}),na.createElement(Mx.View,Object.assign({ref:a,accessible:!0,accessibilityLabel:e.accessibilityLabel,accessibilityRole:k},{focusable:!0,onKeyDown:e.onPress,validKeysDown:["Enter"]}),e.children))})});var jn=T((sJ,zx)=>{f();zx.exports=OfficePlatformGlobal.ReactJsxRuntime});var vh={};FR(vh,{FadeDirection:()=>mh,FadeOverlay:()=>oW});function aW(e,r,a){return(1-e)*r+e*a}var $x,ls,hh,Fx,Vx,nW,iW,mh,oW,ss,yh=Xv(()=>{"use strict";f();$x=Y(ye()),ls=Y(Dt()),hh=Y(jn()),Fx=10,Vx=5,nW=.2,iW=.9,mh=function(e){return e[e.Down=0]="Down",e[e.Across=1]="Across",e}({});oW=function(r){var a=r.fadeDirection===mh.Down?ss.gradientDown:ss.gradientAcross,n=$x.useMemo(function(){for(var u=[],l=Object.assign({},r.fadeDirection===mh.Down?ss.gradientBandDown:ss.gradientBandAcross,{backgroundColor:r.backgroundColor}),d={maxWidth:void 0,maxHeight:void 0},p=1;p<=Fx;++p){var v=aW(p/Fx,nW,iW);u.push((0,hh.jsx)(ls.View,{style:[l,{opacity:v},d]},p)),d=void 0}return u},[r.backgroundColor,r.fadeDirection]);return(0,hh.jsx)(ls.View,{style:[ss.container,a],children:n})},ss=ls.StyleSheet.create({container:{position:"absolute",left:0,right:0,top:0,bottom:0},gradientDown:{flexDirection:"column"},gradientAcross:{flexDirection:"row"},gradientBandDown:{flexGrow:1,maxHeight:Vx},gradientBandAcross:{flexGrow:1,maxWidth:Vx}})});var _h=T(Jc=>{"use strict";f();var uW=Ue(),sW=We(),lW=vt(),Nx=ht(),cW=yt();function fW(e,r,a){return r=Nx(r),lW(e,Wx()?Reflect.construct(r,a||[],Nx(e).constructor):r.apply(e,a))}function Wx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Wx=function(){return!!e})()}Object.defineProperty(Jc,"__esModule",{value:!0});Jc.Cell=void 0;var Hn=ye(),cs=Dt(),fs=Gc(),dW=Dx(),Ch=gh(),Ux=(yh(),ey(vh)),pW=function(e){function r(){var a;return uW(this,r),a=fW(this,r,arguments),a.refView=Hn.createRef(),a.refFocusable=Hn.createRef(),a.onFocus=function(){a.props.onCellFocused&&a.props.onCellFocused(a.refView,a.refFocusable,a.props.rowIndex,a.props.columnIndex)},a._onPressButton=function(){var n=a.props,u=n.navigateOnClickCell,l=n.data,d=n.updateSelection,p=n.rowIndex,v=n.columnIndex;l.icon&&u&&u(p,v),d&&d(p,v,p,v)},a}return cW(r,e),sW(r,[{key:"componentDidMount",value:function(){this.updateFocus()}},{key:"componentDidUpdate",value:function(n){this.props.selected!==n.selected&&this.updateFocus()}},{key:"shouldComponentUpdate",value:function(n){return n.data!==this.props.data||n.selected!==this.props.selected}},{key:"render",value:function(){var n=this.props,u=n.showTopBorder,l=n.rowIndex,d=n.columnIndex,p=n.data,v=n.width,w=n.height,k=n.flex,z=n.arrayStyle,W=n.textStyle,M=n.localizedStrings,P=n.navigateOnClickCell,A=n.updateSelection,G=n.ghosted,oe=n.selected,ee=n.onRenderIcon,se=p.icon&&ee&&ee(p.icon,gW(z,oe,G)),ce=this.props.rowTruncated||this.props.columnTruncated,L=!!(P&&se&&!ce),K=!ce&&(L||!!A),fe,ge=this.props.localizedStrings.column+" "+(d+1)+". "+M.row+" "+(l+1)+". "+p.value;Hn.isValidElement(p)?fe=p:(fe=Hn.createElement(cs.View,{style:Zc.content},se,Hn.createElement(cs.Text,{style:[se&&Zc.iconGap,Zc.text,W,{textAlign:p.textAlign||"left"},oe&&{color:z.selectedTextColor}],accessibilityLabel:ge,accessibilityRole:"text",numberOfLines:1},(0,dW.isolateText)(p.value))),K&&(L&&(ge=ge+". "+M.clickableCellRemarks),fe=Hn.createElement(Ch.Touchable,{ref:this.refFocusable,onPress:this._onPressButton,onFocus:this.onFocus,accessibilityLabel:ge,touchableType:L?Ch.TouchableType.Button:Ch.TouchableType.Selector},fe)));var at=u===!1?0:1,Ae=d==0?1:0;return Hn.createElement(cs.View,{ref:this.refView,style:[v&&{width:v},w&&{height:w},k&&{flexGrow:k,flexShrink:1},!v&&!k&&!w&&{flexGrow:1,flexShrink:1},{minWidth:fs.minColWidth}]},Hn.createElement(cs.View,{style:[oe&&{backgroundColor:z.selectedBackgroundColor},Zc.cell,{borderTopWidth:at,borderLeftWidth:Ae,borderColor:z.borderColor}]},fe),this.props.columnTruncated&&Hn.createElement(Ux.FadeOverlay,{backgroundColor:z.alternatingEven,fadeDirection:Ux.FadeDirection.Across}))}},{key:"updateFocus",value:function(){this.props.selected&&this.refFocusable.current&&this.refFocusable.current.focus()}}])}(Hn.Component);Jc.Cell=pW;function gW(e,r,a){return r?e.selectedTextColor:a?e.ghostedTextColor:e.gridTextColor}var Zc=cs.StyleSheet.create({cell:{justifyContent:"center",flexGrow:1,flexShrink:1,borderWidth:fs.cellPaddingInPixels.borderWidth,padding:fs.cellPaddingInPixels.internalMargin},content:{paddingHorizontal:fs.cellPaddingInPixels.horizontalContentMargin,backgroundColor:"transparent",flexDirection:"row"},iconGap:{marginStart:fs.cellPaddingInPixels.gapBetweenIconAndText},text:{flexGrow:1,flexShrink:1}})});var Zx=T(Xc=>{"use strict";f();var hW=Ue(),mW=We(),vW=vt(),jx=ht(),yW=yt();function CW(e,r,a){return r=jx(r),vW(e,Gx()?Reflect.construct(r,a||[],jx(e).constructor):r.apply(e,a))}function Gx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Gx=function(){return!!e})()}Object.defineProperty(Xc,"__esModule",{value:!0});Xc.Row=void 0;var Yc=ye(),Kx=Dt(),_W=_h(),Hx=(yh(),ey(vh)),bW=function(e){function r(a){var n;return hW(this,r),n=CW(this,r,[a]),n.state={selectionInRow:!1},n}return yW(r,e),mW(r,[{key:"shouldComponentUpdate",value:function(n,u){return n.data!==this.props.data||(n.selected?n.selected(n.rowNumber)||this.state.selectionInRow:!1)}},{key:"render",value:function(){var n=this,u=this.props,l=u.showTopBorder,d=u.rowNumber,p=u.data,v=u.rowStyle,w=u.widthArr,k=u.height,z=u.flex,W=u.arrayStyle,M=u.localizedStrings,P=u.textStyle,A=u.navigateOnClickCell,G=u.updateSelection,oe=u.selected,ee=u.onCellFocused,se=u.onRenderIcon,ce=this.props.columnsTruncated&&p?p.length-1:-1;return p?Yc.createElement(Kx.View,{style:[{height:k},SW.row,v]},p.map(function(L,K){var fe=w&&w[K],ge=oe&&oe(d,K)||!1;return Yc.createElement(_W.Cell,{showTopBorder:l,arrayStyle:W,rowIndex:d,columnIndex:K,key:K,data:L,width:fe,height:k,flex:z,textStyle:P(L.ghosted),navigateOnClickCell:A,updateSelection:G,rowTruncated:!!n.props.rowTruncated,columnTruncated:K===ce,ghosted:L.ghosted||!1,selected:ge,onCellFocused:ee,onRenderIcon:se,localizedStrings:M})}),this.props.rowTruncated&&Yc.createElement(Hx.FadeOverlay,{backgroundColor:W.alternatingEven,fadeDirection:Hx.FadeDirection.Down})):null}}],[{key:"getDerivedStateFromProps",value:function(n,u){return n.selected&&n.selected(n.rowNumber)!=u.selectionInRow?{selectionInRow:!u.selectionInRow}:null}}])}(Yc.Component);Xc.Row=bW;var SW=Kx.StyleSheet.create({row:{flexDirection:"row",overflow:"hidden"}})});var Jx=T(Bo=>{"use strict";f();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.Cell=Bo.Row=void 0;var xW=Zx();Object.defineProperty(Bo,"Row",{enumerable:!0,get:function(){return xW.Row}});var wW=_h();Object.defineProperty(Bo,"Cell",{enumerable:!0,get:function(){return wW.Cell}})});var Xx=T(ef=>{"use strict";f();Object.defineProperty(ef,"__esModule",{value:!0});ef.ArrayComponentWrapper=void 0;var Qc=ye(),Yx=Dt(),TW=function(r){var a=r.hasTableHeader,n=r.style,u=r.preview,l=r.width,d=r.allowHorizontalScroll,p=r.onScroll,v=r.children;return u?Qc.createElement(Qc.Fragment,null,v):Qc.createElement(Yx.ScrollView,{horizontal:!0,style:[n,{width:l}],scrollEnabled:d,showsHorizontalScrollIndicator:d,showsVerticalScrollIndicator:!1,onScroll:p},Qc.createElement(Yx.ScrollView,{style:{minWidth:l},showsHorizontalScrollIndicator:!1,stickyHeaderIndices:a?[0]:void 0,onScroll:p},v))};ef.ArrayComponentWrapper=TW});var bh=T(hn=>{"use strict";f();Object.defineProperty(hn,"__esModule",{value:!0});hn.ArrayComponentWrapper=hn.debounced=hn.calculateTotalTableWidth=hn.calculateColumnWidths=hn.sum=void 0;var tf=Gc();Object.defineProperty(hn,"sum",{enumerable:!0,get:function(){return tf.sum}});Object.defineProperty(hn,"calculateColumnWidths",{enumerable:!0,get:function(){return tf.calculateColumnWidths}});Object.defineProperty(hn,"calculateTotalTableWidth",{enumerable:!0,get:function(){return tf.calculateTotalTableWidth}});Object.defineProperty(hn,"debounced",{enumerable:!0,get:function(){return tf.debounced}});var AW=Xx();Object.defineProperty(hn,"ArrayComponentWrapper",{enumerable:!0,get:function(){return AW.ArrayComponentWrapper}})});var e1=T(rf=>{"use strict";f();Object.defineProperty(rf,"__esModule",{value:!0});rf.FocusZone=void 0;var kW=ye(),Qx=Dt(),EW=Gc(),OW=function(r){var a=r.onFocus,n=r.onBlur,u=r.onKeyPress,l=r.macosValidKeys,d=r.children,p=(0,EW.useDebouncedFocus)(a,n),v=p.onHandleFocus,w=p.onHandleBlur,k=function(W){return u(W.nativeEvent.key,W.nativeEvent.controlKey,W.nativeEvent.shiftKey)};return kW.createElement(Qx.View,Object.assign({style:PW.root},{onBlur:w,onFocus:v,onKeyDown:k,validKeysDown:l}),d)};rf.FocusZone=OW;var PW=Qx.StyleSheet.create({root:{flexGrow:1,flexShrink:1}})});var t1=T(nf=>{"use strict";f();var IW=Pi(),RW=xa();Object.defineProperty(nf,"__esModule",{value:!0});nf.OOUIContainerView=void 0;var or=ye(),ds=Dt(),qW=bh(),DW=e1(),LW=function(r,a){var n=or.useRef(void 0),u=or.useRef(void 0),l=or.useRef({isRTL:!1,verticalScrollbarWidth:0}),d=l.current,p=or.useState(void 0),v=RW(p,2),w=v[0],k=v[1],z=or.useCallback(function(){var ce=d.oouiInfo;if(!(!ce||!ce.refAnchor.current||!d.containerPositionInWindow||!d.anchorPositionInWindow)){var L=-2,K={x:d.anchorPositionInWindow.x-d.containerPositionInWindow.x+(d.isRTL?-(ce.width+1):d.anchorPositionInWindow.width+1),y:d.anchorPositionInWindow.y-d.containerPositionInWindow.y-ce.height+L},fe=d.containerPositionInWindow.width-d.verticalScrollbarWidth,ge=d.isRTL?d.verticalScrollbarWidth:0;if(K.x=Math.min(K.x,fe-ce.width),K.x=Math.max(K.x,ge),K.y=Math.max(K.y,L),d.anchorPositionInWindow.x+d.anchorPositionInWindow.widthd.containerPositionInWindow.x+fe||d.anchorPositionInWindow.yd.containerPositionInWindow.y+d.containerPositionInWindow.height){k(void 0);return}(!w||w.x!=K.x||w.y!=K.y)&&k(K)}},[w]),W=or.useCallback(function(){var ce=d.oouiInfo;!ce||!ce.refAnchor.current||ce.refAnchor.current.measureInWindow(function(L,K,fe,ge){l.current.anchorPositionInWindow={x:L,y:K,width:fe,height:ge},z()})},[z]),M=or.useRef(W);M.current=W;var P=or.useRef((0,qW.debounced)(250,function(){return M.current()}));or.useEffect(function(){return function(){return P.current.cancel()}},[]),or.useImperativeHandle(a,function(){return{showOOUI:function(L,K,fe,ge){d.oouiInfo={refAnchor:L,onRenderOOUICallback:K,width:fe,height:ge},d.anchorPositionInWindow=void 0,M.current()},updateVisibleVerticalScrollbarWidth:function(L){return d.verticalScrollbarWidth=L},anchorMoved:function(){return M.current()}}});var A=or.useCallback(function(ce){r.onLayout&&r.onLayout(ce),n.current.measureInWindow(function(L,K,fe,ge){d.containerPositionInWindow={x:L,y:K,width:fe,height:ge},z()})},[r.onLayout,z]),G=or.useCallback(function(){r.onBlur&&r.onBlur(),P.current.cancel(),d.oouiInfo=void 0,d.anchorPositionInWindow=void 0,k(void 0)},[r.onBlur]),oe=or.useCallback(function(ce,L,K){if(ce===ds.Platform.select({macos:"`",default:"Control"})){u.current&&u.current.focus();return}if((ce==="Escape"||ce==="Esc")&&!L&&!K){d.oouiInfo&&d.oouiInfo.refAnchor.current&&d.oouiInfo.refAnchor.current.focus();return}r.onKeyPress&&r.onKeyPress(ce,L,K)},[r.onKeyPress]),ee=or.useCallback(function(ce){d.isRTL=ce.nativeEvent.layout.x!==0},[]),se=d.oouiInfo;return or.createElement(ds.View,{ref:n,style:r.style,onLayout:A},or.createElement(DW.FocusZone,{onFocus:r.onFocus,onBlur:G,onKeyPress:oe,macosValidKeys:[].concat(IW(r.macosValidKeys),["`","Esc"])},or.createElement(ds.View,{style:MW.rtlSensor,onLayout:ee}),r.children,w&&se&&or.createElement(ds.View,{style:{position:"absolute",left:w.x,top:w.y,width:se.width,height:se.height}},se.onRenderOOUICallback(u))))},MW=ds.StyleSheet.create({rtlSensor:{position:"absolute",width:1,height:1,top:1,start:0}});nf.OOUIContainerView=or.forwardRef(LW)});var r1=T(af=>{"use strict";f();Object.defineProperty(af,"__esModule",{value:!0});af.oouiSupportedOnCurrentPlatform=void 0;function BW(){return!0}af.oouiSupportedOnCurrentPlatform=BW});var n1=T(ps=>{"use strict";f();var zW=xa();Object.defineProperty(ps,"__esModule",{value:!0});ps.ArrayPulloutOOUI=void 0;var Pa=ye(),FW=gh();ps.ArrayPulloutOOUI=Pa.forwardRef(function(e,r){var a=Pa.useState(!1),n=zW(a,2),u=n[0],l=n[1],d=Pa.useCallback(function(){return l(!0)},[]),p=Pa.useCallback(function(){return l(!1)},[]),v=Pa.useCallback(function(){return l(!0)},[]),w=Pa.useCallback(function(){return l(!1)},[]),k=e.arrayStyle;return Pa.createElement(FW.Touchable,{ref:r,style:e.style,onPress:e.onPress,onFocus:d,onBlur:p,onMouseEnter:v,onMouseLeave:w,focusBackgroundColor:k.selectedBackgroundColor,accessibilityLabel:e.accessibilityLabel,showTooltip:!0},e.onRenderIcon(e.oouiAction.iconId,u?k.selectedTextColor:k.gridTextColor))});ps.ArrayPulloutOOUI.displayName="ArrayPulloutOOUI"});var c1=T(of=>{"use strict";f();var VW=Ue(),$W=We(),NW=vt(),i1=ht(),UW=yt();function WW(e,r,a){return r=i1(r),NW(e,l1()?Reflect.construct(r,a||[],i1(e).constructor):r.apply(e,a))}function l1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(l1=function(){return!!e})()}Object.defineProperty(of,"__esModule",{value:!0});of.ArrayComponent=void 0;var Ia=ye(),jW=Dt(),a1=Px(),HW=Ix(),o1=Jx(),gs=bh(),GW=t1(),KW=r1(),ZW=n1(),u1=26,s1={width:u1,height:u1},zo=function(e){function r(a){var n;return VW(this,r),n=WW(this,r,[a]),n.refOOUIContainer=Ia.createRef(),n.focusedRow=-1,n.focusedColumn=-1,n.debouncedEnsureSelected=(0,gs.debounced)(250,function(u,l){n.isSelected(u,l)||n.updateSelection(u,l,u,l)}),n.debouncedEnsureSelectionNotEmpty=(0,gs.debounced)(250,function(){n.state.start.i===void 0&&n.updateSelection(0,0,0,0)}),n.isSelected=function(u,l){if(!n.state.selecting)return!1;var d=n.state,p=d.start,v=d.end,w=u>=p.i&&u<=v.i,k=u<=p.i&&u>=v.i;if(l===void 0)return w||k;var z=l>=p.j&&l<=v.j,W=l<=p.j&&l>=v.j;return z&&w||W&&w||W&&k||z&&k},n.navigateOnClickCell=function(u,l){return n.props.preview||!n.props.onClickCell?!1:(n.props.onClickCell(u,l),!0)},n.onRenderOOUI=function(u){var l=n.props.style||a1.defaultArrayComponentStyle,d=JW(l);return Ia.createElement(ZW.ArrayPulloutOOUI,{ref:u,style:d,arrayStyle:l,oouiAction:n.props.oouiAction,onPress:n.onPressOOUI,onRenderIcon:n.props.onRenderIcon,accessibilityLabel:n.props.oouiAction.tooltip})},n.onGridScroll=function(){n.refOOUIContainer.current.anchorMoved()},n.onUpdateScrollbarWidth=function(u){n.refOOUIContainer.current.updateVisibleVerticalScrollbarWidth(u)},n.onPressOOUI=function(){n.props.oouiAction&&n.props.oouiAction.onPress&&n.props.oouiAction.onPress(n.focusedRow,n.focusedColumn)},n.onGridFocus=function(){n.props.preview||(n.debouncedEnsureSelectionNotEmpty(),n.updateFocusState(!0))},n.onGridBlur=function(){n.props.preview||(n.debouncedEnsureSelectionNotEmpty.cancel(),n.debouncedEnsureSelected.cancel(),n.updateFocusState(!1))},n.onLayout=function(u){var l=u.nativeEvent.layout.width;n.state.layoutWidth!==l&&n.setState({layoutWidth:l})},n.onCellFocused=function(u,l,d,p){n.showOOUI(u,l,d,p),n.state.selecting&&(n.debouncedEnsureSelected.cancel(),n.isSelected(d,p)||n.debouncedEnsureSelected(d,p))},n.updateSelection=function(u,l,d,p){var v={start:{i:u,j:l},end:{i:d,j:p},selecting:!0};n.setState(v)},n.handleKeyboardPress=function(u,l,d){var p=n.state,v=p.start,w=p.end,k=p.selecting,z=n.props.value.rows.length-(n.props.rowsTruncated?1:0),W=z>0?n.props.value.rows[0].length-(n.props.colsTruncated?1:0):0;return z<=0||W<=0?!1:u==="ArrowRight"?n.handleNavigate(d,{i:0,j:l?W-w.j-1:1}):u==="ArrowLeft"?n.handleNavigate(d,{i:0,j:l?-w.j:-1}):u==="ArrowUp"?n.handleNavigate(d,{i:l?-w.i:-1,j:0}):u==="ArrowDown"?n.handleNavigate(d,{i:l?z-w.i-1:1,j:0}):u==="Enter"&&k&&v.i===w.i&&v.j===w.j&&n.props.value.rows[v.i][v.j].icon?n.navigateOnClickCell(v.i,v.j):!1},n.state={start:{},end:{},selecting:!1},n}return UW(r,e),$W(r,[{key:"componentWillUnmount",value:function(){this.debouncedEnsureSelectionNotEmpty.cancel(),this.debouncedEnsureSelected.cancel()}},{key:"render",value:function(){var n=this,u=this.props.style||a1.defaultArrayComponentStyle,l=this.props.localizedStrings||HW.defaultArrayLocalizedStrings,d=this.props.value.headerRow,p=this.props.value.rows,v=(0,gs.calculateColumnWidths)(d,p),w=(0,gs.calculateTotalTableWidth)(v),k=YW(u),z=this.props.preview,W=this.state.layoutWidth,M=W===void 0?!0:w>W,P=this.props.rowsTruncated?p.length-1:-1;return Ia.createElement(GW.OOUIContainerView,{ref:this.refOOUIContainer,style:k.container,onFocus:this.onGridFocus,onBlur:this.onGridBlur,onKeyPress:this.handleKeyboardPress,macosValidKeys:["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"],onLayout:z?void 0:this.onLayout},Ia.createElement(gs.ArrayComponentWrapper,{hasTableHeader:!!d,style:k.container,width:W,allowHorizontalScroll:M,preview:z,onScroll:this.onGridScroll,onUpdateVerticalScrollbarWidth:this.onUpdateScrollbarWidth,isRtl:this.props.isRtl},d&&Ia.createElement(o1.Row,{key:-1,rowNumber:-1,data:d.map(function(A){return{value:A}}),columnsTruncated:this.props.colsTruncated,widthArr:v,showTopBorder:!0,flex:1,rowStyle:k.header,arrayStyle:u,textStyle:r.getTextStyle(!0,k),localizedStrings:l}),p.map(function(A,G){return Ia.createElement(o1.Row,{showTopBorder:!d&&G==0,rowNumber:G,key:G,data:A,widthArr:v,flex:1,rowStyle:[k.row,G%2?k.oddRow:k.evenRow],columnsTruncated:n.props.colsTruncated,rowTruncated:G===P,arrayStyle:u,textStyle:r.getTextStyle(!1,k),selected:n.isSelected,onCellFocused:n.onCellFocused,navigateOnClickCell:n.props.preview?void 0:n.navigateOnClickCell,updateSelection:n.props.preview?void 0:n.updateSelection,onRenderIcon:n.props.onRenderIcon,localizedStrings:l})})))}},{key:"updateFocusState",value:function(n){this.state.selecting!==n&&this.setState({selecting:n})}},{key:"showOOUI",value:function(n,u,l,d){(0,KW.oouiSupportedOnCurrentPlatform)()&&this.props.oouiAction&&(this.focusedRow=l,this.focusedColumn=d,this.refOOUIContainer.current.showOOUI({current:{focus:function(){u.current&&u.current.focus()},measureInWindow:function(v){n.current&&n.current.measureInWindow(v)}}},this.onRenderOOUI,s1.width,s1.height))}},{key:"handleNavigate",value:function(n,u){if(u.i||u.j){var l=this.state,d=l.start,p=l.end,v=this.props.value.rows,w={i:d.i+u.i,j:d.j+u.j},k={i:p.i+u.i,j:p.j+u.j};if(v[k.i]&&typeof v[k.i][k.j]<"u")return this.setState({start:n?d:w,end:n?k:w,selecting:!0}),!0}return!1}}])}(Ia.Component);of.ArrayComponent=zo;zo.getTextStyle=function(e,r){return e?function(a){return zo.getHeaderTextStyle(a,r)}:function(a){return zo.getGridTextStyle(a,r)}};zo.getHeaderTextStyle=function(e,r){return e?r.ghostedGridText:r.headerText};zo.getGridTextStyle=function(e,r){return e?r.ghostedGridText:r.gridText};function JW(e){return{flexGrow:1,flexShrink:1,alignItems:"center",justifyContent:"center",backgroundColor:e.controlBackgroundColor,borderStyle:"solid",borderWidth:1,borderColor:e.borderColor}}function YW(e){return jW.StyleSheet.create({container:{flexGrow:1,flexShrink:1,backgroundColor:"transparent"},headerText:{fontFamily:e.fontFamily,fontSize:e.fontSizePixels,color:e.headerTextColor,fontWeight:"bold"},header:{backgroundColor:e.headerBackgroundColor,borderStyle:"solid",borderColor:e.borderColor},gridText:{fontFamily:e.fontFamily,fontSize:e.fontSizePixels,overflow:"hidden",color:e.gridTextColor},ghostedGridText:{fontFamily:e.fontFamily,fontSize:e.fontSizePixels,overflow:"hidden",color:e.ghostedTextColor},row:{borderStyle:"solid",borderColor:e.borderColor},evenRow:{backgroundColor:e.alternatingEven},oddRow:{backgroundColor:e.alternatingOdd}})}});var f1=T(uf=>{"use strict";f();Object.defineProperty(uf,"__esModule",{value:!0});uf.ArrayComponent=void 0;var XW=c1();Object.defineProperty(uf,"ArrayComponent",{enumerable:!0,get:function(){return XW.ArrayComponent}})});var d1=T(sf=>{"use strict";f();Object.defineProperty(sf,"__esModule",{value:!0});sf.ArrayComponent=void 0;var QW=f1();Object.defineProperty(sf,"ArrayComponent",{enumerable:!0,get:function(){return QW.ArrayComponent}})});var B1=T((dY,M1)=>{f();M1.exports=OfficePlatformGlobal.Ply.ContextualMenu});var $1=T((yY,V1)=>{f();V1.exports=OfficePlatformGlobal.Ply.Image});var U1=T((_Y,N1)=>{f();N1.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:24,height:24,scales:[1,2,3,4],hash:"4aebd4d1657b09b77b3c33e4634bcbdb",name:"sdx-cardview-backarrow",type:"png",__useShortPath:!0})});var j1=T((SY,W1)=>{f();W1.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:24,height:24,scales:[1,2,3,4],hash:"019289cbf3ea214767b5cf8513a08a95",name:"sdx-cardview-backarrow-rtl",type:"png",__useShortPath:!0})});var G1=T((wY,H1)=>{f();H1.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:12,height:12,scales:[1,2,3,4],hash:"8aa58150455c59e67436f5888649197c",name:"sdx-cardview-caret",type:"png",__useShortPath:!0})});var Z1=T((AY,K1)=>{f();K1.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:12,height:12,scales:[1,2,3,4],hash:"2165655e1b49812770f85b37dd9f1da5",name:"sdx-cardview-caret-rtl",type:"png",__useShortPath:!0})});var Y1=T((EY,J1)=>{f();J1.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:16,height:16,scales:[1,2,3,4],hash:"ae9199fb8b69f50e6c681f51cf24373e",name:"sdx-cardview-overflow",type:"png",__useShortPath:!0})});var Q1=T((PY,X1)=>{f();X1.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:24,height:24,scales:[1,2,3,4],hash:"49a92ffe5e08c4d10f5c051371ac5b53",name:"sdx-cardview-backarrow-dark",type:"png",__useShortPath:!0})});var tw=T((RY,ew)=>{f();ew.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:24,height:24,scales:[1,2,3,4],hash:"9f3366e1e9369e8b85033aa37eaafe1c",name:"sdx-cardview-backarrow-rtl-dark",type:"png",__useShortPath:!0})});var nw=T((DY,rw)=>{f();rw.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:12,height:12,scales:[1,2,3,4],hash:"194fe34b95892b47a92be0bb116cd248",name:"sdx-cardview-caret-dark",type:"png",__useShortPath:!0})});var aw=T((MY,iw)=>{f();iw.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:12,height:12,scales:[1,2,3,4],hash:"d7f733bbf6c09625d28f1aaead52045b",name:"sdx-cardview-caret-rtl-dark",type:"png",__useShortPath:!0})});var uw=T((zY,ow)=>{f();ow.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:16,height:16,scales:[1,2,3,4],hash:"c132620ee1f14100c64c9d0c749a23cc",name:"sdx-cardview-overflow-dark",type:"png",__useShortPath:!0})});var lw=T((VY,sw)=>{f();sw.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:2,height:18,scales:[1,2,3,4],hash:"0ce29280564794e639c04ebc46ea7295",name:"sdx-cardview-separator",type:"png",__useShortPath:!0})});var fw=T((NY,cw)=>{f();cw.exports=Ft().registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets",width:2,height:18,scales:[1,2,3,4],hash:"803a8e5f4ae66d4ebf1b62e3d90049b3",name:"sdx-cardview-separator-dark",type:"png",__useShortPath:!0})});var lT=T((FX,sT)=>{f();sT.exports=OfficePlatformGlobal.ReactNativeReka});var pT=T((HX,dT)=>{f();dT.exports=OfficePlatformGlobal.Telemetry.OTel});var xT=T((iQ,ST)=>{f();ST.exports=OfficePlatformGlobal.Telemetry.OTelSDX});f();var OT=Y(Dt());f();var tT=Y(Ue()),rT=Y(We()),nT=Y(vt()),zh=Y(ht()),iT=Y(yt()),oT=Y(ye());f();f();f();var pu=Y(ye()),Nj=Y(my());f();var vy=Y(ye()),si=vy.default.createContext(null);f();f();function r2(e){e()}var yy=r2,Cy=function(r){return yy=r},_y=function(){return yy};function n2(){var e=_y(),r=null,a=null;return{clear:function(){r=null,a=null},notify:function(){e(function(){for(var u=r;u;)u.callback(),u=u.next})},get:function(){for(var u=[],l=r;l;)u.push(l),l=l.next;return u},subscribe:function(u){var l=!0,d=a={callback:u,next:null,prev:a};return d.prev?d.prev.next=d:r=d,function(){!l||r===null||(l=!1,d.next?d.next.prev=d.prev:a=d.prev,d.prev?d.prev.next=d.next:r=d.next)}}}}var by={notify:function(){},get:function(){return[]}};function fu(e,r){var a,n=by;function u(z){return v(),n.subscribe(z)}function l(){n.notify()}function d(){k.onStateChange&&k.onStateChange()}function p(){return!!a}function v(){a||(a=r?r.addNestedSub(d):e.subscribe(d),n=n2())}function w(){a&&(a(),a=void 0,n.clear(),n=by)}var k={addNestedSub:u,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:p,trySubscribe:v,tryUnsubscribe:w,getListeners:function(){return n}};return k}f();var Sy=Y(ye()),du=Sy.useLayoutEffect;function i2(e){var r=e.store,a=e.context,n=e.children,u=(0,pu.useMemo)(function(){var p=fu(r);return{store:r,subscription:p}},[r]),l=(0,pu.useMemo)(function(){return r.getState()},[r]);du(function(){var p=u.subscription;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),l!==r.getState()&&p.notifyNestedSubs(),function(){p.tryUnsubscribe(),p.onStateChange=null}},[u,l]);var d=a||si;return pu.default.createElement(d.Provider,{value:u},n)}var Md=i2;f();f();function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var r=1;r=0;n--){var u=r[n](e);if(u)return u}return function(l,d){throw new Error("Invalid value of type "+typeof e+" for "+a+" argument when connecting component "+d.wrappedComponentName+".")}}function M2(e,r){return e===r}function B2(e){var r=e===void 0?{}:e,a=r.connectHOC,n=a===void 0?xl:a,u=r.mapStateToPropsFactories,l=u===void 0?zy:u,d=r.mapDispatchToPropsFactories,p=d===void 0?By:d,v=r.mergePropsFactories,w=v===void 0?Fy:v,k=r.selectorFactory,z=k===void 0?Wd:k;return function(M,P,A,G){G===void 0&&(G={});var oe=G,ee=oe.pure,se=ee===void 0?!0:ee,ce=oe.areStatesEqual,L=ce===void 0?M2:ce,K=oe.areOwnPropsEqual,fe=K===void 0?Xa:K,ge=oe.areStatePropsEqual,at=ge===void 0?Xa:ge,Ae=oe.areMergedPropsEqual,nt=Ae===void 0?Xa:Ae,Je=ga(oe,L2),pt=jd(M,l,"mapStateToProps"),ze=jd(P,p,"mapDispatchToProps"),ae=jd(A,w,"mergeProps");return n(z,wn({methodName:"connect",getDisplayName:function(Ot){return"Connect("+Ot+")"},shouldHandleStateChanges:!!M,initMapStateToProps:pt,initMapDispatchToProps:ze,initMergeProps:ae,pure:se,areStatesEqual:L,areOwnPropsEqual:fe,areStatePropsEqual:at,areMergedPropsEqual:nt},Je))}}var hu=B2();f();f();var V2=Y(ye());f();var z2=Y(ye());f();var mu=Y(ye());f();var Hd=Y(Dt());Cy(Hd.unstable_batchedUpdates);var Fh=Y($r());f();var px=Y(Mc()),gx=Y(Ue()),hx=Y(We()),oh=Y($r());f();f();f();f();f();f();function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ea(e)}f();function KS(e,r){if(Ea(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,r||"default");if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function ZS(e){var r=KS(e,"string");return Ea(r)=="symbol"?r:r+""}function JS(e,r,a){return(r=ZS(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function YS(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),a.push.apply(a,n)}return a}function Xg(e){for(var r=1;r"u"&&(a=r,r=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(Cr(1));return a(eh)(e,r)}if(typeof e!="function")throw new Error(Cr(2));var u=e,l=r,d=[],p=d,v=!1;function w(){p===d&&(p=d.slice())}function k(){if(v)throw new Error(Cr(3));return l}function z(A){if(typeof A!="function")throw new Error(Cr(4));if(v)throw new Error(Cr(5));var G=!0;return w(),p.push(A),function(){if(G){if(v)throw new Error(Cr(6));G=!1,w();var ee=p.indexOf(A);p.splice(ee,1),d=null}}}function W(A){if(!LU(A))throw new Error(Cr(7));if(typeof A.type>"u")throw new Error(Cr(8));if(v)throw new Error(Cr(9));try{v=!0,l=u(l,A)}finally{v=!1}for(var G=d=p,oe=0;oe"u")throw new Error(Cr(12));if(typeof a(void 0,{type:Bc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Cr(13))})}function QS(e){for(var r=Object.keys(e),a={},n=0;n"u"){var ee=k&&k.type;throw new Error(Cr(14))}W[P]=oe,z=z||oe!==G}return z=z||l.length!==Object.keys(w).length,z?W:w}}function th(){for(var e=arguments.length,r=new Array(e),a=0;a0&&arguments[0]!==void 0?arguments[0]:zU,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Vt.CARDVIEW_SET_HOSTCONTEXT:return r.payload;case Vt.CARDVIEW_SET_DEVICEORIENTATION:return Object.assign({},e,{isLandscapeMode:r.payload.isLandscapeMode});default:return e}}function VU(e){if(!e)return(0,On.logError)("No card data."),"";if(e.title)return e.title.value;if(!e.fields)return(0,On.logError)("Title property missing, and card fields do not exist."),"";var r=e.fields.filter(function(n){return n.isTitle});if(r.length===0)return(0,On.logError)("Failed to find title"),"";r.length!==1&&(0,On.logError)("More than one title is unexpected.");var a=r[0];if(a.display!==void 0)return a.display;switch(a.fieldType){case On.CardSchema.FieldType.Text:case On.CardSchema.FieldType.Hyperlink:return a.value;case On.CardSchema.FieldType.Number:return a.value.toString();default:return(0,On.logError)("Can't get title from title field."),""}}function $U(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,a=e===void 0||e.length===0?[]:e[e.length-1];switch(r.type){case Vt.CARD_NAVIGATE_IN:return e.length>0&&a.length>0?[].concat((0,Do.default)(e),[[].concat((0,Do.default)(a),[{key:r.payload.key,text:r.payload.text}])]):[].concat((0,Do.default)(e),[[{key:r.payload.key,text:r.payload.text}]]);case Vt.CARD_NAVIGATE_OUT:return e.length===1?[a.slice(0,-1)]:e.slice(0,-1);case Vt.CARD_NAVIGATE_TO:return[].concat((0,Do.default)(e),[a.slice(0,r.payload.index+1)]);case Vt.CARD_SET:return e.length>0||!r.payload.card?e:[].concat((0,Do.default)(e),[[{key:"",text:VU(r.payload.card)}]]);case Vt.CARD_CLEAR_CURRENT_CARD_PATH:return[];default:return e}return e}function NU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Vt.CARD_SET:return Object.assign({},e,(0,rh.default)({},r.payload.keyPath,r.payload.card));case Vt.CARD_ACTION_COMPLETED:var a=e[r.payload.keyPath];if(!a)return e;var n=r.payload.actionId,u=Object.assign({},a,{actions:a.actions.map(function(l){return l.actionId===n?Object.assign({},l,{icon:On.CardSchema.CardIcon.Checkmark,altText:_r.getString("reportConfirmationTooltip")}):l})});return Object.assign({},e,(0,rh.default)({},r.payload.keyPath,u));case Vt.CARD_CLEAR_LOADED_CARDS:return{};default:return e}}function UU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Vt.CARD_INCREMENT_STATE_COUNTER:return e+1;default:return e}}var sx=QS({hostContext:FU,cardPathStack:$U,loadedCards:NU,stateCounter:UU});function lx(e,r){var a=[nx.withExtraArgument(e)],n=th(ex.apply(void 0,a)),u=eh(sx,r,n);return u}f();var dx=Y(fx()),nh={CardViewControllerService:["CardView::CardViewControllerService",{performCardAction:["FireAndForgetMethod",["$string","$string","$string","$string"]],closeCard:["FireAndForgetMethod",["$string"]],getCardData:["ReturnsPromiseMethod","$string",["$string","$string","$string"]],notifyCardRendered:["FireAndForgetMethod",["$string"]],notifyOlderProtocol:["FireAndForgetMethod",["$number"]],openUrl:["FireAndForgetMethod",["$string"]]}],CardViewUIService:["CardView::CardViewUIService",{notifyActionCompleted:["FireAndForgetMethod",["$string","$string","$string"]],notifyCardChanged:["FireAndForgetMethod",["$string"]],setDeviceOrientation:["FireAndForgetMethod",["$string","$boolean"]]}]},Qi={CardViewControllerService:dx.RekaServiceRegistry.getNativeService(nh.CardViewControllerService)};f();var Lo=Y($r()),ih={"-1":Lo.CardSchema.Domain.None,536870912:Lo.CardSchema.Domain.Geography,268435456:Lo.CardSchema.Domain.Stock,1342177536:Lo.CardSchema.Domain.Food,268436224:Lo.CardSchema.Domain.Addin},ea=function(e){return e.ReportContent="ReportContent",e.DismissCard="DismissCard",e.CopyToGrid="CopyToGrid",e.CopyCardToGrid="CopyCardToGrid",e.CopyMultipleToGrid="CopyMultipleToGrid",e.NavigateIn="NavigateIn",e}({});var ah=function(e){return e.Load="load",e.Refresh="refresh",e}({});var zc={},jU=function(){function e(r){(0,gx.default)(this,e),this.cardId=r}return(0,hx.default)(e,[{key:"performCardAction",value:function(a,n,u){var l="";n===ea.CopyToGrid&&u&&u.extractType===void 0?l=u.field:l=u?JSON.stringify(u):void 0,Qi.CardViewControllerService.performCardAction(this.cardId,a,n,l)}},{key:"closeCard",value:function(){Qi.CardViewControllerService.closeCard(this.cardId)}},{key:"getCardData",value:function(){var r=(0,px.default)(function*(n,u){(0,oh.logMessage)("Begin getCardData for key path '".concat(u,"'."));var l=yield Qi.CardViewControllerService.getCardData(this.cardId,n,u);return(0,oh.logMessage)("End getCardData."),l});function a(n,u){return r.apply(this,arguments)}return a}()},{key:"notifyCardRendered",value:function(){Qi.CardViewControllerService.notifyCardRendered(this.cardId)}},{key:"openUrl",value:function(a){Qi.CardViewControllerService.openUrl(a)}}])}();function mx(e){var r=lx(new jU(e));return zc[e]=r,r}function vx(e,r){(!r||zc[e]===r)&&(zc[e]=null)}function Fc(e){return zc[e]}f();function yx(e){return{type:Vt.CARDVIEW_SET_HOSTCONTEXT,payload:e}}function Cx(e){return{type:Vt.CARDVIEW_SET_DEVICEORIENTATION,payload:{isLandscapeMode:e}}}function as(e,r){return{type:Vt.CARD_SET,payload:{keyPath:e,card:r}}}function _x(e,r){return{type:Vt.CARD_NAVIGATE_IN,payload:{key:e,text:r}}}function bx(){return{type:Vt.CARD_NAVIGATE_OUT}}function Sx(e){return{type:Vt.CARD_NAVIGATE_TO,payload:{index:e}}}function xx(e,r){return{type:Vt.CARD_ACTION_COMPLETED,payload:{keyPath:e,actionId:r}}}function uh(){return{type:Vt.CARD_CLEAR_LOADED_CARDS}}function wx(){return{type:Vt.CARD_CLEAR_CURRENT_CARD_PATH}}function Tx(){return{type:Vt.CARD_INCREMENT_STATE_COUNTER}}f();var k1=Y(Pi()),gi=Y(Mc()),Nr=Y($r()),cf=Y(Zt()),YJ=Y(Xl());f();var Vc=Y($r());function Ax(e){var r=typeof e=="string"?sh(e):e;if(!r)return null;var a=r.CardData?r.CardData:r;return a?(a.domain=a.domain?ih[a.domain]:ih[-1],a):null}var sh=function(r){try{return r&&JSON.parse(r)}catch(a){return(0,Vc.logMessage)(a.message),null}};function kx(e){if(typeof e.description=="string")return e.description;switch(e.layoutId){case"ArrayCard":if(typeof e.headerLabel=="string")return e.headerLabel;break;case"ImageCard":{var r=e.fields[0].display;if(typeof r=="string")return r}break;default:break}return(0,Vc.logError)("Can't get accessibility label for card."),""}f();var ta=Y($r());function $c(e){return e.stateCounter}function lh(e,r){return e!==$c(r)}function HU(e){return e.replace(/\//g,"\\/")}function Nc(e){var r=e.cardPathStack===void 0?[]:e.cardPathStack,a=r.length;if(a!==0){var n=r[a-1];if(n.length===0){(0,ta.logMessage)("Unexpeced error: invalid card path. A card path always has at least one item.");return}return n}}function ch(e){if(!e)return"";var r=e.map(function(a){return HU(a.key)});return r.join("/")}function ra(e){return ch(Nc(e))}function fh(e){var r=Nc(e);if(!(r===void 0||r.length<2)){var a=r.slice(0,-1);return ch(a)}}function os(e){if(!e.cardPathStack||!e.loadedCards)return null;var r=Nc(e),a=ch(r);return e.loadedCards[a]||null}function Oa(e){return e.hostContext}function Ex(e){return e.cardPathStack}function Ox(e){var r=Nc(e);if(!r)return"";var a=r[r.length-1];return a.key}function dh(e){var r=Ox(e),a=Object.values(e.loadedCards)[0].fields,n=a[Object.keys(a).find(function(l){return a[l].key===r})],u=n&&n.action&&n.action.parameters&&n.action.parameters.extractType?n.action.parameters:{field:r};return u}function ph(e){var r,a,n,u=fh(e);if(u===void 0)return"";var l=Ox(e),d=e.loadedCards[u];if(!d||d.layoutId!=="ArrayCard")return l;var p=l.match(/\d+,(\d+)/);if(!p)return(0,ta.logError)("Expected key to be an array coordinate."),l;var v=parseInt(p[1],10);if(((r=d.fields)==null?void 0:r.length)!==1)return(0,ta.logError)("Array card - expecting 1 field."),l;var w=d.fields[0];return w.fieldType!==ta.CardSchema.FieldType.Array?((0,ta.logError)("Expecting field to be an array value."),l):(a=(n=w.value.headerRow)==null?void 0:n[v])!=null?a:l}f();var Ra=Y(ye()),Xr=Y(pi()),p1=Y(d1()),g1=Y(oc());var hs=Y(jn()),ms="Array",e6={fnRenderElement:r6,fnSanitize:n6};function h1(){(0,Xr.registerElementHandler)(ms,e6)}var vs=function(e){return e.ClickCell="ClickCell",e.OOUIAction="OOUIAction",e}({}),t6=function(r){var a=r.cardContext,n=r.element,u=r.spacing,l=r.renderChildElement,d=r.containerStyleName,p=Ra.useCallback(function(M,P){a.onExecuteAction((0,Xr.createEventAction)(n,vs.ClickCell,{row:M,col:P}))},[a,n]),v={row:_r.getString("arrayControlRow"),column:_r.getString("arrayControlColumn"),clickableCellRemarks:_r.getString("arrayControlContainsDataType")},w=Ra.useMemo(function(){return{iconId:"addToTable",tooltip:_r.getString("arrayControlCopyToGridTooltip"),onPress:function(P,A){a.onExecuteAction((0,Xr.createEventAction)(n,vs.OOUIAction,{row:P,col:A}))}}},[a,n]),k=Ra.useCallback(function(M,P){var A=P?(0,Xr.platformColorToAdaptiveCardColorValue)(P):void 0;return l({type:"Icon",iconId:M,color:A},0,1)},[l]),z=Ra.useMemo(function(){return Object.assign({},(0,Xr.elementSpacingToSpacingStyle)(u),{flexGrow:1,flexShrink:1})},[u]),W=Ra.useMemo(function(){var M=a.hostConfig,P=a.hostConfig.containerStyles.getStyle(d);return{fontFamily:M.fontFamily,fontSizePixels:M.fontSizes.default,headerTextColor:P.getForegroundColor("dark"),headerBackgroundColor:P.getBackgroundColor("arrayHeader"),ghostedTextColor:P.getForegroundColor("light",!0),gridTextColor:P.getForegroundColor("light"),borderColor:P.getForegroundColor("tableBorder"),selectedBorderColor:P.getForegroundColor("tableSelectedBorder"),selectedTextColor:P.getForegroundColor("accent"),selectedBackgroundColor:P.getBackgroundColor("accent"),alternatingEven:P.getBackgroundColor("arrayAlternatingEven"),alternatingOdd:P.getBackgroundColor("arrayAlternatingOdd"),controlBackgroundColor:P.getBackgroundColor("light")}},[a.hostConfig,d]);return(0,hs.jsx)(Xr.ACView,{style:z,separator:u.separator,children:(0,hs.jsx)(p1.ArrayComponent,{style:W,value:n.value,preview:n.preview,rowsTruncated:n.rowsTruncated,colsTruncated:n.colsTruncated,onClickCell:p,onRenderIcon:k,oouiAction:n.showOOUI?void 0:w,isRtl:a.isRTL,localizedStrings:v})})};function r6(e,r,a,n,u,l){return(0,hs.jsx)(Xr.ContainerStyleContext.Consumer,{children:function(p){return(0,hs.jsx)(t6,{cardContext:u,element:e,spacing:a,renderChildElement:l,containerStyleName:p})}},r)}function n6(e,r){var a,n,u;if(r&&r.type===ms){var l=g1.Sanitizer.sanitizeBaseElement(r);if(l){var d=i6(r);if(d)return Object.assign({},l,{type:ms,value:d,colsTruncated:r.colsTruncated,rowsTruncated:r.rowsTruncated||!((a=r.value)!=null&&(n=a.rows)!=null&&(u=n[0])!=null&&u.length),preview:r.preview,showOOUI:r.showOOUI})}}}function i6(e){var r,a,n,u=e.value,l=(u==null||(r=u.rows)==null||(a=r[0])==null?void 0:a.length)||(u==null||(n=u.headerRow)==null?void 0:n.length);if(l)return{headerRow:a6(u.headerRow,l),rows:o6(u.rows,l)}}function a6(e,r){if(!e)return null;var a=new Array(r);if(r===1)return a[0]=e[0]?e[0]:null,a[0]?a:null;for(var n=0;n 0 ? $join($parameters[[0 .. $paramIndex - 1]], ",") & ",",\n { "weight": "bolder", "text": $parameters[$paramIndex] },\n ($x := $join($parameters[[$paramIndex + 1 .. $count($parameters)]], ","); $count($x) > 0 ? "," & $x),\n ")"\n ];\n\n isCollapsed\n ?\n {\n "icon": "downChevron",\n "altText": "Expand Card",\n "functionSignatureLabel": "Function Name",\n "functionSignature": $functionSignature\n }\n :\n {\n "icon": "upChevron",\n "altText": "Collapsed Card",\n "functionSignatureLabel": "Function Name",\n "functionSignature": $functionSignature,\n "expandedInfo": {\n "functionSummaryLabel": "Function Summary",\n "functionSummary": functionDescription,\n "argumentDefinitionLabel": "Argument Definition",\n "argumentDefinition": [\n { "weight": "bolder", "text": $trim($parameters[$paramIndex]) },\n " ",\n parameterDescription\n ]\n }\n }\n )}}',type:"AdaptiveCard",version:"1.0",body:[{type:"ColumnSet",columns:[{type:"Column",width:"auto",items:[{type:"TextBlock",text:"{{functionSignatureLabel}}",officeStyle:"SmallSecondary",wrap:!0},{type:"TextBlock",text:"{{functionSignature}}",size:"medium",spacing:"small",wrap:!0}]},{type:"Column",width:"stretch",items:[]},{$template:"actionIcon"}]},{$source:"{{expandedInfo}}",$template:"detail"}],padding:"medium",$templates:{actionIcon:{type:"Column",width:"auto",style:"button",noShrink:!0,items:[{type:"Container",padding:"small",items:[{type:"Icon",iconId:"{{$this.icon}}"}],selectAction:{type:"Action.Submit",title:"{{$this.altText}}",data:{actionId:"ToggleExpandCard"}}}]},detail:{type:"Container",items:[{padding:"medium",type:"TextBlock",text:"{{functionSummaryLabel}}",officeStyle:"SmallSecondary",wrap:!0},{type:"TextBlock",text:"{{functionSummary}}",spacing:"small",wrap:!0},{type:"TextBlock",text:"{{argumentDefinitionLabel}}",officeStyle:"SmallSecondary",wrap:!0},{type:"TextBlock",text:"{{argumentDefinition}}",spacing:"small",wrap:!0}]}}},y1={type:"AdaptiveCard",version:"1.0",body:[{$source:"{{fields[0]}}",type:"Container",height:"stretch",verticalContentAlignment:"center",items:[{$source:"{{$sift(function($v, $key){$key != 'attributions'})}}",$template:"imageValue"},{$source:"{{attributions ? [[attributions]]}}",$template:"imageAttributionToggleButton",id:"image"}]},{$source:"{{fields[0].(attributions ? [[attributions]])}}",$template:"imageAttributions",id:"image"},{$source:"{{$this}}",$template:"cardFooter"}]},C1={type:"AdaptiveCard",version:"1.0",markdown:!1,body:[{type:"TextBlock",text:"{{convertToDomainName}}",weight:"bolder",officeStyle:"LargeStandard",wrap:!0},{type:"Image",horizontalAlignment:"center",url:"{{urlValue}}",altText:"{{imageAltText}}",maxPixelHeight:300,onError:{$template:"imageError"}},{type:"TextBlock",text:"{{longDescription}}",wrap:!0},{type:"Container",separator:!0,items:[{$source:{altText:"{{helpText}}",icon:"Unknown",actionId:"HelpLink",parameters:{helpId:"{{helpId}}"}},$template:"actionIconWithText"}]}]},_1={type:"AdaptiveCard",version:"1.0",padding:{top:"padding"},body:[{$source:{text:"{{headerLabel}}"},$template:"title"},{type:"Container",height:"stretch",padding:{left:"padding",right:"padding"},items:[{$source:"{{fields[0]}}",$template:"arrayCard"}]},{$template:"cardFooter"}]},b1={type:"AdaptiveCard",version:"1.0",body:[{type:"Container",verticalContentAlignment:"center",height:"stretch",items:[{type:"TextBlock",text:"{{fields[key = 'errorCardString'].value}}",size:"medium",horizontalAlignment:"center",wrap:!0}]}]};function u6(e){return(0,Sh.isObject)(e)}var s6=function(r){return r},S1=s6({GenericRichErrorCard:{layout:m1},FormulaAssistantCard:{layout:v1},ImageCard:{layout:y1},AutoDetectTooltip:{layout:C1},ArrayCard:{layout:_1},ErrorCard:{layout:b1}});function l6(e){var r=S1[e];if(r){if(!r.compiledLayout)try{r.compiledLayout=(0,lf.compileLayout)(r.layout)}catch(a){(0,lf.logMessage)("Error compiling layout: ".concat(e,". Error: ").concat(a.message,"."))}return r.compiledLayout}}function x1(e){var r=e&&e.layoutId;return r?l6(r):void 0}function c6(e){return(0,Sh.isObject)(e)&&!!(e.fields&&e.fields.length!==0||e.title)}function xh(e){if(!u6(e))return!1;if(e.layoutId){var r=S1[e.layoutId];if(!r)return!1;var a=r.isNonEmptyCard;return a?a(e):!0}return c6(e)}f();f();var Gn=function(e){return e.ExecuteCardAction="ExecuteCardAction",e.NavigationBar="NavigationBar",e.GetCardDataJson="GetCardDataJson",e.CardLayoutData="CardLayoutData",e}({}),wh=function(e){return e.CardViewControlCreated="CardViewControlCreated",e}({});f();var w1=Y(Ue()),T1=Y(We()),Or=function(){function e(){(0,w1.default)(this,e)}return(0,T1.default)(e,null,[{key:"setTelemetryLogger",value:function(a){e.telemetryLogger=a}},{key:"setNullTelemetryLogger",value:function(){e.setTelemetryLogger({createActivity:function(n){return{addData:function(l,d){},send:function(l){}}},createEvent:function(n){return{addData:function(l,d){},send:function(){}}}})}},{key:"createActivity",value:function(a){return e.telemetryLogger.createActivity(a)}},{key:"createEvent",value:function(a){return e.telemetryLogger.createEvent(a)}}])}();Or.telemetryLogger={createActivity:function(r){throw Error("A telemetry logger has not been set.")},createEvent:function(r){throw Error("A telemetry logger has not been set.")}};var f6={ImageCard:!1,ArrayCard:!0};function d6(e){return e.layoutId===void 0||f6[e.layoutId]||!1}function E1(e,r,a){return Th.apply(this,arguments)}function Th(){return Th=(0,gi.default)(function*(e,r,a){var n=Or.createActivity(Gn.GetCardDataJson);n.addData("KeyPath",a);try{var u=yield e.getCardData(r,a);return n.send(!0),u}catch(l){return(0,Nr.logMessage)("Failed to load card data: "+l),n.send(!1),null}}),Th.apply(this,arguments)}function O1(e,r,a,n){var u=null,l=!0;return u=Ax(e),l=typeof e=="string",u&&r!==""&&(l||(u=Object.assign({},u)),u.headerLabel=a,d6(u)&&!n&&(u.actions=[{icon:"addToTable",actionId:ea.CopyCardToGrid,altText:_r.getString("copyCardToGridTooltip")}].concat((0,k1.default)(u.actions||[])))),u}var ia=function(e){return e[e.Pending=1]="Pending",e[e.Error=3]="Error",e}(ia||{});function P1(e){var r=typeof e=="string"?sh(e):e;if(!r)return null;switch(r.LastAddinDeferredLinkedEntityRequestState){case ia.Pending:return ia.Pending;case ia.Error:return ia.Error;default:return null}}var qa=function(e){return e[e.Succeeded=0]="Succeeded",e[e.Failed=1]="Failed",e}(qa||{});function ff(){return function(){var e=(0,gi.default)(function*(r,a,n){var u,l=$c(a()),d=ra(a()),p=ph(a()),v=Oa(a()),w=yield E1(n,ah.Load,d),k=O1(w,d,p,v.readOnly),z=P1(w);if(lh(l,a()))return(0,Nr.logMessage)("state counter changed during loadCardDataAsync"),qa.Succeeded;var W=!xh(k);if(W){if(k&&k.domain===Nr.CardSchema.Domain.Addin&&z===ia.Pending)return qa.Succeeded;var M={headerLabel:void 0,domain:void 0,description:void 0,layoutId:"ErrorCard",fields:[{key:"errorCardString",fieldType:Nr.CardSchema.FieldType.Text,value:_r.getString("errorCardText")}]};return r(as(d,M)),qa.Failed}if(v.layoutTelemetry&&(u=k.metadata)!=null&&u.pods){var P,A,G=(P=k.metadata)==null||(A=P.pods)==null?void 0:A.reduce(function(se,ce){var L=(0,Nr.getTemplateName)(ce);return se[L]=(se[L]||0)+1,se},{}),oe=Or.createActivity(Gn.CardLayoutData);if(G){var ee=JSON.stringify(G);oe.addData("SectionTemplates",ee)}oe.send(!0)}return r(as(d,k)),qa.Succeeded});return function(r,a,n){return e.apply(this,arguments)}}()}function kh(e,r){return Ah.apply(this,arguments)}function Ah(){return Ah=(0,gi.default)(function*(e,r){var a=r();return os(a)?qa.Succeeded:yield e(ff())}),Ah.apply(this,arguments)}function I1(e,r){return function(){var a=(0,gi.default)(function*(n,u){n(Sx(e));var l=yield kh(n,u);r&&r.send(l===qa.Succeeded)});return function(n,u){return a.apply(this,arguments)}}()}function R1(){return function(){var e=(0,gi.default)(function*(r,a){r(bx()),yield kh(r,a)});return function(r,a){return e.apply(this,arguments)}}()}function A1(e,r){return function(){var a=(0,gi.default)(function*(n,u){n(_x(e,r)),yield kh(n,u)});return function(n,u){return a.apply(this,arguments)}}()}function Eh(){return function(){var e=(0,gi.default)(function*(r,a,n){r(Tx());var u=$c(a()),l=ra(a()),d=ph(a()),p=Oa(a()),v=yield E1(n,ah.Refresh,l),w=O1(v,l,d,p.readOnly),k=P1(v);if(lh(u,a())){(0,Nr.logMessage)("state counter changed during refreshCardDataAsync");return}if(!w){r(uh()),r(wx()),yield r(ff());return}var z=ra(a());if(z!==l){(0,Nr.logMessage)("User navigated during refresh, starting over"),yield r(Eh());return}if(r(uh()),!xh(w)&&w.domain===Nr.CardSchema.Domain.Addin){if(k===ia.Error){var W={headerLabel:void 0,domain:void 0,description:void 0,layoutId:"ErrorCard",fields:[{key:"errorCardString",fieldType:Nr.CardSchema.FieldType.Text,value:_r.getString("errorCardText")}]};r(as(l,W));return}if(k===ia.Pending)return}r(as(l,w))});return function(r,a,n){return e.apply(this,arguments)}}()}function q1(e,r){return function(){var a=(0,gi.default)(function*(n,u,l){switch(r.addData("ActionType",e.type),e.type){case cf.Types.ActionTypes.actionSubmit:var d=e.data;if(d.actionId)switch(r.addData("ActionId",d.actionId),d.actionId){case ea.DismissCard:l.closeCard();break;case ea.NavigateIn:{var p=d.parameters,v=p.key,w=p.text;yield n(A1(v,w))}break;case ea.CopyCardToGrid:{var k=u(),z=fh(k);if(z===void 0){(0,Nr.logMessage)("[WARNING] Invalid action - no parent card.");return}var W=dh(k);l.performCardAction(z,ea.CopyToGrid,W)}break;default:{var M=ra(u());l.performCardAction(M,d.actionId,d.parameters)}break}break;case cf.Types.ActionTypes.actionOpenUrl:l.openUrl(e.url);break;case cf.Types.ActionTypes.actionEvent:{var P=e;if(r.addData("ActionSourceType",P.sourceType),r.addData("ActionEvent",P.event),P.sourceType===ms)switch(P.event){case vs.ClickCell:{var A=P.eventArgs,G=A.row,oe=A.col,ee="".concat(G,",").concat(oe),se=os(u());if(!se)throw new Error("Click cell received, but there's no active card.");if(!se.fields||se.fields.length===0)throw new Error("Card has no fields.");if(se.fields.length!==1)throw new Error("Array cards should only have a single field.");if(se.fields[0].fieldType!==Nr.CardSchema.FieldType.Array)throw new Error("Field is not an array");var ce=se.fields[0].value,L=ce.rows[G][oe],K=typeof L=="string"?L:L.value;yield n(A1(ee,K))}break;case vs.OOUIAction:{var fe=P.eventArgs,ge=fe.row,at=fe.col,Ae=u(),nt=ra(Ae),Je=dh(Ae);l.performCardAction(nt,"CopyToGrid",Je.extractType?{field:"".concat(ge,",").concat(at),extractType:Je.extractType}:{field:"".concat(ge,",").concat(at)})}break}}break}});return function(n,u,l){return a.apply(this,arguments)}}()}f();var jw=Y(Ue()),Hw=Y(We()),Gw=Y(vt()),Bh=Y(ht()),Kw=Y(yt()),Zw=Y(Mc()),Yw=Y(ye());f();var Lw=Y(Ue()),Mw=Y(We()),Bw=Y(vt()),Mh=Y(ht()),zw=Y(yt()),Vw=Y(ye()),$w=Y(Dt()),Nw=Y($r());f();var Ph=Y(Zr()),Ur=Y(pi()),p6=20,ys={default:"#FFFFFF",subtle:"#FFFFFFA0"},g6={ios:"System",macos:"System",default:"Segoe UI"},h6={macos:{small:11,default:13,medium:13,large:15,extraLarge:18,huge:22},web:{small:11,default:13,medium:14,large:16,extraLarge:26,huge:32},default:{small:12,default:14,medium:17,large:21,extraLarge:26,huge:32}},Oh,D1;function L1(e){return(!Oh||e.ID!==D1)&&(Oh=new Ur.HostConfig({markdown:!1,useCSSColors:!0,choiceSetInputValueSeparator:",",supportsInteractivity:!0,fontFamily:Ph.Platform.select(g6),spacing:{extraSmall:3,small:3,default:8,medium:20,large:30,extraLarge:40,padding:10},separator:{lineThickness:1,lineColor:"#EEEEEE"},fontSizes:Ph.Platform.select(h6),fontWeights:{lighter:200,default:400,bolder:500},imageSizes:{small:p6,medium:80,large:160},containerStyles:{default:{foregroundColors:{default:{default:e.Text,subtle:e.TextSecondary},dark:{default:e.Text,subtle:e.Text},light:{default:e.Text,subtle:e.TextSecondary},accent:(0,Ur.semanticColor)("selectedTextColor"),good:{default:"#54A254",subtle:"#54A254DD"},warning:{default:"#C3AB23",subtle:"#C3AB23DD"},attention:{default:"#FF0000",subtle:"#FF0000DD"},groupBorder:(0,Ur.semanticColor)("separatorColor"),tableBorder:(0,Ur.semanticColor)("gridColor"),tableSelectedBorder:"#217346",disabledIcon:"#D8D8D8"},backgroundColors:{default:(0,Ur.semanticColor)("controlBackgroundColor"),dark:(0,Ur.semanticColor)("controlBackgroundColor"),light:(0,Ur.semanticColor)("controlBackgroundColor"),accent:(0,Ur.semanticColor)("selectedTextBackgroundColor"),arrayAlternatingEven:(0,Ur.semanticColor)("alternatingEvenContentBackgroundColor"),arrayAlternatingOdd:(0,Ur.semanticColor)("alternatingOddContentBackgroundColor"),arrayHeader:(0,Ur.semanticColor)("alternatingOddContentBackgroundColor")},focusOutlineColor:e.TextHover||e.TextSecondary,hoverBackgroundColor:void 0},button:{hoverBackgroundColor:(0,Ur.semanticColor)("unemphasizedSelectedTextBackgroundColor")},buttonSubtle:{basedOn:"button"},emphasis:{backgroundColor:e.BkgHover,hoverBackgroundColor:e.BkgPressed},overlay:{foregroundColors:{default:ys,accent:ys,good:ys,warning:ys,attention:ys},hyperlinkStyle:{color:"#FFFFFF",underline:!0},backgroundColor:"#000000A0",hoverBackgroundColor:"black",focusOutlineColor:"#FFFFFF"},attributionPane:{basedOn:"overlay",backgroundColor:"#333"},messageFrame:{backgroundColor:"#969696"},messageContent:{backgroundColor:e.TextDisabled}},actions:{maxActions:5,spacing:"default",buttonSpacing:10,showCard:{actionMode:"Inline",inlineTopMargin:16,style:"emphasis"},preExpandSingleShowCardAction:!1,actionsOrientation:"horizontal",actionAlignment:"left"},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:"medium",maxImageHeight:100},factSet:{title:{size:"default",color:"default",isSubtle:!1,weight:"bolder",wrap:!0},value:{size:"default",color:"default",isSubtle:!1,weight:"default",wrap:!0},spacing:10}}),D1=e.ID),Oh}var Uw=Y(Rp());f();f();var mw=Y(Ue()),vw=Y(We()),yw=Y(vt()),qh=Y(ht()),Cw=Y(yt()),bw=Y(ye()),Fo=Y(Dt());f();var df=Y(ye()),Cs=Y(Dt()),z1=Y(Xl()),pf=Y(pi()),F1=Y(B1()),Da=Y(jn()),m6=function(){},_s=function(r){var a=df.useRef(void 0),n=df.useCallback(function(){return F1.ContextualMenu.showContextualMenu(r.menuProps,a.current)},[r.menuProps]),u=typeof r.icon=="string"?{uri:r.icon}:r.icon,l=u?(0,Da.jsx)(Cs.Image,{style:m6(r.hostConfig),source:u}):(0,Da.jsx)(z1.Text,{style:{flexShrink:1},numberOfLines:1,children:r.text}),d=(0,Da.jsx)(Cs.View,{style:{height:32,marginStart:r.marginStart,marginEnd:r.marginEnd,paddingHorizontal:0,flexDirection:"row",alignItems:"center",paddingStart:r.paddingStart,paddingEnd:r.paddingEnd},children:l});if(!r.disabled){var p=r.menuProps?n:r.onClick;d=(0,Da.jsx)(pf.ACClickable,{hostConfig:r.hostConfig,title:r.tooltip,onPress:p,ref:a,accessibilityState:{disabled:r.disabled},children:d})}return(0,Da.jsx)(Cs.View,{style:{flexShrink:r.allowShrink?1:void 0,maxWidth:r.maxWidth},children:(0,Da.jsx)(pf.ContainerStyleContext.Provider,{value:"button",children:d})})};var JY=Y(Zr()),Sw=Y($1()),XY=Y(Dt());f();f();var bs=Y(Dt()),v6=U1(),y6=j1(),C6=G1(),_6=Z1(),b6=Y1(),S6=Q1(),x6=tw(),w6=nw(),T6=aw(),A6=uw(),k6=lw(),E6=fw();function dw(e){return e!==void 0&&e.theme==="dark"?bs.I18nManager.isRTL?x6:S6:bs.I18nManager.isRTL?y6:v6}function pw(e){return e!==void 0&&e.theme==="dark"?bs.I18nManager.isRTL?T6:w6:bs.I18nManager.isRTL?_6:C6}function gw(e){return e!==void 0&&e.theme==="dark"?A6:b6}function hw(e){return e!==void 0&&e.theme==="dark"?E6:k6}var O6={getBackIcon:dw,getCaretIcon:pw,getOverflowIcon:gw,getSeparatorIcon:hw};function Ss(){return O6}var mn=Y(jn());function P6(e,r,a){return r=(0,qh.default)(r),(0,yw.default)(e,_w()?Reflect.construct(r,a||[],(0,qh.default)(e).constructor):r.apply(e,a))}function _w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_w=function(){return!!e})()}var Ih=36,I6=72,R6={breadcrumbText:2},La={backButton:6,overflowButton:{left:7,right:4},separator:4,breadcrumb:5,breadcrumbText:3},Rh="",Dh=function(e){function r(a){var n;return(0,mw.default)(this,r),n=P6(this,r,[a]),n.onLayout=function(u){var l=u.nativeEvent.layout.width;n.setState({width:l})},n.state={width:void 0},n}return(0,Cw.default)(r,e),(0,vw.default)(r,[{key:"render",value:function(){return(0,mn.jsxs)(Fo.View,{style:{flexDirection:"row"},onLayout:this.onLayout,children:[this.renderBackButton(),this.renderSeparator(),this.renderHiddenList(),this.renderBreadcrumbs(),this.renderMeasureBreadcrumbs()]},"NavBarView")}},{key:"renderBackButton",value:function(){var n=this;if(!this.shouldRenderBackButton())return null;var u=_r.getString("navBarBackButtonLabel"),l=function(){var p=Or.createActivity(Gn.NavigationBar);p.addData("Action","Back"),n.props.navigateOut(),p.send(!0)};return(0,mn.jsx)(_s,{text:Rh,maxWidth:Ih,marginStart:La.backButton,marginEnd:La.backButton,icon:Ss().getBackIcon(this.props.hostContext),tooltip:u,onClick:l,hostConfig:this.props.hostConfig})}},{key:"renderSeparator",value:function(){return this.shouldRenderBackButton()?(0,mn.jsx)(Sw.Image,{style:{width:2,height:18,alignSelf:"center",maxWidth:Ih,marginEnd:La.separator},source:Ss().getSeparatorIcon(this.props.hostContext)}):null}},{key:"renderHiddenList",value:function(){var n=this,u=this.getNumberOfHiddenBreadcrumbs();if(u<=0)return null;var l=this.props.cardPathStack[this.props.cardPathStack.length-1],d=l.slice(0,u).map(function(k,z){return{key:z.toString(),name:k.text,onClick:function(){var M=Or.createActivity(Gn.NavigationBar);M.addData("Action","Overflow"),n.props.navigateTo(z,M)}}}).reverse(),p=!1,v;v={items:d};var w=_r.getString("navBarOverflowButtonLabel");return(0,mn.jsx)(_s,{text:Rh,maxWidth:Ih,marginStart:La.overflowButton.left,marginEnd:La.overflowButton.right,tooltip:w,icon:Ss().getOverflowIcon(this.props.hostContext),menuProps:v,hostConfig:this.props.hostConfig},"overflow")}},{key:"getSiblings",value:function(){return null}},{key:"renderHorizontalChevron",value:function(n){return(0,mn.jsx)(_s,{text:Rh,maxWidth:36,icon:Ss().getCaretIcon(this.props.hostContext),onClick:this.getSiblings,disabled:!0,hostConfig:this.props.hostConfig},n+">")}},{key:"renderBreadcrumbText",value:function(n,u){var l=this,d=function(){var v=Or.createActivity(Gn.NavigationBar);v.addData("Action","Breadcrumb"),l.props.navigateTo(n,v)};return(0,mn.jsx)(_s,{allowShrink:!0,text:u,marginStart:La.breadcrumbText,paddingEnd:R6.breadcrumbText,tooltip:u,onClick:d,disabled:!1,hostConfig:this.props.hostConfig},n)}},{key:"renderBreadcrumb",value:function(n,u){return(0,mn.jsxs)(Fo.View,{style:{flexShrink:1,flexDirection:"row",marginStart:La.breadcrumb},children:[this.renderHorizontalChevron(n),this.renderBreadcrumbText(n,u)]},n+"BreadcrumbContainer")}},{key:"renderBreadcrumbForMeasure",value:function(n,u,l){return(0,mn.jsx)(Fo.View,{onLayout:r.getOnLayoutCallbackForBreadcrumbMeasure(u,l),children:this.renderBreadcrumb(n,u)},n+"BreadcrumbMeasure")}},{key:"renderMeasureBreadcrumbs",value:function(){var n=this,u=this.props.cardPathStack.length;if(u===0)return null;var l=this.props.cardPathStack[u-1],d=l.filter(function(w){return r.breadcrumbSizeCache[w.text]===void 0});if(d.length===0)return null;var p=d.length,v=function(){--p===0&&n.forceUpdate()};return(0,mn.jsx)(Fo.View,{style:{width:0,overflow:"hidden"},children:(0,mn.jsx)(Fo.View,{style:{position:"absolute",flexDirection:"row"},children:d.map(function(w,k){return n.renderBreadcrumbForMeasure(k,w.text,v)})})})}},{key:"renderBreadcrumbs",value:function(){var n=this,u=this.getNumberOfBreadcrumbs();if(u===0)return null;var l=this.getNumberOfVisibleBreadcrumbs();if(l!==void 0){var d=this.props.cardPathStack[this.props.cardPathStack.length-1],p=u-l;return d.slice(p,u).map(function(v,w){return n.renderBreadcrumb(w+p,v.text)})}}},{key:"getNumberOfBreadcrumbs",value:function(){if(this.props.cardPathStack.length===0)return 0;var n=this.props.cardPathStack[this.props.cardPathStack.length-1];return n.length-1}},{key:"getNumberOfVisibleBreadcrumbs",value:function(){var n=this.state.width||0,u=this.getNumberOfBreadcrumbs();if(u===0)return 0;for(var l=n-I6,d=0,p=0,v=this.props.cardPathStack[this.props.cardPathStack.length-1],w=u-1;w>=0;--w){var k=r.breadcrumbSizeCache[v[w].text];if(k===void 0)return;if(d+=k,d<=l&&++p,d>=l)break}return Math.max(1,p)}},{key:"getNumberOfHiddenBreadcrumbs",value:function(){var n=this.getNumberOfVisibleBreadcrumbs();return n===void 0?0:this.getNumberOfBreadcrumbs()-n}},{key:"shouldRenderBackButton",value:function(){return this.props.cardPathStack.length>1}}],[{key:"getOnLayoutCallbackForBreadcrumbMeasure",value:function(n,u){return function(l){var d=l.nativeEvent.layout.width;r.breadcrumbSizeCache[n]=d,u()}}}])}(bw.Component);Dh.breadcrumbSizeCache={};var q6=function(r,a){return{cardPathStack:Ex(r),hostContext:Oa(r),hostConfig:a.hostConfig}},D6=function(r,a){return{navigateOut:function(){return r(R1())},navigateTo:function(u,l){return r(I1(u,l))}}},xw=hu(q6,D6)(Dh);f();var ww=Y(Ue()),Tw=Y(We()),Aw=Y(vt()),Lh=Y(ht()),kw=Y(yt()),Ow=Y(ye()),Pw=Y(Dt()),gf=Y(Fr()),Vo=Y(jn());function L6(e,r,a){return r=(0,Lh.default)(r),(0,Aw.default)(e,Ew()?Reflect.construct(r,a||[],(0,Lh.default)(e).constructor):r.apply(e,a))}function Ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(Ew=function(){return!!e})()}var M6=150,Iw=function(e){function r(){var a;(0,ww.default)(this,r);for(var n=arguments.length,u=new Array(n),l=0;l