@icanbwell/composite 1.658.0 → 1.659.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/184.index.js CHANGED
@@ -7,9 +7,9 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):_
7
7
  * Released under MIT license <https://lodash.com/license>
8
8
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
9
9
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
10
- */(function(){var d,D="4.17.21",H=200,V="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",A="Expected a function",y="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",P=500,g="__lodash_placeholder__",$=1,G=2,x=4,Z=1,F=2,te=1,ie=2,ce=4,j=8,O=16,ue=32,be=64,xe=128,we=256,_e=512,Ne=30,Ae="...",U=800,b=16,C=1,I=2,k=3,Y=1/0,oe=9007199254740991,Re=17976931348623157e292,de=0/0,ae=4294967295,re=ae-1,z=ae>>>1,ve=[["ary",xe],["bind",te],["bindKey",ie],["curry",j],["curryRight",O],["flip",_e],["partial",ue],["partialRight",be],["rearg",we]],ye="[object Arguments]",Je="[object Array]",at="[object AsyncFunction]",Tt="[object Boolean]",tt="[object Date]",Pe="[object DOMException]",Me="[object Error]",B="[object Function]",Q="[object GeneratorFunction]",J="[object Map]",le="[object Number]",Se="[object Null]",je="[object Object]",dt="[object Promise]",Xe="[object Proxy]",pt="[object RegExp]",ht="[object Set]",vt="[object String]",Qt="[object Symbol]",tr="[object Undefined]",Bt="[object WeakMap]",kt="[object WeakSet]",zt="[object ArrayBuffer]",Rr="[object DataView]",Er="[object Float32Array]",Fr="[object Float64Array]",$r="[object Int8Array]",cn="[object Int16Array]",vr="[object Int32Array]",Ge="[object Uint8Array]",Fe="[object Uint8ClampedArray]",Xt="[object Uint16Array]",rr="[object Uint32Array]",mr=/\b__p \+= '';/g,Ht=/\b(__p \+=) '' \+/g,Ir=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vr=/&(?:amp|lt|gt|quot|#39);/g,Gr=/[&<>"']/g,mn=RegExp(Vr.source),Hn=RegExp(Gr.source),Yn=/<%-([\s\S]+?)%>/g,ln=/<%([\s\S]+?)%>/g,$t=/<%=([\s\S]+?)%>/g,Ki=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,Xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jn=/[\\^$.*+?()[\]{}|]/g,qn=RegExp(Jn.source),pn=/^\s+/,Hr=/\s/,Ln=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ii=/\{\n\/\* \[wrapped with (.+)\] \*/,Mn=/,? & /,Dn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vt=/[()=,{}\[\]\/\s]/,hn=/\\(\\)?/g,zr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,In=/^[-+]0x[0-9a-f]+$/i,hi=/^0b[01]+$/i,Oi=/^\[object .+?Constructor\]$/,Tr=/^0o[0-7]+$/i,Zn=/^(?:0|[1-9]\d*)$/,da=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yn=/($^)/,Ni=/['\n\r\u2028\u2029\\]/g,Li="\\ud800-\\udfff",E="\\u0300-\\u036f",N="\\ufe20-\\ufe2f",ee="\\u20d0-\\u20ff",pe=E+N+ee,De="\\u2700-\\u27bf",Be="a-z\\xdf-\\xf6\\xf8-\\xff",nt="\\xac\\xb1\\xd7\\xf7",gt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",St=" \\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",Ot="A-Z\\xc0-\\xd6\\xd8-\\xde",Nt="\\ufe0e\\ufe0f",mt=nt+gt+ut+St,Mt="['\u2019]",Lt="["+Li+"]",xr="["+mt+"]",nr="["+pe+"]",Zr="\\d+",Yr="["+De+"]",Br="["+Be+"]",bi="[^"+Li+mt+Zr+De+Be+Ot+"]",Vn="\\ud83c[\\udffb-\\udfff]",Ci="(?:"+nr+"|"+Vn+")",Pi="[^"+Li+"]",Di="(?:\\ud83c[\\udde6-\\uddff]){2}",Rn="[\\ud800-\\udbff][\\udc00-\\udfff]",Wi="["+Ot+"]",Ms="\\u200d",qo="(?:"+Br+"|"+bi+")",_o="(?:"+Wi+"|"+bi+")",Ko="(?:"+Mt+"(?:d|ll|m|re|s|t|ve))?",po="(?:"+Mt+"(?:D|LL|M|RE|S|T|VE))?",Wo=Ci+"?",pa="["+Nt+"]?",ho="(?:"+Ms+"(?:"+[Pi,Di,Rn].join("|")+")"+pa+Wo+")*",Qo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ha="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zo=pa+Wo+ho,Is="(?:"+[Yr,Di,Rn].join("|")+")"+zo,So="(?:"+[Pi+nr+"?",nr,Di,Rn,Lt].join("|")+")",wi=RegExp(Mt,"g"),Ka=RegExp(nr,"g"),Na=RegExp(Vn+"(?="+Vn+")|"+So+zo,"g"),Eo=RegExp([Wi+"?"+Br+"+"+Ko+"(?="+[xr,Wi,"$"].join("|")+")",_o+"+"+po+"(?="+[xr,Wi+qo,"$"].join("|")+")",Wi+"?"+qo+"+"+Ko,Wi+"+"+po,ha,Qo,Zr,Is].join("|"),"g"),Ns=RegExp("["+Ms+Li+pe+Nt+"]"),Ls=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ou=["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"],ra=-1,on={};on[Er]=on[Fr]=on[$r]=on[cn]=on[vr]=on[Ge]=on[Fe]=on[Xt]=on[rr]=!0,on[ye]=on[Je]=on[zt]=on[Tt]=on[Rr]=on[tt]=on[Me]=on[B]=on[J]=on[le]=on[je]=on[pt]=on[ht]=on[vt]=on[Bt]=!1;var qr={};qr[ye]=qr[Je]=qr[zt]=qr[Rr]=qr[Tt]=qr[tt]=qr[Er]=qr[Fr]=qr[$r]=qr[cn]=qr[vr]=qr[J]=qr[le]=qr[je]=qr[pt]=qr[ht]=qr[vt]=qr[Qt]=qr[Ge]=qr[Fe]=qr[Xt]=qr[rr]=!0,qr[Me]=qr[B]=qr[Bt]=!1;var su={\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"},ge={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ke={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dt=parseFloat,Or=parseInt,Cr=typeof p.g=="object"&&p.g&&p.g.Object===Object&&p.g,Kr=typeof self=="object"&&self&&self.Object===Object&&self,Gt=Cr||Kr||Function("return this")(),sn=K&&!K.nodeType&&K,Kn=sn&&!0&&Ee&&!Ee.nodeType&&Ee,ai=Kn&&Kn.exports===sn,Wr=ai&&Cr.process,Gn=function(){try{var Ye=Kn&&Kn.require&&Kn.require("util").types;return Ye||Wr&&Wr.binding&&Wr.binding("util")}catch{}}(),Ui=Gn&&Gn.isArrayBuffer,Wa=Gn&&Gn.isDate,uu=Gn&&Gn.isMap,cu=Gn&&Gn.isRegExp,k_=Gn&&Gn.isSet,tc=Gn&&Gn.isTypedArray;function Si(Ye,ot,rt){switch(rt.length){case 0:return Ye.call(ot);case 1:return Ye.call(ot,rt[0]);case 2:return Ye.call(ot,rt[0],rt[1]);case 3:return Ye.call(ot,rt[0],rt[1],rt[2])}return Ye.apply(ot,rt)}function rc(Ye,ot,rt,Ut){for(var sr=-1,Xr=Ye==null?0:Ye.length;++sr<Xr;){var ti=Ye[sr];ot(Ut,ti,rt(ti),Ye)}return Ut}function oi(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length;++rt<Ut&&ot(Ye[rt],rt,Ye)!==!1;);return Ye}function nc(Ye,ot){for(var rt=Ye==null?0:Ye.length;rt--&&ot(Ye[rt],rt,Ye)!==!1;);return Ye}function ic(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length;++rt<Ut;)if(!ot(Ye[rt],rt,Ye))return!1;return!0}function vo(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length,sr=0,Xr=[];++rt<Ut;){var ti=Ye[rt];ot(ti,rt,Ye)&&(Xr[sr++]=ti)}return Xr}function lu(Ye,ot){var rt=Ye==null?0:Ye.length;return!!rt&&ne(Ye,ot,0)>-1}function Qa(Ye,ot,rt){for(var Ut=-1,sr=Ye==null?0:Ye.length;++Ut<sr;)if(rt(ot,Ye[Ut]))return!0;return!1}function Tn(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length,sr=Array(Ut);++rt<Ut;)sr[rt]=ot(Ye[rt],rt,Ye);return sr}function La(Ye,ot){for(var rt=-1,Ut=ot.length,sr=Ye.length;++rt<Ut;)Ye[sr+rt]=ot[rt];return Ye}function Xo(Ye,ot,rt,Ut){var sr=-1,Xr=Ye==null?0:Ye.length;for(Ut&&Xr&&(rt=Ye[++sr]);++sr<Xr;)rt=ot(rt,Ye[sr],sr,Ye);return rt}function ac(Ye,ot,rt,Ut){var sr=Ye==null?0:Ye.length;for(Ut&&sr&&(rt=Ye[--sr]);sr--;)rt=ot(rt,Ye[sr],sr,Ye);return rt}function Sa(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length;++rt<Ut;)if(ot(Ye[rt],rt,Ye))return!0;return!1}var w=Le("length");function l(Ye){return Ye.split("")}function S(Ye){return Ye.match(Dn)||[]}function R(Ye,ot,rt){var Ut;return rt(Ye,function(sr,Xr,ti){if(ot(sr,Xr,ti))return Ut=Xr,!1}),Ut}function q(Ye,ot,rt,Ut){for(var sr=Ye.length,Xr=rt+(Ut?1:-1);Ut?Xr--:++Xr<sr;)if(ot(Ye[Xr],Xr,Ye))return Xr;return-1}function ne(Ye,ot,rt){return ot===ot?Ei(Ye,ot,rt):q(Ye,Ie,rt)}function se(Ye,ot,rt,Ut){for(var sr=rt-1,Xr=Ye.length;++sr<Xr;)if(Ut(Ye[sr],ot))return sr;return-1}function Ie(Ye){return Ye!==Ye}function $e(Ye,ot){var rt=Ye==null?0:Ye.length;return rt?st(Ye,ot)/rt:de}function Le(Ye){return function(ot){return ot==null?d:ot[Ye]}}function Qe(Ye){return function(ot){return Ye==null?d:Ye[ot]}}function et(Ye,ot,rt,Ut,sr){return sr(Ye,function(Xr,ti,Sn){rt=Ut?(Ut=!1,Xr):ot(rt,Xr,ti,Sn)}),rt}function ze(Ye,ot){var rt=Ye.length;for(Ye.sort(ot);rt--;)Ye[rt]=Ye[rt].value;return Ye}function st(Ye,ot){for(var rt,Ut=-1,sr=Ye.length;++Ut<sr;){var Xr=ot(Ye[Ut]);Xr!==d&&(rt=rt===d?Xr:rt+Xr)}return rt}function bt(Ye,ot){for(var rt=-1,Ut=Array(Ye);++rt<Ye;)Ut[rt]=ot(rt);return Ut}function At(Ye,ot){return Tn(ot,function(rt){return[rt,Ye[rt]]})}function It(Ye){return Ye&&Ye.slice(0,tA(Ye)+1).replace(pn,"")}function wt(Ye){return function(ot){return Ye(ot)}}function ur(Ye,ot){return Tn(ot,function(rt){return Ye[rt]})}function Ct(Ye,ot){return Ye.has(ot)}function Yt(Ye,ot){for(var rt=-1,Ut=Ye.length;++rt<Ut&&ne(ot,Ye[rt],0)>-1;);return rt}function pr(Ye,ot){for(var rt=Ye.length;rt--&&ne(ot,Ye[rt],0)>-1;);return rt}function or(Ye,ot){for(var rt=Ye.length,Ut=0;rt--;)Ye[rt]===ot&&++Ut;return Ut}var ir=Qe(su),en=Qe(ge);function xi(Ye){return"\\"+Ze[Ye]}function An(Ye,ot){return Ye==null?d:Ye[ot]}function ei(Ye){return Ns.test(Ye)}function fu(Ye){return Ls.test(Ye)}function j_(Ye){for(var ot,rt=[];!(ot=Ye.next()).done;)rt.push(ot.value);return rt}function Ds(Ye){var ot=-1,rt=Array(Ye.size);return Ye.forEach(function(Ut,sr){rt[++ot]=[sr,Ut]}),rt}function bl(Ye,ot){return function(rt){return Ye(ot(rt))}}function Da(Ye,ot){for(var rt=-1,Ut=Ye.length,sr=0,Xr=[];++rt<Ut;){var ti=Ye[rt];(ti===ot||ti===g)&&(Ye[rt]=g,Xr[sr++]=rt)}return Xr}function si(Ye){var ot=-1,rt=Array(Ye.size);return Ye.forEach(function(Ut){rt[++ot]=Ut}),rt}function Cl(Ye){var ot=-1,rt=Array(Ye.size);return Ye.forEach(function(Ut){rt[++ot]=[Ut,Ut]}),rt}function Ei(Ye,ot,rt){for(var Ut=rt-1,sr=Ye.length;++Ut<sr;)if(Ye[Ut]===ot)return Ut;return-1}function eA(Ye,ot,rt){for(var Ut=rt+1;Ut--;)if(Ye[Ut]===ot)return Ut;return Ut}function _u(Ye){return ei(Ye)?MI(Ye):w(Ye)}function na(Ye){return ei(Ye)?Yh(Ye):l(Ye)}function tA(Ye){for(var ot=Ye.length;ot--&&Hr.test(Ye.charAt(ot)););return ot}var Hh=Qe(ke);function MI(Ye){for(var ot=Na.lastIndex=0;Na.test(Ye);)++ot;return ot}function Yh(Ye){return Ye.match(Na)||[]}function rA(Ye){return Ye.match(Eo)||[]}var nA=function Ye(ot){ot=ot==null?Gt:H_.defaults(Gt.Object(),ot,H_.pick(Gt,ou));var rt=ot.Array,Ut=ot.Date,sr=ot.Error,Xr=ot.Function,ti=ot.Math,Sn=ot.Object,Pl=ot.RegExp,iA=ot.String,Ea=ot.TypeError,Ml=rt.prototype,Y_=Xr.prototype,vi=Sn.prototype,Wn=ot["__core-js_shared__"],Il=Y_.toString,Nr=vi.hasOwnProperty,za=0,qh=function(){var o=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Nl=vi.toString,q_=Il.call(Sn),II=Gt._,aA=Pl("^"+Il.call(Nr).replace(Jn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oc=ai?ot.Buffer:d,wa=ot.Symbol,mi=ot.Uint8Array,Ll=oc?oc.allocUnsafe:d,ri=bl(Sn.getPrototypeOf,Sn),Kh=Sn.create,Ua=vi.propertyIsEnumerable,Dl=Ml.splice,wl=wa?wa.isConcatSpreadable:d,sc=wa?wa.iterator:d,Xa=wa?wa.toStringTag:d,xa=function(){try{var o=$s(Sn,"defineProperty");return o({},"",{}),o}catch{}}(),K_=ot.clearTimeout!==Gt.clearTimeout&&ot.clearTimeout,Wh=Ut&&Ut.now!==Gt.Date.now&&Ut.now,Qh=ot.setTimeout!==Gt.setTimeout&&ot.setTimeout,Ul=ti.ceil,du=ti.floor,xl=Sn.getOwnPropertySymbols,zh=oc?oc.isBuffer:d,Xh=ot.isFinite,W_=Ml.join,oA=bl(Sn.keys,Sn),Lr=ti.max,Ti=ti.min,sA=Ut.now,uA=ot.parseInt,Fl=ti.random,cA=Ml.reverse,Q_=$s(ot,"DataView"),uc=$s(ot,"Map"),cc=$s(ot,"Promise"),pu=$s(ot,"Set"),hu=$s(ot,"WeakMap"),lc=$s(Sn,"create"),Jo=hu&&new hu,Su={},lA=Vs(Q_),fc=Vs(uc),Ai=Vs(cc),fA=Vs(pu),_c=Vs(hu),Eu=wa?wa.prototype:d,dc=Eu?Eu.valueOf:d,Jh=Eu?Eu.toString:d;function fe(o){if(kn(o)&&!cr(o)&&!(o instanceof Dr)){if(o instanceof va)return o;if(Nr.call(o,"__wrapped__"))return qS(o)}return new va(o)}var vu=function(){function o(){}return function(s){if(!On(s))return{};if(Kh)return Kh(s);o.prototype=s;var f=new o;return o.prototype=d,f}}();function $l(){}function va(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=d}fe.templateSettings={escape:Yn,evaluate:ln,interpolate:$t,variable:"",imports:{_:fe}},fe.prototype=$l.prototype,fe.prototype.constructor=fe,va.prototype=vu($l.prototype),va.prototype.constructor=va;function Dr(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function Zh(){var o=new Dr(this.__wrapped__);return o.__actions__=Qi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Qi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Qi(this.__views__),o}function z_(){if(this.__filtered__){var o=new Dr(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function eS(){var o=this.__wrapped__.value(),s=this.__dir__,f=cr(o),M=s<0,X=f?o.length:0,he=JA(0,X,this.__views__),Ce=he.start,Ve=he.end,Ke=Ve-Ce,lt=M?Ve:Ce-1,_t=this.__iteratees__,Et=_t.length,Pt=0,xt=Ti(Ke,this.__takeCount__);if(!f||!M&&X==Ke&&xt==Ke)return Tu(o,this.__actions__);var Jt=[];e:for(;Ke--&&Pt<xt;){lt+=s;for(var gr=-1,Zt=o[lt];++gr<Et;){var hr=_t[gr],wr=hr.iteratee,aa=hr.type,Gi=wr(Zt);if(aa==I)Zt=Gi;else if(!Gi){if(aa==C)continue e;break e}}Jt[Pt++]=Zt}return Jt}Dr.prototype=vu($l.prototype),Dr.prototype.constructor=Dr;function Zo(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var M=o[s];this.set(M[0],M[1])}}function tS(){this.__data__=lc?lc(null):{},this.size=0}function rS(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function Fa(o){var s=this.__data__;if(lc){var f=s[o];return f===m?d:f}return Nr.call(s,o)?s[o]:d}function Vl(o){var s=this.__data__;return lc?s[o]!==d:Nr.call(s,o)}function _A(o,s){var f=this.__data__;return this.size+=this.has(o)?0:1,f[o]=lc&&s===d?m:s,this}Zo.prototype.clear=tS,Zo.prototype.delete=rS,Zo.prototype.get=Fa,Zo.prototype.has=Vl,Zo.prototype.set=_A;function Ja(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var M=o[s];this.set(M[0],M[1])}}function dA(){this.__data__=[],this.size=0}function nS(o){var s=this.__data__,f=mu(s,o);if(f<0)return!1;var M=s.length-1;return f==M?s.pop():Dl.call(s,f,1),--this.size,!0}function pA(o){var s=this.__data__,f=mu(s,o);return f<0?d:s[f][1]}function iS(o){return mu(this.__data__,o)>-1}function hA(o,s){var f=this.__data__,M=mu(f,o);return M<0?(++this.size,f.push([o,s])):f[M][1]=s,this}Ja.prototype.clear=dA,Ja.prototype.delete=nS,Ja.prototype.get=pA,Ja.prototype.has=iS,Ja.prototype.set=hA;function mo(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var M=o[s];this.set(M[0],M[1])}}function SA(){this.size=0,this.__data__={hash:new Zo,map:new(uc||Ja),string:new Zo}}function EA(o){var s=uf(this,o).delete(o);return this.size-=s?1:0,s}function vA(o){return uf(this,o).get(o)}function aS(o){return uf(this,o).has(o)}function mA(o,s){var f=uf(this,o),M=f.size;return f.set(o,s),this.size+=f.size==M?0:1,this}mo.prototype.clear=SA,mo.prototype.delete=EA,mo.prototype.get=vA,mo.prototype.has=aS,mo.prototype.set=mA;function ws(o){var s=-1,f=o==null?0:o.length;for(this.__data__=new mo;++s<f;)this.add(o[s])}function TA(o){return this.__data__.set(o,m),this}function AA(o){return this.__data__.has(o)}ws.prototype.add=ws.prototype.push=TA,ws.prototype.has=AA;function $a(o){var s=this.__data__=new Ja(o);this.size=s.size}function gA(){this.__data__=new Ja,this.size=0}function yA(o){var s=this.__data__,f=s.delete(o);return this.size=s.size,f}function oS(o){return this.__data__.get(o)}function X_(o){return this.__data__.has(o)}function J_(o,s){var f=this.__data__;if(f instanceof Ja){var M=f.__data__;if(!uc||M.length<H-1)return M.push([o,s]),this.size=++f.size,this;f=this.__data__=new mo(M)}return f.set(o,s),this.size=f.size,this}$a.prototype.clear=gA,$a.prototype.delete=yA,$a.prototype.get=oS,$a.prototype.has=X_,$a.prototype.set=J_;function Gl(o,s){var f=cr(o),M=!f&&Oo(o),X=!f&&!M&&bo(o),he=!f&&!M&&!X&&us(o),Ce=f||M||X||he,Ve=Ce?bt(o.length,iA):[],Ke=Ve.length;for(var lt in o)(s||Nr.call(o,lt))&&!(Ce&&(lt=="length"||X&&(lt=="offset"||lt=="parent")||he&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||yo(lt,Ke)))&&Ve.push(lt);return Ve}function sS(o){var s=o.length;return s?o[od(0,s-1)]:d}function RA(o,s){return _f(Qi(o),es(s,0,o.length))}function Bl(o){return _f(Qi(o))}function kl(o,s,f){(f!==d&&!ga(o[s],f)||f===d&&!(s in o))&&To(o,s,f)}function pc(o,s,f){var M=o[s];(!(Nr.call(o,s)&&ga(M,f))||f===d&&!(s in o))&&To(o,s,f)}function mu(o,s){for(var f=o.length;f--;)if(ga(o[f][0],s))return f;return-1}function OA(o,s,f,M){return ts(o,function(X,he,Ce){s(M,X,f(X),Ce)}),M}function uS(o,s){return o&&ro(s,ui(s),o)}function cS(o,s){return o&&ro(s,Ji(s),o)}function To(o,s,f){s=="__proto__"&&xa?xa(o,s,{configurable:!0,enumerable:!0,value:f,writable:!0}):o[s]=f}function hc(o,s){for(var f=-1,M=s.length,X=rt(M),he=o==null;++f<M;)X[f]=he?d:Wd(o,s[f]);return X}function es(o,s,f){return o===o&&(f!==d&&(o=o<=f?o:f),s!==d&&(o=o>=s?o:s)),o}function ma(o,s,f,M,X,he){var Ce,Ve=s&$,Ke=s&G,lt=s&x;if(f&&(Ce=X?f(o,M,X,he):f(o)),Ce!==d)return Ce;if(!On(o))return o;var _t=cr(o);if(_t){if(Ce=eg(o),!Ve)return Qi(o,Ce)}else{var Et=gi(o),Pt=Et==B||Et==Q;if(bo(o))return ld(o,Ve);if(Et==je||Et==ye||Pt&&!X){if(Ce=Ke||Pt?{}:bc(o),!Ve)return Ke?MS(o,cS(Ce,o)):WA(o,uS(Ce,o))}else{if(!qr[Et])return X?o:{};Ce=tg(o,Et,Ve)}}he||(he=new $a);var xt=he.get(o);if(xt)return xt;he.set(o,Ce),IE(o)?o.forEach(function(Zt){Ce.add(ma(Zt,s,f,Zt,o,he))}):bE(o)&&o.forEach(function(Zt,hr){Ce.set(hr,ma(Zt,s,f,hr,o,he))});var Jt=lt?Ke?Td:sf:Ke?Ji:ui,gr=_t?d:Jt(o);return oi(gr||o,function(Zt,hr){gr&&(hr=Zt,Zt=o[hr]),pc(Ce,hr,ma(Zt,s,f,hr,o,he))}),Ce}function bA(o){var s=ui(o);return function(f){return Sc(f,o,s)}}function Sc(o,s,f){var M=f.length;if(o==null)return!M;for(o=Sn(o);M--;){var X=f[M],he=s[X],Ce=o[X];if(Ce===d&&!(X in o)||!he(Ce))return!1}return!0}function lS(o,s,f){if(typeof o!="function")throw new Ea(A);return Pc(function(){o.apply(d,f)},s)}function Ec(o,s,f,M){var X=-1,he=lu,Ce=!0,Ve=o.length,Ke=[],lt=s.length;if(!Ve)return Ke;f&&(s=Tn(s,wt(f))),M?(he=Qa,Ce=!1):s.length>=H&&(he=Ct,Ce=!1,s=new ws(s));e:for(;++X<Ve;){var _t=o[X],Et=f==null?_t:f(_t);if(_t=M||_t!==0?_t:0,Ce&&Et===Et){for(var Pt=lt;Pt--;)if(s[Pt]===Et)continue e;Ke.push(_t)}else he(s,Et,M)||Ke.push(_t)}return Ke}var ts=IS(Va),Za=IS(ed,!0);function CA(o,s){var f=!0;return ts(o,function(M,X,he){return f=!!s(M,X,he),f}),f}function jl(o,s,f){for(var M=-1,X=o.length;++M<X;){var he=o[M],Ce=s(he);if(Ce!=null&&(Ve===d?Ce===Ce&&!ia(Ce):f(Ce,Ve)))var Ve=Ce,Ke=he}return Ke}function PA(o,s,f,M){var X=o.length;for(f=Ar(f),f<0&&(f=-f>X?0:X+f),M=M===d||M>X?X:Ar(M),M<0&&(M+=X),M=f>M?0:DE(M);f<M;)o[f++]=s;return o}function fS(o,s){var f=[];return ts(o,function(M,X,he){s(M,X,he)&&f.push(M)}),f}function fi(o,s,f,M,X){var he=-1,Ce=o.length;for(f||(f=ng),X||(X=[]);++he<Ce;){var Ve=o[he];s>0&&f(Ve)?s>1?fi(Ve,s-1,f,M,X):La(X,Ve):M||(X[X.length]=Ve)}return X}var Z_=hd(),_S=hd(!0);function Va(o,s){return o&&Z_(o,s,ui)}function ed(o,s){return o&&_S(o,s,ui)}function vc(o,s){return vo(s,function(f){return Co(o[f])})}function rs(o,s){s=ns(s,o);for(var f=0,M=s.length;o!=null&&f<M;)o=o[no(s[f++])];return f&&f==M?o:d}function Us(o,s,f){var M=s(o);return cr(o)?M:La(M,f(o))}function Qn(o){return o==null?o===d?tr:Se:Xa&&Xa in Sn(o)?XA(o):ug(o)}function Hl(o,s){return o>s}function MA(o,s){return o!=null&&Nr.call(o,s)}function eo(o,s){return o!=null&&s in Sn(o)}function IA(o,s,f){return o>=Ti(s,f)&&o<Lr(s,f)}function Yl(o,s,f){for(var M=f?Qa:lu,X=o[0].length,he=o.length,Ce=he,Ve=rt(he),Ke=1/0,lt=[];Ce--;){var _t=o[Ce];Ce&&s&&(_t=Tn(_t,wt(s))),Ke=Ti(_t.length,Ke),Ve[Ce]=!f&&(s||X>=120&&_t.length>=120)?new ws(Ce&&_t):d}_t=o[0];var Et=-1,Pt=Ve[0];e:for(;++Et<X&&lt.length<Ke;){var xt=_t[Et],Jt=s?s(xt):xt;if(xt=f||xt!==0?xt:0,!(Pt?Ct(Pt,Jt):M(lt,Jt,f))){for(Ce=he;--Ce;){var gr=Ve[Ce];if(!(gr?Ct(gr,Jt):M(o[Ce],Jt,f)))continue e}Pt&&Pt.push(Jt),lt.push(xt)}}return lt}function dS(o,s,f,M){return Va(o,function(X,he,Ce){s(M,f(X),he,Ce)}),M}function mc(o,s,f){s=ns(s,o),o=kS(o,s);var M=o==null?o:o[no(Aa(s))];return M==null?d:Si(M,o,f)}function pS(o){return kn(o)&&Qn(o)==ye}function NA(o){return kn(o)&&Qn(o)==zt}function LA(o){return kn(o)&&Qn(o)==tt}function Tc(o,s,f,M,X){return o===s?!0:o==null||s==null||!kn(o)&&!kn(s)?o!==o&&s!==s:DA(o,s,f,M,Tc,X)}function DA(o,s,f,M,X,he){var Ce=cr(o),Ve=cr(s),Ke=Ce?Je:gi(o),lt=Ve?Je:gi(s);Ke=Ke==ye?je:Ke,lt=lt==ye?je:lt;var _t=Ke==je,Et=lt==je,Pt=Ke==lt;if(Pt&&bo(o)){if(!bo(s))return!1;Ce=!0,_t=!1}if(Pt&&!_t)return he||(he=new $a),Ce||us(o)?Rc(o,s,f,M,X,he):md(o,s,Ke,f,M,X,he);if(!(f&Z)){var xt=_t&&Nr.call(o,"__wrapped__"),Jt=Et&&Nr.call(s,"__wrapped__");if(xt||Jt){var gr=xt?o.value():o,Zt=Jt?s.value():s;return he||(he=new $a),X(gr,Zt,f,M,he)}}return Pt?(he||(he=new $a),zA(o,s,f,M,X,he)):!1}function wA(o){return kn(o)&&gi(o)==J}function td(o,s,f,M){var X=f.length,he=X,Ce=!M;if(o==null)return!he;for(o=Sn(o);X--;){var Ve=f[X];if(Ce&&Ve[2]?Ve[1]!==o[Ve[0]]:!(Ve[0]in o))return!1}for(;++X<he;){Ve=f[X];var Ke=Ve[0],lt=o[Ke],_t=Ve[1];if(Ce&&Ve[2]){if(lt===d&&!(Ke in o))return!1}else{var Et=new $a;if(M)var Pt=M(lt,_t,Ke,o,s,Et);if(!(Pt===d?Tc(_t,lt,Z|F,M,Et):Pt))return!1}}return!0}function rd(o){if(!On(o)||ig(o))return!1;var s=Co(o)?aA:Oi;return s.test(Vs(o))}function UA(o){return kn(o)&&Qn(o)==pt}function hS(o){return kn(o)&&gi(o)==ht}function nd(o){return kn(o)&&Rf(o.length)&&!!on[Qn(o)]}function SS(o){return typeof o=="function"?o:o==null?Zi:typeof o=="object"?cr(o)?vS(o[0],o[1]):ad(o):XE(o)}function Ac(o){if(!Cc(o))return oA(o);var s=[];for(var f in Sn(o))Nr.call(o,f)&&f!="constructor"&&s.push(f);return s}function xA(o){if(!On(o))return Cd(o);var s=Cc(o),f=[];for(var M in o)M=="constructor"&&(s||!Nr.call(o,M))||f.push(M);return f}function id(o,s){return o<s}function ES(o,s){var f=-1,M=Xi(o)?rt(o.length):[];return ts(o,function(X,he,Ce){M[++f]=s(X,he,Ce)}),M}function ad(o){var s=gd(o);return s.length==1&&s[0][2]?bd(s[0][0],s[0][1]):function(f){return f===o||td(f,o,s)}}function vS(o,s){return Rd(o)&&GS(s)?bd(no(o),s):function(f){var M=Wd(f,o);return M===d&&M===s?bf(f,o):Tc(s,M,Z|F)}}function ql(o,s,f,M,X){o!==s&&Z_(s,function(he,Ce){if(X||(X=new $a),On(he))FA(o,s,Ce,f,ql,M,X);else{var Ve=M?M(cf(o,Ce),he,Ce+"",o,s,X):d;Ve===d&&(Ve=he),kl(o,Ce,Ve)}},Ji)}function FA(o,s,f,M,X,he,Ce){var Ve=cf(o,f),Ke=cf(s,f),lt=Ce.get(Ke);if(lt){kl(o,f,lt);return}var _t=he?he(Ve,Ke,f+"",o,s,Ce):d,Et=_t===d;if(Et){var Pt=cr(Ke),xt=!Pt&&bo(Ke),Jt=!Pt&&!xt&&us(Ke);_t=Ke,Pt||xt||Jt?cr(Ve)?_t=Ve:Bn(Ve)?_t=Qi(Ve):xt?(Et=!1,_t=ld(Ke,!0)):Jt?(Et=!1,_t=dd(Ke,!0)):_t=[]:Dc(Ke)||Oo(Ke)?(_t=Ve,Oo(Ve)?_t=wE(Ve):(!On(Ve)||Co(Ve))&&(_t=bc(Ke))):Et=!1}Et&&(Ce.set(Ke,_t),X(_t,Ke,M,he,Ce),Ce.delete(Ke)),kl(o,f,_t)}function mS(o,s){var f=o.length;if(!!f)return s+=s<0?f:0,yo(s,f)?o[s]:d}function TS(o,s,f){s.length?s=Tn(s,function(he){return cr(he)?function(Ce){return rs(Ce,he.length===1?he[0]:he)}:he}):s=[Zi];var M=-1;s=Tn(s,wt(Wt()));var X=ES(o,function(he,Ce,Ve){var Ke=Tn(s,function(lt){return lt(he)});return{criteria:Ke,index:++M,value:he}});return ze(X,function(he,Ce){return KA(he,Ce,f)})}function $A(o,s){return AS(o,s,function(f,M){return bf(o,M)})}function AS(o,s,f){for(var M=-1,X=s.length,he={};++M<X;){var Ce=s[M],Ve=rs(o,Ce);f(Ve,Ce)&&Ta(he,ns(Ce,o),Ve)}return he}function VA(o){return function(s){return rs(s,o)}}function Kl(o,s,f,M){var X=M?se:ne,he=-1,Ce=s.length,Ve=o;for(o===s&&(s=Qi(s)),f&&(Ve=Tn(o,wt(f)));++he<Ce;)for(var Ke=0,lt=s[he],_t=f?f(lt):lt;(Ke=X(Ve,_t,Ke,M))>-1;)Ve!==o&&Dl.call(Ve,Ke,1),Dl.call(o,Ke,1);return o}function Ao(o,s){for(var f=o?s.length:0,M=f-1;f--;){var X=s[f];if(f==M||X!==he){var he=X;yo(X)?Dl.call(o,X,1):sd(o,X)}}return o}function od(o,s){return o+du(Fl()*(s-o+1))}function GA(o,s,f,M){for(var X=-1,he=Lr(Ul((s-o)/(f||1)),0),Ce=rt(he);he--;)Ce[M?he:++X]=o,o+=f;return Ce}function Wl(o,s){var f="";if(!o||s<1||s>oe)return f;do s%2&&(f+=o),s=du(s/2),s&&(o+=o);while(s);return f}function yr(o,s){return Pd(BS(o,s,Zi),o+"")}function BA(o){return sS(Bs(o))}function kA(o,s){var f=Bs(o);return _f(f,es(s,0,f.length))}function Ta(o,s,f,M){if(!On(o))return o;s=ns(s,o);for(var X=-1,he=s.length,Ce=he-1,Ve=o;Ve!=null&&++X<he;){var Ke=no(s[X]),lt=f;if(Ke==="__proto__"||Ke==="constructor"||Ke==="prototype")return o;if(X!=Ce){var _t=Ve[Ke];lt=M?M(_t,Ke,Ve):d,lt===d&&(lt=On(_t)?_t:yo(s[X+1])?[]:{})}pc(Ve,Ke,lt),Ve=Ve[Ke]}return o}var gS=Jo?function(o,s){return Jo.set(o,s),o}:Zi,jA=xa?function(o,s){return xa(o,"toString",{configurable:!0,enumerable:!1,value:Mf(s),writable:!0})}:Zi;function HA(o){return _f(Bs(o))}function Fi(o,s,f){var M=-1,X=o.length;s<0&&(s=-s>X?0:X+s),f=f>X?X:f,f<0&&(f+=X),X=s>f?0:f-s>>>0,s>>>=0;for(var he=rt(X);++M<X;)he[M]=o[M+s];return he}function yS(o,s){var f;return ts(o,function(M,X,he){return f=s(M,X,he),!f}),!!f}function Ql(o,s,f){var M=0,X=o==null?M:o.length;if(typeof s=="number"&&s===s&&X<=z){for(;M<X;){var he=M+X>>>1,Ce=o[he];Ce!==null&&!ia(Ce)&&(f?Ce<=s:Ce<s)?M=he+1:X=he}return X}return gc(o,s,Zi,f)}function gc(o,s,f,M){var X=0,he=o==null?0:o.length;if(he===0)return 0;s=f(s);for(var Ce=s!==s,Ve=s===null,Ke=ia(s),lt=s===d;X<he;){var _t=du((X+he)/2),Et=f(o[_t]),Pt=Et!==d,xt=Et===null,Jt=Et===Et,gr=ia(Et);if(Ce)var Zt=M||Jt;else lt?Zt=Jt&&(M||Pt):Ve?Zt=Jt&&Pt&&(M||!xt):Ke?Zt=Jt&&Pt&&!xt&&(M||!gr):xt||gr?Zt=!1:Zt=M?Et<=s:Et<s;Zt?X=_t+1:he=_t}return Ti(he,re)}function RS(o,s){for(var f=-1,M=o.length,X=0,he=[];++f<M;){var Ce=o[f],Ve=s?s(Ce):Ce;if(!f||!ga(Ve,Ke)){var Ke=Ve;he[X++]=Ce===0?0:Ce}}return he}function zl(o){return typeof o=="number"?o:ia(o)?de:+o}function $i(o){if(typeof o=="string")return o;if(cr(o))return Tn(o,$i)+"";if(ia(o))return Jh?Jh.call(o):"";var s=o+"";return s=="0"&&1/o==-Y?"-0":s}function to(o,s,f){var M=-1,X=lu,he=o.length,Ce=!0,Ve=[],Ke=Ve;if(f)Ce=!1,X=Qa;else if(he>=H){var lt=s?null:US(o);if(lt)return si(lt);Ce=!1,X=Ct,Ke=new ws}else Ke=s?[]:Ve;e:for(;++M<he;){var _t=o[M],Et=s?s(_t):_t;if(_t=f||_t!==0?_t:0,Ce&&Et===Et){for(var Pt=Ke.length;Pt--;)if(Ke[Pt]===Et)continue e;s&&Ke.push(Et),Ve.push(_t)}else X(Ke,Et,f)||(Ke!==Ve&&Ke.push(Et),Ve.push(_t))}return Ve}function sd(o,s){return s=ns(s,o),o=kS(o,s),o==null||delete o[no(Aa(s))]}function OS(o,s,f,M){return Ta(o,s,f(rs(o,s)),M)}function Xl(o,s,f,M){for(var X=o.length,he=M?X:-1;(M?he--:++he<X)&&s(o[he],he,o););return f?Fi(o,M?0:he,M?he+1:X):Fi(o,M?he+1:0,M?X:he)}function Tu(o,s){var f=o;return f instanceof Dr&&(f=f.value()),Xo(s,function(M,X){return X.func.apply(X.thisArg,La([M],X.args))},f)}function Jl(o,s,f){var M=o.length;if(M<2)return M?to(o[0]):[];for(var X=-1,he=rt(M);++X<M;)for(var Ce=o[X],Ve=-1;++Ve<M;)Ve!=X&&(he[X]=Ec(he[X]||Ce,o[Ve],s,f));return to(fi(he,1),s,f)}function Zl(o,s,f){for(var M=-1,X=o.length,he=s.length,Ce={};++M<X;){var Ve=M<he?s[M]:d;f(Ce,o[M],Ve)}return Ce}function ud(o){return Bn(o)?o:[]}function ef(o){return typeof o=="function"?o:Zi}function ns(o,s){return cr(o)?o:Rd(o,s)?[o]:YS(kr(o))}var cd=yr;function is(o,s,f){var M=o.length;return f=f===d?M:f,!s&&f>=M?o:Fi(o,s,f)}var bS=K_||function(o){return Gt.clearTimeout(o)};function ld(o,s){if(s)return o.slice();var f=o.length,M=Ll?Ll(f):new o.constructor(f);return o.copy(M),M}function fd(o){var s=new o.constructor(o.byteLength);return new mi(s).set(new mi(o)),s}function YA(o,s){var f=s?fd(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function _d(o){var s=new o.constructor(o.source,it.exec(o));return s.lastIndex=o.lastIndex,s}function qA(o){return dc?Sn(dc.call(o)):{}}function dd(o,s){var f=s?fd(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function CS(o,s){if(o!==s){var f=o!==d,M=o===null,X=o===o,he=ia(o),Ce=s!==d,Ve=s===null,Ke=s===s,lt=ia(s);if(!Ve&&!lt&&!he&&o>s||he&&Ce&&Ke&&!Ve&&!lt||M&&Ce&&Ke||!f&&Ke||!X)return 1;if(!M&&!he&&!lt&&o<s||lt&&f&&X&&!M&&!he||Ve&&f&&X||!Ce&&X||!Ke)return-1}return 0}function KA(o,s,f){for(var M=-1,X=o.criteria,he=s.criteria,Ce=X.length,Ve=f.length;++M<Ce;){var Ke=CS(X[M],he[M]);if(Ke){if(M>=Ve)return Ke;var lt=f[M];return Ke*(lt=="desc"?-1:1)}}return o.index-s.index}function PS(o,s,f,M){for(var X=-1,he=o.length,Ce=f.length,Ve=-1,Ke=s.length,lt=Lr(he-Ce,0),_t=rt(Ke+lt),Et=!M;++Ve<Ke;)_t[Ve]=s[Ve];for(;++X<Ce;)(Et||X<he)&&(_t[f[X]]=o[X]);for(;lt--;)_t[Ve++]=o[X++];return _t}function pd(o,s,f,M){for(var X=-1,he=o.length,Ce=-1,Ve=f.length,Ke=-1,lt=s.length,_t=Lr(he-Ve,0),Et=rt(_t+lt),Pt=!M;++X<_t;)Et[X]=o[X];for(var xt=X;++Ke<lt;)Et[xt+Ke]=s[Ke];for(;++Ce<Ve;)(Pt||X<he)&&(Et[xt+f[Ce]]=o[X++]);return Et}function Qi(o,s){var f=-1,M=o.length;for(s||(s=rt(M));++f<M;)s[f]=o[f];return s}function ro(o,s,f,M){var X=!f;f||(f={});for(var he=-1,Ce=s.length;++he<Ce;){var Ve=s[he],Ke=M?M(f[Ve],o[Ve],Ve,f,o):d;Ke===d&&(Ke=o[Ve]),X?To(f,Ve,Ke):pc(f,Ve,Ke)}return f}function WA(o,s){return ro(o,yd(o),s)}function MS(o,s){return ro(o,Oc(o),s)}function Au(o,s){return function(f,M){var X=cr(f)?rc:OA,he=s?s():{};return X(f,o,Wt(M,2),he)}}function as(o){return yr(function(s,f){var M=-1,X=f.length,he=X>1?f[X-1]:d,Ce=X>2?f[2]:d;for(he=o.length>3&&typeof he=="function"?(X--,he):d,Ce&&Vi(f[0],f[1],Ce)&&(he=X<3?d:he,X=1),s=Sn(s);++M<X;){var Ve=f[M];Ve&&o(s,Ve,M,he)}return s})}function IS(o,s){return function(f,M){if(f==null)return f;if(!Xi(f))return o(f,M);for(var X=f.length,he=s?X:-1,Ce=Sn(f);(s?he--:++he<X)&&M(Ce[he],he,Ce)!==!1;);return f}}function hd(o){return function(s,f,M){for(var X=-1,he=Sn(s),Ce=M(s),Ve=Ce.length;Ve--;){var Ke=Ce[o?Ve:++X];if(f(he[Ke],Ke,he)===!1)break}return s}}function Sd(o,s,f){var M=s&te,X=xs(o);function he(){var Ce=this&&this!==Gt&&this instanceof he?X:o;return Ce.apply(M?f:this,arguments)}return he}function NS(o){return function(s){s=kr(s);var f=ei(s)?na(s):d,M=f?f[0]:s.charAt(0),X=f?is(f,1).join(""):s.slice(1);return M[o]()+X}}function gu(o){return function(s){return Xo(qE(Zd(s).replace(wi,"")),o,"")}}function xs(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var f=vu(o.prototype),M=o.apply(f,s);return On(M)?M:f}}function Ed(o,s,f){var M=xs(o);function X(){for(var he=arguments.length,Ce=rt(he),Ve=he,Ke=Ru(X);Ve--;)Ce[Ve]=arguments[Ve];var lt=he<3&&Ce[0]!==Ke&&Ce[he-1]!==Ke?[]:Da(Ce,Ke);if(he-=lt.length,he<f)return ss(o,s,yc,X.placeholder,d,Ce,lt,d,d,f-he);var _t=this&&this!==Gt&&this instanceof X?M:o;return Si(_t,this,Ce)}return X}function LS(o){return function(s,f,M){var X=Sn(s);if(!Xi(s)){var he=Wt(f,3);s=ui(s),f=function(Ve){return he(X[Ve],Ve,X)}}var Ce=o(s,f,M);return Ce>-1?X[he?s[Ce]:Ce]:d}}function DS(o){return go(function(s){var f=s.length,M=f,X=va.prototype.thru;for(o&&s.reverse();M--;){var he=s[M];if(typeof he!="function")throw new Ea(A);if(X&&!Ce&&Fs(he)=="wrapper")var Ce=new va([],!0)}for(M=Ce?M:f;++M<f;){he=s[M];var Ve=Fs(he),Ke=Ve=="wrapper"?Ad(he):d;Ke&&Od(Ke[0])&&Ke[1]==(xe|j|ue|we)&&!Ke[4].length&&Ke[9]==1?Ce=Ce[Fs(Ke[0])].apply(Ce,Ke[3]):Ce=he.length==1&&Od(he)?Ce[Ve]():Ce.thru(he)}return function(){var lt=arguments,_t=lt[0];if(Ce&&lt.length==1&&cr(_t))return Ce.plant(_t).value();for(var Et=0,Pt=f?s[Et].apply(this,lt):_t;++Et<f;)Pt=s[Et].call(this,Pt);return Pt}})}function yc(o,s,f,M,X,he,Ce,Ve,Ke,lt){var _t=s&xe,Et=s&te,Pt=s&ie,xt=s&(j|O),Jt=s&_e,gr=Pt?d:xs(o);function Zt(){for(var hr=arguments.length,wr=rt(hr),aa=hr;aa--;)wr[aa]=arguments[aa];if(xt)var Gi=Ru(Zt),oa=or(wr,Gi);if(M&&(wr=PS(wr,M,X,xt)),he&&(wr=pd(wr,he,Ce,xt)),hr-=oa,xt&&hr<lt){var jn=Da(wr,Gi);return ss(o,s,yc,Zt.placeholder,f,wr,jn,Ve,Ke,lt-hr)}var Ra=Et?f:this,cs=Pt?Ra[o]:o;return hr=wr.length,Ve?wr=jS(wr,Ve):Jt&&hr>1&&wr.reverse(),_t&&Ke<hr&&(wr.length=Ke),this&&this!==Gt&&this instanceof Zt&&(cs=gr||xs(cs)),cs.apply(Ra,wr)}return Zt}function tf(o,s){return function(f,M){return dS(f,o,s(M),{})}}function rf(o,s){return function(f,M){var X;if(f===d&&M===d)return s;if(f!==d&&(X=f),M!==d){if(X===d)return M;typeof f=="string"||typeof M=="string"?(f=$i(f),M=$i(M)):(f=zl(f),M=zl(M)),X=o(f,M)}return X}}function yu(o){return go(function(s){return s=Tn(s,wt(Wt())),yr(function(f){var M=this;return o(s,function(X){return Si(X,M,f)})})})}function os(o,s){s=s===d?" ":$i(s);var f=s.length;if(f<2)return f?Wl(s,o):s;var M=Wl(s,Ul(o/_u(s)));return ei(s)?is(na(M),0,o).join(""):M.slice(0,o)}function nf(o,s,f,M){var X=s&te,he=xs(o);function Ce(){for(var Ve=-1,Ke=arguments.length,lt=-1,_t=M.length,Et=rt(_t+Ke),Pt=this&&this!==Gt&&this instanceof Ce?he:o;++lt<_t;)Et[lt]=M[lt];for(;Ke--;)Et[lt++]=arguments[++Ve];return Si(Pt,X?f:this,Et)}return Ce}function wS(o){return function(s,f,M){return M&&typeof M!="number"&&Vi(s,f,M)&&(f=M=d),s=Po(s),f===d?(f=s,s=0):f=Po(f),M=M===d?s<f?1:-1:Po(M),GA(s,f,M,o)}}function af(o){return function(s,f){return typeof s=="string"&&typeof f=="string"||(s=ya(s),f=ya(f)),o(s,f)}}function ss(o,s,f,M,X,he,Ce,Ve,Ke,lt){var _t=s&j,Et=_t?Ce:d,Pt=_t?d:Ce,xt=_t?he:d,Jt=_t?d:he;s|=_t?ue:be,s&=~(_t?be:ue),s&ce||(s&=~(te|ie));var gr=[o,s,X,xt,Et,Jt,Pt,Ve,Ke,lt],Zt=f.apply(d,gr);return Od(o)&&lf(Zt,gr),Zt.placeholder=M,HS(Zt,o,s)}function vd(o){var s=ti[o];return function(f,M){if(f=ya(f),M=M==null?0:Ti(Ar(M),292),M&&Xh(f)){var X=(kr(f)+"e").split("e"),he=s(X[0]+"e"+(+X[1]+M));return X=(kr(he)+"e").split("e"),+(X[0]+"e"+(+X[1]-M))}return s(f)}}var US=pu&&1/si(new pu([,-0]))[1]==Y?function(o){return new pu(o)}:If;function xS(o){return function(s){var f=gi(s);return f==J?Ds(s):f==ht?Cl(s):At(s,o(s))}}function zi(o,s,f,M,X,he,Ce,Ve){var Ke=s&ie;if(!Ke&&typeof o!="function")throw new Ea(A);var lt=M?M.length:0;if(lt||(s&=~(ue|be),M=X=d),Ce=Ce===d?Ce:Lr(Ar(Ce),0),Ve=Ve===d?Ve:Ar(Ve),lt-=X?X.length:0,s&be){var _t=M,Et=X;M=X=d}var Pt=Ke?d:Ad(o),xt=[o,s,f,M,X,_t,Et,he,Ce,Ve];if(Pt&&sg(xt,Pt),o=xt[0],s=xt[1],f=xt[2],M=xt[3],X=xt[4],Ve=xt[9]=xt[9]===d?Ke?0:o.length:Lr(xt[9]-lt,0),!Ve&&s&(j|O)&&(s&=~(j|O)),!s||s==te)var Jt=Sd(o,s,f);else s==j||s==O?Jt=Ed(o,s,Ve):(s==ue||s==(te|ue))&&!X.length?Jt=nf(o,s,f,M):Jt=yc.apply(d,xt);var gr=Pt?gS:lf;return HS(gr(Jt,xt),o,s)}function of(o,s,f,M){return o===d||ga(o,vi[f])&&!Nr.call(M,f)?s:o}function FS(o,s,f,M,X,he){return On(o)&&On(s)&&(he.set(s,o),ql(o,s,d,FS,he),he.delete(s)),o}function QA(o){return Dc(o)?d:o}function Rc(o,s,f,M,X,he){var Ce=f&Z,Ve=o.length,Ke=s.length;if(Ve!=Ke&&!(Ce&&Ke>Ve))return!1;var lt=he.get(o),_t=he.get(s);if(lt&&_t)return lt==s&&_t==o;var Et=-1,Pt=!0,xt=f&F?new ws:d;for(he.set(o,s),he.set(s,o);++Et<Ve;){var Jt=o[Et],gr=s[Et];if(M)var Zt=Ce?M(gr,Jt,Et,s,o,he):M(Jt,gr,Et,o,s,he);if(Zt!==d){if(Zt)continue;Pt=!1;break}if(xt){if(!Sa(s,function(hr,wr){if(!Ct(xt,wr)&&(Jt===hr||X(Jt,hr,f,M,he)))return xt.push(wr)})){Pt=!1;break}}else if(!(Jt===gr||X(Jt,gr,f,M,he))){Pt=!1;break}}return he.delete(o),he.delete(s),Pt}function md(o,s,f,M,X,he,Ce){switch(f){case Rr:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case zt:return!(o.byteLength!=s.byteLength||!he(new mi(o),new mi(s)));case Tt:case tt:case le:return ga(+o,+s);case Me:return o.name==s.name&&o.message==s.message;case pt:case vt:return o==s+"";case J:var Ve=Ds;case ht:var Ke=M&Z;if(Ve||(Ve=si),o.size!=s.size&&!Ke)return!1;var lt=Ce.get(o);if(lt)return lt==s;M|=F,Ce.set(o,s);var _t=Rc(Ve(o),Ve(s),M,X,he,Ce);return Ce.delete(o),_t;case Qt:if(dc)return dc.call(o)==dc.call(s)}return!1}function zA(o,s,f,M,X,he){var Ce=f&Z,Ve=sf(o),Ke=Ve.length,lt=sf(s),_t=lt.length;if(Ke!=_t&&!Ce)return!1;for(var Et=Ke;Et--;){var Pt=Ve[Et];if(!(Ce?Pt in s:Nr.call(s,Pt)))return!1}var xt=he.get(o),Jt=he.get(s);if(xt&&Jt)return xt==s&&Jt==o;var gr=!0;he.set(o,s),he.set(s,o);for(var Zt=Ce;++Et<Ke;){Pt=Ve[Et];var hr=o[Pt],wr=s[Pt];if(M)var aa=Ce?M(wr,hr,Pt,s,o,he):M(hr,wr,Pt,o,s,he);if(!(aa===d?hr===wr||X(hr,wr,f,M,he):aa)){gr=!1;break}Zt||(Zt=Pt=="constructor")}if(gr&&!Zt){var Gi=o.constructor,oa=s.constructor;Gi!=oa&&"constructor"in o&&"constructor"in s&&!(typeof Gi=="function"&&Gi instanceof Gi&&typeof oa=="function"&&oa instanceof oa)&&(gr=!1)}return he.delete(o),he.delete(s),gr}function go(o){return Pd(BS(o,d,zS),o+"")}function sf(o){return Us(o,ui,yd)}function Td(o){return Us(o,Ji,Oc)}var Ad=Jo?function(o){return Jo.get(o)}:If;function Fs(o){for(var s=o.name+"",f=Su[s],M=Nr.call(Su,s)?f.length:0;M--;){var X=f[M],he=X.func;if(he==null||he==o)return X.name}return s}function Ru(o){var s=Nr.call(fe,"placeholder")?fe:o;return s.placeholder}function Wt(){var o=fe.iteratee||ap;return o=o===ap?SS:o,arguments.length?o(arguments[0],arguments[1]):o}function uf(o,s){var f=o.__data__;return VS(s)?f[typeof s=="string"?"string":"hash"]:f.map}function gd(o){for(var s=ui(o),f=s.length;f--;){var M=s[f],X=o[M];s[f]=[M,X,GS(X)]}return s}function $s(o,s){var f=An(o,s);return rd(f)?f:d}function XA(o){var s=Nr.call(o,Xa),f=o[Xa];try{o[Xa]=d;var M=!0}catch{}var X=Nl.call(o);return M&&(s?o[Xa]=f:delete o[Xa]),X}var yd=xl?function(o){return o==null?[]:(o=Sn(o),vo(xl(o),function(s){return Ua.call(o,s)}))}:sp,Oc=xl?function(o){for(var s=[];o;)La(s,yd(o)),o=ri(o);return s}:sp,gi=Qn;(Q_&&gi(new Q_(new ArrayBuffer(1)))!=Rr||uc&&gi(new uc)!=J||cc&&gi(cc.resolve())!=dt||pu&&gi(new pu)!=ht||hu&&gi(new hu)!=Bt)&&(gi=function(o){var s=Qn(o),f=s==je?o.constructor:d,M=f?Vs(f):"";if(M)switch(M){case lA:return Rr;case fc:return J;case Ai:return dt;case fA:return ht;case _c:return Bt}return s});function JA(o,s,f){for(var M=-1,X=f.length;++M<X;){var he=f[M],Ce=he.size;switch(he.type){case"drop":o+=Ce;break;case"dropRight":s-=Ce;break;case"take":s=Ti(s,o+Ce);break;case"takeRight":o=Lr(o,s-Ce);break}}return{start:o,end:s}}function ZA(o){var s=o.match(ii);return s?s[1].split(Mn):[]}function $S(o,s,f){s=ns(s,o);for(var M=-1,X=s.length,he=!1;++M<X;){var Ce=no(s[M]);if(!(he=o!=null&&f(o,Ce)))break;o=o[Ce]}return he||++M!=X?he:(X=o==null?0:o.length,!!X&&Rf(X)&&yo(Ce,X)&&(cr(o)||Oo(o)))}function eg(o){var s=o.length,f=new o.constructor(s);return s&&typeof o[0]=="string"&&Nr.call(o,"index")&&(f.index=o.index,f.input=o.input),f}function bc(o){return typeof o.constructor=="function"&&!Cc(o)?vu(ri(o)):{}}function tg(o,s,f){var M=o.constructor;switch(s){case zt:return fd(o);case Tt:case tt:return new M(+o);case Rr:return YA(o,f);case Er:case Fr:case $r:case cn:case vr:case Ge:case Fe:case Xt:case rr:return dd(o,f);case J:return new M;case le:case vt:return new M(o);case pt:return _d(o);case ht:return new M;case Qt:return qA(o)}}function rg(o,s){var f=s.length;if(!f)return o;var M=f-1;return s[M]=(f>1?"& ":"")+s[M],s=s.join(f>2?", ":" "),o.replace(Ln,`{
10
+ */(function(){var d,D="4.17.21",H=200,V="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",A="Expected a function",y="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",P=500,g="__lodash_placeholder__",$=1,G=2,x=4,Z=1,F=2,te=1,ie=2,ce=4,j=8,O=16,ue=32,be=64,xe=128,we=256,_e=512,Ne=30,Ae="...",U=800,b=16,C=1,I=2,k=3,Y=1/0,oe=9007199254740991,Re=17976931348623157e292,de=0/0,ae=4294967295,re=ae-1,z=ae>>>1,ve=[["ary",xe],["bind",te],["bindKey",ie],["curry",j],["curryRight",O],["flip",_e],["partial",ue],["partialRight",be],["rearg",we]],ye="[object Arguments]",Je="[object Array]",at="[object AsyncFunction]",Tt="[object Boolean]",tt="[object Date]",Pe="[object DOMException]",Me="[object Error]",B="[object Function]",Q="[object GeneratorFunction]",J="[object Map]",le="[object Number]",Se="[object Null]",je="[object Object]",dt="[object Promise]",Xe="[object Proxy]",pt="[object RegExp]",ht="[object Set]",vt="[object String]",Qt="[object Symbol]",tr="[object Undefined]",Bt="[object WeakMap]",kt="[object WeakSet]",zt="[object ArrayBuffer]",Rr="[object DataView]",Er="[object Float32Array]",Fr="[object Float64Array]",$r="[object Int8Array]",cn="[object Int16Array]",vr="[object Int32Array]",Ge="[object Uint8Array]",Fe="[object Uint8ClampedArray]",Xt="[object Uint16Array]",rr="[object Uint32Array]",mr=/\b__p \+= '';/g,Ht=/\b(__p \+=) '' \+/g,Ir=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vr=/&(?:amp|lt|gt|quot|#39);/g,Gr=/[&<>"']/g,mn=RegExp(Vr.source),Hn=RegExp(Gr.source),Yn=/<%-([\s\S]+?)%>/g,ln=/<%([\s\S]+?)%>/g,$t=/<%=([\s\S]+?)%>/g,Ki=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,Xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jn=/[\\^$.*+?()[\]{}|]/g,qn=RegExp(Jn.source),pn=/^\s+/,Hr=/\s/,Ln=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ii=/\{\n\/\* \[wrapped with (.+)\] \*/,Mn=/,? & /,Dn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vt=/[()=,{}\[\]\/\s]/,hn=/\\(\\)?/g,zr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,In=/^[-+]0x[0-9a-f]+$/i,hi=/^0b[01]+$/i,Oi=/^\[object .+?Constructor\]$/,Tr=/^0o[0-7]+$/i,Zn=/^(?:0|[1-9]\d*)$/,da=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yn=/($^)/,Ni=/['\n\r\u2028\u2029\\]/g,Li="\\ud800-\\udfff",E="\\u0300-\\u036f",N="\\ufe20-\\ufe2f",ee="\\u20d0-\\u20ff",pe=E+N+ee,De="\\u2700-\\u27bf",Be="a-z\\xdf-\\xf6\\xf8-\\xff",nt="\\xac\\xb1\\xd7\\xf7",gt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ut="\\u2000-\\u206f",St=" \\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",Ot="A-Z\\xc0-\\xd6\\xd8-\\xde",Nt="\\ufe0e\\ufe0f",mt=nt+gt+ut+St,Mt="['\u2019]",Lt="["+Li+"]",xr="["+mt+"]",nr="["+pe+"]",Zr="\\d+",Yr="["+De+"]",Br="["+Be+"]",bi="[^"+Li+mt+Zr+De+Be+Ot+"]",Vn="\\ud83c[\\udffb-\\udfff]",Ci="(?:"+nr+"|"+Vn+")",Pi="[^"+Li+"]",Di="(?:\\ud83c[\\udde6-\\uddff]){2}",Rn="[\\ud800-\\udbff][\\udc00-\\udfff]",Wi="["+Ot+"]",Ms="\\u200d",qo="(?:"+Br+"|"+bi+")",_o="(?:"+Wi+"|"+bi+")",Ko="(?:"+Mt+"(?:d|ll|m|re|s|t|ve))?",po="(?:"+Mt+"(?:D|LL|M|RE|S|T|VE))?",Wo=Ci+"?",pa="["+Nt+"]?",ho="(?:"+Ms+"(?:"+[Pi,Di,Rn].join("|")+")"+pa+Wo+")*",Qo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ha="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zo=pa+Wo+ho,Is="(?:"+[Yr,Di,Rn].join("|")+")"+zo,So="(?:"+[Pi+nr+"?",nr,Di,Rn,Lt].join("|")+")",wi=RegExp(Mt,"g"),Ka=RegExp(nr,"g"),Na=RegExp(Vn+"(?="+Vn+")|"+So+zo,"g"),Eo=RegExp([Wi+"?"+Br+"+"+Ko+"(?="+[xr,Wi,"$"].join("|")+")",_o+"+"+po+"(?="+[xr,Wi+qo,"$"].join("|")+")",Wi+"?"+qo+"+"+Ko,Wi+"+"+po,ha,Qo,Zr,Is].join("|"),"g"),Ns=RegExp("["+Ms+Li+pe+Nt+"]"),Ls=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ou=["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"],ra=-1,on={};on[Er]=on[Fr]=on[$r]=on[cn]=on[vr]=on[Ge]=on[Fe]=on[Xt]=on[rr]=!0,on[ye]=on[Je]=on[zt]=on[Tt]=on[Rr]=on[tt]=on[Me]=on[B]=on[J]=on[le]=on[je]=on[pt]=on[ht]=on[vt]=on[Bt]=!1;var qr={};qr[ye]=qr[Je]=qr[zt]=qr[Rr]=qr[Tt]=qr[tt]=qr[Er]=qr[Fr]=qr[$r]=qr[cn]=qr[vr]=qr[J]=qr[le]=qr[je]=qr[pt]=qr[ht]=qr[vt]=qr[Qt]=qr[Ge]=qr[Fe]=qr[Xt]=qr[rr]=!0,qr[Me]=qr[B]=qr[Bt]=!1;var su={\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"},ge={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ke={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dt=parseFloat,Or=parseInt,Cr=typeof p.g=="object"&&p.g&&p.g.Object===Object&&p.g,Kr=typeof self=="object"&&self&&self.Object===Object&&self,Gt=Cr||Kr||Function("return this")(),sn=K&&!K.nodeType&&K,Kn=sn&&!0&&Ee&&!Ee.nodeType&&Ee,ai=Kn&&Kn.exports===sn,Wr=ai&&Cr.process,Gn=function(){try{var Ye=Kn&&Kn.require&&Kn.require("util").types;return Ye||Wr&&Wr.binding&&Wr.binding("util")}catch{}}(),Ui=Gn&&Gn.isArrayBuffer,Wa=Gn&&Gn.isDate,uu=Gn&&Gn.isMap,cu=Gn&&Gn.isRegExp,j_=Gn&&Gn.isSet,rc=Gn&&Gn.isTypedArray;function Si(Ye,ot,rt){switch(rt.length){case 0:return Ye.call(ot);case 1:return Ye.call(ot,rt[0]);case 2:return Ye.call(ot,rt[0],rt[1]);case 3:return Ye.call(ot,rt[0],rt[1],rt[2])}return Ye.apply(ot,rt)}function nc(Ye,ot,rt,Ut){for(var sr=-1,Xr=Ye==null?0:Ye.length;++sr<Xr;){var ti=Ye[sr];ot(Ut,ti,rt(ti),Ye)}return Ut}function oi(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length;++rt<Ut&&ot(Ye[rt],rt,Ye)!==!1;);return Ye}function ic(Ye,ot){for(var rt=Ye==null?0:Ye.length;rt--&&ot(Ye[rt],rt,Ye)!==!1;);return Ye}function ac(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length;++rt<Ut;)if(!ot(Ye[rt],rt,Ye))return!1;return!0}function vo(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length,sr=0,Xr=[];++rt<Ut;){var ti=Ye[rt];ot(ti,rt,Ye)&&(Xr[sr++]=ti)}return Xr}function lu(Ye,ot){var rt=Ye==null?0:Ye.length;return!!rt&&ne(Ye,ot,0)>-1}function Qa(Ye,ot,rt){for(var Ut=-1,sr=Ye==null?0:Ye.length;++Ut<sr;)if(rt(ot,Ye[Ut]))return!0;return!1}function Tn(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length,sr=Array(Ut);++rt<Ut;)sr[rt]=ot(Ye[rt],rt,Ye);return sr}function La(Ye,ot){for(var rt=-1,Ut=ot.length,sr=Ye.length;++rt<Ut;)Ye[sr+rt]=ot[rt];return Ye}function Xo(Ye,ot,rt,Ut){var sr=-1,Xr=Ye==null?0:Ye.length;for(Ut&&Xr&&(rt=Ye[++sr]);++sr<Xr;)rt=ot(rt,Ye[sr],sr,Ye);return rt}function oc(Ye,ot,rt,Ut){var sr=Ye==null?0:Ye.length;for(Ut&&sr&&(rt=Ye[--sr]);sr--;)rt=ot(rt,Ye[sr],sr,Ye);return rt}function Sa(Ye,ot){for(var rt=-1,Ut=Ye==null?0:Ye.length;++rt<Ut;)if(ot(Ye[rt],rt,Ye))return!0;return!1}var w=Le("length");function l(Ye){return Ye.split("")}function S(Ye){return Ye.match(Dn)||[]}function R(Ye,ot,rt){var Ut;return rt(Ye,function(sr,Xr,ti){if(ot(sr,Xr,ti))return Ut=Xr,!1}),Ut}function q(Ye,ot,rt,Ut){for(var sr=Ye.length,Xr=rt+(Ut?1:-1);Ut?Xr--:++Xr<sr;)if(ot(Ye[Xr],Xr,Ye))return Xr;return-1}function ne(Ye,ot,rt){return ot===ot?Ei(Ye,ot,rt):q(Ye,Ie,rt)}function se(Ye,ot,rt,Ut){for(var sr=rt-1,Xr=Ye.length;++sr<Xr;)if(Ut(Ye[sr],ot))return sr;return-1}function Ie(Ye){return Ye!==Ye}function $e(Ye,ot){var rt=Ye==null?0:Ye.length;return rt?st(Ye,ot)/rt:de}function Le(Ye){return function(ot){return ot==null?d:ot[Ye]}}function Qe(Ye){return function(ot){return Ye==null?d:Ye[ot]}}function et(Ye,ot,rt,Ut,sr){return sr(Ye,function(Xr,ti,Sn){rt=Ut?(Ut=!1,Xr):ot(rt,Xr,ti,Sn)}),rt}function ze(Ye,ot){var rt=Ye.length;for(Ye.sort(ot);rt--;)Ye[rt]=Ye[rt].value;return Ye}function st(Ye,ot){for(var rt,Ut=-1,sr=Ye.length;++Ut<sr;){var Xr=ot(Ye[Ut]);Xr!==d&&(rt=rt===d?Xr:rt+Xr)}return rt}function bt(Ye,ot){for(var rt=-1,Ut=Array(Ye);++rt<Ye;)Ut[rt]=ot(rt);return Ut}function At(Ye,ot){return Tn(ot,function(rt){return[rt,Ye[rt]]})}function It(Ye){return Ye&&Ye.slice(0,tA(Ye)+1).replace(pn,"")}function wt(Ye){return function(ot){return Ye(ot)}}function ur(Ye,ot){return Tn(ot,function(rt){return Ye[rt]})}function Ct(Ye,ot){return Ye.has(ot)}function Yt(Ye,ot){for(var rt=-1,Ut=Ye.length;++rt<Ut&&ne(ot,Ye[rt],0)>-1;);return rt}function pr(Ye,ot){for(var rt=Ye.length;rt--&&ne(ot,Ye[rt],0)>-1;);return rt}function or(Ye,ot){for(var rt=Ye.length,Ut=0;rt--;)Ye[rt]===ot&&++Ut;return Ut}var ir=Qe(su),en=Qe(ge);function xi(Ye){return"\\"+Ze[Ye]}function An(Ye,ot){return Ye==null?d:Ye[ot]}function ei(Ye){return Ns.test(Ye)}function fu(Ye){return Ls.test(Ye)}function H_(Ye){for(var ot,rt=[];!(ot=Ye.next()).done;)rt.push(ot.value);return rt}function Ds(Ye){var ot=-1,rt=Array(Ye.size);return Ye.forEach(function(Ut,sr){rt[++ot]=[sr,Ut]}),rt}function Cl(Ye,ot){return function(rt){return Ye(ot(rt))}}function Da(Ye,ot){for(var rt=-1,Ut=Ye.length,sr=0,Xr=[];++rt<Ut;){var ti=Ye[rt];(ti===ot||ti===g)&&(Ye[rt]=g,Xr[sr++]=rt)}return Xr}function si(Ye){var ot=-1,rt=Array(Ye.size);return Ye.forEach(function(Ut){rt[++ot]=Ut}),rt}function Pl(Ye){var ot=-1,rt=Array(Ye.size);return Ye.forEach(function(Ut){rt[++ot]=[Ut,Ut]}),rt}function Ei(Ye,ot,rt){for(var Ut=rt-1,sr=Ye.length;++Ut<sr;)if(Ye[Ut]===ot)return Ut;return-1}function eA(Ye,ot,rt){for(var Ut=rt+1;Ut--;)if(Ye[Ut]===ot)return Ut;return Ut}function _u(Ye){return ei(Ye)?MI(Ye):w(Ye)}function na(Ye){return ei(Ye)?Yh(Ye):l(Ye)}function tA(Ye){for(var ot=Ye.length;ot--&&Hr.test(Ye.charAt(ot)););return ot}var Hh=Qe(ke);function MI(Ye){for(var ot=Na.lastIndex=0;Na.test(Ye);)++ot;return ot}function Yh(Ye){return Ye.match(Na)||[]}function rA(Ye){return Ye.match(Eo)||[]}var nA=function Ye(ot){ot=ot==null?Gt:Y_.defaults(Gt.Object(),ot,Y_.pick(Gt,ou));var rt=ot.Array,Ut=ot.Date,sr=ot.Error,Xr=ot.Function,ti=ot.Math,Sn=ot.Object,Ml=ot.RegExp,iA=ot.String,Ea=ot.TypeError,Il=rt.prototype,q_=Xr.prototype,vi=Sn.prototype,Wn=ot["__core-js_shared__"],Nl=q_.toString,Nr=vi.hasOwnProperty,za=0,qh=function(){var o=/[^.]+$/.exec(Wn&&Wn.keys&&Wn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Ll=vi.toString,du=Nl.call(Sn),II=Gt._,aA=Ml("^"+Nl.call(Nr).replace(Jn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sc=ai?ot.Buffer:d,wa=ot.Symbol,mi=ot.Uint8Array,Dl=sc?sc.allocUnsafe:d,ri=Cl(Sn.getPrototypeOf,Sn),Kh=Sn.create,Ua=vi.propertyIsEnumerable,wl=Il.splice,Ul=wa?wa.isConcatSpreadable:d,uc=wa?wa.iterator:d,Xa=wa?wa.toStringTag:d,xa=function(){try{var o=$s(Sn,"defineProperty");return o({},"",{}),o}catch{}}(),K_=ot.clearTimeout!==Gt.clearTimeout&&ot.clearTimeout,Wh=Ut&&Ut.now!==Gt.Date.now&&Ut.now,Qh=ot.setTimeout!==Gt.setTimeout&&ot.setTimeout,xl=ti.ceil,pu=ti.floor,Fl=Sn.getOwnPropertySymbols,zh=sc?sc.isBuffer:d,Xh=ot.isFinite,W_=Il.join,oA=Cl(Sn.keys,Sn),Lr=ti.max,Ti=ti.min,sA=Ut.now,uA=ot.parseInt,$l=ti.random,cA=Il.reverse,Q_=$s(ot,"DataView"),cc=$s(ot,"Map"),lc=$s(ot,"Promise"),hu=$s(ot,"Set"),Su=$s(ot,"WeakMap"),fc=$s(Sn,"create"),Jo=Su&&new Su,Eu={},lA=Vs(Q_),_c=Vs(cc),Ai=Vs(lc),fA=Vs(hu),dc=Vs(Su),vu=wa?wa.prototype:d,pc=vu?vu.valueOf:d,Jh=vu?vu.toString:d;function fe(o){if(kn(o)&&!cr(o)&&!(o instanceof Dr)){if(o instanceof va)return o;if(Nr.call(o,"__wrapped__"))return qS(o)}return new va(o)}var mu=function(){function o(){}return function(s){if(!On(s))return{};if(Kh)return Kh(s);o.prototype=s;var f=new o;return o.prototype=d,f}}();function Vl(){}function va(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=d}fe.templateSettings={escape:Yn,evaluate:ln,interpolate:$t,variable:"",imports:{_:fe}},fe.prototype=Vl.prototype,fe.prototype.constructor=fe,va.prototype=mu(Vl.prototype),va.prototype.constructor=va;function Dr(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function Zh(){var o=new Dr(this.__wrapped__);return o.__actions__=Qi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Qi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Qi(this.__views__),o}function z_(){if(this.__filtered__){var o=new Dr(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function eS(){var o=this.__wrapped__.value(),s=this.__dir__,f=cr(o),M=s<0,X=f?o.length:0,he=JA(0,X,this.__views__),Ce=he.start,Ve=he.end,Ke=Ve-Ce,lt=M?Ve:Ce-1,_t=this.__iteratees__,Et=_t.length,Pt=0,xt=Ti(Ke,this.__takeCount__);if(!f||!M&&X==Ke&&xt==Ke)return Au(o,this.__actions__);var Jt=[];e:for(;Ke--&&Pt<xt;){lt+=s;for(var gr=-1,Zt=o[lt];++gr<Et;){var hr=_t[gr],wr=hr.iteratee,aa=hr.type,Gi=wr(Zt);if(aa==I)Zt=Gi;else if(!Gi){if(aa==C)continue e;break e}}Jt[Pt++]=Zt}return Jt}Dr.prototype=mu(Vl.prototype),Dr.prototype.constructor=Dr;function Zo(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var M=o[s];this.set(M[0],M[1])}}function tS(){this.__data__=fc?fc(null):{},this.size=0}function rS(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function Fa(o){var s=this.__data__;if(fc){var f=s[o];return f===m?d:f}return Nr.call(s,o)?s[o]:d}function Gl(o){var s=this.__data__;return fc?s[o]!==d:Nr.call(s,o)}function _A(o,s){var f=this.__data__;return this.size+=this.has(o)?0:1,f[o]=fc&&s===d?m:s,this}Zo.prototype.clear=tS,Zo.prototype.delete=rS,Zo.prototype.get=Fa,Zo.prototype.has=Gl,Zo.prototype.set=_A;function Ja(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var M=o[s];this.set(M[0],M[1])}}function dA(){this.__data__=[],this.size=0}function nS(o){var s=this.__data__,f=Tu(s,o);if(f<0)return!1;var M=s.length-1;return f==M?s.pop():wl.call(s,f,1),--this.size,!0}function pA(o){var s=this.__data__,f=Tu(s,o);return f<0?d:s[f][1]}function iS(o){return Tu(this.__data__,o)>-1}function hA(o,s){var f=this.__data__,M=Tu(f,o);return M<0?(++this.size,f.push([o,s])):f[M][1]=s,this}Ja.prototype.clear=dA,Ja.prototype.delete=nS,Ja.prototype.get=pA,Ja.prototype.has=iS,Ja.prototype.set=hA;function mo(o){var s=-1,f=o==null?0:o.length;for(this.clear();++s<f;){var M=o[s];this.set(M[0],M[1])}}function SA(){this.size=0,this.__data__={hash:new Zo,map:new(cc||Ja),string:new Zo}}function EA(o){var s=cf(this,o).delete(o);return this.size-=s?1:0,s}function vA(o){return cf(this,o).get(o)}function aS(o){return cf(this,o).has(o)}function mA(o,s){var f=cf(this,o),M=f.size;return f.set(o,s),this.size+=f.size==M?0:1,this}mo.prototype.clear=SA,mo.prototype.delete=EA,mo.prototype.get=vA,mo.prototype.has=aS,mo.prototype.set=mA;function ws(o){var s=-1,f=o==null?0:o.length;for(this.__data__=new mo;++s<f;)this.add(o[s])}function TA(o){return this.__data__.set(o,m),this}function AA(o){return this.__data__.has(o)}ws.prototype.add=ws.prototype.push=TA,ws.prototype.has=AA;function $a(o){var s=this.__data__=new Ja(o);this.size=s.size}function gA(){this.__data__=new Ja,this.size=0}function yA(o){var s=this.__data__,f=s.delete(o);return this.size=s.size,f}function oS(o){return this.__data__.get(o)}function X_(o){return this.__data__.has(o)}function J_(o,s){var f=this.__data__;if(f instanceof Ja){var M=f.__data__;if(!cc||M.length<H-1)return M.push([o,s]),this.size=++f.size,this;f=this.__data__=new mo(M)}return f.set(o,s),this.size=f.size,this}$a.prototype.clear=gA,$a.prototype.delete=yA,$a.prototype.get=oS,$a.prototype.has=X_,$a.prototype.set=J_;function Bl(o,s){var f=cr(o),M=!f&&Oo(o),X=!f&&!M&&bo(o),he=!f&&!M&&!X&&us(o),Ce=f||M||X||he,Ve=Ce?bt(o.length,iA):[],Ke=Ve.length;for(var lt in o)(s||Nr.call(o,lt))&&!(Ce&&(lt=="length"||X&&(lt=="offset"||lt=="parent")||he&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||yo(lt,Ke)))&&Ve.push(lt);return Ve}function sS(o){var s=o.length;return s?o[od(0,s-1)]:d}function RA(o,s){return df(Qi(o),es(s,0,o.length))}function kl(o){return df(Qi(o))}function jl(o,s,f){(f!==d&&!ga(o[s],f)||f===d&&!(s in o))&&To(o,s,f)}function hc(o,s,f){var M=o[s];(!(Nr.call(o,s)&&ga(M,f))||f===d&&!(s in o))&&To(o,s,f)}function Tu(o,s){for(var f=o.length;f--;)if(ga(o[f][0],s))return f;return-1}function OA(o,s,f,M){return ts(o,function(X,he,Ce){s(M,X,f(X),Ce)}),M}function uS(o,s){return o&&ro(s,ui(s),o)}function cS(o,s){return o&&ro(s,Ji(s),o)}function To(o,s,f){s=="__proto__"&&xa?xa(o,s,{configurable:!0,enumerable:!0,value:f,writable:!0}):o[s]=f}function Sc(o,s){for(var f=-1,M=s.length,X=rt(M),he=o==null;++f<M;)X[f]=he?d:Wd(o,s[f]);return X}function es(o,s,f){return o===o&&(f!==d&&(o=o<=f?o:f),s!==d&&(o=o>=s?o:s)),o}function ma(o,s,f,M,X,he){var Ce,Ve=s&$,Ke=s&G,lt=s&x;if(f&&(Ce=X?f(o,M,X,he):f(o)),Ce!==d)return Ce;if(!On(o))return o;var _t=cr(o);if(_t){if(Ce=eg(o),!Ve)return Qi(o,Ce)}else{var Et=gi(o),Pt=Et==B||Et==Q;if(bo(o))return ld(o,Ve);if(Et==je||Et==ye||Pt&&!X){if(Ce=Ke||Pt?{}:Cc(o),!Ve)return Ke?MS(o,cS(Ce,o)):WA(o,uS(Ce,o))}else{if(!qr[Et])return X?o:{};Ce=tg(o,Et,Ve)}}he||(he=new $a);var xt=he.get(o);if(xt)return xt;he.set(o,Ce),IE(o)?o.forEach(function(Zt){Ce.add(ma(Zt,s,f,Zt,o,he))}):bE(o)&&o.forEach(function(Zt,hr){Ce.set(hr,ma(Zt,s,f,hr,o,he))});var Jt=lt?Ke?Td:uf:Ke?Ji:ui,gr=_t?d:Jt(o);return oi(gr||o,function(Zt,hr){gr&&(hr=Zt,Zt=o[hr]),hc(Ce,hr,ma(Zt,s,f,hr,o,he))}),Ce}function bA(o){var s=ui(o);return function(f){return Ec(f,o,s)}}function Ec(o,s,f){var M=f.length;if(o==null)return!M;for(o=Sn(o);M--;){var X=f[M],he=s[X],Ce=o[X];if(Ce===d&&!(X in o)||!he(Ce))return!1}return!0}function lS(o,s,f){if(typeof o!="function")throw new Ea(A);return Mc(function(){o.apply(d,f)},s)}function vc(o,s,f,M){var X=-1,he=lu,Ce=!0,Ve=o.length,Ke=[],lt=s.length;if(!Ve)return Ke;f&&(s=Tn(s,wt(f))),M?(he=Qa,Ce=!1):s.length>=H&&(he=Ct,Ce=!1,s=new ws(s));e:for(;++X<Ve;){var _t=o[X],Et=f==null?_t:f(_t);if(_t=M||_t!==0?_t:0,Ce&&Et===Et){for(var Pt=lt;Pt--;)if(s[Pt]===Et)continue e;Ke.push(_t)}else he(s,Et,M)||Ke.push(_t)}return Ke}var ts=IS(Va),Za=IS(ed,!0);function CA(o,s){var f=!0;return ts(o,function(M,X,he){return f=!!s(M,X,he),f}),f}function Hl(o,s,f){for(var M=-1,X=o.length;++M<X;){var he=o[M],Ce=s(he);if(Ce!=null&&(Ve===d?Ce===Ce&&!ia(Ce):f(Ce,Ve)))var Ve=Ce,Ke=he}return Ke}function PA(o,s,f,M){var X=o.length;for(f=Ar(f),f<0&&(f=-f>X?0:X+f),M=M===d||M>X?X:Ar(M),M<0&&(M+=X),M=f>M?0:DE(M);f<M;)o[f++]=s;return o}function fS(o,s){var f=[];return ts(o,function(M,X,he){s(M,X,he)&&f.push(M)}),f}function fi(o,s,f,M,X){var he=-1,Ce=o.length;for(f||(f=ng),X||(X=[]);++he<Ce;){var Ve=o[he];s>0&&f(Ve)?s>1?fi(Ve,s-1,f,M,X):La(X,Ve):M||(X[X.length]=Ve)}return X}var Z_=hd(),_S=hd(!0);function Va(o,s){return o&&Z_(o,s,ui)}function ed(o,s){return o&&_S(o,s,ui)}function mc(o,s){return vo(s,function(f){return Co(o[f])})}function rs(o,s){s=ns(s,o);for(var f=0,M=s.length;o!=null&&f<M;)o=o[no(s[f++])];return f&&f==M?o:d}function Us(o,s,f){var M=s(o);return cr(o)?M:La(M,f(o))}function Qn(o){return o==null?o===d?tr:Se:Xa&&Xa in Sn(o)?XA(o):ug(o)}function Yl(o,s){return o>s}function MA(o,s){return o!=null&&Nr.call(o,s)}function eo(o,s){return o!=null&&s in Sn(o)}function IA(o,s,f){return o>=Ti(s,f)&&o<Lr(s,f)}function ql(o,s,f){for(var M=f?Qa:lu,X=o[0].length,he=o.length,Ce=he,Ve=rt(he),Ke=1/0,lt=[];Ce--;){var _t=o[Ce];Ce&&s&&(_t=Tn(_t,wt(s))),Ke=Ti(_t.length,Ke),Ve[Ce]=!f&&(s||X>=120&&_t.length>=120)?new ws(Ce&&_t):d}_t=o[0];var Et=-1,Pt=Ve[0];e:for(;++Et<X&&lt.length<Ke;){var xt=_t[Et],Jt=s?s(xt):xt;if(xt=f||xt!==0?xt:0,!(Pt?Ct(Pt,Jt):M(lt,Jt,f))){for(Ce=he;--Ce;){var gr=Ve[Ce];if(!(gr?Ct(gr,Jt):M(o[Ce],Jt,f)))continue e}Pt&&Pt.push(Jt),lt.push(xt)}}return lt}function dS(o,s,f,M){return Va(o,function(X,he,Ce){s(M,f(X),he,Ce)}),M}function Tc(o,s,f){s=ns(s,o),o=kS(o,s);var M=o==null?o:o[no(Aa(s))];return M==null?d:Si(M,o,f)}function pS(o){return kn(o)&&Qn(o)==ye}function NA(o){return kn(o)&&Qn(o)==zt}function LA(o){return kn(o)&&Qn(o)==tt}function Ac(o,s,f,M,X){return o===s?!0:o==null||s==null||!kn(o)&&!kn(s)?o!==o&&s!==s:DA(o,s,f,M,Ac,X)}function DA(o,s,f,M,X,he){var Ce=cr(o),Ve=cr(s),Ke=Ce?Je:gi(o),lt=Ve?Je:gi(s);Ke=Ke==ye?je:Ke,lt=lt==ye?je:lt;var _t=Ke==je,Et=lt==je,Pt=Ke==lt;if(Pt&&bo(o)){if(!bo(s))return!1;Ce=!0,_t=!1}if(Pt&&!_t)return he||(he=new $a),Ce||us(o)?Oc(o,s,f,M,X,he):md(o,s,Ke,f,M,X,he);if(!(f&Z)){var xt=_t&&Nr.call(o,"__wrapped__"),Jt=Et&&Nr.call(s,"__wrapped__");if(xt||Jt){var gr=xt?o.value():o,Zt=Jt?s.value():s;return he||(he=new $a),X(gr,Zt,f,M,he)}}return Pt?(he||(he=new $a),zA(o,s,f,M,X,he)):!1}function wA(o){return kn(o)&&gi(o)==J}function td(o,s,f,M){var X=f.length,he=X,Ce=!M;if(o==null)return!he;for(o=Sn(o);X--;){var Ve=f[X];if(Ce&&Ve[2]?Ve[1]!==o[Ve[0]]:!(Ve[0]in o))return!1}for(;++X<he;){Ve=f[X];var Ke=Ve[0],lt=o[Ke],_t=Ve[1];if(Ce&&Ve[2]){if(lt===d&&!(Ke in o))return!1}else{var Et=new $a;if(M)var Pt=M(lt,_t,Ke,o,s,Et);if(!(Pt===d?Ac(_t,lt,Z|F,M,Et):Pt))return!1}}return!0}function rd(o){if(!On(o)||ig(o))return!1;var s=Co(o)?aA:Oi;return s.test(Vs(o))}function UA(o){return kn(o)&&Qn(o)==pt}function hS(o){return kn(o)&&gi(o)==ht}function nd(o){return kn(o)&&Of(o.length)&&!!on[Qn(o)]}function SS(o){return typeof o=="function"?o:o==null?Zi:typeof o=="object"?cr(o)?vS(o[0],o[1]):ad(o):XE(o)}function gc(o){if(!Pc(o))return oA(o);var s=[];for(var f in Sn(o))Nr.call(o,f)&&f!="constructor"&&s.push(f);return s}function xA(o){if(!On(o))return Cd(o);var s=Pc(o),f=[];for(var M in o)M=="constructor"&&(s||!Nr.call(o,M))||f.push(M);return f}function id(o,s){return o<s}function ES(o,s){var f=-1,M=Xi(o)?rt(o.length):[];return ts(o,function(X,he,Ce){M[++f]=s(X,he,Ce)}),M}function ad(o){var s=gd(o);return s.length==1&&s[0][2]?bd(s[0][0],s[0][1]):function(f){return f===o||td(f,o,s)}}function vS(o,s){return Rd(o)&&GS(s)?bd(no(o),s):function(f){var M=Wd(f,o);return M===d&&M===s?Cf(f,o):Ac(s,M,Z|F)}}function Kl(o,s,f,M,X){o!==s&&Z_(s,function(he,Ce){if(X||(X=new $a),On(he))FA(o,s,Ce,f,Kl,M,X);else{var Ve=M?M(lf(o,Ce),he,Ce+"",o,s,X):d;Ve===d&&(Ve=he),jl(o,Ce,Ve)}},Ji)}function FA(o,s,f,M,X,he,Ce){var Ve=lf(o,f),Ke=lf(s,f),lt=Ce.get(Ke);if(lt){jl(o,f,lt);return}var _t=he?he(Ve,Ke,f+"",o,s,Ce):d,Et=_t===d;if(Et){var Pt=cr(Ke),xt=!Pt&&bo(Ke),Jt=!Pt&&!xt&&us(Ke);_t=Ke,Pt||xt||Jt?cr(Ve)?_t=Ve:Bn(Ve)?_t=Qi(Ve):xt?(Et=!1,_t=ld(Ke,!0)):Jt?(Et=!1,_t=dd(Ke,!0)):_t=[]:wc(Ke)||Oo(Ke)?(_t=Ve,Oo(Ve)?_t=wE(Ve):(!On(Ve)||Co(Ve))&&(_t=Cc(Ke))):Et=!1}Et&&(Ce.set(Ke,_t),X(_t,Ke,M,he,Ce),Ce.delete(Ke)),jl(o,f,_t)}function mS(o,s){var f=o.length;if(!!f)return s+=s<0?f:0,yo(s,f)?o[s]:d}function TS(o,s,f){s.length?s=Tn(s,function(he){return cr(he)?function(Ce){return rs(Ce,he.length===1?he[0]:he)}:he}):s=[Zi];var M=-1;s=Tn(s,wt(Wt()));var X=ES(o,function(he,Ce,Ve){var Ke=Tn(s,function(lt){return lt(he)});return{criteria:Ke,index:++M,value:he}});return ze(X,function(he,Ce){return KA(he,Ce,f)})}function $A(o,s){return AS(o,s,function(f,M){return Cf(o,M)})}function AS(o,s,f){for(var M=-1,X=s.length,he={};++M<X;){var Ce=s[M],Ve=rs(o,Ce);f(Ve,Ce)&&Ta(he,ns(Ce,o),Ve)}return he}function VA(o){return function(s){return rs(s,o)}}function Wl(o,s,f,M){var X=M?se:ne,he=-1,Ce=s.length,Ve=o;for(o===s&&(s=Qi(s)),f&&(Ve=Tn(o,wt(f)));++he<Ce;)for(var Ke=0,lt=s[he],_t=f?f(lt):lt;(Ke=X(Ve,_t,Ke,M))>-1;)Ve!==o&&wl.call(Ve,Ke,1),wl.call(o,Ke,1);return o}function Ao(o,s){for(var f=o?s.length:0,M=f-1;f--;){var X=s[f];if(f==M||X!==he){var he=X;yo(X)?wl.call(o,X,1):sd(o,X)}}return o}function od(o,s){return o+pu($l()*(s-o+1))}function GA(o,s,f,M){for(var X=-1,he=Lr(xl((s-o)/(f||1)),0),Ce=rt(he);he--;)Ce[M?he:++X]=o,o+=f;return Ce}function Ql(o,s){var f="";if(!o||s<1||s>oe)return f;do s%2&&(f+=o),s=pu(s/2),s&&(o+=o);while(s);return f}function yr(o,s){return Pd(BS(o,s,Zi),o+"")}function BA(o){return sS(Bs(o))}function kA(o,s){var f=Bs(o);return df(f,es(s,0,f.length))}function Ta(o,s,f,M){if(!On(o))return o;s=ns(s,o);for(var X=-1,he=s.length,Ce=he-1,Ve=o;Ve!=null&&++X<he;){var Ke=no(s[X]),lt=f;if(Ke==="__proto__"||Ke==="constructor"||Ke==="prototype")return o;if(X!=Ce){var _t=Ve[Ke];lt=M?M(_t,Ke,Ve):d,lt===d&&(lt=On(_t)?_t:yo(s[X+1])?[]:{})}hc(Ve,Ke,lt),Ve=Ve[Ke]}return o}var gS=Jo?function(o,s){return Jo.set(o,s),o}:Zi,jA=xa?function(o,s){return xa(o,"toString",{configurable:!0,enumerable:!1,value:If(s),writable:!0})}:Zi;function HA(o){return df(Bs(o))}function Fi(o,s,f){var M=-1,X=o.length;s<0&&(s=-s>X?0:X+s),f=f>X?X:f,f<0&&(f+=X),X=s>f?0:f-s>>>0,s>>>=0;for(var he=rt(X);++M<X;)he[M]=o[M+s];return he}function yS(o,s){var f;return ts(o,function(M,X,he){return f=s(M,X,he),!f}),!!f}function zl(o,s,f){var M=0,X=o==null?M:o.length;if(typeof s=="number"&&s===s&&X<=z){for(;M<X;){var he=M+X>>>1,Ce=o[he];Ce!==null&&!ia(Ce)&&(f?Ce<=s:Ce<s)?M=he+1:X=he}return X}return yc(o,s,Zi,f)}function yc(o,s,f,M){var X=0,he=o==null?0:o.length;if(he===0)return 0;s=f(s);for(var Ce=s!==s,Ve=s===null,Ke=ia(s),lt=s===d;X<he;){var _t=pu((X+he)/2),Et=f(o[_t]),Pt=Et!==d,xt=Et===null,Jt=Et===Et,gr=ia(Et);if(Ce)var Zt=M||Jt;else lt?Zt=Jt&&(M||Pt):Ve?Zt=Jt&&Pt&&(M||!xt):Ke?Zt=Jt&&Pt&&!xt&&(M||!gr):xt||gr?Zt=!1:Zt=M?Et<=s:Et<s;Zt?X=_t+1:he=_t}return Ti(he,re)}function RS(o,s){for(var f=-1,M=o.length,X=0,he=[];++f<M;){var Ce=o[f],Ve=s?s(Ce):Ce;if(!f||!ga(Ve,Ke)){var Ke=Ve;he[X++]=Ce===0?0:Ce}}return he}function Xl(o){return typeof o=="number"?o:ia(o)?de:+o}function $i(o){if(typeof o=="string")return o;if(cr(o))return Tn(o,$i)+"";if(ia(o))return Jh?Jh.call(o):"";var s=o+"";return s=="0"&&1/o==-Y?"-0":s}function to(o,s,f){var M=-1,X=lu,he=o.length,Ce=!0,Ve=[],Ke=Ve;if(f)Ce=!1,X=Qa;else if(he>=H){var lt=s?null:US(o);if(lt)return si(lt);Ce=!1,X=Ct,Ke=new ws}else Ke=s?[]:Ve;e:for(;++M<he;){var _t=o[M],Et=s?s(_t):_t;if(_t=f||_t!==0?_t:0,Ce&&Et===Et){for(var Pt=Ke.length;Pt--;)if(Ke[Pt]===Et)continue e;s&&Ke.push(Et),Ve.push(_t)}else X(Ke,Et,f)||(Ke!==Ve&&Ke.push(Et),Ve.push(_t))}return Ve}function sd(o,s){return s=ns(s,o),o=kS(o,s),o==null||delete o[no(Aa(s))]}function OS(o,s,f,M){return Ta(o,s,f(rs(o,s)),M)}function Jl(o,s,f,M){for(var X=o.length,he=M?X:-1;(M?he--:++he<X)&&s(o[he],he,o););return f?Fi(o,M?0:he,M?he+1:X):Fi(o,M?he+1:0,M?X:he)}function Au(o,s){var f=o;return f instanceof Dr&&(f=f.value()),Xo(s,function(M,X){return X.func.apply(X.thisArg,La([M],X.args))},f)}function Zl(o,s,f){var M=o.length;if(M<2)return M?to(o[0]):[];for(var X=-1,he=rt(M);++X<M;)for(var Ce=o[X],Ve=-1;++Ve<M;)Ve!=X&&(he[X]=vc(he[X]||Ce,o[Ve],s,f));return to(fi(he,1),s,f)}function ef(o,s,f){for(var M=-1,X=o.length,he=s.length,Ce={};++M<X;){var Ve=M<he?s[M]:d;f(Ce,o[M],Ve)}return Ce}function ud(o){return Bn(o)?o:[]}function tf(o){return typeof o=="function"?o:Zi}function ns(o,s){return cr(o)?o:Rd(o,s)?[o]:YS(kr(o))}var cd=yr;function is(o,s,f){var M=o.length;return f=f===d?M:f,!s&&f>=M?o:Fi(o,s,f)}var bS=K_||function(o){return Gt.clearTimeout(o)};function ld(o,s){if(s)return o.slice();var f=o.length,M=Dl?Dl(f):new o.constructor(f);return o.copy(M),M}function fd(o){var s=new o.constructor(o.byteLength);return new mi(s).set(new mi(o)),s}function YA(o,s){var f=s?fd(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.byteLength)}function _d(o){var s=new o.constructor(o.source,it.exec(o));return s.lastIndex=o.lastIndex,s}function qA(o){return pc?Sn(pc.call(o)):{}}function dd(o,s){var f=s?fd(o.buffer):o.buffer;return new o.constructor(f,o.byteOffset,o.length)}function CS(o,s){if(o!==s){var f=o!==d,M=o===null,X=o===o,he=ia(o),Ce=s!==d,Ve=s===null,Ke=s===s,lt=ia(s);if(!Ve&&!lt&&!he&&o>s||he&&Ce&&Ke&&!Ve&&!lt||M&&Ce&&Ke||!f&&Ke||!X)return 1;if(!M&&!he&&!lt&&o<s||lt&&f&&X&&!M&&!he||Ve&&f&&X||!Ce&&X||!Ke)return-1}return 0}function KA(o,s,f){for(var M=-1,X=o.criteria,he=s.criteria,Ce=X.length,Ve=f.length;++M<Ce;){var Ke=CS(X[M],he[M]);if(Ke){if(M>=Ve)return Ke;var lt=f[M];return Ke*(lt=="desc"?-1:1)}}return o.index-s.index}function PS(o,s,f,M){for(var X=-1,he=o.length,Ce=f.length,Ve=-1,Ke=s.length,lt=Lr(he-Ce,0),_t=rt(Ke+lt),Et=!M;++Ve<Ke;)_t[Ve]=s[Ve];for(;++X<Ce;)(Et||X<he)&&(_t[f[X]]=o[X]);for(;lt--;)_t[Ve++]=o[X++];return _t}function pd(o,s,f,M){for(var X=-1,he=o.length,Ce=-1,Ve=f.length,Ke=-1,lt=s.length,_t=Lr(he-Ve,0),Et=rt(_t+lt),Pt=!M;++X<_t;)Et[X]=o[X];for(var xt=X;++Ke<lt;)Et[xt+Ke]=s[Ke];for(;++Ce<Ve;)(Pt||X<he)&&(Et[xt+f[Ce]]=o[X++]);return Et}function Qi(o,s){var f=-1,M=o.length;for(s||(s=rt(M));++f<M;)s[f]=o[f];return s}function ro(o,s,f,M){var X=!f;f||(f={});for(var he=-1,Ce=s.length;++he<Ce;){var Ve=s[he],Ke=M?M(f[Ve],o[Ve],Ve,f,o):d;Ke===d&&(Ke=o[Ve]),X?To(f,Ve,Ke):hc(f,Ve,Ke)}return f}function WA(o,s){return ro(o,yd(o),s)}function MS(o,s){return ro(o,bc(o),s)}function gu(o,s){return function(f,M){var X=cr(f)?nc:OA,he=s?s():{};return X(f,o,Wt(M,2),he)}}function as(o){return yr(function(s,f){var M=-1,X=f.length,he=X>1?f[X-1]:d,Ce=X>2?f[2]:d;for(he=o.length>3&&typeof he=="function"?(X--,he):d,Ce&&Vi(f[0],f[1],Ce)&&(he=X<3?d:he,X=1),s=Sn(s);++M<X;){var Ve=f[M];Ve&&o(s,Ve,M,he)}return s})}function IS(o,s){return function(f,M){if(f==null)return f;if(!Xi(f))return o(f,M);for(var X=f.length,he=s?X:-1,Ce=Sn(f);(s?he--:++he<X)&&M(Ce[he],he,Ce)!==!1;);return f}}function hd(o){return function(s,f,M){for(var X=-1,he=Sn(s),Ce=M(s),Ve=Ce.length;Ve--;){var Ke=Ce[o?Ve:++X];if(f(he[Ke],Ke,he)===!1)break}return s}}function Sd(o,s,f){var M=s&te,X=xs(o);function he(){var Ce=this&&this!==Gt&&this instanceof he?X:o;return Ce.apply(M?f:this,arguments)}return he}function NS(o){return function(s){s=kr(s);var f=ei(s)?na(s):d,M=f?f[0]:s.charAt(0),X=f?is(f,1).join(""):s.slice(1);return M[o]()+X}}function yu(o){return function(s){return Xo(qE(Zd(s).replace(wi,"")),o,"")}}function xs(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var f=mu(o.prototype),M=o.apply(f,s);return On(M)?M:f}}function Ed(o,s,f){var M=xs(o);function X(){for(var he=arguments.length,Ce=rt(he),Ve=he,Ke=Ou(X);Ve--;)Ce[Ve]=arguments[Ve];var lt=he<3&&Ce[0]!==Ke&&Ce[he-1]!==Ke?[]:Da(Ce,Ke);if(he-=lt.length,he<f)return ss(o,s,Rc,X.placeholder,d,Ce,lt,d,d,f-he);var _t=this&&this!==Gt&&this instanceof X?M:o;return Si(_t,this,Ce)}return X}function LS(o){return function(s,f,M){var X=Sn(s);if(!Xi(s)){var he=Wt(f,3);s=ui(s),f=function(Ve){return he(X[Ve],Ve,X)}}var Ce=o(s,f,M);return Ce>-1?X[he?s[Ce]:Ce]:d}}function DS(o){return go(function(s){var f=s.length,M=f,X=va.prototype.thru;for(o&&s.reverse();M--;){var he=s[M];if(typeof he!="function")throw new Ea(A);if(X&&!Ce&&Fs(he)=="wrapper")var Ce=new va([],!0)}for(M=Ce?M:f;++M<f;){he=s[M];var Ve=Fs(he),Ke=Ve=="wrapper"?Ad(he):d;Ke&&Od(Ke[0])&&Ke[1]==(xe|j|ue|we)&&!Ke[4].length&&Ke[9]==1?Ce=Ce[Fs(Ke[0])].apply(Ce,Ke[3]):Ce=he.length==1&&Od(he)?Ce[Ve]():Ce.thru(he)}return function(){var lt=arguments,_t=lt[0];if(Ce&&lt.length==1&&cr(_t))return Ce.plant(_t).value();for(var Et=0,Pt=f?s[Et].apply(this,lt):_t;++Et<f;)Pt=s[Et].call(this,Pt);return Pt}})}function Rc(o,s,f,M,X,he,Ce,Ve,Ke,lt){var _t=s&xe,Et=s&te,Pt=s&ie,xt=s&(j|O),Jt=s&_e,gr=Pt?d:xs(o);function Zt(){for(var hr=arguments.length,wr=rt(hr),aa=hr;aa--;)wr[aa]=arguments[aa];if(xt)var Gi=Ou(Zt),oa=or(wr,Gi);if(M&&(wr=PS(wr,M,X,xt)),he&&(wr=pd(wr,he,Ce,xt)),hr-=oa,xt&&hr<lt){var jn=Da(wr,Gi);return ss(o,s,Rc,Zt.placeholder,f,wr,jn,Ve,Ke,lt-hr)}var Ra=Et?f:this,cs=Pt?Ra[o]:o;return hr=wr.length,Ve?wr=jS(wr,Ve):Jt&&hr>1&&wr.reverse(),_t&&Ke<hr&&(wr.length=Ke),this&&this!==Gt&&this instanceof Zt&&(cs=gr||xs(cs)),cs.apply(Ra,wr)}return Zt}function rf(o,s){return function(f,M){return dS(f,o,s(M),{})}}function nf(o,s){return function(f,M){var X;if(f===d&&M===d)return s;if(f!==d&&(X=f),M!==d){if(X===d)return M;typeof f=="string"||typeof M=="string"?(f=$i(f),M=$i(M)):(f=Xl(f),M=Xl(M)),X=o(f,M)}return X}}function Ru(o){return go(function(s){return s=Tn(s,wt(Wt())),yr(function(f){var M=this;return o(s,function(X){return Si(X,M,f)})})})}function os(o,s){s=s===d?" ":$i(s);var f=s.length;if(f<2)return f?Ql(s,o):s;var M=Ql(s,xl(o/_u(s)));return ei(s)?is(na(M),0,o).join(""):M.slice(0,o)}function af(o,s,f,M){var X=s&te,he=xs(o);function Ce(){for(var Ve=-1,Ke=arguments.length,lt=-1,_t=M.length,Et=rt(_t+Ke),Pt=this&&this!==Gt&&this instanceof Ce?he:o;++lt<_t;)Et[lt]=M[lt];for(;Ke--;)Et[lt++]=arguments[++Ve];return Si(Pt,X?f:this,Et)}return Ce}function wS(o){return function(s,f,M){return M&&typeof M!="number"&&Vi(s,f,M)&&(f=M=d),s=Po(s),f===d?(f=s,s=0):f=Po(f),M=M===d?s<f?1:-1:Po(M),GA(s,f,M,o)}}function of(o){return function(s,f){return typeof s=="string"&&typeof f=="string"||(s=ya(s),f=ya(f)),o(s,f)}}function ss(o,s,f,M,X,he,Ce,Ve,Ke,lt){var _t=s&j,Et=_t?Ce:d,Pt=_t?d:Ce,xt=_t?he:d,Jt=_t?d:he;s|=_t?ue:be,s&=~(_t?be:ue),s&ce||(s&=~(te|ie));var gr=[o,s,X,xt,Et,Jt,Pt,Ve,Ke,lt],Zt=f.apply(d,gr);return Od(o)&&ff(Zt,gr),Zt.placeholder=M,HS(Zt,o,s)}function vd(o){var s=ti[o];return function(f,M){if(f=ya(f),M=M==null?0:Ti(Ar(M),292),M&&Xh(f)){var X=(kr(f)+"e").split("e"),he=s(X[0]+"e"+(+X[1]+M));return X=(kr(he)+"e").split("e"),+(X[0]+"e"+(+X[1]-M))}return s(f)}}var US=hu&&1/si(new hu([,-0]))[1]==Y?function(o){return new hu(o)}:Nf;function xS(o){return function(s){var f=gi(s);return f==J?Ds(s):f==ht?Pl(s):At(s,o(s))}}function zi(o,s,f,M,X,he,Ce,Ve){var Ke=s&ie;if(!Ke&&typeof o!="function")throw new Ea(A);var lt=M?M.length:0;if(lt||(s&=~(ue|be),M=X=d),Ce=Ce===d?Ce:Lr(Ar(Ce),0),Ve=Ve===d?Ve:Ar(Ve),lt-=X?X.length:0,s&be){var _t=M,Et=X;M=X=d}var Pt=Ke?d:Ad(o),xt=[o,s,f,M,X,_t,Et,he,Ce,Ve];if(Pt&&sg(xt,Pt),o=xt[0],s=xt[1],f=xt[2],M=xt[3],X=xt[4],Ve=xt[9]=xt[9]===d?Ke?0:o.length:Lr(xt[9]-lt,0),!Ve&&s&(j|O)&&(s&=~(j|O)),!s||s==te)var Jt=Sd(o,s,f);else s==j||s==O?Jt=Ed(o,s,Ve):(s==ue||s==(te|ue))&&!X.length?Jt=af(o,s,f,M):Jt=Rc.apply(d,xt);var gr=Pt?gS:ff;return HS(gr(Jt,xt),o,s)}function sf(o,s,f,M){return o===d||ga(o,vi[f])&&!Nr.call(M,f)?s:o}function FS(o,s,f,M,X,he){return On(o)&&On(s)&&(he.set(s,o),Kl(o,s,d,FS,he),he.delete(s)),o}function QA(o){return wc(o)?d:o}function Oc(o,s,f,M,X,he){var Ce=f&Z,Ve=o.length,Ke=s.length;if(Ve!=Ke&&!(Ce&&Ke>Ve))return!1;var lt=he.get(o),_t=he.get(s);if(lt&&_t)return lt==s&&_t==o;var Et=-1,Pt=!0,xt=f&F?new ws:d;for(he.set(o,s),he.set(s,o);++Et<Ve;){var Jt=o[Et],gr=s[Et];if(M)var Zt=Ce?M(gr,Jt,Et,s,o,he):M(Jt,gr,Et,o,s,he);if(Zt!==d){if(Zt)continue;Pt=!1;break}if(xt){if(!Sa(s,function(hr,wr){if(!Ct(xt,wr)&&(Jt===hr||X(Jt,hr,f,M,he)))return xt.push(wr)})){Pt=!1;break}}else if(!(Jt===gr||X(Jt,gr,f,M,he))){Pt=!1;break}}return he.delete(o),he.delete(s),Pt}function md(o,s,f,M,X,he,Ce){switch(f){case Rr:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case zt:return!(o.byteLength!=s.byteLength||!he(new mi(o),new mi(s)));case Tt:case tt:case le:return ga(+o,+s);case Me:return o.name==s.name&&o.message==s.message;case pt:case vt:return o==s+"";case J:var Ve=Ds;case ht:var Ke=M&Z;if(Ve||(Ve=si),o.size!=s.size&&!Ke)return!1;var lt=Ce.get(o);if(lt)return lt==s;M|=F,Ce.set(o,s);var _t=Oc(Ve(o),Ve(s),M,X,he,Ce);return Ce.delete(o),_t;case Qt:if(pc)return pc.call(o)==pc.call(s)}return!1}function zA(o,s,f,M,X,he){var Ce=f&Z,Ve=uf(o),Ke=Ve.length,lt=uf(s),_t=lt.length;if(Ke!=_t&&!Ce)return!1;for(var Et=Ke;Et--;){var Pt=Ve[Et];if(!(Ce?Pt in s:Nr.call(s,Pt)))return!1}var xt=he.get(o),Jt=he.get(s);if(xt&&Jt)return xt==s&&Jt==o;var gr=!0;he.set(o,s),he.set(s,o);for(var Zt=Ce;++Et<Ke;){Pt=Ve[Et];var hr=o[Pt],wr=s[Pt];if(M)var aa=Ce?M(wr,hr,Pt,s,o,he):M(hr,wr,Pt,o,s,he);if(!(aa===d?hr===wr||X(hr,wr,f,M,he):aa)){gr=!1;break}Zt||(Zt=Pt=="constructor")}if(gr&&!Zt){var Gi=o.constructor,oa=s.constructor;Gi!=oa&&"constructor"in o&&"constructor"in s&&!(typeof Gi=="function"&&Gi instanceof Gi&&typeof oa=="function"&&oa instanceof oa)&&(gr=!1)}return he.delete(o),he.delete(s),gr}function go(o){return Pd(BS(o,d,zS),o+"")}function uf(o){return Us(o,ui,yd)}function Td(o){return Us(o,Ji,bc)}var Ad=Jo?function(o){return Jo.get(o)}:Nf;function Fs(o){for(var s=o.name+"",f=Eu[s],M=Nr.call(Eu,s)?f.length:0;M--;){var X=f[M],he=X.func;if(he==null||he==o)return X.name}return s}function Ou(o){var s=Nr.call(fe,"placeholder")?fe:o;return s.placeholder}function Wt(){var o=fe.iteratee||ap;return o=o===ap?SS:o,arguments.length?o(arguments[0],arguments[1]):o}function cf(o,s){var f=o.__data__;return VS(s)?f[typeof s=="string"?"string":"hash"]:f.map}function gd(o){for(var s=ui(o),f=s.length;f--;){var M=s[f],X=o[M];s[f]=[M,X,GS(X)]}return s}function $s(o,s){var f=An(o,s);return rd(f)?f:d}function XA(o){var s=Nr.call(o,Xa),f=o[Xa];try{o[Xa]=d;var M=!0}catch{}var X=Ll.call(o);return M&&(s?o[Xa]=f:delete o[Xa]),X}var yd=Fl?function(o){return o==null?[]:(o=Sn(o),vo(Fl(o),function(s){return Ua.call(o,s)}))}:sp,bc=Fl?function(o){for(var s=[];o;)La(s,yd(o)),o=ri(o);return s}:sp,gi=Qn;(Q_&&gi(new Q_(new ArrayBuffer(1)))!=Rr||cc&&gi(new cc)!=J||lc&&gi(lc.resolve())!=dt||hu&&gi(new hu)!=ht||Su&&gi(new Su)!=Bt)&&(gi=function(o){var s=Qn(o),f=s==je?o.constructor:d,M=f?Vs(f):"";if(M)switch(M){case lA:return Rr;case _c:return J;case Ai:return dt;case fA:return ht;case dc:return Bt}return s});function JA(o,s,f){for(var M=-1,X=f.length;++M<X;){var he=f[M],Ce=he.size;switch(he.type){case"drop":o+=Ce;break;case"dropRight":s-=Ce;break;case"take":s=Ti(s,o+Ce);break;case"takeRight":o=Lr(o,s-Ce);break}}return{start:o,end:s}}function ZA(o){var s=o.match(ii);return s?s[1].split(Mn):[]}function $S(o,s,f){s=ns(s,o);for(var M=-1,X=s.length,he=!1;++M<X;){var Ce=no(s[M]);if(!(he=o!=null&&f(o,Ce)))break;o=o[Ce]}return he||++M!=X?he:(X=o==null?0:o.length,!!X&&Of(X)&&yo(Ce,X)&&(cr(o)||Oo(o)))}function eg(o){var s=o.length,f=new o.constructor(s);return s&&typeof o[0]=="string"&&Nr.call(o,"index")&&(f.index=o.index,f.input=o.input),f}function Cc(o){return typeof o.constructor=="function"&&!Pc(o)?mu(ri(o)):{}}function tg(o,s,f){var M=o.constructor;switch(s){case zt:return fd(o);case Tt:case tt:return new M(+o);case Rr:return YA(o,f);case Er:case Fr:case $r:case cn:case vr:case Ge:case Fe:case Xt:case rr:return dd(o,f);case J:return new M;case le:case vt:return new M(o);case pt:return _d(o);case ht:return new M;case Qt:return qA(o)}}function rg(o,s){var f=s.length;if(!f)return o;var M=f-1;return s[M]=(f>1?"& ":"")+s[M],s=s.join(f>2?", ":" "),o.replace(Ln,`{
11
11
  /* [wrapped with `+s+`] */
12
- `)}function ng(o){return cr(o)||Oo(o)||!!(wl&&o&&o[wl])}function yo(o,s){var f=typeof o;return s=s??oe,!!s&&(f=="number"||f!="symbol"&&Zn.test(o))&&o>-1&&o%1==0&&o<s}function Vi(o,s,f){if(!On(f))return!1;var M=typeof s;return(M=="number"?Xi(f)&&yo(s,f.length):M=="string"&&s in f)?ga(f[s],o):!1}function Rd(o,s){if(cr(o))return!1;var f=typeof o;return f=="number"||f=="symbol"||f=="boolean"||o==null||ia(o)?!0:br.test(o)||!Ki.test(o)||s!=null&&o in Sn(s)}function VS(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Od(o){var s=Fs(o),f=fe[s];if(typeof f!="function"||!(s in Dr.prototype))return!1;if(o===f)return!0;var M=Ad(f);return!!M&&o===M[0]}function ig(o){return!!qh&&qh in o}var ag=Wn?Co:up;function Cc(o){var s=o&&o.constructor,f=typeof s=="function"&&s.prototype||vi;return o===f}function GS(o){return o===o&&!On(o)}function bd(o,s){return function(f){return f==null?!1:f[o]===s&&(s!==d||o in Sn(f))}}function og(o){var s=Ro(o,function(M){return f.size===P&&f.clear(),M}),f=s.cache;return s}function sg(o,s){var f=o[1],M=s[1],X=f|M,he=X<(te|ie|xe),Ce=M==xe&&f==j||M==xe&&f==we&&o[7].length<=s[8]||M==(xe|we)&&s[7].length<=s[8]&&f==j;if(!(he||Ce))return o;M&te&&(o[2]=s[2],X|=f&te?0:ce);var Ve=s[3];if(Ve){var Ke=o[3];o[3]=Ke?PS(Ke,Ve,s[4]):Ve,o[4]=Ke?Da(o[3],g):s[4]}return Ve=s[5],Ve&&(Ke=o[5],o[5]=Ke?pd(Ke,Ve,s[6]):Ve,o[6]=Ke?Da(o[5],g):s[6]),Ve=s[7],Ve&&(o[7]=Ve),M&xe&&(o[8]=o[8]==null?s[8]:Ti(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=X,o}function Cd(o){var s=[];if(o!=null)for(var f in Sn(o))s.push(f);return s}function ug(o){return Nl.call(o)}function BS(o,s,f){return s=Lr(s===d?o.length-1:s,0),function(){for(var M=arguments,X=-1,he=Lr(M.length-s,0),Ce=rt(he);++X<he;)Ce[X]=M[s+X];X=-1;for(var Ve=rt(s+1);++X<s;)Ve[X]=M[X];return Ve[s]=f(Ce),Si(o,this,Ve)}}function kS(o,s){return s.length<2?o:rs(o,Fi(s,0,-1))}function jS(o,s){for(var f=o.length,M=Ti(s.length,f),X=Qi(o);M--;){var he=s[M];o[M]=yo(he,f)?X[he]:d}return o}function cf(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var lf=ff(gS),Pc=Qh||function(o,s){return Gt.setTimeout(o,s)},Pd=ff(jA);function HS(o,s,f){var M=s+"";return Pd(o,rg(M,cg(ZA(M),f)))}function ff(o){var s=0,f=0;return function(){var M=sA(),X=b-(M-f);if(f=M,X>0){if(++s>=U)return arguments[0]}else s=0;return o.apply(d,arguments)}}function _f(o,s){var f=-1,M=o.length,X=M-1;for(s=s===d?M:s;++f<s;){var he=od(f,X),Ce=o[he];o[he]=o[f],o[f]=Ce}return o.length=s,o}var YS=og(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(Xn,function(f,M,X,he){s.push(X?he.replace(hn,"$1"):M||f)}),s});function no(o){if(typeof o=="string"||ia(o))return o;var s=o+"";return s=="0"&&1/o==-Y?"-0":s}function Vs(o){if(o!=null){try{return Il.call(o)}catch{}try{return o+""}catch{}}return""}function cg(o,s){return oi(ve,function(f){var M="_."+f[0];s&f[1]&&!lu(o,M)&&o.push(M)}),o.sort()}function qS(o){if(o instanceof Dr)return o.clone();var s=new va(o.__wrapped__,o.__chain__);return s.__actions__=Qi(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function lg(o,s,f){(f?Vi(o,s,f):s===d)?s=1:s=Lr(Ar(s),0);var M=o==null?0:o.length;if(!M||s<1)return[];for(var X=0,he=0,Ce=rt(Ul(M/s));X<M;)Ce[he++]=Fi(o,X,X+=s);return Ce}function KS(o){for(var s=-1,f=o==null?0:o.length,M=0,X=[];++s<f;){var he=o[s];he&&(X[M++]=he)}return X}function fg(){var o=arguments.length;if(!o)return[];for(var s=rt(o-1),f=arguments[0],M=o;M--;)s[M-1]=arguments[M];return La(cr(f)?Qi(f):[f],fi(s,1))}var _g=yr(function(o,s){return Bn(o)?Ec(o,fi(s,1,Bn,!0)):[]}),dg=yr(function(o,s){var f=Aa(s);return Bn(f)&&(f=d),Bn(o)?Ec(o,fi(s,1,Bn,!0),Wt(f,2)):[]}),pg=yr(function(o,s){var f=Aa(s);return Bn(f)&&(f=d),Bn(o)?Ec(o,fi(s,1,Bn,!0),d,f):[]});function hg(o,s,f){var M=o==null?0:o.length;return M?(s=f||s===d?1:Ar(s),Fi(o,s<0?0:s,M)):[]}function Sg(o,s,f){var M=o==null?0:o.length;return M?(s=f||s===d?1:Ar(s),s=M-s,Fi(o,0,s<0?0:s)):[]}function Eg(o,s){return o&&o.length?Xl(o,Wt(s,3),!0,!0):[]}function Mc(o,s){return o&&o.length?Xl(o,Wt(s,3),!0):[]}function vg(o,s,f,M){var X=o==null?0:o.length;return X?(f&&typeof f!="number"&&Vi(o,s,f)&&(f=0,M=X),PA(o,s,f,M)):[]}function WS(o,s,f){var M=o==null?0:o.length;if(!M)return-1;var X=f==null?0:Ar(f);return X<0&&(X=Lr(M+X,0)),q(o,Wt(s,3),X)}function QS(o,s,f){var M=o==null?0:o.length;if(!M)return-1;var X=M-1;return f!==d&&(X=Ar(f),X=f<0?Lr(M+X,0):Ti(X,M-1)),q(o,Wt(s,3),X,!0)}function zS(o){var s=o==null?0:o.length;return s?fi(o,1):[]}function mg(o){var s=o==null?0:o.length;return s?fi(o,Y):[]}function Md(o,s){var f=o==null?0:o.length;return f?(s=s===d?1:Ar(s),fi(o,s)):[]}function Tg(o){for(var s=-1,f=o==null?0:o.length,M={};++s<f;){var X=o[s];M[X[0]]=X[1]}return M}function XS(o){return o&&o.length?o[0]:d}function Ag(o,s,f){var M=o==null?0:o.length;if(!M)return-1;var X=f==null?0:Ar(f);return X<0&&(X=Lr(M+X,0)),ne(o,s,X)}function gg(o){var s=o==null?0:o.length;return s?Fi(o,0,-1):[]}var yg=yr(function(o){var s=Tn(o,ud);return s.length&&s[0]===o[0]?Yl(s):[]}),Rg=yr(function(o){var s=Aa(o),f=Tn(o,ud);return s===Aa(f)?s=d:f.pop(),f.length&&f[0]===o[0]?Yl(f,Wt(s,2)):[]}),df=yr(function(o){var s=Aa(o),f=Tn(o,ud);return s=typeof s=="function"?s:d,s&&f.pop(),f.length&&f[0]===o[0]?Yl(f,d,s):[]});function Og(o,s){return o==null?"":W_.call(o,s)}function Aa(o){var s=o==null?0:o.length;return s?o[s-1]:d}function JS(o,s,f){var M=o==null?0:o.length;if(!M)return-1;var X=M;return f!==d&&(X=Ar(f),X=X<0?Lr(M+X,0):Ti(X,M-1)),s===s?eA(o,s,X):q(o,Ie,X,!0)}function bg(o,s){return o&&o.length?mS(o,Ar(s)):d}var Cg=yr(ZS);function ZS(o,s){return o&&o.length&&s&&s.length?Kl(o,s):o}function pf(o,s,f){return o&&o.length&&s&&s.length?Kl(o,s,Wt(f,2)):o}function Pg(o,s,f){return o&&o.length&&s&&s.length?Kl(o,s,d,f):o}var Mg=go(function(o,s){var f=o==null?0:o.length,M=hc(o,s);return Ao(o,Tn(s,function(X){return yo(X,f)?+X:X}).sort(CS)),M});function Ig(o,s){var f=[];if(!(o&&o.length))return f;var M=-1,X=[],he=o.length;for(s=Wt(s,3);++M<he;){var Ce=o[M];s(Ce,M,o)&&(f.push(Ce),X.push(M))}return Ao(o,X),f}function Id(o){return o==null?o:cA.call(o)}function Ng(o,s,f){var M=o==null?0:o.length;return M?(f&&typeof f!="number"&&Vi(o,s,f)?(s=0,f=M):(s=s==null?0:Ar(s),f=f===d?M:Ar(f)),Fi(o,s,f)):[]}function Lg(o,s){return Ql(o,s)}function Dg(o,s,f){return gc(o,s,Wt(f,2))}function wg(o,s){var f=o==null?0:o.length;if(f){var M=Ql(o,s);if(M<f&&ga(o[M],s))return M}return-1}function Ic(o,s){return Ql(o,s,!0)}function eE(o,s,f){return gc(o,s,Wt(f,2),!0)}function Ug(o,s){var f=o==null?0:o.length;if(f){var M=Ql(o,s,!0)-1;if(ga(o[M],s))return M}return-1}function xg(o){return o&&o.length?RS(o):[]}function Fg(o,s){return o&&o.length?RS(o,Wt(s,2)):[]}function $g(o){var s=o==null?0:o.length;return s?Fi(o,1,s):[]}function tE(o,s,f){return o&&o.length?(s=f||s===d?1:Ar(s),Fi(o,0,s<0?0:s)):[]}function hf(o,s,f){var M=o==null?0:o.length;return M?(s=f||s===d?1:Ar(s),s=M-s,Fi(o,s<0?0:s,M)):[]}function Vg(o,s){return o&&o.length?Xl(o,Wt(s,3),!1,!0):[]}function Gg(o,s){return o&&o.length?Xl(o,Wt(s,3)):[]}var Nd=yr(function(o){return to(fi(o,1,Bn,!0))}),Bg=yr(function(o){var s=Aa(o);return Bn(s)&&(s=d),to(fi(o,1,Bn,!0),Wt(s,2))}),rE=yr(function(o){var s=Aa(o);return s=typeof s=="function"?s:d,to(fi(o,1,Bn,!0),d,s)});function kg(o){return o&&o.length?to(o):[]}function jg(o,s){return o&&o.length?to(o,Wt(s,2)):[]}function Hg(o,s){return s=typeof s=="function"?s:d,o&&o.length?to(o,d,s):[]}function Ld(o){if(!(o&&o.length))return[];var s=0;return o=vo(o,function(f){if(Bn(f))return s=Lr(f.length,s),!0}),bt(s,function(f){return Tn(o,Le(f))})}function Dd(o,s){if(!(o&&o.length))return[];var f=Ld(o);return s==null?f:Tn(f,function(M){return Si(s,d,M)})}var Nc=yr(function(o,s){return Bn(o)?Ec(o,s):[]}),nE=yr(function(o){return Jl(vo(o,Bn))}),iE=yr(function(o){var s=Aa(o);return Bn(s)&&(s=d),Jl(vo(o,Bn),Wt(s,2))}),aE=yr(function(o){var s=Aa(o);return s=typeof s=="function"?s:d,Jl(vo(o,Bn),d,s)}),Yg=yr(Ld);function qg(o,s){return Zl(o||[],s||[],pc)}function Kg(o,s){return Zl(o||[],s||[],Ta)}var Wg=yr(function(o){var s=o.length,f=s>1?o[s-1]:d;return f=typeof f=="function"?(o.pop(),f):d,Dd(o,f)});function wd(o){var s=fe(o);return s.__chain__=!0,s}function Qg(o,s){return s(o),o}function Sf(o,s){return s(o)}var Ud=go(function(o){var s=o.length,f=s?o[0]:0,M=this.__wrapped__,X=function(he){return hc(he,o)};return s>1||this.__actions__.length||!(M instanceof Dr)||!yo(f)?this.thru(X):(M=M.slice(f,+f+(s?1:0)),M.__actions__.push({func:Sf,args:[X],thisArg:d}),new va(M,this.__chain__).thru(function(he){return s&&!he.length&&he.push(d),he}))});function zg(){return wd(this)}function xd(){return new va(this.value(),this.__chain__)}function Fd(){this.__values__===d&&(this.__values__=LE(this.value()));var o=this.__index__>=this.__values__.length,s=o?d:this.__values__[this.__index__++];return{done:o,value:s}}function Xg(){return this}function Jg(o){for(var s,f=this;f instanceof $l;){var M=qS(f);M.__index__=0,M.__values__=d,s?X.__wrapped__=M:s=M;var X=M;f=f.__wrapped__}return X.__wrapped__=o,s}function Zg(){var o=this.__wrapped__;if(o instanceof Dr){var s=o;return this.__actions__.length&&(s=new Dr(this)),s=s.reverse(),s.__actions__.push({func:Sf,args:[Id],thisArg:d}),new va(s,this.__chain__)}return this.thru(Id)}function oE(){return Tu(this.__wrapped__,this.__actions__)}var ey=Au(function(o,s,f){Nr.call(o,f)?++o[f]:To(o,f,1)});function ty(o,s,f){var M=cr(o)?ic:CA;return f&&Vi(o,s,f)&&(s=d),M(o,Wt(s,3))}function sE(o,s){var f=cr(o)?vo:fS;return f(o,Wt(s,3))}var ry=LS(WS),ny=LS(QS);function iy(o,s){return fi(Ef(o,s),1)}function ay(o,s){return fi(Ef(o,s),Y)}function oy(o,s,f){return f=f===d?1:Ar(f),fi(Ef(o,s),f)}function uE(o,s){var f=cr(o)?oi:ts;return f(o,Wt(s,3))}function cE(o,s){var f=cr(o)?nc:Za;return f(o,Wt(s,3))}var sy=Au(function(o,s,f){Nr.call(o,f)?o[f].push(s):To(o,f,[s])});function uy(o,s,f,M){o=Xi(o)?o:Bs(o),f=f&&!M?Ar(f):0;var X=o.length;return f<0&&(f=Lr(X+f,0)),Ou(o)?f<=X&&o.indexOf(s,f)>-1:!!X&&ne(o,s,f)>-1}var cy=yr(function(o,s,f){var M=-1,X=typeof s=="function",he=Xi(o)?rt(o.length):[];return ts(o,function(Ce){he[++M]=X?Si(s,Ce,f):mc(Ce,s,f)}),he}),lE=Au(function(o,s,f){To(o,f,s)});function Ef(o,s){var f=cr(o)?Tn:ES;return f(o,Wt(s,3))}function ly(o,s,f,M){return o==null?[]:(cr(s)||(s=s==null?[]:[s]),f=M?d:f,cr(f)||(f=f==null?[]:[f]),TS(o,s,f))}var fy=Au(function(o,s,f){o[f?0:1].push(s)},function(){return[[],[]]});function _y(o,s,f){var M=cr(o)?Xo:et,X=arguments.length<3;return M(o,Wt(s,4),f,X,ts)}function fE(o,s,f){var M=cr(o)?ac:et,X=arguments.length<3;return M(o,Wt(s,4),f,X,Za)}function _E(o,s){var f=cr(o)?vo:fS;return f(o,Gs(Wt(s,3)))}function $d(o){var s=cr(o)?sS:BA;return s(o)}function Vd(o,s,f){(f?Vi(o,s,f):s===d)?s=1:s=Ar(s);var M=cr(o)?RA:kA;return M(o,s)}function dE(o){var s=cr(o)?Bl:HA;return s(o)}function Gd(o){if(o==null)return 0;if(Xi(o))return Ou(o)?_u(o):o.length;var s=gi(o);return s==J||s==ht?o.size:Ac(o).length}function pE(o,s,f){var M=cr(o)?Sa:yS;return f&&Vi(o,s,f)&&(s=d),M(o,Wt(s,3))}var hE=yr(function(o,s){if(o==null)return[];var f=s.length;return f>1&&Vi(o,s[0],s[1])?s=[]:f>2&&Vi(s[0],s[1],s[2])&&(s=[s[0]]),TS(o,fi(s,1),[])}),vf=Wh||function(){return Gt.Date.now()};function mf(o,s){if(typeof s!="function")throw new Ea(A);return o=Ar(o),function(){if(--o<1)return s.apply(this,arguments)}}function Lc(o,s,f){return s=f?d:s,s=o&&s==null?o.length:s,zi(o,xe,d,d,d,d,s)}function Tf(o,s){var f;if(typeof s!="function")throw new Ea(A);return o=Ar(o),function(){return--o>0&&(f=s.apply(this,arguments)),o<=1&&(s=d),f}}var Bd=yr(function(o,s,f){var M=te;if(f.length){var X=Da(f,Ru(Bd));M|=ue}return zi(o,M,s,f,X)}),SE=yr(function(o,s,f){var M=te|ie;if(f.length){var X=Da(f,Ru(SE));M|=ue}return zi(s,M,o,f,X)});function EE(o,s,f){s=f?d:s;var M=zi(o,j,d,d,d,d,d,s);return M.placeholder=EE.placeholder,M}function vE(o,s,f){s=f?d:s;var M=zi(o,O,d,d,d,d,d,s);return M.placeholder=vE.placeholder,M}function mE(o,s,f){var M,X,he,Ce,Ve,Ke,lt=0,_t=!1,Et=!1,Pt=!0;if(typeof o!="function")throw new Ea(A);s=ya(s)||0,On(f)&&(_t=!!f.leading,Et="maxWait"in f,he=Et?Lr(ya(f.maxWait)||0,s):he,Pt="trailing"in f?!!f.trailing:Pt);function xt(jn){var Ra=M,cs=X;return M=X=d,lt=jn,Ce=o.apply(cs,Ra),Ce}function Jt(jn){return lt=jn,Ve=Pc(hr,s),_t?xt(jn):Ce}function gr(jn){var Ra=jn-Ke,cs=jn-lt,KR=s-Ra;return Et?Ti(KR,he-cs):KR}function Zt(jn){var Ra=jn-Ke,cs=jn-lt;return Ke===d||Ra>=s||Ra<0||Et&&cs>=he}function hr(){var jn=vf();if(Zt(jn))return wr(jn);Ve=Pc(hr,gr(jn))}function wr(jn){return Ve=d,Pt&&M?xt(jn):(M=X=d,Ce)}function aa(){Ve!==d&&bS(Ve),lt=0,M=Ke=X=Ve=d}function Gi(){return Ve===d?Ce:wr(vf())}function oa(){var jn=vf(),Ra=Zt(jn);if(M=arguments,X=this,Ke=jn,Ra){if(Ve===d)return Jt(Ke);if(Et)return bS(Ve),Ve=Pc(hr,s),xt(Ke)}return Ve===d&&(Ve=Pc(hr,s)),Ce}return oa.cancel=aa,oa.flush=Gi,oa}var dy=yr(function(o,s){return lS(o,1,s)}),py=yr(function(o,s,f){return lS(o,ya(s)||0,f)});function hy(o){return zi(o,_e)}function Ro(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new Ea(A);var f=function(){var M=arguments,X=s?s.apply(this,M):M[0],he=f.cache;if(he.has(X))return he.get(X);var Ce=o.apply(this,M);return f.cache=he.set(X,Ce)||he,Ce};return f.cache=new(Ro.Cache||mo),f}Ro.Cache=mo;function Gs(o){if(typeof o!="function")throw new Ea(A);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function Sy(o){return Tf(2,o)}var Ey=cd(function(o,s){s=s.length==1&&cr(s[0])?Tn(s[0],wt(Wt())):Tn(fi(s,1),wt(Wt()));var f=s.length;return yr(function(M){for(var X=-1,he=Ti(M.length,f);++X<he;)M[X]=s[X].call(this,M[X]);return Si(o,this,M)})}),kd=yr(function(o,s){var f=Da(s,Ru(kd));return zi(o,ue,d,s,f)}),TE=yr(function(o,s){var f=Da(s,Ru(TE));return zi(o,be,d,s,f)}),vy=go(function(o,s){return zi(o,we,d,d,d,s)});function my(o,s){if(typeof o!="function")throw new Ea(A);return s=s===d?s:Ar(s),yr(o,s)}function Ty(o,s){if(typeof o!="function")throw new Ea(A);return s=s==null?0:Lr(Ar(s),0),yr(function(f){var M=f[s],X=is(f,0,s);return M&&La(X,M),Si(o,this,X)})}function Ay(o,s,f){var M=!0,X=!0;if(typeof o!="function")throw new Ea(A);return On(f)&&(M="leading"in f?!!f.leading:M,X="trailing"in f?!!f.trailing:X),mE(o,s,{leading:M,maxWait:s,trailing:X})}function gy(o){return Lc(o,1)}function Af(o,s){return kd(ef(s),o)}function jd(){if(!arguments.length)return[];var o=arguments[0];return cr(o)?o:[o]}function yy(o){return ma(o,x)}function Ry(o,s){return s=typeof s=="function"?s:d,ma(o,x,s)}function Oy(o){return ma(o,$|x)}function Hd(o,s){return s=typeof s=="function"?s:d,ma(o,$|x,s)}function Yd(o,s){return s==null||Sc(o,s,ui(s))}function ga(o,s){return o===s||o!==o&&s!==s}var qd=af(Hl),by=af(function(o,s){return o>=s}),Oo=pS(function(){return arguments}())?pS:function(o){return kn(o)&&Nr.call(o,"callee")&&!Ua.call(o,"callee")},cr=rt.isArray,AE=Ui?wt(Ui):NA;function Xi(o){return o!=null&&Rf(o.length)&&!Co(o)}function Bn(o){return kn(o)&&Xi(o)}function gE(o){return o===!0||o===!1||kn(o)&&Qn(o)==Tt}var bo=zh||up,Cy=Wa?wt(Wa):LA;function yE(o){return kn(o)&&o.nodeType===1&&!Dc(o)}function RE(o){if(o==null)return!0;if(Xi(o)&&(cr(o)||typeof o=="string"||typeof o.splice=="function"||bo(o)||us(o)||Oo(o)))return!o.length;var s=gi(o);if(s==J||s==ht)return!o.size;if(Cc(o))return!Ac(o).length;for(var f in o)if(Nr.call(o,f))return!1;return!0}function Py(o,s){return Tc(o,s)}function OE(o,s,f){f=typeof f=="function"?f:d;var M=f?f(o,s):d;return M===d?Tc(o,s,d,f):!!M}function gf(o){if(!kn(o))return!1;var s=Qn(o);return s==Me||s==Pe||typeof o.message=="string"&&typeof o.name=="string"&&!Dc(o)}function My(o){return typeof o=="number"&&Xh(o)}function Co(o){if(!On(o))return!1;var s=Qn(o);return s==B||s==Q||s==at||s==Xe}function yf(o){return typeof o=="number"&&o==Ar(o)}function Rf(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=oe}function On(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function kn(o){return o!=null&&typeof o=="object"}var bE=uu?wt(uu):wA;function Iy(o,s){return o===s||td(o,s,gd(s))}function Ny(o,s,f){return f=typeof f=="function"?f:d,td(o,s,gd(s),f)}function CE(o){return ME(o)&&o!=+o}function Ly(o){if(ag(o))throw new sr(V);return rd(o)}function PE(o){return o===null}function Dy(o){return o==null}function ME(o){return typeof o=="number"||kn(o)&&Qn(o)==le}function Dc(o){if(!kn(o)||Qn(o)!=je)return!1;var s=ri(o);if(s===null)return!0;var f=Nr.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&Il.call(f)==q_}var wc=cu?wt(cu):UA;function wy(o){return yf(o)&&o>=-oe&&o<=oe}var IE=k_?wt(k_):hS;function Ou(o){return typeof o=="string"||!cr(o)&&kn(o)&&Qn(o)==vt}function ia(o){return typeof o=="symbol"||kn(o)&&Qn(o)==Qt}var us=tc?wt(tc):nd;function Uy(o){return o===d}function xy(o){return kn(o)&&gi(o)==Bt}function Fy(o){return kn(o)&&Qn(o)==kt}var NE=af(id),$y=af(function(o,s){return o<=s});function LE(o){if(!o)return[];if(Xi(o))return Ou(o)?na(o):Qi(o);if(sc&&o[sc])return j_(o[sc]());var s=gi(o),f=s==J?Ds:s==ht?si:Bs;return f(o)}function Po(o){if(!o)return o===0?o:0;if(o=ya(o),o===Y||o===-Y){var s=o<0?-1:1;return s*Re}return o===o?o:0}function Ar(o){var s=Po(o),f=s%1;return s===s?f?s-f:s:0}function DE(o){return o?es(Ar(o),0,ae):0}function ya(o){if(typeof o=="number")return o;if(ia(o))return de;if(On(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=On(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=It(o);var f=hi.test(o);return f||Tr.test(o)?Or(o.slice(2),f?2:8):In.test(o)?de:+o}function wE(o){return ro(o,Ji(o))}function UE(o){return o?es(Ar(o),-oe,oe):o===0?o:0}function kr(o){return o==null?"":$i(o)}var Vy=as(function(o,s){if(Cc(s)||Xi(s)){ro(s,ui(s),o);return}for(var f in s)Nr.call(s,f)&&pc(o,f,s[f])}),xE=as(function(o,s){ro(s,Ji(s),o)}),Of=as(function(o,s,f,M){ro(s,Ji(s),o,M)}),Gy=as(function(o,s,f,M){ro(s,ui(s),o,M)}),By=go(hc);function ky(o,s){var f=vu(o);return s==null?f:uS(f,s)}var bu=yr(function(o,s){o=Sn(o);var f=-1,M=s.length,X=M>2?s[2]:d;for(X&&Vi(s[0],s[1],X)&&(M=1);++f<M;)for(var he=s[f],Ce=Ji(he),Ve=-1,Ke=Ce.length;++Ve<Ke;){var lt=Ce[Ve],_t=o[lt];(_t===d||ga(_t,vi[lt])&&!Nr.call(o,lt))&&(o[lt]=he[lt])}return o}),jy=yr(function(o){return o.push(d,FS),Si(Cf,d,o)});function Hy(o,s){return R(o,Wt(s,3),Va)}function Yy(o,s){return R(o,Wt(s,3),ed)}function qy(o,s){return o==null?o:Z_(o,Wt(s,3),Ji)}function Ky(o,s){return o==null?o:_S(o,Wt(s,3),Ji)}function Wy(o,s){return o&&Va(o,Wt(s,3))}function Kd(o,s){return o&&ed(o,Wt(s,3))}function Qy(o){return o==null?[]:vc(o,ui(o))}function zy(o){return o==null?[]:vc(o,Ji(o))}function Wd(o,s,f){var M=o==null?d:rs(o,s);return M===d?f:M}function Qd(o,s){return o!=null&&$S(o,s,MA)}function bf(o,s){return o!=null&&$S(o,s,eo)}var FE=tf(function(o,s,f){s!=null&&typeof s.toString!="function"&&(s=Nl.call(s)),o[s]=f},Mf(Zi)),Xy=tf(function(o,s,f){s!=null&&typeof s.toString!="function"&&(s=Nl.call(s)),Nr.call(o,s)?o[s].push(f):o[s]=[f]},Wt),Jy=yr(mc);function ui(o){return Xi(o)?Gl(o):Ac(o)}function Ji(o){return Xi(o)?Gl(o,!0):xA(o)}function Zy(o,s){var f={};return s=Wt(s,3),Va(o,function(M,X,he){To(f,s(M,X,he),M)}),f}function eR(o,s){var f={};return s=Wt(s,3),Va(o,function(M,X,he){To(f,X,s(M,X,he))}),f}var tR=as(function(o,s,f){ql(o,s,f)}),Cf=as(function(o,s,f,M){ql(o,s,f,M)}),zd=go(function(o,s){var f={};if(o==null)return f;var M=!1;s=Tn(s,function(he){return he=ns(he,o),M||(M=he.length>1),he}),ro(o,Td(o),f),M&&(f=ma(f,$|G|x,QA));for(var X=s.length;X--;)sd(f,s[X]);return f});function rR(o,s){return $E(o,Gs(Wt(s)))}var Xd=go(function(o,s){return o==null?{}:$A(o,s)});function $E(o,s){if(o==null)return{};var f=Tn(Td(o),function(M){return[M]});return s=Wt(s),AS(o,f,function(M,X){return s(M,X[0])})}function nR(o,s,f){s=ns(s,o);var M=-1,X=s.length;for(X||(X=1,o=d);++M<X;){var he=o==null?d:o[no(s[M])];he===d&&(M=X,he=f),o=Co(he)?he.call(o):he}return o}function iR(o,s,f){return o==null?o:Ta(o,s,f)}function aR(o,s,f,M){return M=typeof M=="function"?M:d,o==null?o:Ta(o,s,f,M)}var VE=xS(ui),GE=xS(Ji);function oR(o,s,f){var M=cr(o),X=M||bo(o)||us(o);if(s=Wt(s,4),f==null){var he=o&&o.constructor;X?f=M?new he:[]:On(o)?f=Co(he)?vu(ri(o)):{}:f={}}return(X?oi:Va)(o,function(Ce,Ve,Ke){return s(f,Ce,Ve,Ke)}),f}function BE(o,s){return o==null?!0:sd(o,s)}function Jd(o,s,f){return o==null?o:OS(o,s,ef(f))}function sR(o,s,f,M){return M=typeof M=="function"?M:d,o==null?o:OS(o,s,ef(f),M)}function Bs(o){return o==null?[]:ur(o,ui(o))}function uR(o){return o==null?[]:ur(o,Ji(o))}function cR(o,s,f){return f===d&&(f=s,s=d),f!==d&&(f=ya(f),f=f===f?f:0),s!==d&&(s=ya(s),s=s===s?s:0),es(ya(o),s,f)}function kE(o,s,f){return s=Po(s),f===d?(f=s,s=0):f=Po(f),o=ya(o),IA(o,s,f)}function lR(o,s,f){if(f&&typeof f!="boolean"&&Vi(o,s,f)&&(s=f=d),f===d&&(typeof s=="boolean"?(f=s,s=d):typeof o=="boolean"&&(f=o,o=d)),o===d&&s===d?(o=0,s=1):(o=Po(o),s===d?(s=o,o=0):s=Po(s)),o>s){var M=o;o=s,s=M}if(f||o%1||s%1){var X=Fl();return Ti(o+X*(s-o+Dt("1e-"+((X+"").length-1))),s)}return od(o,s)}var fR=gu(function(o,s,f){return s=s.toLowerCase(),o+(f?Pf(s):s)});function Pf(o){return rp(kr(o).toLowerCase())}function Zd(o){return o=kr(o),o&&o.replace(da,ir).replace(Ka,"")}function ks(o,s,f){o=kr(o),s=$i(s);var M=o.length;f=f===d?M:es(Ar(f),0,M);var X=f;return f-=s.length,f>=0&&o.slice(f,X)==s}function ep(o){return o=kr(o),o&&Hn.test(o)?o.replace(Gr,en):o}function tp(o){return o=kr(o),o&&qn.test(o)?o.replace(Jn,"\\$&"):o}var _R=gu(function(o,s,f){return o+(f?"-":"")+s.toLowerCase()}),jE=gu(function(o,s,f){return o+(f?" ":"")+s.toLowerCase()}),dR=NS("toLowerCase");function pR(o,s,f){o=kr(o),s=Ar(s);var M=s?_u(o):0;if(!s||M>=s)return o;var X=(s-M)/2;return os(du(X),f)+o+os(Ul(X),f)}function hR(o,s,f){o=kr(o),s=Ar(s);var M=s?_u(o):0;return s&&M<s?o+os(s-M,f):o}function HE(o,s,f){o=kr(o),s=Ar(s);var M=s?_u(o):0;return s&&M<s?os(s-M,f)+o:o}function YE(o,s,f){return f||s==null?s=0:s&&(s=+s),uA(kr(o).replace(pn,""),s||0)}function SR(o,s,f){return(f?Vi(o,s,f):s===d)?s=1:s=Ar(s),Wl(kr(o),s)}function ER(){var o=arguments,s=kr(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var vR=gu(function(o,s,f){return o+(f?"_":"")+s.toLowerCase()});function mR(o,s,f){return f&&typeof f!="number"&&Vi(o,s,f)&&(s=f=d),f=f===d?ae:f>>>0,f?(o=kr(o),o&&(typeof s=="string"||s!=null&&!wc(s))&&(s=$i(s),!s&&ei(o))?is(na(o),0,f):o.split(s,f)):[]}var TR=gu(function(o,s,f){return o+(f?" ":"")+rp(s)});function AR(o,s,f){return o=kr(o),f=f==null?0:es(Ar(f),0,o.length),s=$i(s),o.slice(f,f+s.length)==s}function gR(o,s,f){var M=fe.templateSettings;f&&Vi(o,s,f)&&(s=d),o=kr(o),s=Of({},s,M,of);var X=Of({},s.imports,M.imports,of),he=ui(X),Ce=ur(X,he),Ve,Ke,lt=0,_t=s.interpolate||yn,Et="__p += '",Pt=Pl((s.escape||yn).source+"|"+_t.source+"|"+(_t===$t?zr:yn).source+"|"+(s.evaluate||yn).source+"|$","g"),xt="//# sourceURL="+(Nr.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ra+"]")+`
12
+ `)}function ng(o){return cr(o)||Oo(o)||!!(Ul&&o&&o[Ul])}function yo(o,s){var f=typeof o;return s=s??oe,!!s&&(f=="number"||f!="symbol"&&Zn.test(o))&&o>-1&&o%1==0&&o<s}function Vi(o,s,f){if(!On(f))return!1;var M=typeof s;return(M=="number"?Xi(f)&&yo(s,f.length):M=="string"&&s in f)?ga(f[s],o):!1}function Rd(o,s){if(cr(o))return!1;var f=typeof o;return f=="number"||f=="symbol"||f=="boolean"||o==null||ia(o)?!0:br.test(o)||!Ki.test(o)||s!=null&&o in Sn(s)}function VS(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Od(o){var s=Fs(o),f=fe[s];if(typeof f!="function"||!(s in Dr.prototype))return!1;if(o===f)return!0;var M=Ad(f);return!!M&&o===M[0]}function ig(o){return!!qh&&qh in o}var ag=Wn?Co:up;function Pc(o){var s=o&&o.constructor,f=typeof s=="function"&&s.prototype||vi;return o===f}function GS(o){return o===o&&!On(o)}function bd(o,s){return function(f){return f==null?!1:f[o]===s&&(s!==d||o in Sn(f))}}function og(o){var s=Ro(o,function(M){return f.size===P&&f.clear(),M}),f=s.cache;return s}function sg(o,s){var f=o[1],M=s[1],X=f|M,he=X<(te|ie|xe),Ce=M==xe&&f==j||M==xe&&f==we&&o[7].length<=s[8]||M==(xe|we)&&s[7].length<=s[8]&&f==j;if(!(he||Ce))return o;M&te&&(o[2]=s[2],X|=f&te?0:ce);var Ve=s[3];if(Ve){var Ke=o[3];o[3]=Ke?PS(Ke,Ve,s[4]):Ve,o[4]=Ke?Da(o[3],g):s[4]}return Ve=s[5],Ve&&(Ke=o[5],o[5]=Ke?pd(Ke,Ve,s[6]):Ve,o[6]=Ke?Da(o[5],g):s[6]),Ve=s[7],Ve&&(o[7]=Ve),M&xe&&(o[8]=o[8]==null?s[8]:Ti(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=X,o}function Cd(o){var s=[];if(o!=null)for(var f in Sn(o))s.push(f);return s}function ug(o){return Ll.call(o)}function BS(o,s,f){return s=Lr(s===d?o.length-1:s,0),function(){for(var M=arguments,X=-1,he=Lr(M.length-s,0),Ce=rt(he);++X<he;)Ce[X]=M[s+X];X=-1;for(var Ve=rt(s+1);++X<s;)Ve[X]=M[X];return Ve[s]=f(Ce),Si(o,this,Ve)}}function kS(o,s){return s.length<2?o:rs(o,Fi(s,0,-1))}function jS(o,s){for(var f=o.length,M=Ti(s.length,f),X=Qi(o);M--;){var he=s[M];o[M]=yo(he,f)?X[he]:d}return o}function lf(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var ff=_f(gS),Mc=Qh||function(o,s){return Gt.setTimeout(o,s)},Pd=_f(jA);function HS(o,s,f){var M=s+"";return Pd(o,rg(M,cg(ZA(M),f)))}function _f(o){var s=0,f=0;return function(){var M=sA(),X=b-(M-f);if(f=M,X>0){if(++s>=U)return arguments[0]}else s=0;return o.apply(d,arguments)}}function df(o,s){var f=-1,M=o.length,X=M-1;for(s=s===d?M:s;++f<s;){var he=od(f,X),Ce=o[he];o[he]=o[f],o[f]=Ce}return o.length=s,o}var YS=og(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(Xn,function(f,M,X,he){s.push(X?he.replace(hn,"$1"):M||f)}),s});function no(o){if(typeof o=="string"||ia(o))return o;var s=o+"";return s=="0"&&1/o==-Y?"-0":s}function Vs(o){if(o!=null){try{return Nl.call(o)}catch{}try{return o+""}catch{}}return""}function cg(o,s){return oi(ve,function(f){var M="_."+f[0];s&f[1]&&!lu(o,M)&&o.push(M)}),o.sort()}function qS(o){if(o instanceof Dr)return o.clone();var s=new va(o.__wrapped__,o.__chain__);return s.__actions__=Qi(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function lg(o,s,f){(f?Vi(o,s,f):s===d)?s=1:s=Lr(Ar(s),0);var M=o==null?0:o.length;if(!M||s<1)return[];for(var X=0,he=0,Ce=rt(xl(M/s));X<M;)Ce[he++]=Fi(o,X,X+=s);return Ce}function KS(o){for(var s=-1,f=o==null?0:o.length,M=0,X=[];++s<f;){var he=o[s];he&&(X[M++]=he)}return X}function fg(){var o=arguments.length;if(!o)return[];for(var s=rt(o-1),f=arguments[0],M=o;M--;)s[M-1]=arguments[M];return La(cr(f)?Qi(f):[f],fi(s,1))}var _g=yr(function(o,s){return Bn(o)?vc(o,fi(s,1,Bn,!0)):[]}),dg=yr(function(o,s){var f=Aa(s);return Bn(f)&&(f=d),Bn(o)?vc(o,fi(s,1,Bn,!0),Wt(f,2)):[]}),pg=yr(function(o,s){var f=Aa(s);return Bn(f)&&(f=d),Bn(o)?vc(o,fi(s,1,Bn,!0),d,f):[]});function hg(o,s,f){var M=o==null?0:o.length;return M?(s=f||s===d?1:Ar(s),Fi(o,s<0?0:s,M)):[]}function Sg(o,s,f){var M=o==null?0:o.length;return M?(s=f||s===d?1:Ar(s),s=M-s,Fi(o,0,s<0?0:s)):[]}function Eg(o,s){return o&&o.length?Jl(o,Wt(s,3),!0,!0):[]}function Ic(o,s){return o&&o.length?Jl(o,Wt(s,3),!0):[]}function vg(o,s,f,M){var X=o==null?0:o.length;return X?(f&&typeof f!="number"&&Vi(o,s,f)&&(f=0,M=X),PA(o,s,f,M)):[]}function WS(o,s,f){var M=o==null?0:o.length;if(!M)return-1;var X=f==null?0:Ar(f);return X<0&&(X=Lr(M+X,0)),q(o,Wt(s,3),X)}function QS(o,s,f){var M=o==null?0:o.length;if(!M)return-1;var X=M-1;return f!==d&&(X=Ar(f),X=f<0?Lr(M+X,0):Ti(X,M-1)),q(o,Wt(s,3),X,!0)}function zS(o){var s=o==null?0:o.length;return s?fi(o,1):[]}function mg(o){var s=o==null?0:o.length;return s?fi(o,Y):[]}function Md(o,s){var f=o==null?0:o.length;return f?(s=s===d?1:Ar(s),fi(o,s)):[]}function Tg(o){for(var s=-1,f=o==null?0:o.length,M={};++s<f;){var X=o[s];M[X[0]]=X[1]}return M}function XS(o){return o&&o.length?o[0]:d}function Ag(o,s,f){var M=o==null?0:o.length;if(!M)return-1;var X=f==null?0:Ar(f);return X<0&&(X=Lr(M+X,0)),ne(o,s,X)}function gg(o){var s=o==null?0:o.length;return s?Fi(o,0,-1):[]}var yg=yr(function(o){var s=Tn(o,ud);return s.length&&s[0]===o[0]?ql(s):[]}),Rg=yr(function(o){var s=Aa(o),f=Tn(o,ud);return s===Aa(f)?s=d:f.pop(),f.length&&f[0]===o[0]?ql(f,Wt(s,2)):[]}),pf=yr(function(o){var s=Aa(o),f=Tn(o,ud);return s=typeof s=="function"?s:d,s&&f.pop(),f.length&&f[0]===o[0]?ql(f,d,s):[]});function Og(o,s){return o==null?"":W_.call(o,s)}function Aa(o){var s=o==null?0:o.length;return s?o[s-1]:d}function JS(o,s,f){var M=o==null?0:o.length;if(!M)return-1;var X=M;return f!==d&&(X=Ar(f),X=X<0?Lr(M+X,0):Ti(X,M-1)),s===s?eA(o,s,X):q(o,Ie,X,!0)}function bg(o,s){return o&&o.length?mS(o,Ar(s)):d}var Cg=yr(ZS);function ZS(o,s){return o&&o.length&&s&&s.length?Wl(o,s):o}function hf(o,s,f){return o&&o.length&&s&&s.length?Wl(o,s,Wt(f,2)):o}function Pg(o,s,f){return o&&o.length&&s&&s.length?Wl(o,s,d,f):o}var Mg=go(function(o,s){var f=o==null?0:o.length,M=Sc(o,s);return Ao(o,Tn(s,function(X){return yo(X,f)?+X:X}).sort(CS)),M});function Ig(o,s){var f=[];if(!(o&&o.length))return f;var M=-1,X=[],he=o.length;for(s=Wt(s,3);++M<he;){var Ce=o[M];s(Ce,M,o)&&(f.push(Ce),X.push(M))}return Ao(o,X),f}function Id(o){return o==null?o:cA.call(o)}function Ng(o,s,f){var M=o==null?0:o.length;return M?(f&&typeof f!="number"&&Vi(o,s,f)?(s=0,f=M):(s=s==null?0:Ar(s),f=f===d?M:Ar(f)),Fi(o,s,f)):[]}function Lg(o,s){return zl(o,s)}function Dg(o,s,f){return yc(o,s,Wt(f,2))}function wg(o,s){var f=o==null?0:o.length;if(f){var M=zl(o,s);if(M<f&&ga(o[M],s))return M}return-1}function Nc(o,s){return zl(o,s,!0)}function eE(o,s,f){return yc(o,s,Wt(f,2),!0)}function Ug(o,s){var f=o==null?0:o.length;if(f){var M=zl(o,s,!0)-1;if(ga(o[M],s))return M}return-1}function xg(o){return o&&o.length?RS(o):[]}function Fg(o,s){return o&&o.length?RS(o,Wt(s,2)):[]}function $g(o){var s=o==null?0:o.length;return s?Fi(o,1,s):[]}function tE(o,s,f){return o&&o.length?(s=f||s===d?1:Ar(s),Fi(o,0,s<0?0:s)):[]}function Sf(o,s,f){var M=o==null?0:o.length;return M?(s=f||s===d?1:Ar(s),s=M-s,Fi(o,s<0?0:s,M)):[]}function Vg(o,s){return o&&o.length?Jl(o,Wt(s,3),!1,!0):[]}function Gg(o,s){return o&&o.length?Jl(o,Wt(s,3)):[]}var Nd=yr(function(o){return to(fi(o,1,Bn,!0))}),Bg=yr(function(o){var s=Aa(o);return Bn(s)&&(s=d),to(fi(o,1,Bn,!0),Wt(s,2))}),rE=yr(function(o){var s=Aa(o);return s=typeof s=="function"?s:d,to(fi(o,1,Bn,!0),d,s)});function kg(o){return o&&o.length?to(o):[]}function jg(o,s){return o&&o.length?to(o,Wt(s,2)):[]}function Hg(o,s){return s=typeof s=="function"?s:d,o&&o.length?to(o,d,s):[]}function Ld(o){if(!(o&&o.length))return[];var s=0;return o=vo(o,function(f){if(Bn(f))return s=Lr(f.length,s),!0}),bt(s,function(f){return Tn(o,Le(f))})}function Dd(o,s){if(!(o&&o.length))return[];var f=Ld(o);return s==null?f:Tn(f,function(M){return Si(s,d,M)})}var Lc=yr(function(o,s){return Bn(o)?vc(o,s):[]}),nE=yr(function(o){return Zl(vo(o,Bn))}),iE=yr(function(o){var s=Aa(o);return Bn(s)&&(s=d),Zl(vo(o,Bn),Wt(s,2))}),aE=yr(function(o){var s=Aa(o);return s=typeof s=="function"?s:d,Zl(vo(o,Bn),d,s)}),Yg=yr(Ld);function qg(o,s){return ef(o||[],s||[],hc)}function Kg(o,s){return ef(o||[],s||[],Ta)}var Wg=yr(function(o){var s=o.length,f=s>1?o[s-1]:d;return f=typeof f=="function"?(o.pop(),f):d,Dd(o,f)});function wd(o){var s=fe(o);return s.__chain__=!0,s}function Qg(o,s){return s(o),o}function Ef(o,s){return s(o)}var Ud=go(function(o){var s=o.length,f=s?o[0]:0,M=this.__wrapped__,X=function(he){return Sc(he,o)};return s>1||this.__actions__.length||!(M instanceof Dr)||!yo(f)?this.thru(X):(M=M.slice(f,+f+(s?1:0)),M.__actions__.push({func:Ef,args:[X],thisArg:d}),new va(M,this.__chain__).thru(function(he){return s&&!he.length&&he.push(d),he}))});function zg(){return wd(this)}function xd(){return new va(this.value(),this.__chain__)}function Fd(){this.__values__===d&&(this.__values__=LE(this.value()));var o=this.__index__>=this.__values__.length,s=o?d:this.__values__[this.__index__++];return{done:o,value:s}}function Xg(){return this}function Jg(o){for(var s,f=this;f instanceof Vl;){var M=qS(f);M.__index__=0,M.__values__=d,s?X.__wrapped__=M:s=M;var X=M;f=f.__wrapped__}return X.__wrapped__=o,s}function Zg(){var o=this.__wrapped__;if(o instanceof Dr){var s=o;return this.__actions__.length&&(s=new Dr(this)),s=s.reverse(),s.__actions__.push({func:Ef,args:[Id],thisArg:d}),new va(s,this.__chain__)}return this.thru(Id)}function oE(){return Au(this.__wrapped__,this.__actions__)}var ey=gu(function(o,s,f){Nr.call(o,f)?++o[f]:To(o,f,1)});function ty(o,s,f){var M=cr(o)?ac:CA;return f&&Vi(o,s,f)&&(s=d),M(o,Wt(s,3))}function sE(o,s){var f=cr(o)?vo:fS;return f(o,Wt(s,3))}var ry=LS(WS),ny=LS(QS);function iy(o,s){return fi(vf(o,s),1)}function ay(o,s){return fi(vf(o,s),Y)}function oy(o,s,f){return f=f===d?1:Ar(f),fi(vf(o,s),f)}function uE(o,s){var f=cr(o)?oi:ts;return f(o,Wt(s,3))}function cE(o,s){var f=cr(o)?ic:Za;return f(o,Wt(s,3))}var sy=gu(function(o,s,f){Nr.call(o,f)?o[f].push(s):To(o,f,[s])});function uy(o,s,f,M){o=Xi(o)?o:Bs(o),f=f&&!M?Ar(f):0;var X=o.length;return f<0&&(f=Lr(X+f,0)),bu(o)?f<=X&&o.indexOf(s,f)>-1:!!X&&ne(o,s,f)>-1}var cy=yr(function(o,s,f){var M=-1,X=typeof s=="function",he=Xi(o)?rt(o.length):[];return ts(o,function(Ce){he[++M]=X?Si(s,Ce,f):Tc(Ce,s,f)}),he}),lE=gu(function(o,s,f){To(o,f,s)});function vf(o,s){var f=cr(o)?Tn:ES;return f(o,Wt(s,3))}function ly(o,s,f,M){return o==null?[]:(cr(s)||(s=s==null?[]:[s]),f=M?d:f,cr(f)||(f=f==null?[]:[f]),TS(o,s,f))}var fy=gu(function(o,s,f){o[f?0:1].push(s)},function(){return[[],[]]});function _y(o,s,f){var M=cr(o)?Xo:et,X=arguments.length<3;return M(o,Wt(s,4),f,X,ts)}function fE(o,s,f){var M=cr(o)?oc:et,X=arguments.length<3;return M(o,Wt(s,4),f,X,Za)}function _E(o,s){var f=cr(o)?vo:fS;return f(o,Gs(Wt(s,3)))}function $d(o){var s=cr(o)?sS:BA;return s(o)}function Vd(o,s,f){(f?Vi(o,s,f):s===d)?s=1:s=Ar(s);var M=cr(o)?RA:kA;return M(o,s)}function dE(o){var s=cr(o)?kl:HA;return s(o)}function Gd(o){if(o==null)return 0;if(Xi(o))return bu(o)?_u(o):o.length;var s=gi(o);return s==J||s==ht?o.size:gc(o).length}function pE(o,s,f){var M=cr(o)?Sa:yS;return f&&Vi(o,s,f)&&(s=d),M(o,Wt(s,3))}var hE=yr(function(o,s){if(o==null)return[];var f=s.length;return f>1&&Vi(o,s[0],s[1])?s=[]:f>2&&Vi(s[0],s[1],s[2])&&(s=[s[0]]),TS(o,fi(s,1),[])}),mf=Wh||function(){return Gt.Date.now()};function Tf(o,s){if(typeof s!="function")throw new Ea(A);return o=Ar(o),function(){if(--o<1)return s.apply(this,arguments)}}function Dc(o,s,f){return s=f?d:s,s=o&&s==null?o.length:s,zi(o,xe,d,d,d,d,s)}function Af(o,s){var f;if(typeof s!="function")throw new Ea(A);return o=Ar(o),function(){return--o>0&&(f=s.apply(this,arguments)),o<=1&&(s=d),f}}var Bd=yr(function(o,s,f){var M=te;if(f.length){var X=Da(f,Ou(Bd));M|=ue}return zi(o,M,s,f,X)}),SE=yr(function(o,s,f){var M=te|ie;if(f.length){var X=Da(f,Ou(SE));M|=ue}return zi(s,M,o,f,X)});function EE(o,s,f){s=f?d:s;var M=zi(o,j,d,d,d,d,d,s);return M.placeholder=EE.placeholder,M}function vE(o,s,f){s=f?d:s;var M=zi(o,O,d,d,d,d,d,s);return M.placeholder=vE.placeholder,M}function mE(o,s,f){var M,X,he,Ce,Ve,Ke,lt=0,_t=!1,Et=!1,Pt=!0;if(typeof o!="function")throw new Ea(A);s=ya(s)||0,On(f)&&(_t=!!f.leading,Et="maxWait"in f,he=Et?Lr(ya(f.maxWait)||0,s):he,Pt="trailing"in f?!!f.trailing:Pt);function xt(jn){var Ra=M,cs=X;return M=X=d,lt=jn,Ce=o.apply(cs,Ra),Ce}function Jt(jn){return lt=jn,Ve=Mc(hr,s),_t?xt(jn):Ce}function gr(jn){var Ra=jn-Ke,cs=jn-lt,KR=s-Ra;return Et?Ti(KR,he-cs):KR}function Zt(jn){var Ra=jn-Ke,cs=jn-lt;return Ke===d||Ra>=s||Ra<0||Et&&cs>=he}function hr(){var jn=mf();if(Zt(jn))return wr(jn);Ve=Mc(hr,gr(jn))}function wr(jn){return Ve=d,Pt&&M?xt(jn):(M=X=d,Ce)}function aa(){Ve!==d&&bS(Ve),lt=0,M=Ke=X=Ve=d}function Gi(){return Ve===d?Ce:wr(mf())}function oa(){var jn=mf(),Ra=Zt(jn);if(M=arguments,X=this,Ke=jn,Ra){if(Ve===d)return Jt(Ke);if(Et)return bS(Ve),Ve=Mc(hr,s),xt(Ke)}return Ve===d&&(Ve=Mc(hr,s)),Ce}return oa.cancel=aa,oa.flush=Gi,oa}var dy=yr(function(o,s){return lS(o,1,s)}),py=yr(function(o,s,f){return lS(o,ya(s)||0,f)});function hy(o){return zi(o,_e)}function Ro(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new Ea(A);var f=function(){var M=arguments,X=s?s.apply(this,M):M[0],he=f.cache;if(he.has(X))return he.get(X);var Ce=o.apply(this,M);return f.cache=he.set(X,Ce)||he,Ce};return f.cache=new(Ro.Cache||mo),f}Ro.Cache=mo;function Gs(o){if(typeof o!="function")throw new Ea(A);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function Sy(o){return Af(2,o)}var Ey=cd(function(o,s){s=s.length==1&&cr(s[0])?Tn(s[0],wt(Wt())):Tn(fi(s,1),wt(Wt()));var f=s.length;return yr(function(M){for(var X=-1,he=Ti(M.length,f);++X<he;)M[X]=s[X].call(this,M[X]);return Si(o,this,M)})}),kd=yr(function(o,s){var f=Da(s,Ou(kd));return zi(o,ue,d,s,f)}),TE=yr(function(o,s){var f=Da(s,Ou(TE));return zi(o,be,d,s,f)}),vy=go(function(o,s){return zi(o,we,d,d,d,s)});function my(o,s){if(typeof o!="function")throw new Ea(A);return s=s===d?s:Ar(s),yr(o,s)}function Ty(o,s){if(typeof o!="function")throw new Ea(A);return s=s==null?0:Lr(Ar(s),0),yr(function(f){var M=f[s],X=is(f,0,s);return M&&La(X,M),Si(o,this,X)})}function Ay(o,s,f){var M=!0,X=!0;if(typeof o!="function")throw new Ea(A);return On(f)&&(M="leading"in f?!!f.leading:M,X="trailing"in f?!!f.trailing:X),mE(o,s,{leading:M,maxWait:s,trailing:X})}function gy(o){return Dc(o,1)}function gf(o,s){return kd(tf(s),o)}function jd(){if(!arguments.length)return[];var o=arguments[0];return cr(o)?o:[o]}function yy(o){return ma(o,x)}function Ry(o,s){return s=typeof s=="function"?s:d,ma(o,x,s)}function Oy(o){return ma(o,$|x)}function Hd(o,s){return s=typeof s=="function"?s:d,ma(o,$|x,s)}function Yd(o,s){return s==null||Ec(o,s,ui(s))}function ga(o,s){return o===s||o!==o&&s!==s}var qd=of(Yl),by=of(function(o,s){return o>=s}),Oo=pS(function(){return arguments}())?pS:function(o){return kn(o)&&Nr.call(o,"callee")&&!Ua.call(o,"callee")},cr=rt.isArray,AE=Ui?wt(Ui):NA;function Xi(o){return o!=null&&Of(o.length)&&!Co(o)}function Bn(o){return kn(o)&&Xi(o)}function gE(o){return o===!0||o===!1||kn(o)&&Qn(o)==Tt}var bo=zh||up,Cy=Wa?wt(Wa):LA;function yE(o){return kn(o)&&o.nodeType===1&&!wc(o)}function RE(o){if(o==null)return!0;if(Xi(o)&&(cr(o)||typeof o=="string"||typeof o.splice=="function"||bo(o)||us(o)||Oo(o)))return!o.length;var s=gi(o);if(s==J||s==ht)return!o.size;if(Pc(o))return!gc(o).length;for(var f in o)if(Nr.call(o,f))return!1;return!0}function Py(o,s){return Ac(o,s)}function OE(o,s,f){f=typeof f=="function"?f:d;var M=f?f(o,s):d;return M===d?Ac(o,s,d,f):!!M}function yf(o){if(!kn(o))return!1;var s=Qn(o);return s==Me||s==Pe||typeof o.message=="string"&&typeof o.name=="string"&&!wc(o)}function My(o){return typeof o=="number"&&Xh(o)}function Co(o){if(!On(o))return!1;var s=Qn(o);return s==B||s==Q||s==at||s==Xe}function Rf(o){return typeof o=="number"&&o==Ar(o)}function Of(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=oe}function On(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function kn(o){return o!=null&&typeof o=="object"}var bE=uu?wt(uu):wA;function Iy(o,s){return o===s||td(o,s,gd(s))}function Ny(o,s,f){return f=typeof f=="function"?f:d,td(o,s,gd(s),f)}function CE(o){return ME(o)&&o!=+o}function Ly(o){if(ag(o))throw new sr(V);return rd(o)}function PE(o){return o===null}function Dy(o){return o==null}function ME(o){return typeof o=="number"||kn(o)&&Qn(o)==le}function wc(o){if(!kn(o)||Qn(o)!=je)return!1;var s=ri(o);if(s===null)return!0;var f=Nr.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&Nl.call(f)==du}var Uc=cu?wt(cu):UA;function wy(o){return Rf(o)&&o>=-oe&&o<=oe}var IE=j_?wt(j_):hS;function bu(o){return typeof o=="string"||!cr(o)&&kn(o)&&Qn(o)==vt}function ia(o){return typeof o=="symbol"||kn(o)&&Qn(o)==Qt}var us=rc?wt(rc):nd;function Uy(o){return o===d}function xy(o){return kn(o)&&gi(o)==Bt}function Fy(o){return kn(o)&&Qn(o)==kt}var NE=of(id),$y=of(function(o,s){return o<=s});function LE(o){if(!o)return[];if(Xi(o))return bu(o)?na(o):Qi(o);if(uc&&o[uc])return H_(o[uc]());var s=gi(o),f=s==J?Ds:s==ht?si:Bs;return f(o)}function Po(o){if(!o)return o===0?o:0;if(o=ya(o),o===Y||o===-Y){var s=o<0?-1:1;return s*Re}return o===o?o:0}function Ar(o){var s=Po(o),f=s%1;return s===s?f?s-f:s:0}function DE(o){return o?es(Ar(o),0,ae):0}function ya(o){if(typeof o=="number")return o;if(ia(o))return de;if(On(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=On(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=It(o);var f=hi.test(o);return f||Tr.test(o)?Or(o.slice(2),f?2:8):In.test(o)?de:+o}function wE(o){return ro(o,Ji(o))}function UE(o){return o?es(Ar(o),-oe,oe):o===0?o:0}function kr(o){return o==null?"":$i(o)}var Vy=as(function(o,s){if(Pc(s)||Xi(s)){ro(s,ui(s),o);return}for(var f in s)Nr.call(s,f)&&hc(o,f,s[f])}),xE=as(function(o,s){ro(s,Ji(s),o)}),bf=as(function(o,s,f,M){ro(s,Ji(s),o,M)}),Gy=as(function(o,s,f,M){ro(s,ui(s),o,M)}),By=go(Sc);function ky(o,s){var f=mu(o);return s==null?f:uS(f,s)}var Cu=yr(function(o,s){o=Sn(o);var f=-1,M=s.length,X=M>2?s[2]:d;for(X&&Vi(s[0],s[1],X)&&(M=1);++f<M;)for(var he=s[f],Ce=Ji(he),Ve=-1,Ke=Ce.length;++Ve<Ke;){var lt=Ce[Ve],_t=o[lt];(_t===d||ga(_t,vi[lt])&&!Nr.call(o,lt))&&(o[lt]=he[lt])}return o}),jy=yr(function(o){return o.push(d,FS),Si(Pf,d,o)});function Hy(o,s){return R(o,Wt(s,3),Va)}function Yy(o,s){return R(o,Wt(s,3),ed)}function qy(o,s){return o==null?o:Z_(o,Wt(s,3),Ji)}function Ky(o,s){return o==null?o:_S(o,Wt(s,3),Ji)}function Wy(o,s){return o&&Va(o,Wt(s,3))}function Kd(o,s){return o&&ed(o,Wt(s,3))}function Qy(o){return o==null?[]:mc(o,ui(o))}function zy(o){return o==null?[]:mc(o,Ji(o))}function Wd(o,s,f){var M=o==null?d:rs(o,s);return M===d?f:M}function Qd(o,s){return o!=null&&$S(o,s,MA)}function Cf(o,s){return o!=null&&$S(o,s,eo)}var FE=rf(function(o,s,f){s!=null&&typeof s.toString!="function"&&(s=Ll.call(s)),o[s]=f},If(Zi)),Xy=rf(function(o,s,f){s!=null&&typeof s.toString!="function"&&(s=Ll.call(s)),Nr.call(o,s)?o[s].push(f):o[s]=[f]},Wt),Jy=yr(Tc);function ui(o){return Xi(o)?Bl(o):gc(o)}function Ji(o){return Xi(o)?Bl(o,!0):xA(o)}function Zy(o,s){var f={};return s=Wt(s,3),Va(o,function(M,X,he){To(f,s(M,X,he),M)}),f}function eR(o,s){var f={};return s=Wt(s,3),Va(o,function(M,X,he){To(f,X,s(M,X,he))}),f}var tR=as(function(o,s,f){Kl(o,s,f)}),Pf=as(function(o,s,f,M){Kl(o,s,f,M)}),zd=go(function(o,s){var f={};if(o==null)return f;var M=!1;s=Tn(s,function(he){return he=ns(he,o),M||(M=he.length>1),he}),ro(o,Td(o),f),M&&(f=ma(f,$|G|x,QA));for(var X=s.length;X--;)sd(f,s[X]);return f});function rR(o,s){return $E(o,Gs(Wt(s)))}var Xd=go(function(o,s){return o==null?{}:$A(o,s)});function $E(o,s){if(o==null)return{};var f=Tn(Td(o),function(M){return[M]});return s=Wt(s),AS(o,f,function(M,X){return s(M,X[0])})}function nR(o,s,f){s=ns(s,o);var M=-1,X=s.length;for(X||(X=1,o=d);++M<X;){var he=o==null?d:o[no(s[M])];he===d&&(M=X,he=f),o=Co(he)?he.call(o):he}return o}function iR(o,s,f){return o==null?o:Ta(o,s,f)}function aR(o,s,f,M){return M=typeof M=="function"?M:d,o==null?o:Ta(o,s,f,M)}var VE=xS(ui),GE=xS(Ji);function oR(o,s,f){var M=cr(o),X=M||bo(o)||us(o);if(s=Wt(s,4),f==null){var he=o&&o.constructor;X?f=M?new he:[]:On(o)?f=Co(he)?mu(ri(o)):{}:f={}}return(X?oi:Va)(o,function(Ce,Ve,Ke){return s(f,Ce,Ve,Ke)}),f}function BE(o,s){return o==null?!0:sd(o,s)}function Jd(o,s,f){return o==null?o:OS(o,s,tf(f))}function sR(o,s,f,M){return M=typeof M=="function"?M:d,o==null?o:OS(o,s,tf(f),M)}function Bs(o){return o==null?[]:ur(o,ui(o))}function uR(o){return o==null?[]:ur(o,Ji(o))}function cR(o,s,f){return f===d&&(f=s,s=d),f!==d&&(f=ya(f),f=f===f?f:0),s!==d&&(s=ya(s),s=s===s?s:0),es(ya(o),s,f)}function kE(o,s,f){return s=Po(s),f===d?(f=s,s=0):f=Po(f),o=ya(o),IA(o,s,f)}function lR(o,s,f){if(f&&typeof f!="boolean"&&Vi(o,s,f)&&(s=f=d),f===d&&(typeof s=="boolean"?(f=s,s=d):typeof o=="boolean"&&(f=o,o=d)),o===d&&s===d?(o=0,s=1):(o=Po(o),s===d?(s=o,o=0):s=Po(s)),o>s){var M=o;o=s,s=M}if(f||o%1||s%1){var X=$l();return Ti(o+X*(s-o+Dt("1e-"+((X+"").length-1))),s)}return od(o,s)}var fR=yu(function(o,s,f){return s=s.toLowerCase(),o+(f?Mf(s):s)});function Mf(o){return rp(kr(o).toLowerCase())}function Zd(o){return o=kr(o),o&&o.replace(da,ir).replace(Ka,"")}function ks(o,s,f){o=kr(o),s=$i(s);var M=o.length;f=f===d?M:es(Ar(f),0,M);var X=f;return f-=s.length,f>=0&&o.slice(f,X)==s}function ep(o){return o=kr(o),o&&Hn.test(o)?o.replace(Gr,en):o}function tp(o){return o=kr(o),o&&qn.test(o)?o.replace(Jn,"\\$&"):o}var _R=yu(function(o,s,f){return o+(f?"-":"")+s.toLowerCase()}),jE=yu(function(o,s,f){return o+(f?" ":"")+s.toLowerCase()}),dR=NS("toLowerCase");function pR(o,s,f){o=kr(o),s=Ar(s);var M=s?_u(o):0;if(!s||M>=s)return o;var X=(s-M)/2;return os(pu(X),f)+o+os(xl(X),f)}function hR(o,s,f){o=kr(o),s=Ar(s);var M=s?_u(o):0;return s&&M<s?o+os(s-M,f):o}function HE(o,s,f){o=kr(o),s=Ar(s);var M=s?_u(o):0;return s&&M<s?os(s-M,f)+o:o}function YE(o,s,f){return f||s==null?s=0:s&&(s=+s),uA(kr(o).replace(pn,""),s||0)}function SR(o,s,f){return(f?Vi(o,s,f):s===d)?s=1:s=Ar(s),Ql(kr(o),s)}function ER(){var o=arguments,s=kr(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var vR=yu(function(o,s,f){return o+(f?"_":"")+s.toLowerCase()});function mR(o,s,f){return f&&typeof f!="number"&&Vi(o,s,f)&&(s=f=d),f=f===d?ae:f>>>0,f?(o=kr(o),o&&(typeof s=="string"||s!=null&&!Uc(s))&&(s=$i(s),!s&&ei(o))?is(na(o),0,f):o.split(s,f)):[]}var TR=yu(function(o,s,f){return o+(f?" ":"")+rp(s)});function AR(o,s,f){return o=kr(o),f=f==null?0:es(Ar(f),0,o.length),s=$i(s),o.slice(f,f+s.length)==s}function gR(o,s,f){var M=fe.templateSettings;f&&Vi(o,s,f)&&(s=d),o=kr(o),s=bf({},s,M,sf);var X=bf({},s.imports,M.imports,sf),he=ui(X),Ce=ur(X,he),Ve,Ke,lt=0,_t=s.interpolate||yn,Et="__p += '",Pt=Ml((s.escape||yn).source+"|"+_t.source+"|"+(_t===$t?zr:yn).source+"|"+(s.evaluate||yn).source+"|$","g"),xt="//# sourceURL="+(Nr.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ra+"]")+`
13
13
  `;o.replace(Pt,function(Zt,hr,wr,aa,Gi,oa){return wr||(wr=aa),Et+=o.slice(lt,oa).replace(Ni,xi),hr&&(Ve=!0,Et+=`' +
14
14
  __e(`+hr+`) +
15
15
  '`),Gi&&(Ke=!0,Et+=`';
@@ -26,7 +26,7 @@ __p += '`),wr&&(Et+=`' +
26
26
  function print() { __p += __j.call(arguments, '') }
27
27
  `:`;
28
28
  `)+Et+`return __p
29
- }`;var gr=np(function(){return Xr(he,xt+"return "+Et).apply(d,Ce)});if(gr.source=Et,gf(gr))throw gr;return gr}function yR(o){return kr(o).toLowerCase()}function RR(o){return kr(o).toUpperCase()}function OR(o,s,f){if(o=kr(o),o&&(f||s===d))return It(o);if(!o||!(s=$i(s)))return o;var M=na(o),X=na(s),he=Yt(M,X),Ce=pr(M,X)+1;return is(M,he,Ce).join("")}function bR(o,s,f){if(o=kr(o),o&&(f||s===d))return o.slice(0,tA(o)+1);if(!o||!(s=$i(s)))return o;var M=na(o),X=pr(M,na(s))+1;return is(M,0,X).join("")}function CR(o,s,f){if(o=kr(o),o&&(f||s===d))return o.replace(pn,"");if(!o||!(s=$i(s)))return o;var M=na(o),X=Yt(M,na(s));return is(M,X).join("")}function PR(o,s){var f=Ne,M=Ae;if(On(s)){var X="separator"in s?s.separator:X;f="length"in s?Ar(s.length):f,M="omission"in s?$i(s.omission):M}o=kr(o);var he=o.length;if(ei(o)){var Ce=na(o);he=Ce.length}if(f>=he)return o;var Ve=f-_u(M);if(Ve<1)return M;var Ke=Ce?is(Ce,0,Ve).join(""):o.slice(0,Ve);if(X===d)return Ke+M;if(Ce&&(Ve+=Ke.length-Ve),wc(X)){if(o.slice(Ve).search(X)){var lt,_t=Ke;for(X.global||(X=Pl(X.source,kr(it.exec(X))+"g")),X.lastIndex=0;lt=X.exec(_t);)var Et=lt.index;Ke=Ke.slice(0,Et===d?Ve:Et)}}else if(o.indexOf($i(X),Ve)!=Ve){var Pt=Ke.lastIndexOf(X);Pt>-1&&(Ke=Ke.slice(0,Pt))}return Ke+M}function MR(o){return o=kr(o),o&&mn.test(o)?o.replace(Vr,Hh):o}var IR=gu(function(o,s,f){return o+(f?" ":"")+s.toUpperCase()}),rp=NS("toUpperCase");function qE(o,s,f){return o=kr(o),s=f?d:s,s===d?fu(o)?rA(o):S(o):o.match(s)||[]}var np=yr(function(o,s){try{return Si(o,d,s)}catch(f){return gf(f)?f:new sr(f)}}),NR=go(function(o,s){return oi(s,function(f){f=no(f),To(o,f,Bd(o[f],o))}),o});function LR(o){var s=o==null?0:o.length,f=Wt();return o=s?Tn(o,function(M){if(typeof M[1]!="function")throw new Ea(A);return[f(M[0]),M[1]]}):[],yr(function(M){for(var X=-1;++X<s;){var he=o[X];if(Si(he[0],this,M))return Si(he[1],this,M)}})}function KE(o){return bA(ma(o,$))}function Mf(o){return function(){return o}}function DR(o,s){return o==null||o!==o?s:o}var wR=DS(),ip=DS(!0);function Zi(o){return o}function ap(o){return SS(typeof o=="function"?o:ma(o,$))}function WE(o){return ad(ma(o,$))}function UR(o,s){return vS(o,ma(s,$))}var xR=yr(function(o,s){return function(f){return mc(f,o,s)}}),QE=yr(function(o,s){return function(f){return mc(o,f,s)}});function Cu(o,s,f){var M=ui(s),X=vc(s,M);f==null&&!(On(s)&&(X.length||!M.length))&&(f=s,s=o,o=this,X=vc(s,ui(s)));var he=!(On(f)&&"chain"in f)||!!f.chain,Ce=Co(o);return oi(X,function(Ve){var Ke=s[Ve];o[Ve]=Ke,Ce&&(o.prototype[Ve]=function(){var lt=this.__chain__;if(he||lt){var _t=o(this.__wrapped__),Et=_t.__actions__=Qi(this.__actions__);return Et.push({func:Ke,args:arguments,thisArg:o}),_t.__chain__=lt,_t}return Ke.apply(o,La([this.value()],arguments))})}),o}function Uc(){return Gt._===this&&(Gt._=II),this}function If(){}function xc(o){return o=Ar(o),yr(function(s){return mS(s,o)})}var zE=yu(Tn),FR=yu(ic),$R=yu(Sa);function XE(o){return Rd(o)?Le(no(o)):VA(o)}function op(o){return function(s){return o==null?d:rs(o,s)}}var JE=wS(),ZE=wS(!0);function sp(){return[]}function up(){return!1}function VR(){return{}}function ev(){return""}function GR(){return!0}function BR(o,s){if(o=Ar(o),o<1||o>oe)return[];var f=ae,M=Ti(o,ae);s=Wt(s),o-=ae;for(var X=bt(M,s);++f<o;)s(f);return X}function kR(o){return cr(o)?Tn(o,no):ia(o)?[o]:Qi(YS(kr(o)))}function tv(o){var s=++za;return kr(o)+s}var jR=rf(function(o,s){return o+s},0),HR=vd("ceil"),cp=rf(function(o,s){return o/s},1),rv=vd("floor");function YR(o){return o&&o.length?jl(o,Zi,Hl):d}function nv(o,s){return o&&o.length?jl(o,Wt(s,2),Hl):d}function iv(o){return $e(o,Zi)}function qR(o,s){return $e(o,Wt(s,2))}function Fc(o){return o&&o.length?jl(o,Zi,id):d}function lp(o,s){return o&&o.length?jl(o,Wt(s,2),id):d}var av=rf(function(o,s){return o*s},1),fp=vd("round"),ov=rf(function(o,s){return o-s},0);function _p(o){return o&&o.length?st(o,Zi):0}function sv(o,s){return o&&o.length?st(o,Wt(s,2)):0}return fe.after=mf,fe.ary=Lc,fe.assign=Vy,fe.assignIn=xE,fe.assignInWith=Of,fe.assignWith=Gy,fe.at=By,fe.before=Tf,fe.bind=Bd,fe.bindAll=NR,fe.bindKey=SE,fe.castArray=jd,fe.chain=wd,fe.chunk=lg,fe.compact=KS,fe.concat=fg,fe.cond=LR,fe.conforms=KE,fe.constant=Mf,fe.countBy=ey,fe.create=ky,fe.curry=EE,fe.curryRight=vE,fe.debounce=mE,fe.defaults=bu,fe.defaultsDeep=jy,fe.defer=dy,fe.delay=py,fe.difference=_g,fe.differenceBy=dg,fe.differenceWith=pg,fe.drop=hg,fe.dropRight=Sg,fe.dropRightWhile=Eg,fe.dropWhile=Mc,fe.fill=vg,fe.filter=sE,fe.flatMap=iy,fe.flatMapDeep=ay,fe.flatMapDepth=oy,fe.flatten=zS,fe.flattenDeep=mg,fe.flattenDepth=Md,fe.flip=hy,fe.flow=wR,fe.flowRight=ip,fe.fromPairs=Tg,fe.functions=Qy,fe.functionsIn=zy,fe.groupBy=sy,fe.initial=gg,fe.intersection=yg,fe.intersectionBy=Rg,fe.intersectionWith=df,fe.invert=FE,fe.invertBy=Xy,fe.invokeMap=cy,fe.iteratee=ap,fe.keyBy=lE,fe.keys=ui,fe.keysIn=Ji,fe.map=Ef,fe.mapKeys=Zy,fe.mapValues=eR,fe.matches=WE,fe.matchesProperty=UR,fe.memoize=Ro,fe.merge=tR,fe.mergeWith=Cf,fe.method=xR,fe.methodOf=QE,fe.mixin=Cu,fe.negate=Gs,fe.nthArg=xc,fe.omit=zd,fe.omitBy=rR,fe.once=Sy,fe.orderBy=ly,fe.over=zE,fe.overArgs=Ey,fe.overEvery=FR,fe.overSome=$R,fe.partial=kd,fe.partialRight=TE,fe.partition=fy,fe.pick=Xd,fe.pickBy=$E,fe.property=XE,fe.propertyOf=op,fe.pull=Cg,fe.pullAll=ZS,fe.pullAllBy=pf,fe.pullAllWith=Pg,fe.pullAt=Mg,fe.range=JE,fe.rangeRight=ZE,fe.rearg=vy,fe.reject=_E,fe.remove=Ig,fe.rest=my,fe.reverse=Id,fe.sampleSize=Vd,fe.set=iR,fe.setWith=aR,fe.shuffle=dE,fe.slice=Ng,fe.sortBy=hE,fe.sortedUniq=xg,fe.sortedUniqBy=Fg,fe.split=mR,fe.spread=Ty,fe.tail=$g,fe.take=tE,fe.takeRight=hf,fe.takeRightWhile=Vg,fe.takeWhile=Gg,fe.tap=Qg,fe.throttle=Ay,fe.thru=Sf,fe.toArray=LE,fe.toPairs=VE,fe.toPairsIn=GE,fe.toPath=kR,fe.toPlainObject=wE,fe.transform=oR,fe.unary=gy,fe.union=Nd,fe.unionBy=Bg,fe.unionWith=rE,fe.uniq=kg,fe.uniqBy=jg,fe.uniqWith=Hg,fe.unset=BE,fe.unzip=Ld,fe.unzipWith=Dd,fe.update=Jd,fe.updateWith=sR,fe.values=Bs,fe.valuesIn=uR,fe.without=Nc,fe.words=qE,fe.wrap=Af,fe.xor=nE,fe.xorBy=iE,fe.xorWith=aE,fe.zip=Yg,fe.zipObject=qg,fe.zipObjectDeep=Kg,fe.zipWith=Wg,fe.entries=VE,fe.entriesIn=GE,fe.extend=xE,fe.extendWith=Of,Cu(fe,fe),fe.add=jR,fe.attempt=np,fe.camelCase=fR,fe.capitalize=Pf,fe.ceil=HR,fe.clamp=cR,fe.clone=yy,fe.cloneDeep=Oy,fe.cloneDeepWith=Hd,fe.cloneWith=Ry,fe.conformsTo=Yd,fe.deburr=Zd,fe.defaultTo=DR,fe.divide=cp,fe.endsWith=ks,fe.eq=ga,fe.escape=ep,fe.escapeRegExp=tp,fe.every=ty,fe.find=ry,fe.findIndex=WS,fe.findKey=Hy,fe.findLast=ny,fe.findLastIndex=QS,fe.findLastKey=Yy,fe.floor=rv,fe.forEach=uE,fe.forEachRight=cE,fe.forIn=qy,fe.forInRight=Ky,fe.forOwn=Wy,fe.forOwnRight=Kd,fe.get=Wd,fe.gt=qd,fe.gte=by,fe.has=Qd,fe.hasIn=bf,fe.head=XS,fe.identity=Zi,fe.includes=uy,fe.indexOf=Ag,fe.inRange=kE,fe.invoke=Jy,fe.isArguments=Oo,fe.isArray=cr,fe.isArrayBuffer=AE,fe.isArrayLike=Xi,fe.isArrayLikeObject=Bn,fe.isBoolean=gE,fe.isBuffer=bo,fe.isDate=Cy,fe.isElement=yE,fe.isEmpty=RE,fe.isEqual=Py,fe.isEqualWith=OE,fe.isError=gf,fe.isFinite=My,fe.isFunction=Co,fe.isInteger=yf,fe.isLength=Rf,fe.isMap=bE,fe.isMatch=Iy,fe.isMatchWith=Ny,fe.isNaN=CE,fe.isNative=Ly,fe.isNil=Dy,fe.isNull=PE,fe.isNumber=ME,fe.isObject=On,fe.isObjectLike=kn,fe.isPlainObject=Dc,fe.isRegExp=wc,fe.isSafeInteger=wy,fe.isSet=IE,fe.isString=Ou,fe.isSymbol=ia,fe.isTypedArray=us,fe.isUndefined=Uy,fe.isWeakMap=xy,fe.isWeakSet=Fy,fe.join=Og,fe.kebabCase=_R,fe.last=Aa,fe.lastIndexOf=JS,fe.lowerCase=jE,fe.lowerFirst=dR,fe.lt=NE,fe.lte=$y,fe.max=YR,fe.maxBy=nv,fe.mean=iv,fe.meanBy=qR,fe.min=Fc,fe.minBy=lp,fe.stubArray=sp,fe.stubFalse=up,fe.stubObject=VR,fe.stubString=ev,fe.stubTrue=GR,fe.multiply=av,fe.nth=bg,fe.noConflict=Uc,fe.noop=If,fe.now=vf,fe.pad=pR,fe.padEnd=hR,fe.padStart=HE,fe.parseInt=YE,fe.random=lR,fe.reduce=_y,fe.reduceRight=fE,fe.repeat=SR,fe.replace=ER,fe.result=nR,fe.round=fp,fe.runInContext=Ye,fe.sample=$d,fe.size=Gd,fe.snakeCase=vR,fe.some=pE,fe.sortedIndex=Lg,fe.sortedIndexBy=Dg,fe.sortedIndexOf=wg,fe.sortedLastIndex=Ic,fe.sortedLastIndexBy=eE,fe.sortedLastIndexOf=Ug,fe.startCase=TR,fe.startsWith=AR,fe.subtract=ov,fe.sum=_p,fe.sumBy=sv,fe.template=gR,fe.times=BR,fe.toFinite=Po,fe.toInteger=Ar,fe.toLength=DE,fe.toLower=yR,fe.toNumber=ya,fe.toSafeInteger=UE,fe.toString=kr,fe.toUpper=RR,fe.trim=OR,fe.trimEnd=bR,fe.trimStart=CR,fe.truncate=PR,fe.unescape=MR,fe.uniqueId=tv,fe.upperCase=IR,fe.upperFirst=rp,fe.each=uE,fe.eachRight=cE,fe.first=XS,Cu(fe,function(){var o={};return Va(fe,function(s,f){Nr.call(fe.prototype,f)||(o[f]=s)}),o}(),{chain:!1}),fe.VERSION=D,oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){fe[o].placeholder=fe}),oi(["drop","take"],function(o,s){Dr.prototype[o]=function(f){f=f===d?1:Lr(Ar(f),0);var M=this.__filtered__&&!s?new Dr(this):this.clone();return M.__filtered__?M.__takeCount__=Ti(f,M.__takeCount__):M.__views__.push({size:Ti(f,ae),type:o+(M.__dir__<0?"Right":"")}),M},Dr.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),oi(["filter","map","takeWhile"],function(o,s){var f=s+1,M=f==C||f==k;Dr.prototype[o]=function(X){var he=this.clone();return he.__iteratees__.push({iteratee:Wt(X,3),type:f}),he.__filtered__=he.__filtered__||M,he}}),oi(["head","last"],function(o,s){var f="take"+(s?"Right":"");Dr.prototype[o]=function(){return this[f](1).value()[0]}}),oi(["initial","tail"],function(o,s){var f="drop"+(s?"":"Right");Dr.prototype[o]=function(){return this.__filtered__?new Dr(this):this[f](1)}}),Dr.prototype.compact=function(){return this.filter(Zi)},Dr.prototype.find=function(o){return this.filter(o).head()},Dr.prototype.findLast=function(o){return this.reverse().find(o)},Dr.prototype.invokeMap=yr(function(o,s){return typeof o=="function"?new Dr(this):this.map(function(f){return mc(f,o,s)})}),Dr.prototype.reject=function(o){return this.filter(Gs(Wt(o)))},Dr.prototype.slice=function(o,s){o=Ar(o);var f=this;return f.__filtered__&&(o>0||s<0)?new Dr(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),s!==d&&(s=Ar(s),f=s<0?f.dropRight(-s):f.take(s-o)),f)},Dr.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Dr.prototype.toArray=function(){return this.take(ae)},Va(Dr.prototype,function(o,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),M=/^(?:head|last)$/.test(s),X=fe[M?"take"+(s=="last"?"Right":""):s],he=M||/^find/.test(s);!X||(fe.prototype[s]=function(){var Ce=this.__wrapped__,Ve=M?[1]:arguments,Ke=Ce instanceof Dr,lt=Ve[0],_t=Ke||cr(Ce),Et=function(hr){var wr=X.apply(fe,La([hr],Ve));return M&&Pt?wr[0]:wr};_t&&f&&typeof lt=="function"&&lt.length!=1&&(Ke=_t=!1);var Pt=this.__chain__,xt=!!this.__actions__.length,Jt=he&&!Pt,gr=Ke&&!xt;if(!he&&_t){Ce=gr?Ce:new Dr(this);var Zt=o.apply(Ce,Ve);return Zt.__actions__.push({func:Sf,args:[Et],thisArg:d}),new va(Zt,Pt)}return Jt&&gr?o.apply(this,Ve):(Zt=this.thru(Et),Jt?M?Zt.value()[0]:Zt.value():Zt)})}),oi(["pop","push","shift","sort","splice","unshift"],function(o){var s=Ml[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",M=/^(?:pop|shift)$/.test(o);fe.prototype[o]=function(){var X=arguments;if(M&&!this.__chain__){var he=this.value();return s.apply(cr(he)?he:[],X)}return this[f](function(Ce){return s.apply(cr(Ce)?Ce:[],X)})}}),Va(Dr.prototype,function(o,s){var f=fe[s];if(f){var M=f.name+"";Nr.call(Su,M)||(Su[M]=[]),Su[M].push({name:s,func:f})}}),Su[yc(d,ie).name]=[{name:"wrapper",func:d}],Dr.prototype.clone=Zh,Dr.prototype.reverse=z_,Dr.prototype.value=eS,fe.prototype.at=Ud,fe.prototype.chain=zg,fe.prototype.commit=xd,fe.prototype.next=Fd,fe.prototype.plant=Jg,fe.prototype.reverse=Zg,fe.prototype.toJSON=fe.prototype.valueOf=fe.prototype.value=oE,fe.prototype.first=fe.prototype.head,sc&&(fe.prototype[sc]=Xg),fe},H_=nA();Gt._=H_,T=function(){return H_}.call(K,p,K,Ee),T!==d&&(Ee.exports=T)}).call(this)},6934:Ee=>{"use strict";var K={DEBUG:!1,LIB_VERSION:"2.45.0"},p;if(typeof window>"u"){var T={hostname:""};p={navigator:{userAgent:""},document:{location:T,referrer:""},screen:{width:0,height:0},location:T}}else p=window;var d=Array.prototype,D=Function.prototype,H=Object.prototype,V=d.slice,A=H.toString,y=H.hasOwnProperty,m=p.console,P=p.navigator,g=p.document,$=p.opera,G=p.screen,x=P.userAgent,Z=D.bind,F=d.forEach,te=d.indexOf,ie=d.map,ce=Array.isArray,j={},O={trim:function(E){return E.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},ue={log:function(){if(K.DEBUG&&!O.isUndefined(m)&&m)try{m.log.apply(m,arguments)}catch{O.each(arguments,function(N){m.log(N)})}},warn:function(){if(K.DEBUG&&!O.isUndefined(m)&&m){var E=["Mixpanel warning:"].concat(O.toArray(arguments));try{m.warn.apply(m,E)}catch{O.each(E,function(ee){m.warn(ee)})}}},error:function(){if(K.DEBUG&&!O.isUndefined(m)&&m){var E=["Mixpanel error:"].concat(O.toArray(arguments));try{m.error.apply(m,E)}catch{O.each(E,function(ee){m.error(ee)})}}},critical:function(){if(!O.isUndefined(m)&&m){var E=["Mixpanel error:"].concat(O.toArray(arguments));try{m.error.apply(m,E)}catch{O.each(E,function(ee){m.error(ee)})}}}},be=function(E,N){return function(){return arguments[0]="["+N+"] "+arguments[0],E.apply(ue,arguments)}},xe=function(E){return{log:be(ue.log,E),error:be(ue.error,E),critical:be(ue.critical,E)}};O.bind=function(E,N){var ee,pe;if(Z&&E.bind===Z)return Z.apply(E,V.call(arguments,1));if(!O.isFunction(E))throw new TypeError;return ee=V.call(arguments,2),pe=function(){if(!(this instanceof pe))return E.apply(N,ee.concat(V.call(arguments)));var De={};De.prototype=E.prototype;var Be=new De;De.prototype=null;var nt=E.apply(Be,ee.concat(V.call(arguments)));return Object(nt)===nt?nt:Be},pe},O.each=function(E,N,ee){if(E!=null){if(F&&E.forEach===F)E.forEach(N,ee);else if(E.length===+E.length){for(var pe=0,De=E.length;pe<De;pe++)if(pe in E&&N.call(ee,E[pe],pe,E)===j)return}else for(var Be in E)if(y.call(E,Be)&&N.call(ee,E[Be],Be,E)===j)return}},O.extend=function(E){return O.each(V.call(arguments,1),function(N){for(var ee in N)N[ee]!==void 0&&(E[ee]=N[ee])}),E},O.isArray=ce||function(E){return A.call(E)==="[object Array]"},O.isFunction=function(E){try{return/^\s*\bfunction\b/.test(E)}catch{return!1}},O.isArguments=function(E){return!!(E&&y.call(E,"callee"))},O.toArray=function(E){return E?E.toArray?E.toArray():O.isArray(E)||O.isArguments(E)?V.call(E):O.values(E):[]},O.map=function(E,N,ee){if(ie&&E.map===ie)return E.map(N,ee);var pe=[];return O.each(E,function(De){pe.push(N.call(ee,De))}),pe},O.keys=function(E){var N=[];return E===null||O.each(E,function(ee,pe){N[N.length]=pe}),N},O.values=function(E){var N=[];return E===null||O.each(E,function(ee){N[N.length]=ee}),N},O.include=function(E,N){var ee=!1;return E===null?ee:te&&E.indexOf===te?E.indexOf(N)!=-1:(O.each(E,function(pe){if(ee||(ee=pe===N))return j}),ee)},O.includes=function(E,N){return E.indexOf(N)!==-1},O.inherit=function(E,N){return E.prototype=new N,E.prototype.constructor=E,E.superclass=N.prototype,E},O.isObject=function(E){return E===Object(E)&&!O.isArray(E)},O.isEmptyObject=function(E){if(O.isObject(E)){for(var N in E)if(y.call(E,N))return!1;return!0}return!1},O.isUndefined=function(E){return E===void 0},O.isString=function(E){return A.call(E)=="[object String]"},O.isDate=function(E){return A.call(E)=="[object Date]"},O.isNumber=function(E){return A.call(E)=="[object Number]"},O.isElement=function(E){return!!(E&&E.nodeType===1)},O.encodeDates=function(E){return O.each(E,function(N,ee){O.isDate(N)?E[ee]=O.formatDate(N):O.isObject(N)&&(E[ee]=O.encodeDates(N))}),E},O.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},O.formatDate=function(E){function N(ee){return ee<10?"0"+ee:ee}return E.getUTCFullYear()+"-"+N(E.getUTCMonth()+1)+"-"+N(E.getUTCDate())+"T"+N(E.getUTCHours())+":"+N(E.getUTCMinutes())+":"+N(E.getUTCSeconds())},O.strip_empty_properties=function(E){var N={};return O.each(E,function(ee,pe){O.isString(ee)&&ee.length>0&&(N[pe]=ee)}),N},O.truncate=function(E,N){var ee;return typeof E=="string"?ee=E.slice(0,N):O.isArray(E)?(ee=[],O.each(E,function(pe){ee.push(O.truncate(pe,N))})):O.isObject(E)?(ee={},O.each(E,function(pe,De){ee[De]=O.truncate(pe,N)})):ee=E,ee},O.JSONEncode=function(){return function(E){var N=E,ee=function(De){var Be=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,nt={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return Be.lastIndex=0,Be.test(De)?'"'+De.replace(Be,function(gt){var ut=nt[gt];return typeof ut=="string"?ut:"\\u"+("0000"+gt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+De+'"'},pe=function(De,Be){var nt="",gt=" ",ut=0,St="",Ot="",Nt=0,mt=nt,Mt=[],Lt=Be[De];switch(Lt&&typeof Lt=="object"&&typeof Lt.toJSON=="function"&&(Lt=Lt.toJSON(De)),typeof Lt){case"string":return ee(Lt);case"number":return isFinite(Lt)?String(Lt):"null";case"boolean":case"null":return String(Lt);case"object":if(!Lt)return"null";if(nt+=gt,Mt=[],A.apply(Lt)==="[object Array]"){for(Nt=Lt.length,ut=0;ut<Nt;ut+=1)Mt[ut]=pe(ut,Lt)||"null";return Ot=Mt.length===0?"[]":nt?`[
29
+ }`;var gr=np(function(){return Xr(he,xt+"return "+Et).apply(d,Ce)});if(gr.source=Et,yf(gr))throw gr;return gr}function yR(o){return kr(o).toLowerCase()}function RR(o){return kr(o).toUpperCase()}function OR(o,s,f){if(o=kr(o),o&&(f||s===d))return It(o);if(!o||!(s=$i(s)))return o;var M=na(o),X=na(s),he=Yt(M,X),Ce=pr(M,X)+1;return is(M,he,Ce).join("")}function bR(o,s,f){if(o=kr(o),o&&(f||s===d))return o.slice(0,tA(o)+1);if(!o||!(s=$i(s)))return o;var M=na(o),X=pr(M,na(s))+1;return is(M,0,X).join("")}function CR(o,s,f){if(o=kr(o),o&&(f||s===d))return o.replace(pn,"");if(!o||!(s=$i(s)))return o;var M=na(o),X=Yt(M,na(s));return is(M,X).join("")}function PR(o,s){var f=Ne,M=Ae;if(On(s)){var X="separator"in s?s.separator:X;f="length"in s?Ar(s.length):f,M="omission"in s?$i(s.omission):M}o=kr(o);var he=o.length;if(ei(o)){var Ce=na(o);he=Ce.length}if(f>=he)return o;var Ve=f-_u(M);if(Ve<1)return M;var Ke=Ce?is(Ce,0,Ve).join(""):o.slice(0,Ve);if(X===d)return Ke+M;if(Ce&&(Ve+=Ke.length-Ve),Uc(X)){if(o.slice(Ve).search(X)){var lt,_t=Ke;for(X.global||(X=Ml(X.source,kr(it.exec(X))+"g")),X.lastIndex=0;lt=X.exec(_t);)var Et=lt.index;Ke=Ke.slice(0,Et===d?Ve:Et)}}else if(o.indexOf($i(X),Ve)!=Ve){var Pt=Ke.lastIndexOf(X);Pt>-1&&(Ke=Ke.slice(0,Pt))}return Ke+M}function MR(o){return o=kr(o),o&&mn.test(o)?o.replace(Vr,Hh):o}var IR=yu(function(o,s,f){return o+(f?" ":"")+s.toUpperCase()}),rp=NS("toUpperCase");function qE(o,s,f){return o=kr(o),s=f?d:s,s===d?fu(o)?rA(o):S(o):o.match(s)||[]}var np=yr(function(o,s){try{return Si(o,d,s)}catch(f){return yf(f)?f:new sr(f)}}),NR=go(function(o,s){return oi(s,function(f){f=no(f),To(o,f,Bd(o[f],o))}),o});function LR(o){var s=o==null?0:o.length,f=Wt();return o=s?Tn(o,function(M){if(typeof M[1]!="function")throw new Ea(A);return[f(M[0]),M[1]]}):[],yr(function(M){for(var X=-1;++X<s;){var he=o[X];if(Si(he[0],this,M))return Si(he[1],this,M)}})}function KE(o){return bA(ma(o,$))}function If(o){return function(){return o}}function DR(o,s){return o==null||o!==o?s:o}var wR=DS(),ip=DS(!0);function Zi(o){return o}function ap(o){return SS(typeof o=="function"?o:ma(o,$))}function WE(o){return ad(ma(o,$))}function UR(o,s){return vS(o,ma(s,$))}var xR=yr(function(o,s){return function(f){return Tc(f,o,s)}}),QE=yr(function(o,s){return function(f){return Tc(o,f,s)}});function Pu(o,s,f){var M=ui(s),X=mc(s,M);f==null&&!(On(s)&&(X.length||!M.length))&&(f=s,s=o,o=this,X=mc(s,ui(s)));var he=!(On(f)&&"chain"in f)||!!f.chain,Ce=Co(o);return oi(X,function(Ve){var Ke=s[Ve];o[Ve]=Ke,Ce&&(o.prototype[Ve]=function(){var lt=this.__chain__;if(he||lt){var _t=o(this.__wrapped__),Et=_t.__actions__=Qi(this.__actions__);return Et.push({func:Ke,args:arguments,thisArg:o}),_t.__chain__=lt,_t}return Ke.apply(o,La([this.value()],arguments))})}),o}function xc(){return Gt._===this&&(Gt._=II),this}function Nf(){}function Fc(o){return o=Ar(o),yr(function(s){return mS(s,o)})}var zE=Ru(Tn),FR=Ru(ac),$R=Ru(Sa);function XE(o){return Rd(o)?Le(no(o)):VA(o)}function op(o){return function(s){return o==null?d:rs(o,s)}}var JE=wS(),ZE=wS(!0);function sp(){return[]}function up(){return!1}function VR(){return{}}function ev(){return""}function GR(){return!0}function BR(o,s){if(o=Ar(o),o<1||o>oe)return[];var f=ae,M=Ti(o,ae);s=Wt(s),o-=ae;for(var X=bt(M,s);++f<o;)s(f);return X}function kR(o){return cr(o)?Tn(o,no):ia(o)?[o]:Qi(YS(kr(o)))}function tv(o){var s=++za;return kr(o)+s}var jR=nf(function(o,s){return o+s},0),HR=vd("ceil"),cp=nf(function(o,s){return o/s},1),rv=vd("floor");function YR(o){return o&&o.length?Hl(o,Zi,Yl):d}function nv(o,s){return o&&o.length?Hl(o,Wt(s,2),Yl):d}function iv(o){return $e(o,Zi)}function qR(o,s){return $e(o,Wt(s,2))}function $c(o){return o&&o.length?Hl(o,Zi,id):d}function lp(o,s){return o&&o.length?Hl(o,Wt(s,2),id):d}var av=nf(function(o,s){return o*s},1),fp=vd("round"),ov=nf(function(o,s){return o-s},0);function _p(o){return o&&o.length?st(o,Zi):0}function sv(o,s){return o&&o.length?st(o,Wt(s,2)):0}return fe.after=Tf,fe.ary=Dc,fe.assign=Vy,fe.assignIn=xE,fe.assignInWith=bf,fe.assignWith=Gy,fe.at=By,fe.before=Af,fe.bind=Bd,fe.bindAll=NR,fe.bindKey=SE,fe.castArray=jd,fe.chain=wd,fe.chunk=lg,fe.compact=KS,fe.concat=fg,fe.cond=LR,fe.conforms=KE,fe.constant=If,fe.countBy=ey,fe.create=ky,fe.curry=EE,fe.curryRight=vE,fe.debounce=mE,fe.defaults=Cu,fe.defaultsDeep=jy,fe.defer=dy,fe.delay=py,fe.difference=_g,fe.differenceBy=dg,fe.differenceWith=pg,fe.drop=hg,fe.dropRight=Sg,fe.dropRightWhile=Eg,fe.dropWhile=Ic,fe.fill=vg,fe.filter=sE,fe.flatMap=iy,fe.flatMapDeep=ay,fe.flatMapDepth=oy,fe.flatten=zS,fe.flattenDeep=mg,fe.flattenDepth=Md,fe.flip=hy,fe.flow=wR,fe.flowRight=ip,fe.fromPairs=Tg,fe.functions=Qy,fe.functionsIn=zy,fe.groupBy=sy,fe.initial=gg,fe.intersection=yg,fe.intersectionBy=Rg,fe.intersectionWith=pf,fe.invert=FE,fe.invertBy=Xy,fe.invokeMap=cy,fe.iteratee=ap,fe.keyBy=lE,fe.keys=ui,fe.keysIn=Ji,fe.map=vf,fe.mapKeys=Zy,fe.mapValues=eR,fe.matches=WE,fe.matchesProperty=UR,fe.memoize=Ro,fe.merge=tR,fe.mergeWith=Pf,fe.method=xR,fe.methodOf=QE,fe.mixin=Pu,fe.negate=Gs,fe.nthArg=Fc,fe.omit=zd,fe.omitBy=rR,fe.once=Sy,fe.orderBy=ly,fe.over=zE,fe.overArgs=Ey,fe.overEvery=FR,fe.overSome=$R,fe.partial=kd,fe.partialRight=TE,fe.partition=fy,fe.pick=Xd,fe.pickBy=$E,fe.property=XE,fe.propertyOf=op,fe.pull=Cg,fe.pullAll=ZS,fe.pullAllBy=hf,fe.pullAllWith=Pg,fe.pullAt=Mg,fe.range=JE,fe.rangeRight=ZE,fe.rearg=vy,fe.reject=_E,fe.remove=Ig,fe.rest=my,fe.reverse=Id,fe.sampleSize=Vd,fe.set=iR,fe.setWith=aR,fe.shuffle=dE,fe.slice=Ng,fe.sortBy=hE,fe.sortedUniq=xg,fe.sortedUniqBy=Fg,fe.split=mR,fe.spread=Ty,fe.tail=$g,fe.take=tE,fe.takeRight=Sf,fe.takeRightWhile=Vg,fe.takeWhile=Gg,fe.tap=Qg,fe.throttle=Ay,fe.thru=Ef,fe.toArray=LE,fe.toPairs=VE,fe.toPairsIn=GE,fe.toPath=kR,fe.toPlainObject=wE,fe.transform=oR,fe.unary=gy,fe.union=Nd,fe.unionBy=Bg,fe.unionWith=rE,fe.uniq=kg,fe.uniqBy=jg,fe.uniqWith=Hg,fe.unset=BE,fe.unzip=Ld,fe.unzipWith=Dd,fe.update=Jd,fe.updateWith=sR,fe.values=Bs,fe.valuesIn=uR,fe.without=Lc,fe.words=qE,fe.wrap=gf,fe.xor=nE,fe.xorBy=iE,fe.xorWith=aE,fe.zip=Yg,fe.zipObject=qg,fe.zipObjectDeep=Kg,fe.zipWith=Wg,fe.entries=VE,fe.entriesIn=GE,fe.extend=xE,fe.extendWith=bf,Pu(fe,fe),fe.add=jR,fe.attempt=np,fe.camelCase=fR,fe.capitalize=Mf,fe.ceil=HR,fe.clamp=cR,fe.clone=yy,fe.cloneDeep=Oy,fe.cloneDeepWith=Hd,fe.cloneWith=Ry,fe.conformsTo=Yd,fe.deburr=Zd,fe.defaultTo=DR,fe.divide=cp,fe.endsWith=ks,fe.eq=ga,fe.escape=ep,fe.escapeRegExp=tp,fe.every=ty,fe.find=ry,fe.findIndex=WS,fe.findKey=Hy,fe.findLast=ny,fe.findLastIndex=QS,fe.findLastKey=Yy,fe.floor=rv,fe.forEach=uE,fe.forEachRight=cE,fe.forIn=qy,fe.forInRight=Ky,fe.forOwn=Wy,fe.forOwnRight=Kd,fe.get=Wd,fe.gt=qd,fe.gte=by,fe.has=Qd,fe.hasIn=Cf,fe.head=XS,fe.identity=Zi,fe.includes=uy,fe.indexOf=Ag,fe.inRange=kE,fe.invoke=Jy,fe.isArguments=Oo,fe.isArray=cr,fe.isArrayBuffer=AE,fe.isArrayLike=Xi,fe.isArrayLikeObject=Bn,fe.isBoolean=gE,fe.isBuffer=bo,fe.isDate=Cy,fe.isElement=yE,fe.isEmpty=RE,fe.isEqual=Py,fe.isEqualWith=OE,fe.isError=yf,fe.isFinite=My,fe.isFunction=Co,fe.isInteger=Rf,fe.isLength=Of,fe.isMap=bE,fe.isMatch=Iy,fe.isMatchWith=Ny,fe.isNaN=CE,fe.isNative=Ly,fe.isNil=Dy,fe.isNull=PE,fe.isNumber=ME,fe.isObject=On,fe.isObjectLike=kn,fe.isPlainObject=wc,fe.isRegExp=Uc,fe.isSafeInteger=wy,fe.isSet=IE,fe.isString=bu,fe.isSymbol=ia,fe.isTypedArray=us,fe.isUndefined=Uy,fe.isWeakMap=xy,fe.isWeakSet=Fy,fe.join=Og,fe.kebabCase=_R,fe.last=Aa,fe.lastIndexOf=JS,fe.lowerCase=jE,fe.lowerFirst=dR,fe.lt=NE,fe.lte=$y,fe.max=YR,fe.maxBy=nv,fe.mean=iv,fe.meanBy=qR,fe.min=$c,fe.minBy=lp,fe.stubArray=sp,fe.stubFalse=up,fe.stubObject=VR,fe.stubString=ev,fe.stubTrue=GR,fe.multiply=av,fe.nth=bg,fe.noConflict=xc,fe.noop=Nf,fe.now=mf,fe.pad=pR,fe.padEnd=hR,fe.padStart=HE,fe.parseInt=YE,fe.random=lR,fe.reduce=_y,fe.reduceRight=fE,fe.repeat=SR,fe.replace=ER,fe.result=nR,fe.round=fp,fe.runInContext=Ye,fe.sample=$d,fe.size=Gd,fe.snakeCase=vR,fe.some=pE,fe.sortedIndex=Lg,fe.sortedIndexBy=Dg,fe.sortedIndexOf=wg,fe.sortedLastIndex=Nc,fe.sortedLastIndexBy=eE,fe.sortedLastIndexOf=Ug,fe.startCase=TR,fe.startsWith=AR,fe.subtract=ov,fe.sum=_p,fe.sumBy=sv,fe.template=gR,fe.times=BR,fe.toFinite=Po,fe.toInteger=Ar,fe.toLength=DE,fe.toLower=yR,fe.toNumber=ya,fe.toSafeInteger=UE,fe.toString=kr,fe.toUpper=RR,fe.trim=OR,fe.trimEnd=bR,fe.trimStart=CR,fe.truncate=PR,fe.unescape=MR,fe.uniqueId=tv,fe.upperCase=IR,fe.upperFirst=rp,fe.each=uE,fe.eachRight=cE,fe.first=XS,Pu(fe,function(){var o={};return Va(fe,function(s,f){Nr.call(fe.prototype,f)||(o[f]=s)}),o}(),{chain:!1}),fe.VERSION=D,oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){fe[o].placeholder=fe}),oi(["drop","take"],function(o,s){Dr.prototype[o]=function(f){f=f===d?1:Lr(Ar(f),0);var M=this.__filtered__&&!s?new Dr(this):this.clone();return M.__filtered__?M.__takeCount__=Ti(f,M.__takeCount__):M.__views__.push({size:Ti(f,ae),type:o+(M.__dir__<0?"Right":"")}),M},Dr.prototype[o+"Right"]=function(f){return this.reverse()[o](f).reverse()}}),oi(["filter","map","takeWhile"],function(o,s){var f=s+1,M=f==C||f==k;Dr.prototype[o]=function(X){var he=this.clone();return he.__iteratees__.push({iteratee:Wt(X,3),type:f}),he.__filtered__=he.__filtered__||M,he}}),oi(["head","last"],function(o,s){var f="take"+(s?"Right":"");Dr.prototype[o]=function(){return this[f](1).value()[0]}}),oi(["initial","tail"],function(o,s){var f="drop"+(s?"":"Right");Dr.prototype[o]=function(){return this.__filtered__?new Dr(this):this[f](1)}}),Dr.prototype.compact=function(){return this.filter(Zi)},Dr.prototype.find=function(o){return this.filter(o).head()},Dr.prototype.findLast=function(o){return this.reverse().find(o)},Dr.prototype.invokeMap=yr(function(o,s){return typeof o=="function"?new Dr(this):this.map(function(f){return Tc(f,o,s)})}),Dr.prototype.reject=function(o){return this.filter(Gs(Wt(o)))},Dr.prototype.slice=function(o,s){o=Ar(o);var f=this;return f.__filtered__&&(o>0||s<0)?new Dr(f):(o<0?f=f.takeRight(-o):o&&(f=f.drop(o)),s!==d&&(s=Ar(s),f=s<0?f.dropRight(-s):f.take(s-o)),f)},Dr.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Dr.prototype.toArray=function(){return this.take(ae)},Va(Dr.prototype,function(o,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),M=/^(?:head|last)$/.test(s),X=fe[M?"take"+(s=="last"?"Right":""):s],he=M||/^find/.test(s);!X||(fe.prototype[s]=function(){var Ce=this.__wrapped__,Ve=M?[1]:arguments,Ke=Ce instanceof Dr,lt=Ve[0],_t=Ke||cr(Ce),Et=function(hr){var wr=X.apply(fe,La([hr],Ve));return M&&Pt?wr[0]:wr};_t&&f&&typeof lt=="function"&&lt.length!=1&&(Ke=_t=!1);var Pt=this.__chain__,xt=!!this.__actions__.length,Jt=he&&!Pt,gr=Ke&&!xt;if(!he&&_t){Ce=gr?Ce:new Dr(this);var Zt=o.apply(Ce,Ve);return Zt.__actions__.push({func:Ef,args:[Et],thisArg:d}),new va(Zt,Pt)}return Jt&&gr?o.apply(this,Ve):(Zt=this.thru(Et),Jt?M?Zt.value()[0]:Zt.value():Zt)})}),oi(["pop","push","shift","sort","splice","unshift"],function(o){var s=Il[o],f=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",M=/^(?:pop|shift)$/.test(o);fe.prototype[o]=function(){var X=arguments;if(M&&!this.__chain__){var he=this.value();return s.apply(cr(he)?he:[],X)}return this[f](function(Ce){return s.apply(cr(Ce)?Ce:[],X)})}}),Va(Dr.prototype,function(o,s){var f=fe[s];if(f){var M=f.name+"";Nr.call(Eu,M)||(Eu[M]=[]),Eu[M].push({name:s,func:f})}}),Eu[Rc(d,ie).name]=[{name:"wrapper",func:d}],Dr.prototype.clone=Zh,Dr.prototype.reverse=z_,Dr.prototype.value=eS,fe.prototype.at=Ud,fe.prototype.chain=zg,fe.prototype.commit=xd,fe.prototype.next=Fd,fe.prototype.plant=Jg,fe.prototype.reverse=Zg,fe.prototype.toJSON=fe.prototype.valueOf=fe.prototype.value=oE,fe.prototype.first=fe.prototype.head,uc&&(fe.prototype[uc]=Xg),fe},Y_=nA();Gt._=Y_,T=function(){return Y_}.call(K,p,K,Ee),T!==d&&(Ee.exports=T)}).call(this)},6934:Ee=>{"use strict";var K={DEBUG:!1,LIB_VERSION:"2.45.0"},p;if(typeof window>"u"){var T={hostname:""};p={navigator:{userAgent:""},document:{location:T,referrer:""},screen:{width:0,height:0},location:T}}else p=window;var d=Array.prototype,D=Function.prototype,H=Object.prototype,V=d.slice,A=H.toString,y=H.hasOwnProperty,m=p.console,P=p.navigator,g=p.document,$=p.opera,G=p.screen,x=P.userAgent,Z=D.bind,F=d.forEach,te=d.indexOf,ie=d.map,ce=Array.isArray,j={},O={trim:function(E){return E.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},ue={log:function(){if(K.DEBUG&&!O.isUndefined(m)&&m)try{m.log.apply(m,arguments)}catch{O.each(arguments,function(N){m.log(N)})}},warn:function(){if(K.DEBUG&&!O.isUndefined(m)&&m){var E=["Mixpanel warning:"].concat(O.toArray(arguments));try{m.warn.apply(m,E)}catch{O.each(E,function(ee){m.warn(ee)})}}},error:function(){if(K.DEBUG&&!O.isUndefined(m)&&m){var E=["Mixpanel error:"].concat(O.toArray(arguments));try{m.error.apply(m,E)}catch{O.each(E,function(ee){m.error(ee)})}}},critical:function(){if(!O.isUndefined(m)&&m){var E=["Mixpanel error:"].concat(O.toArray(arguments));try{m.error.apply(m,E)}catch{O.each(E,function(ee){m.error(ee)})}}}},be=function(E,N){return function(){return arguments[0]="["+N+"] "+arguments[0],E.apply(ue,arguments)}},xe=function(E){return{log:be(ue.log,E),error:be(ue.error,E),critical:be(ue.critical,E)}};O.bind=function(E,N){var ee,pe;if(Z&&E.bind===Z)return Z.apply(E,V.call(arguments,1));if(!O.isFunction(E))throw new TypeError;return ee=V.call(arguments,2),pe=function(){if(!(this instanceof pe))return E.apply(N,ee.concat(V.call(arguments)));var De={};De.prototype=E.prototype;var Be=new De;De.prototype=null;var nt=E.apply(Be,ee.concat(V.call(arguments)));return Object(nt)===nt?nt:Be},pe},O.each=function(E,N,ee){if(E!=null){if(F&&E.forEach===F)E.forEach(N,ee);else if(E.length===+E.length){for(var pe=0,De=E.length;pe<De;pe++)if(pe in E&&N.call(ee,E[pe],pe,E)===j)return}else for(var Be in E)if(y.call(E,Be)&&N.call(ee,E[Be],Be,E)===j)return}},O.extend=function(E){return O.each(V.call(arguments,1),function(N){for(var ee in N)N[ee]!==void 0&&(E[ee]=N[ee])}),E},O.isArray=ce||function(E){return A.call(E)==="[object Array]"},O.isFunction=function(E){try{return/^\s*\bfunction\b/.test(E)}catch{return!1}},O.isArguments=function(E){return!!(E&&y.call(E,"callee"))},O.toArray=function(E){return E?E.toArray?E.toArray():O.isArray(E)||O.isArguments(E)?V.call(E):O.values(E):[]},O.map=function(E,N,ee){if(ie&&E.map===ie)return E.map(N,ee);var pe=[];return O.each(E,function(De){pe.push(N.call(ee,De))}),pe},O.keys=function(E){var N=[];return E===null||O.each(E,function(ee,pe){N[N.length]=pe}),N},O.values=function(E){var N=[];return E===null||O.each(E,function(ee){N[N.length]=ee}),N},O.include=function(E,N){var ee=!1;return E===null?ee:te&&E.indexOf===te?E.indexOf(N)!=-1:(O.each(E,function(pe){if(ee||(ee=pe===N))return j}),ee)},O.includes=function(E,N){return E.indexOf(N)!==-1},O.inherit=function(E,N){return E.prototype=new N,E.prototype.constructor=E,E.superclass=N.prototype,E},O.isObject=function(E){return E===Object(E)&&!O.isArray(E)},O.isEmptyObject=function(E){if(O.isObject(E)){for(var N in E)if(y.call(E,N))return!1;return!0}return!1},O.isUndefined=function(E){return E===void 0},O.isString=function(E){return A.call(E)=="[object String]"},O.isDate=function(E){return A.call(E)=="[object Date]"},O.isNumber=function(E){return A.call(E)=="[object Number]"},O.isElement=function(E){return!!(E&&E.nodeType===1)},O.encodeDates=function(E){return O.each(E,function(N,ee){O.isDate(N)?E[ee]=O.formatDate(N):O.isObject(N)&&(E[ee]=O.encodeDates(N))}),E},O.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},O.formatDate=function(E){function N(ee){return ee<10?"0"+ee:ee}return E.getUTCFullYear()+"-"+N(E.getUTCMonth()+1)+"-"+N(E.getUTCDate())+"T"+N(E.getUTCHours())+":"+N(E.getUTCMinutes())+":"+N(E.getUTCSeconds())},O.strip_empty_properties=function(E){var N={};return O.each(E,function(ee,pe){O.isString(ee)&&ee.length>0&&(N[pe]=ee)}),N},O.truncate=function(E,N){var ee;return typeof E=="string"?ee=E.slice(0,N):O.isArray(E)?(ee=[],O.each(E,function(pe){ee.push(O.truncate(pe,N))})):O.isObject(E)?(ee={},O.each(E,function(pe,De){ee[De]=O.truncate(pe,N)})):ee=E,ee},O.JSONEncode=function(){return function(E){var N=E,ee=function(De){var Be=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,nt={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return Be.lastIndex=0,Be.test(De)?'"'+De.replace(Be,function(gt){var ut=nt[gt];return typeof ut=="string"?ut:"\\u"+("0000"+gt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+De+'"'},pe=function(De,Be){var nt="",gt=" ",ut=0,St="",Ot="",Nt=0,mt=nt,Mt=[],Lt=Be[De];switch(Lt&&typeof Lt=="object"&&typeof Lt.toJSON=="function"&&(Lt=Lt.toJSON(De)),typeof Lt){case"string":return ee(Lt);case"number":return isFinite(Lt)?String(Lt):"null";case"boolean":case"null":return String(Lt);case"object":if(!Lt)return"null";if(nt+=gt,Mt=[],A.apply(Lt)==="[object Array]"){for(Nt=Lt.length,ut=0;ut<Nt;ut+=1)Mt[ut]=pe(ut,Lt)||"null";return Ot=Mt.length===0?"[]":nt?`[
30
30
  `+nt+Mt.join(`,
31
31
  `+nt)+`
32
32
  `+mt+"]":"["+Mt.join(",")+"]",nt=mt,Ot}for(St in Lt)y.call(Lt,St)&&(Ot=pe(St,Lt),Ot&&Mt.push(ee(St)+(nt?": ":":")+Ot));return Ot=Mt.length===0?"{}":nt?"{"+Mt.join(",")+mt+"}":"{"+Mt.join(",")+"}",nt=mt,Ot}};return pe("",{"":N})}}(),O.JSONDecode=function(){var E,N,ee={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
@@ -69,9 +69,9 @@ function print() { __p += __j.call(arguments, '') }
69
69
  idToken
70
70
  }
71
71
  }
72
- `},8840:(Ee,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0})},8829:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{ApolloCache:()=>Ko,ApolloClient:()=>qo,ApolloError:()=>ht.K,ApolloLink:()=>Qa.ApolloLink,Cache:()=>_o,HttpLink:()=>ce,InMemoryCache:()=>lu,MissingFieldError:()=>po,NetworkStatus:()=>vt.p,Observable:()=>y.c,ObservableQuery:()=>Rr,checkFetcher:()=>$.S,concat:()=>Qa.concat,createHttpLink:()=>ie,createSignalIfSupported:()=>x.S,defaultDataIdFromObject:()=>Y,defaultPrinter:()=>G.i1,disableExperimentalFragmentVariables:()=>Sa.qj,disableFragmentWarnings:()=>Sa.gi,empty:()=>Qa.empty,enableExperimentalFragmentVariables:()=>Sa.VC,execute:()=>Qa.execute,fallbackHttpConfig:()=>G.R4,from:()=>Qa.from,fromError:()=>F.N,fromPromise:()=>La,gql:()=>Sa.J1,isApolloError:()=>ht.M,isReference:()=>b.A_,makeReference:()=>b.WU,makeVar:()=>nr,mergeOptions:()=>Wi.l,parseAndCheckHttpResponse:()=>g.O,resetCaches:()=>Sa.Nh,rewriteURIForGET:()=>Z,selectHttpOptionsAndBody:()=>G.Wz,selectHttpOptionsAndBodyInternal:()=>G.HY,selectURI:()=>P.z,serializeFetchParameter:()=>m.Y,setLogVerbosity:()=>ac.Q9,split:()=>Qa.split,throwServerError:()=>Xo.A,toPromise:()=>Tn});var T=p(7432),d=p(5608),D=p(1775),H=p(5174),V="3.6.10",A=p(424),y=p(6054),m=p(3647),P=p(3068),g=p(6745),$=p(7195),G=p(4559),x=p(2917);function Z(w,l){var S=[],R=function(et,ze){S.push("".concat(et,"=").concat(encodeURIComponent(ze)))};if("query"in l&&R("query",l.query),l.operationName&&R("operationName",l.operationName),l.variables){var q=void 0;try{q=(0,m.Y)(l.variables,"Variables map")}catch(et){return{parseError:et}}R("variables",q)}if(l.extensions){var ne=void 0;try{ne=(0,m.Y)(l.extensions,"Extensions map")}catch(et){return{parseError:et}}R("extensions",ne)}var se="",Ie=w,$e=w.indexOf("#");$e!==-1&&(se=w.substr($e),Ie=w.substr(0,$e));var Le=Ie.indexOf("?")===-1?"?":"&",Qe=Ie+Le+S.join("&")+se;return{newURI:Qe}}var F=p(3161),te=(0,T.no)(function(){return fetch}),ie=function(w){w===void 0&&(w={});var l=w.uri,S=l===void 0?"/graphql":l,R=w.fetch,q=w.print,ne=q===void 0?G.i1:q,se=w.includeExtensions,Ie=w.useGETForQueries,$e=w.includeUnusedVariables,Le=$e===void 0?!1:$e,Qe=(0,d.Tt)(w,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&(0,$.S)(R||te);var et={http:{includeExtensions:se},options:Qe.fetchOptions,credentials:Qe.credentials,headers:Qe.headers};return new D.C(function(ze){var st=(0,P.z)(ze,S),bt=ze.getContext(),At={};if(bt.clientAwareness){var It=bt.clientAwareness,wt=It.name,ur=It.version;wt&&(At["apollographql-client-name"]=wt),ur&&(At["apollographql-client-version"]=ur)}var Ct=(0,d.Cl)((0,d.Cl)({},At),bt.headers),Yt={http:bt.http,options:bt.fetchOptions,credentials:bt.credentials,headers:Ct},pr=(0,G.HY)(ze,ne,G.R4,et,Yt),or=pr.options,ir=pr.body;if(ir.variables&&!Le){var en=new Set(Object.keys(ir.variables));(0,A.YR)(ze.query,{Variable:function(si,Cl,Ei){Ei&&Ei.kind!=="VariableDefinition"&&en.delete(si.name.value)}}),en.size&&(ir.variables=(0,d.Cl)({},ir.variables),en.forEach(function(si){delete ir.variables[si]}))}var xi;if(!or.signal){var An=(0,x.S)(),ei=An.controller,fu=An.signal;xi=ei,xi&&(or.signal=fu)}var j_=function(si){return si.kind==="OperationDefinition"&&si.operation==="mutation"};if(Ie&&!ze.query.definitions.some(j_)&&(or.method="GET"),or.method==="GET"){var Ds=Z(st,ir),bl=Ds.newURI,Da=Ds.parseError;if(Da)return(0,F.N)(Da);st=bl}else try{or.body=(0,m.Y)(ir,"Payload")}catch(si){return(0,F.N)(si)}return new y.c(function(si){var Cl=R||(0,T.no)(function(){return fetch})||te;return Cl(st,or).then(function(Ei){return ze.setContext({response:Ei}),Ei}).then((0,g.O)(ze)).then(function(Ei){return si.next(Ei),si.complete(),Ei}).catch(function(Ei){Ei.name!=="AbortError"&&(Ei.result&&Ei.result.errors&&Ei.result.data&&si.next(Ei.result),si.error(Ei))}),function(){xi&&xi.abort()}})})},ce=function(w){(0,d.C6)(l,w);function l(S){S===void 0&&(S={});var R=w.call(this,ie(S).request)||this;return R.options=S,R}return l}(D.C),j=p(5888),O=function(){return Object.create(null)},ue=Array.prototype,be=ue.forEach,xe=ue.slice,we=function(){function w(l,S){l===void 0&&(l=!0),S===void 0&&(S=O),this.weakness=l,this.makeData=S}return w.prototype.lookup=function(){for(var l=[],S=0;S<arguments.length;S++)l[S]=arguments[S];return this.lookupArray(l)},w.prototype.lookupArray=function(l){var S=this;return be.call(l,function(R){return S=S.getChildTrie(R)}),S.data||(S.data=this.makeData(xe.call(l)))},w.prototype.getChildTrie=function(l){var S=this.weakness&&_e(l)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),R=S.get(l);return R||S.set(l,R=new w(this.weakness,this.makeData)),R},w}();function _e(w){switch(typeof w){case"object":if(w===null)break;case"function":return!0}return!1}var Ne=p(1777),Ae=p(1360),U=p(492),b=p(8907),C=p(2307),I=p(671),k=Object.prototype.hasOwnProperty;function Y(w,l){var S=w.__typename,R=w.id,q=w._id;if(typeof S=="string"&&(l&&(l.keyObject=R!==void 0?{id:R}:q!==void 0?{_id:q}:void 0),R===void 0&&(R=q),R!==void 0))return"".concat(S,":").concat(typeof R=="number"||typeof R=="string"?R:JSON.stringify(R))}var oe={dataIdFromObject:Y,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Re(w){return(0,U.o)(oe,w)}function de(w){var l=w.canonizeResults;return l===void 0?oe.canonizeResults:l}function ae(w,l){return(0,b.A_)(l)?w.get(l.__ref,"__typename"):l&&l.__typename}var re=/^[_a-z][_0-9a-z]*/i;function z(w){var l=w.match(re);return l?l[0]:w}function ve(w,l,S){return(0,Ne.U)(l)?at(l)?l.every(function(R){return ve(w,R,S)}):w.selections.every(function(R){if((0,b.dt)(R)&&(0,C.MS)(R,S)){var q=(0,b.ue)(R);return k.call(l,q)&&(!R.selectionSet||ve(R.selectionSet,l[q],S))}return!0}):!1}function ye(w){return(0,Ne.U)(w)&&!(0,b.A_)(w)&&!at(w)}function Je(){return new I.ZI}var at=function(w){return Array.isArray(w)};function Tt(w){return(0,Ne.U)(w)?at(w)?w.slice(0):(0,d.Cl)({__proto__:Object.getPrototypeOf(w)},w):w}var tt=function(){function w(){this.known=new(Ae.En?WeakSet:Set),this.pool=new we(Ae.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return w.prototype.isKnown=function(l){return(0,Ne.U)(l)&&this.known.has(l)},w.prototype.pass=function(l){if((0,Ne.U)(l)){var S=Tt(l);return this.passes.set(S,l),S}return l},w.prototype.admit=function(l){var S=this;if((0,Ne.U)(l)){var R=this.passes.get(l);if(R)return R;var q=Object.getPrototypeOf(l);switch(q){case Array.prototype:{if(this.known.has(l))return l;var ne=l.map(this.admit,this),se=this.pool.lookupArray(ne);return se.array||(this.known.add(se.array=ne),__DEV__&&Object.freeze(ne)),se.array}case null:case Object.prototype:{if(this.known.has(l))return l;var Ie=Object.getPrototypeOf(l),$e=[Ie],Le=this.sortedKeys(l);$e.push(Le.json);var Qe=$e.length;Le.sorted.forEach(function(st){$e.push(S.admit(l[st]))});var se=this.pool.lookupArray($e);if(!se.object){var et=se.object=Object.create(Ie);this.known.add(et),Le.sorted.forEach(function(st,bt){et[st]=$e[Qe+bt]}),__DEV__&&Object.freeze(et)}return se.object}}}return l},w.prototype.sortedKeys=function(l){var S=Object.keys(l),R=this.pool.lookupArray(S);if(!R.keys){S.sort();var q=JSON.stringify(S);(R.keys=this.keysByJSON.get(q))||this.keysByJSON.set(q,R.keys={sorted:S,json:q})}return R.keys},w}(),Pe=Object.assign(function(w){if((0,Ne.U)(w)){Me===void 0&&Q();var l=Me.admit(w),S=B.get(l);return S===void 0&&B.set(l,S=JSON.stringify(l)),S}return JSON.stringify(w)},{reset:Q}),Me,B;function Q(){Me=new tt,B=new(Ae.et?WeakMap:Map)}var J=p(5762),le=p(2710),Se=p(3777),je=p(5388),dt=p(1461),Xe=p(5637),pt=p(3767),ht=p(3570),vt=p(5950),Qt=p(906),tr=p(7613),Bt=p(5892),kt=Object.assign,zt=Object.hasOwnProperty,Rr=function(w){(0,d.C6)(l,w);function l(S){var R=S.queryManager,q=S.queryInfo,ne=S.options,se=w.call(this,function(It){try{var wt=It._subscription._observer;wt&&!wt.error&&(wt.error=Fr)}catch{}var ur=!se.observers.size;se.observers.add(It);var Ct=se.last;return Ct&&Ct.error?It.error&&It.error(Ct.error):Ct&&Ct.result&&It.next&&It.next(Ct.result),ur&&se.reobserve().catch(function(){}),function(){se.observers.delete(It)&&!se.observers.size&&se.tearDownQuery()}})||this;se.observers=new Set,se.subscriptions=new Set,se.queryInfo=q,se.queryManager=R,se.isTornDown=!1;var Ie=R.defaultOptions.watchQuery,$e=Ie===void 0?{}:Ie,Le=$e.fetchPolicy,Qe=Le===void 0?"cache-first":Le,et=ne.fetchPolicy,ze=et===void 0?Qe:et,st=ne.initialFetchPolicy,bt=st===void 0?ze==="standby"?Qe:ze:st;se.options=(0,d.Cl)((0,d.Cl)({},ne),{initialFetchPolicy:bt,fetchPolicy:ze}),se.queryId=q.queryId||R.generateQueryId();var At=(0,Se.Vu)(se.query);return se.queryName=At&&At.name&&At.name.value,se}return Object.defineProperty(l.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),l.prototype.result=function(){var S=this;return new Promise(function(R,q){var ne={next:function(Ie){R(Ie),S.observers.delete(ne),S.observers.size||S.queryManager.removeQuery(S.queryId),setTimeout(function(){se.unsubscribe()},0)},error:q},se=S.subscribe(ne)})},l.prototype.getCurrentResult=function(S){S===void 0&&(S=!0);var R=this.getLastResult(!0),q=this.queryInfo.networkStatus||R&&R.networkStatus||vt.p.ready,ne=(0,d.Cl)((0,d.Cl)({},R),{loading:(0,vt.b)(q),networkStatus:q}),se=this.options.fetchPolicy,Ie=se===void 0?"cache-first":se;if(!(Ie==="network-only"||Ie==="no-cache"||Ie==="standby"||this.queryManager.transform(this.options.query).hasForcedResolvers)){var $e=this.queryInfo.getDiff();($e.complete||this.options.returnPartialData)&&(ne.data=$e.result),(0,j.L)(ne.data,{})&&(ne.data=void 0),$e.complete?(delete ne.partial,$e.complete&&ne.networkStatus===vt.p.loading&&(Ie==="cache-first"||Ie==="cache-only")&&(ne.networkStatus=vt.p.ready,ne.loading=!1)):ne.partial=!0,__DEV__&&!$e.complete&&!this.options.partialRefetch&&!ne.loading&&!ne.data&&!ne.error&&$r($e.missing)}return S&&this.updateLastResult(ne),ne},l.prototype.isDifferentFromLastResult=function(S){return!this.last||!(0,j.L)(this.last.result,S)},l.prototype.getLast=function(S,R){var q=this.last;if(q&&q[S]&&(!R||(0,j.L)(q.variables,this.variables)))return q[S]},l.prototype.getLastResult=function(S){return this.getLast("result",S)},l.prototype.getLastError=function(S){return this.getLast("error",S)},l.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},l.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},l.prototype.refetch=function(S){var R,q={pollInterval:0},ne=this.options.fetchPolicy;if(ne==="cache-and-network"?q.fetchPolicy=ne:ne==="no-cache"?q.fetchPolicy="no-cache":q.fetchPolicy="network-only",__DEV__&&S&&zt.call(S,"variables")){var se=(0,Se.AT)(this.query),Ie=se.variableDefinitions;(!Ie||!Ie.some(function($e){return $e.variable.name.value==="variables"}))&&__DEV__&&T.V1.warn("Called refetch(".concat(JSON.stringify(S),") for query ").concat(((R=se.name)===null||R===void 0?void 0:R.value)||JSON.stringify(se),`, which does not declare a $variables variable.
72
+ `},8840:(Ee,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0})},8829:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{ApolloCache:()=>Ko,ApolloClient:()=>qo,ApolloError:()=>ht.K,ApolloLink:()=>Qa.ApolloLink,Cache:()=>_o,HttpLink:()=>ce,InMemoryCache:()=>lu,MissingFieldError:()=>po,NetworkStatus:()=>vt.p,Observable:()=>y.c,ObservableQuery:()=>Rr,checkFetcher:()=>$.S,concat:()=>Qa.concat,createHttpLink:()=>ie,createSignalIfSupported:()=>x.S,defaultDataIdFromObject:()=>Y,defaultPrinter:()=>G.i1,disableExperimentalFragmentVariables:()=>Sa.qj,disableFragmentWarnings:()=>Sa.gi,empty:()=>Qa.empty,enableExperimentalFragmentVariables:()=>Sa.VC,execute:()=>Qa.execute,fallbackHttpConfig:()=>G.R4,from:()=>Qa.from,fromError:()=>F.N,fromPromise:()=>La,gql:()=>Sa.J1,isApolloError:()=>ht.M,isReference:()=>b.A_,makeReference:()=>b.WU,makeVar:()=>nr,mergeOptions:()=>Wi.l,parseAndCheckHttpResponse:()=>g.O,resetCaches:()=>Sa.Nh,rewriteURIForGET:()=>Z,selectHttpOptionsAndBody:()=>G.Wz,selectHttpOptionsAndBodyInternal:()=>G.HY,selectURI:()=>P.z,serializeFetchParameter:()=>m.Y,setLogVerbosity:()=>oc.Q9,split:()=>Qa.split,throwServerError:()=>Xo.A,toPromise:()=>Tn});var T=p(7432),d=p(5608),D=p(1775),H=p(5174),V="3.6.10",A=p(424),y=p(6054),m=p(3647),P=p(3068),g=p(6745),$=p(7195),G=p(4559),x=p(2917);function Z(w,l){var S=[],R=function(et,ze){S.push("".concat(et,"=").concat(encodeURIComponent(ze)))};if("query"in l&&R("query",l.query),l.operationName&&R("operationName",l.operationName),l.variables){var q=void 0;try{q=(0,m.Y)(l.variables,"Variables map")}catch(et){return{parseError:et}}R("variables",q)}if(l.extensions){var ne=void 0;try{ne=(0,m.Y)(l.extensions,"Extensions map")}catch(et){return{parseError:et}}R("extensions",ne)}var se="",Ie=w,$e=w.indexOf("#");$e!==-1&&(se=w.substr($e),Ie=w.substr(0,$e));var Le=Ie.indexOf("?")===-1?"?":"&",Qe=Ie+Le+S.join("&")+se;return{newURI:Qe}}var F=p(3161),te=(0,T.no)(function(){return fetch}),ie=function(w){w===void 0&&(w={});var l=w.uri,S=l===void 0?"/graphql":l,R=w.fetch,q=w.print,ne=q===void 0?G.i1:q,se=w.includeExtensions,Ie=w.useGETForQueries,$e=w.includeUnusedVariables,Le=$e===void 0?!1:$e,Qe=(0,d.Tt)(w,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&(0,$.S)(R||te);var et={http:{includeExtensions:se},options:Qe.fetchOptions,credentials:Qe.credentials,headers:Qe.headers};return new D.C(function(ze){var st=(0,P.z)(ze,S),bt=ze.getContext(),At={};if(bt.clientAwareness){var It=bt.clientAwareness,wt=It.name,ur=It.version;wt&&(At["apollographql-client-name"]=wt),ur&&(At["apollographql-client-version"]=ur)}var Ct=(0,d.Cl)((0,d.Cl)({},At),bt.headers),Yt={http:bt.http,options:bt.fetchOptions,credentials:bt.credentials,headers:Ct},pr=(0,G.HY)(ze,ne,G.R4,et,Yt),or=pr.options,ir=pr.body;if(ir.variables&&!Le){var en=new Set(Object.keys(ir.variables));(0,A.YR)(ze.query,{Variable:function(si,Pl,Ei){Ei&&Ei.kind!=="VariableDefinition"&&en.delete(si.name.value)}}),en.size&&(ir.variables=(0,d.Cl)({},ir.variables),en.forEach(function(si){delete ir.variables[si]}))}var xi;if(!or.signal){var An=(0,x.S)(),ei=An.controller,fu=An.signal;xi=ei,xi&&(or.signal=fu)}var H_=function(si){return si.kind==="OperationDefinition"&&si.operation==="mutation"};if(Ie&&!ze.query.definitions.some(H_)&&(or.method="GET"),or.method==="GET"){var Ds=Z(st,ir),Cl=Ds.newURI,Da=Ds.parseError;if(Da)return(0,F.N)(Da);st=Cl}else try{or.body=(0,m.Y)(ir,"Payload")}catch(si){return(0,F.N)(si)}return new y.c(function(si){var Pl=R||(0,T.no)(function(){return fetch})||te;return Pl(st,or).then(function(Ei){return ze.setContext({response:Ei}),Ei}).then((0,g.O)(ze)).then(function(Ei){return si.next(Ei),si.complete(),Ei}).catch(function(Ei){Ei.name!=="AbortError"&&(Ei.result&&Ei.result.errors&&Ei.result.data&&si.next(Ei.result),si.error(Ei))}),function(){xi&&xi.abort()}})})},ce=function(w){(0,d.C6)(l,w);function l(S){S===void 0&&(S={});var R=w.call(this,ie(S).request)||this;return R.options=S,R}return l}(D.C),j=p(5888),O=function(){return Object.create(null)},ue=Array.prototype,be=ue.forEach,xe=ue.slice,we=function(){function w(l,S){l===void 0&&(l=!0),S===void 0&&(S=O),this.weakness=l,this.makeData=S}return w.prototype.lookup=function(){for(var l=[],S=0;S<arguments.length;S++)l[S]=arguments[S];return this.lookupArray(l)},w.prototype.lookupArray=function(l){var S=this;return be.call(l,function(R){return S=S.getChildTrie(R)}),S.data||(S.data=this.makeData(xe.call(l)))},w.prototype.getChildTrie=function(l){var S=this.weakness&&_e(l)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),R=S.get(l);return R||S.set(l,R=new w(this.weakness,this.makeData)),R},w}();function _e(w){switch(typeof w){case"object":if(w===null)break;case"function":return!0}return!1}var Ne=p(1777),Ae=p(1360),U=p(492),b=p(8907),C=p(2307),I=p(671),k=Object.prototype.hasOwnProperty;function Y(w,l){var S=w.__typename,R=w.id,q=w._id;if(typeof S=="string"&&(l&&(l.keyObject=R!==void 0?{id:R}:q!==void 0?{_id:q}:void 0),R===void 0&&(R=q),R!==void 0))return"".concat(S,":").concat(typeof R=="number"||typeof R=="string"?R:JSON.stringify(R))}var oe={dataIdFromObject:Y,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Re(w){return(0,U.o)(oe,w)}function de(w){var l=w.canonizeResults;return l===void 0?oe.canonizeResults:l}function ae(w,l){return(0,b.A_)(l)?w.get(l.__ref,"__typename"):l&&l.__typename}var re=/^[_a-z][_0-9a-z]*/i;function z(w){var l=w.match(re);return l?l[0]:w}function ve(w,l,S){return(0,Ne.U)(l)?at(l)?l.every(function(R){return ve(w,R,S)}):w.selections.every(function(R){if((0,b.dt)(R)&&(0,C.MS)(R,S)){var q=(0,b.ue)(R);return k.call(l,q)&&(!R.selectionSet||ve(R.selectionSet,l[q],S))}return!0}):!1}function ye(w){return(0,Ne.U)(w)&&!(0,b.A_)(w)&&!at(w)}function Je(){return new I.ZI}var at=function(w){return Array.isArray(w)};function Tt(w){return(0,Ne.U)(w)?at(w)?w.slice(0):(0,d.Cl)({__proto__:Object.getPrototypeOf(w)},w):w}var tt=function(){function w(){this.known=new(Ae.En?WeakSet:Set),this.pool=new we(Ae.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return w.prototype.isKnown=function(l){return(0,Ne.U)(l)&&this.known.has(l)},w.prototype.pass=function(l){if((0,Ne.U)(l)){var S=Tt(l);return this.passes.set(S,l),S}return l},w.prototype.admit=function(l){var S=this;if((0,Ne.U)(l)){var R=this.passes.get(l);if(R)return R;var q=Object.getPrototypeOf(l);switch(q){case Array.prototype:{if(this.known.has(l))return l;var ne=l.map(this.admit,this),se=this.pool.lookupArray(ne);return se.array||(this.known.add(se.array=ne),__DEV__&&Object.freeze(ne)),se.array}case null:case Object.prototype:{if(this.known.has(l))return l;var Ie=Object.getPrototypeOf(l),$e=[Ie],Le=this.sortedKeys(l);$e.push(Le.json);var Qe=$e.length;Le.sorted.forEach(function(st){$e.push(S.admit(l[st]))});var se=this.pool.lookupArray($e);if(!se.object){var et=se.object=Object.create(Ie);this.known.add(et),Le.sorted.forEach(function(st,bt){et[st]=$e[Qe+bt]}),__DEV__&&Object.freeze(et)}return se.object}}}return l},w.prototype.sortedKeys=function(l){var S=Object.keys(l),R=this.pool.lookupArray(S);if(!R.keys){S.sort();var q=JSON.stringify(S);(R.keys=this.keysByJSON.get(q))||this.keysByJSON.set(q,R.keys={sorted:S,json:q})}return R.keys},w}(),Pe=Object.assign(function(w){if((0,Ne.U)(w)){Me===void 0&&Q();var l=Me.admit(w),S=B.get(l);return S===void 0&&B.set(l,S=JSON.stringify(l)),S}return JSON.stringify(w)},{reset:Q}),Me,B;function Q(){Me=new tt,B=new(Ae.et?WeakMap:Map)}var J=p(5762),le=p(2710),Se=p(3777),je=p(5388),dt=p(1461),Xe=p(5637),pt=p(3767),ht=p(3570),vt=p(5950),Qt=p(906),tr=p(7613),Bt=p(5892),kt=Object.assign,zt=Object.hasOwnProperty,Rr=function(w){(0,d.C6)(l,w);function l(S){var R=S.queryManager,q=S.queryInfo,ne=S.options,se=w.call(this,function(It){try{var wt=It._subscription._observer;wt&&!wt.error&&(wt.error=Fr)}catch{}var ur=!se.observers.size;se.observers.add(It);var Ct=se.last;return Ct&&Ct.error?It.error&&It.error(Ct.error):Ct&&Ct.result&&It.next&&It.next(Ct.result),ur&&se.reobserve().catch(function(){}),function(){se.observers.delete(It)&&!se.observers.size&&se.tearDownQuery()}})||this;se.observers=new Set,se.subscriptions=new Set,se.queryInfo=q,se.queryManager=R,se.isTornDown=!1;var Ie=R.defaultOptions.watchQuery,$e=Ie===void 0?{}:Ie,Le=$e.fetchPolicy,Qe=Le===void 0?"cache-first":Le,et=ne.fetchPolicy,ze=et===void 0?Qe:et,st=ne.initialFetchPolicy,bt=st===void 0?ze==="standby"?Qe:ze:st;se.options=(0,d.Cl)((0,d.Cl)({},ne),{initialFetchPolicy:bt,fetchPolicy:ze}),se.queryId=q.queryId||R.generateQueryId();var At=(0,Se.Vu)(se.query);return se.queryName=At&&At.name&&At.name.value,se}return Object.defineProperty(l.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),l.prototype.result=function(){var S=this;return new Promise(function(R,q){var ne={next:function(Ie){R(Ie),S.observers.delete(ne),S.observers.size||S.queryManager.removeQuery(S.queryId),setTimeout(function(){se.unsubscribe()},0)},error:q},se=S.subscribe(ne)})},l.prototype.getCurrentResult=function(S){S===void 0&&(S=!0);var R=this.getLastResult(!0),q=this.queryInfo.networkStatus||R&&R.networkStatus||vt.p.ready,ne=(0,d.Cl)((0,d.Cl)({},R),{loading:(0,vt.b)(q),networkStatus:q}),se=this.options.fetchPolicy,Ie=se===void 0?"cache-first":se;if(!(Ie==="network-only"||Ie==="no-cache"||Ie==="standby"||this.queryManager.transform(this.options.query).hasForcedResolvers)){var $e=this.queryInfo.getDiff();($e.complete||this.options.returnPartialData)&&(ne.data=$e.result),(0,j.L)(ne.data,{})&&(ne.data=void 0),$e.complete?(delete ne.partial,$e.complete&&ne.networkStatus===vt.p.loading&&(Ie==="cache-first"||Ie==="cache-only")&&(ne.networkStatus=vt.p.ready,ne.loading=!1)):ne.partial=!0,__DEV__&&!$e.complete&&!this.options.partialRefetch&&!ne.loading&&!ne.data&&!ne.error&&$r($e.missing)}return S&&this.updateLastResult(ne),ne},l.prototype.isDifferentFromLastResult=function(S){return!this.last||!(0,j.L)(this.last.result,S)},l.prototype.getLast=function(S,R){var q=this.last;if(q&&q[S]&&(!R||(0,j.L)(q.variables,this.variables)))return q[S]},l.prototype.getLastResult=function(S){return this.getLast("result",S)},l.prototype.getLastError=function(S){return this.getLast("error",S)},l.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},l.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},l.prototype.refetch=function(S){var R,q={pollInterval:0},ne=this.options.fetchPolicy;if(ne==="cache-and-network"?q.fetchPolicy=ne:ne==="no-cache"?q.fetchPolicy="no-cache":q.fetchPolicy="network-only",__DEV__&&S&&zt.call(S,"variables")){var se=(0,Se.AT)(this.query),Ie=se.variableDefinitions;(!Ie||!Ie.some(function($e){return $e.variable.name.value==="variables"}))&&__DEV__&&T.V1.warn("Called refetch(".concat(JSON.stringify(S),") for query ").concat(((R=se.name)===null||R===void 0?void 0:R.value)||JSON.stringify(se),`, which does not declare a $variables variable.
73
73
  Did you mean to call refetch(variables) instead of refetch({ variables })?`))}return S&&!(0,j.L)(this.options.variables,S)&&(q.variables=this.options.variables=(0,d.Cl)((0,d.Cl)({},this.options.variables),S)),this.queryInfo.resetLastWrite(),this.reobserve(q,vt.p.refetch)},l.prototype.fetchMore=function(S){var R=this,q=(0,d.Cl)((0,d.Cl)({},S.query?S:(0,d.Cl)((0,d.Cl)((0,d.Cl)((0,d.Cl)({},this.options),{query:this.query}),S),{variables:(0,d.Cl)((0,d.Cl)({},this.options.variables),S.variables)})),{fetchPolicy:"no-cache"}),ne=this.queryManager.generateQueryId(),se=this.queryInfo,Ie=se.networkStatus;se.networkStatus=vt.p.fetchMore,q.notifyOnNetworkStatusChange&&this.observe();var $e=new Set;return this.queryManager.fetchQuery(ne,q,vt.p.fetchMore).then(function(Le){return R.queryManager.removeQuery(ne),se.networkStatus===vt.p.fetchMore&&(se.networkStatus=Ie),R.queryManager.cache.batch({update:function(Qe){var et=S.updateQuery;et?Qe.updateQuery({query:R.query,variables:R.variables,returnPartialData:!0,optimistic:!1},function(ze){return et(ze,{fetchMoreResult:Le.data,variables:q.variables})}):Qe.writeQuery({query:q.query,variables:q.variables,data:Le.data})},onWatchUpdated:function(Qe){$e.add(Qe.query)}}),Le}).finally(function(){$e.has(R.query)||Er(R)})},l.prototype.subscribeToMore=function(S){var R=this,q=this.queryManager.startGraphQLSubscription({query:S.document,variables:S.variables,context:S.context}).subscribe({next:function(ne){var se=S.updateQuery;se&&R.updateQuery(function(Ie,$e){var Le=$e.variables;return se(Ie,{subscriptionData:ne,variables:Le})})},error:function(ne){if(S.onError){S.onError(ne);return}__DEV__&&T.V1.error("Unhandled GraphQL subscription error",ne)}});return this.subscriptions.add(q),function(){R.subscriptions.delete(q)&&q.unsubscribe()}},l.prototype.setOptions=function(S){return this.reobserve(S)},l.prototype.setVariables=function(S){return(0,j.L)(this.variables,S)?this.observers.size?this.result():Promise.resolve():(this.options.variables=S,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:S},vt.p.setVariables):Promise.resolve())},l.prototype.updateQuery=function(S){var R=this.queryManager,q=R.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,ne=S(q,{variables:this.variables});ne&&(R.cache.writeQuery({query:this.options.query,data:ne,variables:this.variables}),R.broadcastQueries())},l.prototype.startPolling=function(S){this.options.pollInterval=S,this.updatePolling()},l.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},l.prototype.applyNextFetchPolicy=function(S,R){if(R.nextFetchPolicy){var q=R.fetchPolicy,ne=q===void 0?"cache-first":q,se=R.initialFetchPolicy,Ie=se===void 0?ne:se;ne==="standby"||(typeof R.nextFetchPolicy=="function"?R.fetchPolicy=R.nextFetchPolicy(ne,{reason:S,options:R,observable:this,initialFetchPolicy:Ie}):S==="variables-changed"?R.fetchPolicy=Ie:R.fetchPolicy=R.nextFetchPolicy)}return R.fetchPolicy},l.prototype.fetch=function(S,R){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,S,R)},l.prototype.updatePolling=function(){var S=this;if(!this.queryManager.ssrMode){var R=this,q=R.pollingInfo,ne=R.options.pollInterval;if(!ne){q&&(clearTimeout(q.timeout),delete this.pollingInfo);return}if(!(q&&q.interval===ne)){__DEV__?(0,T.V1)(ne,"Attempted to start a polling query without a polling interval."):(0,T.V1)(ne,10);var se=q||(this.pollingInfo={});se.interval=ne;var Ie=function(){S.pollingInfo&&((0,vt.b)(S.queryInfo.networkStatus)?$e():S.reobserve({fetchPolicy:"network-only"},vt.p.poll).then($e,$e))},$e=function(){var Le=S.pollingInfo;Le&&(clearTimeout(Le.timeout),Le.timeout=setTimeout(Ie,Le.interval))};$e()}}},l.prototype.updateLastResult=function(S,R){return R===void 0&&(R=this.variables),this.last=(0,d.Cl)((0,d.Cl)({},this.last),{result:this.queryManager.assumeImmutableResults?S:(0,Qt.m)(S),variables:R}),(0,pt.E)(S.errors)||delete this.last.error,this.last},l.prototype.reobserve=function(S,R){var q=this;this.isTornDown=!1;var ne=R===vt.p.refetch||R===vt.p.fetchMore||R===vt.p.poll,se=this.options.variables,Ie=this.options.fetchPolicy,$e=(0,U.o)(this.options,S||{}),Le=ne?$e:kt(this.options,$e);ne||(this.updatePolling(),S&&S.variables&&!(0,j.L)(S.variables,se)&&Le.fetchPolicy!=="standby"&&Le.fetchPolicy===Ie&&(this.applyNextFetchPolicy("variables-changed",Le),R===void 0&&(R=vt.p.setVariables)));var Qe=Le.variables&&(0,d.Cl)({},Le.variables),et=this.fetch(Le,R),ze={next:function(st){q.reportResult(st,Qe)},error:function(st){q.reportError(st,Qe)}};return ne||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=et,this.observer=ze),et.addObserver(ze),et.promise},l.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},l.prototype.reportResult=function(S,R){var q=this.getLastError();(q||this.isDifferentFromLastResult(S))&&((q||!S.partial||this.options.returnPartialData)&&this.updateLastResult(S,R),(0,tr.w)(this.observers,"next",S))},l.prototype.reportError=function(S,R){var q=(0,d.Cl)((0,d.Cl)({},this.getLastResult()),{error:S,errors:S.graphQLErrors,networkStatus:vt.p.error,loading:!1});this.updateLastResult(q,R),(0,tr.w)(this.observers,"error",this.last.error=S)},l.prototype.hasObservers=function(){return this.observers.size>0},l.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(S){return S.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},l}(y.c);(0,Bt.r)(Rr);function Er(w){var l=w.options,S=l.fetchPolicy,R=l.nextFetchPolicy;return S==="cache-and-network"||S==="network-only"?w.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=R,typeof R=="function"?R.apply(this,arguments):S}}):w.reobserve()}function Fr(w){__DEV__&&T.V1.error("Unhandled error",w.message,w.stack)}function $r(w){__DEV__&&w&&__DEV__&&T.V1.debug("Missing cache result fields: ".concat(JSON.stringify(w)),w)}var cn=p(2904);let vr=null;const Ge={};let Fe=1;const Xt=()=>class{constructor(){this.id=["slot",Fe++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let l=vr;l;l=l.parent)if(this.id in l.slots){const S=l.slots[this.id];if(S===Ge)break;return l!==vr&&(vr.slots[this.id]=S),!0}return vr&&(vr.slots[this.id]=Ge),!1}getValue(){if(this.hasValue())return vr.slots[this.id]}withValue(l,S,R,q){const ne={__proto__:null,[this.id]:l},se=vr;vr={parent:se,slots:ne};try{return S.apply(q,R)}finally{vr=se}}static bind(l){const S=vr;return function(){const R=vr;try{return vr=S,l.apply(this,arguments)}finally{vr=R}}}static noContext(l,S,R){if(vr){const q=vr;try{return vr=null,l.apply(R,S)}finally{vr=q}}else return l.apply(R,S)}};function rr(w){try{return w()}catch{}}const mr="@wry/context:Slot",Ir=rr(()=>globalThis)||rr(()=>global)||Object.create(null),Vr=Ir[mr]||Array[mr]||function(w){try{Object.defineProperty(Ir,mr,{value:w,enumerable:!1,writable:!1,configurable:!0})}finally{return w}}(Xt()),{bind:Gr,noContext:mn}=Vr;function Hn(w,l){return setTimeout(Gr(w),l)}function Yn(w){return function(){const l=w.apply(this,arguments),S=Gr(l.next),R=Gr(l.throw);return new Promise((q,ne)=>{function se(Le,Qe){try{var et=Le.call(l,Qe)}catch(st){return ne(st)}const ze=et.done?q:Ie;ln(et.value)?et.value.then(ze,et.done?ne:$e):ze(et.value)}const Ie=Le=>se(S,Le),$e=Le=>se(R,Le);Ie()})}}function ln(w){return w&&typeof w.then=="function"}const $t=null;function Ki(w){if($t.indexOf(w)<0){const l=(S,R)=>{const q=S[R];S[R]=function(){return mn(q,arguments,this)}};l(w,"yield"),l(w.prototype,"run"),l(w.prototype,"throwInto"),$t.push(w)}return w}function br(){}var Xn=function(){function w(l,S){l===void 0&&(l=1/0),S===void 0&&(S=br),this.max=l,this.dispose=S,this.map=new Map,this.newest=null,this.oldest=null}return w.prototype.has=function(l){return this.map.has(l)},w.prototype.get=function(l){var S=this.getNode(l);return S&&S.value},w.prototype.getNode=function(l){var S=this.map.get(l);if(S&&S!==this.newest){var R=S.older,q=S.newer;q&&(q.older=R),R&&(R.newer=q),S.older=this.newest,S.older.newer=S,S.newer=null,this.newest=S,S===this.oldest&&(this.oldest=q)}return S},w.prototype.set=function(l,S){var R=this.getNode(l);return R?R.value=S:(R={key:l,value:S,newer:null,older:this.newest},this.newest&&(this.newest.newer=R),this.newest=R,this.oldest=this.oldest||R,this.map.set(l,R),R.value)},w.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},w.prototype.delete=function(l){var S=this.map.get(l);return S?(S===this.newest&&(this.newest=S.older),S===this.oldest&&(this.oldest=S.newer),S.newer&&(S.newer.older=S.older),S.older&&(S.older.newer=S.newer),this.map.delete(l),this.dispose(S.value,l),!0):!1},w}(),Jn=new Vr,qn,pn=Object.prototype.hasOwnProperty,Hr=(qn=Array.from,qn===void 0?function(w){var l=[];return w.forEach(function(S){return l.push(S)}),l}:qn);function Ln(w){var l=w.unsubscribe;typeof l=="function"&&(w.unsubscribe=void 0,l())}var ii=[],Mn=100;function Dn(w,l){if(!w)throw new Error(l||"assertion failure")}function Vt(w,l){var S=w.length;return S>0&&S===l.length&&w[S-1]===l[S-1]}function hn(w){switch(w.length){case 0:throw new Error("unknown value");case 1:return w[0];case 2:throw w[1]}}function zr(w){return w.slice(0)}var it=function(){function w(l){this.fn=l,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++w.count}return w.prototype.peek=function(){if(this.value.length===1&&!Tr(this))return In(this),this.value[0]},w.prototype.recompute=function(l){return Dn(!this.recomputing,"already recomputing"),In(this),Tr(this)?hi(this,l):hn(this.value)},w.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,da(this),Ln(this))},w.prototype.dispose=function(){var l=this;this.setDirty(),ee(this),Ni(this,function(S,R){S.setDirty(),pe(S,l)})},w.prototype.forget=function(){this.dispose()},w.prototype.dependOn=function(l){l.add(this),this.deps||(this.deps=ii.pop()||new Set),this.deps.add(l)},w.prototype.forgetDeps=function(){var l=this;this.deps&&(Hr(this.deps).forEach(function(S){return S.delete(l)}),this.deps.clear(),ii.push(this.deps),this.deps=null)},w.count=0,w}();function In(w){var l=Jn.getValue();if(l)return w.parents.add(l),l.childValues.has(w)||l.childValues.set(w,[]),Tr(w)?Li(l,w):E(l,w),l}function hi(w,l){return ee(w),Jn.withValue(w,Oi,[w,l]),De(w,l)&&Zn(w),hn(w.value)}function Oi(w,l){w.recomputing=!0,w.value.length=0;try{w.value[0]=w.fn.apply(null,l)}catch(S){w.value[1]=S}w.recomputing=!1}function Tr(w){return w.dirty||!!(w.dirtyChildren&&w.dirtyChildren.size)}function Zn(w){w.dirty=!1,!Tr(w)&&yn(w)}function da(w){Ni(w,Li)}function yn(w){Ni(w,E)}function Ni(w,l){var S=w.parents.size;if(S)for(var R=Hr(w.parents),q=0;q<S;++q)l(R[q],w)}function Li(w,l){Dn(w.childValues.has(l)),Dn(Tr(l));var S=!Tr(w);if(!w.dirtyChildren)w.dirtyChildren=ii.pop()||new Set;else if(w.dirtyChildren.has(l))return;w.dirtyChildren.add(l),S&&da(w)}function E(w,l){Dn(w.childValues.has(l)),Dn(!Tr(l));var S=w.childValues.get(l);S.length===0?w.childValues.set(l,zr(l.value)):Vt(S,l.value)||w.setDirty(),N(w,l),!Tr(w)&&yn(w)}function N(w,l){var S=w.dirtyChildren;S&&(S.delete(l),S.size===0&&(ii.length<Mn&&ii.push(S),w.dirtyChildren=null))}function ee(w){w.childValues.size>0&&w.childValues.forEach(function(l,S){pe(w,S)}),w.forgetDeps(),Dn(w.dirtyChildren===null)}function pe(w,l){l.parents.delete(w),w.childValues.delete(l),N(w,l)}function De(w,l){if(typeof w.subscribe=="function")try{Ln(w),w.unsubscribe=w.subscribe.apply(null,l)}catch{return w.setDirty(),!1}return!0}var Be={setDirty:!0,dispose:!0,forget:!0};function nt(w){var l=new Map,S=w&&w.subscribe;function R(q){var ne=Jn.getValue();if(ne){var se=l.get(q);se||l.set(q,se=new Set),ne.dependOn(se),typeof S=="function"&&(Ln(se),se.unsubscribe=S(q))}}return R.dirty=function(ne,se){var Ie=l.get(ne);if(Ie){var $e=se&&pn.call(Be,se)?se:"setDirty";Hr(Ie).forEach(function(Le){return Le[$e]()}),l.delete(ne),Ln(Ie)}},R}function gt(){var w=new we(typeof WeakMap=="function");return function(){return w.lookupArray(arguments)}}var ut=gt(),St=new Set;function Ot(w,l){l===void 0&&(l=Object.create(null));var S=new Xn(l.max||Math.pow(2,16),function(Le){return Le.dispose()}),R=l.keyArgs,q=l.makeCacheKey||gt(),ne=function(){var Le=q.apply(null,R?R.apply(null,arguments):arguments);if(Le===void 0)return w.apply(null,arguments);var Qe=S.get(Le);Qe||(S.set(Le,Qe=new it(w)),Qe.subscribe=l.subscribe,Qe.forget=function(){return S.delete(Le)});var et=Qe.recompute(Array.prototype.slice.call(arguments));return S.set(Le,Qe),St.add(S),Jn.hasValue()||(St.forEach(function(ze){return ze.clean()}),St.clear()),et};Object.defineProperty(ne,"size",{get:function(){return S.map.size},configurable:!1,enumerable:!1});function se(Le){var Qe=S.get(Le);Qe&&Qe.setDirty()}ne.dirtyKey=se,ne.dirty=function(){se(q.apply(null,arguments))};function Ie(Le){var Qe=S.get(Le);if(Qe)return Qe.peek()}ne.peekKey=Ie,ne.peek=function(){return Ie(q.apply(null,arguments))};function $e(Le){return S.delete(Le)}return ne.forgetKey=$e,ne.forget=function(){return $e(q.apply(null,arguments))},ne.makeCacheKey=q,ne.getKey=R?function(){return q.apply(null,R.apply(null,arguments))}:q,Object.freeze(ne)}var Nt=new Vr,mt=new WeakMap;function Mt(w){var l=mt.get(w);return l||mt.set(w,l={vars:new Set,dep:nt()}),l}function Lt(w){Mt(w).vars.forEach(function(l){return l.forgetCache(w)})}function xr(w){Mt(w).vars.forEach(function(l){return l.attachCache(w)})}function nr(w){var l=new Set,S=new Set,R=function(ne){if(arguments.length>0){if(w!==ne){w=ne,l.forEach(function($e){Mt($e).dep.dirty(R),Zr($e)});var se=Array.from(S);S.clear(),se.forEach(function($e){return $e(w)})}}else{var Ie=Nt.getValue();Ie&&(q(Ie),Mt(Ie).dep(R))}return w};R.onNextChange=function(ne){return S.add(ne),function(){S.delete(ne)}};var q=R.attachCache=function(ne){return l.add(ne),Mt(ne).vars.add(R),R};return R.forgetCache=function(ne){return l.delete(ne)},R}function Zr(w){w.broadcastWatches&&w.broadcastWatches()}var Yr=function(){function w(l){var S=l.cache,R=l.client,q=l.resolvers,ne=l.fragmentMatcher;this.cache=S,R&&(this.client=R),q&&this.addResolvers(q),ne&&this.setFragmentMatcher(ne)}return w.prototype.addResolvers=function(l){var S=this;this.resolvers=this.resolvers||{},Array.isArray(l)?l.forEach(function(R){S.resolvers=(0,I.D9)(S.resolvers,R)}):this.resolvers=(0,I.D9)(this.resolvers,l)},w.prototype.setResolvers=function(l){this.resolvers={},this.addResolvers(l)},w.prototype.getResolvers=function(){return this.resolvers||{}},w.prototype.runResolvers=function(l){var S=l.document,R=l.remoteResult,q=l.context,ne=l.variables,se=l.onlyRunForcedResolvers,Ie=se===void 0?!1:se;return(0,d.sH)(this,void 0,void 0,function(){return(0,d.YH)(this,function($e){return S?[2,this.resolveDocument(S,R.data,q,ne,this.fragmentMatcher,Ie).then(function(Le){return(0,d.Cl)((0,d.Cl)({},R),{data:Le.result})})]:[2,R]})})},w.prototype.setFragmentMatcher=function(l){this.fragmentMatcher=l},w.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},w.prototype.clientQuery=function(l){return(0,C.d8)(["client"],l)&&this.resolvers?l:null},w.prototype.serverQuery=function(l){return(0,je.er)(l)},w.prototype.prepareContext=function(l){var S=this.cache;return(0,d.Cl)((0,d.Cl)({},l),{cache:S,getCacheKey:function(R){return S.identify(R)}})},w.prototype.addExportedVariables=function(l,S,R){return S===void 0&&(S={}),R===void 0&&(R={}),(0,d.sH)(this,void 0,void 0,function(){return(0,d.YH)(this,function(q){return l?[2,this.resolveDocument(l,this.buildRootValueFromCache(l,S)||{},this.prepareContext(R),S).then(function(ne){return(0,d.Cl)((0,d.Cl)({},S),ne.exportedVariables)})]:[2,(0,d.Cl)({},S)]})})},w.prototype.shouldForceResolvers=function(l){var S=!1;return(0,A.YR)(l,{Directive:{enter:function(R){if(R.name.value==="client"&&R.arguments&&(S=R.arguments.some(function(q){return q.name.value==="always"&&q.value.kind==="BooleanValue"&&q.value.value===!0}),S))return A.sP}}}),S},w.prototype.buildRootValueFromCache=function(l,S){return this.cache.diff({query:(0,je.zc)(l),variables:S,returnPartialData:!0,optimistic:!1}).result},w.prototype.resolveDocument=function(l,S,R,q,ne,se){return R===void 0&&(R={}),q===void 0&&(q={}),ne===void 0&&(ne=function(){return!0}),se===void 0&&(se=!1),(0,d.sH)(this,void 0,void 0,function(){var Ie,$e,Le,Qe,et,ze,st,bt,At;return(0,d.YH)(this,function(It){return Ie=(0,Se.Vn)(l),$e=(0,Se.zK)(l),Le=(0,cn.JG)($e),Qe=Ie.operation,et=Qe?Qe.charAt(0).toUpperCase()+Qe.slice(1):"Query",ze=this,st=ze.cache,bt=ze.client,At={fragmentMap:Le,context:(0,d.Cl)((0,d.Cl)({},R),{cache:st,client:bt}),variables:q,fragmentMatcher:ne,defaultOperationType:et,exportedVariables:{},onlyRunForcedResolvers:se},[2,this.resolveSelectionSet(Ie.selectionSet,S,At).then(function(wt){return{result:wt,exportedVariables:At.exportedVariables}})]})})},w.prototype.resolveSelectionSet=function(l,S,R){return(0,d.sH)(this,void 0,void 0,function(){var q,ne,se,Ie,$e,Le=this;return(0,d.YH)(this,function(Qe){return q=R.fragmentMap,ne=R.context,se=R.variables,Ie=[S],$e=function(et){return(0,d.sH)(Le,void 0,void 0,function(){var ze,st;return(0,d.YH)(this,function(bt){return(0,C.MS)(et,se)?(0,b.dt)(et)?[2,this.resolveField(et,S,R).then(function(At){var It;typeof At<"u"&&Ie.push((It={},It[(0,b.ue)(et)]=At,It))})]:((0,b.kd)(et)?ze=et:(ze=q[et.name.value],__DEV__?(0,T.V1)(ze,"No fragment named ".concat(et.name.value)):(0,T.V1)(ze,9)),ze&&ze.typeCondition&&(st=ze.typeCondition.name.value,R.fragmentMatcher(S,st,ne))?[2,this.resolveSelectionSet(ze.selectionSet,S,R).then(function(At){Ie.push(At)})]:[2]):[2]})})},[2,Promise.all(l.selections.map($e)).then(function(){return(0,I.IM)(Ie)})]})})},w.prototype.resolveField=function(l,S,R){return(0,d.sH)(this,void 0,void 0,function(){var q,ne,se,Ie,$e,Le,Qe,et,ze,st=this;return(0,d.YH)(this,function(bt){return q=R.variables,ne=l.name.value,se=(0,b.ue)(l),Ie=ne!==se,$e=S[se]||S[ne],Le=Promise.resolve($e),(!R.onlyRunForcedResolvers||this.shouldForceResolvers(l))&&(Qe=S.__typename||R.defaultOperationType,et=this.resolvers&&this.resolvers[Qe],et&&(ze=et[Ie?ne:se],ze&&(Le=Promise.resolve(Nt.withValue(this.cache,ze,[S,(0,b.MB)(l,q),R.context,{field:l,fragmentMap:R.fragmentMap}]))))),[2,Le.then(function(At){if(At===void 0&&(At=$e),l.directives&&l.directives.forEach(function(It){It.name.value==="export"&&It.arguments&&It.arguments.forEach(function(wt){wt.name.value==="as"&&wt.value.kind==="StringValue"&&(R.exportedVariables[wt.value.value]=At)})}),!l.selectionSet||At==null)return At;if(Array.isArray(At))return st.resolveSubSelectedArray(l,At,R);if(l.selectionSet)return st.resolveSelectionSet(l.selectionSet,At,R)})]})})},w.prototype.resolveSubSelectedArray=function(l,S,R){var q=this;return Promise.all(S.map(function(ne){if(ne===null)return null;if(Array.isArray(ne))return q.resolveSubSelectedArray(l,ne,R);if(l.selectionSet)return q.resolveSelectionSet(l.selectionSet,ne,R)}))},w}(),Br=new(Ae.et?WeakMap:Map);function bi(w,l){var S=w[l];typeof S=="function"&&(w[l]=function(){return Br.set(w,(Br.get(w)+1)%1e15),S.apply(this,arguments)})}function Vn(w){w.notifyTimeout&&(clearTimeout(w.notifyTimeout),w.notifyTimeout=void 0)}var Ci=function(){function w(l,S){S===void 0&&(S=l.generateQueryId()),this.queryId=S,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var R=this.cache=l.cache;Br.has(R)||(Br.set(R,0),bi(R,"evict"),bi(R,"modify"),bi(R,"reset"))}return w.prototype.init=function(l){var S=l.networkStatus||vt.p.loading;return this.variables&&this.networkStatus!==vt.p.loading&&!(0,j.L)(this.variables,l.variables)&&(S=vt.p.setVariables),(0,j.L)(l.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:l.document,variables:l.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:S}),l.observableQuery&&this.setObservableQuery(l.observableQuery),l.lastRequestId&&(this.lastRequestId=l.lastRequestId),this},w.prototype.reset=function(){Vn(this),this.lastDiff=void 0,this.dirty=!1},w.prototype.getDiff=function(l){l===void 0&&(l=this.variables);var S=this.getDiffOptions(l);if(this.lastDiff&&(0,j.L)(S,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=l);var R=this.observableQuery;if(R&&R.options.fetchPolicy==="no-cache")return{complete:!1};var q=this.cache.diff(S);return this.updateLastDiff(q,S),q},w.prototype.updateLastDiff=function(l,S){this.lastDiff=l?{diff:l,options:S||this.getDiffOptions()}:void 0},w.prototype.getDiffOptions=function(l){var S;return l===void 0&&(l=this.variables),{query:this.document,variables:l,returnPartialData:!0,optimistic:!0,canonizeResults:(S=this.observableQuery)===null||S===void 0?void 0:S.options.canonizeResults}},w.prototype.setDiff=function(l){var S=this,R=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(l),!this.dirty&&!(0,j.L)(R&&R.result,l&&l.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return S.notify()},0)))},w.prototype.setObservableQuery=function(l){var S=this;l!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=l,l?(l.queryInfo=this,this.listeners.add(this.oqListener=function(){var R=S.getDiff();R.fromOptimisticTransaction?l.observe():Er(l)})):delete this.oqListener)},w.prototype.notify=function(){var l=this;Vn(this),this.shouldNotify()&&this.listeners.forEach(function(S){return S(l)}),this.dirty=!1},w.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,vt.b)(this.networkStatus)&&this.observableQuery){var l=this.observableQuery.options.fetchPolicy;if(l!=="cache-only"&&l!=="cache-and-network")return!1}return!0},w.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=w.prototype.cancel,this.subscriptions.forEach(function(S){return S.unsubscribe()});var l=this.observableQuery;l&&l.stopPolling()}},w.prototype.cancel=function(){},w.prototype.updateWatch=function(l){var S=this;l===void 0&&(l=this.variables);var R=this.observableQuery;if(!(R&&R.options.fetchPolicy==="no-cache")){var q=(0,d.Cl)((0,d.Cl)({},this.getDiffOptions(l)),{watcher:this,callback:function(ne){return S.setDiff(ne)}});(!this.lastWatch||!(0,j.L)(q,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=q))}},w.prototype.resetLastWrite=function(){this.lastWrite=void 0},w.prototype.shouldWrite=function(l,S){var R=this.lastWrite;return!(R&&R.dmCount===Br.get(this.cache)&&(0,j.L)(S,R.variables)&&(0,j.L)(l.data,R.result.data))},w.prototype.markResult=function(l,S,R){var q=this;this.graphQLErrors=(0,pt.E)(l.errors)?l.errors:[],this.reset(),S.fetchPolicy==="no-cache"?this.updateLastDiff({result:l.data,complete:!0},this.getDiffOptions(S.variables)):R!==0&&(Pi(l,S.errorPolicy)?this.cache.performTransaction(function(ne){if(q.shouldWrite(l,S.variables))ne.writeQuery({query:q.document,data:l.data,variables:S.variables,overwrite:R===1}),q.lastWrite={result:l,variables:S.variables,dmCount:Br.get(q.cache)};else if(q.lastDiff&&q.lastDiff.diff.complete){l.data=q.lastDiff.diff.result;return}var se=q.getDiffOptions(S.variables),Ie=ne.diff(se);q.stopped||q.updateWatch(S.variables),q.updateLastDiff(Ie,se),Ie.complete&&(l.data=Ie.result)}):this.lastWrite=void 0)},w.prototype.markReady=function(){return this.networkError=null,this.networkStatus=vt.p.ready},w.prototype.markError=function(l){return this.networkStatus=vt.p.error,this.lastWrite=void 0,this.reset(),l.graphQLErrors&&(this.graphQLErrors=l.graphQLErrors),l.networkError&&(this.networkError=l.networkError),l},w}();function Pi(w,l){l===void 0&&(l="none");var S=l==="ignore"||l==="all",R=!(0,le.t)(w);return!R&&S&&w.data&&(R=!0),R}var Di=Object.prototype.hasOwnProperty,Rn=function(){function w(l){var S=l.cache,R=l.link,q=l.defaultOptions,ne=l.queryDeduplication,se=ne===void 0?!1:ne,Ie=l.onBroadcast,$e=l.ssrMode,Le=$e===void 0?!1:$e,Qe=l.clientAwareness,et=Qe===void 0?{}:Qe,ze=l.localState,st=l.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Ae.et?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=S,this.link=R,this.defaultOptions=q||Object.create(null),this.queryDeduplication=se,this.clientAwareness=et,this.localState=ze||new Yr({cache:S}),this.ssrMode=Le,this.assumeImmutableResults=!!st,(this.onBroadcast=Ie)&&(this.mutationStore=Object.create(null))}return w.prototype.stop=function(){var l=this;this.queries.forEach(function(S,R){l.stopQueryNoBroadcast(R)}),this.cancelPendingFetches(__DEV__?new T.zU("QueryManager stopped while query was in flight"):new T.zU(11))},w.prototype.cancelPendingFetches=function(l){this.fetchCancelFns.forEach(function(S){return S(l)}),this.fetchCancelFns.clear()},w.prototype.mutate=function(l){var S,R,q=l.mutation,ne=l.variables,se=l.optimisticResponse,Ie=l.updateQueries,$e=l.refetchQueries,Le=$e===void 0?[]:$e,Qe=l.awaitRefetchQueries,et=Qe===void 0?!1:Qe,ze=l.update,st=l.onQueryUpdated,bt=l.fetchPolicy,At=bt===void 0?((S=this.defaultOptions.mutate)===null||S===void 0?void 0:S.fetchPolicy)||"network-only":bt,It=l.errorPolicy,wt=It===void 0?((R=this.defaultOptions.mutate)===null||R===void 0?void 0:R.errorPolicy)||"none":It,ur=l.keepRootFields,Ct=l.context;return(0,d.sH)(this,void 0,void 0,function(){var Yt,pr,or;return(0,d.YH)(this,function(ir){switch(ir.label){case 0:return __DEV__?(0,T.V1)(q,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,T.V1)(q,12),__DEV__?(0,T.V1)(At==="network-only"||At==="no-cache","Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,T.V1)(At==="network-only"||At==="no-cache",13),Yt=this.generateMutationId(),q=this.transform(q).document,ne=this.getVariables(q,ne),this.transform(q).hasClientExports?[4,this.localState.addExportedVariables(q,ne,Ct)]:[3,2];case 1:ne=ir.sent(),ir.label=2;case 2:return pr=this.mutationStore&&(this.mutationStore[Yt]={mutation:q,variables:ne,loading:!0,error:null}),se&&this.markMutationOptimistic(se,{mutationId:Yt,document:q,variables:ne,fetchPolicy:At,errorPolicy:wt,context:Ct,updateQueries:Ie,update:ze,keepRootFields:ur}),this.broadcastQueries(),or=this,[2,new Promise(function(en,xi){return(0,J.x)(or.getObservableFromLink(q,(0,d.Cl)((0,d.Cl)({},Ct),{optimisticResponse:se}),ne,!1),function(An){if((0,le.t)(An)&&wt==="none")throw new ht.K({graphQLErrors:An.errors});pr&&(pr.loading=!1,pr.error=null);var ei=(0,d.Cl)({},An);return typeof Le=="function"&&(Le=Le(ei)),wt==="ignore"&&(0,le.t)(ei)&&delete ei.errors,or.markMutationResult({mutationId:Yt,result:ei,document:q,variables:ne,fetchPolicy:At,errorPolicy:wt,context:Ct,update:ze,updateQueries:Ie,awaitRefetchQueries:et,refetchQueries:Le,removeOptimistic:se?Yt:void 0,onQueryUpdated:st,keepRootFields:ur})}).subscribe({next:function(An){or.broadcastQueries(),en(An)},error:function(An){pr&&(pr.loading=!1,pr.error=An),se&&or.cache.removeOptimistic(Yt),or.broadcastQueries(),xi(An instanceof ht.K?An:new ht.K({networkError:An}))}})})]}})})},w.prototype.markMutationResult=function(l,S){var R=this;S===void 0&&(S=this.cache);var q=l.result,ne=[],se=l.fetchPolicy==="no-cache";if(!se&&Pi(q,l.errorPolicy)){ne.push({result:q.data,dataId:"ROOT_MUTATION",query:l.document,variables:l.variables});var Ie=l.updateQueries;Ie&&this.queries.forEach(function(Le,Qe){var et=Le.observableQuery,ze=et&&et.queryName;if(!(!ze||!Di.call(Ie,ze))){var st=Ie[ze],bt=R.queries.get(Qe),At=bt.document,It=bt.variables,wt=S.diff({query:At,variables:It,returnPartialData:!0,optimistic:!1}),ur=wt.result,Ct=wt.complete;if(Ct&&ur){var Yt=st(ur,{mutationResult:q,queryName:At&&(0,Se.n4)(At)||void 0,queryVariables:It});Yt&&ne.push({result:Yt,dataId:"ROOT_QUERY",query:At,variables:It})}}})}if(ne.length>0||l.refetchQueries||l.update||l.onQueryUpdated||l.removeOptimistic){var $e=[];if(this.refetchQueries({updateCache:function(Le){se||ne.forEach(function(ze){return Le.write(ze)});var Qe=l.update;if(Qe){if(!se){var et=Le.diff({id:"ROOT_MUTATION",query:R.transform(l.document).asQuery,variables:l.variables,optimistic:!1,returnPartialData:!0});et.complete&&(q=(0,d.Cl)((0,d.Cl)({},q),{data:et.result}))}Qe(Le,q,{context:l.context,variables:l.variables})}!se&&!l.keepRootFields&&Le.modify({id:"ROOT_MUTATION",fields:function(ze,st){var bt=st.fieldName,At=st.DELETE;return bt==="__typename"?ze:At}})},include:l.refetchQueries,optimistic:!1,removeOptimistic:l.removeOptimistic,onQueryUpdated:l.onQueryUpdated||null}).forEach(function(Le){return $e.push(Le)}),l.awaitRefetchQueries||l.onQueryUpdated)return Promise.all($e).then(function(){return q})}return Promise.resolve(q)},w.prototype.markMutationOptimistic=function(l,S){var R=this,q=typeof l=="function"?l(S.variables):l;return this.cache.recordOptimisticTransaction(function(ne){try{R.markMutationResult((0,d.Cl)((0,d.Cl)({},S),{result:{data:q}}),ne)}catch(se){__DEV__&&T.V1.error(se)}},S.mutationId)},w.prototype.fetchQuery=function(l,S,R){return this.fetchQueryObservable(l,S,R).promise},w.prototype.getQueryStore=function(){var l=Object.create(null);return this.queries.forEach(function(S,R){l[R]={variables:S.variables,networkStatus:S.networkStatus,networkError:S.networkError,graphQLErrors:S.graphQLErrors}}),l},w.prototype.resetErrors=function(l){var S=this.queries.get(l);S&&(S.networkError=void 0,S.graphQLErrors=[])},w.prototype.transform=function(l){var S=this.transformCache;if(!S.has(l)){var R=this.cache.transformDocument(l),q=(0,je.hX)(this.cache.transformForLink(R)),ne=this.localState.clientQuery(R),se=q&&this.localState.serverQuery(q),Ie={document:R,hasClientExports:(0,C.f2)(R),hasForcedResolvers:this.localState.shouldForceResolvers(R),clientQuery:ne,serverQuery:se,defaultVars:(0,Se.wY)((0,Se.Vu)(R)),asQuery:(0,d.Cl)((0,d.Cl)({},R),{definitions:R.definitions.map(function(Le){return Le.kind==="OperationDefinition"&&Le.operation!=="query"?(0,d.Cl)((0,d.Cl)({},Le),{operation:"query"}):Le})})},$e=function(Le){Le&&!S.has(Le)&&S.set(Le,Ie)};$e(l),$e(R),$e(ne),$e(se)}return S.get(l)},w.prototype.getVariables=function(l,S){return(0,d.Cl)((0,d.Cl)({},this.transform(l).defaultVars),S)},w.prototype.watchQuery=function(l){l=(0,d.Cl)((0,d.Cl)({},l),{variables:this.getVariables(l.query,l.variables)}),typeof l.notifyOnNetworkStatusChange>"u"&&(l.notifyOnNetworkStatusChange=!1);var S=new Ci(this),R=new Rr({queryManager:this,queryInfo:S,options:l});return this.queries.set(R.queryId,S),S.init({document:R.query,observableQuery:R,variables:R.variables}),R},w.prototype.query=function(l,S){var R=this;return S===void 0&&(S=this.generateQueryId()),__DEV__?(0,T.V1)(l.query,"query option is required. You must specify your GraphQL document in the query option."):(0,T.V1)(l.query,14),__DEV__?(0,T.V1)(l.query.kind==="Document",'You must wrap the query string in a "gql" tag.'):(0,T.V1)(l.query.kind==="Document",15),__DEV__?(0,T.V1)(!l.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,T.V1)(!l.returnPartialData,16),__DEV__?(0,T.V1)(!l.pollInterval,"pollInterval option only supported on watchQuery."):(0,T.V1)(!l.pollInterval,17),this.fetchQuery(S,l).finally(function(){return R.stopQuery(S)})},w.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},w.prototype.generateRequestId=function(){return this.requestIdCounter++},w.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},w.prototype.stopQueryInStore=function(l){this.stopQueryInStoreNoBroadcast(l),this.broadcastQueries()},w.prototype.stopQueryInStoreNoBroadcast=function(l){var S=this.queries.get(l);S&&S.stop()},w.prototype.clearStore=function(l){return l===void 0&&(l={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new T.zU("Store reset while query was in flight (not completed in link chain)"):new T.zU(18)),this.queries.forEach(function(S){S.observableQuery?S.networkStatus=vt.p.loading:S.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(l)},w.prototype.getObservableQueries=function(l){var S=this;l===void 0&&(l="active");var R=new Map,q=new Map,ne=new Set;return Array.isArray(l)&&l.forEach(function(se){typeof se=="string"?q.set(se,!1):(0,b.Kc)(se)?q.set(S.transform(se).document,!1):(0,Ne.U)(se)&&se.query&&ne.add(se)}),this.queries.forEach(function(se,Ie){var $e=se.observableQuery,Le=se.document;if($e){if(l==="all"){R.set(Ie,$e);return}var Qe=$e.queryName,et=$e.options.fetchPolicy;if(et==="standby"||l==="active"&&!$e.hasObservers())return;(l==="active"||Qe&&q.has(Qe)||Le&&q.has(Le))&&(R.set(Ie,$e),Qe&&q.set(Qe,!0),Le&&q.set(Le,!0))}}),ne.size&&ne.forEach(function(se){var Ie=(0,dt.v)("legacyOneTimeQuery"),$e=S.getQuery(Ie).init({document:se.query,variables:se.variables}),Le=new Rr({queryManager:S,queryInfo:$e,options:(0,d.Cl)((0,d.Cl)({},se),{fetchPolicy:"network-only"})});(0,T.V1)(Le.queryId===Ie),$e.setObservableQuery(Le),R.set(Ie,Le)}),__DEV__&&q.size&&q.forEach(function(se,Ie){se||__DEV__&&T.V1.warn("Unknown query ".concat(typeof Ie=="string"?"named ":"").concat(JSON.stringify(Ie,null,2)," requested in refetchQueries options.include array"))}),R},w.prototype.reFetchObservableQueries=function(l){var S=this;l===void 0&&(l=!1);var R=[];return this.getObservableQueries(l?"all":"active").forEach(function(q,ne){var se=q.options.fetchPolicy;q.resetLastResults(),(l||se!=="standby"&&se!=="cache-only")&&R.push(q.refetch()),S.getQuery(ne).setDiff(null)}),this.broadcastQueries(),Promise.all(R)},w.prototype.setObservableQuery=function(l){this.getQuery(l.queryId).setObservableQuery(l)},w.prototype.startGraphQLSubscription=function(l){var S=this,R=l.query,q=l.fetchPolicy,ne=l.errorPolicy,se=l.variables,Ie=l.context,$e=Ie===void 0?{}:Ie;R=this.transform(R).document,se=this.getVariables(R,se);var Le=function(et){return S.getObservableFromLink(R,$e,et).map(function(ze){if(q!=="no-cache"&&(Pi(ze,ne)&&S.cache.write({query:R,result:ze.data,dataId:"ROOT_SUBSCRIPTION",variables:et}),S.broadcastQueries()),(0,le.t)(ze))throw new ht.K({graphQLErrors:ze.errors});return ze})};if(this.transform(R).hasClientExports){var Qe=this.localState.addExportedVariables(R,se,$e).then(Le);return new y.c(function(et){var ze=null;return Qe.then(function(st){return ze=st.subscribe(et)},et.error),function(){return ze&&ze.unsubscribe()}})}return Le(se)},w.prototype.stopQuery=function(l){this.stopQueryNoBroadcast(l),this.broadcastQueries()},w.prototype.stopQueryNoBroadcast=function(l){this.stopQueryInStoreNoBroadcast(l),this.removeQuery(l)},w.prototype.removeQuery=function(l){this.fetchCancelFns.delete(l),this.queries.has(l)&&(this.getQuery(l).stop(),this.queries.delete(l))},w.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(l){return l.notify()})},w.prototype.getLocalState=function(){return this.localState},w.prototype.getObservableFromLink=function(l,S,R,q){var ne=this,se;q===void 0&&(q=(se=S?.queryDeduplication)!==null&&se!==void 0?se:this.queryDeduplication);var Ie,$e=this.transform(l).serverQuery;if($e){var Le=this,Qe=Le.inFlightLinkObservables,et=Le.link,ze={query:$e,variables:R,operationName:(0,Se.n4)($e)||void 0,context:this.prepareContext((0,d.Cl)((0,d.Cl)({},S),{forceFetch:!q}))};if(S=ze.context,q){var st=Qe.get($e)||new Map;Qe.set($e,st);var bt=Pe(R);if(Ie=st.get(bt),!Ie){var At=new Xe.E([(0,H.g)(et,ze)]);st.set(bt,Ie=At),At.cleanup(function(){st.delete(bt)&&st.size<1&&Qe.delete($e)})}}else Ie=new Xe.E([(0,H.g)(et,ze)])}else Ie=new Xe.E([y.c.of({data:{}})]),S=this.prepareContext(S);var It=this.transform(l).clientQuery;return It&&(Ie=(0,J.x)(Ie,function(wt){return ne.localState.runResolvers({document:It,remoteResult:wt,context:S,variables:R})})),Ie},w.prototype.getResultsFromLink=function(l,S,R){var q=l.lastRequestId=this.generateRequestId();return(0,J.x)(this.getObservableFromLink(l.document,R.context,R.variables),function(ne){var se=(0,pt.E)(ne.errors);if(q>=l.lastRequestId){if(se&&R.errorPolicy==="none")throw l.markError(new ht.K({graphQLErrors:ne.errors}));l.markResult(ne,R,S),l.markReady()}var Ie={data:ne.data,loading:!1,networkStatus:vt.p.ready};return se&&R.errorPolicy!=="ignore"&&(Ie.errors=ne.errors,Ie.networkStatus=vt.p.error),Ie},function(ne){var se=(0,ht.M)(ne)?ne:new ht.K({networkError:ne});throw q>=l.lastRequestId&&l.markError(se),se})},w.prototype.fetchQueryObservable=function(l,S,R){var q=this;R===void 0&&(R=vt.p.loading);var ne=this.transform(S.query).document,se=this.getVariables(ne,S.variables),Ie=this.getQuery(l),$e=this.defaultOptions.watchQuery,Le=S.fetchPolicy,Qe=Le===void 0?$e&&$e.fetchPolicy||"cache-first":Le,et=S.errorPolicy,ze=et===void 0?$e&&$e.errorPolicy||"none":et,st=S.returnPartialData,bt=st===void 0?!1:st,At=S.notifyOnNetworkStatusChange,It=At===void 0?!1:At,wt=S.context,ur=wt===void 0?{}:wt,Ct=Object.assign({},S,{query:ne,variables:se,fetchPolicy:Qe,errorPolicy:ze,returnPartialData:bt,notifyOnNetworkStatusChange:It,context:ur}),Yt=function(ir){Ct.variables=ir;var en=q.fetchQueryByPolicy(Ie,Ct,R);return Ct.fetchPolicy!=="standby"&&en.length>0&&Ie.observableQuery&&Ie.observableQuery.applyNextFetchPolicy("after-fetch",S),en},pr=function(){return q.fetchCancelFns.delete(l)};this.fetchCancelFns.set(l,function(ir){pr(),setTimeout(function(){return or.cancel(ir)})});var or=new Xe.E(this.transform(Ct.query).hasClientExports?this.localState.addExportedVariables(Ct.query,Ct.variables,Ct.context).then(Yt):Yt(Ct.variables));return or.promise.then(pr,pr),or},w.prototype.refetchQueries=function(l){var S=this,R=l.updateCache,q=l.include,ne=l.optimistic,se=ne===void 0?!1:ne,Ie=l.removeOptimistic,$e=Ie===void 0?se?(0,dt.v)("refetchQueries"):void 0:Ie,Le=l.onQueryUpdated,Qe=new Map;q&&this.getObservableQueries(q).forEach(function(ze,st){Qe.set(st,{oq:ze,lastDiff:S.getQuery(st).getDiff()})});var et=new Map;return R&&this.cache.batch({update:R,optimistic:se&&$e||!1,removeOptimistic:$e,onWatchUpdated:function(ze,st,bt){var At=ze.watcher instanceof Ci&&ze.watcher.observableQuery;if(At){if(Le){Qe.delete(At.queryId);var It=Le(At,st,bt);return It===!0&&(It=At.refetch()),It!==!1&&et.set(At,It),It}Le!==null&&Qe.set(At.queryId,{oq:At,lastDiff:bt,diff:st})}}}),Qe.size&&Qe.forEach(function(ze,st){var bt=ze.oq,At=ze.lastDiff,It=ze.diff,wt;if(Le){if(!It){var ur=bt.queryInfo;ur.reset(),It=ur.getDiff()}wt=Le(bt,It,At)}(!Le||wt===!0)&&(wt=bt.refetch()),wt!==!1&&et.set(bt,wt),st.indexOf("legacyOneTimeQuery")>=0&&S.stopQueryNoBroadcast(st)}),$e&&this.cache.removeOptimistic($e),et},w.prototype.fetchQueryByPolicy=function(l,S,R){var q=this,ne=S.query,se=S.variables,Ie=S.fetchPolicy,$e=S.refetchWritePolicy,Le=S.errorPolicy,Qe=S.returnPartialData,et=S.context,ze=S.notifyOnNetworkStatusChange,st=l.networkStatus;l.init({document:this.transform(ne).document,variables:se,networkStatus:R});var bt=function(){return l.getDiff(se)},At=function(Yt,pr){pr===void 0&&(pr=l.networkStatus||vt.p.loading);var or=Yt.result;__DEV__&&!Qe&&!(0,j.L)(or,{})&&$r(Yt.missing);var ir=function(en){return y.c.of((0,d.Cl)({data:en,loading:(0,vt.b)(pr),networkStatus:pr},Yt.complete?null:{partial:!0}))};return or&&q.transform(ne).hasForcedResolvers?q.localState.runResolvers({document:ne,remoteResult:{data:or},context:et,variables:se,onlyRunForcedResolvers:!0}).then(function(en){return ir(en.data||void 0)}):ir(or)},It=Ie==="no-cache"?0:R===vt.p.refetch&&$e!=="merge"?1:2,wt=function(){return q.getResultsFromLink(l,It,{variables:se,context:et,fetchPolicy:Ie,errorPolicy:Le})},ur=ze&&typeof st=="number"&&st!==R&&(0,vt.b)(R);switch(Ie){default:case"cache-first":{var Ct=bt();return Ct.complete?[At(Ct,l.markReady())]:Qe||ur?[At(Ct),wt()]:[wt()]}case"cache-and-network":{var Ct=bt();return Ct.complete||Qe||ur?[At(Ct),wt()]:[wt()]}case"cache-only":return[At(bt(),l.markReady())];case"network-only":return ur?[At(bt()),wt()]:[wt()];case"no-cache":return ur?[At(l.getDiff()),wt()]:[wt()];case"standby":return[]}},w.prototype.getQuery=function(l){return l&&!this.queries.has(l)&&this.queries.set(l,new Ci(this,l)),this.queries.get(l)},w.prototype.prepareContext=function(l){l===void 0&&(l={});var S=this.localState.prepareContext(l);return(0,d.Cl)((0,d.Cl)({},S),{clientAwareness:this.clientAwareness})},w}(),Wi=p(1507),Ms=!1,qo=function(){function w(l){var S=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var R=l.uri,q=l.credentials,ne=l.headers,se=l.cache,Ie=l.ssrMode,$e=Ie===void 0?!1:Ie,Le=l.ssrForceFetchDelay,Qe=Le===void 0?0:Le,et=l.connectToDevTools,ze=et===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&__DEV__:et,st=l.queryDeduplication,bt=st===void 0?!0:st,At=l.defaultOptions,It=l.assumeImmutableResults,wt=It===void 0?!1:It,ur=l.resolvers,Ct=l.typeDefs,Yt=l.fragmentMatcher,pr=l.name,or=l.version,ir=l.link;if(ir||(ir=R?new ce({uri:R,credentials:q,headers:ne}):D.C.empty()),!se)throw __DEV__?new T.zU(`To initialize Apollo Client, you must specify a 'cache' property in the options object.
74
- For more information, please visit: https://go.apollo.dev/c/docs`):new T.zU(7);if(this.link=ir,this.cache=se,this.disableNetworkFetches=$e||Qe>0,this.queryDeduplication=bt,this.defaultOptions=At||Object.create(null),this.typeDefs=Ct,Qe&&setTimeout(function(){return S.disableNetworkFetches=!1},Qe),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),ze&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!Ms&&__DEV__&&(Ms=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var en=window.navigator,xi=en&&en.userAgent,An=void 0;typeof xi=="string"&&(xi.indexOf("Chrome/")>-1?An="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":xi.indexOf("Firefox/")>-1&&(An="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),An&&__DEV__&&T.V1.log("Download the Apollo DevTools for a better development experience: "+An)}this.version=V,this.localState=new Yr({cache:se,client:this,resolvers:ur,fragmentMatcher:Yt}),this.queryManager=new Rn({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:bt,ssrMode:$e,clientAwareness:{name:pr,version:or},localState:this.localState,assumeImmutableResults:wt,onBroadcast:ze?function(){S.devToolsHookCb&&S.devToolsHookCb({action:{},state:{queries:S.queryManager.getQueryStore(),mutations:S.queryManager.mutationStore||{}},dataWithOptimisticResults:S.cache.extract(!0)})}:void 0})}return w.prototype.stop=function(){this.queryManager.stop()},w.prototype.watchQuery=function(l){return this.defaultOptions.watchQuery&&(l=(0,Wi.l)(this.defaultOptions.watchQuery,l)),this.disableNetworkFetches&&(l.fetchPolicy==="network-only"||l.fetchPolicy==="cache-and-network")&&(l=(0,d.Cl)((0,d.Cl)({},l),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(l)},w.prototype.query=function(l){return this.defaultOptions.query&&(l=(0,Wi.l)(this.defaultOptions.query,l)),__DEV__?(0,T.V1)(l.fetchPolicy!=="cache-and-network","The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,T.V1)(l.fetchPolicy!=="cache-and-network",8),this.disableNetworkFetches&&l.fetchPolicy==="network-only"&&(l=(0,d.Cl)((0,d.Cl)({},l),{fetchPolicy:"cache-first"})),this.queryManager.query(l)},w.prototype.mutate=function(l){return this.defaultOptions.mutate&&(l=(0,Wi.l)(this.defaultOptions.mutate,l)),this.queryManager.mutate(l)},w.prototype.subscribe=function(l){return this.queryManager.startGraphQLSubscription(l)},w.prototype.readQuery=function(l,S){return S===void 0&&(S=!1),this.cache.readQuery(l,S)},w.prototype.readFragment=function(l,S){return S===void 0&&(S=!1),this.cache.readFragment(l,S)},w.prototype.writeQuery=function(l){this.cache.writeQuery(l),this.queryManager.broadcastQueries()},w.prototype.writeFragment=function(l){this.cache.writeFragment(l),this.queryManager.broadcastQueries()},w.prototype.__actionHookForDevTools=function(l){this.devToolsHookCb=l},w.prototype.__requestRaw=function(l){return(0,H.g)(this.link,l)},w.prototype.resetStore=function(){var l=this;return Promise.resolve().then(function(){return l.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(l.resetStoreCallbacks.map(function(S){return S()}))}).then(function(){return l.reFetchObservableQueries()})},w.prototype.clearStore=function(){var l=this;return Promise.resolve().then(function(){return l.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(l.clearStoreCallbacks.map(function(S){return S()}))})},w.prototype.onResetStore=function(l){var S=this;return this.resetStoreCallbacks.push(l),function(){S.resetStoreCallbacks=S.resetStoreCallbacks.filter(function(R){return R!==l})}},w.prototype.onClearStore=function(l){var S=this;return this.clearStoreCallbacks.push(l),function(){S.clearStoreCallbacks=S.clearStoreCallbacks.filter(function(R){return R!==l})}},w.prototype.reFetchObservableQueries=function(l){return this.queryManager.reFetchObservableQueries(l)},w.prototype.refetchQueries=function(l){var S=this.queryManager.refetchQueries(l),R=[],q=[];S.forEach(function(se,Ie){R.push(Ie),q.push(se)});var ne=Promise.all(q);return ne.queries=R,ne.results=q,ne.catch(function(se){__DEV__&&T.V1.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(se))}),ne},w.prototype.getObservableQueries=function(l){return l===void 0&&(l="active"),this.queryManager.getObservableQueries(l)},w.prototype.extract=function(l){return this.cache.extract(l)},w.prototype.restore=function(l){return this.cache.restore(l)},w.prototype.addResolvers=function(l){this.localState.addResolvers(l)},w.prototype.setResolvers=function(l){this.localState.setResolvers(l)},w.prototype.getResolvers=function(){return this.localState.getResolvers()},w.prototype.setLocalStateFragmentMatcher=function(l){this.localState.setFragmentMatcher(l)},w.prototype.setLink=function(l){this.link=this.queryManager.link=l},w}(),_o;(function(w){})(_o||(_o={}));var Ko=function(){function w(){this.getFragmentDoc=Ot(cn.ct)}return w.prototype.batch=function(l){var S=this,R=typeof l.optimistic=="string"?l.optimistic:l.optimistic===!1?null:void 0,q;return this.performTransaction(function(){return q=l.update(S)},R),q},w.prototype.recordOptimisticTransaction=function(l,S){this.performTransaction(l,S)},w.prototype.transformDocument=function(l){return l},w.prototype.identify=function(l){},w.prototype.gc=function(){return[]},w.prototype.modify=function(l){return!1},w.prototype.transformForLink=function(l){return l},w.prototype.readQuery=function(l,S){return S===void 0&&(S=!!l.optimistic),this.read((0,d.Cl)((0,d.Cl)({},l),{rootId:l.id||"ROOT_QUERY",optimistic:S}))},w.prototype.readFragment=function(l,S){return S===void 0&&(S=!!l.optimistic),this.read((0,d.Cl)((0,d.Cl)({},l),{query:this.getFragmentDoc(l.fragment,l.fragmentName),rootId:l.id,optimistic:S}))},w.prototype.writeQuery=function(l){var S=l.id,R=l.data,q=(0,d.Tt)(l,["id","data"]);return this.write(Object.assign(q,{dataId:S||"ROOT_QUERY",result:R}))},w.prototype.writeFragment=function(l){var S=l.id,R=l.data,q=l.fragment,ne=l.fragmentName,se=(0,d.Tt)(l,["id","data","fragment","fragmentName"]);return this.write(Object.assign(se,{query:this.getFragmentDoc(q,ne),dataId:S,result:R}))},w.prototype.updateQuery=function(l,S){return this.batch({update:function(R){var q=R.readQuery(l),ne=S(q);return ne==null?q:(R.writeQuery((0,d.Cl)((0,d.Cl)({},l),{data:ne})),ne)}})},w.prototype.updateFragment=function(l,S){return this.batch({update:function(R){var q=R.readFragment(l),ne=S(q);return ne==null?q:(R.writeFragment((0,d.Cl)((0,d.Cl)({},l),{data:ne})),ne)}})},w}(),po=function(w){(0,d.C6)(l,w);function l(S,R,q,ne){var se=w.call(this,S)||this;return se.message=S,se.path=R,se.query=q,se.variables=ne,se.__proto__=l.prototype,se}return l}(Error),Wo=p(7236),pa=Object.create(null),ho=function(){return pa},Qo=Object.create(null),ha=function(){function w(l,S){var R=this;this.policies=l,this.group=S,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(q,ne){return(0,Wo.G)((0,b.A_)(q)?R.get(q.__ref,ne):q&&q[ne])},this.canRead=function(q){return(0,b.A_)(q)?R.has(q.__ref):typeof q=="object"},this.toReference=function(q,ne){if(typeof q=="string")return(0,b.WU)(q);if((0,b.A_)(q))return q;var se=R.policies.identify(q)[0];if(se){var Ie=(0,b.WU)(se);return ne&&R.merge(se,q),Ie}}}return w.prototype.toObject=function(){return(0,d.Cl)({},this.data)},w.prototype.has=function(l){return this.lookup(l,!0)!==void 0},w.prototype.get=function(l,S){if(this.group.depend(l,S),k.call(this.data,l)){var R=this.data[l];if(R&&k.call(R,S))return R[S]}if(S==="__typename"&&k.call(this.policies.rootTypenamesById,l))return this.policies.rootTypenamesById[l];if(this instanceof wi)return this.parent.get(l,S)},w.prototype.lookup=function(l,S){if(S&&this.group.depend(l,"__exists"),k.call(this.data,l))return this.data[l];if(this instanceof wi)return this.parent.lookup(l,S);if(this.policies.rootTypenamesById[l])return Object.create(null)},w.prototype.merge=function(l,S){var R=this,q;(0,b.A_)(l)&&(l=l.__ref),(0,b.A_)(S)&&(S=S.__ref);var ne=typeof l=="string"?this.lookup(q=l):l,se=typeof S=="string"?this.lookup(q=S):S;if(!!se){__DEV__?(0,T.V1)(typeof q=="string","store.merge expects a string ID"):(0,T.V1)(typeof q=="string",1);var Ie=new I.ZI(Na).merge(ne,se);if(this.data[q]=Ie,Ie!==ne&&(delete this.refs[q],this.group.caching)){var $e=Object.create(null);ne||($e.__exists=1),Object.keys(se).forEach(function(Le){if(!ne||ne[Le]!==Ie[Le]){$e[Le]=1;var Qe=z(Le);Qe!==Le&&!R.policies.hasKeyArgs(Ie.__typename,Qe)&&($e[Qe]=1),Ie[Le]===void 0&&!(R instanceof wi)&&delete Ie[Le]}}),$e.__typename&&!(ne&&ne.__typename)&&this.policies.rootTypenamesById[q]===Ie.__typename&&delete $e.__typename,Object.keys($e).forEach(function(Le){return R.group.dirty(q,Le)})}}},w.prototype.modify=function(l,S){var R=this,q=this.lookup(l);if(q){var ne=Object.create(null),se=!1,Ie=!0,$e={DELETE:pa,INVALIDATE:Qo,isReference:b.A_,toReference:this.toReference,canRead:this.canRead,readField:function(Le,Qe){return R.policies.readField(typeof Le=="string"?{fieldName:Le,from:Qe||(0,b.WU)(l)}:Le,{store:R})}};if(Object.keys(q).forEach(function(Le){var Qe=z(Le),et=q[Le];if(et!==void 0){var ze=typeof S=="function"?S:S[Le]||S[Qe];if(ze){var st=ze===ho?pa:ze((0,Wo.G)(et),(0,d.Cl)((0,d.Cl)({},$e),{fieldName:Qe,storeFieldName:Le,storage:R.getStorage(l,Le)}));st===Qo?R.group.dirty(l,Le):(st===pa&&(st=void 0),st!==et&&(ne[Le]=st,se=!0,et=st))}et!==void 0&&(Ie=!1)}}),se)return this.merge(l,ne),Ie&&(this instanceof wi?this.data[l]=void 0:delete this.data[l],this.group.dirty(l,"__exists")),!0}return!1},w.prototype.delete=function(l,S,R){var q,ne=this.lookup(l);if(ne){var se=this.getFieldValue(ne,"__typename"),Ie=S&&R?this.policies.getStoreFieldName({typename:se,fieldName:S,args:R}):S;return this.modify(l,Ie?(q={},q[Ie]=ho,q):ho)}return!1},w.prototype.evict=function(l,S){var R=!1;return l.id&&(k.call(this.data,l.id)&&(R=this.delete(l.id,l.fieldName,l.args)),this instanceof wi&&this!==S&&(R=this.parent.evict(l,S)||R),(l.fieldName||R)&&this.group.dirty(l.id,l.fieldName||"__exists")),R},w.prototype.clear=function(){this.replace(null)},w.prototype.extract=function(){var l=this,S=this.toObject(),R=[];return this.getRootIdSet().forEach(function(q){k.call(l.policies.rootTypenamesById,q)||R.push(q)}),R.length&&(S.__META={extraRootIds:R.sort()}),S},w.prototype.replace=function(l){var S=this;if(Object.keys(this.data).forEach(function(ne){l&&k.call(l,ne)||S.delete(ne)}),l){var R=l.__META,q=(0,d.Tt)(l,["__META"]);Object.keys(q).forEach(function(ne){S.merge(ne,q[ne])}),R&&R.extraRootIds.forEach(this.retain,this)}},w.prototype.retain=function(l){return this.rootIds[l]=(this.rootIds[l]||0)+1},w.prototype.release=function(l){if(this.rootIds[l]>0){var S=--this.rootIds[l];return S||delete this.rootIds[l],S}return 0},w.prototype.getRootIdSet=function(l){return l===void 0&&(l=new Set),Object.keys(this.rootIds).forEach(l.add,l),this instanceof wi?this.parent.getRootIdSet(l):Object.keys(this.policies.rootTypenamesById).forEach(l.add,l),l},w.prototype.gc=function(){var l=this,S=this.getRootIdSet(),R=this.toObject();S.forEach(function(se){k.call(R,se)&&(Object.keys(l.findChildRefIds(se)).forEach(S.add,S),delete R[se])});var q=Object.keys(R);if(q.length){for(var ne=this;ne instanceof wi;)ne=ne.parent;q.forEach(function(se){return ne.delete(se)})}return q},w.prototype.findChildRefIds=function(l){if(!k.call(this.refs,l)){var S=this.refs[l]=Object.create(null),R=this.data[l];if(!R)return S;var q=new Set([R]);q.forEach(function(ne){(0,b.A_)(ne)&&(S[ne.__ref]=!0),(0,Ne.U)(ne)&&Object.keys(ne).forEach(function(se){var Ie=ne[se];(0,Ne.U)(Ie)&&q.add(Ie)})})}return this.refs[l]},w.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},w}(),zo=function(){function w(l,S){S===void 0&&(S=null),this.caching=l,this.parent=S,this.d=null,this.resetCaching()}return w.prototype.resetCaching=function(){this.d=this.caching?nt():null,this.keyMaker=new we(Ae.et)},w.prototype.depend=function(l,S){if(this.d){this.d(Is(l,S));var R=z(S);R!==S&&this.d(Is(l,R)),this.parent&&this.parent.depend(l,S)}},w.prototype.dirty=function(l,S){this.d&&this.d.dirty(Is(l,S),S==="__exists"?"forget":"setDirty")},w}();function Is(w,l){return l+"#"+w}function So(w,l){Eo(w)&&w.group.depend(l,"__exists")}(function(w){var l=function(S){(0,d.C6)(R,S);function R(q){var ne=q.policies,se=q.resultCaching,Ie=se===void 0?!0:se,$e=q.seed,Le=S.call(this,ne,new zo(Ie))||this;return Le.stump=new Ka(Le),Le.storageTrie=new we(Ae.et),$e&&Le.replace($e),Le}return R.prototype.addLayer=function(q,ne){return this.stump.addLayer(q,ne)},R.prototype.removeLayer=function(){return this},R.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},R}(w);w.Root=l})(ha||(ha={}));var wi=function(w){(0,d.C6)(l,w);function l(S,R,q,ne){var se=w.call(this,R.policies,ne)||this;return se.id=S,se.parent=R,se.replay=q,se.group=ne,q(se),se}return l.prototype.addLayer=function(S,R){return new l(S,this,R,this.group)},l.prototype.removeLayer=function(S){var R=this,q=this.parent.removeLayer(S);return S===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(ne){var se=R.data[ne],Ie=q.lookup(ne);Ie?se?se!==Ie&&Object.keys(se).forEach(function($e){(0,j.L)(se[$e],Ie[$e])||R.group.dirty(ne,$e)}):(R.group.dirty(ne,"__exists"),Object.keys(Ie).forEach(function($e){R.group.dirty(ne,$e)})):R.delete(ne)}),q):q===this.parent?this:q.addLayer(this.id,this.replay)},l.prototype.toObject=function(){return(0,d.Cl)((0,d.Cl)({},this.parent.toObject()),this.data)},l.prototype.findChildRefIds=function(S){var R=this.parent.findChildRefIds(S);return k.call(this.data,S)?(0,d.Cl)((0,d.Cl)({},R),w.prototype.findChildRefIds.call(this,S)):R},l.prototype.getStorage=function(){for(var S=this.parent;S.parent;)S=S.parent;return S.getStorage.apply(S,arguments)},l}(ha),Ka=function(w){(0,d.C6)(l,w);function l(S){return w.call(this,"EntityStore.Stump",S,function(){},new zo(S.group.caching,S.group))||this}return l.prototype.removeLayer=function(){return this},l.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},l}(wi);function Na(w,l,S){var R=w[S],q=l[S];return(0,j.L)(R,q)?R:q}function Eo(w){return!!(w instanceof ha&&w.group.caching)}function Ns(w){return[w.selectionSet,w.objectOrReference,w.context,w.context.canonizeResults]}var Ls=function(){function w(l){var S=this;this.knownResults=new(Ae.et?WeakMap:Map),this.config=(0,U.o)(l,{addTypename:l.addTypename!==!1,canonizeResults:de(l)}),this.canon=l.canon||new tt,this.executeSelectionSet=Ot(function(R){var q,ne=R.context.canonizeResults,se=Ns(R);se[3]=!ne;var Ie=(q=S.executeSelectionSet).peek.apply(q,se);return Ie?ne?(0,d.Cl)((0,d.Cl)({},Ie),{result:S.canon.admit(Ie.result)}):Ie:(So(R.context.store,R.enclosingRef.__ref),S.execSelectionSetImpl(R))},{max:this.config.resultCacheMaxSize,keyArgs:Ns,makeCacheKey:function(R,q,ne,se){if(Eo(ne.store))return ne.store.makeCacheKey(R,(0,b.A_)(q)?q.__ref:q,ne.varString,se)}}),this.executeSubSelectedArray=Ot(function(R){return So(R.context.store,R.enclosingRef.__ref),S.execSubSelectedArrayImpl(R)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(R){var q=R.field,ne=R.array,se=R.context;if(Eo(se.store))return se.store.makeCacheKey(q,ne,se.varString)}})}return w.prototype.resetCanon=function(){this.canon=new tt},w.prototype.diffQueryAgainstStore=function(l){var S=l.store,R=l.query,q=l.rootId,ne=q===void 0?"ROOT_QUERY":q,se=l.variables,Ie=l.returnPartialData,$e=Ie===void 0?!0:Ie,Le=l.canonizeResults,Qe=Le===void 0?this.config.canonizeResults:Le,et=this.config.cache.policies;se=(0,d.Cl)((0,d.Cl)({},(0,Se.wY)((0,Se.AT)(R))),se);var ze=(0,b.WU)(ne),st=this.executeSelectionSet({selectionSet:(0,Se.Vn)(R).selectionSet,objectOrReference:ze,enclosingRef:ze,context:{store:S,query:R,policies:et,variables:se,varString:Pe(se),canonizeResults:Qe,fragmentMap:(0,cn.JG)((0,Se.zK)(R))}}),bt;if(st.missing&&(bt=[new po(ou(st.missing),st.missing,R,se)],!$e))throw bt[0];return{result:st.result,complete:!bt,missing:bt}},w.prototype.isFresh=function(l,S,R,q){if(Eo(q.store)&&this.knownResults.get(l)===R){var ne=this.executeSelectionSet.peek(R,S,q,this.canon.isKnown(l));if(ne&&l===ne.result)return!0}return!1},w.prototype.execSelectionSetImpl=function(l){var S=this,R=l.selectionSet,q=l.objectOrReference,ne=l.enclosingRef,se=l.context;if((0,b.A_)(q)&&!se.policies.rootTypenamesById[q.__ref]&&!se.store.has(q.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(q.__ref," object")};var Ie=se.variables,$e=se.policies,Le=se.store,Qe=Le.getFieldValue(q,"__typename"),et=[],ze,st=new I.ZI;this.config.addTypename&&typeof Qe=="string"&&!$e.rootIdsByTypename[Qe]&&et.push({__typename:Qe});function bt(Ct,Yt){var pr;return Ct.missing&&(ze=st.merge(ze,(pr={},pr[Yt]=Ct.missing,pr))),Ct.result}var At=new Set(R.selections);At.forEach(function(Ct){var Yt,pr;if(!!(0,C.MS)(Ct,Ie))if((0,b.dt)(Ct)){var or=$e.readField({fieldName:Ct.name.value,field:Ct,variables:se.variables,from:q},se),ir=(0,b.ue)(Ct);or===void 0?je.XY.added(Ct)||(ze=st.merge(ze,(Yt={},Yt[ir]="Can't find field '".concat(Ct.name.value,"' on ").concat((0,b.A_)(q)?q.__ref+" object":"object "+JSON.stringify(q,null,2)),Yt))):at(or)?or=bt(S.executeSubSelectedArray({field:Ct,array:or,enclosingRef:ne,context:se}),ir):Ct.selectionSet?or!=null&&(or=bt(S.executeSelectionSet({selectionSet:Ct.selectionSet,objectOrReference:or,enclosingRef:(0,b.A_)(or)?or:ne,context:se}),ir)):se.canonizeResults&&(or=S.canon.pass(or)),or!==void 0&&et.push((pr={},pr[ir]=or,pr))}else{var en=(0,cn.HQ)(Ct,se.fragmentMap);en&&$e.fragmentMatches(en,Qe)&&en.selectionSet.selections.forEach(At.add,At)}});var It=(0,I.IM)(et),wt={result:It,missing:ze},ur=se.canonizeResults?this.canon.admit(wt):(0,Wo.G)(wt);return ur.result&&this.knownResults.set(ur.result,R),ur},w.prototype.execSubSelectedArrayImpl=function(l){var S=this,R=l.field,q=l.array,ne=l.enclosingRef,se=l.context,Ie,$e=new I.ZI;function Le(Qe,et){var ze;return Qe.missing&&(Ie=$e.merge(Ie,(ze={},ze[et]=Qe.missing,ze))),Qe.result}return R.selectionSet&&(q=q.filter(se.store.canRead)),q=q.map(function(Qe,et){return Qe===null?null:at(Qe)?Le(S.executeSubSelectedArray({field:R,array:Qe,enclosingRef:ne,context:se}),et):R.selectionSet?Le(S.executeSelectionSet({selectionSet:R.selectionSet,objectOrReference:Qe,enclosingRef:(0,b.A_)(Qe)?Qe:ne,context:se}),et):(__DEV__&&ra(se.store,R,Qe),Qe)}),{result:se.canonizeResults?this.canon.admit(q):q,missing:Ie}},w}();function ou(w){try{JSON.stringify(w,function(l,S){if(typeof S=="string")throw S;return S})}catch(l){return l}}function ra(w,l,S){if(!l.selectionSet){var R=new Set([S]);R.forEach(function(q){(0,Ne.U)(q)&&(__DEV__?(0,T.V1)(!(0,b.A_)(q),"Missing selection set for object of type ".concat(ae(w,q)," returned for query field ").concat(l.name.value)):(0,T.V1)(!(0,b.A_)(q),5),Object.values(q).forEach(R.add,R))})}}var on=p(6563),qr=Object.create(null);function su(w){var l=JSON.stringify(w);return qr[l]||(qr[l]=Object.create(null))}function ge(w){var l=su(w);return l.keyFieldsFn||(l.keyFieldsFn=function(S,R){var q=function(se,Ie){return R.readField(Ie,se)},ne=R.keyObject=Ze(w,function(se){var Ie=Cr(R.storeObject,se,q);return Ie===void 0&&S!==R.storeObject&&k.call(S,se[0])&&(Ie=Cr(S,se,Or)),__DEV__?(0,T.V1)(Ie!==void 0,"Missing field '".concat(se.join("."),"' while extracting keyFields from ").concat(JSON.stringify(S))):(0,T.V1)(Ie!==void 0,2),Ie});return"".concat(R.typename,":").concat(JSON.stringify(ne))})}function ke(w){var l=su(w);return l.keyArgsFn||(l.keyArgsFn=function(S,R){var q=R.field,ne=R.variables,se=R.fieldName,Ie=Ze(w,function(Le){var Qe=Le[0],et=Qe.charAt(0);if(et==="@"){if(q&&(0,pt.E)(q.directives)){var ze=Qe.slice(1),st=q.directives.find(function(wt){return wt.name.value===ze}),bt=st&&(0,b.MB)(st,ne);return bt&&Cr(bt,Le.slice(1))}return}if(et==="$"){var At=Qe.slice(1);if(ne&&k.call(ne,At)){var It=Le.slice(0);return It[0]=At,Cr(ne,It)}return}if(S)return Cr(S,Le)}),$e=JSON.stringify(Ie);return(S||$e!=="{}")&&(se+=":"+$e),se})}function Ze(w,l){var S=new I.ZI;return Dt(w).reduce(function(R,q){var ne,se=l(q);if(se!==void 0){for(var Ie=q.length-1;Ie>=0;--Ie)se=(ne={},ne[q[Ie]]=se,ne);R=S.merge(R,se)}return R},Object.create(null))}function Dt(w){var l=su(w);if(!l.paths){var S=l.paths=[],R=[];w.forEach(function(q,ne){at(q)?(Dt(q).forEach(function(se){return S.push(R.concat(se))}),R.length=0):(R.push(q),at(w[ne+1])||(S.push(R.slice(0)),R.length=0))})}return l.paths}function Or(w,l){return w[l]}function Cr(w,l,S){return S=S||Or,Kr(l.reduce(function R(q,ne){return at(q)?q.map(function(se){return R(se,ne)}):q&&S(q,ne)},w))}function Kr(w){return(0,Ne.U)(w)?at(w)?w.map(Kr):Ze(Object.keys(w).sort(),function(l){return Cr(w,l)}):w}b.o5.setStringify(Pe);function Gt(w){return w.args!==void 0?w.args:w.field?(0,b.MB)(w.field,w.variables):null}var sn=function(){},Kn=function(w,l){return l.fieldName},ai=function(w,l,S){var R=S.mergeObjects;return R(w,l)},Wr=function(w,l){return l},Gn=function(){function w(l){this.config=l,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,d.Cl)({dataIdFromObject:Y},l),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),l.possibleTypes&&this.addPossibleTypes(l.possibleTypes),l.typePolicies&&this.addTypePolicies(l.typePolicies)}return w.prototype.identify=function(l,S){var R,q=this,ne=S&&(S.typename||((R=S.storeObject)===null||R===void 0?void 0:R.__typename))||l.__typename;if(ne===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var se=S&&S.storeObject||l,Ie=(0,d.Cl)((0,d.Cl)({},S),{typename:ne,storeObject:se,readField:S&&S.readField||function(){var ze=Wa(arguments,se);return q.readField(ze,{store:q.cache.data,variables:ze.variables})}}),$e,Le=ne&&this.getTypePolicy(ne),Qe=Le&&Le.keyFn||this.config.dataIdFromObject;Qe;){var et=Qe(l,Ie);if(at(et))Qe=ge(et);else{$e=et;break}}return $e=$e?String($e):void 0,Ie.keyObject?[$e,Ie.keyObject]:[$e]},w.prototype.addTypePolicies=function(l){var S=this;Object.keys(l).forEach(function(R){var q=l[R],ne=q.queryType,se=q.mutationType,Ie=q.subscriptionType,$e=(0,d.Tt)(q,["queryType","mutationType","subscriptionType"]);ne&&S.setRootTypename("Query",R),se&&S.setRootTypename("Mutation",R),Ie&&S.setRootTypename("Subscription",R),k.call(S.toBeAdded,R)?S.toBeAdded[R].push($e):S.toBeAdded[R]=[$e]})},w.prototype.updateTypePolicy=function(l,S){var R=this,q=this.getTypePolicy(l),ne=S.keyFields,se=S.fields;function Ie($e,Le){$e.merge=typeof Le=="function"?Le:Le===!0?ai:Le===!1?Wr:$e.merge}Ie(q,S.merge),q.keyFn=ne===!1?sn:at(ne)?ge(ne):typeof ne=="function"?ne:q.keyFn,se&&Object.keys(se).forEach(function($e){var Le=R.getFieldPolicy(l,$e,!0),Qe=se[$e];if(typeof Qe=="function")Le.read=Qe;else{var et=Qe.keyArgs,ze=Qe.read,st=Qe.merge;Le.keyFn=et===!1?Kn:at(et)?ke(et):typeof et=="function"?et:Le.keyFn,typeof ze=="function"&&(Le.read=ze),Ie(Le,st)}Le.read&&Le.merge&&(Le.keyFn=Le.keyFn||Kn)})},w.prototype.setRootTypename=function(l,S){S===void 0&&(S=l);var R="ROOT_"+l.toUpperCase(),q=this.rootTypenamesById[R];S!==q&&(__DEV__?(0,T.V1)(!q||q===l,"Cannot change root ".concat(l," __typename more than once")):(0,T.V1)(!q||q===l,3),q&&delete this.rootIdsByTypename[q],this.rootIdsByTypename[S]=R,this.rootTypenamesById[R]=S)},w.prototype.addPossibleTypes=function(l){var S=this;this.usingPossibleTypes=!0,Object.keys(l).forEach(function(R){S.getSupertypeSet(R,!0),l[R].forEach(function(q){S.getSupertypeSet(q,!0).add(R);var ne=q.match(re);(!ne||ne[0]!==q)&&S.fuzzySubtypes.set(q,new RegExp(q))})})},w.prototype.getTypePolicy=function(l){var S=this;if(!k.call(this.typePolicies,l)){var R=this.typePolicies[l]=Object.create(null);R.fields=Object.create(null);var q=this.supertypeMap.get(l);q&&q.size&&q.forEach(function(se){var Ie=S.getTypePolicy(se),$e=Ie.fields,Le=(0,d.Tt)(Ie,["fields"]);Object.assign(R,Le),Object.assign(R.fields,$e)})}var ne=this.toBeAdded[l];return ne&&ne.length&&ne.splice(0).forEach(function(se){S.updateTypePolicy(l,se)}),this.typePolicies[l]},w.prototype.getFieldPolicy=function(l,S,R){if(l){var q=this.getTypePolicy(l).fields;return q[S]||R&&(q[S]=Object.create(null))}},w.prototype.getSupertypeSet=function(l,S){var R=this.supertypeMap.get(l);return!R&&S&&this.supertypeMap.set(l,R=new Set),R},w.prototype.fragmentMatches=function(l,S,R,q){var ne=this;if(!l.typeCondition)return!0;if(!S)return!1;var se=l.typeCondition.name.value;if(S===se)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(se))for(var Ie=this.getSupertypeSet(S,!0),$e=[Ie],Le=function(bt){var At=ne.getSupertypeSet(bt,!1);At&&At.size&&$e.indexOf(At)<0&&$e.push(At)},Qe=!!(R&&this.fuzzySubtypes.size),et=!1,ze=0;ze<$e.length;++ze){var st=$e[ze];if(st.has(se))return Ie.has(se)||(et&&__DEV__&&T.V1.warn("Inferring subtype ".concat(S," of supertype ").concat(se)),Ie.add(se)),!0;st.forEach(Le),Qe&&ze===$e.length-1&&ve(l.selectionSet,R,q)&&(Qe=!1,et=!0,this.fuzzySubtypes.forEach(function(bt,At){var It=S.match(bt);It&&It[0]===S&&Le(At)}))}return!1},w.prototype.hasKeyArgs=function(l,S){var R=this.getFieldPolicy(l,S,!1);return!!(R&&R.keyFn)},w.prototype.getStoreFieldName=function(l){var S=l.typename,R=l.fieldName,q=this.getFieldPolicy(S,R,!1),ne,se=q&&q.keyFn;if(se&&S)for(var Ie={typename:S,fieldName:R,field:l.field||null,variables:l.variables},$e=Gt(l);se;){var Le=se($e,Ie);if(at(Le))se=ke(Le);else{ne=Le||R;break}}return ne===void 0&&(ne=l.field?(0,b.Ii)(l.field,l.variables):(0,b.o5)(R,Gt(l))),ne===!1?R:R===z(ne)?ne:R+":"+ne},w.prototype.readField=function(l,S){var R=l.from;if(!!R){var q=l.field||l.fieldName;if(!!q){if(l.typename===void 0){var ne=S.store.getFieldValue(R,"__typename");ne&&(l.typename=ne)}var se=this.getStoreFieldName(l),Ie=z(se),$e=S.store.getFieldValue(R,se),Le=this.getFieldPolicy(l.typename,Ie,!1),Qe=Le&&Le.read;if(Qe){var et=Ui(this,R,l,S,S.store.getStorage((0,b.A_)(R)?R.__ref:R,se));return Nt.withValue(this.cache,Qe,[$e,et])}return $e}}},w.prototype.getReadFunction=function(l,S){var R=this.getFieldPolicy(l,S,!1);return R&&R.read},w.prototype.getMergeFunction=function(l,S,R){var q=this.getFieldPolicy(l,S,!1),ne=q&&q.merge;return!ne&&R&&(q=this.getTypePolicy(R),ne=q&&q.merge),ne},w.prototype.runMergeFunction=function(l,S,R,q,ne){var se=R.field,Ie=R.typename,$e=R.merge;return $e===ai?uu(q.store)(l,S):$e===Wr?S:(q.overwrite&&(l=void 0),$e(l,S,Ui(this,void 0,{typename:Ie,fieldName:se.name.value,field:se,variables:q.variables},q,ne||Object.create(null))))},w}();function Ui(w,l,S,R,q){var ne=w.getStoreFieldName(S),se=z(ne),Ie=S.variables||R.variables,$e=R.store,Le=$e.toReference,Qe=$e.canRead;return{args:Gt(S),field:S.field||null,fieldName:se,storeFieldName:ne,variables:Ie,isReference:b.A_,toReference:Le,storage:q,cache:w.cache,canRead:Qe,readField:function(){return w.readField(Wa(arguments,l,Ie),R)},mergeObjects:uu(R.store)}}function Wa(w,l,S){var R=w[0],q=w[1],ne=w.length,se;return typeof R=="string"?se={fieldName:R,from:ne>1?q:l}:(se=(0,d.Cl)({},R),k.call(se,"from")||(se.from=l)),__DEV__&&se.from===void 0&&__DEV__&&T.V1.warn("Undefined 'from' passed to readField with arguments ".concat((0,on.p)(Array.from(w)))),se.variables===void 0&&(se.variables=S),se}function uu(w){return function(S,R){if(at(S)||at(R))throw __DEV__?new T.zU("Cannot automatically merge arrays"):new T.zU(4);if((0,Ne.U)(S)&&(0,Ne.U)(R)){var q=w.getFieldValue(S,"__typename"),ne=w.getFieldValue(R,"__typename"),se=q&&ne&&q!==ne;if(se)return R;if((0,b.A_)(S)&&ye(R))return w.merge(S.__ref,R),S;if(ye(S)&&(0,b.A_)(R))return w.merge(S,R.__ref),R;if(ye(S)&&ye(R))return(0,d.Cl)((0,d.Cl)({},S),R)}return R}}function cu(w,l,S){var R="".concat(l).concat(S),q=w.flavors.get(R);return q||w.flavors.set(R,q=w.clientOnly===l&&w.deferred===S?w:(0,d.Cl)((0,d.Cl)({},w),{clientOnly:l,deferred:S})),q}var k_=function(){function w(l,S){this.cache=l,this.reader=S}return w.prototype.writeToStore=function(l,S){var R=this,q=S.query,ne=S.result,se=S.dataId,Ie=S.variables,$e=S.overwrite,Le=(0,Se.Vu)(q),Qe=Je();Ie=(0,d.Cl)((0,d.Cl)({},(0,Se.wY)(Le)),Ie);var et={store:l,written:Object.create(null),merge:function(st,bt){return Qe.merge(st,bt)},variables:Ie,varString:Pe(Ie),fragmentMap:(0,cn.JG)((0,Se.zK)(q)),overwrite:!!$e,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},ze=this.processSelectionSet({result:ne||Object.create(null),dataId:se,selectionSet:Le.selectionSet,mergeTree:{map:new Map},context:et});if(!(0,b.A_)(ze))throw __DEV__?new T.zU("Could not identify object ".concat(JSON.stringify(ne))):new T.zU(6);return et.incomingById.forEach(function(st,bt){var At=st.storeObject,It=st.mergeTree,wt=st.fieldNodeSet,ur=(0,b.WU)(bt);if(It&&It.map.size){var Ct=R.applyMerges(It,ur,At,et);if((0,b.A_)(Ct))return;At=Ct}if(__DEV__&&!et.overwrite){var Yt=Object.create(null);wt.forEach(function(ir){ir.selectionSet&&(Yt[ir.name.value]=!0)});var pr=function(ir){return Yt[z(ir)]===!0},or=function(ir){var en=It&&It.map.get(ir);return Boolean(en&&en.info&&en.info.merge)};Object.keys(At).forEach(function(ir){pr(ir)&&!or(ir)&&vo(ur,At,ir,et.store)})}l.merge(bt,At)}),l.retain(ze.__ref),ze},w.prototype.processSelectionSet=function(l){var S=this,R=l.dataId,q=l.result,ne=l.selectionSet,se=l.context,Ie=l.mergeTree,$e=this.cache.policies,Le=Object.create(null),Qe=R&&$e.rootTypenamesById[R]||(0,b.D$)(q,ne,se.fragmentMap)||R&&se.store.get(R,"__typename");typeof Qe=="string"&&(Le.__typename=Qe);var et=function(){var Ct=Wa(arguments,Le,se.variables);if((0,b.A_)(Ct.from)){var Yt=se.incomingById.get(Ct.from.__ref);if(Yt){var pr=$e.readField((0,d.Cl)((0,d.Cl)({},Ct),{from:Yt.storeObject}),se);if(pr!==void 0)return pr}}return $e.readField(Ct,se)},ze=new Set;this.flattenFields(ne,q,se,Qe).forEach(function(Ct,Yt){var pr,or=(0,b.ue)(Yt),ir=q[or];if(ze.add(Yt),ir!==void 0){var en=$e.getStoreFieldName({typename:Qe,fieldName:Yt.name.value,field:Yt,variables:Ct.variables}),xi=Si(Ie,en),An=S.processFieldValue(ir,Yt,Yt.selectionSet?cu(Ct,!1,!1):Ct,xi),ei=void 0;Yt.selectionSet&&((0,b.A_)(An)||ye(An))&&(ei=et("__typename",An));var fu=$e.getMergeFunction(Qe,Yt.name.value,ei);fu?xi.info={field:Yt,typename:Qe,merge:fu}:nc(Ie,en),Le=Ct.merge(Le,(pr={},pr[en]=An,pr))}else __DEV__&&!Ct.clientOnly&&!Ct.deferred&&!je.XY.added(Yt)&&!$e.getReadFunction(Qe,Yt.name.value)&&__DEV__&&T.V1.error("Missing field '".concat((0,b.ue)(Yt),"' while writing result ").concat(JSON.stringify(q,null,2)).substring(0,1e3))});try{var st=$e.identify(q,{typename:Qe,selectionSet:ne,fragmentMap:se.fragmentMap,storeObject:Le,readField:et}),bt=st[0],At=st[1];R=R||bt,At&&(Le=se.merge(Le,At))}catch(Ct){if(!R)throw Ct}if(typeof R=="string"){var It=(0,b.WU)(R),wt=se.written[R]||(se.written[R]=[]);if(wt.indexOf(ne)>=0||(wt.push(ne),this.reader&&this.reader.isFresh(q,It,ne,se)))return It;var ur=se.incomingById.get(R);return ur?(ur.storeObject=se.merge(ur.storeObject,Le),ur.mergeTree=rc(ur.mergeTree,Ie),ze.forEach(function(Ct){return ur.fieldNodeSet.add(Ct)})):se.incomingById.set(R,{storeObject:Le,mergeTree:oi(Ie)?void 0:Ie,fieldNodeSet:ze}),It}return Le},w.prototype.processFieldValue=function(l,S,R,q){var ne=this;return!S.selectionSet||l===null?__DEV__?(0,Qt.m)(l):l:at(l)?l.map(function(se,Ie){var $e=ne.processFieldValue(se,S,R,Si(q,Ie));return nc(q,Ie),$e}):this.processSelectionSet({result:l,selectionSet:S.selectionSet,context:R,mergeTree:q})},w.prototype.flattenFields=function(l,S,R,q){q===void 0&&(q=(0,b.D$)(S,l,R.fragmentMap));var ne=new Map,se=this.cache.policies,Ie=new we(!1);return function $e(Le,Qe){var et=Ie.lookup(Le,Qe.clientOnly,Qe.deferred);et.visited||(et.visited=!0,Le.selections.forEach(function(ze){if(!!(0,C.MS)(ze,R.variables)){var st=Qe.clientOnly,bt=Qe.deferred;if(!(st&&bt)&&(0,pt.E)(ze.directives)&&ze.directives.forEach(function(wt){var ur=wt.name.value;if(ur==="client"&&(st=!0),ur==="defer"){var Ct=(0,b.MB)(wt,R.variables);(!Ct||Ct.if!==!1)&&(bt=!0)}}),(0,b.dt)(ze)){var At=ne.get(ze);At&&(st=st&&At.clientOnly,bt=bt&&At.deferred),ne.set(ze,cu(R,st,bt))}else{var It=(0,cn.HQ)(ze,R.fragmentMap);It&&se.fragmentMatches(It,q,S,R.variables)&&$e(It.selectionSet,cu(R,st,bt))}}}))}(l,R),ne},w.prototype.applyMerges=function(l,S,R,q,ne){var se,Ie=this;if(l.map.size&&!(0,b.A_)(R)){var $e=!at(R)&&((0,b.A_)(S)||ye(S))?S:void 0,Le=R;$e&&!ne&&(ne=[(0,b.A_)($e)?$e.__ref:$e]);var Qe,et=function(ze,st){return at(ze)?typeof st=="number"?ze[st]:void 0:q.store.getFieldValue(ze,String(st))};l.map.forEach(function(ze,st){var bt=et($e,st),At=et(Le,st);if(At!==void 0){ne&&ne.push(st);var It=Ie.applyMerges(ze,bt,At,q,ne);It!==At&&(Qe=Qe||new Map,Qe.set(st,It)),ne&&(0,T.V1)(ne.pop()===st)}}),Qe&&(R=at(Le)?Le.slice(0):(0,d.Cl)({},Le),Qe.forEach(function(ze,st){R[st]=ze}))}return l.info?this.cache.policies.runMergeFunction(S,R,l.info,q,ne&&(se=q.store).getStorage.apply(se,ne)):R},w}(),tc=[];function Si(w,l){var S=w.map;return S.has(l)||S.set(l,tc.pop()||{map:new Map}),S.get(l)}function rc(w,l){if(w===l||!l||oi(l))return w;if(!w||oi(w))return l;var S=w.info&&l.info?(0,d.Cl)((0,d.Cl)({},w.info),l.info):w.info||l.info,R=w.map.size&&l.map.size,q=R?new Map:w.map.size?w.map:l.map,ne={info:S,map:q};if(R){var se=new Set(l.map.keys());w.map.forEach(function(Ie,$e){ne.map.set($e,rc(Ie,l.map.get($e))),se.delete($e)}),se.forEach(function(Ie){ne.map.set(Ie,rc(l.map.get(Ie),w.map.get(Ie)))})}return ne}function oi(w){return!w||!(w.info||w.map.size)}function nc(w,l){var S=w.map,R=S.get(l);R&&oi(R)&&(tc.push(R),S.delete(l))}var ic=new Set;function vo(w,l,S,R){var q=function(et){var ze=R.getFieldValue(et,S);return typeof ze=="object"&&ze},ne=q(w);if(!!ne){var se=q(l);if(!!se&&!(0,b.A_)(ne)&&!(0,j.L)(ne,se)&&!Object.keys(ne).every(function(et){return R.getFieldValue(se,et)!==void 0})){var Ie=R.getFieldValue(w,"__typename")||R.getFieldValue(l,"__typename"),$e=z(S),Le="".concat(Ie,".").concat($e);if(!ic.has(Le)){ic.add(Le);var Qe=[];!at(ne)&&!at(se)&&[ne,se].forEach(function(et){var ze=R.getFieldValue(et,"__typename");typeof ze=="string"&&!Qe.includes(ze)&&Qe.push(ze)}),__DEV__&&T.V1.warn("Cache data may be lost when replacing the ".concat($e," field of a ").concat(Ie,` object.
74
+ For more information, please visit: https://go.apollo.dev/c/docs`):new T.zU(7);if(this.link=ir,this.cache=se,this.disableNetworkFetches=$e||Qe>0,this.queryDeduplication=bt,this.defaultOptions=At||Object.create(null),this.typeDefs=Ct,Qe&&setTimeout(function(){return S.disableNetworkFetches=!1},Qe),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),ze&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!Ms&&__DEV__&&(Ms=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var en=window.navigator,xi=en&&en.userAgent,An=void 0;typeof xi=="string"&&(xi.indexOf("Chrome/")>-1?An="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":xi.indexOf("Firefox/")>-1&&(An="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),An&&__DEV__&&T.V1.log("Download the Apollo DevTools for a better development experience: "+An)}this.version=V,this.localState=new Yr({cache:se,client:this,resolvers:ur,fragmentMatcher:Yt}),this.queryManager=new Rn({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:bt,ssrMode:$e,clientAwareness:{name:pr,version:or},localState:this.localState,assumeImmutableResults:wt,onBroadcast:ze?function(){S.devToolsHookCb&&S.devToolsHookCb({action:{},state:{queries:S.queryManager.getQueryStore(),mutations:S.queryManager.mutationStore||{}},dataWithOptimisticResults:S.cache.extract(!0)})}:void 0})}return w.prototype.stop=function(){this.queryManager.stop()},w.prototype.watchQuery=function(l){return this.defaultOptions.watchQuery&&(l=(0,Wi.l)(this.defaultOptions.watchQuery,l)),this.disableNetworkFetches&&(l.fetchPolicy==="network-only"||l.fetchPolicy==="cache-and-network")&&(l=(0,d.Cl)((0,d.Cl)({},l),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(l)},w.prototype.query=function(l){return this.defaultOptions.query&&(l=(0,Wi.l)(this.defaultOptions.query,l)),__DEV__?(0,T.V1)(l.fetchPolicy!=="cache-and-network","The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,T.V1)(l.fetchPolicy!=="cache-and-network",8),this.disableNetworkFetches&&l.fetchPolicy==="network-only"&&(l=(0,d.Cl)((0,d.Cl)({},l),{fetchPolicy:"cache-first"})),this.queryManager.query(l)},w.prototype.mutate=function(l){return this.defaultOptions.mutate&&(l=(0,Wi.l)(this.defaultOptions.mutate,l)),this.queryManager.mutate(l)},w.prototype.subscribe=function(l){return this.queryManager.startGraphQLSubscription(l)},w.prototype.readQuery=function(l,S){return S===void 0&&(S=!1),this.cache.readQuery(l,S)},w.prototype.readFragment=function(l,S){return S===void 0&&(S=!1),this.cache.readFragment(l,S)},w.prototype.writeQuery=function(l){this.cache.writeQuery(l),this.queryManager.broadcastQueries()},w.prototype.writeFragment=function(l){this.cache.writeFragment(l),this.queryManager.broadcastQueries()},w.prototype.__actionHookForDevTools=function(l){this.devToolsHookCb=l},w.prototype.__requestRaw=function(l){return(0,H.g)(this.link,l)},w.prototype.resetStore=function(){var l=this;return Promise.resolve().then(function(){return l.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(l.resetStoreCallbacks.map(function(S){return S()}))}).then(function(){return l.reFetchObservableQueries()})},w.prototype.clearStore=function(){var l=this;return Promise.resolve().then(function(){return l.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(l.clearStoreCallbacks.map(function(S){return S()}))})},w.prototype.onResetStore=function(l){var S=this;return this.resetStoreCallbacks.push(l),function(){S.resetStoreCallbacks=S.resetStoreCallbacks.filter(function(R){return R!==l})}},w.prototype.onClearStore=function(l){var S=this;return this.clearStoreCallbacks.push(l),function(){S.clearStoreCallbacks=S.clearStoreCallbacks.filter(function(R){return R!==l})}},w.prototype.reFetchObservableQueries=function(l){return this.queryManager.reFetchObservableQueries(l)},w.prototype.refetchQueries=function(l){var S=this.queryManager.refetchQueries(l),R=[],q=[];S.forEach(function(se,Ie){R.push(Ie),q.push(se)});var ne=Promise.all(q);return ne.queries=R,ne.results=q,ne.catch(function(se){__DEV__&&T.V1.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(se))}),ne},w.prototype.getObservableQueries=function(l){return l===void 0&&(l="active"),this.queryManager.getObservableQueries(l)},w.prototype.extract=function(l){return this.cache.extract(l)},w.prototype.restore=function(l){return this.cache.restore(l)},w.prototype.addResolvers=function(l){this.localState.addResolvers(l)},w.prototype.setResolvers=function(l){this.localState.setResolvers(l)},w.prototype.getResolvers=function(){return this.localState.getResolvers()},w.prototype.setLocalStateFragmentMatcher=function(l){this.localState.setFragmentMatcher(l)},w.prototype.setLink=function(l){this.link=this.queryManager.link=l},w}(),_o;(function(w){})(_o||(_o={}));var Ko=function(){function w(){this.getFragmentDoc=Ot(cn.ct)}return w.prototype.batch=function(l){var S=this,R=typeof l.optimistic=="string"?l.optimistic:l.optimistic===!1?null:void 0,q;return this.performTransaction(function(){return q=l.update(S)},R),q},w.prototype.recordOptimisticTransaction=function(l,S){this.performTransaction(l,S)},w.prototype.transformDocument=function(l){return l},w.prototype.identify=function(l){},w.prototype.gc=function(){return[]},w.prototype.modify=function(l){return!1},w.prototype.transformForLink=function(l){return l},w.prototype.readQuery=function(l,S){return S===void 0&&(S=!!l.optimistic),this.read((0,d.Cl)((0,d.Cl)({},l),{rootId:l.id||"ROOT_QUERY",optimistic:S}))},w.prototype.readFragment=function(l,S){return S===void 0&&(S=!!l.optimistic),this.read((0,d.Cl)((0,d.Cl)({},l),{query:this.getFragmentDoc(l.fragment,l.fragmentName),rootId:l.id,optimistic:S}))},w.prototype.writeQuery=function(l){var S=l.id,R=l.data,q=(0,d.Tt)(l,["id","data"]);return this.write(Object.assign(q,{dataId:S||"ROOT_QUERY",result:R}))},w.prototype.writeFragment=function(l){var S=l.id,R=l.data,q=l.fragment,ne=l.fragmentName,se=(0,d.Tt)(l,["id","data","fragment","fragmentName"]);return this.write(Object.assign(se,{query:this.getFragmentDoc(q,ne),dataId:S,result:R}))},w.prototype.updateQuery=function(l,S){return this.batch({update:function(R){var q=R.readQuery(l),ne=S(q);return ne==null?q:(R.writeQuery((0,d.Cl)((0,d.Cl)({},l),{data:ne})),ne)}})},w.prototype.updateFragment=function(l,S){return this.batch({update:function(R){var q=R.readFragment(l),ne=S(q);return ne==null?q:(R.writeFragment((0,d.Cl)((0,d.Cl)({},l),{data:ne})),ne)}})},w}(),po=function(w){(0,d.C6)(l,w);function l(S,R,q,ne){var se=w.call(this,S)||this;return se.message=S,se.path=R,se.query=q,se.variables=ne,se.__proto__=l.prototype,se}return l}(Error),Wo=p(7236),pa=Object.create(null),ho=function(){return pa},Qo=Object.create(null),ha=function(){function w(l,S){var R=this;this.policies=l,this.group=S,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(q,ne){return(0,Wo.G)((0,b.A_)(q)?R.get(q.__ref,ne):q&&q[ne])},this.canRead=function(q){return(0,b.A_)(q)?R.has(q.__ref):typeof q=="object"},this.toReference=function(q,ne){if(typeof q=="string")return(0,b.WU)(q);if((0,b.A_)(q))return q;var se=R.policies.identify(q)[0];if(se){var Ie=(0,b.WU)(se);return ne&&R.merge(se,q),Ie}}}return w.prototype.toObject=function(){return(0,d.Cl)({},this.data)},w.prototype.has=function(l){return this.lookup(l,!0)!==void 0},w.prototype.get=function(l,S){if(this.group.depend(l,S),k.call(this.data,l)){var R=this.data[l];if(R&&k.call(R,S))return R[S]}if(S==="__typename"&&k.call(this.policies.rootTypenamesById,l))return this.policies.rootTypenamesById[l];if(this instanceof wi)return this.parent.get(l,S)},w.prototype.lookup=function(l,S){if(S&&this.group.depend(l,"__exists"),k.call(this.data,l))return this.data[l];if(this instanceof wi)return this.parent.lookup(l,S);if(this.policies.rootTypenamesById[l])return Object.create(null)},w.prototype.merge=function(l,S){var R=this,q;(0,b.A_)(l)&&(l=l.__ref),(0,b.A_)(S)&&(S=S.__ref);var ne=typeof l=="string"?this.lookup(q=l):l,se=typeof S=="string"?this.lookup(q=S):S;if(!!se){__DEV__?(0,T.V1)(typeof q=="string","store.merge expects a string ID"):(0,T.V1)(typeof q=="string",1);var Ie=new I.ZI(Na).merge(ne,se);if(this.data[q]=Ie,Ie!==ne&&(delete this.refs[q],this.group.caching)){var $e=Object.create(null);ne||($e.__exists=1),Object.keys(se).forEach(function(Le){if(!ne||ne[Le]!==Ie[Le]){$e[Le]=1;var Qe=z(Le);Qe!==Le&&!R.policies.hasKeyArgs(Ie.__typename,Qe)&&($e[Qe]=1),Ie[Le]===void 0&&!(R instanceof wi)&&delete Ie[Le]}}),$e.__typename&&!(ne&&ne.__typename)&&this.policies.rootTypenamesById[q]===Ie.__typename&&delete $e.__typename,Object.keys($e).forEach(function(Le){return R.group.dirty(q,Le)})}}},w.prototype.modify=function(l,S){var R=this,q=this.lookup(l);if(q){var ne=Object.create(null),se=!1,Ie=!0,$e={DELETE:pa,INVALIDATE:Qo,isReference:b.A_,toReference:this.toReference,canRead:this.canRead,readField:function(Le,Qe){return R.policies.readField(typeof Le=="string"?{fieldName:Le,from:Qe||(0,b.WU)(l)}:Le,{store:R})}};if(Object.keys(q).forEach(function(Le){var Qe=z(Le),et=q[Le];if(et!==void 0){var ze=typeof S=="function"?S:S[Le]||S[Qe];if(ze){var st=ze===ho?pa:ze((0,Wo.G)(et),(0,d.Cl)((0,d.Cl)({},$e),{fieldName:Qe,storeFieldName:Le,storage:R.getStorage(l,Le)}));st===Qo?R.group.dirty(l,Le):(st===pa&&(st=void 0),st!==et&&(ne[Le]=st,se=!0,et=st))}et!==void 0&&(Ie=!1)}}),se)return this.merge(l,ne),Ie&&(this instanceof wi?this.data[l]=void 0:delete this.data[l],this.group.dirty(l,"__exists")),!0}return!1},w.prototype.delete=function(l,S,R){var q,ne=this.lookup(l);if(ne){var se=this.getFieldValue(ne,"__typename"),Ie=S&&R?this.policies.getStoreFieldName({typename:se,fieldName:S,args:R}):S;return this.modify(l,Ie?(q={},q[Ie]=ho,q):ho)}return!1},w.prototype.evict=function(l,S){var R=!1;return l.id&&(k.call(this.data,l.id)&&(R=this.delete(l.id,l.fieldName,l.args)),this instanceof wi&&this!==S&&(R=this.parent.evict(l,S)||R),(l.fieldName||R)&&this.group.dirty(l.id,l.fieldName||"__exists")),R},w.prototype.clear=function(){this.replace(null)},w.prototype.extract=function(){var l=this,S=this.toObject(),R=[];return this.getRootIdSet().forEach(function(q){k.call(l.policies.rootTypenamesById,q)||R.push(q)}),R.length&&(S.__META={extraRootIds:R.sort()}),S},w.prototype.replace=function(l){var S=this;if(Object.keys(this.data).forEach(function(ne){l&&k.call(l,ne)||S.delete(ne)}),l){var R=l.__META,q=(0,d.Tt)(l,["__META"]);Object.keys(q).forEach(function(ne){S.merge(ne,q[ne])}),R&&R.extraRootIds.forEach(this.retain,this)}},w.prototype.retain=function(l){return this.rootIds[l]=(this.rootIds[l]||0)+1},w.prototype.release=function(l){if(this.rootIds[l]>0){var S=--this.rootIds[l];return S||delete this.rootIds[l],S}return 0},w.prototype.getRootIdSet=function(l){return l===void 0&&(l=new Set),Object.keys(this.rootIds).forEach(l.add,l),this instanceof wi?this.parent.getRootIdSet(l):Object.keys(this.policies.rootTypenamesById).forEach(l.add,l),l},w.prototype.gc=function(){var l=this,S=this.getRootIdSet(),R=this.toObject();S.forEach(function(se){k.call(R,se)&&(Object.keys(l.findChildRefIds(se)).forEach(S.add,S),delete R[se])});var q=Object.keys(R);if(q.length){for(var ne=this;ne instanceof wi;)ne=ne.parent;q.forEach(function(se){return ne.delete(se)})}return q},w.prototype.findChildRefIds=function(l){if(!k.call(this.refs,l)){var S=this.refs[l]=Object.create(null),R=this.data[l];if(!R)return S;var q=new Set([R]);q.forEach(function(ne){(0,b.A_)(ne)&&(S[ne.__ref]=!0),(0,Ne.U)(ne)&&Object.keys(ne).forEach(function(se){var Ie=ne[se];(0,Ne.U)(Ie)&&q.add(Ie)})})}return this.refs[l]},w.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},w}(),zo=function(){function w(l,S){S===void 0&&(S=null),this.caching=l,this.parent=S,this.d=null,this.resetCaching()}return w.prototype.resetCaching=function(){this.d=this.caching?nt():null,this.keyMaker=new we(Ae.et)},w.prototype.depend=function(l,S){if(this.d){this.d(Is(l,S));var R=z(S);R!==S&&this.d(Is(l,R)),this.parent&&this.parent.depend(l,S)}},w.prototype.dirty=function(l,S){this.d&&this.d.dirty(Is(l,S),S==="__exists"?"forget":"setDirty")},w}();function Is(w,l){return l+"#"+w}function So(w,l){Eo(w)&&w.group.depend(l,"__exists")}(function(w){var l=function(S){(0,d.C6)(R,S);function R(q){var ne=q.policies,se=q.resultCaching,Ie=se===void 0?!0:se,$e=q.seed,Le=S.call(this,ne,new zo(Ie))||this;return Le.stump=new Ka(Le),Le.storageTrie=new we(Ae.et),$e&&Le.replace($e),Le}return R.prototype.addLayer=function(q,ne){return this.stump.addLayer(q,ne)},R.prototype.removeLayer=function(){return this},R.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},R}(w);w.Root=l})(ha||(ha={}));var wi=function(w){(0,d.C6)(l,w);function l(S,R,q,ne){var se=w.call(this,R.policies,ne)||this;return se.id=S,se.parent=R,se.replay=q,se.group=ne,q(se),se}return l.prototype.addLayer=function(S,R){return new l(S,this,R,this.group)},l.prototype.removeLayer=function(S){var R=this,q=this.parent.removeLayer(S);return S===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(ne){var se=R.data[ne],Ie=q.lookup(ne);Ie?se?se!==Ie&&Object.keys(se).forEach(function($e){(0,j.L)(se[$e],Ie[$e])||R.group.dirty(ne,$e)}):(R.group.dirty(ne,"__exists"),Object.keys(Ie).forEach(function($e){R.group.dirty(ne,$e)})):R.delete(ne)}),q):q===this.parent?this:q.addLayer(this.id,this.replay)},l.prototype.toObject=function(){return(0,d.Cl)((0,d.Cl)({},this.parent.toObject()),this.data)},l.prototype.findChildRefIds=function(S){var R=this.parent.findChildRefIds(S);return k.call(this.data,S)?(0,d.Cl)((0,d.Cl)({},R),w.prototype.findChildRefIds.call(this,S)):R},l.prototype.getStorage=function(){for(var S=this.parent;S.parent;)S=S.parent;return S.getStorage.apply(S,arguments)},l}(ha),Ka=function(w){(0,d.C6)(l,w);function l(S){return w.call(this,"EntityStore.Stump",S,function(){},new zo(S.group.caching,S.group))||this}return l.prototype.removeLayer=function(){return this},l.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},l}(wi);function Na(w,l,S){var R=w[S],q=l[S];return(0,j.L)(R,q)?R:q}function Eo(w){return!!(w instanceof ha&&w.group.caching)}function Ns(w){return[w.selectionSet,w.objectOrReference,w.context,w.context.canonizeResults]}var Ls=function(){function w(l){var S=this;this.knownResults=new(Ae.et?WeakMap:Map),this.config=(0,U.o)(l,{addTypename:l.addTypename!==!1,canonizeResults:de(l)}),this.canon=l.canon||new tt,this.executeSelectionSet=Ot(function(R){var q,ne=R.context.canonizeResults,se=Ns(R);se[3]=!ne;var Ie=(q=S.executeSelectionSet).peek.apply(q,se);return Ie?ne?(0,d.Cl)((0,d.Cl)({},Ie),{result:S.canon.admit(Ie.result)}):Ie:(So(R.context.store,R.enclosingRef.__ref),S.execSelectionSetImpl(R))},{max:this.config.resultCacheMaxSize,keyArgs:Ns,makeCacheKey:function(R,q,ne,se){if(Eo(ne.store))return ne.store.makeCacheKey(R,(0,b.A_)(q)?q.__ref:q,ne.varString,se)}}),this.executeSubSelectedArray=Ot(function(R){return So(R.context.store,R.enclosingRef.__ref),S.execSubSelectedArrayImpl(R)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(R){var q=R.field,ne=R.array,se=R.context;if(Eo(se.store))return se.store.makeCacheKey(q,ne,se.varString)}})}return w.prototype.resetCanon=function(){this.canon=new tt},w.prototype.diffQueryAgainstStore=function(l){var S=l.store,R=l.query,q=l.rootId,ne=q===void 0?"ROOT_QUERY":q,se=l.variables,Ie=l.returnPartialData,$e=Ie===void 0?!0:Ie,Le=l.canonizeResults,Qe=Le===void 0?this.config.canonizeResults:Le,et=this.config.cache.policies;se=(0,d.Cl)((0,d.Cl)({},(0,Se.wY)((0,Se.AT)(R))),se);var ze=(0,b.WU)(ne),st=this.executeSelectionSet({selectionSet:(0,Se.Vn)(R).selectionSet,objectOrReference:ze,enclosingRef:ze,context:{store:S,query:R,policies:et,variables:se,varString:Pe(se),canonizeResults:Qe,fragmentMap:(0,cn.JG)((0,Se.zK)(R))}}),bt;if(st.missing&&(bt=[new po(ou(st.missing),st.missing,R,se)],!$e))throw bt[0];return{result:st.result,complete:!bt,missing:bt}},w.prototype.isFresh=function(l,S,R,q){if(Eo(q.store)&&this.knownResults.get(l)===R){var ne=this.executeSelectionSet.peek(R,S,q,this.canon.isKnown(l));if(ne&&l===ne.result)return!0}return!1},w.prototype.execSelectionSetImpl=function(l){var S=this,R=l.selectionSet,q=l.objectOrReference,ne=l.enclosingRef,se=l.context;if((0,b.A_)(q)&&!se.policies.rootTypenamesById[q.__ref]&&!se.store.has(q.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(q.__ref," object")};var Ie=se.variables,$e=se.policies,Le=se.store,Qe=Le.getFieldValue(q,"__typename"),et=[],ze,st=new I.ZI;this.config.addTypename&&typeof Qe=="string"&&!$e.rootIdsByTypename[Qe]&&et.push({__typename:Qe});function bt(Ct,Yt){var pr;return Ct.missing&&(ze=st.merge(ze,(pr={},pr[Yt]=Ct.missing,pr))),Ct.result}var At=new Set(R.selections);At.forEach(function(Ct){var Yt,pr;if(!!(0,C.MS)(Ct,Ie))if((0,b.dt)(Ct)){var or=$e.readField({fieldName:Ct.name.value,field:Ct,variables:se.variables,from:q},se),ir=(0,b.ue)(Ct);or===void 0?je.XY.added(Ct)||(ze=st.merge(ze,(Yt={},Yt[ir]="Can't find field '".concat(Ct.name.value,"' on ").concat((0,b.A_)(q)?q.__ref+" object":"object "+JSON.stringify(q,null,2)),Yt))):at(or)?or=bt(S.executeSubSelectedArray({field:Ct,array:or,enclosingRef:ne,context:se}),ir):Ct.selectionSet?or!=null&&(or=bt(S.executeSelectionSet({selectionSet:Ct.selectionSet,objectOrReference:or,enclosingRef:(0,b.A_)(or)?or:ne,context:se}),ir)):se.canonizeResults&&(or=S.canon.pass(or)),or!==void 0&&et.push((pr={},pr[ir]=or,pr))}else{var en=(0,cn.HQ)(Ct,se.fragmentMap);en&&$e.fragmentMatches(en,Qe)&&en.selectionSet.selections.forEach(At.add,At)}});var It=(0,I.IM)(et),wt={result:It,missing:ze},ur=se.canonizeResults?this.canon.admit(wt):(0,Wo.G)(wt);return ur.result&&this.knownResults.set(ur.result,R),ur},w.prototype.execSubSelectedArrayImpl=function(l){var S=this,R=l.field,q=l.array,ne=l.enclosingRef,se=l.context,Ie,$e=new I.ZI;function Le(Qe,et){var ze;return Qe.missing&&(Ie=$e.merge(Ie,(ze={},ze[et]=Qe.missing,ze))),Qe.result}return R.selectionSet&&(q=q.filter(se.store.canRead)),q=q.map(function(Qe,et){return Qe===null?null:at(Qe)?Le(S.executeSubSelectedArray({field:R,array:Qe,enclosingRef:ne,context:se}),et):R.selectionSet?Le(S.executeSelectionSet({selectionSet:R.selectionSet,objectOrReference:Qe,enclosingRef:(0,b.A_)(Qe)?Qe:ne,context:se}),et):(__DEV__&&ra(se.store,R,Qe),Qe)}),{result:se.canonizeResults?this.canon.admit(q):q,missing:Ie}},w}();function ou(w){try{JSON.stringify(w,function(l,S){if(typeof S=="string")throw S;return S})}catch(l){return l}}function ra(w,l,S){if(!l.selectionSet){var R=new Set([S]);R.forEach(function(q){(0,Ne.U)(q)&&(__DEV__?(0,T.V1)(!(0,b.A_)(q),"Missing selection set for object of type ".concat(ae(w,q)," returned for query field ").concat(l.name.value)):(0,T.V1)(!(0,b.A_)(q),5),Object.values(q).forEach(R.add,R))})}}var on=p(6563),qr=Object.create(null);function su(w){var l=JSON.stringify(w);return qr[l]||(qr[l]=Object.create(null))}function ge(w){var l=su(w);return l.keyFieldsFn||(l.keyFieldsFn=function(S,R){var q=function(se,Ie){return R.readField(Ie,se)},ne=R.keyObject=Ze(w,function(se){var Ie=Cr(R.storeObject,se,q);return Ie===void 0&&S!==R.storeObject&&k.call(S,se[0])&&(Ie=Cr(S,se,Or)),__DEV__?(0,T.V1)(Ie!==void 0,"Missing field '".concat(se.join("."),"' while extracting keyFields from ").concat(JSON.stringify(S))):(0,T.V1)(Ie!==void 0,2),Ie});return"".concat(R.typename,":").concat(JSON.stringify(ne))})}function ke(w){var l=su(w);return l.keyArgsFn||(l.keyArgsFn=function(S,R){var q=R.field,ne=R.variables,se=R.fieldName,Ie=Ze(w,function(Le){var Qe=Le[0],et=Qe.charAt(0);if(et==="@"){if(q&&(0,pt.E)(q.directives)){var ze=Qe.slice(1),st=q.directives.find(function(wt){return wt.name.value===ze}),bt=st&&(0,b.MB)(st,ne);return bt&&Cr(bt,Le.slice(1))}return}if(et==="$"){var At=Qe.slice(1);if(ne&&k.call(ne,At)){var It=Le.slice(0);return It[0]=At,Cr(ne,It)}return}if(S)return Cr(S,Le)}),$e=JSON.stringify(Ie);return(S||$e!=="{}")&&(se+=":"+$e),se})}function Ze(w,l){var S=new I.ZI;return Dt(w).reduce(function(R,q){var ne,se=l(q);if(se!==void 0){for(var Ie=q.length-1;Ie>=0;--Ie)se=(ne={},ne[q[Ie]]=se,ne);R=S.merge(R,se)}return R},Object.create(null))}function Dt(w){var l=su(w);if(!l.paths){var S=l.paths=[],R=[];w.forEach(function(q,ne){at(q)?(Dt(q).forEach(function(se){return S.push(R.concat(se))}),R.length=0):(R.push(q),at(w[ne+1])||(S.push(R.slice(0)),R.length=0))})}return l.paths}function Or(w,l){return w[l]}function Cr(w,l,S){return S=S||Or,Kr(l.reduce(function R(q,ne){return at(q)?q.map(function(se){return R(se,ne)}):q&&S(q,ne)},w))}function Kr(w){return(0,Ne.U)(w)?at(w)?w.map(Kr):Ze(Object.keys(w).sort(),function(l){return Cr(w,l)}):w}b.o5.setStringify(Pe);function Gt(w){return w.args!==void 0?w.args:w.field?(0,b.MB)(w.field,w.variables):null}var sn=function(){},Kn=function(w,l){return l.fieldName},ai=function(w,l,S){var R=S.mergeObjects;return R(w,l)},Wr=function(w,l){return l},Gn=function(){function w(l){this.config=l,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,d.Cl)({dataIdFromObject:Y},l),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),l.possibleTypes&&this.addPossibleTypes(l.possibleTypes),l.typePolicies&&this.addTypePolicies(l.typePolicies)}return w.prototype.identify=function(l,S){var R,q=this,ne=S&&(S.typename||((R=S.storeObject)===null||R===void 0?void 0:R.__typename))||l.__typename;if(ne===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var se=S&&S.storeObject||l,Ie=(0,d.Cl)((0,d.Cl)({},S),{typename:ne,storeObject:se,readField:S&&S.readField||function(){var ze=Wa(arguments,se);return q.readField(ze,{store:q.cache.data,variables:ze.variables})}}),$e,Le=ne&&this.getTypePolicy(ne),Qe=Le&&Le.keyFn||this.config.dataIdFromObject;Qe;){var et=Qe(l,Ie);if(at(et))Qe=ge(et);else{$e=et;break}}return $e=$e?String($e):void 0,Ie.keyObject?[$e,Ie.keyObject]:[$e]},w.prototype.addTypePolicies=function(l){var S=this;Object.keys(l).forEach(function(R){var q=l[R],ne=q.queryType,se=q.mutationType,Ie=q.subscriptionType,$e=(0,d.Tt)(q,["queryType","mutationType","subscriptionType"]);ne&&S.setRootTypename("Query",R),se&&S.setRootTypename("Mutation",R),Ie&&S.setRootTypename("Subscription",R),k.call(S.toBeAdded,R)?S.toBeAdded[R].push($e):S.toBeAdded[R]=[$e]})},w.prototype.updateTypePolicy=function(l,S){var R=this,q=this.getTypePolicy(l),ne=S.keyFields,se=S.fields;function Ie($e,Le){$e.merge=typeof Le=="function"?Le:Le===!0?ai:Le===!1?Wr:$e.merge}Ie(q,S.merge),q.keyFn=ne===!1?sn:at(ne)?ge(ne):typeof ne=="function"?ne:q.keyFn,se&&Object.keys(se).forEach(function($e){var Le=R.getFieldPolicy(l,$e,!0),Qe=se[$e];if(typeof Qe=="function")Le.read=Qe;else{var et=Qe.keyArgs,ze=Qe.read,st=Qe.merge;Le.keyFn=et===!1?Kn:at(et)?ke(et):typeof et=="function"?et:Le.keyFn,typeof ze=="function"&&(Le.read=ze),Ie(Le,st)}Le.read&&Le.merge&&(Le.keyFn=Le.keyFn||Kn)})},w.prototype.setRootTypename=function(l,S){S===void 0&&(S=l);var R="ROOT_"+l.toUpperCase(),q=this.rootTypenamesById[R];S!==q&&(__DEV__?(0,T.V1)(!q||q===l,"Cannot change root ".concat(l," __typename more than once")):(0,T.V1)(!q||q===l,3),q&&delete this.rootIdsByTypename[q],this.rootIdsByTypename[S]=R,this.rootTypenamesById[R]=S)},w.prototype.addPossibleTypes=function(l){var S=this;this.usingPossibleTypes=!0,Object.keys(l).forEach(function(R){S.getSupertypeSet(R,!0),l[R].forEach(function(q){S.getSupertypeSet(q,!0).add(R);var ne=q.match(re);(!ne||ne[0]!==q)&&S.fuzzySubtypes.set(q,new RegExp(q))})})},w.prototype.getTypePolicy=function(l){var S=this;if(!k.call(this.typePolicies,l)){var R=this.typePolicies[l]=Object.create(null);R.fields=Object.create(null);var q=this.supertypeMap.get(l);q&&q.size&&q.forEach(function(se){var Ie=S.getTypePolicy(se),$e=Ie.fields,Le=(0,d.Tt)(Ie,["fields"]);Object.assign(R,Le),Object.assign(R.fields,$e)})}var ne=this.toBeAdded[l];return ne&&ne.length&&ne.splice(0).forEach(function(se){S.updateTypePolicy(l,se)}),this.typePolicies[l]},w.prototype.getFieldPolicy=function(l,S,R){if(l){var q=this.getTypePolicy(l).fields;return q[S]||R&&(q[S]=Object.create(null))}},w.prototype.getSupertypeSet=function(l,S){var R=this.supertypeMap.get(l);return!R&&S&&this.supertypeMap.set(l,R=new Set),R},w.prototype.fragmentMatches=function(l,S,R,q){var ne=this;if(!l.typeCondition)return!0;if(!S)return!1;var se=l.typeCondition.name.value;if(S===se)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(se))for(var Ie=this.getSupertypeSet(S,!0),$e=[Ie],Le=function(bt){var At=ne.getSupertypeSet(bt,!1);At&&At.size&&$e.indexOf(At)<0&&$e.push(At)},Qe=!!(R&&this.fuzzySubtypes.size),et=!1,ze=0;ze<$e.length;++ze){var st=$e[ze];if(st.has(se))return Ie.has(se)||(et&&__DEV__&&T.V1.warn("Inferring subtype ".concat(S," of supertype ").concat(se)),Ie.add(se)),!0;st.forEach(Le),Qe&&ze===$e.length-1&&ve(l.selectionSet,R,q)&&(Qe=!1,et=!0,this.fuzzySubtypes.forEach(function(bt,At){var It=S.match(bt);It&&It[0]===S&&Le(At)}))}return!1},w.prototype.hasKeyArgs=function(l,S){var R=this.getFieldPolicy(l,S,!1);return!!(R&&R.keyFn)},w.prototype.getStoreFieldName=function(l){var S=l.typename,R=l.fieldName,q=this.getFieldPolicy(S,R,!1),ne,se=q&&q.keyFn;if(se&&S)for(var Ie={typename:S,fieldName:R,field:l.field||null,variables:l.variables},$e=Gt(l);se;){var Le=se($e,Ie);if(at(Le))se=ke(Le);else{ne=Le||R;break}}return ne===void 0&&(ne=l.field?(0,b.Ii)(l.field,l.variables):(0,b.o5)(R,Gt(l))),ne===!1?R:R===z(ne)?ne:R+":"+ne},w.prototype.readField=function(l,S){var R=l.from;if(!!R){var q=l.field||l.fieldName;if(!!q){if(l.typename===void 0){var ne=S.store.getFieldValue(R,"__typename");ne&&(l.typename=ne)}var se=this.getStoreFieldName(l),Ie=z(se),$e=S.store.getFieldValue(R,se),Le=this.getFieldPolicy(l.typename,Ie,!1),Qe=Le&&Le.read;if(Qe){var et=Ui(this,R,l,S,S.store.getStorage((0,b.A_)(R)?R.__ref:R,se));return Nt.withValue(this.cache,Qe,[$e,et])}return $e}}},w.prototype.getReadFunction=function(l,S){var R=this.getFieldPolicy(l,S,!1);return R&&R.read},w.prototype.getMergeFunction=function(l,S,R){var q=this.getFieldPolicy(l,S,!1),ne=q&&q.merge;return!ne&&R&&(q=this.getTypePolicy(R),ne=q&&q.merge),ne},w.prototype.runMergeFunction=function(l,S,R,q,ne){var se=R.field,Ie=R.typename,$e=R.merge;return $e===ai?uu(q.store)(l,S):$e===Wr?S:(q.overwrite&&(l=void 0),$e(l,S,Ui(this,void 0,{typename:Ie,fieldName:se.name.value,field:se,variables:q.variables},q,ne||Object.create(null))))},w}();function Ui(w,l,S,R,q){var ne=w.getStoreFieldName(S),se=z(ne),Ie=S.variables||R.variables,$e=R.store,Le=$e.toReference,Qe=$e.canRead;return{args:Gt(S),field:S.field||null,fieldName:se,storeFieldName:ne,variables:Ie,isReference:b.A_,toReference:Le,storage:q,cache:w.cache,canRead:Qe,readField:function(){return w.readField(Wa(arguments,l,Ie),R)},mergeObjects:uu(R.store)}}function Wa(w,l,S){var R=w[0],q=w[1],ne=w.length,se;return typeof R=="string"?se={fieldName:R,from:ne>1?q:l}:(se=(0,d.Cl)({},R),k.call(se,"from")||(se.from=l)),__DEV__&&se.from===void 0&&__DEV__&&T.V1.warn("Undefined 'from' passed to readField with arguments ".concat((0,on.p)(Array.from(w)))),se.variables===void 0&&(se.variables=S),se}function uu(w){return function(S,R){if(at(S)||at(R))throw __DEV__?new T.zU("Cannot automatically merge arrays"):new T.zU(4);if((0,Ne.U)(S)&&(0,Ne.U)(R)){var q=w.getFieldValue(S,"__typename"),ne=w.getFieldValue(R,"__typename"),se=q&&ne&&q!==ne;if(se)return R;if((0,b.A_)(S)&&ye(R))return w.merge(S.__ref,R),S;if(ye(S)&&(0,b.A_)(R))return w.merge(S,R.__ref),R;if(ye(S)&&ye(R))return(0,d.Cl)((0,d.Cl)({},S),R)}return R}}function cu(w,l,S){var R="".concat(l).concat(S),q=w.flavors.get(R);return q||w.flavors.set(R,q=w.clientOnly===l&&w.deferred===S?w:(0,d.Cl)((0,d.Cl)({},w),{clientOnly:l,deferred:S})),q}var j_=function(){function w(l,S){this.cache=l,this.reader=S}return w.prototype.writeToStore=function(l,S){var R=this,q=S.query,ne=S.result,se=S.dataId,Ie=S.variables,$e=S.overwrite,Le=(0,Se.Vu)(q),Qe=Je();Ie=(0,d.Cl)((0,d.Cl)({},(0,Se.wY)(Le)),Ie);var et={store:l,written:Object.create(null),merge:function(st,bt){return Qe.merge(st,bt)},variables:Ie,varString:Pe(Ie),fragmentMap:(0,cn.JG)((0,Se.zK)(q)),overwrite:!!$e,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},ze=this.processSelectionSet({result:ne||Object.create(null),dataId:se,selectionSet:Le.selectionSet,mergeTree:{map:new Map},context:et});if(!(0,b.A_)(ze))throw __DEV__?new T.zU("Could not identify object ".concat(JSON.stringify(ne))):new T.zU(6);return et.incomingById.forEach(function(st,bt){var At=st.storeObject,It=st.mergeTree,wt=st.fieldNodeSet,ur=(0,b.WU)(bt);if(It&&It.map.size){var Ct=R.applyMerges(It,ur,At,et);if((0,b.A_)(Ct))return;At=Ct}if(__DEV__&&!et.overwrite){var Yt=Object.create(null);wt.forEach(function(ir){ir.selectionSet&&(Yt[ir.name.value]=!0)});var pr=function(ir){return Yt[z(ir)]===!0},or=function(ir){var en=It&&It.map.get(ir);return Boolean(en&&en.info&&en.info.merge)};Object.keys(At).forEach(function(ir){pr(ir)&&!or(ir)&&vo(ur,At,ir,et.store)})}l.merge(bt,At)}),l.retain(ze.__ref),ze},w.prototype.processSelectionSet=function(l){var S=this,R=l.dataId,q=l.result,ne=l.selectionSet,se=l.context,Ie=l.mergeTree,$e=this.cache.policies,Le=Object.create(null),Qe=R&&$e.rootTypenamesById[R]||(0,b.D$)(q,ne,se.fragmentMap)||R&&se.store.get(R,"__typename");typeof Qe=="string"&&(Le.__typename=Qe);var et=function(){var Ct=Wa(arguments,Le,se.variables);if((0,b.A_)(Ct.from)){var Yt=se.incomingById.get(Ct.from.__ref);if(Yt){var pr=$e.readField((0,d.Cl)((0,d.Cl)({},Ct),{from:Yt.storeObject}),se);if(pr!==void 0)return pr}}return $e.readField(Ct,se)},ze=new Set;this.flattenFields(ne,q,se,Qe).forEach(function(Ct,Yt){var pr,or=(0,b.ue)(Yt),ir=q[or];if(ze.add(Yt),ir!==void 0){var en=$e.getStoreFieldName({typename:Qe,fieldName:Yt.name.value,field:Yt,variables:Ct.variables}),xi=Si(Ie,en),An=S.processFieldValue(ir,Yt,Yt.selectionSet?cu(Ct,!1,!1):Ct,xi),ei=void 0;Yt.selectionSet&&((0,b.A_)(An)||ye(An))&&(ei=et("__typename",An));var fu=$e.getMergeFunction(Qe,Yt.name.value,ei);fu?xi.info={field:Yt,typename:Qe,merge:fu}:ic(Ie,en),Le=Ct.merge(Le,(pr={},pr[en]=An,pr))}else __DEV__&&!Ct.clientOnly&&!Ct.deferred&&!je.XY.added(Yt)&&!$e.getReadFunction(Qe,Yt.name.value)&&__DEV__&&T.V1.error("Missing field '".concat((0,b.ue)(Yt),"' while writing result ").concat(JSON.stringify(q,null,2)).substring(0,1e3))});try{var st=$e.identify(q,{typename:Qe,selectionSet:ne,fragmentMap:se.fragmentMap,storeObject:Le,readField:et}),bt=st[0],At=st[1];R=R||bt,At&&(Le=se.merge(Le,At))}catch(Ct){if(!R)throw Ct}if(typeof R=="string"){var It=(0,b.WU)(R),wt=se.written[R]||(se.written[R]=[]);if(wt.indexOf(ne)>=0||(wt.push(ne),this.reader&&this.reader.isFresh(q,It,ne,se)))return It;var ur=se.incomingById.get(R);return ur?(ur.storeObject=se.merge(ur.storeObject,Le),ur.mergeTree=nc(ur.mergeTree,Ie),ze.forEach(function(Ct){return ur.fieldNodeSet.add(Ct)})):se.incomingById.set(R,{storeObject:Le,mergeTree:oi(Ie)?void 0:Ie,fieldNodeSet:ze}),It}return Le},w.prototype.processFieldValue=function(l,S,R,q){var ne=this;return!S.selectionSet||l===null?__DEV__?(0,Qt.m)(l):l:at(l)?l.map(function(se,Ie){var $e=ne.processFieldValue(se,S,R,Si(q,Ie));return ic(q,Ie),$e}):this.processSelectionSet({result:l,selectionSet:S.selectionSet,context:R,mergeTree:q})},w.prototype.flattenFields=function(l,S,R,q){q===void 0&&(q=(0,b.D$)(S,l,R.fragmentMap));var ne=new Map,se=this.cache.policies,Ie=new we(!1);return function $e(Le,Qe){var et=Ie.lookup(Le,Qe.clientOnly,Qe.deferred);et.visited||(et.visited=!0,Le.selections.forEach(function(ze){if(!!(0,C.MS)(ze,R.variables)){var st=Qe.clientOnly,bt=Qe.deferred;if(!(st&&bt)&&(0,pt.E)(ze.directives)&&ze.directives.forEach(function(wt){var ur=wt.name.value;if(ur==="client"&&(st=!0),ur==="defer"){var Ct=(0,b.MB)(wt,R.variables);(!Ct||Ct.if!==!1)&&(bt=!0)}}),(0,b.dt)(ze)){var At=ne.get(ze);At&&(st=st&&At.clientOnly,bt=bt&&At.deferred),ne.set(ze,cu(R,st,bt))}else{var It=(0,cn.HQ)(ze,R.fragmentMap);It&&se.fragmentMatches(It,q,S,R.variables)&&$e(It.selectionSet,cu(R,st,bt))}}}))}(l,R),ne},w.prototype.applyMerges=function(l,S,R,q,ne){var se,Ie=this;if(l.map.size&&!(0,b.A_)(R)){var $e=!at(R)&&((0,b.A_)(S)||ye(S))?S:void 0,Le=R;$e&&!ne&&(ne=[(0,b.A_)($e)?$e.__ref:$e]);var Qe,et=function(ze,st){return at(ze)?typeof st=="number"?ze[st]:void 0:q.store.getFieldValue(ze,String(st))};l.map.forEach(function(ze,st){var bt=et($e,st),At=et(Le,st);if(At!==void 0){ne&&ne.push(st);var It=Ie.applyMerges(ze,bt,At,q,ne);It!==At&&(Qe=Qe||new Map,Qe.set(st,It)),ne&&(0,T.V1)(ne.pop()===st)}}),Qe&&(R=at(Le)?Le.slice(0):(0,d.Cl)({},Le),Qe.forEach(function(ze,st){R[st]=ze}))}return l.info?this.cache.policies.runMergeFunction(S,R,l.info,q,ne&&(se=q.store).getStorage.apply(se,ne)):R},w}(),rc=[];function Si(w,l){var S=w.map;return S.has(l)||S.set(l,rc.pop()||{map:new Map}),S.get(l)}function nc(w,l){if(w===l||!l||oi(l))return w;if(!w||oi(w))return l;var S=w.info&&l.info?(0,d.Cl)((0,d.Cl)({},w.info),l.info):w.info||l.info,R=w.map.size&&l.map.size,q=R?new Map:w.map.size?w.map:l.map,ne={info:S,map:q};if(R){var se=new Set(l.map.keys());w.map.forEach(function(Ie,$e){ne.map.set($e,nc(Ie,l.map.get($e))),se.delete($e)}),se.forEach(function(Ie){ne.map.set(Ie,nc(l.map.get(Ie),w.map.get(Ie)))})}return ne}function oi(w){return!w||!(w.info||w.map.size)}function ic(w,l){var S=w.map,R=S.get(l);R&&oi(R)&&(rc.push(R),S.delete(l))}var ac=new Set;function vo(w,l,S,R){var q=function(et){var ze=R.getFieldValue(et,S);return typeof ze=="object"&&ze},ne=q(w);if(!!ne){var se=q(l);if(!!se&&!(0,b.A_)(ne)&&!(0,j.L)(ne,se)&&!Object.keys(ne).every(function(et){return R.getFieldValue(se,et)!==void 0})){var Ie=R.getFieldValue(w,"__typename")||R.getFieldValue(l,"__typename"),$e=z(S),Le="".concat(Ie,".").concat($e);if(!ac.has(Le)){ac.add(Le);var Qe=[];!at(ne)&&!at(se)&&[ne,se].forEach(function(et){var ze=R.getFieldValue(et,"__typename");typeof ze=="string"&&!Qe.includes(ze)&&Qe.push(ze)}),__DEV__&&T.V1.warn("Cache data may be lost when replacing the ".concat($e," field of a ").concat(Ie,` object.
75
75
 
76
76
  To address this problem (which is not a bug in Apollo Client), `).concat(Qe.length?"either ensure all objects of type "+Qe.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(Le,` field, so InMemoryCache can safely merge these objects:
77
77
 
@@ -82,7 +82,7 @@ For more information about these options, please refer to the documentation:
82
82
 
83
83
  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers
84
84
  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects
85
- `))}}}}var lu=function(w){(0,d.C6)(l,w);function l(S){S===void 0&&(S={});var R=w.call(this)||this;return R.watches=new Set,R.typenameDocumentCache=new Map,R.makeVar=nr,R.txCount=0,R.config=Re(S),R.addTypename=!!R.config.addTypename,R.policies=new Gn({cache:R,dataIdFromObject:R.config.dataIdFromObject,possibleTypes:R.config.possibleTypes,typePolicies:R.config.typePolicies}),R.init(),R}return l.prototype.init=function(){var S=this.data=new ha.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=S.stump,this.resetResultCache()},l.prototype.resetResultCache=function(S){var R=this,q=this.storeReader;this.storeWriter=new k_(this,this.storeReader=new Ls({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:de(this.config),canon:S?void 0:q&&q.canon})),this.maybeBroadcastWatch=Ot(function(ne,se){return R.broadcastWatch(ne,se)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(ne){var se=ne.optimistic?R.optimisticData:R.data;if(Eo(se)){var Ie=ne.optimistic,$e=ne.rootId,Le=ne.variables;return se.makeCacheKey(ne.query,ne.callback,Pe({optimistic:Ie,rootId:$e,variables:Le}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(ne){return ne.resetCaching()})},l.prototype.restore=function(S){return this.init(),S&&this.data.replace(S),this},l.prototype.extract=function(S){return S===void 0&&(S=!1),(S?this.optimisticData:this.data).extract()},l.prototype.read=function(S){var R=S.returnPartialData,q=R===void 0?!1:R;try{return this.storeReader.diffQueryAgainstStore((0,d.Cl)((0,d.Cl)({},S),{store:S.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:q})).result||null}catch(ne){if(ne instanceof po)return null;throw ne}},l.prototype.write=function(S){try{return++this.txCount,this.storeWriter.writeToStore(this.data,S)}finally{!--this.txCount&&S.broadcast!==!1&&this.broadcastWatches()}},l.prototype.modify=function(S){if(k.call(S,"id")&&!S.id)return!1;var R=S.optimistic?this.optimisticData:this.data;try{return++this.txCount,R.modify(S.id||"ROOT_QUERY",S.fields)}finally{!--this.txCount&&S.broadcast!==!1&&this.broadcastWatches()}},l.prototype.diff=function(S){return this.storeReader.diffQueryAgainstStore((0,d.Cl)((0,d.Cl)({},S),{store:S.optimistic?this.optimisticData:this.data,rootId:S.id||"ROOT_QUERY",config:this.config}))},l.prototype.watch=function(S){var R=this;return this.watches.size||xr(this),this.watches.add(S),S.immediate&&this.maybeBroadcastWatch(S),function(){R.watches.delete(S)&&!R.watches.size&&Lt(R),R.maybeBroadcastWatch.forget(S)}},l.prototype.gc=function(S){Pe.reset();var R=this.optimisticData.gc();return S&&!this.txCount&&(S.resetResultCache?this.resetResultCache(S.resetResultIdentities):S.resetResultIdentities&&this.storeReader.resetCanon()),R},l.prototype.retain=function(S,R){return(R?this.optimisticData:this.data).retain(S)},l.prototype.release=function(S,R){return(R?this.optimisticData:this.data).release(S)},l.prototype.identify=function(S){if((0,b.A_)(S))return S.__ref;try{return this.policies.identify(S)[0]}catch(R){__DEV__&&T.V1.warn(R)}},l.prototype.evict=function(S){if(!S.id){if(k.call(S,"id"))return!1;S=(0,d.Cl)((0,d.Cl)({},S),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(S,this.data)}finally{!--this.txCount&&S.broadcast!==!1&&this.broadcastWatches()}},l.prototype.reset=function(S){var R=this;return this.init(),Pe.reset(),S&&S.discardWatches?(this.watches.forEach(function(q){return R.maybeBroadcastWatch.forget(q)}),this.watches.clear(),Lt(this)):this.broadcastWatches(),Promise.resolve()},l.prototype.removeOptimistic=function(S){var R=this.optimisticData.removeLayer(S);R!==this.optimisticData&&(this.optimisticData=R,this.broadcastWatches())},l.prototype.batch=function(S){var R=this,q=S.update,ne=S.optimistic,se=ne===void 0?!0:ne,Ie=S.removeOptimistic,$e=S.onWatchUpdated,Le,Qe=function(ze){var st=R,bt=st.data,At=st.optimisticData;++R.txCount,ze&&(R.data=R.optimisticData=ze);try{return Le=q(R)}finally{--R.txCount,R.data=bt,R.optimisticData=At}},et=new Set;return $e&&!this.txCount&&this.broadcastWatches((0,d.Cl)((0,d.Cl)({},S),{onWatchUpdated:function(ze){return et.add(ze),!1}})),typeof se=="string"?this.optimisticData=this.optimisticData.addLayer(se,Qe):se===!1?Qe(this.data):Qe(),typeof Ie=="string"&&(this.optimisticData=this.optimisticData.removeLayer(Ie)),$e&&et.size?(this.broadcastWatches((0,d.Cl)((0,d.Cl)({},S),{onWatchUpdated:function(ze,st){var bt=$e.call(this,ze,st);return bt!==!1&&et.delete(ze),bt}})),et.size&&et.forEach(function(ze){return R.maybeBroadcastWatch.dirty(ze)})):this.broadcastWatches(S),Le},l.prototype.performTransaction=function(S,R){return this.batch({update:S,optimistic:R||R!==null})},l.prototype.transformDocument=function(S){if(this.addTypename){var R=this.typenameDocumentCache.get(S);return R||(R=(0,je.XY)(S),this.typenameDocumentCache.set(S,R),this.typenameDocumentCache.set(R,R)),R}return S},l.prototype.broadcastWatches=function(S){var R=this;this.txCount||this.watches.forEach(function(q){return R.maybeBroadcastWatch(q,S)})},l.prototype.broadcastWatch=function(S,R){var q=S.lastDiff,ne=this.diff(S);R&&(S.optimistic&&typeof R.optimistic=="string"&&(ne.fromOptimisticTransaction=!0),R.onWatchUpdated&&R.onWatchUpdated.call(this,S,ne,q)===!1)||(!q||!(0,j.L)(q.result,ne.result))&&S.callback(S.lastDiff=ne,q)},l}(Ko),Qa=p(9891);function Tn(w){var l=!1;return new Promise(function(S,R){w.subscribe({next:function(q){l?__DEV__&&T.V1.warn("Promise Wrapper does not support multiple results from Observable"):(l=!0,S(q))},error:R})})}function La(w){return new y.c(function(l){w.then(function(S){l.next(S),l.complete()}).catch(l.error.bind(l))})}var Xo=p(3848),ac=p(9371),Sa=p(4370);(0,ac.Q9)(T.IJ?"log":"silent")},5950:(Ee,K,p)=>{"use strict";p.d(K,{b:()=>d,p:()=>T});var T;(function(D){D[D.loading=1]="loading",D[D.setVariables=2]="setVariables",D[D.fetchMore=3]="fetchMore",D[D.refetch=4]="refetch",D[D.poll=6]="poll",D[D.ready=7]="ready",D[D.error=8]="error"})(T||(T={}));function d(D){return D?D<7:!1}},3570:(Ee,K,p)=>{"use strict";p.d(K,{K:()=>A,M:()=>H});var T=p(5608),d=p(7432),D=p(3767);function H(y){return y.hasOwnProperty("graphQLErrors")}var V=function(y){var m="";if((0,D.E)(y.graphQLErrors)||(0,D.E)(y.clientErrors)){var P=(y.graphQLErrors||[]).concat(y.clientErrors||[]);P.forEach(function(g){var $=g?g.message:"Error message not found.";m+="".concat($,`
85
+ `))}}}}var lu=function(w){(0,d.C6)(l,w);function l(S){S===void 0&&(S={});var R=w.call(this)||this;return R.watches=new Set,R.typenameDocumentCache=new Map,R.makeVar=nr,R.txCount=0,R.config=Re(S),R.addTypename=!!R.config.addTypename,R.policies=new Gn({cache:R,dataIdFromObject:R.config.dataIdFromObject,possibleTypes:R.config.possibleTypes,typePolicies:R.config.typePolicies}),R.init(),R}return l.prototype.init=function(){var S=this.data=new ha.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=S.stump,this.resetResultCache()},l.prototype.resetResultCache=function(S){var R=this,q=this.storeReader;this.storeWriter=new j_(this,this.storeReader=new Ls({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:de(this.config),canon:S?void 0:q&&q.canon})),this.maybeBroadcastWatch=Ot(function(ne,se){return R.broadcastWatch(ne,se)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(ne){var se=ne.optimistic?R.optimisticData:R.data;if(Eo(se)){var Ie=ne.optimistic,$e=ne.rootId,Le=ne.variables;return se.makeCacheKey(ne.query,ne.callback,Pe({optimistic:Ie,rootId:$e,variables:Le}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(ne){return ne.resetCaching()})},l.prototype.restore=function(S){return this.init(),S&&this.data.replace(S),this},l.prototype.extract=function(S){return S===void 0&&(S=!1),(S?this.optimisticData:this.data).extract()},l.prototype.read=function(S){var R=S.returnPartialData,q=R===void 0?!1:R;try{return this.storeReader.diffQueryAgainstStore((0,d.Cl)((0,d.Cl)({},S),{store:S.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:q})).result||null}catch(ne){if(ne instanceof po)return null;throw ne}},l.prototype.write=function(S){try{return++this.txCount,this.storeWriter.writeToStore(this.data,S)}finally{!--this.txCount&&S.broadcast!==!1&&this.broadcastWatches()}},l.prototype.modify=function(S){if(k.call(S,"id")&&!S.id)return!1;var R=S.optimistic?this.optimisticData:this.data;try{return++this.txCount,R.modify(S.id||"ROOT_QUERY",S.fields)}finally{!--this.txCount&&S.broadcast!==!1&&this.broadcastWatches()}},l.prototype.diff=function(S){return this.storeReader.diffQueryAgainstStore((0,d.Cl)((0,d.Cl)({},S),{store:S.optimistic?this.optimisticData:this.data,rootId:S.id||"ROOT_QUERY",config:this.config}))},l.prototype.watch=function(S){var R=this;return this.watches.size||xr(this),this.watches.add(S),S.immediate&&this.maybeBroadcastWatch(S),function(){R.watches.delete(S)&&!R.watches.size&&Lt(R),R.maybeBroadcastWatch.forget(S)}},l.prototype.gc=function(S){Pe.reset();var R=this.optimisticData.gc();return S&&!this.txCount&&(S.resetResultCache?this.resetResultCache(S.resetResultIdentities):S.resetResultIdentities&&this.storeReader.resetCanon()),R},l.prototype.retain=function(S,R){return(R?this.optimisticData:this.data).retain(S)},l.prototype.release=function(S,R){return(R?this.optimisticData:this.data).release(S)},l.prototype.identify=function(S){if((0,b.A_)(S))return S.__ref;try{return this.policies.identify(S)[0]}catch(R){__DEV__&&T.V1.warn(R)}},l.prototype.evict=function(S){if(!S.id){if(k.call(S,"id"))return!1;S=(0,d.Cl)((0,d.Cl)({},S),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(S,this.data)}finally{!--this.txCount&&S.broadcast!==!1&&this.broadcastWatches()}},l.prototype.reset=function(S){var R=this;return this.init(),Pe.reset(),S&&S.discardWatches?(this.watches.forEach(function(q){return R.maybeBroadcastWatch.forget(q)}),this.watches.clear(),Lt(this)):this.broadcastWatches(),Promise.resolve()},l.prototype.removeOptimistic=function(S){var R=this.optimisticData.removeLayer(S);R!==this.optimisticData&&(this.optimisticData=R,this.broadcastWatches())},l.prototype.batch=function(S){var R=this,q=S.update,ne=S.optimistic,se=ne===void 0?!0:ne,Ie=S.removeOptimistic,$e=S.onWatchUpdated,Le,Qe=function(ze){var st=R,bt=st.data,At=st.optimisticData;++R.txCount,ze&&(R.data=R.optimisticData=ze);try{return Le=q(R)}finally{--R.txCount,R.data=bt,R.optimisticData=At}},et=new Set;return $e&&!this.txCount&&this.broadcastWatches((0,d.Cl)((0,d.Cl)({},S),{onWatchUpdated:function(ze){return et.add(ze),!1}})),typeof se=="string"?this.optimisticData=this.optimisticData.addLayer(se,Qe):se===!1?Qe(this.data):Qe(),typeof Ie=="string"&&(this.optimisticData=this.optimisticData.removeLayer(Ie)),$e&&et.size?(this.broadcastWatches((0,d.Cl)((0,d.Cl)({},S),{onWatchUpdated:function(ze,st){var bt=$e.call(this,ze,st);return bt!==!1&&et.delete(ze),bt}})),et.size&&et.forEach(function(ze){return R.maybeBroadcastWatch.dirty(ze)})):this.broadcastWatches(S),Le},l.prototype.performTransaction=function(S,R){return this.batch({update:S,optimistic:R||R!==null})},l.prototype.transformDocument=function(S){if(this.addTypename){var R=this.typenameDocumentCache.get(S);return R||(R=(0,je.XY)(S),this.typenameDocumentCache.set(S,R),this.typenameDocumentCache.set(R,R)),R}return S},l.prototype.broadcastWatches=function(S){var R=this;this.txCount||this.watches.forEach(function(q){return R.maybeBroadcastWatch(q,S)})},l.prototype.broadcastWatch=function(S,R){var q=S.lastDiff,ne=this.diff(S);R&&(S.optimistic&&typeof R.optimistic=="string"&&(ne.fromOptimisticTransaction=!0),R.onWatchUpdated&&R.onWatchUpdated.call(this,S,ne,q)===!1)||(!q||!(0,j.L)(q.result,ne.result))&&S.callback(S.lastDiff=ne,q)},l}(Ko),Qa=p(9891);function Tn(w){var l=!1;return new Promise(function(S,R){w.subscribe({next:function(q){l?__DEV__&&T.V1.warn("Promise Wrapper does not support multiple results from Observable"):(l=!0,S(q))},error:R})})}function La(w){return new y.c(function(l){w.then(function(S){l.next(S),l.complete()}).catch(l.error.bind(l))})}var Xo=p(3848),oc=p(9371),Sa=p(4370);(0,oc.Q9)(T.IJ?"log":"silent")},5950:(Ee,K,p)=>{"use strict";p.d(K,{b:()=>d,p:()=>T});var T;(function(D){D[D.loading=1]="loading",D[D.setVariables=2]="setVariables",D[D.fetchMore=3]="fetchMore",D[D.refetch=4]="refetch",D[D.poll=6]="poll",D[D.ready=7]="ready",D[D.error=8]="error"})(T||(T={}));function d(D){return D?D<7:!1}},3570:(Ee,K,p)=>{"use strict";p.d(K,{K:()=>A,M:()=>H});var T=p(5608),d=p(7432),D=p(3767);function H(y){return y.hasOwnProperty("graphQLErrors")}var V=function(y){var m="";if((0,D.E)(y.graphQLErrors)||(0,D.E)(y.clientErrors)){var P=(y.graphQLErrors||[]).concat(y.clientErrors||[]);P.forEach(function(g){var $=g?g.message:"Error message not found.";m+="".concat($,`
86
86
  `)})}return y.networkError&&(m+="".concat(y.networkError.message,`
87
87
  `)),m=m.replace(/\n$/,""),m},A=function(y){(0,T.C6)(m,y);function m(P){var g=P.graphQLErrors,$=P.clientErrors,G=P.networkError,x=P.errorMessage,Z=P.extraInfo,F=y.call(this,x)||this;return F.graphQLErrors=g||[],F.clientErrors=$||[],F.networkError=G||null,F.message=x||V(F),F.extraInfo=Z,F.__proto__=m.prototype,F}return m}(Error)},6383:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{ApolloCache:()=>T.ApolloCache,ApolloClient:()=>T.ApolloClient,ApolloConsumer:()=>P,ApolloError:()=>T.ApolloError,ApolloLink:()=>T.ApolloLink,ApolloProvider:()=>m,Cache:()=>T.Cache,DocumentType:()=>ue,HttpLink:()=>T.HttpLink,InMemoryCache:()=>T.InMemoryCache,MissingFieldError:()=>T.MissingFieldError,NetworkStatus:()=>T.NetworkStatus,Observable:()=>T.Observable,ObservableQuery:()=>T.ObservableQuery,checkFetcher:()=>T.checkFetcher,concat:()=>T.concat,createHttpLink:()=>T.createHttpLink,createSignalIfSupported:()=>T.createSignalIfSupported,defaultDataIdFromObject:()=>T.defaultDataIdFromObject,defaultPrinter:()=>T.defaultPrinter,disableExperimentalFragmentVariables:()=>T.disableExperimentalFragmentVariables,disableFragmentWarnings:()=>T.disableFragmentWarnings,empty:()=>T.empty,enableExperimentalFragmentVariables:()=>T.enableExperimentalFragmentVariables,execute:()=>T.execute,fallbackHttpConfig:()=>T.fallbackHttpConfig,from:()=>T.from,fromError:()=>T.fromError,fromPromise:()=>T.fromPromise,getApolloContext:()=>y,gql:()=>T.gql,isApolloError:()=>T.isApolloError,isReference:()=>T.isReference,makeReference:()=>T.makeReference,makeVar:()=>T.makeVar,mergeOptions:()=>T.mergeOptions,operationName:()=>xe,parseAndCheckHttpResponse:()=>T.parseAndCheckHttpResponse,parser:()=>we,resetApolloContext:()=>y,resetCaches:()=>T.resetCaches,rewriteURIForGET:()=>T.rewriteURIForGET,selectHttpOptionsAndBody:()=>T.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>T.selectHttpOptionsAndBodyInternal,selectURI:()=>T.selectURI,serializeFetchParameter:()=>T.serializeFetchParameter,setLogVerbosity:()=>T.setLogVerbosity,split:()=>T.split,throwServerError:()=>T.throwServerError,toPromise:()=>T.toPromise,useApolloClient:()=>g,useLazyQuery:()=>oe,useMutation:()=>Re,useQuery:()=>C,useReactiveVar:()=>ae,useSubscription:()=>de});var T=p(8829),d=p(7432),D=p(4041),H=p.t(D,2),V=p(1360),A=V.ol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function y(){var re=D.createContext[A];return re||(Object.defineProperty(D.createContext,A,{value:re=D.createContext({}),enumerable:!1,writable:!1,configurable:!0}),re.displayName="ApolloContext"),re}var m=function(re){var z=re.client,ve=re.children,ye=y();return D.createElement(ye.Consumer,null,function(Je){return Je===void 0&&(Je={}),z&&Je.client!==z&&(Je=Object.assign({},Je,{client:z})),__DEV__?(0,d.V1)(Je.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,d.V1)(Je.client,26),D.createElement(ye.Provider,{value:Je},ve)})},P=function(re){var z=y();return D.createElement(z.Consumer,null,function(ve){return __DEV__?(0,d.V1)(ve&&ve.client,'Could not find "client" in the context of ApolloConsumer. Wrap the root component in an <ApolloProvider>.'):(0,d.V1)(ve&&ve.client,25),re.children(ve.client)})};function g(re){var z=(0,D.useContext)(y()),ve=re||z.client;return __DEV__?(0,d.V1)(!!ve,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):(0,d.V1)(!!ve,29),ve}var $=p(5608),G=p(1507),x=!1,Z="useSyncExternalStore",F=H[Z],te=F||function(re,z,ve){var ye=z();__DEV__&&!x&&ye!==z()&&(x=!0,__DEV__&&d.V1.error("The result of getSnapshot should be cached to avoid an infinite loop"));var Je=D.useState({inst:{value:ye,getSnapshot:z}}),at=Je[0].inst,Tt=Je[1];return V.JR?D.useLayoutEffect(function(){Object.assign(at,{value:ye,getSnapshot:z}),ie(at)&&Tt({inst:at})},[re,ye,z]):Object.assign(at,{value:ye,getSnapshot:z}),D.useEffect(function(){return ie(at)&&Tt({inst:at}),re(function(){ie(at)&&Tt({inst:at})})},[re]),ye};function ie(re){var z=re.value,ve=re.getSnapshot;try{return z!==ve()}catch{return!0}}var ce=p(5888),j=p(3570),O=p(5950),ue;(function(re){re[re.Query=0]="Query",re[re.Mutation=1]="Mutation",re[re.Subscription=2]="Subscription"})(ue||(ue={}));var be=new Map;function xe(re){var z;switch(re){case ue.Query:z="Query";break;case ue.Mutation:z="Mutation";break;case ue.Subscription:z="Subscription";break}return z}function we(re){var z=be.get(re);if(z)return z;var ve,ye,Je;__DEV__?(0,d.V1)(!!re&&!!re.kind,"Argument of ".concat(re," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,d.V1)(!!re&&!!re.kind,30);for(var at=[],Tt=[],tt=[],Pe=[],Me=0,B=re.definitions;Me<B.length;Me++){var Q=B[Me];if(Q.kind==="FragmentDefinition"){at.push(Q);continue}if(Q.kind==="OperationDefinition")switch(Q.operation){case"query":Tt.push(Q);break;case"mutation":tt.push(Q);break;case"subscription":Pe.push(Q);break}}__DEV__?(0,d.V1)(!at.length||Tt.length||tt.length||Pe.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,d.V1)(!at.length||Tt.length||tt.length||Pe.length,31),__DEV__?(0,d.V1)(Tt.length+tt.length+Pe.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(re," had ").concat(Tt.length," queries, ").concat(Pe.length," ")+"subscriptions and ".concat(tt.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):(0,d.V1)(Tt.length+tt.length+Pe.length<=1,32),ye=Tt.length?ue.Query:ue.Mutation,!Tt.length&&!tt.length&&(ye=ue.Subscription);var J=Tt.length?Tt:tt.length?tt:Pe;__DEV__?(0,d.V1)(J.length===1,"react-apollo only supports one definition per HOC. ".concat(re," had ")+"".concat(J.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):(0,d.V1)(J.length===1,33);var le=J[0];ve=le.variableDefinitions||[],le.name&&le.name.kind==="Name"?Je=le.name.value:Je="data";var Se={name:Je,type:ye,variables:ve};return be.set(re,Se),Se}function _e(re,z){var ve=we(re),ye=xe(z),Je=xe(ve.type);__DEV__?(0,d.V1)(ve.type===z,"Running a ".concat(ye," requires a graphql ")+"".concat(ye,", but a ").concat(Je," was used instead.")):(0,d.V1)(ve.type===z,34)}var Ne=p(7236),Ae=p(492),U=p(3767),b=Object.prototype.hasOwnProperty;function C(re,z){return z===void 0&&(z=Object.create(null)),I(g(z.client),re).useQuery(z)}function I(re,z){var ve=(0,D.useRef)();(!ve.current||re!==ve.current.client||z!==ve.current.query)&&(ve.current=new k(re,z,ve.current));var ye=ve.current,Je=(0,D.useState)(0),at=Je[0],Tt=Je[1];return ye.forceUpdate=function(){Tt(function(tt){return tt+1})},ye}var k=function(){function re(z,ve,ye){this.client=z,this.query=ve,this.asyncResolveFns=new Set,this.optionsToIgnoreOnce=new(V.En?WeakSet:Set),this.ssrDisabledResult=(0,Ne.G)({loading:!0,data:void 0,error:void 0,networkStatus:O.p.loading}),this.skipStandbyResult=(0,Ne.G)({loading:!1,data:void 0,error:void 0,networkStatus:O.p.ready}),this.toQueryResultCache=new(V.et?WeakMap:Map),_e(ve,ue.Query);var Je=ye&&ye.result,at=Je&&Je.data;at&&(this.previousData=at)}return re.prototype.forceUpdate=function(){__DEV__&&d.V1.warn("Calling default no-op implementation of InternalState#forceUpdate")},re.prototype.asyncUpdate=function(){var z=this;return new Promise(function(ve){z.asyncResolveFns.add(ve),z.optionsToIgnoreOnce.add(z.watchQueryOptions),z.forceUpdate()})},re.prototype.useQuery=function(z){var ve=this;this.renderPromises=(0,D.useContext)(y()).renderPromises,this.useOptions(z);var ye=this.useObservableQuery(),Je=te((0,D.useCallback)(function(){if(ve.renderPromises)return function(){};var Tt=function(){var Me=ve.result,B=ye.getCurrentResult();Me&&Me.loading===B.loading&&Me.networkStatus===B.networkStatus&&(0,ce.L)(Me.data,B.data)||ve.setResult(B)},tt=function(Me){var B=ye.last;Pe.unsubscribe();try{ye.resetLastResults(),Pe=ye.subscribe(Tt,tt)}finally{ye.last=B}if(!b.call(Me,"graphQLErrors"))throw Me;var Q=ve.result;(!Q||Q&&Q.loading||!(0,ce.L)(Me,Q.error))&&ve.setResult({data:Q&&Q.data,error:Me,loading:!1,networkStatus:O.p.error})},Pe=ye.subscribe(Tt,tt);return function(){return Pe.unsubscribe()}},[ye,this.renderPromises,this.client.disableNetworkFetches]),function(){return ve.getCurrentResult()},function(){return ve.getCurrentResult()});this.unsafeHandlePartialRefetch(Je);var at=this.toQueryResult(Je);return!at.loading&&this.asyncResolveFns.size&&(this.asyncResolveFns.forEach(function(Tt){return Tt(at)}),this.asyncResolveFns.clear()),at},re.prototype.useOptions=function(z){var ve,ye=this.createWatchQueryOptions(this.queryHookOptions=z),Je=this.watchQueryOptions;(this.optionsToIgnoreOnce.has(Je)||!(0,ce.L)(ye,Je))&&(this.watchQueryOptions=ye,Je&&this.observable&&(this.optionsToIgnoreOnce.delete(Je),this.observable.reobserve(this.getObsQueryOptions()),this.previousData=((ve=this.result)===null||ve===void 0?void 0:ve.data)||this.previousData,this.result=void 0)),this.onCompleted=z.onCompleted||re.prototype.onCompleted,this.onError=z.onError||re.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&this.queryHookOptions.ssr===!1&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||this.watchQueryOptions.fetchPolicy==="standby"?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},re.prototype.getObsQueryOptions=function(){var z=[],ve=this.client.defaultOptions.watchQuery;return ve&&z.push(ve),this.queryHookOptions.defaultOptions&&z.push(this.queryHookOptions.defaultOptions),z.push((0,Ae.o)(this.observable&&this.observable.options,this.watchQueryOptions)),z.reduce(G.l)},re.prototype.createWatchQueryOptions=function(z){var ve;z===void 0&&(z={});var ye=z.skip,Je=z.ssr,at=z.onCompleted,Tt=z.onError,tt=z.defaultOptions,Pe=(0,$.Tt)(z,["skip","ssr","onCompleted","onError","defaultOptions"]),Me=Object.assign(Pe,{query:this.query});if(this.renderPromises&&(Me.fetchPolicy==="network-only"||Me.fetchPolicy==="cache-and-network")&&(Me.fetchPolicy="cache-first"),Me.variables||(Me.variables={}),ye){var B=Me.fetchPolicy,Q=B===void 0?this.getDefaultFetchPolicy():B,J=Me.initialFetchPolicy,le=J===void 0?Q:J;Object.assign(Me,{initialFetchPolicy:le,fetchPolicy:"standby"})}else Me.fetchPolicy||(Me.fetchPolicy=((ve=this.observable)===null||ve===void 0?void 0:ve.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return Me},re.prototype.getDefaultFetchPolicy=function(){var z,ve;return((z=this.queryHookOptions.defaultOptions)===null||z===void 0?void 0:z.fetchPolicy)||((ve=this.client.defaultOptions.watchQuery)===null||ve===void 0?void 0:ve.fetchPolicy)||"cache-first"},re.prototype.onCompleted=function(z){},re.prototype.onError=function(z){},re.prototype.useObservableQuery=function(){var z=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,D.useMemo)(function(){return{refetch:z.refetch.bind(z),reobserve:z.reobserve.bind(z),fetchMore:z.fetchMore.bind(z),updateQuery:z.updateQuery.bind(z),startPolling:z.startPolling.bind(z),stopPolling:z.stopPolling.bind(z),subscribeToMore:z.subscribeToMore.bind(z)}},[z]);var ve=!(this.queryHookOptions.ssr===!1||this.queryHookOptions.skip);return this.renderPromises&&ve&&(this.renderPromises.registerSSRObservable(z),z.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(z)),z},re.prototype.setResult=function(z){var ve=this.result;ve&&ve.data&&(this.previousData=ve.data),this.result=z,this.forceUpdate(),this.handleErrorOrCompleted(z)},re.prototype.handleErrorOrCompleted=function(z){z.loading||(z.error?this.onError(z.error):z.data&&this.onCompleted(z.data))},re.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},re.prototype.toQueryResult=function(z){var ve=this.toQueryResultCache.get(z);if(ve)return ve;var ye=z.data,Je=z.partial,at=(0,$.Tt)(z,["data","partial"]);return this.toQueryResultCache.set(z,ve=(0,$.Cl)((0,$.Cl)((0,$.Cl)({data:ye},at),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!ve.error&&(0,U.E)(z.errors)&&(ve.error=new j.K({graphQLErrors:z.errors})),ve},re.prototype.unsafeHandlePartialRefetch=function(z){z.partial&&this.queryHookOptions.partialRefetch&&!z.loading&&(!z.data||Object.keys(z.data).length===0)&&this.observable.options.fetchPolicy!=="cache-only"&&(Object.assign(z,{loading:!0,networkStatus:O.p.refetch}),this.observable.refetch())},re}(),Y=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function oe(re,z){var ve=I(g(z&&z.client),re),ye=(0,D.useRef)(),Je=ye.current?(0,G.l)(z,ye.current):z,at=ve.useQuery((0,$.Cl)((0,$.Cl)({},Je),{skip:!ye.current})),Tt=at.observable.options.initialFetchPolicy||ve.getDefaultFetchPolicy(),tt=Object.assign(at,{called:!!ye.current}),Pe=(0,D.useMemo)(function(){for(var B={},Q=function(je){var dt=tt[je];B[je]=function(){return ye.current||(ye.current=Object.create(null),ve.forceUpdate()),dt.apply(this,arguments)}},J=0,le=Y;J<le.length;J++){var Se=le[J];Q(Se)}return B},[]);Object.assign(tt,Pe);var Me=(0,D.useCallback)(function(B){ye.current=B?(0,$.Cl)((0,$.Cl)({},B),{fetchPolicy:B.fetchPolicy||Tt}):{fetchPolicy:Tt};var Q=ve.asyncUpdate().then(function(J){return Object.assign(J,Pe)});return Q.catch(function(){}),Q},[]);return[Me,tt]}function Re(re,z){var ve=g(z?.client);_e(re,ue.Mutation);var ye=(0,D.useState)({called:!1,loading:!1,client:ve}),Je=ye[0],at=ye[1],Tt=(0,D.useRef)({result:Je,mutationId:0,isMounted:!0,client:ve,mutation:re,options:z});Object.assign(Tt.current,{client:ve,options:z,mutation:re});var tt=(0,D.useCallback)(function(Me){Me===void 0&&(Me={});var B=Tt.current,Q=B.client,J=B.options,le=B.mutation,Se=(0,$.Cl)((0,$.Cl)({},J),{mutation:le});!Tt.current.result.loading&&!Se.ignoreResults&&Tt.current.isMounted&&at(Tt.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:Q});var je=++Tt.current.mutationId,dt=(0,G.l)(Se,Me);return Q.mutate(dt).then(function(Xe){var pt,ht,vt,Qt=Xe.data,tr=Xe.errors,Bt=tr&&tr.length>0?new j.K({graphQLErrors:tr}):void 0;if(je===Tt.current.mutationId&&!dt.ignoreResults){var kt={called:!0,loading:!1,data:Qt,error:Bt,client:Q};Tt.current.isMounted&&!(0,ce.L)(Tt.current.result,kt)&&at(Tt.current.result=kt)}return(ht=(pt=Tt.current.options)===null||pt===void 0?void 0:pt.onCompleted)===null||ht===void 0||ht.call(pt,Xe.data,dt),(vt=Me.onCompleted)===null||vt===void 0||vt.call(Me,Xe.data,dt),Xe}).catch(function(Xe){var pt,ht,vt,Qt;if(je===Tt.current.mutationId&&Tt.current.isMounted){var tr={loading:!1,error:Xe,data:void 0,called:!0,client:Q};(0,ce.L)(Tt.current.result,tr)||at(Tt.current.result=tr)}if(((pt=Tt.current.options)===null||pt===void 0?void 0:pt.onError)||dt.onError)return(vt=(ht=Tt.current.options)===null||ht===void 0?void 0:ht.onError)===null||vt===void 0||vt.call(ht,Xe,dt),(Qt=Me.onError)===null||Qt===void 0||Qt.call(Me,Xe,dt),{data:void 0,errors:Xe};throw Xe})},[]),Pe=(0,D.useCallback)(function(){Tt.current.isMounted&&at({called:!1,loading:!1,client:ve})},[]);return(0,D.useEffect)(function(){return Tt.current.isMounted=!0,function(){Tt.current.isMounted=!1}},[]),[tt,(0,$.Cl)({reset:Pe},Je)]}function de(re,z){var ve=g(z?.client);_e(re,ue.Subscription);var ye=(0,D.useState)({loading:!z?.skip,error:void 0,data:void 0,variables:z?.variables}),Je=ye[0],at=ye[1],Tt=(0,D.useState)(function(){return z?.skip?null:ve.subscribe({query:re,variables:z?.variables,fetchPolicy:z?.fetchPolicy,context:z?.context})}),tt=Tt[0],Pe=Tt[1],Me=(0,D.useRef)(!1);(0,D.useEffect)(function(){return function(){Me.current=!0}},[]);var B=(0,D.useRef)({client:ve,subscription:re,options:z});return(0,D.useEffect)(function(){var Q,J,le,Se,je=z?.shouldResubscribe;typeof je=="function"&&(je=!!je(z)),z?.skip?(!z?.skip!=!(!((Q=B.current.options)===null||Q===void 0)&&Q.skip)||Me.current)&&(at({loading:!1,data:void 0,error:void 0,variables:z?.variables}),Pe(null),Me.current=!1):(je!==!1&&(ve!==B.current.client||re!==B.current.subscription||z?.fetchPolicy!==((J=B.current.options)===null||J===void 0?void 0:J.fetchPolicy)||!z?.skip!=!(!((le=B.current.options)===null||le===void 0)&&le.skip)||!(0,ce.L)(z?.variables,(Se=B.current.options)===null||Se===void 0?void 0:Se.variables))||Me.current)&&(at({loading:!0,data:void 0,error:void 0,variables:z?.variables}),Pe(ve.subscribe({query:re,variables:z?.variables,fetchPolicy:z?.fetchPolicy,context:z?.context})),Me.current=!1),Object.assign(B.current,{client:ve,subscription:re,options:z})},[ve,re,z,Me.current]),(0,D.useEffect)(function(){if(!!tt){var Q=tt.subscribe({next:function(J){var le,Se,je={loading:!1,data:J.data,error:void 0,variables:z?.variables};at(je),(Se=(le=B.current.options)===null||le===void 0?void 0:le.onSubscriptionData)===null||Se===void 0||Se.call(le,{client:ve,subscriptionData:je})},error:function(J){at({loading:!1,data:void 0,error:J,variables:z?.variables})},complete:function(){var J,le;(le=(J=B.current.options)===null||J===void 0?void 0:J.onSubscriptionComplete)===null||le===void 0||le.call(J)}});return function(){Q.unsubscribe()}}},[tt]),Je}function ae(re){var z=re(),ve=(0,D.useState)(z)[1];return(0,D.useEffect)(function(){var ye=re();if(z!==ye)ve(ye);else return re.onNextChange(ve)},[z]),z}},5349:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{BatchHttpLink:()=>x});var T=p(5608),d=p(1775),D=p(6054),H=p(3161),V=p(4559),A=p(7195),y=p(3068),m=p(3647),P=p(2917),g=p(6745),$=function(){function Z(F){var te=F.batchDebounce,ie=F.batchInterval,ce=F.batchMax,j=F.batchHandler,O=F.batchKey;this.batchesByKey=new Map,this.batchDebounce=te,this.batchInterval=ie,this.batchMax=ce||0,this.batchHandler=j,this.batchKey=O||function(){return""}}return Z.prototype.enqueueRequest=function(F){var te=this,ie=(0,T.Cl)((0,T.Cl)({},F),{next:[],error:[],complete:[],subscribers:new Set}),ce=this.batchKey(F.operation);return ie.observable||(ie.observable=new D.c(function(j){var O=te.batchesByKey.get(ce);O||te.batchesByKey.set(ce,O=new Set);var ue=O.size===0,be=ie.subscribers.size===0;return ie.subscribers.add(j),be&&O.add(ie),j.next&&ie.next.push(j.next.bind(j)),j.error&&ie.error.push(j.error.bind(j)),j.complete&&ie.complete.push(j.complete.bind(j)),ue?te.scheduleQueueConsumption(ce):te.batchDebounce&&(clearTimeout(te.scheduledBatchTimer),te.scheduleQueueConsumption(ce)),O.size===te.batchMax&&te.consumeQueue(ce),function(){var xe;ie.subscribers.delete(j)&&ie.subscribers.size<1&&O.delete(ie)&&O.size<1&&(te.consumeQueue(ce),(xe=O.subscription)===null||xe===void 0||xe.unsubscribe())}})),ie.observable},Z.prototype.consumeQueue=function(F){F===void 0&&(F="");var te=this.batchesByKey.get(F);if(this.batchesByKey.delete(F),!(!te||!te.size)){var ie=[],ce=[],j=[],O=[],ue=[],be=[];te.forEach(function(_e){ie.push(_e.operation),ce.push(_e.forward),j.push(_e.observable),O.push(_e.next),ue.push(_e.error),be.push(_e.complete)});var xe=this.batchHandler(ie,ce)||D.c.of(),we=function(_e){ue.forEach(function(Ne){Ne&&Ne.forEach(function(Ae){return Ae(_e)})})};return te.subscription=xe.subscribe({next:function(_e){if(Array.isArray(_e)||(_e=[_e]),O.length!==_e.length){var Ne=new Error("server returned results with length ".concat(_e.length,", expected length of ").concat(O.length));return Ne.result=_e,we(Ne)}_e.forEach(function(Ae,U){O[U]&&O[U].forEach(function(b){return b(Ae)})})},error:we,complete:function(){be.forEach(function(_e){_e&&_e.forEach(function(Ne){return Ne()})})}}),j}},Z.prototype.scheduleQueueConsumption=function(F){var te=this;this.scheduledBatchTimer=setTimeout(function(){te.consumeQueue(F)},this.batchInterval)},Z}(),G=function(Z){(0,T.C6)(F,Z);function F(te){var ie=Z.call(this)||this,ce=te||{},j=ce.batchDebounce,O=ce.batchInterval,ue=O===void 0?10:O,be=ce.batchMax,xe=be===void 0?0:be,we=ce.batchHandler,_e=we===void 0?function(){return null}:we,Ne=ce.batchKey,Ae=Ne===void 0?function(){return""}:Ne;return ie.batcher=new $({batchDebounce:j,batchInterval:ue,batchMax:xe,batchHandler:_e,batchKey:Ae}),te.batchHandler.length<=1&&(ie.request=function(U){return ie.batcher.enqueueRequest({operation:U})}),ie}return F.prototype.request=function(te,ie){return this.batcher.enqueueRequest({operation:te,forward:ie})},F}(d.C),x=function(Z){(0,T.C6)(F,Z);function F(te){var ie=Z.call(this)||this,ce=te||{},j=ce.uri,O=j===void 0?"/graphql":j,ue=ce.fetch,be=ce.print,xe=be===void 0?V.i1:be,we=ce.includeExtensions,_e=ce.batchInterval,Ne=ce.batchDebounce,Ae=ce.batchMax,U=ce.batchKey,b=(0,T.Tt)(ce,["uri","fetch","print","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);(0,A.S)(ue),ue||(ue=fetch);var C={http:{includeExtensions:we},options:b.fetchOptions,credentials:b.credentials,headers:b.headers};ie.batchDebounce=Ne,ie.batchInterval=_e||10,ie.batchMax=Ae||10;var I=function(k){var Y=(0,y.z)(k[0],O),oe=k[0].getContext(),Re={};if(oe.clientAwareness){var de=oe.clientAwareness,ae=de.name,re=de.version;ae&&(Re["apollographql-client-name"]=ae),re&&(Re["apollographql-client-version"]=re)}var z={http:oe.http,options:oe.fetchOptions,credentials:oe.credentials,headers:(0,T.Cl)((0,T.Cl)({},Re),oe.headers)},ve=k.map(function(Me){return(0,V.HY)(Me,xe,V.R4,C,z)}),ye=ve.map(function(Me){var B=Me.body;return B}),Je=ve[0].options;if(Je.method==="GET")return(0,H.N)(new Error("apollo-link-batch-http does not support GET requests"));try{Je.body=(0,m.Y)(ye,"Payload")}catch(Me){return(0,H.N)(Me)}var at;if(!Je.signal){var Tt=(0,P.S)(),tt=Tt.controller,Pe=Tt.signal;at=tt,at&&(Je.signal=Pe)}return new D.c(function(Me){return ue(Y,Je).then(function(B){return k.forEach(function(Q){return Q.setContext({response:B})}),B}).then((0,g.O)(k)).then(function(B){return Me.next(B),Me.complete(),B}).catch(function(B){B.name!=="AbortError"&&(B.result&&B.result.errors&&B.result.data&&Me.next(B.result),Me.error(B))}),function(){at&&at.abort()}})};return U=U||function(k){var Y=k.getContext(),oe={http:Y.http,options:Y.fetchOptions,credentials:Y.credentials,headers:Y.headers};return(0,y.z)(k,O)+JSON.stringify(oe)},ie.batcher=new G({batchDebounce:ie.batchDebounce,batchInterval:ie.batchInterval,batchMax:ie.batchMax,batchKey:U,batchHandler:I}),ie}return F.prototype.request=function(te){return this.batcher.request(te)},F}(d.C)},6197:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{setContext:()=>H});var T=p(5608),d=p(1775),D=p(6054);function H(V){return new d.C(function(A,y){var m=(0,T.Tt)(A,[]);return new D.c(function(P){var g,$=!1;return Promise.resolve(m).then(function(G){return V(G,A.getContext())}).then(A.setContext).then(function(){$||(g=y(A).subscribe({next:P.next.bind(P),error:P.error.bind(P),complete:P.complete.bind(P)}))}).catch(P.error.bind(P)),function(){$=!0,g&&g.unsubscribe()}})})}},1775:(Ee,K,p)=>{"use strict";p.d(K,{C:()=>G});var T=p(5608),d=p(7432),D=p(6054);function H(x,Z){var F=(0,T.Cl)({},x),te=function(ce){typeof ce=="function"?F=(0,T.Cl)((0,T.Cl)({},F),ce(F)):F=(0,T.Cl)((0,T.Cl)({},F),ce)},ie=function(){return(0,T.Cl)({},F)};return Object.defineProperty(Z,"setContext",{enumerable:!1,value:te}),Object.defineProperty(Z,"getContext",{enumerable:!1,value:ie}),Z}var V=p(3777);function A(x){var Z={variables:x.variables||{},extensions:x.extensions||{},operationName:x.operationName,query:x.query};return Z.operationName||(Z.operationName=typeof Z.query!="string"?(0,V.n4)(Z.query)||void 0:""),Z}function y(x){for(var Z=["query","operationName","variables","extensions","context"],F=0,te=Object.keys(x);F<te.length;F++){var ie=te[F];if(Z.indexOf(ie)<0)throw __DEV__?new d.zU("illegal argument: ".concat(ie)):new d.zU(24)}return x}function m(x,Z){return Z?Z(x):D.c.of()}function P(x){return typeof x=="function"?new G(x):x}function g(x){return x.request.length<=1}var $=function(x){(0,T.C6)(Z,x);function Z(F,te){var ie=x.call(this,F)||this;return ie.link=te,ie}return Z}(Error),G=function(){function x(Z){Z&&(this.request=Z)}return x.empty=function(){return new x(function(){return D.c.of()})},x.from=function(Z){return Z.length===0?x.empty():Z.map(P).reduce(function(F,te){return F.concat(te)})},x.split=function(Z,F,te){var ie=P(F),ce=P(te||new x(m));return g(ie)&&g(ce)?new x(function(j){return Z(j)?ie.request(j)||D.c.of():ce.request(j)||D.c.of()}):new x(function(j,O){return Z(j)?ie.request(j,O)||D.c.of():ce.request(j,O)||D.c.of()})},x.execute=function(Z,F){return Z.request(H(F.context,A(y(F))))||D.c.of()},x.concat=function(Z,F){var te=P(Z);if(g(te))return __DEV__&&d.V1.warn(new $("You are calling concat on a terminating link, which will have no effect",te)),te;var ie=P(F);return g(ie)?new x(function(ce){return te.request(ce,function(j){return ie.request(j)||D.c.of()})||D.c.of()}):new x(function(ce,j){return te.request(ce,function(O){return ie.request(O,j)||D.c.of()})||D.c.of()})},x.prototype.split=function(Z,F,te){return this.concat(x.split(Z,F,te||new x(m)))},x.prototype.concat=function(Z){return x.concat(this,Z)},x.prototype.request=function(Z,F){throw __DEV__?new d.zU("request is not implemented"):new d.zU(19)},x.prototype.onError=function(Z,F){if(F&&F.error)return F.error(Z),!1;throw Z},x.prototype.setOnError=function(Z){return this.onError=Z,this},x}()},5174:(Ee,K,p)=>{"use strict";p.d(K,{g:()=>d});var T=p(1775),d=T.C.execute},9891:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{ApolloLink:()=>d.C,concat:()=>A,empty:()=>D,execute:()=>y.g,from:()=>H,split:()=>V});var T=p(7432),d=p(1775),D=d.C.empty,H=d.C.from,V=d.C.split,A=d.C.concat,y=p(5174)},9556:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{ErrorLink:()=>V,onError:()=>H});var T=p(5608),d=p(6054),D=p(1775);function H(A){return new D.C(function(y,m){return new d.c(function(P){var g,$,G;try{g=m(y).subscribe({next:function(x){if(x.errors&&(G=A({graphQLErrors:x.errors,response:x,operation:y,forward:m}),G)){$=G.subscribe({next:P.next.bind(P),error:P.error.bind(P),complete:P.complete.bind(P)});return}P.next(x)},error:function(x){if(G=A({operation:y,networkError:x,graphQLErrors:x&&x.result&&x.result.errors,forward:m}),G){$=G.subscribe({next:P.next.bind(P),error:P.error.bind(P),complete:P.complete.bind(P)});return}P.error(x)},complete:function(){G||P.complete.bind(P)()}})}catch(x){A({networkError:x,operation:y,forward:m}),P.error(x)}return function(){g&&g.unsubscribe(),$&&g.unsubscribe()}})})}var V=function(A){(0,T.C6)(y,A);function y(m){var P=A.call(this)||this;return P.link=H(m),P}return y.prototype.request=function(m,P){return this.link.request(m,P)},y}(D.C)},7195:(Ee,K,p)=>{"use strict";p.d(K,{S:()=>d});var T=p(7432),d=function(D){if(!D&&typeof fetch>"u")throw __DEV__?new T.zU(`
88
88
  "fetch" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:
@@ -92,17 +92,17 @@ import { ApolloClient, HttpLink } from '@apollo/client';
92
92
  const client = new ApolloClient({
93
93
  link: new HttpLink({ uri: '/graphql', fetch })
94
94
  });
95
- `):new T.zU(20)}},2917:(Ee,K,p)=>{"use strict";p.d(K,{S:()=>T});var T=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var d=new AbortController,D=d.signal;return{controller:d,signal:D}}},6745:(Ee,K,p)=>{"use strict";p.d(K,{O:()=>D});var T=p(3848),d=Object.prototype.hasOwnProperty;function D(H){return function(V){return V.text().then(function(A){if(V.status>=300){var y=function(){try{return JSON.parse(A)}catch{return A}};(0,T.A)(V,y(),"Response not successful: Received status code ".concat(V.status))}try{return JSON.parse(A)}catch(P){var m=P;throw m.name="ServerParseError",m.response=V,m.statusCode=V.status,m.bodyText=A,m}}).then(function(A){return!Array.isArray(A)&&!d.call(A,"data")&&!d.call(A,"errors")&&(0,T.A)(V,A,"Server response was missing for query '".concat(Array.isArray(H)?H.map(function(y){return y.operationName}):H.operationName,"'.")),A})}}},4559:(Ee,K,p)=>{"use strict";p.d(K,{HY:()=>P,R4:()=>A,Wz:()=>m,i1:()=>y});var T=p(5608),d=p(2704),D={includeQuery:!0,includeExtensions:!1},H={accept:"*/*","content-type":"application/json"},V={method:"POST"},A={http:D,headers:H,options:V},y=function($,G){return G($)};function m($,G){for(var x=[],Z=2;Z<arguments.length;Z++)x[Z-2]=arguments[Z];return x.unshift(G),P.apply(void 0,(0,T.fX)([$,y],x,!1))}function P($,G){for(var x=[],Z=2;Z<arguments.length;Z++)x[Z-2]=arguments[Z];var F={},te={};x.forEach(function(be){F=(0,T.Cl)((0,T.Cl)((0,T.Cl)({},F),be.options),{headers:(0,T.Cl)((0,T.Cl)({},F.headers),g(be.headers))}),be.credentials&&(F.credentials=be.credentials),te=(0,T.Cl)((0,T.Cl)({},te),be.http)});var ie=$.operationName,ce=$.extensions,j=$.variables,O=$.query,ue={operationName:ie,variables:j};return te.includeExtensions&&(ue.extensions=ce),te.includeQuery&&(ue.query=G(O,d.y)),{options:F,body:ue}}function g($){if($){var G=Object.create(null);return Object.keys(Object($)).forEach(function(x){G[x.toLowerCase()]=$[x]}),G}return $}},3068:(Ee,K,p)=>{"use strict";p.d(K,{z:()=>T});var T=function(d,D){var H=d.getContext(),V=H.uri;return V||(typeof D=="function"?D(d):D||"/graphql")}},3647:(Ee,K,p)=>{"use strict";p.d(K,{Y:()=>d});var T=p(7432),d=function(D,H){var V;try{V=JSON.stringify(D)}catch(y){var A=__DEV__?new T.zU("Network request failed. ".concat(H," is not serializable: ").concat(y.message)):new T.zU(21);throw A.parseError=y,A}return V}},3161:(Ee,K,p)=>{"use strict";p.d(K,{N:()=>d});var T=p(6054);function d(D){return new T.c(function(H){H.error(D)})}},3848:(Ee,K,p)=>{"use strict";p.d(K,{A:()=>T});var T=function(d,D,H){var V=new Error(H);throw V.name="ServerError",V.response=d,V.statusCode=d.status,V.result=D,V}},3767:(Ee,K,p)=>{"use strict";p.d(K,{E:()=>T});function T(d){return Array.isArray(d)&&d.length>0}},1360:(Ee,K,p)=>{"use strict";p.d(K,{En:()=>D,JR:()=>y,Sw:()=>V,et:()=>d,ol:()=>H});var T=p(7432),d=typeof WeakMap=="function"&&(0,T.no)(function(){return navigator.product})!=="ReactNative",D=typeof WeakSet=="function",H=typeof Symbol=="function"&&typeof Symbol.for=="function",V=typeof(0,T.no)(function(){return window.document.createElement})=="function",A=(0,T.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,y=V&&!A},906:(Ee,K,p)=>{"use strict";p.d(K,{m:()=>d});var T=Object.prototype.toString;function d(H){return D(H)}function D(H,V){switch(T.call(H)){case"[object Array]":{if(V=V||new Map,V.has(H))return V.get(H);var A=H.slice(0);return V.set(H,A),A.forEach(function(m,P){A[P]=D(m,V)}),A}case"[object Object]":{if(V=V||new Map,V.has(H))return V.get(H);var y=Object.create(Object.getPrototypeOf(H));return V.set(H,y),Object.keys(H).forEach(function(m){y[m]=D(H[m],V)}),y}default:return H}}},492:(Ee,K,p)=>{"use strict";p.d(K,{o:()=>T});function T(){for(var d=[],D=0;D<arguments.length;D++)d[D]=arguments[D];var H=Object.create(null);return d.forEach(function(V){!V||Object.keys(V).forEach(function(A){var y=V[A];y!==void 0&&(H[A]=y)})}),H}},2710:(Ee,K,p)=>{"use strict";p.d(K,{t:()=>T});function T(d){return d.errors&&d.errors.length>0||!1}},1461:(Ee,K,p)=>{"use strict";p.d(K,{v:()=>d});var T=new Map;function d(D){var H=T.get(D)||1;return T.set(D,H+1),"".concat(D,":").concat(H,":").concat(Math.random().toString(36).slice(2))}},7236:(Ee,K,p)=>{"use strict";p.d(K,{G:()=>V});var T=p(7432),d=p(1777);function D(A){var y=new Set([A]);return y.forEach(function(m){(0,d.U)(m)&&H(m)===m&&Object.getOwnPropertyNames(m).forEach(function(P){(0,d.U)(m[P])&&y.add(m[P])})}),A}function H(A){if(__DEV__&&!Object.isFrozen(A))try{Object.freeze(A)}catch(y){if(y instanceof TypeError)return null;throw y}return A}function V(A){return __DEV__&&D(A),A}},671:(Ee,K,p)=>{"use strict";p.d(K,{D9:()=>H,IM:()=>V,ZI:()=>y});var T=p(5608),d=p(1777),D=Object.prototype.hasOwnProperty;function H(){for(var m=[],P=0;P<arguments.length;P++)m[P]=arguments[P];return V(m)}function V(m){var P=m[0]||{},g=m.length;if(g>1)for(var $=new y,G=1;G<g;++G)P=$.merge(P,m[G]);return P}var A=function(m,P,g){return this.merge(m[g],P[g])},y=function(){function m(P){P===void 0&&(P=A),this.reconciler=P,this.isObject=d.U,this.pastCopies=new Set}return m.prototype.merge=function(P,g){for(var $=this,G=[],x=2;x<arguments.length;x++)G[x-2]=arguments[x];return(0,d.U)(g)&&(0,d.U)(P)?(Object.keys(g).forEach(function(Z){if(D.call(P,Z)){var F=P[Z];if(g[Z]!==F){var te=$.reconciler.apply($,(0,T.fX)([P,g,Z],G,!1));te!==F&&(P=$.shallowCopyForMerge(P),P[Z]=te)}}else P=$.shallowCopyForMerge(P),P[Z]=g[Z]}),P):g},m.prototype.shallowCopyForMerge=function(P){return(0,d.U)(P)&&(this.pastCopies.has(P)||(Array.isArray(P)?P=P.slice(0):P=(0,T.Cl)({__proto__:Object.getPrototypeOf(P)},P),this.pastCopies.add(P))),P},m}()},1507:(Ee,K,p)=>{"use strict";p.d(K,{l:()=>D});var T=p(5608),d=p(492);function D(H,V){return(0,d.o)(H,V,V.variables&&{variables:(0,T.Cl)((0,T.Cl)({},H&&H.variables),V.variables)})}},1777:(Ee,K,p)=>{"use strict";p.d(K,{U:()=>T});function T(d){return d!==null&&typeof d=="object"}},6563:(Ee,K,p)=>{"use strict";p.d(K,{p:()=>d});var T=p(1461);function d(D){var H=(0,T.v)("stringifyForDisplay");return JSON.stringify(D,function(V,A){return A===void 0?H:A}).split(JSON.stringify(H)).join("<undefined>")}},7432:(Ee,K,p)=>{"use strict";p.d(K,{IJ:()=>y,zU:()=>T.zU,V1:()=>T.V1,no:()=>d});var T=p(9371);function d(te){try{return te()}catch{}}const D=d(function(){return globalThis})||d(function(){return window})||d(function(){return self})||d(function(){return global})||d(function(){return d.constructor("return this")()});var H="__",V=[H,H].join("DEV");function A(){try{return Boolean(__DEV__)}catch{return Object.defineProperty(D,V,{value:d(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),D[V]}}const y=A();function m(te){try{return te()}catch{}}var P=m(function(){return globalThis})||m(function(){return window})||m(function(){return self})||m(function(){return global})||m(function(){return m.constructor("return this")()}),g=!1;function $(){P&&!m(function(){return"production"})&&!m(function(){return process})&&(Object.defineProperty(P,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),g=!0)}$();function G(){g&&(delete P.process,g=!1)}var x=p(5494);function Z(){return typeof x.k=="function",G()}function F(){__DEV__?(0,T.V1)(typeof y=="boolean",y):(0,T.V1)(typeof y=="boolean",36)}Z(),F()},2307:(Ee,K,p)=>{"use strict";p.d(K,{MS:()=>D,d8:()=>V,f2:()=>A,sx:()=>H,tY:()=>m});var T=p(7432),d=p(424);function D(P,g){var $=P.directives;return!$||!$.length?!0:m($).every(function(G){var x=G.directive,Z=G.ifArgument,F=!1;return Z.value.kind==="Variable"?(F=g&&g[Z.value.name.value],__DEV__?(0,T.V1)(F!==void 0,"Invalid variable referenced in @".concat(x.name.value," directive.")):(0,T.V1)(F!==void 0,37)):F=Z.value.value,x.name.value==="skip"?!F:F})}function H(P){var g=[];return(0,d.YR)(P,{Directive:function($){g.push($.name.value)}}),g}function V(P,g){return H(g).some(function($){return P.indexOf($)>-1})}function A(P){return P&&V(["client"],P)&&V(["export"],P)}function y(P){var g=P.name.value;return g==="skip"||g==="include"}function m(P){var g=[];return P&&P.length&&P.forEach(function($){if(!!y($)){var G=$.arguments,x=$.name.value;__DEV__?(0,T.V1)(G&&G.length===1,"Incorrect number of arguments for the @".concat(x," directive.")):(0,T.V1)(G&&G.length===1,38);var Z=G[0];__DEV__?(0,T.V1)(Z.name&&Z.name.value==="if","Invalid argument for the @".concat(x," directive.")):(0,T.V1)(Z.name&&Z.name.value==="if",39);var F=Z.value;__DEV__?(0,T.V1)(F&&(F.kind==="Variable"||F.kind==="BooleanValue"),"Argument for the @".concat(x," directive must be a variable or a boolean value.")):(0,T.V1)(F&&(F.kind==="Variable"||F.kind==="BooleanValue"),40),g.push({directive:$,ifArgument:Z})}}),g}},2904:(Ee,K,p)=>{"use strict";p.d(K,{HQ:()=>V,JG:()=>H,ct:()=>D});var T=p(5608),d=p(7432);function D(A,y){var m=y,P=[];A.definitions.forEach(function($){if($.kind==="OperationDefinition")throw __DEV__?new d.zU("Found a ".concat($.operation," operation").concat($.name?" named '".concat($.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new d.zU(41);$.kind==="FragmentDefinition"&&P.push($)}),typeof m>"u"&&(__DEV__?(0,d.V1)(P.length===1,"Found ".concat(P.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,d.V1)(P.length===1,42),m=P[0].name.value);var g=(0,T.Cl)((0,T.Cl)({},A),{definitions:(0,T.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:m}}]}}],A.definitions,!0)});return g}function H(A){A===void 0&&(A=[]);var y={};return A.forEach(function(m){y[m.name.value]=m}),y}function V(A,y){switch(A.kind){case"InlineFragment":return A;case"FragmentSpread":{var m=y&&y[A.name.value];return __DEV__?(0,d.V1)(m,"No fragment named ".concat(A.name.value,".")):(0,d.V1)(m,43),m}default:return null}}},3777:(Ee,K,p)=>{"use strict";p.d(K,{AT:()=>y,E4:()=>m,Vn:()=>P,Vu:()=>H,n4:()=>V,sw:()=>D,wY:()=>g,zK:()=>A});var T=p(7432),d=p(8907);function D($){__DEV__?(0,T.V1)($&&$.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,T.V1)($&&$.kind==="Document",44);var G=$.definitions.filter(function(x){return x.kind!=="FragmentDefinition"}).map(function(x){if(x.kind!=="OperationDefinition")throw __DEV__?new T.zU('Schema type definitions not allowed in queries. Found: "'.concat(x.kind,'"')):new T.zU(45);return x});return __DEV__?(0,T.V1)(G.length<=1,"Ambiguous GraphQL document: contains ".concat(G.length," operations")):(0,T.V1)(G.length<=1,46),$}function H($){return D($),$.definitions.filter(function(G){return G.kind==="OperationDefinition"})[0]}function V($){return $.definitions.filter(function(G){return G.kind==="OperationDefinition"&&G.name}).map(function(G){return G.name.value})[0]||null}function A($){return $.definitions.filter(function(G){return G.kind==="FragmentDefinition"})}function y($){var G=H($);return __DEV__?(0,T.V1)(G&&G.operation==="query","Must contain a query definition."):(0,T.V1)(G&&G.operation==="query",47),G}function m($){__DEV__?(0,T.V1)($.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,T.V1)($.kind==="Document",48),__DEV__?(0,T.V1)($.definitions.length<=1,"Fragment must have exactly one definition."):(0,T.V1)($.definitions.length<=1,49);var G=$.definitions[0];return __DEV__?(0,T.V1)(G.kind==="FragmentDefinition","Must be a fragment definition."):(0,T.V1)(G.kind==="FragmentDefinition",50),G}function P($){D($);for(var G,x=0,Z=$.definitions;x<Z.length;x++){var F=Z[x];if(F.kind==="OperationDefinition"){var te=F.operation;if(te==="query"||te==="mutation"||te==="subscription")return F}F.kind==="FragmentDefinition"&&!G&&(G=F)}if(G)return G;throw __DEV__?new T.zU("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new T.zU(51)}function g($){var G=Object.create(null),x=$&&$.variableDefinitions;return x&&x.length&&x.forEach(function(Z){Z.defaultValue&&(0,d.J)(G,Z.variable.name,Z.defaultValue)}),G}},8907:(Ee,K,p)=>{"use strict";p.d(K,{A_:()=>V,D$:()=>we,Ii:()=>ie,J:()=>te,Kc:()=>A,MB:()=>be,WU:()=>H,dt:()=>_e,kd:()=>Ne,o5:()=>j,ue:()=>xe});var T=p(7432),d=p(1777),D=p(2904);function H(Ae){return{__ref:String(Ae)}}function V(Ae){return Boolean(Ae&&typeof Ae=="object"&&typeof Ae.__ref=="string")}function A(Ae){return(0,d.U)(Ae)&&Ae.kind==="Document"&&Array.isArray(Ae.definitions)}function y(Ae){return Ae.kind==="StringValue"}function m(Ae){return Ae.kind==="BooleanValue"}function P(Ae){return Ae.kind==="IntValue"}function g(Ae){return Ae.kind==="FloatValue"}function $(Ae){return Ae.kind==="Variable"}function G(Ae){return Ae.kind==="ObjectValue"}function x(Ae){return Ae.kind==="ListValue"}function Z(Ae){return Ae.kind==="EnumValue"}function F(Ae){return Ae.kind==="NullValue"}function te(Ae,U,b,C){if(P(b)||g(b))Ae[U.value]=Number(b.value);else if(m(b)||y(b))Ae[U.value]=b.value;else if(G(b)){var I={};b.fields.map(function(Y){return te(I,Y.name,Y.value,C)}),Ae[U.value]=I}else if($(b)){var k=(C||{})[b.name.value];Ae[U.value]=k}else if(x(b))Ae[U.value]=b.values.map(function(Y){var oe={};return te(oe,U,Y,C),oe[U.value]});else if(Z(b))Ae[U.value]=b.value;else if(F(b))Ae[U.value]=null;else throw __DEV__?new T.zU('The inline argument "'.concat(U.value,'" of kind "').concat(b.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new T.zU(52)}function ie(Ae,U){var b=null;Ae.directives&&(b={},Ae.directives.forEach(function(I){b[I.name.value]={},I.arguments&&I.arguments.forEach(function(k){var Y=k.name,oe=k.value;return te(b[I.name.value],Y,oe,U)})}));var C=null;return Ae.arguments&&Ae.arguments.length&&(C={},Ae.arguments.forEach(function(I){var k=I.name,Y=I.value;return te(C,k,Y,U)})),j(Ae.name.value,C,b)}var ce=["connection","include","skip","client","rest","export"],j=Object.assign(function(Ae,U,b){if(U&&b&&b.connection&&b.connection.key)if(b.connection.filter&&b.connection.filter.length>0){var C=b.connection.filter?b.connection.filter:[];C.sort();var I={};return C.forEach(function(oe){I[oe]=U[oe]}),"".concat(b.connection.key,"(").concat(O(I),")")}else return b.connection.key;var k=Ae;if(U){var Y=O(U);k+="(".concat(Y,")")}return b&&Object.keys(b).forEach(function(oe){ce.indexOf(oe)===-1&&(b[oe]&&Object.keys(b[oe]).length?k+="@".concat(oe,"(").concat(O(b[oe]),")"):k+="@".concat(oe))}),k},{setStringify:function(Ae){var U=O;return O=Ae,U}}),O=function(U){return JSON.stringify(U,ue)};function ue(Ae,U){return(0,d.U)(U)&&!Array.isArray(U)&&(U=Object.keys(U).sort().reduce(function(b,C){return b[C]=U[C],b},{})),U}function be(Ae,U){if(Ae.arguments&&Ae.arguments.length){var b={};return Ae.arguments.forEach(function(C){var I=C.name,k=C.value;return te(b,I,k,U)}),b}return null}function xe(Ae){return Ae.alias?Ae.alias.value:Ae.name.value}function we(Ae,U,b){if(typeof Ae.__typename=="string")return Ae.__typename;for(var C=0,I=U.selections;C<I.length;C++){var k=I[C];if(_e(k)){if(k.name.value==="__typename")return Ae[xe(k)]}else{var Y=we(Ae,(0,D.HQ)(k,b).selectionSet,b);if(typeof Y=="string")return Y}}}function _e(Ae){return Ae.kind==="Field"}function Ne(Ae){return Ae.kind==="InlineFragment"}},5388:(Ee,K,p)=>{"use strict";p.d(K,{XY:()=>x,zc:()=>be,it:()=>j,er:()=>xe,hX:()=>F,iz:()=>G,TC:()=>O});var T=p(5608),d=p(7432),D=p(424),H=p(3777);function V(we,_e,Ne){var Ae=0;return we.forEach(function(U,b){_e.call(this,U,b,we)&&(we[Ae++]=U)},Ne),we.length=Ae,we}var A=p(8907),y=p(2904),m={kind:"Field",name:{kind:"Name",value:"__typename"}};function P(we,_e){return we.selectionSet.selections.every(function(Ne){return Ne.kind==="FragmentSpread"&&P(_e[Ne.name.value],_e)})}function g(we){return P((0,H.Vu)(we)||(0,H.E4)(we),(0,y.JG)((0,H.zK)(we)))?null:we}function $(we){return function(Ne){return we.some(function(Ae){return Ae.name&&Ae.name===Ne.name.value||Ae.test&&Ae.test(Ne)})}}function G(we,_e){var Ne=Object.create(null),Ae=[],U=Object.create(null),b=[],C=g((0,D.YR)(_e,{Variable:{enter:function(I,k,Y){Y.kind!=="VariableDefinition"&&(Ne[I.name.value]=!0)}},Field:{enter:function(I){if(we&&I.directives){var k=we.some(function(Y){return Y.remove});if(k&&I.directives&&I.directives.some($(we)))return I.arguments&&I.arguments.forEach(function(Y){Y.value.kind==="Variable"&&Ae.push({name:Y.value.name.value})}),I.selectionSet&&ue(I.selectionSet).forEach(function(Y){b.push({name:Y.name.value})}),null}}},FragmentSpread:{enter:function(I){U[I.name.value]=!0}},Directive:{enter:function(I){if($(we)(I))return null}}}));return C&&V(Ae,function(I){return!!I.name&&!Ne[I.name]}).length&&(C=j(Ae,C)),C&&V(b,function(I){return!!I.name&&!U[I.name]}).length&&(C=O(b,C)),C}var x=Object.assign(function(we){return(0,D.YR)(we,{SelectionSet:{enter:function(_e,Ne,Ae){if(!(Ae&&Ae.kind==="OperationDefinition")){var U=_e.selections;if(!!U){var b=U.some(function(I){return(0,A.dt)(I)&&(I.name.value==="__typename"||I.name.value.lastIndexOf("__",0)===0)});if(!b){var C=Ae;if(!((0,A.dt)(C)&&C.directives&&C.directives.some(function(I){return I.name.value==="export"})))return(0,T.Cl)((0,T.Cl)({},_e),{selections:(0,T.fX)((0,T.fX)([],U,!0),[m],!1)})}}}}}})},{added:function(we){return we===m}}),Z={test:function(we){var _e=we.name.value==="connection";return _e&&(!we.arguments||!we.arguments.some(function(Ne){return Ne.name.value==="key"}))&&__DEV__&&d.V1.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),_e}};function F(we){return G([Z],(0,H.sw)(we))}function te(we,_e,Ne){return Ne===void 0&&(Ne=!0),!!_e&&_e.selections&&_e.selections.some(function(Ae){return ie(we,Ae,Ne)})}function ie(we,_e,Ne){return Ne===void 0&&(Ne=!0),isField(_e)?_e.directives?_e.directives.some($(we))||Ne&&te(we,_e.selectionSet,Ne):!1:!0}function ce(we){return function(Ne){return we.some(function(Ae){return Ne.value&&Ne.value.kind==="Variable"&&Ne.value.name&&(Ae.name===Ne.value.name.value||Ae.test&&Ae.test(Ne))})}}function j(we,_e){var Ne=ce(we);return g((0,D.YR)(_e,{OperationDefinition:{enter:function(Ae){return(0,T.Cl)((0,T.Cl)({},Ae),{variableDefinitions:Ae.variableDefinitions?Ae.variableDefinitions.filter(function(U){return!we.some(function(b){return b.name===U.variable.name.value})}):[]})}},Field:{enter:function(Ae){var U=we.some(function(C){return C.remove});if(U){var b=0;if(Ae.arguments&&Ae.arguments.forEach(function(C){Ne(C)&&(b+=1)}),b===1)return null}}},Argument:{enter:function(Ae){if(Ne(Ae))return null}}}))}function O(we,_e){function Ne(Ae){if(we.some(function(U){return U.name===Ae.name.value}))return null}return g((0,D.YR)(_e,{FragmentSpread:{enter:Ne},FragmentDefinition:{enter:Ne}}))}function ue(we){var _e=[];return we.selections.forEach(function(Ne){((0,A.dt)(Ne)||(0,A.kd)(Ne))&&Ne.selectionSet?ue(Ne.selectionSet).forEach(function(Ae){return _e.push(Ae)}):Ne.kind==="FragmentSpread"&&_e.push(Ne)}),_e}function be(we){var _e=(0,H.Vn)(we),Ne=_e.operation;if(Ne==="query")return we;var Ae=(0,D.YR)(we,{OperationDefinition:{enter:function(U){return(0,T.Cl)((0,T.Cl)({},U),{operation:"query"})}}});return Ae}function xe(we){(0,H.sw)(we);var _e=G([{test:function(Ne){return Ne.name.value==="client"},remove:!0}],we);return _e&&(_e=(0,D.YR)(_e,{FragmentDefinition:{enter:function(Ne){if(Ne.selectionSet){var Ae=Ne.selectionSet.selections.every(function(U){return(0,A.dt)(U)&&U.name.value==="__typename"});if(Ae)return null}}}})),_e}},2182:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{Concast:()=>O.E,DEV:()=>T.IJ,DeepMerger:()=>m.ZI,Observable:()=>F.c,addTypenameToDocument:()=>A.XY,argumentsObjectFromField:()=>V.MB,asyncMap:()=>j.x,buildQueryFromSelectionSet:()=>A.zc,canUseDOM:()=>_e.Sw,canUseLayoutEffect:()=>_e.JR,canUseSymbol:()=>_e.ol,canUseWeakMap:()=>_e.et,canUseWeakSet:()=>_e.En,checkDocument:()=>H.sw,cloneDeep:()=>te.m,compact:()=>Ne.o,concatPagination:()=>P,createFragmentMap:()=>D.JG,fixObservableSubclass:()=>ue.r,getDefaultValues:()=>H.wY,getDirectiveNames:()=>d.sx,getFragmentDefinition:()=>H.E4,getFragmentDefinitions:()=>H.zK,getFragmentFromSelection:()=>D.HQ,getFragmentQueryDocument:()=>D.ct,getInclusionDirectives:()=>d.tY,getMainDefinition:()=>H.Vn,getOperationDefinition:()=>H.Vu,getOperationName:()=>H.n4,getQueryDefinition:()=>H.AT,getStoreKeyName:()=>V.o5,getTypenameFromResult:()=>V.D$,graphQLResultHasError:()=>we.t,hasClientExports:()=>d.f2,hasDirectives:()=>d.d8,isDocumentNode:()=>V.Kc,isField:()=>V.dt,isInlineFragment:()=>V.kd,isNonEmptyArray:()=>be.E,isNonNullObject:()=>xe.U,isReference:()=>V.A_,iterateObserversSafely:()=>ce.w,makeReference:()=>V.WU,makeUniqueId:()=>Ae.v,maybe:()=>T.no,maybeDeepFreeze:()=>ie.G,mergeDeep:()=>m.D9,mergeDeepArray:()=>m.IM,mergeOptions:()=>b.l,offsetLimitPagination:()=>g,relayStylePagination:()=>$,removeArgumentsFromDocument:()=>A.it,removeClientSetsFromDocument:()=>A.er,removeConnectionDirectiveFromDocument:()=>A.hX,removeDirectivesFromDocument:()=>A.iz,removeFragmentSpreadFromDocument:()=>A.TC,resultKeyNameFromField:()=>V.ue,shouldInclude:()=>d.MS,storeKeyNameFromField:()=>V.Ii,stringifyForDisplay:()=>U.p,valueToObjectRepresentation:()=>V.J});var T=p(7432),d=p(2307),D=p(2904),H=p(3777),V=p(8907),A=p(5388),y=p(5608),m=p(671);function P(C){return C===void 0&&(C=!1),{keyArgs:C,merge:function(I,k){return I?(0,y.fX)((0,y.fX)([],I,!0),k,!0):k}}}function g(C){return C===void 0&&(C=!1),{keyArgs:C,merge:function(I,k,Y){var oe=Y.args,Re=I?I.slice(0):[];if(k)if(oe)for(var de=oe.offset,ae=de===void 0?0:de,re=0;re<k.length;++re)Re[ae+re]=k[re];else Re.push.apply(Re,k);return Re}}}function $(C){return C===void 0&&(C=!1),{keyArgs:C,read:function(I,k){var Y=k.canRead,oe=k.readField;if(!I)return I;var Re=[],de="",ae="";I.edges.forEach(function(ye){Y(oe("node",ye))&&(Re.push(ye),ye.cursor&&(de=de||ye.cursor||"",ae=ye.cursor||ae))});var re=I.pageInfo||{},z=re.startCursor,ve=re.endCursor;return(0,y.Cl)((0,y.Cl)({},G(I)),{edges:Re,pageInfo:(0,y.Cl)((0,y.Cl)({},I.pageInfo),{startCursor:z||de,endCursor:ve||ae})})},merge:function(I,k,Y){var oe=Y.args,Re=Y.isReference,de=Y.readField;if(I||(I=Z()),!k)return I;var ae=k.edges?k.edges.map(function(dt){return Re(dt=(0,y.Cl)({},dt))&&(dt.cursor=de("cursor",dt)),dt}):[];if(k.pageInfo){var re=k.pageInfo,z=re.startCursor,ve=re.endCursor,ye=ae[0],Je=ae[ae.length-1];ye&&z&&(ye.cursor=z),Je&&ve&&(Je.cursor=ve);var at=ye&&ye.cursor;at&&!z&&(k=(0,m.D9)(k,{pageInfo:{startCursor:at}}));var Tt=Je&&Je.cursor;Tt&&!ve&&(k=(0,m.D9)(k,{pageInfo:{endCursor:Tt}}))}var tt=I.edges,Pe=[];if(oe&&oe.after){var Me=tt.findIndex(function(dt){return dt.cursor===oe.after});Me>=0&&(tt=tt.slice(0,Me+1))}else if(oe&&oe.before){var Me=tt.findIndex(function(Xe){return Xe.cursor===oe.before});Pe=Me<0?tt:tt.slice(Me),tt=[]}else k.edges&&(tt=[]);var B=(0,y.fX)((0,y.fX)((0,y.fX)([],tt,!0),ae,!0),Pe,!0),Q=(0,y.Cl)((0,y.Cl)({},k.pageInfo),I.pageInfo);if(k.pageInfo){var J=k.pageInfo,le=J.hasPreviousPage,Se=J.hasNextPage,z=J.startCursor,ve=J.endCursor,je=(0,y.Tt)(J,["hasPreviousPage","hasNextPage","startCursor","endCursor"]);Object.assign(Q,je),tt.length||(le!==void 0&&(Q.hasPreviousPage=le),z!==void 0&&(Q.startCursor=z)),Pe.length||(Se!==void 0&&(Q.hasNextPage=Se),ve!==void 0&&(Q.endCursor=ve))}return(0,y.Cl)((0,y.Cl)((0,y.Cl)({},G(I)),G(k)),{edges:B,pageInfo:Q})}}}var G=function(C){return(0,y.Tt)(C,x)},x=["edges","pageInfo"];function Z(){return{edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}}var F=p(6054),te=p(906),ie=p(7236),ce=p(7613),j=p(5762),O=p(5637),ue=p(5892),be=p(3767),xe=p(1777),we=p(2710),_e=p(1360),Ne=p(492),Ae=p(1461),U=p(6563),b=p(1507)},5637:(Ee,K,p)=>{"use strict";p.d(K,{E:()=>A});var T=p(5608),d=p(6054),D=p(7613),H=p(5892);function V(y){return y&&typeof y.then=="function"}var A=function(y){(0,T.C6)(m,y);function m(P){var g=y.call(this,function($){return g.addObserver($),function(){return g.removeObserver($)}})||this;return g.observers=new Set,g.addCount=0,g.promise=new Promise(function($,G){g.resolve=$,g.reject=G}),g.handlers={next:function($){g.sub!==null&&(g.latest=["next",$],(0,D.w)(g.observers,"next",$))},error:function($){var G=g.sub;G!==null&&(G&&setTimeout(function(){return G.unsubscribe()}),g.sub=null,g.latest=["error",$],g.reject($),(0,D.w)(g.observers,"error",$))},complete:function(){var $=g.sub;if($!==null){var G=g.sources.shift();G?V(G)?G.then(function(x){return g.sub=x.subscribe(g.handlers)}):g.sub=G.subscribe(g.handlers):($&&setTimeout(function(){return $.unsubscribe()}),g.sub=null,g.latest&&g.latest[0]==="next"?g.resolve(g.latest[1]):g.resolve(),(0,D.w)(g.observers,"complete"))}}},g.cancel=function($){g.reject($),g.sources=[],g.handlers.complete()},g.promise.catch(function($){}),typeof P=="function"&&(P=[new d.c(P)]),V(P)?P.then(function($){return g.start($)},g.handlers.error):g.start(P),g}return m.prototype.start=function(P){this.sub===void 0&&(this.sources=Array.from(P),this.handlers.complete())},m.prototype.deliverLastMessage=function(P){if(this.latest){var g=this.latest[0],$=P[g];$&&$.call(P,this.latest[1]),this.sub===null&&g==="next"&&P.complete&&P.complete()}},m.prototype.addObserver=function(P){this.observers.has(P)||(this.deliverLastMessage(P),this.observers.add(P),++this.addCount)},m.prototype.removeObserver=function(P,g){this.observers.delete(P)&&--this.addCount<1&&!g&&this.handlers.complete()},m.prototype.cleanup=function(P){var g=this,$=!1,G=function(){$||($=!0,g.observers.delete(x),P())},x={next:G,error:G,complete:G},Z=this.addCount;this.addObserver(x),this.addCount=Z},m}(d.c);(0,H.r)(A)},5762:(Ee,K,p)=>{"use strict";p.d(K,{x:()=>d});var T=p(6054);function d(D,H,V){return new T.c(function(A){var y=A.next,m=A.error,P=A.complete,g=0,$=!1,G={then:function(te){return new Promise(function(ie){return ie(te())})}};function x(te,ie){return te?function(ce){++g;var j=function(){return te(ce)};G=G.then(j,j).then(function(O){--g,y&&y.call(A,O),$&&Z.complete()},function(O){throw--g,O}).catch(function(O){m&&m.call(A,O)})}:function(ce){return ie&&ie.call(A,ce)}}var Z={next:x(H,y),error:x(V,m),complete:function(){$=!0,g||P&&P.call(A)}},F=D.subscribe(Z);return function(){return F.unsubscribe()}})}},7613:(Ee,K,p)=>{"use strict";p.d(K,{w:()=>T});function T(d,D,H){var V=[];d.forEach(function(A){return A[D]&&V.push(A)}),V.forEach(function(A){return A[D](H)})}},5892:(Ee,K,p)=>{"use strict";p.d(K,{r:()=>D});var T=p(6054),d=p(1360);function D(H){function V(A){Object.defineProperty(H,A,{value:T.c})}return d.ol&&Symbol.species&&V(Symbol.species),V("@@species"),H}},184:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{Bwell:()=>PIe});var T={};p.r(T),p.d(T,{define:()=>Il,id:()=>Wn,version:()=>vi});var d={};p.r(d),p.d(d,{definition:()=>qh,id:()=>za,version:()=>Nr});var D={};p.r(D),p.d(D,{definition:()=>sH,id:()=>uv,version:()=>dp});var H={};p.r(H),p.d(H,{definition:()=>cH,id:()=>LI,version:()=>cv});var V={};p.r(V),p.d(V,{definition:()=>s3,id:()=>Mp,version:()=>Bf});var A={};p.r(A),p.d(A,{definition:()=>u3,id:()=>O0,version:()=>Gv});var y={};p.r(y),p.d(y,{definition:()=>uH,id:()=>js,version:()=>Pu});var m={};p.r(m),p.d(m,{definition:()=>_3,id:()=>b0,version:()=>Bv});var P={};p.r(P),p.d(P,{definition:()=>h9,id:()=>Am,version:()=>Kp});var g={};p.r(g),p.d(g,{definition:()=>E9,id:()=>H$,version:()=>Rm});var $={};p.r($),p.d($,{definition:()=>p9,id:()=>Tm,version:()=>qp});var G={};p.r(G),p.d(G,{define:()=>v9,id:()=>Y$,version:()=>Om});var x={};p.r(x),p.d(x,{define:()=>m9,id:()=>q$,version:()=>bm});var Z={};p.r(Z),p.d(Z,{definition:()=>sMe,id:()=>Cj,version:()=>kT});var F=p(6152),te;(function(e){e.GUEST="guest",e.DEFAULT="default"})(te||(te={}));var ie=p(3059),ce=p(234);function j(e){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(e)}function O(e,t){if(j(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(j(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ue(e){var t=O(e,"string");return j(t)=="symbol"?t:t+""}function be(e,t,r){return(t=ue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xe(Object(r),!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _e(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ne=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ae=function(){return Math.random().toString(36).substring(7).split("").join(".")},U={INIT:"@@redux/INIT"+Ae(),REPLACE:"@@redux/REPLACE"+Ae(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ae()}};function b(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function C(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Y(e))return"date";if(k(e))return"error";var r=I(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function I(e){return typeof e.constructor=="function"?e.constructor.name:null}function k(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Y(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function oe(e){var t=typeof e;return t}function Re(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_e(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_e(1));return r(Re)(e,t)}if(typeof e!="function")throw new Error(_e(2));var i=e,a=t,u=[],c=u,v=!1;function _(){c===u&&(c=u.slice())}function h(){if(v)throw new Error(_e(3));return a}function L(Oe){if(typeof Oe!="function")throw new Error(_e(4));if(v)throw new Error(_e(5));var He=!0;return _(),c.push(Oe),function(){if(!!He){if(v)throw new Error(_e(6));He=!1,_();var We=c.indexOf(Oe);c.splice(We,1),u=null}}}function W(Oe){if(!b(Oe))throw new Error(_e(7));if(typeof Oe.type>"u")throw new Error(_e(8));if(v)throw new Error(_e(9));try{v=!0,a=i(a,Oe)}finally{v=!1}for(var He=u=c,qe=0;qe<He.length;qe++){var We=He[qe];We()}return Oe}function Te(Oe){if(typeof Oe!="function")throw new Error(_e(10));i=Oe,W({type:U.REPLACE})}function me(){var Oe,He=L;return Oe={subscribe:function(We){if(typeof We!="object"||We===null)throw new Error(_e(11));function ct(){We.next&&We.next(h())}ct();var yt=He(ct);return{unsubscribe:yt}}},Oe[Ne]=function(){return this},Oe}return W({type:U.INIT}),n={dispatch:W,subscribe:L,getState:h,replaceReducer:Te},n[Ne]=me,n}var de=null;function ae(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function re(e,t,r,n){var i=Object.keys(t),a=r&&r.type===U.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!b(e))return"The "+a+' has unexpected type of "'+oe(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var u=Object.keys(e).filter(function(c){return!t.hasOwnProperty(c)&&!n[c]});if(u.forEach(function(c){n[c]=!0}),!(r&&r.type===U.REPLACE)&&u.length>0)return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function z(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:U.INIT});if(typeof n>"u")throw new Error(_e(12));if(typeof r(void 0,{type:U.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_e(13))})}function ve(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),u,c;try{z(r)}catch(v){c=v}return function(_,h){if(_===void 0&&(_={}),c)throw c;if(!1)var L;for(var W=!1,Te={},me=0;me<a.length;me++){var Oe=a[me],He=r[Oe],qe=_[Oe],We=He(qe,h);if(typeof We>"u"){var ct=h&&h.type;throw new Error(_e(14))}Te[Oe]=We,W=W||We!==qe}return W=W||a.length!==Object.keys(_).length,W?Te:_}}function ye(e,t){return function(){return t(e.apply(this,arguments))}}function Je(e,t){if(typeof e=="function")return ye(e,t);if(typeof e!="object"||e===null)throw new Error(_e(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=ye(i,t))}return r}function at(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Tt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(_e(15))},u={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(v){return v(u)});return a=at.apply(void 0,c)(i.dispatch),we(we({},i),{},{dispatch:a})}}}function tt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!1)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(u){return"'"+u+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Pe(e){return!!e&&!!e[Vt]}function Me(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===it}(e)||Array.isArray(e)||!!e[Dn]||!!(!((t=e.constructor)===null||t===void 0)&&t[Dn])||Xe(e)||pt(e))}function B(e){return Pe(e)||tt(23,e),e[Vt].t}function Q(e,t,r){r===void 0&&(r=!1),J(e)===0?(r?Object.keys:In)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function J(e){var t=e[Vt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Xe(e)?2:pt(e)?3:0}function le(e,t){return J(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Se(e,t){return J(e)===2?e.get(t):e[t]}function je(e,t,r){var n=J(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function dt(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Xe(e){return Hr&&e instanceof Map}function pt(e){return Ln&&e instanceof Set}function ht(e){return e.o||e.t}function vt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hi(e);delete t[Vt];for(var r=In(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Qt(e,t){return t===void 0&&(t=!1),Bt(e)||Pe(e)||!Me(e)||(J(e)>1&&(e.set=e.add=e.clear=e.delete=tr),Object.freeze(e),t&&Q(e,function(r,n){return Qt(n,!0)},!0)),e}function tr(){tt(2)}function Bt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function kt(e){var t=Oi[e];return t||tt(18,e),t}function zt(e,t){Oi[e]||(Oi[e]=t)}function Rr(){return qn}function Er(e,t){t&&(kt("Patches"),e.u=[],e.s=[],e.v=t)}function Fr(e){$r(e),e.p.forEach(vr),e.p=null}function $r(e){e===qn&&(qn=e.l)}function cn(e){return qn={p:[],l:qn,h:e,m:!0,_:0}}function vr(e){var t=e[Vt];t.i===0||t.i===1?t.j():t.g=!0}function Ge(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||kt("ES5").S(t,e,n),n?(r[Vt].P&&(Fr(t),tt(4)),Me(e)&&(e=Fe(t,e),t.l||rr(t,e)),t.u&&kt("Patches").M(r[Vt].t,e,t.u,t.s)):e=Fe(t,r,[]),Fr(t),t.u&&t.v(t.u,t.s),e!==Mn?e:void 0}function Fe(e,t,r){if(Bt(t))return t;var n=t[Vt];if(!n)return Q(t,function(c,v){return Xt(e,n,t,c,v,r)},!0),t;if(n.A!==e)return t;if(!n.P)return rr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=vt(n.k):n.o,a=i,u=!1;n.i===3&&(a=new Set(i),i.clear(),u=!0),Q(a,function(c,v){return Xt(e,n,i,c,v,r,u)}),rr(e,i,!1),r&&e.u&&kt("Patches").N(n,r,e.u,e.s)}return n.o}function Xt(e,t,r,n,i,a,u){if(Pe(i)){var c=Fe(e,i,a&&t&&t.i!==3&&!le(t.R,n)?a.concat(n):void 0);if(je(r,n,c),!Pe(c))return;e.m=!1}else u&&r.add(i);if(Me(i)&&!Bt(i)){if(!e.h.D&&e._<1)return;Fe(e,i),t&&t.A.l||rr(e,i)}}function rr(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Qt(t,r)}function mr(e,t){var r=e[Vt];return(r?ht(r):e)[t]}function Ht(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ir(e){e.P||(e.P=!0,e.l&&Ir(e.l))}function Vr(e){e.o||(e.o=vt(e.t))}function Gr(e,t,r){var n=Xe(t)?kt("MapSet").F(t,r):pt(t)?kt("MapSet").T(t,r):e.O?function(i,a){var u=Array.isArray(i),c={i:u?1:0,A:a?a.A:Rr(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},v=c,_=Tr;u&&(v=[c],_=Zn);var h=Proxy.revocable(v,_),L=h.revoke,W=h.proxy;return c.k=W,c.j=L,W}(t,r):kt("ES5").J(t,r);return(r?r.A:Rr()).p.push(n),n}function mn(e){return Pe(e)||tt(22,e),function t(r){if(!Me(r))return r;var n,i=r[Vt],a=J(r);if(i){if(!i.P&&(i.i<4||!kt("ES5").K(i)))return i.t;i.I=!0,n=Hn(r,a),i.I=!1}else n=Hn(r,a);return Q(n,function(u,c){i&&Se(i.t,u)===c||je(n,u,t(c))}),a===3?new Set(n):n}(e)}function Hn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return vt(e)}function Yn(){function e(u,c){var v=a[u];return v?v.enumerable=c:a[u]=v={configurable:!0,enumerable:c,get:function(){var _=this[Vt];return Tr.get(_,u)},set:function(_){var h=this[Vt];Tr.set(h,u,_)}},v}function t(u){for(var c=u.length-1;c>=0;c--){var v=u[c][Vt];if(!v.P)switch(v.i){case 5:n(v)&&Ir(v);break;case 4:r(v)&&Ir(v)}}}function r(u){for(var c=u.t,v=u.k,_=In(v),h=_.length-1;h>=0;h--){var L=_[h];if(L!==Vt){var W=c[L];if(W===void 0&&!le(c,L))return!0;var Te=v[L],me=Te&&Te[Vt];if(me?me.t!==W:!dt(Te,W))return!0}}var Oe=!!c[Vt];return _.length!==In(c).length+(Oe?0:1)}function n(u){var c=u.k;if(c.length!==u.t.length)return!0;var v=Object.getOwnPropertyDescriptor(c,c.length-1);if(v&&!v.get)return!0;for(var _=0;_<c.length;_++)if(!c.hasOwnProperty(_))return!0;return!1}function i(u){u.g&&tt(3,JSON.stringify(ht(u)))}var a={};zt("ES5",{J:function(u,c){var v=Array.isArray(u),_=function(L,W){if(L){for(var Te=Array(W.length),me=0;me<W.length;me++)Object.defineProperty(Te,""+me,e(me,!0));return Te}var Oe=hi(W);delete Oe[Vt];for(var He=In(Oe),qe=0;qe<He.length;qe++){var We=He[qe];Oe[We]=e(We,L||!!Oe[We].enumerable)}return Object.create(Object.getPrototypeOf(W),Oe)}(v,u),h={i:v?5:4,A:c?c.A:Rr(),P:!1,I:!1,R:{},l:c,t:u,k:_,o:null,g:!1,C:!1};return Object.defineProperty(_,Vt,{value:h,writable:!0}),_},S:function(u,c,v){v?Pe(c)&&c[Vt].A===u&&t(u.p):(u.u&&function _(h){if(h&&typeof h=="object"){var L=h[Vt];if(L){var W=L.t,Te=L.k,me=L.R,Oe=L.i;if(Oe===4)Q(Te,function(yt){yt!==Vt&&(W[yt]!==void 0||le(W,yt)?me[yt]||_(Te[yt]):(me[yt]=!0,Ir(L)))}),Q(W,function(yt){Te[yt]!==void 0||le(Te,yt)||(me[yt]=!1,Ir(L))});else if(Oe===5){if(n(L)&&(Ir(L),me.length=!0),Te.length<W.length)for(var He=Te.length;He<W.length;He++)me[He]=!1;else for(var qe=W.length;qe<Te.length;qe++)me[qe]=!0;for(var We=Math.min(Te.length,W.length),ct=0;ct<We;ct++)Te.hasOwnProperty(ct)||(me[ct]=!0),me[ct]===void 0&&_(Te[ct])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?r(u):n(u)}})}function ln(){function e(n){if(!Me(n))return n;if(Array.isArray(n))return n.map(e);if(Xe(n))return new Map(Array.from(n.entries()).map(function(u){return[u[0],e(u[1])]}));if(pt(n))return new Set(Array.from(n).map(e));var i=Object.create(Object.getPrototypeOf(n));for(var a in n)i[a]=e(n[a]);return le(n,Dn)&&(i[Dn]=n[Dn]),i}function t(n){return Pe(n)?e(n):n}var r="add";zt("Patches",{$:function(n,i){return i.forEach(function(a){for(var u=a.path,c=a.op,v=n,_=0;_<u.length-1;_++){var h=J(v),L=u[_];typeof L!="string"&&typeof L!="number"&&(L=""+L),h!==0&&h!==1||L!=="__proto__"&&L!=="constructor"||tt(24),typeof v=="function"&&L==="prototype"&&tt(24),typeof(v=Se(v,L))!="object"&&tt(15,u.join("/"))}var W=J(v),Te=e(a.value),me=u[u.length-1];switch(c){case"replace":switch(W){case 2:return v.set(me,Te);case 3:tt(16);default:return v[me]=Te}case r:switch(W){case 1:return me==="-"?v.push(Te):v.splice(me,0,Te);case 2:return v.set(me,Te);case 3:return v.add(Te);default:return v[me]=Te}case"remove":switch(W){case 1:return v.splice(me,1);case 2:return v.delete(me);case 3:return v.delete(a.value);default:return delete v[me]}default:tt(17,c)}}),n},N:function(n,i,a,u){switch(n.i){case 0:case 4:case 2:return function(c,v,_,h){var L=c.t,W=c.o;Q(c.R,function(Te,me){var Oe=Se(L,Te),He=Se(W,Te),qe=me?le(L,Te)?"replace":r:"remove";if(Oe!==He||qe!=="replace"){var We=v.concat(Te);_.push(qe==="remove"?{op:qe,path:We}:{op:qe,path:We,value:He}),h.push(qe===r?{op:"remove",path:We}:qe==="remove"?{op:r,path:We,value:t(Oe)}:{op:"replace",path:We,value:t(Oe)})}})}(n,i,a,u);case 5:case 1:return function(c,v,_,h){var L=c.t,W=c.R,Te=c.o;if(Te.length<L.length){var me=[Te,L];L=me[0],Te=me[1];var Oe=[h,_];_=Oe[0],h=Oe[1]}for(var He=0;He<L.length;He++)if(W[He]&&Te[He]!==L[He]){var qe=v.concat([He]);_.push({op:"replace",path:qe,value:t(Te[He])}),h.push({op:"replace",path:qe,value:t(L[He])})}for(var We=L.length;We<Te.length;We++){var ct=v.concat([We]);_.push({op:r,path:ct,value:t(Te[We])})}L.length<Te.length&&h.push({op:"replace",path:v.concat(["length"]),value:L.length})}(n,i,a,u);case 3:return function(c,v,_,h){var L=c.t,W=c.o,Te=0;L.forEach(function(me){if(!W.has(me)){var Oe=v.concat([Te]);_.push({op:"remove",path:Oe,value:me}),h.unshift({op:r,path:Oe,value:me})}Te++}),Te=0,W.forEach(function(me){if(!L.has(me)){var Oe=v.concat([Te]);_.push({op:r,path:Oe,value:me}),h.unshift({op:"remove",path:Oe,value:me})}Te++})}(n,i,a,u)}},M:function(n,i,a,u){a.push({op:"replace",path:[],value:i===Mn?void 0:i}),u.push({op:"replace",path:[],value:n})}})}function $t(){function e(c,v){function _(){this.constructor=c}i(c,v),c.prototype=(_.prototype=v.prototype,new _)}function t(c){c.o||(c.R=new Map,c.o=new Map(c.t))}function r(c){c.o||(c.o=new Set,c.t.forEach(function(v){if(Me(v)){var _=Gr(c.A.h,v,c);c.p.set(v,_),c.o.add(_)}else c.o.add(v)}))}function n(c){c.g&&tt(3,JSON.stringify(ht(c)))}var i=function(c,v){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,h){_.__proto__=h}||function(_,h){for(var L in h)h.hasOwnProperty(L)&&(_[L]=h[L])})(c,v)},a=function(){function c(_,h){return this[Vt]={i:2,l:h,A:h?h.A:Rr(),P:!1,I:!1,o:void 0,R:void 0,t:_,k:this,C:!1,g:!1},this}e(c,Map);var v=c.prototype;return Object.defineProperty(v,"size",{get:function(){return ht(this[Vt]).size}}),v.has=function(_){return ht(this[Vt]).has(_)},v.set=function(_,h){var L=this[Vt];return n(L),ht(L).has(_)&&ht(L).get(_)===h||(t(L),Ir(L),L.R.set(_,!0),L.o.set(_,h),L.R.set(_,!0)),this},v.delete=function(_){if(!this.has(_))return!1;var h=this[Vt];return n(h),t(h),Ir(h),h.t.has(_)?h.R.set(_,!1):h.R.delete(_),h.o.delete(_),!0},v.clear=function(){var _=this[Vt];n(_),ht(_).size&&(t(_),Ir(_),_.R=new Map,Q(_.t,function(h){_.R.set(h,!1)}),_.o.clear())},v.forEach=function(_,h){var L=this;ht(this[Vt]).forEach(function(W,Te){_.call(h,L.get(Te),Te,L)})},v.get=function(_){var h=this[Vt];n(h);var L=ht(h).get(_);if(h.I||!Me(L)||L!==h.t.get(_))return L;var W=Gr(h.A.h,L,h);return t(h),h.o.set(_,W),W},v.keys=function(){return ht(this[Vt]).keys()},v.values=function(){var _,h=this,L=this.keys();return(_={})[hn]=function(){return h.values()},_.next=function(){var W=L.next();return W.done?W:{done:!1,value:h.get(W.value)}},_},v.entries=function(){var _,h=this,L=this.keys();return(_={})[hn]=function(){return h.entries()},_.next=function(){var W=L.next();if(W.done)return W;var Te=h.get(W.value);return{done:!1,value:[W.value,Te]}},_},v[hn]=function(){return this.entries()},c}(),u=function(){function c(_,h){return this[Vt]={i:3,l:h,A:h?h.A:Rr(),P:!1,I:!1,o:void 0,t:_,k:this,p:new Map,g:!1,C:!1},this}e(c,Set);var v=c.prototype;return Object.defineProperty(v,"size",{get:function(){return ht(this[Vt]).size}}),v.has=function(_){var h=this[Vt];return n(h),h.o?!!h.o.has(_)||!(!h.p.has(_)||!h.o.has(h.p.get(_))):h.t.has(_)},v.add=function(_){var h=this[Vt];return n(h),this.has(_)||(r(h),Ir(h),h.o.add(_)),this},v.delete=function(_){if(!this.has(_))return!1;var h=this[Vt];return n(h),r(h),Ir(h),h.o.delete(_)||!!h.p.has(_)&&h.o.delete(h.p.get(_))},v.clear=function(){var _=this[Vt];n(_),ht(_).size&&(r(_),Ir(_),_.o.clear())},v.values=function(){var _=this[Vt];return n(_),r(_),_.o.values()},v.entries=function(){var _=this[Vt];return n(_),r(_),_.o.entries()},v.keys=function(){return this.values()},v[hn]=function(){return this.values()},v.forEach=function(_,h){for(var L=this.values(),W=L.next();!W.done;)_.call(h,W.value,W.value,this),W=L.next()},c}();zt("MapSet",{F:function(c,v){return new a(c,v)},T:function(c,v){return new u(c,v)}})}function Ki(){Yn(),$t(),ln()}function br(e){return e}function Xn(e){return e}var Jn,qn,pn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hr=typeof Map<"u",Ln=typeof Set<"u",ii=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Mn=pn?Symbol.for("immer-nothing"):((Jn={})["immer-nothing"]=!0,Jn),Dn=pn?Symbol.for("immer-draftable"):"__$immer_draftable",Vt=pn?Symbol.for("immer-state"):"__$immer_state",hn=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",zr={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},it=""+Object.prototype.constructor,In=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,hi=Object.getOwnPropertyDescriptors||function(e){var t={};return In(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Oi={},Tr={get:function(e,t){if(t===Vt)return e;var r=ht(e);if(!le(r,t))return function(i,a,u){var c,v=Ht(a,u);return v?"value"in v?v.value:(c=v.get)===null||c===void 0?void 0:c.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!Me(n)?n:n===mr(e.t,t)?(Vr(e),e.o[t]=Gr(e.A.h,n,e)):n},has:function(e,t){return t in ht(e)},ownKeys:function(e){return Reflect.ownKeys(ht(e))},set:function(e,t,r){var n=Ht(ht(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=mr(ht(e),t),a=i?.[Vt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(dt(r,i)&&(r!==void 0||le(e.t,t)))return!0;Vr(e),Ir(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return mr(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Vr(e),Ir(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ht(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){tt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){tt(12)}},Zn={};Q(Tr,function(e,t){Zn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Zn.deleteProperty=function(e,t){return Zn.set.call(this,e,t,void 0)},Zn.set=function(e,t,r){return Tr.set.call(this,e[0],t,r,e[0])};var da=function(){function e(r){var n=this;this.O=ii,this.D=!0,this.produce=function(i,a,u){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var v=n;return function(Oe){var He=this;Oe===void 0&&(Oe=c);for(var qe=arguments.length,We=Array(qe>1?qe-1:0),ct=1;ct<qe;ct++)We[ct-1]=arguments[ct];return v.produce(Oe,function(yt){var jt;return(jt=a).call.apply(jt,[He,yt].concat(We))})}}var _;if(typeof a!="function"&&tt(6),u!==void 0&&typeof u!="function"&&tt(7),Me(i)){var h=cn(n),L=Gr(n,i,void 0),W=!0;try{_=a(L),W=!1}finally{W?Fr(h):$r(h)}return typeof Promise<"u"&&_ instanceof Promise?_.then(function(Oe){return Er(h,u),Ge(Oe,h)},function(Oe){throw Fr(h),Oe}):(Er(h,u),Ge(_,h))}if(!i||typeof i!="object"){if((_=a(i))===void 0&&(_=i),_===Mn&&(_=void 0),n.D&&Qt(_,!0),u){var Te=[],me=[];kt("Patches").M(i,_,Te,me),u(Te,me)}return _}tt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(_){for(var h=arguments.length,L=Array(h>1?h-1:0),W=1;W<h;W++)L[W-1]=arguments[W];return n.produceWithPatches(_,function(Te){return i.apply(void 0,[Te].concat(L))})};var u,c,v=n.produce(i,a,function(_,h){u=_,c=h});return typeof Promise<"u"&&v instanceof Promise?v.then(function(_){return[_,u,c]}):[v,u,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Me(r)||tt(8),Pe(r)&&(r=mn(r));var n=cn(this),i=Gr(this,r,void 0);return i[Vt].C=!0,$r(n),i},t.finishDraft=function(r,n){var i=r&&r[Vt],a=i.A;return Er(a,n),Ge(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!ii&&tt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var u=kt("Patches").$;return Pe(r)?u(r,n):this.produce(r,function(c){return u(c,n)})},e}(),yn=new da,Ni=yn.produce,Li=yn.produceWithPatches.bind(yn),E=yn.setAutoFreeze.bind(yn),N=yn.setUseProxies.bind(yn),ee=yn.applyPatches.bind(yn),pe=yn.createDraft.bind(yn),De=yn.finishDraft.bind(yn);const Be=Ni;function nt(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(u){return function(c){return typeof c=="function"?c(i,a,e):u(c)}}};return t}var gt=nt();gt.withExtraArgument=nt;const ut=gt;var St=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ot=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Nt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},mt=Object.defineProperty,Mt=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Yr=function(e,t,r){return t in e?mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Br=function(e,t){for(var r in t||(t={}))nr.call(t,r)&&Yr(e,r,t[r]);if(xr)for(var n=0,i=xr(t);n<i.length;n++){var r=i[n];Zr.call(t,r)&&Yr(e,r,t[r])}return e},bi=function(e,t){return Mt(e,Lt(t))},Vn=function(e,t,r){return new Promise(function(n,i){var a=function(v){try{c(r.next(v))}catch(_){i(_)}},u=function(v){try{c(r.throw(v))}catch(_){i(_)}},c=function(v){return v.done?n(v.value):Promise.resolve(v.value).then(a,u)};c((r=r.apply(e,t)).next())})},Ci=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=createSelector.apply(void 0,e),n=function(i){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return r.apply(void 0,Nt([isDraft(i)?current(i):i],a))};return n},Pi=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?at:at.apply(null,arguments)},Di=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Rn(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Wi(e,t){var r=0;return{measureTime:function(n){var i=Date.now();try{return n()}finally{var a=Date.now();r+=a-i}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
95
+ `):new T.zU(20)}},2917:(Ee,K,p)=>{"use strict";p.d(K,{S:()=>T});var T=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var d=new AbortController,D=d.signal;return{controller:d,signal:D}}},6745:(Ee,K,p)=>{"use strict";p.d(K,{O:()=>D});var T=p(3848),d=Object.prototype.hasOwnProperty;function D(H){return function(V){return V.text().then(function(A){if(V.status>=300){var y=function(){try{return JSON.parse(A)}catch{return A}};(0,T.A)(V,y(),"Response not successful: Received status code ".concat(V.status))}try{return JSON.parse(A)}catch(P){var m=P;throw m.name="ServerParseError",m.response=V,m.statusCode=V.status,m.bodyText=A,m}}).then(function(A){return!Array.isArray(A)&&!d.call(A,"data")&&!d.call(A,"errors")&&(0,T.A)(V,A,"Server response was missing for query '".concat(Array.isArray(H)?H.map(function(y){return y.operationName}):H.operationName,"'.")),A})}}},4559:(Ee,K,p)=>{"use strict";p.d(K,{HY:()=>P,R4:()=>A,Wz:()=>m,i1:()=>y});var T=p(5608),d=p(2704),D={includeQuery:!0,includeExtensions:!1},H={accept:"*/*","content-type":"application/json"},V={method:"POST"},A={http:D,headers:H,options:V},y=function($,G){return G($)};function m($,G){for(var x=[],Z=2;Z<arguments.length;Z++)x[Z-2]=arguments[Z];return x.unshift(G),P.apply(void 0,(0,T.fX)([$,y],x,!1))}function P($,G){for(var x=[],Z=2;Z<arguments.length;Z++)x[Z-2]=arguments[Z];var F={},te={};x.forEach(function(be){F=(0,T.Cl)((0,T.Cl)((0,T.Cl)({},F),be.options),{headers:(0,T.Cl)((0,T.Cl)({},F.headers),g(be.headers))}),be.credentials&&(F.credentials=be.credentials),te=(0,T.Cl)((0,T.Cl)({},te),be.http)});var ie=$.operationName,ce=$.extensions,j=$.variables,O=$.query,ue={operationName:ie,variables:j};return te.includeExtensions&&(ue.extensions=ce),te.includeQuery&&(ue.query=G(O,d.y)),{options:F,body:ue}}function g($){if($){var G=Object.create(null);return Object.keys(Object($)).forEach(function(x){G[x.toLowerCase()]=$[x]}),G}return $}},3068:(Ee,K,p)=>{"use strict";p.d(K,{z:()=>T});var T=function(d,D){var H=d.getContext(),V=H.uri;return V||(typeof D=="function"?D(d):D||"/graphql")}},3647:(Ee,K,p)=>{"use strict";p.d(K,{Y:()=>d});var T=p(7432),d=function(D,H){var V;try{V=JSON.stringify(D)}catch(y){var A=__DEV__?new T.zU("Network request failed. ".concat(H," is not serializable: ").concat(y.message)):new T.zU(21);throw A.parseError=y,A}return V}},3161:(Ee,K,p)=>{"use strict";p.d(K,{N:()=>d});var T=p(6054);function d(D){return new T.c(function(H){H.error(D)})}},3848:(Ee,K,p)=>{"use strict";p.d(K,{A:()=>T});var T=function(d,D,H){var V=new Error(H);throw V.name="ServerError",V.response=d,V.statusCode=d.status,V.result=D,V}},3767:(Ee,K,p)=>{"use strict";p.d(K,{E:()=>T});function T(d){return Array.isArray(d)&&d.length>0}},1360:(Ee,K,p)=>{"use strict";p.d(K,{En:()=>D,JR:()=>y,Sw:()=>V,et:()=>d,ol:()=>H});var T=p(7432),d=typeof WeakMap=="function"&&(0,T.no)(function(){return navigator.product})!=="ReactNative",D=typeof WeakSet=="function",H=typeof Symbol=="function"&&typeof Symbol.for=="function",V=typeof(0,T.no)(function(){return window.document.createElement})=="function",A=(0,T.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,y=V&&!A},906:(Ee,K,p)=>{"use strict";p.d(K,{m:()=>d});var T=Object.prototype.toString;function d(H){return D(H)}function D(H,V){switch(T.call(H)){case"[object Array]":{if(V=V||new Map,V.has(H))return V.get(H);var A=H.slice(0);return V.set(H,A),A.forEach(function(m,P){A[P]=D(m,V)}),A}case"[object Object]":{if(V=V||new Map,V.has(H))return V.get(H);var y=Object.create(Object.getPrototypeOf(H));return V.set(H,y),Object.keys(H).forEach(function(m){y[m]=D(H[m],V)}),y}default:return H}}},492:(Ee,K,p)=>{"use strict";p.d(K,{o:()=>T});function T(){for(var d=[],D=0;D<arguments.length;D++)d[D]=arguments[D];var H=Object.create(null);return d.forEach(function(V){!V||Object.keys(V).forEach(function(A){var y=V[A];y!==void 0&&(H[A]=y)})}),H}},2710:(Ee,K,p)=>{"use strict";p.d(K,{t:()=>T});function T(d){return d.errors&&d.errors.length>0||!1}},1461:(Ee,K,p)=>{"use strict";p.d(K,{v:()=>d});var T=new Map;function d(D){var H=T.get(D)||1;return T.set(D,H+1),"".concat(D,":").concat(H,":").concat(Math.random().toString(36).slice(2))}},7236:(Ee,K,p)=>{"use strict";p.d(K,{G:()=>V});var T=p(7432),d=p(1777);function D(A){var y=new Set([A]);return y.forEach(function(m){(0,d.U)(m)&&H(m)===m&&Object.getOwnPropertyNames(m).forEach(function(P){(0,d.U)(m[P])&&y.add(m[P])})}),A}function H(A){if(__DEV__&&!Object.isFrozen(A))try{Object.freeze(A)}catch(y){if(y instanceof TypeError)return null;throw y}return A}function V(A){return __DEV__&&D(A),A}},671:(Ee,K,p)=>{"use strict";p.d(K,{D9:()=>H,IM:()=>V,ZI:()=>y});var T=p(5608),d=p(1777),D=Object.prototype.hasOwnProperty;function H(){for(var m=[],P=0;P<arguments.length;P++)m[P]=arguments[P];return V(m)}function V(m){var P=m[0]||{},g=m.length;if(g>1)for(var $=new y,G=1;G<g;++G)P=$.merge(P,m[G]);return P}var A=function(m,P,g){return this.merge(m[g],P[g])},y=function(){function m(P){P===void 0&&(P=A),this.reconciler=P,this.isObject=d.U,this.pastCopies=new Set}return m.prototype.merge=function(P,g){for(var $=this,G=[],x=2;x<arguments.length;x++)G[x-2]=arguments[x];return(0,d.U)(g)&&(0,d.U)(P)?(Object.keys(g).forEach(function(Z){if(D.call(P,Z)){var F=P[Z];if(g[Z]!==F){var te=$.reconciler.apply($,(0,T.fX)([P,g,Z],G,!1));te!==F&&(P=$.shallowCopyForMerge(P),P[Z]=te)}}else P=$.shallowCopyForMerge(P),P[Z]=g[Z]}),P):g},m.prototype.shallowCopyForMerge=function(P){return(0,d.U)(P)&&(this.pastCopies.has(P)||(Array.isArray(P)?P=P.slice(0):P=(0,T.Cl)({__proto__:Object.getPrototypeOf(P)},P),this.pastCopies.add(P))),P},m}()},1507:(Ee,K,p)=>{"use strict";p.d(K,{l:()=>D});var T=p(5608),d=p(492);function D(H,V){return(0,d.o)(H,V,V.variables&&{variables:(0,T.Cl)((0,T.Cl)({},H&&H.variables),V.variables)})}},1777:(Ee,K,p)=>{"use strict";p.d(K,{U:()=>T});function T(d){return d!==null&&typeof d=="object"}},6563:(Ee,K,p)=>{"use strict";p.d(K,{p:()=>d});var T=p(1461);function d(D){var H=(0,T.v)("stringifyForDisplay");return JSON.stringify(D,function(V,A){return A===void 0?H:A}).split(JSON.stringify(H)).join("<undefined>")}},7432:(Ee,K,p)=>{"use strict";p.d(K,{IJ:()=>y,zU:()=>T.zU,V1:()=>T.V1,no:()=>d});var T=p(9371);function d(te){try{return te()}catch{}}const D=d(function(){return globalThis})||d(function(){return window})||d(function(){return self})||d(function(){return global})||d(function(){return d.constructor("return this")()});var H="__",V=[H,H].join("DEV");function A(){try{return Boolean(__DEV__)}catch{return Object.defineProperty(D,V,{value:d(function(){return"production"})!=="production",enumerable:!1,configurable:!0,writable:!0}),D[V]}}const y=A();function m(te){try{return te()}catch{}}var P=m(function(){return globalThis})||m(function(){return window})||m(function(){return self})||m(function(){return global})||m(function(){return m.constructor("return this")()}),g=!1;function $(){P&&!m(function(){return"production"})&&!m(function(){return process})&&(Object.defineProperty(P,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),g=!0)}$();function G(){g&&(delete P.process,g=!1)}var x=p(5494);function Z(){return typeof x.k=="function",G()}function F(){__DEV__?(0,T.V1)(typeof y=="boolean",y):(0,T.V1)(typeof y=="boolean",36)}Z(),F()},2307:(Ee,K,p)=>{"use strict";p.d(K,{MS:()=>D,d8:()=>V,f2:()=>A,sx:()=>H,tY:()=>m});var T=p(7432),d=p(424);function D(P,g){var $=P.directives;return!$||!$.length?!0:m($).every(function(G){var x=G.directive,Z=G.ifArgument,F=!1;return Z.value.kind==="Variable"?(F=g&&g[Z.value.name.value],__DEV__?(0,T.V1)(F!==void 0,"Invalid variable referenced in @".concat(x.name.value," directive.")):(0,T.V1)(F!==void 0,37)):F=Z.value.value,x.name.value==="skip"?!F:F})}function H(P){var g=[];return(0,d.YR)(P,{Directive:function($){g.push($.name.value)}}),g}function V(P,g){return H(g).some(function($){return P.indexOf($)>-1})}function A(P){return P&&V(["client"],P)&&V(["export"],P)}function y(P){var g=P.name.value;return g==="skip"||g==="include"}function m(P){var g=[];return P&&P.length&&P.forEach(function($){if(!!y($)){var G=$.arguments,x=$.name.value;__DEV__?(0,T.V1)(G&&G.length===1,"Incorrect number of arguments for the @".concat(x," directive.")):(0,T.V1)(G&&G.length===1,38);var Z=G[0];__DEV__?(0,T.V1)(Z.name&&Z.name.value==="if","Invalid argument for the @".concat(x," directive.")):(0,T.V1)(Z.name&&Z.name.value==="if",39);var F=Z.value;__DEV__?(0,T.V1)(F&&(F.kind==="Variable"||F.kind==="BooleanValue"),"Argument for the @".concat(x," directive must be a variable or a boolean value.")):(0,T.V1)(F&&(F.kind==="Variable"||F.kind==="BooleanValue"),40),g.push({directive:$,ifArgument:Z})}}),g}},2904:(Ee,K,p)=>{"use strict";p.d(K,{HQ:()=>V,JG:()=>H,ct:()=>D});var T=p(5608),d=p(7432);function D(A,y){var m=y,P=[];A.definitions.forEach(function($){if($.kind==="OperationDefinition")throw __DEV__?new d.zU("Found a ".concat($.operation," operation").concat($.name?" named '".concat($.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new d.zU(41);$.kind==="FragmentDefinition"&&P.push($)}),typeof m>"u"&&(__DEV__?(0,d.V1)(P.length===1,"Found ".concat(P.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,d.V1)(P.length===1,42),m=P[0].name.value);var g=(0,T.Cl)((0,T.Cl)({},A),{definitions:(0,T.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:m}}]}}],A.definitions,!0)});return g}function H(A){A===void 0&&(A=[]);var y={};return A.forEach(function(m){y[m.name.value]=m}),y}function V(A,y){switch(A.kind){case"InlineFragment":return A;case"FragmentSpread":{var m=y&&y[A.name.value];return __DEV__?(0,d.V1)(m,"No fragment named ".concat(A.name.value,".")):(0,d.V1)(m,43),m}default:return null}}},3777:(Ee,K,p)=>{"use strict";p.d(K,{AT:()=>y,E4:()=>m,Vn:()=>P,Vu:()=>H,n4:()=>V,sw:()=>D,wY:()=>g,zK:()=>A});var T=p(7432),d=p(8907);function D($){__DEV__?(0,T.V1)($&&$.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,T.V1)($&&$.kind==="Document",44);var G=$.definitions.filter(function(x){return x.kind!=="FragmentDefinition"}).map(function(x){if(x.kind!=="OperationDefinition")throw __DEV__?new T.zU('Schema type definitions not allowed in queries. Found: "'.concat(x.kind,'"')):new T.zU(45);return x});return __DEV__?(0,T.V1)(G.length<=1,"Ambiguous GraphQL document: contains ".concat(G.length," operations")):(0,T.V1)(G.length<=1,46),$}function H($){return D($),$.definitions.filter(function(G){return G.kind==="OperationDefinition"})[0]}function V($){return $.definitions.filter(function(G){return G.kind==="OperationDefinition"&&G.name}).map(function(G){return G.name.value})[0]||null}function A($){return $.definitions.filter(function(G){return G.kind==="FragmentDefinition"})}function y($){var G=H($);return __DEV__?(0,T.V1)(G&&G.operation==="query","Must contain a query definition."):(0,T.V1)(G&&G.operation==="query",47),G}function m($){__DEV__?(0,T.V1)($.kind==="Document",'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,T.V1)($.kind==="Document",48),__DEV__?(0,T.V1)($.definitions.length<=1,"Fragment must have exactly one definition."):(0,T.V1)($.definitions.length<=1,49);var G=$.definitions[0];return __DEV__?(0,T.V1)(G.kind==="FragmentDefinition","Must be a fragment definition."):(0,T.V1)(G.kind==="FragmentDefinition",50),G}function P($){D($);for(var G,x=0,Z=$.definitions;x<Z.length;x++){var F=Z[x];if(F.kind==="OperationDefinition"){var te=F.operation;if(te==="query"||te==="mutation"||te==="subscription")return F}F.kind==="FragmentDefinition"&&!G&&(G=F)}if(G)return G;throw __DEV__?new T.zU("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new T.zU(51)}function g($){var G=Object.create(null),x=$&&$.variableDefinitions;return x&&x.length&&x.forEach(function(Z){Z.defaultValue&&(0,d.J)(G,Z.variable.name,Z.defaultValue)}),G}},8907:(Ee,K,p)=>{"use strict";p.d(K,{A_:()=>V,D$:()=>we,Ii:()=>ie,J:()=>te,Kc:()=>A,MB:()=>be,WU:()=>H,dt:()=>_e,kd:()=>Ne,o5:()=>j,ue:()=>xe});var T=p(7432),d=p(1777),D=p(2904);function H(Ae){return{__ref:String(Ae)}}function V(Ae){return Boolean(Ae&&typeof Ae=="object"&&typeof Ae.__ref=="string")}function A(Ae){return(0,d.U)(Ae)&&Ae.kind==="Document"&&Array.isArray(Ae.definitions)}function y(Ae){return Ae.kind==="StringValue"}function m(Ae){return Ae.kind==="BooleanValue"}function P(Ae){return Ae.kind==="IntValue"}function g(Ae){return Ae.kind==="FloatValue"}function $(Ae){return Ae.kind==="Variable"}function G(Ae){return Ae.kind==="ObjectValue"}function x(Ae){return Ae.kind==="ListValue"}function Z(Ae){return Ae.kind==="EnumValue"}function F(Ae){return Ae.kind==="NullValue"}function te(Ae,U,b,C){if(P(b)||g(b))Ae[U.value]=Number(b.value);else if(m(b)||y(b))Ae[U.value]=b.value;else if(G(b)){var I={};b.fields.map(function(Y){return te(I,Y.name,Y.value,C)}),Ae[U.value]=I}else if($(b)){var k=(C||{})[b.name.value];Ae[U.value]=k}else if(x(b))Ae[U.value]=b.values.map(function(Y){var oe={};return te(oe,U,Y,C),oe[U.value]});else if(Z(b))Ae[U.value]=b.value;else if(F(b))Ae[U.value]=null;else throw __DEV__?new T.zU('The inline argument "'.concat(U.value,'" of kind "').concat(b.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new T.zU(52)}function ie(Ae,U){var b=null;Ae.directives&&(b={},Ae.directives.forEach(function(I){b[I.name.value]={},I.arguments&&I.arguments.forEach(function(k){var Y=k.name,oe=k.value;return te(b[I.name.value],Y,oe,U)})}));var C=null;return Ae.arguments&&Ae.arguments.length&&(C={},Ae.arguments.forEach(function(I){var k=I.name,Y=I.value;return te(C,k,Y,U)})),j(Ae.name.value,C,b)}var ce=["connection","include","skip","client","rest","export"],j=Object.assign(function(Ae,U,b){if(U&&b&&b.connection&&b.connection.key)if(b.connection.filter&&b.connection.filter.length>0){var C=b.connection.filter?b.connection.filter:[];C.sort();var I={};return C.forEach(function(oe){I[oe]=U[oe]}),"".concat(b.connection.key,"(").concat(O(I),")")}else return b.connection.key;var k=Ae;if(U){var Y=O(U);k+="(".concat(Y,")")}return b&&Object.keys(b).forEach(function(oe){ce.indexOf(oe)===-1&&(b[oe]&&Object.keys(b[oe]).length?k+="@".concat(oe,"(").concat(O(b[oe]),")"):k+="@".concat(oe))}),k},{setStringify:function(Ae){var U=O;return O=Ae,U}}),O=function(U){return JSON.stringify(U,ue)};function ue(Ae,U){return(0,d.U)(U)&&!Array.isArray(U)&&(U=Object.keys(U).sort().reduce(function(b,C){return b[C]=U[C],b},{})),U}function be(Ae,U){if(Ae.arguments&&Ae.arguments.length){var b={};return Ae.arguments.forEach(function(C){var I=C.name,k=C.value;return te(b,I,k,U)}),b}return null}function xe(Ae){return Ae.alias?Ae.alias.value:Ae.name.value}function we(Ae,U,b){if(typeof Ae.__typename=="string")return Ae.__typename;for(var C=0,I=U.selections;C<I.length;C++){var k=I[C];if(_e(k)){if(k.name.value==="__typename")return Ae[xe(k)]}else{var Y=we(Ae,(0,D.HQ)(k,b).selectionSet,b);if(typeof Y=="string")return Y}}}function _e(Ae){return Ae.kind==="Field"}function Ne(Ae){return Ae.kind==="InlineFragment"}},5388:(Ee,K,p)=>{"use strict";p.d(K,{XY:()=>x,zc:()=>be,it:()=>j,er:()=>xe,hX:()=>F,iz:()=>G,TC:()=>O});var T=p(5608),d=p(7432),D=p(424),H=p(3777);function V(we,_e,Ne){var Ae=0;return we.forEach(function(U,b){_e.call(this,U,b,we)&&(we[Ae++]=U)},Ne),we.length=Ae,we}var A=p(8907),y=p(2904),m={kind:"Field",name:{kind:"Name",value:"__typename"}};function P(we,_e){return we.selectionSet.selections.every(function(Ne){return Ne.kind==="FragmentSpread"&&P(_e[Ne.name.value],_e)})}function g(we){return P((0,H.Vu)(we)||(0,H.E4)(we),(0,y.JG)((0,H.zK)(we)))?null:we}function $(we){return function(Ne){return we.some(function(Ae){return Ae.name&&Ae.name===Ne.name.value||Ae.test&&Ae.test(Ne)})}}function G(we,_e){var Ne=Object.create(null),Ae=[],U=Object.create(null),b=[],C=g((0,D.YR)(_e,{Variable:{enter:function(I,k,Y){Y.kind!=="VariableDefinition"&&(Ne[I.name.value]=!0)}},Field:{enter:function(I){if(we&&I.directives){var k=we.some(function(Y){return Y.remove});if(k&&I.directives&&I.directives.some($(we)))return I.arguments&&I.arguments.forEach(function(Y){Y.value.kind==="Variable"&&Ae.push({name:Y.value.name.value})}),I.selectionSet&&ue(I.selectionSet).forEach(function(Y){b.push({name:Y.name.value})}),null}}},FragmentSpread:{enter:function(I){U[I.name.value]=!0}},Directive:{enter:function(I){if($(we)(I))return null}}}));return C&&V(Ae,function(I){return!!I.name&&!Ne[I.name]}).length&&(C=j(Ae,C)),C&&V(b,function(I){return!!I.name&&!U[I.name]}).length&&(C=O(b,C)),C}var x=Object.assign(function(we){return(0,D.YR)(we,{SelectionSet:{enter:function(_e,Ne,Ae){if(!(Ae&&Ae.kind==="OperationDefinition")){var U=_e.selections;if(!!U){var b=U.some(function(I){return(0,A.dt)(I)&&(I.name.value==="__typename"||I.name.value.lastIndexOf("__",0)===0)});if(!b){var C=Ae;if(!((0,A.dt)(C)&&C.directives&&C.directives.some(function(I){return I.name.value==="export"})))return(0,T.Cl)((0,T.Cl)({},_e),{selections:(0,T.fX)((0,T.fX)([],U,!0),[m],!1)})}}}}}})},{added:function(we){return we===m}}),Z={test:function(we){var _e=we.name.value==="connection";return _e&&(!we.arguments||!we.arguments.some(function(Ne){return Ne.name.value==="key"}))&&__DEV__&&d.V1.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),_e}};function F(we){return G([Z],(0,H.sw)(we))}function te(we,_e,Ne){return Ne===void 0&&(Ne=!0),!!_e&&_e.selections&&_e.selections.some(function(Ae){return ie(we,Ae,Ne)})}function ie(we,_e,Ne){return Ne===void 0&&(Ne=!0),isField(_e)?_e.directives?_e.directives.some($(we))||Ne&&te(we,_e.selectionSet,Ne):!1:!0}function ce(we){return function(Ne){return we.some(function(Ae){return Ne.value&&Ne.value.kind==="Variable"&&Ne.value.name&&(Ae.name===Ne.value.name.value||Ae.test&&Ae.test(Ne))})}}function j(we,_e){var Ne=ce(we);return g((0,D.YR)(_e,{OperationDefinition:{enter:function(Ae){return(0,T.Cl)((0,T.Cl)({},Ae),{variableDefinitions:Ae.variableDefinitions?Ae.variableDefinitions.filter(function(U){return!we.some(function(b){return b.name===U.variable.name.value})}):[]})}},Field:{enter:function(Ae){var U=we.some(function(C){return C.remove});if(U){var b=0;if(Ae.arguments&&Ae.arguments.forEach(function(C){Ne(C)&&(b+=1)}),b===1)return null}}},Argument:{enter:function(Ae){if(Ne(Ae))return null}}}))}function O(we,_e){function Ne(Ae){if(we.some(function(U){return U.name===Ae.name.value}))return null}return g((0,D.YR)(_e,{FragmentSpread:{enter:Ne},FragmentDefinition:{enter:Ne}}))}function ue(we){var _e=[];return we.selections.forEach(function(Ne){((0,A.dt)(Ne)||(0,A.kd)(Ne))&&Ne.selectionSet?ue(Ne.selectionSet).forEach(function(Ae){return _e.push(Ae)}):Ne.kind==="FragmentSpread"&&_e.push(Ne)}),_e}function be(we){var _e=(0,H.Vn)(we),Ne=_e.operation;if(Ne==="query")return we;var Ae=(0,D.YR)(we,{OperationDefinition:{enter:function(U){return(0,T.Cl)((0,T.Cl)({},U),{operation:"query"})}}});return Ae}function xe(we){(0,H.sw)(we);var _e=G([{test:function(Ne){return Ne.name.value==="client"},remove:!0}],we);return _e&&(_e=(0,D.YR)(_e,{FragmentDefinition:{enter:function(Ne){if(Ne.selectionSet){var Ae=Ne.selectionSet.selections.every(function(U){return(0,A.dt)(U)&&U.name.value==="__typename"});if(Ae)return null}}}})),_e}},2182:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{Concast:()=>O.E,DEV:()=>T.IJ,DeepMerger:()=>m.ZI,Observable:()=>F.c,addTypenameToDocument:()=>A.XY,argumentsObjectFromField:()=>V.MB,asyncMap:()=>j.x,buildQueryFromSelectionSet:()=>A.zc,canUseDOM:()=>_e.Sw,canUseLayoutEffect:()=>_e.JR,canUseSymbol:()=>_e.ol,canUseWeakMap:()=>_e.et,canUseWeakSet:()=>_e.En,checkDocument:()=>H.sw,cloneDeep:()=>te.m,compact:()=>Ne.o,concatPagination:()=>P,createFragmentMap:()=>D.JG,fixObservableSubclass:()=>ue.r,getDefaultValues:()=>H.wY,getDirectiveNames:()=>d.sx,getFragmentDefinition:()=>H.E4,getFragmentDefinitions:()=>H.zK,getFragmentFromSelection:()=>D.HQ,getFragmentQueryDocument:()=>D.ct,getInclusionDirectives:()=>d.tY,getMainDefinition:()=>H.Vn,getOperationDefinition:()=>H.Vu,getOperationName:()=>H.n4,getQueryDefinition:()=>H.AT,getStoreKeyName:()=>V.o5,getTypenameFromResult:()=>V.D$,graphQLResultHasError:()=>we.t,hasClientExports:()=>d.f2,hasDirectives:()=>d.d8,isDocumentNode:()=>V.Kc,isField:()=>V.dt,isInlineFragment:()=>V.kd,isNonEmptyArray:()=>be.E,isNonNullObject:()=>xe.U,isReference:()=>V.A_,iterateObserversSafely:()=>ce.w,makeReference:()=>V.WU,makeUniqueId:()=>Ae.v,maybe:()=>T.no,maybeDeepFreeze:()=>ie.G,mergeDeep:()=>m.D9,mergeDeepArray:()=>m.IM,mergeOptions:()=>b.l,offsetLimitPagination:()=>g,relayStylePagination:()=>$,removeArgumentsFromDocument:()=>A.it,removeClientSetsFromDocument:()=>A.er,removeConnectionDirectiveFromDocument:()=>A.hX,removeDirectivesFromDocument:()=>A.iz,removeFragmentSpreadFromDocument:()=>A.TC,resultKeyNameFromField:()=>V.ue,shouldInclude:()=>d.MS,storeKeyNameFromField:()=>V.Ii,stringifyForDisplay:()=>U.p,valueToObjectRepresentation:()=>V.J});var T=p(7432),d=p(2307),D=p(2904),H=p(3777),V=p(8907),A=p(5388),y=p(5608),m=p(671);function P(C){return C===void 0&&(C=!1),{keyArgs:C,merge:function(I,k){return I?(0,y.fX)((0,y.fX)([],I,!0),k,!0):k}}}function g(C){return C===void 0&&(C=!1),{keyArgs:C,merge:function(I,k,Y){var oe=Y.args,Re=I?I.slice(0):[];if(k)if(oe)for(var de=oe.offset,ae=de===void 0?0:de,re=0;re<k.length;++re)Re[ae+re]=k[re];else Re.push.apply(Re,k);return Re}}}function $(C){return C===void 0&&(C=!1),{keyArgs:C,read:function(I,k){var Y=k.canRead,oe=k.readField;if(!I)return I;var Re=[],de="",ae="";I.edges.forEach(function(ye){Y(oe("node",ye))&&(Re.push(ye),ye.cursor&&(de=de||ye.cursor||"",ae=ye.cursor||ae))});var re=I.pageInfo||{},z=re.startCursor,ve=re.endCursor;return(0,y.Cl)((0,y.Cl)({},G(I)),{edges:Re,pageInfo:(0,y.Cl)((0,y.Cl)({},I.pageInfo),{startCursor:z||de,endCursor:ve||ae})})},merge:function(I,k,Y){var oe=Y.args,Re=Y.isReference,de=Y.readField;if(I||(I=Z()),!k)return I;var ae=k.edges?k.edges.map(function(dt){return Re(dt=(0,y.Cl)({},dt))&&(dt.cursor=de("cursor",dt)),dt}):[];if(k.pageInfo){var re=k.pageInfo,z=re.startCursor,ve=re.endCursor,ye=ae[0],Je=ae[ae.length-1];ye&&z&&(ye.cursor=z),Je&&ve&&(Je.cursor=ve);var at=ye&&ye.cursor;at&&!z&&(k=(0,m.D9)(k,{pageInfo:{startCursor:at}}));var Tt=Je&&Je.cursor;Tt&&!ve&&(k=(0,m.D9)(k,{pageInfo:{endCursor:Tt}}))}var tt=I.edges,Pe=[];if(oe&&oe.after){var Me=tt.findIndex(function(dt){return dt.cursor===oe.after});Me>=0&&(tt=tt.slice(0,Me+1))}else if(oe&&oe.before){var Me=tt.findIndex(function(Xe){return Xe.cursor===oe.before});Pe=Me<0?tt:tt.slice(Me),tt=[]}else k.edges&&(tt=[]);var B=(0,y.fX)((0,y.fX)((0,y.fX)([],tt,!0),ae,!0),Pe,!0),Q=(0,y.Cl)((0,y.Cl)({},k.pageInfo),I.pageInfo);if(k.pageInfo){var J=k.pageInfo,le=J.hasPreviousPage,Se=J.hasNextPage,z=J.startCursor,ve=J.endCursor,je=(0,y.Tt)(J,["hasPreviousPage","hasNextPage","startCursor","endCursor"]);Object.assign(Q,je),tt.length||(le!==void 0&&(Q.hasPreviousPage=le),z!==void 0&&(Q.startCursor=z)),Pe.length||(Se!==void 0&&(Q.hasNextPage=Se),ve!==void 0&&(Q.endCursor=ve))}return(0,y.Cl)((0,y.Cl)((0,y.Cl)({},G(I)),G(k)),{edges:B,pageInfo:Q})}}}var G=function(C){return(0,y.Tt)(C,x)},x=["edges","pageInfo"];function Z(){return{edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}}var F=p(6054),te=p(906),ie=p(7236),ce=p(7613),j=p(5762),O=p(5637),ue=p(5892),be=p(3767),xe=p(1777),we=p(2710),_e=p(1360),Ne=p(492),Ae=p(1461),U=p(6563),b=p(1507)},5637:(Ee,K,p)=>{"use strict";p.d(K,{E:()=>A});var T=p(5608),d=p(6054),D=p(7613),H=p(5892);function V(y){return y&&typeof y.then=="function"}var A=function(y){(0,T.C6)(m,y);function m(P){var g=y.call(this,function($){return g.addObserver($),function(){return g.removeObserver($)}})||this;return g.observers=new Set,g.addCount=0,g.promise=new Promise(function($,G){g.resolve=$,g.reject=G}),g.handlers={next:function($){g.sub!==null&&(g.latest=["next",$],(0,D.w)(g.observers,"next",$))},error:function($){var G=g.sub;G!==null&&(G&&setTimeout(function(){return G.unsubscribe()}),g.sub=null,g.latest=["error",$],g.reject($),(0,D.w)(g.observers,"error",$))},complete:function(){var $=g.sub;if($!==null){var G=g.sources.shift();G?V(G)?G.then(function(x){return g.sub=x.subscribe(g.handlers)}):g.sub=G.subscribe(g.handlers):($&&setTimeout(function(){return $.unsubscribe()}),g.sub=null,g.latest&&g.latest[0]==="next"?g.resolve(g.latest[1]):g.resolve(),(0,D.w)(g.observers,"complete"))}}},g.cancel=function($){g.reject($),g.sources=[],g.handlers.complete()},g.promise.catch(function($){}),typeof P=="function"&&(P=[new d.c(P)]),V(P)?P.then(function($){return g.start($)},g.handlers.error):g.start(P),g}return m.prototype.start=function(P){this.sub===void 0&&(this.sources=Array.from(P),this.handlers.complete())},m.prototype.deliverLastMessage=function(P){if(this.latest){var g=this.latest[0],$=P[g];$&&$.call(P,this.latest[1]),this.sub===null&&g==="next"&&P.complete&&P.complete()}},m.prototype.addObserver=function(P){this.observers.has(P)||(this.deliverLastMessage(P),this.observers.add(P),++this.addCount)},m.prototype.removeObserver=function(P,g){this.observers.delete(P)&&--this.addCount<1&&!g&&this.handlers.complete()},m.prototype.cleanup=function(P){var g=this,$=!1,G=function(){$||($=!0,g.observers.delete(x),P())},x={next:G,error:G,complete:G},Z=this.addCount;this.addObserver(x),this.addCount=Z},m}(d.c);(0,H.r)(A)},5762:(Ee,K,p)=>{"use strict";p.d(K,{x:()=>d});var T=p(6054);function d(D,H,V){return new T.c(function(A){var y=A.next,m=A.error,P=A.complete,g=0,$=!1,G={then:function(te){return new Promise(function(ie){return ie(te())})}};function x(te,ie){return te?function(ce){++g;var j=function(){return te(ce)};G=G.then(j,j).then(function(O){--g,y&&y.call(A,O),$&&Z.complete()},function(O){throw--g,O}).catch(function(O){m&&m.call(A,O)})}:function(ce){return ie&&ie.call(A,ce)}}var Z={next:x(H,y),error:x(V,m),complete:function(){$=!0,g||P&&P.call(A)}},F=D.subscribe(Z);return function(){return F.unsubscribe()}})}},7613:(Ee,K,p)=>{"use strict";p.d(K,{w:()=>T});function T(d,D,H){var V=[];d.forEach(function(A){return A[D]&&V.push(A)}),V.forEach(function(A){return A[D](H)})}},5892:(Ee,K,p)=>{"use strict";p.d(K,{r:()=>D});var T=p(6054),d=p(1360);function D(H){function V(A){Object.defineProperty(H,A,{value:T.c})}return d.ol&&Symbol.species&&V(Symbol.species),V("@@species"),H}},184:(Ee,K,p)=>{"use strict";p.r(K),p.d(K,{Bwell:()=>PIe});var T={};p.r(T),p.d(T,{define:()=>Nl,id:()=>Wn,version:()=>vi});var d={};p.r(d),p.d(d,{definition:()=>qh,id:()=>za,version:()=>Nr});var D={};p.r(D),p.d(D,{definition:()=>sH,id:()=>uv,version:()=>dp});var H={};p.r(H),p.d(H,{definition:()=>cH,id:()=>LI,version:()=>cv});var V={};p.r(V),p.d(V,{definition:()=>s3,id:()=>Mp,version:()=>kf});var A={};p.r(A),p.d(A,{definition:()=>u3,id:()=>O0,version:()=>Gv});var y={};p.r(y),p.d(y,{definition:()=>uH,id:()=>js,version:()=>Mu});var m={};p.r(m),p.d(m,{definition:()=>_3,id:()=>b0,version:()=>Bv});var P={};p.r(P),p.d(P,{definition:()=>h9,id:()=>Am,version:()=>Kp});var g={};p.r(g),p.d(g,{definition:()=>E9,id:()=>H$,version:()=>Rm});var $={};p.r($),p.d($,{definition:()=>p9,id:()=>Tm,version:()=>qp});var G={};p.r(G),p.d(G,{define:()=>v9,id:()=>Y$,version:()=>Om});var x={};p.r(x),p.d(x,{define:()=>m9,id:()=>q$,version:()=>bm});var Z={};p.r(Z),p.d(Z,{definition:()=>sMe,id:()=>Cj,version:()=>kT});var F=p(6152),te;(function(e){e.GUEST="guest",e.DEFAULT="default"})(te||(te={}));var ie=p(3059),ce=p(234);function j(e){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(e)}function O(e,t){if(j(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(j(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ue(e){var t=O(e,"string");return j(t)=="symbol"?t:t+""}function be(e,t,r){return(t=ue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xe(Object(r),!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _e(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ne=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ae=function(){return Math.random().toString(36).substring(7).split("").join(".")},U={INIT:"@@redux/INIT"+Ae(),REPLACE:"@@redux/REPLACE"+Ae(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ae()}};function b(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function C(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Y(e))return"date";if(k(e))return"error";var r=I(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function I(e){return typeof e.constructor=="function"?e.constructor.name:null}function k(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Y(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function oe(e){var t=typeof e;return t}function Re(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_e(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_e(1));return r(Re)(e,t)}if(typeof e!="function")throw new Error(_e(2));var i=e,a=t,u=[],c=u,v=!1;function _(){c===u&&(c=u.slice())}function h(){if(v)throw new Error(_e(3));return a}function L(Oe){if(typeof Oe!="function")throw new Error(_e(4));if(v)throw new Error(_e(5));var He=!0;return _(),c.push(Oe),function(){if(!!He){if(v)throw new Error(_e(6));He=!1,_();var We=c.indexOf(Oe);c.splice(We,1),u=null}}}function W(Oe){if(!b(Oe))throw new Error(_e(7));if(typeof Oe.type>"u")throw new Error(_e(8));if(v)throw new Error(_e(9));try{v=!0,a=i(a,Oe)}finally{v=!1}for(var He=u=c,qe=0;qe<He.length;qe++){var We=He[qe];We()}return Oe}function Te(Oe){if(typeof Oe!="function")throw new Error(_e(10));i=Oe,W({type:U.REPLACE})}function me(){var Oe,He=L;return Oe={subscribe:function(We){if(typeof We!="object"||We===null)throw new Error(_e(11));function ct(){We.next&&We.next(h())}ct();var yt=He(ct);return{unsubscribe:yt}}},Oe[Ne]=function(){return this},Oe}return W({type:U.INIT}),n={dispatch:W,subscribe:L,getState:h,replaceReducer:Te},n[Ne]=me,n}var de=null;function ae(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function re(e,t,r,n){var i=Object.keys(t),a=r&&r.type===U.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!b(e))return"The "+a+' has unexpected type of "'+oe(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var u=Object.keys(e).filter(function(c){return!t.hasOwnProperty(c)&&!n[c]});if(u.forEach(function(c){n[c]=!0}),!(r&&r.type===U.REPLACE)&&u.length>0)return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function z(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:U.INIT});if(typeof n>"u")throw new Error(_e(12));if(typeof r(void 0,{type:U.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_e(13))})}function ve(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),u,c;try{z(r)}catch(v){c=v}return function(_,h){if(_===void 0&&(_={}),c)throw c;if(!1)var L;for(var W=!1,Te={},me=0;me<a.length;me++){var Oe=a[me],He=r[Oe],qe=_[Oe],We=He(qe,h);if(typeof We>"u"){var ct=h&&h.type;throw new Error(_e(14))}Te[Oe]=We,W=W||We!==qe}return W=W||a.length!==Object.keys(_).length,W?Te:_}}function ye(e,t){return function(){return t(e.apply(this,arguments))}}function Je(e,t){if(typeof e=="function")return ye(e,t);if(typeof e!="object"||e===null)throw new Error(_e(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=ye(i,t))}return r}function at(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Tt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(_e(15))},u={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(v){return v(u)});return a=at.apply(void 0,c)(i.dispatch),we(we({},i),{},{dispatch:a})}}}function tt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!1)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(u){return"'"+u+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Pe(e){return!!e&&!!e[Vt]}function Me(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===it}(e)||Array.isArray(e)||!!e[Dn]||!!(!((t=e.constructor)===null||t===void 0)&&t[Dn])||Xe(e)||pt(e))}function B(e){return Pe(e)||tt(23,e),e[Vt].t}function Q(e,t,r){r===void 0&&(r=!1),J(e)===0?(r?Object.keys:In)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function J(e){var t=e[Vt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Xe(e)?2:pt(e)?3:0}function le(e,t){return J(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Se(e,t){return J(e)===2?e.get(t):e[t]}function je(e,t,r){var n=J(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function dt(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Xe(e){return Hr&&e instanceof Map}function pt(e){return Ln&&e instanceof Set}function ht(e){return e.o||e.t}function vt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hi(e);delete t[Vt];for(var r=In(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Qt(e,t){return t===void 0&&(t=!1),Bt(e)||Pe(e)||!Me(e)||(J(e)>1&&(e.set=e.add=e.clear=e.delete=tr),Object.freeze(e),t&&Q(e,function(r,n){return Qt(n,!0)},!0)),e}function tr(){tt(2)}function Bt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function kt(e){var t=Oi[e];return t||tt(18,e),t}function zt(e,t){Oi[e]||(Oi[e]=t)}function Rr(){return qn}function Er(e,t){t&&(kt("Patches"),e.u=[],e.s=[],e.v=t)}function Fr(e){$r(e),e.p.forEach(vr),e.p=null}function $r(e){e===qn&&(qn=e.l)}function cn(e){return qn={p:[],l:qn,h:e,m:!0,_:0}}function vr(e){var t=e[Vt];t.i===0||t.i===1?t.j():t.g=!0}function Ge(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||kt("ES5").S(t,e,n),n?(r[Vt].P&&(Fr(t),tt(4)),Me(e)&&(e=Fe(t,e),t.l||rr(t,e)),t.u&&kt("Patches").M(r[Vt].t,e,t.u,t.s)):e=Fe(t,r,[]),Fr(t),t.u&&t.v(t.u,t.s),e!==Mn?e:void 0}function Fe(e,t,r){if(Bt(t))return t;var n=t[Vt];if(!n)return Q(t,function(c,v){return Xt(e,n,t,c,v,r)},!0),t;if(n.A!==e)return t;if(!n.P)return rr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=vt(n.k):n.o,a=i,u=!1;n.i===3&&(a=new Set(i),i.clear(),u=!0),Q(a,function(c,v){return Xt(e,n,i,c,v,r,u)}),rr(e,i,!1),r&&e.u&&kt("Patches").N(n,r,e.u,e.s)}return n.o}function Xt(e,t,r,n,i,a,u){if(Pe(i)){var c=Fe(e,i,a&&t&&t.i!==3&&!le(t.R,n)?a.concat(n):void 0);if(je(r,n,c),!Pe(c))return;e.m=!1}else u&&r.add(i);if(Me(i)&&!Bt(i)){if(!e.h.D&&e._<1)return;Fe(e,i),t&&t.A.l||rr(e,i)}}function rr(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Qt(t,r)}function mr(e,t){var r=e[Vt];return(r?ht(r):e)[t]}function Ht(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ir(e){e.P||(e.P=!0,e.l&&Ir(e.l))}function Vr(e){e.o||(e.o=vt(e.t))}function Gr(e,t,r){var n=Xe(t)?kt("MapSet").F(t,r):pt(t)?kt("MapSet").T(t,r):e.O?function(i,a){var u=Array.isArray(i),c={i:u?1:0,A:a?a.A:Rr(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},v=c,_=Tr;u&&(v=[c],_=Zn);var h=Proxy.revocable(v,_),L=h.revoke,W=h.proxy;return c.k=W,c.j=L,W}(t,r):kt("ES5").J(t,r);return(r?r.A:Rr()).p.push(n),n}function mn(e){return Pe(e)||tt(22,e),function t(r){if(!Me(r))return r;var n,i=r[Vt],a=J(r);if(i){if(!i.P&&(i.i<4||!kt("ES5").K(i)))return i.t;i.I=!0,n=Hn(r,a),i.I=!1}else n=Hn(r,a);return Q(n,function(u,c){i&&Se(i.t,u)===c||je(n,u,t(c))}),a===3?new Set(n):n}(e)}function Hn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return vt(e)}function Yn(){function e(u,c){var v=a[u];return v?v.enumerable=c:a[u]=v={configurable:!0,enumerable:c,get:function(){var _=this[Vt];return Tr.get(_,u)},set:function(_){var h=this[Vt];Tr.set(h,u,_)}},v}function t(u){for(var c=u.length-1;c>=0;c--){var v=u[c][Vt];if(!v.P)switch(v.i){case 5:n(v)&&Ir(v);break;case 4:r(v)&&Ir(v)}}}function r(u){for(var c=u.t,v=u.k,_=In(v),h=_.length-1;h>=0;h--){var L=_[h];if(L!==Vt){var W=c[L];if(W===void 0&&!le(c,L))return!0;var Te=v[L],me=Te&&Te[Vt];if(me?me.t!==W:!dt(Te,W))return!0}}var Oe=!!c[Vt];return _.length!==In(c).length+(Oe?0:1)}function n(u){var c=u.k;if(c.length!==u.t.length)return!0;var v=Object.getOwnPropertyDescriptor(c,c.length-1);if(v&&!v.get)return!0;for(var _=0;_<c.length;_++)if(!c.hasOwnProperty(_))return!0;return!1}function i(u){u.g&&tt(3,JSON.stringify(ht(u)))}var a={};zt("ES5",{J:function(u,c){var v=Array.isArray(u),_=function(L,W){if(L){for(var Te=Array(W.length),me=0;me<W.length;me++)Object.defineProperty(Te,""+me,e(me,!0));return Te}var Oe=hi(W);delete Oe[Vt];for(var He=In(Oe),qe=0;qe<He.length;qe++){var We=He[qe];Oe[We]=e(We,L||!!Oe[We].enumerable)}return Object.create(Object.getPrototypeOf(W),Oe)}(v,u),h={i:v?5:4,A:c?c.A:Rr(),P:!1,I:!1,R:{},l:c,t:u,k:_,o:null,g:!1,C:!1};return Object.defineProperty(_,Vt,{value:h,writable:!0}),_},S:function(u,c,v){v?Pe(c)&&c[Vt].A===u&&t(u.p):(u.u&&function _(h){if(h&&typeof h=="object"){var L=h[Vt];if(L){var W=L.t,Te=L.k,me=L.R,Oe=L.i;if(Oe===4)Q(Te,function(yt){yt!==Vt&&(W[yt]!==void 0||le(W,yt)?me[yt]||_(Te[yt]):(me[yt]=!0,Ir(L)))}),Q(W,function(yt){Te[yt]!==void 0||le(Te,yt)||(me[yt]=!1,Ir(L))});else if(Oe===5){if(n(L)&&(Ir(L),me.length=!0),Te.length<W.length)for(var He=Te.length;He<W.length;He++)me[He]=!1;else for(var qe=W.length;qe<Te.length;qe++)me[qe]=!0;for(var We=Math.min(Te.length,W.length),ct=0;ct<We;ct++)Te.hasOwnProperty(ct)||(me[ct]=!0),me[ct]===void 0&&_(Te[ct])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?r(u):n(u)}})}function ln(){function e(n){if(!Me(n))return n;if(Array.isArray(n))return n.map(e);if(Xe(n))return new Map(Array.from(n.entries()).map(function(u){return[u[0],e(u[1])]}));if(pt(n))return new Set(Array.from(n).map(e));var i=Object.create(Object.getPrototypeOf(n));for(var a in n)i[a]=e(n[a]);return le(n,Dn)&&(i[Dn]=n[Dn]),i}function t(n){return Pe(n)?e(n):n}var r="add";zt("Patches",{$:function(n,i){return i.forEach(function(a){for(var u=a.path,c=a.op,v=n,_=0;_<u.length-1;_++){var h=J(v),L=u[_];typeof L!="string"&&typeof L!="number"&&(L=""+L),h!==0&&h!==1||L!=="__proto__"&&L!=="constructor"||tt(24),typeof v=="function"&&L==="prototype"&&tt(24),typeof(v=Se(v,L))!="object"&&tt(15,u.join("/"))}var W=J(v),Te=e(a.value),me=u[u.length-1];switch(c){case"replace":switch(W){case 2:return v.set(me,Te);case 3:tt(16);default:return v[me]=Te}case r:switch(W){case 1:return me==="-"?v.push(Te):v.splice(me,0,Te);case 2:return v.set(me,Te);case 3:return v.add(Te);default:return v[me]=Te}case"remove":switch(W){case 1:return v.splice(me,1);case 2:return v.delete(me);case 3:return v.delete(a.value);default:return delete v[me]}default:tt(17,c)}}),n},N:function(n,i,a,u){switch(n.i){case 0:case 4:case 2:return function(c,v,_,h){var L=c.t,W=c.o;Q(c.R,function(Te,me){var Oe=Se(L,Te),He=Se(W,Te),qe=me?le(L,Te)?"replace":r:"remove";if(Oe!==He||qe!=="replace"){var We=v.concat(Te);_.push(qe==="remove"?{op:qe,path:We}:{op:qe,path:We,value:He}),h.push(qe===r?{op:"remove",path:We}:qe==="remove"?{op:r,path:We,value:t(Oe)}:{op:"replace",path:We,value:t(Oe)})}})}(n,i,a,u);case 5:case 1:return function(c,v,_,h){var L=c.t,W=c.R,Te=c.o;if(Te.length<L.length){var me=[Te,L];L=me[0],Te=me[1];var Oe=[h,_];_=Oe[0],h=Oe[1]}for(var He=0;He<L.length;He++)if(W[He]&&Te[He]!==L[He]){var qe=v.concat([He]);_.push({op:"replace",path:qe,value:t(Te[He])}),h.push({op:"replace",path:qe,value:t(L[He])})}for(var We=L.length;We<Te.length;We++){var ct=v.concat([We]);_.push({op:r,path:ct,value:t(Te[We])})}L.length<Te.length&&h.push({op:"replace",path:v.concat(["length"]),value:L.length})}(n,i,a,u);case 3:return function(c,v,_,h){var L=c.t,W=c.o,Te=0;L.forEach(function(me){if(!W.has(me)){var Oe=v.concat([Te]);_.push({op:"remove",path:Oe,value:me}),h.unshift({op:r,path:Oe,value:me})}Te++}),Te=0,W.forEach(function(me){if(!L.has(me)){var Oe=v.concat([Te]);_.push({op:r,path:Oe,value:me}),h.unshift({op:"remove",path:Oe,value:me})}Te++})}(n,i,a,u)}},M:function(n,i,a,u){a.push({op:"replace",path:[],value:i===Mn?void 0:i}),u.push({op:"replace",path:[],value:n})}})}function $t(){function e(c,v){function _(){this.constructor=c}i(c,v),c.prototype=(_.prototype=v.prototype,new _)}function t(c){c.o||(c.R=new Map,c.o=new Map(c.t))}function r(c){c.o||(c.o=new Set,c.t.forEach(function(v){if(Me(v)){var _=Gr(c.A.h,v,c);c.p.set(v,_),c.o.add(_)}else c.o.add(v)}))}function n(c){c.g&&tt(3,JSON.stringify(ht(c)))}var i=function(c,v){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,h){_.__proto__=h}||function(_,h){for(var L in h)h.hasOwnProperty(L)&&(_[L]=h[L])})(c,v)},a=function(){function c(_,h){return this[Vt]={i:2,l:h,A:h?h.A:Rr(),P:!1,I:!1,o:void 0,R:void 0,t:_,k:this,C:!1,g:!1},this}e(c,Map);var v=c.prototype;return Object.defineProperty(v,"size",{get:function(){return ht(this[Vt]).size}}),v.has=function(_){return ht(this[Vt]).has(_)},v.set=function(_,h){var L=this[Vt];return n(L),ht(L).has(_)&&ht(L).get(_)===h||(t(L),Ir(L),L.R.set(_,!0),L.o.set(_,h),L.R.set(_,!0)),this},v.delete=function(_){if(!this.has(_))return!1;var h=this[Vt];return n(h),t(h),Ir(h),h.t.has(_)?h.R.set(_,!1):h.R.delete(_),h.o.delete(_),!0},v.clear=function(){var _=this[Vt];n(_),ht(_).size&&(t(_),Ir(_),_.R=new Map,Q(_.t,function(h){_.R.set(h,!1)}),_.o.clear())},v.forEach=function(_,h){var L=this;ht(this[Vt]).forEach(function(W,Te){_.call(h,L.get(Te),Te,L)})},v.get=function(_){var h=this[Vt];n(h);var L=ht(h).get(_);if(h.I||!Me(L)||L!==h.t.get(_))return L;var W=Gr(h.A.h,L,h);return t(h),h.o.set(_,W),W},v.keys=function(){return ht(this[Vt]).keys()},v.values=function(){var _,h=this,L=this.keys();return(_={})[hn]=function(){return h.values()},_.next=function(){var W=L.next();return W.done?W:{done:!1,value:h.get(W.value)}},_},v.entries=function(){var _,h=this,L=this.keys();return(_={})[hn]=function(){return h.entries()},_.next=function(){var W=L.next();if(W.done)return W;var Te=h.get(W.value);return{done:!1,value:[W.value,Te]}},_},v[hn]=function(){return this.entries()},c}(),u=function(){function c(_,h){return this[Vt]={i:3,l:h,A:h?h.A:Rr(),P:!1,I:!1,o:void 0,t:_,k:this,p:new Map,g:!1,C:!1},this}e(c,Set);var v=c.prototype;return Object.defineProperty(v,"size",{get:function(){return ht(this[Vt]).size}}),v.has=function(_){var h=this[Vt];return n(h),h.o?!!h.o.has(_)||!(!h.p.has(_)||!h.o.has(h.p.get(_))):h.t.has(_)},v.add=function(_){var h=this[Vt];return n(h),this.has(_)||(r(h),Ir(h),h.o.add(_)),this},v.delete=function(_){if(!this.has(_))return!1;var h=this[Vt];return n(h),r(h),Ir(h),h.o.delete(_)||!!h.p.has(_)&&h.o.delete(h.p.get(_))},v.clear=function(){var _=this[Vt];n(_),ht(_).size&&(r(_),Ir(_),_.o.clear())},v.values=function(){var _=this[Vt];return n(_),r(_),_.o.values()},v.entries=function(){var _=this[Vt];return n(_),r(_),_.o.entries()},v.keys=function(){return this.values()},v[hn]=function(){return this.values()},v.forEach=function(_,h){for(var L=this.values(),W=L.next();!W.done;)_.call(h,W.value,W.value,this),W=L.next()},c}();zt("MapSet",{F:function(c,v){return new a(c,v)},T:function(c,v){return new u(c,v)}})}function Ki(){Yn(),$t(),ln()}function br(e){return e}function Xn(e){return e}var Jn,qn,pn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hr=typeof Map<"u",Ln=typeof Set<"u",ii=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Mn=pn?Symbol.for("immer-nothing"):((Jn={})["immer-nothing"]=!0,Jn),Dn=pn?Symbol.for("immer-draftable"):"__$immer_draftable",Vt=pn?Symbol.for("immer-state"):"__$immer_state",hn=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",zr={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},it=""+Object.prototype.constructor,In=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,hi=Object.getOwnPropertyDescriptors||function(e){var t={};return In(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Oi={},Tr={get:function(e,t){if(t===Vt)return e;var r=ht(e);if(!le(r,t))return function(i,a,u){var c,v=Ht(a,u);return v?"value"in v?v.value:(c=v.get)===null||c===void 0?void 0:c.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!Me(n)?n:n===mr(e.t,t)?(Vr(e),e.o[t]=Gr(e.A.h,n,e)):n},has:function(e,t){return t in ht(e)},ownKeys:function(e){return Reflect.ownKeys(ht(e))},set:function(e,t,r){var n=Ht(ht(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=mr(ht(e),t),a=i?.[Vt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(dt(r,i)&&(r!==void 0||le(e.t,t)))return!0;Vr(e),Ir(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return mr(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Vr(e),Ir(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ht(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){tt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){tt(12)}},Zn={};Q(Tr,function(e,t){Zn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Zn.deleteProperty=function(e,t){return Zn.set.call(this,e,t,void 0)},Zn.set=function(e,t,r){return Tr.set.call(this,e[0],t,r,e[0])};var da=function(){function e(r){var n=this;this.O=ii,this.D=!0,this.produce=function(i,a,u){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var v=n;return function(Oe){var He=this;Oe===void 0&&(Oe=c);for(var qe=arguments.length,We=Array(qe>1?qe-1:0),ct=1;ct<qe;ct++)We[ct-1]=arguments[ct];return v.produce(Oe,function(yt){var jt;return(jt=a).call.apply(jt,[He,yt].concat(We))})}}var _;if(typeof a!="function"&&tt(6),u!==void 0&&typeof u!="function"&&tt(7),Me(i)){var h=cn(n),L=Gr(n,i,void 0),W=!0;try{_=a(L),W=!1}finally{W?Fr(h):$r(h)}return typeof Promise<"u"&&_ instanceof Promise?_.then(function(Oe){return Er(h,u),Ge(Oe,h)},function(Oe){throw Fr(h),Oe}):(Er(h,u),Ge(_,h))}if(!i||typeof i!="object"){if((_=a(i))===void 0&&(_=i),_===Mn&&(_=void 0),n.D&&Qt(_,!0),u){var Te=[],me=[];kt("Patches").M(i,_,Te,me),u(Te,me)}return _}tt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(_){for(var h=arguments.length,L=Array(h>1?h-1:0),W=1;W<h;W++)L[W-1]=arguments[W];return n.produceWithPatches(_,function(Te){return i.apply(void 0,[Te].concat(L))})};var u,c,v=n.produce(i,a,function(_,h){u=_,c=h});return typeof Promise<"u"&&v instanceof Promise?v.then(function(_){return[_,u,c]}):[v,u,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Me(r)||tt(8),Pe(r)&&(r=mn(r));var n=cn(this),i=Gr(this,r,void 0);return i[Vt].C=!0,$r(n),i},t.finishDraft=function(r,n){var i=r&&r[Vt],a=i.A;return Er(a,n),Ge(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!ii&&tt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var u=kt("Patches").$;return Pe(r)?u(r,n):this.produce(r,function(c){return u(c,n)})},e}(),yn=new da,Ni=yn.produce,Li=yn.produceWithPatches.bind(yn),E=yn.setAutoFreeze.bind(yn),N=yn.setUseProxies.bind(yn),ee=yn.applyPatches.bind(yn),pe=yn.createDraft.bind(yn),De=yn.finishDraft.bind(yn);const Be=Ni;function nt(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(u){return function(c){return typeof c=="function"?c(i,a,e):u(c)}}};return t}var gt=nt();gt.withExtraArgument=nt;const ut=gt;var St=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ot=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Nt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},mt=Object.defineProperty,Mt=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Yr=function(e,t,r){return t in e?mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Br=function(e,t){for(var r in t||(t={}))nr.call(t,r)&&Yr(e,r,t[r]);if(xr)for(var n=0,i=xr(t);n<i.length;n++){var r=i[n];Zr.call(t,r)&&Yr(e,r,t[r])}return e},bi=function(e,t){return Mt(e,Lt(t))},Vn=function(e,t,r){return new Promise(function(n,i){var a=function(v){try{c(r.next(v))}catch(_){i(_)}},u=function(v){try{c(r.throw(v))}catch(_){i(_)}},c=function(v){return v.done?n(v.value):Promise.resolve(v.value).then(a,u)};c((r=r.apply(e,t)).next())})},Ci=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=createSelector.apply(void 0,e),n=function(i){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return r.apply(void 0,Nt([isDraft(i)?current(i):i],a))};return n},Pi=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?at:at.apply(null,arguments)},Di=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Rn(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Wi(e,t){var r=0;return{measureTime:function(n){var i=Date.now();try{return n()}finally{var a=Date.now();r+=a-i}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
96
96
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
97
97
  It is disabled in production builds, so you don't need to worry about that.`)}}}var Ms=function(e){St(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nt([void 0],r.concat(this))))},t}(Array);function qo(e){return Me(e)?Be(e,function(){}):e}var _o=null,Ko="Invariant failed";function po(e,t){if(!e)throw _o?new Error(Ko):new Error(Ko+": "+(t||""))}function Wo(e,t,r,n){return JSON.stringify(e,pa(t,n),r)}function pa(e,t){var r=[],n=[];return t||(t=function(i,a){return r[0]===a?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(a)).join(".")+"]"}),function(i,a){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?n.splice(u,1/0,i):n.push(i),~r.indexOf(a)&&(a=t.call(this,i,a))}else r.push(a);return e==null?a:e.call(this,i,a)}}function ho(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Qo(e,t,r){var n=ha(e,t,r);return{detectMutations:function(){return zo(e,t,n,r)}}}function ha(e,t,r,n){t===void 0&&(t=[]),n===void 0&&(n="");var i={value:r};if(!e(r)){i.children={};for(var a in r){var u=n?n+"."+a:a;t.length&&t.indexOf(u)!==-1||(i.children[a]=ha(e,t,r[a],u))}}return i}function zo(e,t,r,n,i,a){t===void 0&&(t=[]),i===void 0&&(i=!1),a===void 0&&(a="");var u=r?r.value:void 0,c=u===n;if(i&&!c&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(u)||e(n))return{wasMutated:!1};var v={};for(var _ in r.children)v[_]=!0;for(var _ in n)v[_]=!0;for(var _ in v){var h=a?a+"."+_:_;if(!(t.length&&t.indexOf(h)!==-1)){var L=zo(e,t,r.children[_],n[_],c,h);if(L.wasMutated)return L}}return{wasMutated:!1}}function Is(e){return e===void 0&&(e={}),function(){return function(v){return function(_){return v(_)}}};var t=e.isImmutable,r=t===void 0?ho:t,n=e.ignoredPaths,i=e.warnAfter,a=i===void 0?32:i,u=e.ignore;n=n||u;var c=Qo.bind(null,r,n);return function(v){var _=v.getState,h=_(),L=c(h),W;return function(Te){return function(me){var Oe=Wi(a,"ImmutableStateInvariantMiddleware");Oe.measureTime(function(){h=_(),W=L.detectMutations(),L=c(h),po(!W.wasMutated,"A state mutation was detected between dispatches, in the path '"+(W.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var He=Te(me);return Oe.measureTime(function(){h=_(),W=L.detectMutations(),L=c(h),W.wasMutated&&po(!W.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(W.path||"")+". Take a look at the reducer(s) handling the action "+Wo(me)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),Oe.warnIfExceeded(),He}}}}function So(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Rn(e)}function wi(e,t,r,n,i){t===void 0&&(t=""),r===void 0&&(r=So),i===void 0&&(i=[]);var a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var u=n!=null?n(e):Object.entries(e),c=i.length>0,v=0,_=u;v<_.length;v++){var h=_[v],L=h[0],W=h[1],Te=t?t+"."+L:L;if(!(c&&i.indexOf(Te)>=0)){if(!r(W))return{keyPath:Te,value:W};if(typeof W=="object"&&(a=wi(W,Te,r,n,i),a))return a}}return!1}function Ka(e){return e===void 0&&(e={}),function(){return function(He){return function(qe){return He(qe)}}};var t=e.isSerializable,r=t===void 0?So:t,n=e.getEntries,i=e.ignoredActions,a=i===void 0?[]:i,u=e.ignoredActionPaths,c=u===void 0?["meta.arg","meta.baseQueryMeta"]:u,v=e.ignoredPaths,_=v===void 0?[]:v,h=e.warnAfter,L=h===void 0?32:h,W=e.ignoreState,Te=W===void 0?!1:W,me=e.ignoreActions,Oe=me===void 0?!1:me;return function(He){return function(qe){return function(We){var ct=qe(We),yt=Wi(L,"SerializableStateInvariantMiddleware");return!Oe&&!(a.length&&a.indexOf(We.type)!==-1)&&yt.measureTime(function(){var jt=wi(We,"",r,n,c);if(jt){var dr=jt.keyPath,Sr=jt.value;console.error("A non-serializable value was detected in an action, in the path: `"+dr+"`. Value:",Sr,`
98
98
  Take a look at the logic that dispatched this action: `,We,`
99
99
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
100
100
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),Te||(yt.measureTime(function(){var jt=He.getState(),dr=wi(jt,"",r,n,_);if(dr){var Sr=dr.keyPath,an=dr.value;console.error("A non-serializable value was detected in the state, in the path: `"+Sr+"`. Value:",an,`
101
101
  Take a look at the reducer(s) handling this action type: `+We.type+`.
102
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),yt.warnIfExceeded()),ct}}}}function Na(e){return typeof e=="boolean"}function Eo(){return function(t){return Ns(t)}}function Ns(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,u=a===void 0?!0:a,c=new Ms;if(r&&(Na(r)?c.push(ut):c.push(ut.withExtraArgument(r.extraArgument))),!1)var v,_;return c}var Ls=!0;function ou(e){var t=Eo(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,u=a===void 0?t():a,c=r.devTools,v=c===void 0?!0:c,_=r.preloadedState,h=_===void 0?void 0:_,L=r.enhancers,W=L===void 0?void 0:L,Te;if(typeof i=="function")Te=i;else if(Rn(i))Te=ve(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var me=u;if(typeof me=="function"&&(me=me(t),!Ls&&!Array.isArray(me)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ls&&me.some(function(ct){return typeof ct!="function"}))throw new Error("each middleware provided to configureStore must be a function");var Oe=Tt.apply(void 0,me),He=at;v&&(He=Pi(Br({trace:!Ls},typeof v=="object"&&v)));var qe=[Oe];Array.isArray(W)?qe=Nt([Oe],W):typeof W=="function"&&(qe=W(qe));var We=He.apply(void 0,qe);return Re(Te,h,We)}function ra(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Br(Br({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function on(e){return Rn(e)&&typeof e.type=="string"&&Object.keys(e).every(qr)}function qr(e){return["type","payload","error","meta"].indexOf(e)>-1}function su(e){return""+e}function ge(e){var t={},r=[],n,i={addCase:function(a,u){var c=typeof a=="string"?a:a.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=u,i},addMatcher:function(a,u){return r.push({matcher:a,reducer:u}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function ke(e){return typeof e=="function"}var Ze=!1;function Dt(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?ge(t):[t,r,n],a=i[0],u=i[1],c=i[2],v;if(ke(e))v=function(){return qo(e())};else{var _=qo(e);v=function(){return _}}function h(L,W){L===void 0&&(L=v());var Te=Nt([a[W.type]],u.filter(function(me){var Oe=me.matcher;return Oe(W)}).map(function(me){var Oe=me.reducer;return Oe}));return Te.filter(function(me){return!!me}).length===0&&(Te=[c]),Te.reduce(function(me,Oe){if(Oe)if(Pe(me)){var He=me,qe=Oe(He,W);return qe===void 0?me:qe}else{if(Me(me))return Be(me,function(We){return Oe(We,W)});var qe=Oe(me,W);if(qe===void 0){if(me===null)return me;throw Error("A case reducer on a non-draftable value must not return undefined")}return qe}return me},L)}return h.getInitialState=v,h}var Or=!1;function Cr(e,t){return e+"/"+t}function Kr(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:qo(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},u={},c={};i.forEach(function(h){var L=n[h],W=Cr(t,h),Te,me;"reducer"in L?(Te=L.reducer,me=L.prepare):Te=L,a[h]=Te,u[W]=Te,c[h]=me?ra(W,me):ra(W)});function v(){var h=typeof e.extraReducers=="function"?ge(e.extraReducers):[e.extraReducers],L=h[0],W=L===void 0?{}:L,Te=h[1],me=Te===void 0?[]:Te,Oe=h[2],He=Oe===void 0?void 0:Oe,qe=Br(Br({},W),u);return Dt(r,function(We){for(var ct in qe)We.addCase(ct,qe[ct]);for(var yt=0,jt=me;yt<jt.length;yt++){var dr=jt[yt];We.addMatcher(dr.matcher,dr.reducer)}He&&We.addDefaultCase(He)})}var _;return{name:t,reducer:function(h,L){return _||(_=v()),_(h,L)},actions:c,caseReducers:a,getInitialState:function(){return _||(_=v()),_.getInitialState()}}}function Gt(){return{ids:[],entities:{}}}function sn(){function e(t){return t===void 0&&(t={}),Object.assign(Gt(),t)}return{getInitialState:e}}function Kn(){function e(t){var r=function(_){return _.ids},n=function(_){return _.entities},i=Ci(r,n,function(_,h){return _.map(function(L){return h[L]})}),a=function(_,h){return h},u=function(_,h){return _[h]},c=Ci(r,function(_){return _.length});if(!t)return{selectIds:r,selectEntities:n,selectAll:i,selectTotal:c,selectById:Ci(n,a,u)};var v=Ci(t,n);return{selectIds:Ci(t,r),selectEntities:v,selectAll:Ci(t,i),selectTotal:Ci(t,c),selectById:Ci(v,a,u)}}return{getSelectors:e}}function ai(e){var t=Wr(function(r,n){return e(n)});return function(n){return t(n,void 0)}}function Wr(e){return function(r,n){function i(u){return on(u)}var a=function(u){i(n)?e(n.payload,u):e(n,u)};return isDraft3(r)?(a(r),r):createNextState3(r,a)}}function Gn(e,t){var r=t(e);return r}function Ui(e){return Array.isArray(e)||(e=Object.values(e)),e}function Wa(e,t,r){e=Ui(e);for(var n=[],i=[],a=0,u=e;a<u.length;a++){var c=u[a],v=Gn(c,t);v in r.entities?i.push({id:v,changes:c}):n.push(c)}return[n,i]}function uu(e){function t(me,Oe){var He=Gn(me,e);He in Oe.entities||(Oe.ids.push(He),Oe.entities[He]=me)}function r(me,Oe){me=Ui(me);for(var He=0,qe=me;He<qe.length;He++){var We=qe[He];t(We,Oe)}}function n(me,Oe){var He=Gn(me,e);He in Oe.entities||Oe.ids.push(He),Oe.entities[He]=me}function i(me,Oe){me=Ui(me);for(var He=0,qe=me;He<qe.length;He++){var We=qe[He];n(We,Oe)}}function a(me,Oe){me=Ui(me),Oe.ids=[],Oe.entities={},r(me,Oe)}function u(me,Oe){return c([me],Oe)}function c(me,Oe){var He=!1;me.forEach(function(qe){qe in Oe.entities&&(delete Oe.entities[qe],He=!0)}),He&&(Oe.ids=Oe.ids.filter(function(qe){return qe in Oe.entities}))}function v(me){Object.assign(me,{ids:[],entities:{}})}function _(me,Oe,He){var qe=He.entities[Oe.id],We=Object.assign({},qe,Oe.changes),ct=Gn(We,e),yt=ct!==Oe.id;return yt&&(me[Oe.id]=ct,delete He.entities[Oe.id]),He.entities[ct]=We,yt}function h(me,Oe){return L([me],Oe)}function L(me,Oe){var He={},qe={};me.forEach(function(yt){yt.id in Oe.entities&&(qe[yt.id]={id:yt.id,changes:Br(Br({},qe[yt.id]?qe[yt.id].changes:null),yt.changes)})}),me=Object.values(qe);var We=me.length>0;if(We){var ct=me.filter(function(yt){return _(He,yt,Oe)}).length>0;ct&&(Oe.ids=Object.keys(Oe.entities))}}function W(me,Oe){return Te([me],Oe)}function Te(me,Oe){var He=Wa(me,e,Oe),qe=He[0],We=He[1];L(We,Oe),r(qe,Oe)}return{removeAll:ai(v),addOne:Wr(t),addMany:Wr(r),setOne:Wr(n),setMany:Wr(i),setAll:Wr(a),updateOne:Wr(h),updateMany:Wr(L),upsertOne:Wr(W),upsertMany:Wr(Te),removeOne:Wr(u),removeMany:Wr(c)}}function cu(e,t){var r=uu(e),n=r.removeOne,i=r.removeMany,a=r.removeAll;function u(We,ct){return c([We],ct)}function c(We,ct){We=Ui(We);var yt=We.filter(function(jt){return!(Gn(jt,e)in ct.entities)});yt.length!==0&&He(yt,ct)}function v(We,ct){return _([We],ct)}function _(We,ct){We=Ui(We),We.length!==0&&He(We,ct)}function h(We,ct){We=Ui(We),ct.entities={},ct.ids=[],c(We,ct)}function L(We,ct){return W([We],ct)}function W(We,ct){for(var yt=!1,jt=0,dr=We;jt<dr.length;jt++){var Sr=dr[jt],an=ct.entities[Sr.id];if(!!an){yt=!0,Object.assign(an,Sr.changes);var Ia=e(an);Sr.id!==Ia&&(delete ct.entities[Sr.id],ct.entities[Ia]=an)}}yt&&qe(ct)}function Te(We,ct){return me([We],ct)}function me(We,ct){var yt=Wa(We,e,ct),jt=yt[0],dr=yt[1];W(dr,ct),c(jt,ct)}function Oe(We,ct){if(We.length!==ct.length)return!1;for(var yt=0;yt<We.length&&yt<ct.length;yt++)if(We[yt]!==ct[yt])return!1;return!0}function He(We,ct){We.forEach(function(yt){ct.entities[e(yt)]=yt}),qe(ct)}function qe(We){var ct=Object.values(We.entities);ct.sort(t);var yt=ct.map(e),jt=We.ids;Oe(jt,yt)||(We.ids=yt)}return{removeOne:n,removeMany:i,removeAll:a,addOne:Wr(u),updateOne:Wr(L),upsertOne:Wr(Te),setOne:Wr(v),setMany:Wr(_),setAll:Wr(h),addMany:Wr(c),updateMany:Wr(W),upsertMany:Wr(me)}}function k_(e){e===void 0&&(e={});var t=Br({sortComparer:!1,selectId:function(c){return c.id}},e),r=t.selectId,n=t.sortComparer,i=sn(),a=Kn(),u=n?cu(r,n):uu(r);return Br(Br(Br({selectId:r,sortComparer:n},i),a),u)}var tc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Si=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=tc[Math.random()*64|0];return t},rc=["name","message","stack","code"],oi=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),nc=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ic=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=rc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},vo=function(){function e(t,r,n){var i=ra(t+"/fulfilled",function(h,L,W,Te){return{payload:h,meta:bi(Br({},Te||{}),{arg:W,requestId:L,requestStatus:"fulfilled"})}}),a=ra(t+"/pending",function(h,L,W){return{payload:void 0,meta:bi(Br({},W||{}),{arg:L,requestId:h,requestStatus:"pending"})}}),u=ra(t+"/rejected",function(h,L,W,Te,me){return{payload:Te,error:(n&&n.serializeError||ic)(h||"Rejected"),meta:bi(Br({},me||{}),{arg:W,requestId:L,rejectedWithValue:!!Te,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,v=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function _(h){return function(L,W,Te){var me=n?.idGenerator?n.idGenerator(h):Si(),Oe=new v,He,qe=new Promise(function(jt,dr){return Oe.signal.addEventListener("abort",function(){return dr({name:"AbortError",message:He||"Aborted"})})}),We=!1;function ct(jt){We&&(He=jt,Oe.abort())}var yt=function(){return Vn(this,null,function(){var jt,dr,Sr,an,Ia,JT;return Ot(this,function(pi){switch(pi.label){case 0:return pi.trys.push([0,4,,5]),an=(jt=n?.condition)==null?void 0:jt.call(n,h,{getState:W,extra:Te}),Qa(an)?[4,an]:[3,2];case 1:an=pi.sent(),pi.label=2;case 2:if(an===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return We=!0,L(a(me,h,(dr=n?.getPendingMeta)==null?void 0:dr.call(n,{requestId:me,arg:h},{getState:W,extra:Te}))),[4,Promise.race([qe,Promise.resolve(r(h,{dispatch:L,getState:W,extra:Te,requestId:me,signal:Oe.signal,abort:ct,rejectWithValue:function(ni,B_){return new oi(ni,B_)},fulfillWithValue:function(ni,B_){return new nc(ni,B_)}})).then(function(ni){if(ni instanceof oi)throw ni;return ni instanceof nc?i(ni.payload,me,h,ni.meta):i(ni,me,h)})])];case 3:return Sr=pi.sent(),[3,5];case 4:return Ia=pi.sent(),Sr=Ia instanceof oi?u(null,me,h,Ia.payload,Ia.meta):u(Ia,me,h),[3,5];case 5:return JT=n&&!n.dispatchConditionRejection&&u.match(Sr)&&Sr.meta.condition,JT||L(Sr),[2,Sr]}})})}();return Object.assign(yt,{abort:ct,requestId:me,arg:h,unwrap:function(){return yt.then(lu)}})}}return Object.assign(_,{pending:a,rejected:u,fulfilled:i,typePrefix:t})}return e.withTypes=e,e}();function lu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Qa(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Tn=function(e){return e&&typeof e.match=="function"},La=function(e,t){return Tn(e)?e.match(t):e(t)};function Xo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return e.some(function(n){return La(n,r)})}}function ac(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return e.every(function(n){return La(n,r)})}}function Sa(e,t){if(!e||!e.meta)return!1;var r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function w(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return Sa(r,["pending"])}:w(e)?function(r){var n=e.map(function(a){return a.pending}),i=Xo.apply(void 0,n);return i(r)}:l()(e[0])}function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return Sa(r,["rejected"])}:w(e)?function(r){var n=e.map(function(a){return a.rejected}),i=Xo.apply(void 0,n);return i(r)}:S()(e[0])}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function(n){return n&&n.meta&&n.meta.rejectedWithValue};return e.length===0?function(n){var i=ac(S.apply(void 0,e),r);return i(n)}:w(e)?function(n){var i=ac(S.apply(void 0,e),r);return i(n)}:R()(e[0])}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return Sa(r,["fulfilled"])}:w(e)?function(r){var n=e.map(function(a){return a.fulfilled}),i=Xo.apply(void 0,n);return i(r)}:q()(e[0])}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return Sa(r,["pending","fulfilled","rejected"])}:w(e)?function(r){for(var n=[],i=0,a=e;i<a.length;i++){var u=a[i];n.push(u.pending,u.rejected,u.fulfilled)}var c=Xo.apply(void 0,n);return c(r)}:ne()(e[0])}var se=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},Ie=function(){},$e=function(e,t){return t===void 0&&(t=Ie),e.catch(t),e},Le=function(e,t){e.addEventListener("abort",t,{once:!0})},Qe=function(e,t){var r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},et="task",ze="listener",st="completed",bt="cancelled",At="task-"+bt,It="task-"+st,wt=ze+"-"+bt,ur=ze+"-"+st,Ct=function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=et+" "+bt+" (reason: "+t+")"}return e}(),Yt=function(e){if(e.aborted)throw new Ct(e.reason)},pr=function(e){return $e(new Promise(function(t,r){var n=function(){return r(new Ct(e.reason))};e.aborted?n():Le(e,n)}))},or=function(e,t){return Vn(void 0,null,function(){var r,n;return Ot(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return r=i.sent(),[2,{status:"ok",value:r}];case 3:return n=i.sent(),[2,{status:n instanceof Ct?"cancelled":"rejected",error:n}];case 4:return t?.(),[7];case 5:return[2]}})})},ir=function(e){return function(t){return $e(Promise.race([pr(e),t]).then(function(r){return Yt(e),r}))}},en=function(e){var t=ir(e);return function(r){return t(new Promise(function(n){return setTimeout(n,r)}))}},xi=Object.assign,An={},ei="listenerMiddleware",fu=function(e){var t=function(r){return Le(e,function(){return Qe(r,e.reason)})};return function(r){se(r,"taskExecutor");var n=new AbortController;t(n);var i=or(function(){return Vn(void 0,null,function(){var a;return Ot(this,function(u){switch(u.label){case 0:return Yt(e),Yt(n.signal),[4,r({pause:ir(n.signal),delay:en(n.signal),signal:n.signal})];case 1:return a=u.sent(),Yt(n.signal),[2,a]}})})},function(){return Qe(n,It)});return{result:ir(e)(i),cancel:function(){Qe(n,At)}}}},j_=function(e,t){var r=function(n,i){return Vn(void 0,null,function(){var a,u,c,v;return Ot(this,function(_){switch(_.label){case 0:Yt(t),a=function(){},u=new Promise(function(h){a=e({predicate:n,effect:function(L,W){W.unsubscribe(),h([L,W.getState(),W.getOriginalState()])}})}),c=[pr(t),u],i!=null&&c.push(new Promise(function(h){return setTimeout(h,i,null)})),_.label=1;case 1:return _.trys.push([1,,3,4]),[4,Promise.race(c)];case 2:return v=_.sent(),Yt(t),[2,v];case 3:return a(),[7];case 4:return[2]}})})};return function(n,i){return $e(r(n,i))}},Ds=function(e){var t=e.type,r=e.actionCreator,n=e.matcher,i=e.predicate,a=e.effect;if(t)i=ra(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return se(a,"options.listener"),{predicate:i,type:t,effect:a}},bl=function(e){var t=Ds(e),r=t.type,n=t.predicate,i=t.effect,a=Si(),u={id:a,effect:i,type:r,predicate:n,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return u},Da=function(e){return function(){e.forEach(na),e.clear()}},si=function(e,t,r){try{e(t,r)}catch(n){setTimeout(function(){throw n},0)}},Cl=ra(ei+"/add"),Ei=ra(ei+"/removeAll"),eA=ra(ei+"/remove"),_u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,Nt([ei+"/error"],e))},na=function(e){e.pending.forEach(function(t){Qe(t,wt)})};function tA(e){var t=this;e===void 0&&(e={});var r=new Map,n=e.extra,i=e.onError,a=i===void 0?_u:i;se(a,"onError");var u=function(Te){return Te.unsubscribe=function(){return r.delete(Te.id)},r.set(Te.id,Te),function(me){Te.unsubscribe(),me?.cancelActive&&na(Te)}},c=function(Te){for(var me=0,Oe=Array.from(r.values());me<Oe.length;me++){var He=Oe[me];if(Te(He))return He}},v=function(Te){var me=c(function(Oe){return Oe.effect===Te.effect});return me||(me=bl(Te)),u(me)},_=function(Te){var me=Ds(Te),Oe=me.type,He=me.effect,qe=me.predicate,We=c(function(ct){var yt=typeof Oe=="string"?ct.type===Oe:ct.predicate===qe;return yt&&ct.effect===He});return We&&(We.unsubscribe(),Te.cancelActive&&na(We)),!!We},h=function(Te,me,Oe,He){return Vn(t,null,function(){var qe,We,ct;return Ot(this,function(yt){switch(yt.label){case 0:qe=new AbortController,We=j_(v,qe.signal),yt.label=1;case 1:return yt.trys.push([1,3,4,5]),Te.pending.add(qe),[4,Promise.resolve(Te.effect(me,xi({},Oe,{getOriginalState:He,condition:function(jt,dr){return We(jt,dr).then(Boolean)},take:We,delay:en(qe.signal),pause:ir(qe.signal),extra:n,signal:qe.signal,fork:fu(qe.signal),unsubscribe:Te.unsubscribe,subscribe:function(){r.set(Te.id,Te)},cancelActiveListeners:function(){Te.pending.forEach(function(jt,dr,Sr){jt!==qe&&(Qe(jt,wt),Sr.delete(jt))})}})))];case 2:return yt.sent(),[3,5];case 3:return ct=yt.sent(),ct instanceof Ct||si(a,ct,{raisedBy:"effect"}),[3,5];case 4:return Qe(qe,ur),Te.pending.delete(qe),[7];case 5:return[2]}})})},L=Da(r),W=function(Te){return function(me){return function(Oe){if(Cl.match(Oe))return v(Oe.payload);if(Ei.match(Oe)){L();return}if(eA.match(Oe))return _(Oe.payload);var He=Te.getState(),qe=function(){if(He===An)throw new Error(ei+": getOriginalState can only be called synchronously");return He},We;try{if(We=me(Oe),r.size>0)for(var ct=Te.getState(),yt=Array.from(r.values()),jt=0,dr=yt;jt<dr.length;jt++){var Sr=dr[jt],an=!1;try{an=Sr.predicate(Oe,ct,He)}catch(Ia){an=!1,si(a,Ia,{raisedBy:"predicate"})}!an||h(Sr,Oe,Te,qe)}}finally{He=An}return We}}};return{middleware:W,startListening:v,stopListening:_,clearListeners:L}}var Hh="RTK_autoBatch",MI=function(){return function(e){var t;return{payload:e,meta:(t={},t[Hh]=!0,t)}}},Yh,rA=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:p.g):function(e){return(Yh||(Yh=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},nA=function(e){return function(t){setTimeout(t,e)}},H_=function(e){return e===void 0&&(e={type:"raf"}),function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(void 0,r),a=!0,u=!1,c=!1,v=new Set,_=e.type==="tick"?rA:e.type==="raf"?requestAnimationFrame:e.type==="callback"?e.queueNotification:nA(e.timeout),h=function(){c=!1,u&&(u=!1,v.forEach(function(L){return L()}))};return Object.assign({},i,{subscribe:function(L){var W=function(){return a&&L()},Te=i.subscribe(W);return v.add(L),function(){Te(),v.delete(L)}},dispatch:function(L){var W;try{return a=!((W=L?.meta)!=null&&W[Hh]),u=!a,u&&(c||(c=!0,_(h))),i.dispatch(L)}finally{a=!0}}})}}};Yn();const Ye=Kr({name:"client",initialState:{},reducers:{replace:(e,{payload:t})=>t}}),ot=e=>e.client,rt={},Ut=Kr({name:"user",initialState:rt,reducers:{replace:(e,{payload:t})=>t,updateTokens:(e,{payload:{accessToken:t,idToken:r,refreshToken:n}})=>{e.tokenData&&(e.tokenData.accessToken.jwtToken=t,e.tokenData.idToken.jwtToken=r,e.tokenData.refreshToken.token=n||e.tokenData.refreshToken.token)},logout:()=>rt}}),sr=e=>e.user.tokenData,Xr=e=>e.user,ti=Kr({name:"telemetry",initialState:{},reducers:{replace:(e,{payload:t})=>t}}),Sn=e=>e.telemetry,Pl=Kr({name:"metadata",initialState:{},reducers:{replace:(e,{payload:t})=>t}}),iA=e=>e.metadata,Ea=ve({[Ye.name]:Ye.reducer,[Ut.name]:Ut.reducer,[ti.name]:ti.reducer,[Pl.name]:Pl.reducer}),Ml=e=>ou({reducer:Ea,preloadedState:e});Ye.actions;const Y_=Ut.actions;var vi;(function(e){e.one="1.0.0"})(vi||(vi={}));const Wn="orchestrator:state-service",Il=e=>({id:Wn,create:()=>{const t=Ml(e);return{[vi.one]:()=>({featureService:{getStore:()=>t,getState:()=>t.getState(),getUser:()=>Xr(t.getState()),getUserTokenData:()=>sr(t.getState()),getClientContext:()=>ot(t.getState()),getTelemetryConfig:()=>Sn(t.getState()),setUser:r=>t.dispatch(Y_.replace(r)),updateTokens:r=>t.dispatch(Y_.updateTokens(r)),logoutUser:()=>t.dispatch(Y_.logout()),getMetadata:()=>iA(t.getState())}})}}});var Nr;(function(e){e.one="1.0.0"})(Nr||(Nr={}));const za="orchestrator:api-client",qh={id:za,dependencies:{featureServices:{[Wn]:vi.one}},create:({featureServices:e})=>{const t=e[Wn],{apiMap:r}=t.getClientContext(),n=new ce.ApiClient(r);return{[Nr.one]:()=>({featureService:n})}}};var Nl=p(7799),q_=p(6843),II=p(1085),aA=p(4041),oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wa=function(e){return e&&e.Math==Math&&e},mi=wa(typeof globalThis=="object"&&globalThis)||wa(typeof window=="object"&&window)||wa(typeof self=="object"&&self)||wa(typeof oc=="object"&&oc)||function(){return this}()||Function("return this")(),Ll={},ri=function(e){try{return!!e()}catch{return!0}},Kh=ri,Ua=!Kh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Dl=ri,wl=!Dl(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),sc=wl,Xa=Function.prototype.call,xa=sc?Xa.bind(Xa):function(){return Xa.apply(Xa,arguments)},K_={},Wh={}.propertyIsEnumerable,Qh=Object.getOwnPropertyDescriptor,Ul=Qh&&!Wh.call({1:2},1);K_.f=Ul?function(t){var r=Qh(this,t);return!!r&&r.enumerable}:Wh;var du=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},xl=wl,zh=Function.prototype,Xh=zh.bind,W_=zh.call,oA=xl&&Xh.bind(W_,W_),Lr=xl?function(e){return e&&oA(e)}:function(e){return e&&function(){return W_.apply(e,arguments)}},Ti=Lr,sA=Ti({}.toString),uA=Ti("".slice),Fl=function(e){return uA(sA(e),8,-1)},cA=Lr,Q_=ri,uc=Fl,cc=Object,pu=cA("".split),hu=Q_(function(){return!cc("z").propertyIsEnumerable(0)})?function(e){return uc(e)=="String"?pu(e,""):cc(e)}:cc,lc=TypeError,Jo=function(e){if(e==null)throw lc("Can't call method on "+e);return e},Su=hu,lA=Jo,fc=function(e){return Su(lA(e))},Ai=function(e){return typeof e=="function"},fA=Ai,_c=function(e){return typeof e=="object"?e!==null:fA(e)},Eu=mi,dc=Ai,Jh=function(e){return dc(e)?e:void 0},fe=function(e,t){return arguments.length<2?Jh(Eu[e]):Eu[e]&&Eu[e][t]},vu=Lr,$l=vu({}.isPrototypeOf),va=fe,Dr=va("navigator","userAgent")||"",Zh=mi,z_=Dr,eS=Zh.process,Zo=Zh.Deno,tS=eS&&eS.versions||Zo&&Zo.version,rS=tS&&tS.v8,Fa,Vl;rS&&(Fa=rS.split("."),Vl=Fa[0]>0&&Fa[0]<4?1:+(Fa[0]+Fa[1])),!Vl&&z_&&(Fa=z_.match(/Edge\/(\d+)/),(!Fa||Fa[1]>=74)&&(Fa=z_.match(/Chrome\/(\d+)/),Fa&&(Vl=+Fa[1])));var _A=Vl,Ja=_A,dA=ri,nS=!!Object.getOwnPropertySymbols&&!dA(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ja&&Ja<41}),pA=nS,iS=pA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hA=fe,mo=Ai,SA=$l,EA=iS,vA=Object,aS=EA?function(e){return typeof e=="symbol"}:function(e){var t=hA("Symbol");return mo(t)&&SA(t.prototype,vA(e))},mA=String,ws=function(e){try{return mA(e)}catch{return"Object"}},TA=Ai,AA=ws,$a=TypeError,gA=function(e){if(TA(e))return e;throw $a(AA(e)+" is not a function")},yA=gA,oS=function(e,t){var r=e[t];return r==null?void 0:yA(r)},X_=xa,J_=Ai,Gl=_c,sS=TypeError,RA=function(e,t){var r,n;if(t==="string"&&J_(r=e.toString)&&!Gl(n=X_(r,e))||J_(r=e.valueOf)&&!Gl(n=X_(r,e))||t!=="string"&&J_(r=e.toString)&&!Gl(n=X_(r,e)))return n;throw sS("Can't convert object to primitive value")},Bl={exports:{}},kl=mi,pc=Object.defineProperty,mu=function(e,t){try{pc(kl,e,{value:t,configurable:!0,writable:!0})}catch{kl[e]=t}return t},OA=mi,uS=mu,cS="__core-js_shared__",To=OA[cS]||uS(cS,{}),hc=To,es=hc;(Bl.exports=function(e,t){return es[e]||(es[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var ma=Jo,bA=Object,Sc=function(e){return bA(ma(e))},lS=Lr,Ec=Sc,ts=lS({}.hasOwnProperty),Za=Object.hasOwn||function(t,r){return ts(Ec(t),r)},CA=Lr,jl=0,PA=Math.random(),fS=CA(1 .toString),fi=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fS(++jl+PA,36)},Z_=mi,_S=Bl.exports,Va=Za,ed=fi,vc=nS,rs=iS,Us=_S("wks"),Qn=Z_.Symbol,Hl=Qn&&Qn.for,MA=rs?Qn:Qn&&Qn.withoutSetter||ed,eo=function(e){if(!Va(Us,e)||!(vc||typeof Us[e]=="string")){var t="Symbol."+e;vc&&Va(Qn,e)?Us[e]=Qn[e]:rs&&Hl?Us[e]=Hl(t):Us[e]=MA(t)}return Us[e]},IA=xa,Yl=_c,dS=aS,mc=oS,pS=RA,NA=eo,LA=TypeError,Tc=NA("toPrimitive"),DA=function(e,t){if(!Yl(e)||dS(e))return e;var r=mc(e,Tc),n;if(r){if(t===void 0&&(t="default"),n=IA(r,e,t),!Yl(n)||dS(n))return n;throw LA("Can't convert object to primitive value")}return t===void 0&&(t="number"),pS(e,t)},wA=DA,td=aS,rd=function(e){var t=wA(e,"string");return td(t)?t:t+""},UA=mi,hS=_c,nd=UA.document,SS=hS(nd)&&hS(nd.createElement),Ac=function(e){return SS?nd.createElement(e):{}},xA=Ua,id=ri,ES=Ac,ad=!xA&&!id(function(){return Object.defineProperty(ES("div"),"a",{get:function(){return 7}}).a!=7}),vS=Ua,ql=xa,FA=K_,mS=du,TS=fc,$A=rd,AS=Za,VA=ad,Kl=Object.getOwnPropertyDescriptor;Ll.f=vS?Kl:function(t,r){if(t=TS(t),r=$A(r),VA)try{return Kl(t,r)}catch{}if(AS(t,r))return mS(!ql(FA.f,t,r),t[r])};var Ao={},od=Ua,GA=ri,Wl=od&&GA(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),yr=_c,BA=String,kA=TypeError,Ta=function(e){if(yr(e))return e;throw kA(BA(e)+" is not an object")},gS=Ua,jA=ad,HA=Wl,Fi=Ta,yS=rd,Ql=TypeError,gc=Object.defineProperty,RS=Object.getOwnPropertyDescriptor,zl="enumerable",$i="configurable",to="writable";Ao.f=gS?HA?function(t,r,n){if(Fi(t),r=yS(r),Fi(n),typeof t=="function"&&r==="prototype"&&"value"in n&&to in n&&!n[to]){var i=RS(t,r);i&&i[to]&&(t[r]=n.value,n={configurable:$i in n?n[$i]:i[$i],enumerable:zl in n?n[zl]:i[zl],writable:!1})}return gc(t,r,n)}:gc:function(t,r,n){if(Fi(t),r=yS(r),Fi(n),jA)try{return gc(t,r,n)}catch{}if("get"in n||"set"in n)throw Ql("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var sd=Ua,OS=Ao,Xl=du,Tu=sd?function(e,t,r){return OS.f(e,t,Xl(1,r))}:function(e,t,r){return e[t]=r,e},Jl={exports:{}},Zl=Ua,ud=Za,ef=Function.prototype,ns=Zl&&Object.getOwnPropertyDescriptor,cd=ud(ef,"name"),is=cd&&function(){}.name==="something",bS=cd&&(!Zl||Zl&&ns(ef,"name").configurable),ld={EXISTS:cd,PROPER:is,CONFIGURABLE:bS},fd=Lr,YA=Ai,_d=hc,qA=fd(Function.toString);YA(_d.inspectSource)||(_d.inspectSource=function(e){return qA(e)});var dd=_d.inspectSource,CS=mi,KA=Ai,PS=dd,pd=CS.WeakMap,Qi=KA(pd)&&/native code/.test(PS(pd)),ro=Bl.exports,WA=fi,MS=ro("keys"),Au=function(e){return MS[e]||(MS[e]=WA(e))},as={},IS=Qi,hd=mi,Sd=Lr,NS=_c,gu=Tu,xs=Za,Ed=hc,LS=Au,DS=as,yc="Object already initialized",tf=hd.TypeError,rf=hd.WeakMap,yu,os,nf,wS=function(e){return nf(e)?os(e):yu(e,{})},af=function(e){return function(t){var r;if(!NS(t)||(r=os(t)).type!==e)throw tf("Incompatible receiver, "+e+" required");return r}};if(IS||Ed.state){var ss=Ed.state||(Ed.state=new rf),vd=Sd(ss.get),US=Sd(ss.has),xS=Sd(ss.set);yu=function(e,t){if(US(ss,e))throw new tf(yc);return t.facade=e,xS(ss,e,t),t},os=function(e){return vd(ss,e)||{}},nf=function(e){return US(ss,e)}}else{var zi=LS("state");DS[zi]=!0,yu=function(e,t){if(xs(e,zi))throw new tf(yc);return t.facade=e,gu(e,zi,t),t},os=function(e){return xs(e,zi)?e[zi]:{}},nf=function(e){return xs(e,zi)}}var of={set:yu,get:os,has:nf,enforce:wS,getterFor:af},FS=ri,QA=Ai,Rc=Za,md=Ua,zA=ld.CONFIGURABLE,go=dd,sf=of,Td=sf.enforce,Ad=sf.get,Fs=Object.defineProperty,Ru=md&&!FS(function(){return Fs(function(){},"length",{value:8}).length!==8}),Wt=String(String).split("String"),uf=Jl.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Rc(e,"name")||zA&&e.name!==t)&&(md?Fs(e,"name",{value:t,configurable:!0}):e.name=t),Ru&&r&&Rc(r,"arity")&&e.length!==r.arity&&Fs(e,"length",{value:r.arity});try{r&&Rc(r,"constructor")&&r.constructor?md&&Fs(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=Td(e);return Rc(n,"source")||(n.source=Wt.join(typeof t=="string"?t:"")),e};Function.prototype.toString=uf(function(){return QA(this)&&Ad(this).source||go(this)},"toString");var gd=Ai,$s=Ao,XA=Jl.exports,yd=mu,Oc=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(gd(r)&&XA(r,a,n),n.global)i?e[t]=r:yd(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:$s.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},gi={},JA=Math.ceil,ZA=Math.floor,$S=Math.trunc||function(t){var r=+t;return(r>0?ZA:JA)(r)},eg=$S,bc=function(e){var t=+e;return t!==t||t===0?0:eg(t)},tg=bc,rg=Math.max,ng=Math.min,yo=function(e,t){var r=tg(e);return r<0?rg(r+t,0):ng(r,t)},Vi=bc,Rd=Math.min,VS=function(e){return e>0?Rd(Vi(e),9007199254740991):0},Od=VS,ig=function(e){return Od(e.length)},ag=fc,Cc=yo,GS=ig,bd=function(e){return function(t,r,n){var i=ag(t),a=GS(i),u=Cc(n,a),c;if(e&&r!=r){for(;a>u;)if(c=i[u++],c!=c)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},og={includes:bd(!0),indexOf:bd(!1)},sg=Lr,Cd=Za,ug=fc,BS=og.indexOf,kS=as,jS=sg([].push),cf=function(e,t){var r=ug(e),n=0,i=[],a;for(a in r)!Cd(kS,a)&&Cd(r,a)&&jS(i,a);for(;t.length>n;)Cd(r,a=t[n++])&&(~BS(i,a)||jS(i,a));return i},lf=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pc=cf,Pd=lf,HS=Pd.concat("length","prototype");gi.f=Object.getOwnPropertyNames||function(t){return Pc(t,HS)};var ff={};ff.f=Object.getOwnPropertySymbols;var _f=fe,YS=Lr,no=gi,Vs=ff,cg=Ta,qS=YS([].concat),lg=_f("Reflect","ownKeys")||function(t){var r=no.f(cg(t)),n=Vs.f;return n?qS(r,n(t)):r},KS=Za,fg=lg,_g=Ll,dg=Ao,pg=function(e,t,r){for(var n=fg(t),i=dg.f,a=_g.f,u=0;u<n.length;u++){var c=n[u];!KS(e,c)&&!(r&&KS(r,c))&&i(e,c,a(t,c))}},hg=ri,Sg=Ai,Eg=/#|\.prototype\./,Mc=function(e,t){var r=WS[vg(e)];return r==zS?!0:r==QS?!1:Sg(t)?hg(t):!!t},vg=Mc.normalize=function(e){return String(e).replace(Eg,".").toLowerCase()},WS=Mc.data={},QS=Mc.NATIVE="N",zS=Mc.POLYFILL="P",mg=Mc,Md=mi,Tg=Ll.f,XS=Tu,Ag=Oc,gg=mu,yg=pg,Rg=mg,df=function(e,t){var r=e.target,n=e.global,i=e.stat,a,u,c,v,_,h;if(n?u=Md:i?u=Md[r]||gg(r,{}):u=(Md[r]||{}).prototype,u)for(c in t){if(_=t[c],e.dontCallGetSet?(h=Tg(u,c),v=h&&h.value):v=u[c],a=Rg(n?c:r+(i?".":"#")+c,e.forced),!a&&v!==void 0){if(typeof _==typeof v)continue;yg(_,v)}(e.sham||v&&v.sham)&&XS(_,"sham",!0),Ag(u,c,_,e)}},Og=eo,Aa=Og("toStringTag"),JS={};JS[Aa]="z";var bg=String(JS)==="[object z]",Cg=bg,ZS=Ai,pf=Fl,Pg=eo,Mg=Pg("toStringTag"),Ig=Object,Id=pf(function(){return arguments}())=="Arguments",Ng=function(e,t){try{return e[t]}catch{}},Lg=Cg?pf:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=Ng(t=Ig(e),Mg))=="string"?r:Id?pf(t):(n=pf(t))=="Object"&&ZS(t.callee)?"Arguments":n},Dg=Lg,wg=String,Ic=function(e){if(Dg(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return wg(e)},eE=`
103
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Ug=Lr,xg=Jo,Fg=Ic,$g=eE,tE=Ug("".replace),hf="["+$g+"]",Vg=RegExp("^"+hf+hf+"*"),Gg=RegExp(hf+hf+"*$"),Nd=function(e){return function(t){var r=Fg(xg(t));return e&1&&(r=tE(r,Vg,"")),e&2&&(r=tE(r,Gg,"")),r}},Bg={start:Nd(1),end:Nd(2),trim:Nd(3)},rE=mi,kg=ri,jg=Lr,Hg=Ic,Ld=Bg.trim,Dd=eE,Nc=rE.parseInt,nE=rE.Symbol,iE=nE&&nE.iterator,aE=/^[+-]?0x/i,Yg=jg(aE.exec),qg=Nc(Dd+"08")!==8||Nc(Dd+"0x16")!==22||iE&&!kg(function(){Nc(Object(iE))}),Kg=qg?function(t,r){var n=Ld(Hg(t));return Nc(n,r>>>0||(Yg(aE,n)?16:10))}:Nc,Wg=df,wd=Kg;Wg({global:!0,forced:parseInt!=wd},{parseInt:wd});var Qg=Ta,Sf=function(){var e=Qg(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ud=ri,zg=mi,xd=zg.RegExp,Fd=Ud(function(){var e=xd("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Xg=Fd||Ud(function(){return!xd("a","y").sticky}),Jg=Fd||Ud(function(){var e=xd("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),Zg={BROKEN_CARET:Jg,MISSED_STICKY:Xg,UNSUPPORTED_Y:Fd},oE={},ey=cf,ty=lf,sE=Object.keys||function(t){return ey(t,ty)},ry=Ua,ny=Wl,iy=Ao,ay=Ta,oy=fc,uE=sE;oE.f=ry&&!ny?Object.defineProperties:function(t,r){ay(t);for(var n=oy(r),i=uE(r),a=i.length,u=0,c;a>u;)iy.f(t,c=i[u++],n[c]);return t};var cE=fe,sy=cE("document","documentElement"),uy=Ta,cy=oE,lE=lf,Ef=as,ly=sy,fy=Ac,_y=Au,fE=">",_E="<",$d="prototype",Vd="script",dE=_y("IE_PROTO"),Gd=function(){},pE=function(e){return _E+Vd+fE+e+_E+"/"+Vd+fE},hE=function(e){e.write(pE("")),e.close();var t=e.parentWindow.Object;return e=null,t},vf=function(){var e=fy("iframe"),t="java"+Vd+":",r;return e.style.display="none",ly.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(pE("document.F=Object")),r.close(),r.F},mf,Lc=function(){try{mf=new ActiveXObject("htmlfile")}catch{}Lc=typeof document<"u"?document.domain&&mf?hE(mf):vf():hE(mf);for(var e=lE.length;e--;)delete Lc[$d][lE[e]];return Lc()};Ef[dE]=!0;var Tf=Object.create||function(t,r){var n;return t!==null?(Gd[$d]=uy(t),n=new Gd,Gd[$d]=null,n[dE]=t):n=Lc(),r===void 0?n:cy.f(n,r)},Bd=ri,SE=mi,EE=SE.RegExp,vE=Bd(function(){var e=EE(".","s");return!(e.dotAll&&e.exec(`
104
- `)&&e.flags==="s")}),mE=ri,dy=mi,py=dy.RegExp,hy=mE(function(){var e=py("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ro=xa,Gs=Lr,Sy=Ic,Ey=Sf,kd=Zg,TE=Bl.exports,vy=Tf,my=of.get,Ty=vE,Ay=hy,gy=TE("native-string-replace",String.prototype.replace),Af=RegExp.prototype.exec,jd=Af,yy=Gs("".charAt),Ry=Gs("".indexOf),Oy=Gs("".replace),Hd=Gs("".slice),Yd=function(){var e=/a/,t=/b*/g;return Ro(Af,e,"a"),Ro(Af,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),ga=kd.BROKEN_CARET,qd=/()??/.exec("")[1]!==void 0,by=Yd||qd||ga||Ty||Ay;by&&(jd=function(t){var r=this,n=my(r),i=Sy(t),a=n.raw,u,c,v,_,h,L,W;if(a)return a.lastIndex=r.lastIndex,u=Ro(jd,a,i),r.lastIndex=a.lastIndex,u;var Te=n.groups,me=ga&&r.sticky,Oe=Ro(Ey,r),He=r.source,qe=0,We=i;if(me&&(Oe=Oy(Oe,"y",""),Ry(Oe,"g")===-1&&(Oe+="g"),We=Hd(i,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&yy(i,r.lastIndex-1)!==`
105
- `)&&(He="(?: "+He+")",We=" "+We,qe++),c=new RegExp("^(?:"+He+")",Oe)),qd&&(c=new RegExp("^"+He+"$(?!\\s)",Oe)),Yd&&(v=r.lastIndex),_=Ro(Af,me?c:r,We),me?_?(_.input=Hd(_.input,qe),_[0]=Hd(_[0],qe),_.index=r.lastIndex,r.lastIndex+=_[0].length):r.lastIndex=0:Yd&&_&&(r.lastIndex=r.global?_.index+_[0].length:v),qd&&_&&_.length>1&&Ro(gy,_[0],c,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(_[h]=void 0)}),_&&Te)for(_.groups=L=vy(null),h=0;h<Te.length;h++)W=Te[h],L[W[0]]=_[W[1]];return _});var Oo=jd,cr=df,AE=Oo;cr({target:"RegExp",proto:!0,forced:/./.exec!==AE},{exec:AE});var Xi=wl,Bn=Function.prototype,gE=Bn.apply,bo=Bn.call,Cy=typeof Reflect=="object"&&Reflect.apply||(Xi?bo.bind(gE):function(){return bo.apply(gE,arguments)}),yE=Lr,RE=Oc,Py=Oo,OE=ri,gf=eo,My=Tu,Co=gf("species"),yf=RegExp.prototype,Rf=function(e,t,r,n){var i=gf(e),a=!OE(function(){var _={};return _[i]=function(){return 7},""[e](_)!=7}),u=a&&!OE(function(){var _=!1,h=/a/;return e==="split"&&(h={},h.constructor={},h.constructor[Co]=function(){return h},h.flags="",h[i]=/./[i]),h.exec=function(){return _=!0,null},h[i](""),!_});if(!a||!u||r){var c=yE(/./[i]),v=t(i,""[e],function(_,h,L,W,Te){var me=yE(_),Oe=h.exec;return Oe===Py||Oe===yf.exec?a&&!Te?{done:!0,value:c(h,L,W)}:{done:!0,value:me(L,h,W)}:{done:!1}});RE(String.prototype,e,v[0]),RE(yf,i,v[1])}n&&My(yf[i],"sham",!0)},On=Lr,kn=bc,bE=Ic,Iy=Jo,Ny=On("".charAt),CE=On("".charCodeAt),Ly=On("".slice),PE=function(e){return function(t,r){var n=bE(Iy(t)),i=kn(r),a=n.length,u,c;return i<0||i>=a?e?"":void 0:(u=CE(n,i),u<55296||u>56319||i+1===a||(c=CE(n,i+1))<56320||c>57343?e?Ny(n,i):u:e?Ly(n,i,i+2):(u-55296<<10)+(c-56320)+65536)}},Dy={codeAt:PE(!1),charAt:PE(!0)},ME=Dy.charAt,Dc=function(e,t,r){return t+(r?ME(e,t).length:1)},wc=Lr,wy=Sc,IE=Math.floor,Ou=wc("".charAt),ia=wc("".replace),us=wc("".slice),Uy=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xy=/\$([$&'`]|\d{1,2})/g,Fy=function(e,t,r,n,i,a){var u=r+e.length,c=n.length,v=xy;return i!==void 0&&(i=wy(i),v=Uy),ia(a,v,function(_,h){var L;switch(Ou(h,0)){case"$":return"$";case"&":return e;case"`":return us(t,0,r);case"'":return us(t,u);case"<":L=i[us(h,1,-1)];break;default:var W=+h;if(W===0)return _;if(W>c){var Te=IE(W/10);return Te===0?_:Te<=c?n[Te-1]===void 0?Ou(h,1):n[Te-1]+Ou(h,1):_}L=n[W-1]}return L===void 0?"":L})},NE=xa,$y=Ta,LE=Ai,Po=Fl,Ar=Oo,DE=TypeError,ya=function(e,t){var r=e.exec;if(LE(r)){var n=NE(r,e,t);return n!==null&&$y(n),n}if(Po(e)==="RegExp")return NE(Ar,e,t);throw DE("RegExp#exec called on incompatible receiver")},wE=Cy,UE=xa,kr=Lr,Vy=Rf,xE=ri,Of=Ta,Gy=Ai,By=bc,ky=VS,bu=Ic,jy=Jo,Hy=Dc,Yy=oS,qy=Fy,Ky=ya,Wy=eo,Kd=Wy("replace"),Qy=Math.max,zy=Math.min,Wd=kr([].concat),Qd=kr([].push),bf=kr("".indexOf),FE=kr("".slice),Xy=function(e){return e===void 0?e:String(e)},Jy=function(){return"a".replace(/./,"$0")==="$0"}(),ui=function(){return/./[Kd]?/./[Kd]("a","$0")==="":!1}(),Ji=!xE(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});Vy("replace",function(e,t,r){var n=ui?"$":"$0";return[function(a,u){var c=jy(this),v=a==null?void 0:Yy(a,Kd);return v?UE(v,a,c,u):UE(t,bu(c),a,u)},function(i,a){var u=Of(this),c=bu(i);if(typeof a=="string"&&bf(a,n)===-1&&bf(a,"$<")===-1){var v=r(t,u,c,a);if(v.done)return v.value}var _=Gy(a);_||(a=bu(a));var h=u.global;if(h){var L=u.unicode;u.lastIndex=0}for(var W=[];;){var Te=Ky(u,c);if(Te===null||(Qd(W,Te),!h))break;var me=bu(Te[0]);me===""&&(u.lastIndex=Hy(c,ky(u.lastIndex),L))}for(var Oe="",He=0,qe=0;qe<W.length;qe++){Te=W[qe];for(var We=bu(Te[0]),ct=Qy(zy(By(Te.index),c.length),0),yt=[],jt=1;jt<Te.length;jt++)Qd(yt,Xy(Te[jt]));var dr=Te.groups;if(_){var Sr=Wd([We],yt,ct,c);dr!==void 0&&Qd(Sr,dr);var an=bu(wE(a,void 0,Sr))}else an=qy(We,c,ct,yt,dr,a);ct>=He&&(Oe+=FE(c,He,ct)+an,He=ct+We.length)}return Oe+FE(c,He)}]},!Ji||!Jy||ui);var Zy=eo,eR=Tf,tR=Ao.f,Cf=Zy("unscopables"),zd=Array.prototype;zd[Cf]==null&&tR(zd,Cf,{configurable:!0,value:eR(null)});var rR=function(e){zd[Cf][e]=!0},Xd={},$E=ri,nR=!$E(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),iR=Za,aR=Ai,VE=Sc,GE=Au,oR=nR,BE=GE("IE_PROTO"),Jd=Object,sR=Jd.prototype,Bs=oR?Jd.getPrototypeOf:function(e){var t=VE(e);if(iR(t,BE))return t[BE];var r=t.constructor;return aR(r)&&t instanceof r?r.prototype:t instanceof Jd?sR:null},uR=ri,cR=Ai,kE=Bs,lR=Oc,fR=eo,Pf=fR("iterator"),Zd=!1,ks,ep,tp;[].keys&&(tp=[].keys(),"next"in tp?(ep=kE(kE(tp)),ep!==Object.prototype&&(ks=ep)):Zd=!0);var _R=ks==null||uR(function(){var e={};return ks[Pf].call(e)!==e});_R&&(ks={}),cR(ks[Pf])||lR(ks,Pf,function(){return this});var jE={IteratorPrototype:ks,BUGGY_SAFARI_ITERATORS:Zd},dR=Ao.f,pR=Za,hR=eo,HE=hR("toStringTag"),YE=function(e,t,r){e&&!r&&(e=e.prototype),e&&!pR(e,HE)&&dR(e,HE,{configurable:!0,value:t})},SR=jE.IteratorPrototype,ER=Tf,vR=du,mR=YE,TR=Xd,AR=function(){return this},gR=function(e,t,r,n){var i=t+" Iterator";return e.prototype=ER(SR,{next:vR(+!n,r)}),mR(e,i,!1),TR[i]=AR,e},yR=Ai,RR=String,OR=TypeError,bR=function(e){if(typeof e=="object"||yR(e))return e;throw OR("Can't set "+RR(e)+" as a prototype")},CR=Lr,PR=Ta,MR=bR,IR=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=CR(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,a){return PR(i),MR(a),e?r(i,a):i.__proto__=a,i}}():void 0),rp=df,qE=xa,np=ld,NR=Ai,LR=gR,KE=Bs,Mf=IR,DR=YE,wR=Tu,ip=Oc,Zi=eo,ap=Xd,WE=jE,UR=np.PROPER,xR=np.CONFIGURABLE,QE=WE.IteratorPrototype,Cu=WE.BUGGY_SAFARI_ITERATORS,Uc=Zi("iterator"),If="keys",xc="values",zE="entries",FR=function(){return this},$R=function(e,t,r,n,i,a,u){LR(r,t,n);var c=function(qe){if(qe===i&&W)return W;if(!Cu&&qe in h)return h[qe];switch(qe){case If:return function(){return new r(this,qe)};case xc:return function(){return new r(this,qe)};case zE:return function(){return new r(this,qe)}}return function(){return new r(this)}},v=t+" Iterator",_=!1,h=e.prototype,L=h[Uc]||h["@@iterator"]||i&&h[i],W=!Cu&&L||c(i),Te=t=="Array"&&h.entries||L,me,Oe,He;if(Te&&(me=KE(Te.call(new e)),me!==Object.prototype&&me.next&&(KE(me)!==QE&&(Mf?Mf(me,QE):NR(me[Uc])||ip(me,Uc,FR)),DR(me,v,!0))),UR&&i==xc&&L&&L.name!==xc&&(xR?wR(h,"name",xc):(_=!0,W=function(){return qE(L,this)})),i)if(Oe={values:c(xc),keys:a?W:c(If),entries:c(zE)},u)for(He in Oe)(Cu||_||!(He in h))&&ip(h,He,Oe[He]);else rp({target:t,proto:!0,forced:Cu||_},Oe);return h[Uc]!==W&&ip(h,Uc,W,{name:i}),ap[t]=W,Oe},XE=fc,op=rR,JE=Xd,ZE=of,sp=Ao.f,up=$R,VR=Ua,ev="Array Iterator",GR=ZE.set,BR=ZE.getterFor(ev),kR=up(Array,"Array",function(e,t){GR(this,{type:ev,target:XE(e),index:0,kind:t})},function(){var e=BR(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),tv=JE.Arguments=JE.Array;if(op("keys"),op("values"),op("entries"),VR&&tv.name!=="values")try{sp(tv,"name",{value:"values"})}catch{}var jR={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},HR=Ac,cp=HR("span").classList,rv=cp&&cp.constructor&&cp.constructor.prototype,YR=rv===Object.prototype?void 0:rv,nv=mi,iv=jR,qR=YR,Fc=kR,lp=Tu,av=eo,fp=av("iterator"),ov=av("toStringTag"),_p=Fc.values,sv=function(e,t){if(e){if(e[fp]!==_p)try{lp(e,fp,_p)}catch{e[fp]=_p}if(e[ov]||lp(e,ov,t),iv[t]){for(var r in Fc)if(e[r]!==Fc[r])try{lp(e,r,Fc[r])}catch{e[r]=Fc[r]}}}};for(var o in iv)sv(nv[o]&&nv[o].prototype,o);sv(qR,"DOMTokenList");function s(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function f(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var M,X,he;function Ce(e){let t=0;if(e.length===0)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t=t&t;return t}class Ve{constructor({definitions:t,uuid:r,appVersion:n}){M.set(this,void 0),X.set(this,void 0),he.set(this,void 0),f(this,M,t,"f"),f(this,X,parseInt(`0x${r.replace(/-/g,"")}`),"f"),f(this,he,n,"f")}getFeatureFlagVariant(t,r){const n=s(this,M,"f").find(a=>a.name===t);let i=0;if(n){const a=Ce(n.id),u=Math.abs(s(this,X,"f")-a)%100;return n.variants.find(({percent:v})=>(i=v+i,u<i))||{name:"control",percent:100-i,value:r}}}getFeatureFlagValue(t,r){const n=this.getFeatureFlagVariant(t,r);return s(this,he,"f")&&n?.minimumRequiredVersion&&(!q_.valid(s(this,he,"f"))||!q_.valid(n.minimumRequiredVersion)||q_.lt(s(this,he,"f"),n.minimumRequiredVersion))?r:n?.value||r}}M=new WeakMap,X=new WeakMap,he=new WeakMap;var Ke=Ua,lt=Lr,_t=xa,Et=ri,Pt=sE,xt=ff,Jt=K_,gr=Sc,Zt=hu,hr=Object.assign,wr=Object.defineProperty,aa=lt([].concat),Gi=!hr||Et(function(){if(Ke&&hr({b:1},hr(wr({},"a",{enumerable:!0,get:function(){wr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),hr({},e)[r]!=7||Pt(hr({},t)).join("")!=n})?function(t,r){for(var n=gr(t),i=arguments.length,a=1,u=xt.f,c=Jt.f;i>a;)for(var v=Zt(arguments[a++]),_=u?aa(Pt(v),u(v)):Pt(v),h=_.length,L=0,W;h>L;)W=_[L++],(!Ke||_t(c,v,W))&&(n[W]=v[W]);return n}:hr,oa=df,jn=Gi;oa({target:"Object",stat:!0,arity:2,forced:Object.assign!==jn},{assign:jn});const Ra=null,cs=({children:e,featureFlags:t})=>jsx(Ra.Provider,Object.assign({value:t},{children:e}));function KR(e,t){const r=React.useContext(Ra);return r?.getFeatureFlagValue(e,t)||t}var dp;(function(e){e.one="1.0.0"})(dp||(dp={}));const uv="orchestrator:feature-flags-service",sH={id:uv,dependencies:{featureServices:{[Wn]:vi.one},externals:{}},create:({featureServices:e})=>{var t;const r=e[Wn],n="b0e74b60-1797-4d34-b90a-712a93f4e732",i=r.getClientContext(),a=new Ve({uuid:n,definitions:((t=i?.featureFlagConfiguration)===null||t===void 0?void 0:t.featureFlagDefinitions)||[],appVersion:r.getMetadata().version});return{[dp.one]:()=>({featureService:a})}}};var NI=p(3170),Pu;(function(e){e.one="1.0.0"})(Pu||(Pu={}));const js="orchestrator:logging-service",uH={id:js,dependencies:{featureServices:{[Wn]:vi.one,[uv]:dp.one}},create:({featureServices:e})=>{const t=e[Wn],r=e[uv],{environment:n,slug:i}=t.getClientContext(),a=t.getTelemetryConfig(),{version:u}=t.getMetadata(),c=r.getFeatureFlagValue("client log url",void 0),v=(0,NI.default)({url:typeof c=="string"?c:void 0,telemetry:a,environment:n,clientSlug:i,appVersion:u});return{[Pu.one]:()=>({featureService:v})}}};var cv;(function(e){e.one="1.0.0"})(cv||(cv={}));const LI="orchestrator:theme-service",cH={id:LI,dependencies:{featureServices:{[za]:Nr.one,[Wn]:vi.one,[js]:Pu.one}},create:({featureServices:e})=>{const t=e[za],r=e[Wn],n=e[js],{slug:i}=r.getClientContext(),a=new Nl.ThemeFactory(t,i);return a.createTheme().catch(u=>{n.error(u,"Error occurred while prefetching theme")}),{[cv.one]:()=>({featureService:a})}}};var DI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},lv=function(e){return e&&e.Math==Math&&e},Mi=lv(typeof globalThis=="object"&&globalThis)||lv(typeof window=="object"&&window)||lv(typeof self=="object"&&self)||lv(typeof DI=="object"&&DI)||function(){return this}()||Function("return this")(),fv={},Ga=function(e){try{return!!e()}catch{return!0}},lH=Ga,Mo=!lH(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fH=Ga,_v=!fH(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),_H=_v,dv=Function.prototype.call,io=_H?dv.bind(dv):function(){return dv.apply(dv,arguments)},WR={},wI={}.propertyIsEnumerable,UI=Object.getOwnPropertyDescriptor,dH=UI&&!wI.call({1:2},1);WR.f=dH?function(t){var r=UI(this,t);return!!r&&r.enumerable}:wI;var QR=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},xI=_v,FI=Function.prototype,pH=FI.bind,zR=FI.call,hH=xI&&pH.bind(zR,zR),Oa=xI?function(e){return e&&hH(e)}:function(e){return e&&function(){return zR.apply(e,arguments)}},$I=Oa,SH=$I({}.toString),EH=$I("".slice),XR=function(e){return EH(SH(e),8,-1)},vH=Oa,mH=Ga,TH=XR,JR=Object,AH=vH("".split),VI=mH(function(){return!JR("z").propertyIsEnumerable(0)})?function(e){return TH(e)=="String"?AH(e,""):JR(e)}:JR,gH=TypeError,GI=function(e){if(e==null)throw gH("Can't call method on "+e);return e},yH=VI,RH=GI,pp=function(e){return yH(RH(e))},_i=function(e){return typeof e=="function"},OH=_i,$c=function(e){return typeof e=="object"?e!==null:OH(e)},ZR=Mi,bH=_i,CH=function(e){return bH(e)?e:void 0},Mu=function(e,t){return arguments.length<2?CH(ZR[e]):ZR[e]&&ZR[e][t]},PH=Oa,eO=PH({}.isPrototypeOf),MH=Mu,pv=MH("navigator","userAgent")||"",BI=Mi,tO=pv,kI=BI.process,jI=BI.Deno,HI=kI&&kI.versions||jI&&jI.version,YI=HI&&HI.v8,Io,hv;YI&&(Io=YI.split("."),hv=Io[0]>0&&Io[0]<4?1:+(Io[0]+Io[1])),!hv&&tO&&(Io=tO.match(/Edge\/(\d+)/),(!Io||Io[1]>=74)&&(Io=tO.match(/Chrome\/(\d+)/),Io&&(hv=+Io[1])));var qI=hv,KI=qI,IH=Ga,WI=!!Object.getOwnPropertySymbols&&!IH(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KI&&KI<41}),NH=WI,QI=NH&&!Symbol.sham&&typeof Symbol.iterator=="symbol",LH=Mu,DH=_i,wH=eO,UH=QI,xH=Object,zI=UH?function(e){return typeof e=="symbol"}:function(e){var t=LH("Symbol");return DH(t)&&wH(t.prototype,xH(e))},FH=String,Sv=function(e){try{return FH(e)}catch{return"Object"}},$H=_i,VH=Sv,GH=TypeError,Vc=function(e){if($H(e))return e;throw GH(VH(e)+" is not a function")},BH=Vc,rO=function(e,t){var r=e[t];return r==null?void 0:BH(r)},nO=io,iO=_i,aO=$c,kH=TypeError,jH=function(e,t){var r,n;if(t==="string"&&iO(r=e.toString)&&!aO(n=nO(r,e))||iO(r=e.valueOf)&&!aO(n=nO(r,e))||t!=="string"&&iO(r=e.toString)&&!aO(n=nO(r,e)))return n;throw kH("Can't convert object to primitive value")},oO={exports:{}},XI=Mi,HH=Object.defineProperty,sO=function(e,t){try{HH(XI,e,{value:t,configurable:!0,writable:!0})}catch{XI[e]=t}return t},YH=Mi,qH=sO,JI="__core-js_shared__",KH=YH[JI]||qH(JI,{}),uO=KH,ZI=uO;(oO.exports=function(e,t){return ZI[e]||(ZI[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var WH=GI,QH=Object,cO=function(e){return QH(WH(e))},zH=Oa,XH=cO,JH=zH({}.hasOwnProperty),ls=Object.hasOwn||function(t,r){return JH(XH(t),r)},ZH=Oa,eY=0,tY=Math.random(),rY=ZH(1 .toString),eN=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rY(++eY+tY,36)},nY=Mi,iY=oO.exports,tN=ls,aY=eN,rN=WI,nN=QI,Nf=iY("wks"),Gc=nY.Symbol,iN=Gc&&Gc.for,oY=nN?Gc:Gc&&Gc.withoutSetter||aY,ba=function(e){if(!tN(Nf,e)||!(rN||typeof Nf[e]=="string")){var t="Symbol."+e;rN&&tN(Gc,e)?Nf[e]=Gc[e]:nN&&iN?Nf[e]=iN(t):Nf[e]=oY(t)}return Nf[e]},sY=io,aN=$c,oN=zI,uY=rO,cY=jH,lY=ba,fY=TypeError,_Y=lY("toPrimitive"),dY=function(e,t){if(!aN(e)||oN(e))return e;var r=uY(e,_Y),n;if(r){if(t===void 0&&(t="default"),n=sY(r,e,t),!aN(n)||oN(n))return n;throw fY("Can't convert object to primitive value")}return t===void 0&&(t="number"),cY(e,t)},pY=dY,hY=zI,sN=function(e){var t=pY(e,"string");return hY(t)?t:t+""},SY=Mi,uN=$c,lO=SY.document,EY=uN(lO)&&uN(lO.createElement),Ev=function(e){return EY?lO.createElement(e):{}},vY=Mo,mY=Ga,TY=Ev,cN=!vY&&!mY(function(){return Object.defineProperty(TY("div"),"a",{get:function(){return 7}}).a!=7}),AY=Mo,gY=io,yY=WR,RY=QR,OY=pp,bY=sN,CY=ls,PY=cN,lN=Object.getOwnPropertyDescriptor;fv.f=AY?lN:function(t,r){if(t=OY(t),r=bY(r),PY)try{return lN(t,r)}catch{}if(CY(t,r))return RY(!gY(yY.f,t,r),t[r])};var Hs={},MY=Mo,IY=Ga,fN=MY&&IY(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),NY=$c,LY=String,DY=TypeError,fs=function(e){if(NY(e))return e;throw DY(LY(e)+" is not an object")},wY=Mo,UY=cN,xY=fN,vv=fs,_N=sN,FY=TypeError,fO=Object.defineProperty,$Y=Object.getOwnPropertyDescriptor,_O="enumerable",dO="configurable",pO="writable";Hs.f=wY?xY?function(t,r,n){if(vv(t),r=_N(r),vv(n),typeof t=="function"&&r==="prototype"&&"value"in n&&pO in n&&!n[pO]){var i=$Y(t,r);i&&i[pO]&&(t[r]=n.value,n={configurable:dO in n?n[dO]:i[dO],enumerable:_O in n?n[_O]:i[_O],writable:!1})}return fO(t,r,n)}:fO:function(t,r,n){if(vv(t),r=_N(r),vv(n),UY)try{return fO(t,r,n)}catch{}if("get"in n||"set"in n)throw FY("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var VY=Mo,GY=Hs,BY=QR,mv=VY?function(e,t,r){return GY.f(e,t,BY(1,r))}:function(e,t,r){return e[t]=r,e},dN={exports:{}},hO=Mo,kY=ls,pN=Function.prototype,jY=hO&&Object.getOwnPropertyDescriptor,SO=kY(pN,"name"),HY=SO&&function(){}.name==="something",YY=SO&&(!hO||hO&&jY(pN,"name").configurable),hN={EXISTS:SO,PROPER:HY,CONFIGURABLE:YY},qY=Oa,KY=_i,EO=uO,WY=qY(Function.toString);KY(EO.inspectSource)||(EO.inspectSource=function(e){return WY(e)});var Tv=EO.inspectSource,QY=Mi,zY=_i,XY=Tv,SN=QY.WeakMap,JY=zY(SN)&&/native code/.test(XY(SN)),ZY=oO.exports,e8=eN,EN=ZY("keys"),vO=function(e){return EN[e]||(EN[e]=e8(e))},mO={},t8=JY,vN=Mi,TO=Oa,r8=$c,n8=mv,AO=ls,gO=uO,i8=vO,a8=mO,mN="Object already initialized",yO=vN.TypeError,o8=vN.WeakMap,Av,hp,gv,s8=function(e){return gv(e)?hp(e):Av(e,{})},u8=function(e){return function(t){var r;if(!r8(t)||(r=hp(t)).type!==e)throw yO("Incompatible receiver, "+e+" required");return r}};if(t8||gO.state){var Bc=gO.state||(gO.state=new o8),c8=TO(Bc.get),TN=TO(Bc.has),l8=TO(Bc.set);Av=function(e,t){if(TN(Bc,e))throw new yO(mN);return t.facade=e,l8(Bc,e,t),t},hp=function(e){return c8(Bc,e)||{}},gv=function(e){return TN(Bc,e)}}else{var Lf=i8("state");a8[Lf]=!0,Av=function(e,t){if(AO(e,Lf))throw new yO(mN);return t.facade=e,n8(e,Lf,t),t},hp=function(e){return AO(e,Lf)?e[Lf]:{}},gv=function(e){return AO(e,Lf)}}var RO={set:Av,get:hp,has:gv,enforce:s8,getterFor:u8},f8=Ga,_8=_i,yv=ls,OO=Mo,d8=hN.CONFIGURABLE,p8=Tv,AN=RO,h8=AN.enforce,S8=AN.get,Rv=Object.defineProperty,E8=OO&&!f8(function(){return Rv(function(){},"length",{value:8}).length!==8}),v8=String(String).split("String"),m8=dN.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!yv(e,"name")||d8&&e.name!==t)&&(OO?Rv(e,"name",{value:t,configurable:!0}):e.name=t),E8&&r&&yv(r,"arity")&&e.length!==r.arity&&Rv(e,"length",{value:r.arity});try{r&&yv(r,"constructor")&&r.constructor?OO&&Rv(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=h8(e);return yv(n,"source")||(n.source=v8.join(typeof t=="string"?t:"")),e};Function.prototype.toString=m8(function(){return _8(this)&&S8(this).source||p8(this)},"toString");var T8=_i,A8=Hs,g8=dN.exports,y8=sO,Sp=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(T8(r)&&g8(r,a,n),n.global)i?e[t]=r:y8(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:A8.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},gN={},R8=Math.ceil,O8=Math.floor,b8=Math.trunc||function(t){var r=+t;return(r>0?O8:R8)(r)},C8=b8,yN=function(e){var t=+e;return t!==t||t===0?0:C8(t)},P8=yN,M8=Math.max,I8=Math.min,N8=function(e,t){var r=P8(e);return r<0?M8(r+t,0):I8(r,t)},L8=yN,D8=Math.min,w8=function(e){return e>0?D8(L8(e),9007199254740991):0},U8=w8,RN=function(e){return U8(e.length)},x8=pp,F8=N8,$8=RN,ON=function(e){return function(t,r,n){var i=x8(t),a=$8(i),u=F8(n,a),c;if(e&&r!=r){for(;a>u;)if(c=i[u++],c!=c)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},V8={includes:ON(!0),indexOf:ON(!1)},G8=Oa,bO=ls,B8=pp,k8=V8.indexOf,j8=mO,bN=G8([].push),CN=function(e,t){var r=B8(e),n=0,i=[],a;for(a in r)!bO(j8,a)&&bO(r,a)&&bN(i,a);for(;t.length>n;)bO(r,a=t[n++])&&(~k8(i,a)||bN(i,a));return i},CO=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H8=CN,Y8=CO,q8=Y8.concat("length","prototype");gN.f=Object.getOwnPropertyNames||function(t){return H8(t,q8)};var PO={};PO.f=Object.getOwnPropertySymbols;var K8=Mu,W8=Oa,Q8=gN,z8=PO,X8=fs,J8=W8([].concat),Z8=K8("Reflect","ownKeys")||function(t){var r=Q8.f(X8(t)),n=z8.f;return n?J8(r,n(t)):r},PN=ls,eq=Z8,tq=fv,rq=Hs,nq=function(e,t,r){for(var n=eq(t),i=rq.f,a=tq.f,u=0;u<n.length;u++){var c=n[u];!PN(e,c)&&!(r&&PN(r,c))&&i(e,c,a(t,c))}},iq=Ga,aq=_i,oq=/#|\.prototype\./,Ep=function(e,t){var r=uq[sq(e)];return r==lq?!0:r==cq?!1:aq(t)?iq(t):!!t},sq=Ep.normalize=function(e){return String(e).replace(oq,".").toLowerCase()},uq=Ep.data={},cq=Ep.NATIVE="N",lq=Ep.POLYFILL="P",MN=Ep,MO=Mi,fq=fv.f,_q=mv,dq=Sp,pq=sO,hq=nq,Sq=MN,Iu=function(e,t){var r=e.target,n=e.global,i=e.stat,a,u,c,v,_,h;if(n?u=MO:i?u=MO[r]||pq(r,{}):u=(MO[r]||{}).prototype,u)for(c in t){if(_=t[c],e.dontCallGetSet?(h=fq(u,c),v=h&&h.value):v=u[c],a=Sq(n?c:r+(i?".":"#")+c,e.forced),!a&&v!==void 0){if(typeof _==typeof v)continue;hq(_,v)}(e.sham||v&&v.sham)&&_q(_,"sham",!0),dq(u,c,_,e)}},Eq=_i,vq=String,mq=TypeError,Tq=function(e){if(typeof e=="object"||Eq(e))return e;throw mq("Can't set "+vq(e)+" as a prototype")},Aq=Oa,gq=fs,yq=Tq,IN=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=Aq(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,a){return gq(i),yq(a),e?r(i,a):i.__proto__=a,i}}():void 0),Rq=Hs.f,Oq=ls,bq=ba,NN=bq("toStringTag"),IO=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Oq(e,NN)&&Rq(e,NN,{configurable:!0,value:t})},Cq=Mu,LN=Cq("document","documentElement"),vp={},Pq=CN,Mq=CO,DN=Object.keys||function(t){return Pq(t,Mq)},wN=Mo,Iq=Oa,Nq=io,Lq=Ga,NO=DN,Dq=PO,wq=WR,Uq=cO,xq=VI,Df=Object.assign,UN=Object.defineProperty,Fq=Iq([].concat),$q=!Df||Lq(function(){if(wN&&Df({b:1},Df(UN({},"a",{enumerable:!0,get:function(){UN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Df({},e)[r]!=7||NO(Df({},t)).join("")!=n})?function(t,r){for(var n=Uq(t),i=arguments.length,a=1,u=Dq.f,c=wq.f;i>a;)for(var v=xq(arguments[a++]),_=u?Fq(NO(v),u(v)):NO(v),h=_.length,L=0,W;h>L;)W=_[L++],(!wN||Nq(c,v,W))&&(n[W]=v[W]);return n}:Df,Vq=Iu,xN=$q;Vq({target:"Object",stat:!0,arity:2,forced:Object.assign!==xN},{assign:xN});const Gq={setProfileProperties(){},trackEvent(){},reset(){console.warn("Reset method not implemented for analytics context.")}},FN=null,MIe=({children:e,analyticsService:t})=>jsx(FN.Provider,Object.assign({value:t||Gq},{children:e}));function Bq(){return useContext(FN)}var $N={},kq=Mo,jq=fN,Hq=Hs,Yq=fs,qq=pp,Kq=DN;$N.f=kq&&!jq?Object.defineProperties:function(t,r){Yq(t);for(var n=qq(r),i=Kq(r),a=i.length,u=0,c;a>u;)Hq.f(t,c=i[u++],n[c]);return t};var Wq=fs,Qq=$N,VN=CO,zq=mO,Xq=LN,Jq=Ev,Zq=vO,GN=">",BN="<",LO="prototype",DO="script",kN=Zq("IE_PROTO"),wO=function(){},jN=function(e){return BN+DO+GN+e+BN+"/"+DO+GN},HN=function(e){e.write(jN("")),e.close();var t=e.parentWindow.Object;return e=null,t},e2=function(){var e=Jq("iframe"),t="java"+DO+":",r;return e.style.display="none",Xq.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(jN("document.F=Object")),r.close(),r.F},Ov,bv=function(){try{Ov=new ActiveXObject("htmlfile")}catch{}bv=typeof document<"u"?document.domain&&Ov?HN(Ov):e2():HN(Ov);for(var e=VN.length;e--;)delete bv[LO][VN[e]];return bv()};zq[kN]=!0;var YN=Object.create||function(t,r){var n;return t!==null?(wO[LO]=Wq(t),n=new wO,wO[LO]=null,n[kN]=t):n=bv(),r===void 0?n:Qq.f(n,r)},t2=ba,r2=YN,n2=Hs.f,UO=t2("unscopables"),xO=Array.prototype;xO[UO]==null&&n2(xO,UO,{configurable:!0,value:r2(null)});var i2=function(e){xO[UO][e]=!0},a2=Ga,o2=!a2(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),s2=ls,u2=_i,c2=cO,l2=vO,f2=o2,qN=l2("IE_PROTO"),FO=Object,_2=FO.prototype,KN=f2?FO.getPrototypeOf:function(e){var t=c2(e);if(s2(t,qN))return t[qN];var r=t.constructor;return u2(r)&&t instanceof r?r.prototype:t instanceof FO?_2:null},d2=Ga,p2=_i,WN=KN,h2=Sp,S2=ba,$O=S2("iterator"),QN=!1,kc,VO,GO;[].keys&&(GO=[].keys(),"next"in GO?(VO=WN(WN(GO)),VO!==Object.prototype&&(kc=VO)):QN=!0);var E2=kc==null||d2(function(){var e={};return kc[$O].call(e)!==e});E2&&(kc={}),p2(kc[$O])||h2(kc,$O,function(){return this});var zN={IteratorPrototype:kc,BUGGY_SAFARI_ITERATORS:QN},v2=zN.IteratorPrototype,m2=YN,T2=QR,A2=IO,g2=vp,y2=function(){return this},R2=function(e,t,r,n){var i=t+" Iterator";return e.prototype=m2(v2,{next:T2(+!n,r)}),A2(e,i,!1),g2[i]=y2,e},O2=Iu,b2=io,XN=hN,C2=_i,P2=R2,JN=KN,ZN=IN,M2=IO,I2=mv,BO=Sp,N2=ba,L2=vp,eL=zN,D2=XN.PROPER,w2=XN.CONFIGURABLE,tL=eL.IteratorPrototype,Cv=eL.BUGGY_SAFARI_ITERATORS,mp=N2("iterator"),rL="keys",Tp="values",nL="entries",U2=function(){return this},x2=function(e,t,r,n,i,a,u){P2(r,t,n);var c=function(qe){if(qe===i&&W)return W;if(!Cv&&qe in h)return h[qe];switch(qe){case rL:return function(){return new r(this,qe)};case Tp:return function(){return new r(this,qe)};case nL:return function(){return new r(this,qe)}}return function(){return new r(this)}},v=t+" Iterator",_=!1,h=e.prototype,L=h[mp]||h["@@iterator"]||i&&h[i],W=!Cv&&L||c(i),Te=t=="Array"&&h.entries||L,me,Oe,He;if(Te&&(me=JN(Te.call(new e)),me!==Object.prototype&&me.next&&(JN(me)!==tL&&(ZN?ZN(me,tL):C2(me[mp])||BO(me,mp,U2)),M2(me,v,!0))),D2&&i==Tp&&L&&L.name!==Tp&&(w2?I2(h,"name",Tp):(_=!0,W=function(){return b2(L,this)})),i)if(Oe={values:c(Tp),keys:a?W:c(rL),entries:c(nL)},u)for(He in Oe)(Cv||_||!(He in h))&&BO(h,He,Oe[He]);else O2({target:t,proto:!0,forced:Cv||_},Oe);return h[mp]!==W&&BO(h,mp,W,{name:i}),L2[t]=W,Oe},F2=pp,kO=i2,iL=vp,aL=RO,$2=Hs.f,V2=x2,G2=Mo,oL="Array Iterator",B2=aL.set,k2=aL.getterFor(oL),j2=V2(Array,"Array",function(e,t){B2(this,{type:oL,target:F2(e),index:0,kind:t})},function(){var e=k2(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),sL=iL.Arguments=iL.Array;if(kO("keys"),kO("values"),kO("entries"),G2&&sL.name!=="values")try{$2(sL,"name",{value:"values"})}catch{}var H2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Y2=Ev,jO=Y2("span").classList,uL=jO&&jO.constructor&&jO.constructor.prototype,q2=uL===Object.prototype?void 0:uL,cL=Mi,lL=H2,K2=q2,Ap=j2,HO=mv,fL=ba,YO=fL("iterator"),_L=fL("toStringTag"),qO=Ap.values,dL=function(e,t){if(e){if(e[YO]!==qO)try{HO(e,YO,qO)}catch{e[YO]=qO}if(e[_L]||HO(e,_L,t),lL[t]){for(var r in Ap)if(e[r]!==Ap[r])try{HO(e,r,Ap[r])}catch{e[r]=Ap[r]}}}};for(var KO in lL)dL(cL[KO]&&cL[KO].prototype,KO);dL(K2,"DOMTokenList");const pL=aA.createContext({customProperties:{},prefixArray:[],trackEvent(){},setProfileProperties(){},updateCustomProperty(){},clearCustomProperty(){},updateCustomProperties(){},clearCustomProperties(){},setPrefixArray(){},pushPrefix(){},popPrefix(){},reset(){console.warn("Reset method not implemented for custom analytics context.")}}),IIe=({children:e})=>{const{trackEvent:t,setProfileProperties:r}=Bq(),[n,i]=useState({}),L={trackEvent:(W,Te=void 0,me=void 0)=>{const Oe=[W],He=Object.assign(Object.assign({},n),Te);Object.keys(He).length&&Oe.push(He),me&&Oe.push(me),t(...Oe)},setProfileProperties:r,customProperties:n,updateCustomProperty:(W,Te)=>{i(me=>Object.assign(Object.assign({},me),{[W]:Te}))},clearCustomProperty:W=>{n==null||delete n[W],i(Object.assign({},n))},updateCustomProperties:W=>{i(Te=>Object.assign(Object.assign({},Te),W))},clearCustomProperties:()=>{i({})},reset:()=>{console.warn("Reset method not implemented for custom analytics context.")}};return jsx(pL.Provider,Object.assign({value:L},{children:e}))};function NIe(){return useContext(pL)}var wf=p(6934),W2=p(5250),Q2=XR,z2=Mi,Pv=Q2(z2.process)=="process",X2=Mu,J2=Hs,Z2=ba,eK=Mo,hL=Z2("species"),tK=function(e){var t=X2(e),r=J2.f;eK&&t&&!t[hL]&&r(t,hL,{configurable:!0,get:function(){return this}})},rK=eO,nK=TypeError,iK=function(e,t){if(rK(t,e))return e;throw nK("Incorrect invocation")},aK=ba,oK=aK("toStringTag"),SL={};SL[oK]="z";var sK=String(SL)==="[object z]",uK=sK,cK=_i,Mv=XR,lK=ba,fK=lK("toStringTag"),_K=Object,dK=Mv(function(){return arguments}())=="Arguments",pK=function(e,t){try{return e[t]}catch{}},EL=uK?Mv:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=pK(t=_K(e),fK))=="string"?r:dK?Mv(t):(n=Mv(t))=="Object"&&cK(t.callee)?"Arguments":n},hK=Oa,SK=Ga,vL=_i,EK=EL,vK=Mu,mK=Tv,mL=function(){},TK=[],TL=vK("Reflect","construct"),WO=/^\s*(?:class|function)\b/,AK=hK(WO.exec),gK=!WO.exec(mL),gp=function(t){if(!vL(t))return!1;try{return TL(mL,TK,t),!0}catch{return!1}},AL=function(t){if(!vL(t))return!1;switch(EK(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gK||!!AK(WO,mK(t))}catch{return!0}};AL.sham=!0;var yK=!TL||SK(function(){var e;return gp(gp.call)||!gp(Object)||!gp(function(){e=!0})||e})?AL:gp,RK=yK,OK=Sv,bK=TypeError,CK=function(e){if(RK(e))return e;throw bK(OK(e)+" is not a constructor")},gL=fs,PK=CK,MK=ba,IK=MK("species"),NK=function(e,t){var r=gL(e).constructor,n;return r===void 0||(n=gL(r)[IK])==null?t:PK(n)},LK=_v,yL=Function.prototype,RL=yL.apply,OL=yL.call,DK=typeof Reflect=="object"&&Reflect.apply||(LK?OL.bind(RL):function(){return OL.apply(RL,arguments)}),bL=Oa,wK=Vc,UK=_v,xK=bL(bL.bind),QO=function(e,t){return wK(e),t===void 0?e:UK?xK(e,t):function(){return e.apply(t,arguments)}},FK=Oa,$K=FK([].slice),VK=TypeError,GK=function(e,t){if(e<t)throw VK("Not enough arguments");return e},BK=pv,CL=/(?:ipad|iphone|ipod).*applewebkit/i.test(BK),Ba=Mi,kK=DK,jK=QO,PL=_i,HK=ls,YK=Ga,ML=LN,qK=$K,IL=Ev,KK=GK,WK=CL,QK=Pv,zO=Ba.setImmediate,XO=Ba.clearImmediate,zK=Ba.process,JO=Ba.Dispatch,XK=Ba.Function,NL=Ba.MessageChannel,JK=Ba.String,ZO=0,yp={},LL="onreadystatechange",Rp,jc,eb,tb;try{Rp=Ba.location}catch{}var rb=function(e){if(HK(yp,e)){var t=yp[e];delete yp[e],t()}},nb=function(e){return function(){rb(e)}},DL=function(e){rb(e.data)},wL=function(e){Ba.postMessage(JK(e),Rp.protocol+"//"+Rp.host)};(!zO||!XO)&&(zO=function(t){KK(arguments.length,1);var r=PL(t)?t:XK(t),n=qK(arguments,1);return yp[++ZO]=function(){kK(r,void 0,n)},jc(ZO),ZO},XO=function(t){delete yp[t]},QK?jc=function(e){zK.nextTick(nb(e))}:JO&&JO.now?jc=function(e){JO.now(nb(e))}:NL&&!WK?(eb=new NL,tb=eb.port2,eb.port1.onmessage=DL,jc=jK(tb.postMessage,tb)):Ba.addEventListener&&PL(Ba.postMessage)&&!Ba.importScripts&&Rp&&Rp.protocol!=="file:"&&!YK(wL)?(jc=wL,Ba.addEventListener("message",DL,!1)):LL in IL("script")?jc=function(e){ML.appendChild(IL("script"))[LL]=function(){ML.removeChild(this),rb(e)}}:jc=function(e){setTimeout(nb(e),0)});var UL={set:zO,clear:XO},ZK=pv,eW=Mi,tW=/ipad|iphone|ipod/i.test(ZK)&&eW.Pebble!==void 0,rW=pv,nW=/web0s(?!.*chrome)/i.test(rW),Hc=Mi,xL=QO,iW=fv.f,ib=UL.set,aW=CL,oW=tW,sW=nW,ab=Pv,FL=Hc.MutationObserver||Hc.WebKitMutationObserver,$L=Hc.document,VL=Hc.process,Iv=Hc.Promise,GL=iW(Hc,"queueMicrotask"),BL=GL&&GL.value,Op,Yc,bp,Uf,ob,sb,Nv,kL;BL||(Op=function(){var e,t;for(ab&&(e=VL.domain)&&e.exit();Yc;){t=Yc.fn,Yc=Yc.next;try{t()}catch(r){throw Yc?Uf():bp=void 0,r}}bp=void 0,e&&e.enter()},!aW&&!ab&&!sW&&FL&&$L?(ob=!0,sb=$L.createTextNode(""),new FL(Op).observe(sb,{characterData:!0}),Uf=function(){sb.data=ob=!ob}):!oW&&Iv&&Iv.resolve?(Nv=Iv.resolve(void 0),Nv.constructor=Iv,kL=xL(Nv.then,Nv),Uf=function(){kL(Op)}):ab?Uf=function(){VL.nextTick(Op)}:(ib=xL(ib,Hc),Uf=function(){ib(Op)}));var uW=BL||function(e){var t={fn:e,next:void 0};bp&&(bp.next=t),Yc||(Yc=t,Uf()),bp=t},cW=Mi,lW=function(e,t){var r=cW.console;r&&r.error&&(arguments.length==1?r.error(e):r.error(e,t))},ub=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},jL=function(){this.head=null,this.tail=null};jL.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var fW=jL,_W=Mi,Lv=_W.Promise,HL=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",dW=HL,pW=Pv,hW=!dW&&!pW&&typeof window=="object"&&typeof document=="object",SW=Mi,Cp=Lv,EW=_i,vW=MN,mW=Tv,TW=ba,AW=hW,gW=HL,cb=qI;Cp&&Cp.prototype;var yW=TW("species"),lb=!1,YL=EW(SW.PromiseRejectionEvent),RW=vW("Promise",function(){var e=mW(Cp),t=e!==String(Cp);if(!t&&cb===66)return!0;if(!cb||cb<51||!/native code/.test(e)){var r=new Cp(function(a){a(1)}),n=function(a){a(function(){},function(){})},i=r.constructor={};if(i[yW]=n,lb=r.then(function(){})instanceof n,!lb)return!0}return!t&&(AW||gW)&&!YL}),Pp={CONSTRUCTOR:RW,REJECTION_EVENT:YL,SUBCLASSING:lb},xf={},qL=Vc,OW=function(e){var t,r;this.promise=new e(function(n,i){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=i}),this.resolve=qL(t),this.reject=qL(r)};xf.f=function(e){return new OW(e)};var bW=Iu,Dv=Pv,Nu=Mi,Ff=io,KL=Sp,WL=IN,CW=IO,PW=tK,MW=Vc,wv=_i,IW=$c,NW=iK,LW=NK,QL=UL.set,fb=uW,DW=lW,wW=ub,UW=fW,zL=RO,Uv=Lv,_b=Pp,XL=xf,xv="Promise",JL=_b.CONSTRUCTOR,xW=_b.REJECTION_EVENT,FW=_b.SUBCLASSING,db=zL.getterFor(xv),$W=zL.set,$f=Uv&&Uv.prototype,qc=Uv,Fv=$f,ZL=Nu.TypeError,pb=Nu.document,hb=Nu.process,Sb=XL.f,VW=Sb,GW=!!(pb&&pb.createEvent&&Nu.dispatchEvent),e0="unhandledrejection",BW="rejectionhandled",t0=0,r0=1,kW=2,Eb=1,n0=2,$v,i0,jW,a0,o0=function(e){var t;return IW(e)&&wv(t=e.then)?t:!1},s0=function(e,t){var r=t.value,n=t.state==r0,i=n?e.ok:e.fail,a=e.resolve,u=e.reject,c=e.domain,v,_,h;try{i?(n||(t.rejection===n0&&YW(t),t.rejection=Eb),i===!0?v=r:(c&&c.enter(),v=i(r),c&&(c.exit(),h=!0)),v===e.promise?u(ZL("Promise-chain cycle")):(_=o0(v))?Ff(_,v,a,u):a(v)):u(r)}catch(L){c&&!h&&c.exit(),u(L)}},u0=function(e,t){e.notified||(e.notified=!0,fb(function(){for(var r=e.reactions,n;n=r.get();)s0(n,e);e.notified=!1,t&&!e.rejection&&HW(e)}))},c0=function(e,t,r){var n,i;GW?(n=pb.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),Nu.dispatchEvent(n)):n={promise:t,reason:r},!xW&&(i=Nu["on"+e])?i(n):e===e0&&DW("Unhandled promise rejection",r)},HW=function(e){Ff(QL,Nu,function(){var t=e.facade,r=e.value,n=l0(e),i;if(n&&(i=wW(function(){Dv?hb.emit("unhandledRejection",r,t):c0(e0,t,r)}),e.rejection=Dv||l0(e)?n0:Eb,i.error))throw i.value})},l0=function(e){return e.rejection!==Eb&&!e.parent},YW=function(e){Ff(QL,Nu,function(){var t=e.facade;Dv?hb.emit("rejectionHandled",t):c0(BW,t,e.value)})},Vf=function(e,t,r){return function(n){e(t,n,r)}},Gf=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=kW,u0(e,!0))},vb=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw ZL("Promise can't be resolved itself");var n=o0(t);n?fb(function(){var i={done:!1};try{Ff(n,t,Vf(vb,i,e),Vf(Gf,i,e))}catch(a){Gf(i,a,e)}}):(e.value=t,e.state=r0,u0(e,!1))}catch(i){Gf({done:!1},i,e)}}};if(JL&&(qc=function(t){NW(this,Fv),MW(t),Ff($v,this);var r=db(this);try{t(Vf(vb,r),Vf(Gf,r))}catch(n){Gf(r,n)}},Fv=qc.prototype,$v=function(t){$W(this,{type:xv,done:!1,notified:!1,parent:!1,reactions:new UW,rejection:!1,state:t0,value:void 0})},$v.prototype=KL(Fv,"then",function(t,r){var n=db(this),i=Sb(LW(this,qc));return n.parent=!0,i.ok=wv(t)?t:!0,i.fail=wv(r)&&r,i.domain=Dv?hb.domain:void 0,n.state==t0?n.reactions.add(i):fb(function(){s0(i,n)}),i.promise}),i0=function(){var e=new $v,t=db(e);this.promise=e,this.resolve=Vf(vb,t),this.reject=Vf(Gf,t)},XL.f=Sb=function(e){return e===qc||e===jW?new i0(e):VW(e)},wv(Uv)&&$f!==Object.prototype)){a0=$f.then,FW||KL($f,"then",function(t,r){var n=this;return new qc(function(i,a){Ff(a0,n,i,a)}).then(t,r)},{unsafe:!0});try{delete $f.constructor}catch{}WL&&WL($f,Fv)}bW({global:!0,constructor:!0,wrap:!0,forced:JL},{Promise:qc}),CW(qc,xv,!1),PW(xv);var qW=ba,KW=vp,WW=qW("iterator"),QW=Array.prototype,zW=function(e){return e!==void 0&&(KW.Array===e||QW[WW]===e)},XW=EL,f0=rO,JW=vp,ZW=ba,eQ=ZW("iterator"),_0=function(e){if(e!=null)return f0(e,eQ)||f0(e,"@@iterator")||JW[XW(e)]},tQ=io,rQ=Vc,nQ=fs,iQ=Sv,aQ=_0,oQ=TypeError,sQ=function(e,t){var r=arguments.length<2?aQ(e):t;if(rQ(r))return nQ(tQ(r,e));throw oQ(iQ(e)+" is not iterable")},uQ=io,d0=fs,cQ=rO,lQ=function(e,t,r){var n,i;d0(e);try{if(n=cQ(e,"return"),!n){if(t==="throw")throw r;return r}n=uQ(n,e)}catch(a){i=!0,n=a}if(t==="throw")throw r;if(i)throw n;return d0(n),r},fQ=QO,_Q=io,dQ=fs,pQ=Sv,hQ=zW,SQ=RN,p0=eO,EQ=sQ,vQ=_0,h0=lQ,mQ=TypeError,Vv=function(e,t){this.stopped=e,this.result=t},S0=Vv.prototype,E0=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),a=!!(r&&r.IS_RECORD),u=!!(r&&r.IS_ITERATOR),c=!!(r&&r.INTERRUPTED),v=fQ(t,n),_,h,L,W,Te,me,Oe,He=function(We){return _&&h0(_,"normal",We),new Vv(!0,We)},qe=function(We){return i?(dQ(We),c?v(We[0],We[1],He):v(We[0],We[1])):c?v(We,He):v(We)};if(a)_=e.iterator;else if(u)_=e;else{if(h=vQ(e),!h)throw mQ(pQ(e)+" is not iterable");if(hQ(h)){for(L=0,W=SQ(e);W>L;L++)if(Te=qe(e[L]),Te&&p0(S0,Te))return Te;return new Vv(!1)}_=EQ(e,h)}for(me=a?e.next:_.next;!(Oe=_Q(me,_)).done;){try{Te=qe(Oe.value)}catch(We){h0(_,"throw",We)}if(typeof Te=="object"&&Te&&p0(S0,Te))return Te}return new Vv(!1)},TQ=ba,v0=TQ("iterator"),m0=!1;try{var AQ=0,T0={next:function(){return{done:!!AQ++}},return:function(){m0=!0}};T0[v0]=function(){return this},Array.from(T0,function(){throw 2})}catch{}var gQ=function(e,t){if(!t&&!m0)return!1;var r=!1;try{var n={};n[v0]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},yQ=Lv,RQ=gQ,OQ=Pp.CONSTRUCTOR,A0=OQ||!RQ(function(e){yQ.all(e).then(void 0,function(){})}),bQ=Iu,CQ=io,PQ=Vc,MQ=xf,IQ=ub,NQ=E0,LQ=A0;bQ({target:"Promise",stat:!0,forced:LQ},{all:function(t){var r=this,n=MQ.f(r),i=n.resolve,a=n.reject,u=IQ(function(){var c=PQ(r.resolve),v=[],_=0,h=1;NQ(t,function(L){var W=_++,Te=!1;h++,CQ(c,r,L).then(function(me){Te||(Te=!0,v[W]=me,--h||i(v))},a)}),--h||i(v)});return u.error&&a(u.value),n.promise}});var DQ=Iu,wQ=Pp.CONSTRUCTOR,mb=Lv,UQ=Mu,xQ=_i,FQ=Sp,g0=mb&&mb.prototype;if(DQ({target:"Promise",proto:!0,forced:wQ,real:!0},{catch:function(e){return this.then(void 0,e)}}),xQ(mb)){var y0=UQ("Promise").prototype.catch;g0.catch!==y0&&FQ(g0,"catch",y0,{unsafe:!0})}var $Q=Iu,VQ=io,GQ=Vc,BQ=xf,kQ=ub,jQ=E0,HQ=A0;$Q({target:"Promise",stat:!0,forced:HQ},{race:function(t){var r=this,n=BQ.f(r),i=n.reject,a=kQ(function(){var u=GQ(r.resolve);jQ(t,function(c){VQ(u,r,c).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}});var YQ=Iu,qQ=io,KQ=xf,WQ=Pp.CONSTRUCTOR;YQ({target:"Promise",stat:!0,forced:WQ},{reject:function(t){var r=KQ.f(this);return qQ(r.reject,void 0,t),r.promise}});var QQ=fs,zQ=$c,XQ=xf,JQ=function(e,t){if(QQ(e),zQ(t)&&t.constructor===e)return t;var r=XQ.f(e),n=r.resolve;return n(t),r.promise},ZQ=Iu,e3=Mu,t3=Pp.CONSTRUCTOR,r3=JQ;e3("Promise"),ZQ({target:"Promise",stat:!0,forced:t3},{resolve:function(t){return r3(this,t)}});function n3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function R0(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})}class Tb{static initializeGoogleTagManager(t){return R0(this,void 0,void 0,function*(){return new Tb(t).init()})}constructor({gaKey:t,eventMap:r,dataLayerName:n}){this.dataLayerName="",this.gaKey=t,this.eventMap=r||[],this.dataLayerName=n||"dataLayer",window[this.dataLayerName]=window[this.dataLayerName]||[],this.dataLayer=window[this.dataLayerName]}init(){var t;return R0(this,void 0,void 0,function*(){this.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});const r=document.createElement("script");return r.async=!0,r.src=`https://www.googletagmanager.com/gtm.js?id=${this.gaKey}${this.dataLayerName!=="dataLayer"?`&l=${this.dataLayerName}`:""}`,(t=document.head.parentNode)===null||t===void 0||t.append(r),new Promise((n,i)=>{r.onload=()=>n(this),r.onerror=i})})}setProfileProperties(t){}trackEvent(t,r={}){const n=this.eventMap.find(i=>i.key===t);n&&this.dataLayer.push(Object.assign(Object.assign({},r),{event:n.value}))}reset(){console.warn("Reset method not implemented for google tag manager.")}}class i3{constructor(t,r,n){wf.init(t.key),r&&wf.register(r),n&&this.setProfileProperties(n)}setProfileProperties(t){var{id:r}=t,n=n3(t,["id"]);r&&wf.identify(r),wf.people.set(n)}trackEvent(t,r){wf.track(t,r)}reset(){wf.reset()}}class a3{constructor(t=[]){this.services=t,(0,W2.bindAll)(this,"trackEvent","append")}setProfileProperties(t){this.services.forEach(r=>r.setProfileProperties(t))}trackEvent(t,r){this.services.forEach(n=>n.trackEvent(t,r))}append(t){this.services.push(t)}reset(){this.services.forEach(t=>t.reset())}}function o3(e,t,r){const n=new a3;return e&&(e?.mixPanel&&e?.mixPanel.length&&e.mixPanel.forEach(i=>{n.append(new i3(i,t,r))}),e?.googleTagManager&&e.googleTagManager.length&&e.googleTagManager.forEach(i=>n.append(new Tb(i)))),n}class LIe{constructor({script:t}){var r;if(t){const n=document.createElement("script");n.async=!0,n.src=t,(r=document.head.parentNode)===null||r===void 0||r.append(n),this.adobeAnalytics=new Promise((i,a)=>{n.onload=()=>i(this),n.onerror=()=>a("Failed to inject script")})}else throw new Error("Adobe analytics is not initialized")}setProfileProperties(t){console.warn("SetProfileProperties method is not implemented for adobe analytics")}trackEvent(t,r={}){console.warn("TrackEvent method is not implemented for adobe analytics")}reset(){console.warn("Reset method is not implemented for adobe analytics")}}var Bf;(function(e){e.one="1.0.0"})(Bf||(Bf={}));const Mp="orchestrator:analytics-service",s3={id:Mp,dependencies:{featureServices:{[Wn]:vi.one}},create:({featureServices:e})=>{const t=e[Wn],{client:r,app:n,slug:i,frontendEnvironment:a}=t.getClientContext(),{version:u}=t.getMetadata(),c=o3(a?.analytics||{},{client:r,app:n,clientSlug:i,appVersion:u},{});return t.getStore().subscribe(()=>{var v,_,h,L;const W=t.getUser();!((_=(v=W?.tokenData)===null||v===void 0?void 0:v.idToken)===null||_===void 0)&&_.payload&&c.setProfileProperties({id:W.tokenData.idToken.payload["custom:bwellFhirPersonId"],clientPersonId:W.tokenData.idToken.payload["custom:clientFhirPersonId"],clientPatientId:W.tokenData.idToken.payload["custom:clientFhirPatientId"],isInternalTestUser:(L=(h=W.meta)===null||h===void 0?void 0:h.tag)===null||L===void 0?void 0:L.some(Te=>Te.code==="bwelltestuser")})}),{[Bf.one]:()=>({featureService:c})}}};var Ab=p(8577),Gv;(function(e){e.one="1.0.0"})(Gv||(Gv={}));const O0="orchestrator:auth-service",u3={id:O0,dependencies:{featureServices:{[za]:Nr.one},externals:{}},create:({featureServices:e})=>{const t=e[za],r=new Ab.Auth(t);return{[Gv.one]:()=>({featureService:r})}}};function DIe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function wIe(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})}function No(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function c3(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Lo=p(934),_s=p(9226),Do,Ip,ds;const{ROUTE_NAVIGATION_DELEGATE:l3}=_s.ErrorCode;class f3{constructor(){Do.add(this),Ip.set(this,void 0)}setDelegate(t){c3(this,Ip,t,"f")}navigate(t,r){return typeof t=="number"?No(this,Do,"a",ds).navigate(t):No(this,Do,"a",ds).navigate(t,r)}has(t){return No(this,Do,"a",ds).has(t)}getPath(t){return No(this,Do,"a",ds).getPath(t)}getHref(t){return No(this,Do,"a",ds).getHref(t)}getSearchParams(){return No(this,Do,"a",ds).getSearchParams()}setSearchParams(t,r){No(this,Do,"a",ds).setSearchParams(t,r)}getUrlParams(){return No(this,Do,"a",ds).getUrlParams()}getId(t){return No(this,Do,"a",ds).getId(t)}}Ip=new WeakMap,Do=new WeakSet,ds=function(){if(!No(this,Ip,"f"))throw new Lo.b("route navigation delegate has not been set",{errorCode:l3});return No(this,Ip,"f")};var Bv;(function(e){e.one="1.0.0"})(Bv||(Bv={}));const b0="orchestrator:navigation-service",_3={id:b0,create:()=>{const e=new f3;return{[Bv.one]:()=>({featureService:e})}}},lr=e=>typeof e=="string",Np=()=>{let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r},C0=e=>e==null?"":""+e,d3=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},p3=/###/g,P0=e=>e&&e.indexOf("###")>-1?e.replace(p3,"."):e,M0=e=>!e||lr(e),Lp=(e,t,r)=>{const n=lr(t)?t.split("."):t;let i=0;for(;i<n.length-1;){if(M0(e))return{};const a=P0(n[i]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++i}return M0(e)?{}:{obj:e,k:P0(n[i])}},I0=(e,t,r)=>{const{obj:n,k:i}=Lp(e,t,Object);if(n!==void 0||t.length===1){n[i]=r;return}let a=t[t.length-1],u=t.slice(0,t.length-1),c=Lp(e,u,Object);for(;c.obj===void 0&&u.length;)a=`${u[u.length-1]}.${a}`,u=u.slice(0,u.length-1),c=Lp(e,u,Object),c?.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=r},h3=(e,t,r,n)=>{const{obj:i,k:a}=Lp(e,t,Object);i[a]=i[a]||[],i[a].push(r)},kv=(e,t)=>{const{obj:r,k:n}=Lp(e,t);if(!!r&&!!Object.prototype.hasOwnProperty.call(r,n))return r[n]},S3=(e,t,r)=>{const n=kv(e,r);return n!==void 0?n:kv(t,r)},N0=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?lr(e[n])||e[n]instanceof String||lr(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):N0(e[n],t[n],r):e[n]=t[n]);return e},kf=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var E3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const v3=e=>lr(e)?e.replace(/[&<>"'\/]/g,t=>E3[t]):e;class m3{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const T3=[" ",",","?","!",";"],A3=new m3(20),g3=(e,t,r)=>{t=t||"",r=r||"";const n=T3.filter(u=>t.indexOf(u)<0&&r.indexOf(u)<0);if(n.length===0)return!0;const i=A3.getRegExp(`(${n.map(u=>u==="?"?"\\?":u).join("|")})`);let a=!i.test(e);if(!a){const u=e.indexOf(r);u>0&&!i.test(e.substring(0,u))&&(a=!0)}return a},gb=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const n=t.split(r);let i=e;for(let a=0;a<n.length;){if(!i||typeof i!="object")return;let u,c="";for(let v=a;v<n.length;++v)if(v!==a&&(c+=r),c+=n[v],u=i[c],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&v<n.length-1)continue;a+=v-a+1;break}i=u}return i},jv=e=>e?.replace("_","-"),y3={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Hv{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||y3,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,i){return i&&!this.debug?null:(lr(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Hv(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Hv(this.logger,t)}}var ps=new Hv;class Yv{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(t,r){if(!!this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(u=>{let[c,v]=u;for(let _=0;_<v;_++)c(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(u=>{let[c,v]=u;for(let _=0;_<v;_++)c.apply(c,[t,...n])})}}class L0 extends Yv{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,r],n&&(Array.isArray(n)?c.push(...n):lr(n)&&a?c.push(...n.split(a)):c.push(n)));const v=kv(this.data,c);return!v&&!r&&!n&&t.indexOf(".")>-1&&(t=c[0],r=c[1],n=c.slice(2).join(".")),v||!u||!lr(n)?v:gb(this.data?.[t]?.[r],n,a)}addResource(t,r,n,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=[t,r];n&&(c=c.concat(u?n.split(u):n)),t.indexOf(".")>-1&&(c=t.split("."),i=r,r=c[1]),this.addNamespaces(r),I0(this.data,c,i),a.silent||this.emit("added",t,r,n,i)}addResources(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(lr(n[a])||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});i.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,i,a){let u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,r];t.indexOf(".")>-1&&(c=t.split("."),i=n,n=r,r=c[1]),this.addNamespaces(r);let v=kv(this.data,c)||{};u.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?N0(v,n,a):v={...v,...n},I0(this.data,c,v),u.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var D0={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(a=>{t=this.processors[a]?.process(t,r,n,i)??t}),t}};const w0={},U0=e=>!lr(e)&&typeof e!="boolean"&&typeof e!="number";class qv extends Yv{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),d3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ps.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return t==null?!1:this.resolve(t,r)?.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const u=n&&t.indexOf(n)>-1,c=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!g3(t,n,i);if(u&&!c){const v=t.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:t,namespaces:lr(a)?[a]:a};const _=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(_[0])>-1)&&(a=_.shift()),t=_.join(i)}return{key:t,namespaces:lr(a)?[a]:a}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:u,namespaces:c}=this.extractFromKey(t[t.length-1],r),v=c[c.length-1],_=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_?.toLowerCase()==="cimode"){if(h){const pi=r.nsSeparator||this.options.nsSeparator;return i?{res:`${v}${pi}${u}`,usedKey:u,exactUsedKey:u,usedLng:_,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:`${v}${pi}${u}`}return i?{res:u,usedKey:u,exactUsedKey:u,usedLng:_,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:u}const L=this.resolve(t,r);let W=L?.res;const Te=L?.usedKey||u,me=L?.exactUsedKey||u,Oe=["[object Number]","[object Function]","[object RegExp]"],He=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,qe=!this.i18nFormat||this.i18nFormat.handleAsObject,We=r.count!==void 0&&!lr(r.count),ct=qv.hasDefaultValue(r),yt=We?this.pluralResolver.getSuffix(_,r.count,r):"",jt=r.ordinal&&We?this.pluralResolver.getSuffix(_,r.count,{ordinal:!1}):"",dr=We&&!r.ordinal&&r.count===0,Sr=dr&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${yt}`]||r[`defaultValue${jt}`]||r.defaultValue;let an=W;qe&&!W&&ct&&(an=Sr);const Ia=U0(an),JT=Object.prototype.toString.apply(an);if(qe&&an&&Ia&&Oe.indexOf(JT)<0&&!(lr(He)&&Array.isArray(an))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const pi=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Te,an,{...r,ns:c}):`key '${u} (${this.language})' returned an object instead of string.`;return i?(L.res=pi,L.usedParams=this.getUsedParamsDetails(r),L):pi}if(a){const pi=Array.isArray(an),ni=pi?[]:{},B_=pi?me:Te;for(const Ps in an)if(Object.prototype.hasOwnProperty.call(an,Ps)){const au=`${B_}${a}${Ps}`;ct&&!W?ni[Ps]=this.translate(au,{...r,defaultValue:U0(Sr)?Sr[Ps]:void 0,joinArrays:!1,ns:c}):ni[Ps]=this.translate(au,{...r,joinArrays:!1,ns:c}),ni[Ps]===au&&(ni[Ps]=an[Ps])}W=ni}}else if(qe&&lr(He)&&Array.isArray(W))W=W.join(He),W&&(W=this.extendTranslation(W,t,r,n));else{let pi=!1,ni=!1;!this.isValidLookup(W)&&ct&&(pi=!0,W=Sr),this.isValidLookup(W)||(ni=!0,W=u);const Ps=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ni?void 0:W,au=ct&&Sr!==W&&this.options.updateMissing;if(ni||pi||au){if(this.logger.log(au?"updateKey":"missingKey",_,v,u,au?Sr:W),a){const qa=this.resolve(u,{...r,keySeparator:!1});qa&&qa.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let kh=[];const ZT=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ZT&&ZT[0])for(let qa=0;qa<ZT.length;qa++)kh.push(ZT[qa]);else this.options.saveMissingTo==="all"?kh=this.languageUtils.toResolveHierarchy(r.lng||this.language):kh.push(r.lng||this.language);const aH=(qa,Ol,jh)=>{const oH=ct&&jh!==W?jh:Ps;this.options.missingKeyHandler?this.options.missingKeyHandler(qa,v,Ol,oH,au,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(qa,v,Ol,oH,au,r),this.emit("missingKey",qa,v,Ol,W)};this.options.saveMissing&&(this.options.saveMissingPlurals&&We?kh.forEach(qa=>{const Ol=this.pluralResolver.getSuffixes(qa,r);dr&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ol.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ol.push(`${this.options.pluralSeparator}zero`),Ol.forEach(jh=>{aH([qa],u+jh,r[`defaultValue${jh}`]||Sr)})}):aH(kh,u,Sr))}W=this.extendTranslation(W,t,r,L,n),ni&&W===u&&this.options.appendNamespaceToMissingKey&&(W=`${v}:${u}`),(ni||pi)&&this.options.parseMissingKeyHandler&&(W=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}:${u}`:u,pi?W:void 0))}return i?(L.res=W,L.usedParams=this.getUsedParamsDetails(r),L):W}extendTranslation(t,r,n,i,a){var u=this;if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const _=lr(t)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(_){const W=t.match(this.interpolator.nestingRegexp);h=W&&W.length}let L=n.replace&&!lr(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(L={...this.options.interpolation.defaultVariables,...L}),t=this.interpolator.interpolate(t,L,n.lng||this.language||i.usedLng,n),_){const W=t.match(this.interpolator.nestingRegexp),Te=W&&W.length;h<Te&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var W=arguments.length,Te=new Array(W),me=0;me<W;me++)Te[me]=arguments[me];return a?.[0]===Te[0]&&!n.context?(u.logger.warn(`It seems you are nesting recursively key: ${Te[0]} in key: ${r[0]}`),null):u.translate(...Te,r)},n)),n.interpolation&&this.interpolator.reset()}const c=n.postProcess||this.options.postProcess,v=lr(c)?[c]:c;return t!=null&&v?.length&&n.applyPostProcessor!==!1&&(t=D0.handle(v,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,a,u,c;return lr(t)&&(t=[t]),t.forEach(v=>{if(this.isValidLookup(n))return;const _=this.extractFromKey(v,r),h=_.key;i=h;let L=_.namespaces;this.options.fallbackNS&&(L=L.concat(this.options.fallbackNS));const W=r.count!==void 0&&!lr(r.count),Te=W&&!r.ordinal&&r.count===0,me=r.context!==void 0&&(lr(r.context)||typeof r.context=="number")&&r.context!=="",Oe=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);L.forEach(He=>{this.isValidLookup(n)||(c=He,!w0[`${Oe[0]}-${He}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(w0[`${Oe[0]}-${He}`]=!0,this.logger.warn(`key "${i}" for languages "${Oe.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Oe.forEach(qe=>{if(this.isValidLookup(n))return;u=qe;const We=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(We,h,qe,He,r);else{let yt;W&&(yt=this.pluralResolver.getSuffix(qe,r.count,r));const jt=`${this.options.pluralSeparator}zero`,dr=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(W&&(We.push(h+yt),r.ordinal&&yt.indexOf(dr)===0&&We.push(h+yt.replace(dr,this.options.pluralSeparator)),Te&&We.push(h+jt)),me){const Sr=`${h}${this.options.contextSeparator}${r.context}`;We.push(Sr),W&&(We.push(Sr+yt),r.ordinal&&yt.indexOf(dr)===0&&We.push(Sr+yt.replace(dr,this.options.pluralSeparator)),Te&&We.push(Sr+jt))}}let ct;for(;ct=We.pop();)this.isValidLookup(n)||(a=ct,n=this.getResource(qe,He,ct,r))}))})}),{res:n,usedKey:i,exactUsedKey:a,usedLng:u,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!lr(t.replace);let i=n?t.replace:t;if(n&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const a of r)delete i[a]}return i}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class x0{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ps.create("languageUtils")}getScriptPartFromCode(t){if(t=jv(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=jv(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(lr(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),lr(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],a=u=>{!u||(this.isSupportedCode(u)?i.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return lr(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):lr(t)&&a(this.formatLanguageCode(t)),n.forEach(u=>{i.indexOf(u)<0&&a(this.formatLanguageCode(u))}),i}}const F0={zero:0,one:1,two:2,few:3,many:4,other:5},$0={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class R3{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ps.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=jv(t==="dev"?"en":t),i=r.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let u;try{u=new Intl.PluralRules(n,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),$0;if(!t.match(/-|_/))return $0;const v=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(v,r)}return this.pluralRulesCache[a]=u,u}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(i=>`${r}${i}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((i,a)=>F0[i]-F0[a]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const V0=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=S3(e,t,r);return!a&&i&&lr(r)&&(a=gb(e,r,n),a===void 0&&(a=gb(t,r,n))),a},yb=e=>e.replace(/\$/g,"$$$$");class O3{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ps.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:a,prefixEscaped:u,suffix:c,suffixEscaped:v,formatSeparator:_,unescapeSuffix:h,unescapePrefix:L,nestingPrefix:W,nestingPrefixEscaped:Te,nestingSuffix:me,nestingSuffixEscaped:Oe,nestingOptionsSeparator:He,maxReplaces:qe,alwaysFormat:We}=t.interpolation;this.escape=r!==void 0?r:v3,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?kf(a):u||"{{",this.suffix=c?kf(c):v||"}}",this.formatSeparator=_||",",this.unescapePrefix=h?"":L||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=W?kf(W):Te||kf("$t("),this.nestingSuffix=me?kf(me):Oe||kf(")"),this.nestingOptionsSeparator=He||",",this.maxReplaces=qe||1e3,this.alwaysFormat=We!==void 0?We:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r?.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,i){let a,u,c;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},_=Te=>{if(Te.indexOf(this.formatSeparator)<0){const qe=V0(r,v,Te,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(qe,void 0,n,{...i,...r,interpolationkey:Te}):qe}const me=Te.split(this.formatSeparator),Oe=me.shift().trim(),He=me.join(this.formatSeparator).trim();return this.format(V0(r,v,Oe,this.options.keySeparator,this.options.ignoreJSONStructure),He,n,{...i,...r,interpolationkey:Oe})};this.resetRegExp();const h=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,L=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Te=>yb(Te)},{regex:this.regexp,safeValue:Te=>this.escapeValue?yb(this.escape(Te)):yb(Te)}].forEach(Te=>{for(c=0;a=Te.regex.exec(t);){const me=a[1].trim();if(u=_(me),u===void 0)if(typeof h=="function"){const He=h(t,a,i);u=lr(He)?He:""}else if(i&&Object.prototype.hasOwnProperty.call(i,me))u="";else if(L){u=a[0];continue}else this.logger.warn(`missed to pass in variable ${me} for interpolating ${t}`),u="";else!lr(u)&&!this.useRawValueToEscape&&(u=C0(u));const Oe=Te.safeValue(u);if(t=t.replace(a[0],Oe),L?(Te.regex.lastIndex+=u.length,Te.regex.lastIndex-=a[0].length):Te.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,u;const c=(v,_)=>{const h=this.nestingOptionsSeparator;if(v.indexOf(h)<0)return v;const L=v.split(new RegExp(`${h}[ ]*{`));let W=`{${L[1]}`;v=L[0],W=this.interpolate(W,u);const Te=W.match(/'/g),me=W.match(/"/g);((Te?.length??0)%2===0&&!me||me.length%2!==0)&&(W=W.replace(/'/g,'"'));try{u=JSON.parse(W),_&&(u={..._,...u})}catch(Oe){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,Oe),`${v}${h}${W}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,v};for(;i=this.nestingRegexp.exec(t);){let v=[];u={...n},u=u.replace&&!lr(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;let _=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const h=i[1].split(this.formatSeparator).map(L=>L.trim());i[1]=h.shift(),v=h,_=!0}if(a=r(c.call(this,i[1].trim(),u),u),a&&i[0]===t&&!lr(a))return a;lr(a)||(a=C0(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),_&&(a=v.reduce((h,L)=>this.format(h,L,n.lng,{...n,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const b3=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(u=>{if(u){const[c,...v]=u.split(":"),_=v.join(":").trim().replace(/^'+|'+$/g,""),h=c.trim();r[h]||(r[h]=_),_==="false"&&(r[h]=!1),_==="true"&&(r[h]=!0),isNaN(_)||(r[h]=parseInt(_,10))}})}return{formatName:t,formatOptions:r}},jf=e=>{const t={};return(r,n,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const u=n+JSON.stringify(a);let c=t[u];return c||(c=e(jv(n),i),t[u]=c),c(r)}};class C3{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ps.create("formatter"),this.options=t,this.formats={number:jf((r,n)=>{const i=new Intl.NumberFormat(r,{...n});return a=>i.format(a)}),currency:jf((r,n)=>{const i=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>i.format(a)}),datetime:jf((r,n)=>{const i=new Intl.DateTimeFormat(r,{...n});return a=>i.format(a)}),relativetime:jf((r,n)=>{const i=new Intl.RelativeTimeFormat(r,{...n});return a=>i.format(a,n.range||"day")}),list:jf((r,n)=>{const i=new Intl.ListFormat(r,{...n});return a=>i.format(a)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=jf(r)}format(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(c=>c.indexOf(")")>-1)){const c=a.findIndex(v=>v.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,v)=>{const{formatName:_,formatOptions:h}=b3(v);if(this.formats[_]){let L=c;try{const W=i?.formatParams?.[i.interpolationkey]||{},Te=W.locale||W.lng||i.locale||i.lng||n;L=this.formats[_](c,Te,{...h,...i,...W})}catch(W){this.logger.warn(W)}return L}else this.logger.warn(`there was no format function for ${_}`);return c},t)}}const P3=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class M3 extends Yv{constructor(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=ps.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(t,r,n,i){const a={},u={},c={},v={};return t.forEach(_=>{let h=!0;r.forEach(L=>{const W=`${_}|${L}`;!n.reload&&this.store.hasResourceBundle(_,L)?this.state[W]=2:this.state[W]<0||(this.state[W]===1?u[W]===void 0&&(u[W]=!0):(this.state[W]=1,h=!1,u[W]===void 0&&(u[W]=!0),a[W]===void 0&&(a[W]=!0),v[L]===void 0&&(v[L]=!0)))}),h||(c[_]=!0)}),(Object.keys(a).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(u),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(v)}}loaded(t,r,n){const i=t.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),!r&&n&&this.store.addResourceBundle(a,u,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const c={};this.queue.forEach(v=>{h3(v.loaded,[a],u),P3(v,t),r&&v.errors.push(r),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(_=>{c[_]||(c[_]={});const h=v.loaded[_];h.length&&h.forEach(L=>{c[_][L]===void 0&&(c[_][L]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(v=>!v.done)}read(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:i,wait:a,callback:u});return}this.readingCalls++;const c=(_,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const L=this.waitingReads.shift();this.read(L.lng,L.ns,L.fcName,L.tried,L.wait,L.callback)}if(_&&h&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,i+1,a*2,u)},a);return}u(_,h)},v=this.backend[n].bind(this.backend);if(v.length===2){try{const _=v(t,r);_&&typeof _.then=="function"?_.then(h=>c(null,h)).catch(c):c(null,_)}catch(_){c(_)}return}return v(t,r,c)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();lr(t)&&(t=this.languageUtils.toResolveHierarchy(t)),lr(r)&&(r=[r]);const a=this.queueLoad(t,r,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(u=>{this.loadOne(u)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,(u,c)=>{u&&this.logger.warn(`${r}loading namespace ${a} for language ${i} failed`,u),!u&&c&&this.logger.log(`${r}loaded namespace ${a} for language ${i}`,c),this.loaded(t,u,c)})}saveMissing(t,r,n,i,a){let u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){const v={...u,isUpdate:a},_=this.backend.create.bind(this.backend);if(_.length<6)try{let h;_.length===5?h=_(t,r,n,i,v):h=_(t,r,n,i),h&&typeof h.then=="function"?h.then(L=>c(null,L)).catch(c):c(null,h)}catch(h){c(h)}else _(t,r,n,i,c,v)}!t||!t[0]||this.store.addResource(t[0],r,n,i)}}}const G0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),lr(e[1])&&(t.defaultValue=e[1]),lr(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),B0=e=>(lr(e.ns)&&(e.ns=[e.ns]),lr(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),lr(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),Kv=()=>{},I3=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Dp extends Yv{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=B0(t),this.services={},this.logger=ps,this.modules={external:[]},I3(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),r.defaultNS==null&&r.ns&&(lr(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const i=G0();this.options={...i,...this.options,...B0(r)},this.options.interpolation={...i.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?ps.init(a(this.modules.logger),this.options):ps.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=C3;const L=new x0(this.options);this.store=new L0(this.options.resources,this.options);const W=this.services;W.logger=ps,W.resourceStore=this.store,W.languageUtils=L,W.pluralResolver=new R3(L,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(W.formatter=a(h),W.formatter.init(W,this.options),this.options.interpolation.format=W.formatter.format.bind(W.formatter)),W.interpolator=new O3(this.options),W.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},W.backendConnector=new M3(a(this.modules.backend),W.resourceStore,W,this.options),W.backendConnector.on("*",function(Te){for(var me=arguments.length,Oe=new Array(me>1?me-1:0),He=1;He<me;He++)Oe[He-1]=arguments[He];t.emit(Te,...Oe)}),this.modules.languageDetector&&(W.languageDetector=a(this.modules.languageDetector),W.languageDetector.init&&W.languageDetector.init(W,this.options.detection,this.options)),this.modules.i18nFormat&&(W.i18nFormat=a(this.modules.i18nFormat),W.i18nFormat.init&&W.i18nFormat.init(this)),this.translator=new qv(this.services,this.options),this.translator.on("*",function(Te){for(var me=arguments.length,Oe=new Array(me>1?me-1:0),He=1;He<me;He++)Oe[He-1]=arguments[He];t.emit(Te,...Oe)}),this.modules.external.forEach(Te=>{Te.init&&Te.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Kv),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const v=Np(),_=()=>{const h=(L,W)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(W),n(L,W)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?_():setTimeout(_,0),v}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kv;const i=lr(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],u=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(_=>{_!=="cimode"&&a.indexOf(_)<0&&a.push(_)})};i?u(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>u(v)),this.options.preload?.forEach?.(c=>u(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(t,r,n){const i=Np();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Kv),this.services.backendConnector.reload(t,r,a=>{i.resolve(),n(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&D0.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const i=Np();this.emit("languageChanging",t);const a=v=>{this.language=v,this.languages=this.services.languageUtils.toResolveHierarchy(v),this.resolvedLanguage=void 0,this.setResolvedLanguage(v)},u=(v,_)=>{_?(a(_),this.translator.changeLanguage(_),this.isLanguageChangingTo=void 0,this.emit("languageChanged",_),this.logger.log("languageChanged",_)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),r&&r(v,function(){return n.t(...arguments)})},c=v=>{!t&&!v&&this.services.languageDetector&&(v=[]);const _=lr(v)?v:this.services.languageUtils.getBestMatchFromCodes(v);_&&(this.language||a(_),this.translator.language||this.translator.changeLanguage(_),this.services.languageDetector?.cacheUserLanguage?.(_)),this.loadResources(_,h=>{u(h,_)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),i}getFixedT(t,r,n){var i=this;const a=function(u,c){let v;if(typeof c!="object"){for(var _=arguments.length,h=new Array(_>2?_-2:0),L=2;L<_;L++)h[L-2]=arguments[L];v=i.options.overloadTranslationOptionHandler([u,c].concat(h))}else v={...c};v.lng=v.lng||a.lng,v.lngs=v.lngs||a.lngs,v.ns=v.ns||a.ns,v.keyPrefix!==""&&(v.keyPrefix=v.keyPrefix||n||a.keyPrefix);const W=i.options.keySeparator||".";let Te;return v.keyPrefix&&Array.isArray(u)?Te=u.map(me=>`${v.keyPrefix}${W}${me}`):Te=v.keyPrefix?`${v.keyPrefix}${W}${u}`:u,i.t(Te,v)};return lr(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.translator?.translate(...r)}exists(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.translator?.exists(...r)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const u=(c,v)=>{const _=this.services.backendConnector.state[`${c}|${v}`];return _===-1||_===0||_===2};if(r.precheck){const c=r.precheck(this,u);if(c!==void 0)return c}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(n,t)&&(!i||u(a,t)))}loadNamespaces(t,r){const n=Np();return this.options.ns?(lr(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Np();lr(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(u=>i.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return a.length?(this.options.preload=i.concat(a),this.loadResources(u=>{n.resolve(),r&&r(u)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services?.languageUtils||new x0(G0());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Dp(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kv;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new Dp(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n){const c=Object.keys(this.store.data).reduce((v,_)=>(v[_]={...this.store.data[_]},Object.keys(v[_]).reduce((h,L)=>(h[L]={...v[_][L]},h),{})),{});a.store=new L0(c,i),a.services.resourceStore=a.store}return a.translator=new qv(a.services,i),a.translator.on("*",function(c){for(var v=arguments.length,_=new Array(v>1?v-1:0),h=1;h<v;h++)_[h-1]=arguments[h];a.emit(c,..._)}),a.init(i,r),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ea=Dp.createInstance();ea.createInstance=Dp.createInstance;const UIe=ea.createInstance,xIe=ea.dir,FIe=ea.init,$Ie=ea.loadResources,VIe=ea.reloadResources,GIe=ea.use,BIe=ea.changeLanguage,kIe=ea.getFixedT,jIe=ea.t,HIe=ea.exists,YIe=ea.setDefaultNamespace,qIe=ea.hasLoadedNamespace,KIe=ea.loadNamespaces,WIe=ea.loadLanguages;var k0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wo=function(e){try{return!!e()}catch{return!0}},N3=wo,j0=!N3(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),H0=j0,Y0=Function.prototype,L3=Y0.bind,Rb=Y0.call,D3=H0&&L3.bind(Rb,Rb),Uo=H0?function(e){return e&&D3(e)}:function(e){return e&&function(){return Rb.apply(e,arguments)}},q0=Uo,w3=q0({}.toString),U3=q0("".slice),x3=function(e){return U3(w3(e),8,-1)},F3=Uo,$3=wo,V3=x3,Ob=Object,G3=F3("".split),K0=$3(function(){return!Ob("z").propertyIsEnumerable(0)})?function(e){return V3(e)=="String"?G3(e,""):Ob(e)}:Ob,B3=TypeError,W0=function(e){if(e==null)throw B3("Can't call method on "+e);return e},k3=K0,j3=W0,wp=function(e){return k3(j3(e))},Wv=function(e){return e&&e.Math==Math&&e},hs=Wv(typeof globalThis=="object"&&globalThis)||Wv(typeof window=="object"&&window)||Wv(typeof self=="object"&&self)||Wv(typeof k0=="object"&&k0)||function(){return this}()||Function("return this")(),bb={exports:{}},Q0=hs,H3=Object.defineProperty,Cb=function(e,t){try{H3(Q0,e,{value:t,configurable:!0,writable:!0})}catch{Q0[e]=t}return t},Y3=hs,q3=Cb,z0="__core-js_shared__",K3=Y3[z0]||q3(z0,{}),Pb=K3,X0=Pb;(bb.exports=function(e,t){return X0[e]||(X0[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var W3=W0,Q3=Object,Mb=function(e){return Q3(W3(e))},z3=Uo,X3=Mb,J3=z3({}.hasOwnProperty),Ys=Object.hasOwn||function(t,r){return J3(X3(t),r)},Z3=Uo,ez=0,tz=Math.random(),rz=Z3(1 .toString),J0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rz(++ez+tz,36)},Ca=function(e){return typeof e=="function"},Ib=hs,nz=Ca,iz=function(e){return nz(e)?e:void 0},Qv=function(e,t){return arguments.length<2?iz(Ib[e]):Ib[e]&&Ib[e][t]},az=Qv,oz=az("navigator","userAgent")||"",Z0=hs,Nb=oz,eD=Z0.process,tD=Z0.Deno,rD=eD&&eD.versions||tD&&tD.version,nD=rD&&rD.v8,xo,zv;nD&&(xo=nD.split("."),zv=xo[0]>0&&xo[0]<4?1:+(xo[0]+xo[1])),!zv&&Nb&&(xo=Nb.match(/Edge\/(\d+)/),(!xo||xo[1]>=74)&&(xo=Nb.match(/Chrome\/(\d+)/),xo&&(zv=+xo[1])));var sz=zv,iD=sz,uz=wo,aD=!!Object.getOwnPropertySymbols&&!uz(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&iD&&iD<41}),cz=aD,oD=cz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lz=hs,fz=bb.exports,sD=Ys,_z=J0,uD=aD,cD=oD,Hf=fz("wks"),Kc=lz.Symbol,lD=Kc&&Kc.for,dz=cD?Kc:Kc&&Kc.withoutSetter||_z,Yf=function(e){if(!sD(Hf,e)||!(uD||typeof Hf[e]=="string")){var t="Symbol."+e;uD&&sD(Kc,e)?Hf[e]=Kc[e]:cD&&lD?Hf[e]=lD(t):Hf[e]=dz(t)}return Hf[e]},pz=Ca,Up=function(e){return typeof e=="object"?e!==null:pz(e)},hz=Up,Sz=String,Ez=TypeError,xp=function(e){if(hz(e))return e;throw Ez(Sz(e)+" is not an object")},fD={},vz=wo,Ss=!vz(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mz=Ss,Tz=wo,_D=mz&&Tz(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),Lu={},Az=hs,dD=Up,Lb=Az.document,gz=dD(Lb)&&dD(Lb.createElement),Db=function(e){return gz?Lb.createElement(e):{}},yz=Ss,Rz=wo,Oz=Db,pD=!yz&&!Rz(function(){return Object.defineProperty(Oz("div"),"a",{get:function(){return 7}}).a!=7}),bz=j0,Xv=Function.prototype.call,Fp=bz?Xv.bind(Xv):function(){return Xv.apply(Xv,arguments)},Cz=Uo,Pz=Cz({}.isPrototypeOf),Mz=Qv,Iz=Ca,Nz=Pz,Lz=oD,Dz=Object,hD=Lz?function(e){return typeof e=="symbol"}:function(e){var t=Mz("Symbol");return Iz(t)&&Nz(t.prototype,Dz(e))},wz=String,Uz=function(e){try{return wz(e)}catch{return"Object"}},xz=Ca,Fz=Uz,$z=TypeError,Vz=function(e){if(xz(e))return e;throw $z(Fz(e)+" is not a function")},Gz=Vz,Bz=function(e,t){var r=e[t];return r==null?void 0:Gz(r)},wb=Fp,Ub=Ca,xb=Up,kz=TypeError,jz=function(e,t){var r,n;if(t==="string"&&Ub(r=e.toString)&&!xb(n=wb(r,e))||Ub(r=e.valueOf)&&!xb(n=wb(r,e))||t!=="string"&&Ub(r=e.toString)&&!xb(n=wb(r,e)))return n;throw kz("Can't convert object to primitive value")},Hz=Fp,SD=Up,ED=hD,Yz=Bz,qz=jz,Kz=Yf,Wz=TypeError,Qz=Kz("toPrimitive"),zz=function(e,t){if(!SD(e)||ED(e))return e;var r=Yz(e,Qz),n;if(r){if(t===void 0&&(t="default"),n=Hz(r,e,t),!SD(n)||ED(n))return n;throw Wz("Can't convert object to primitive value")}return t===void 0&&(t="number"),qz(e,t)},Xz=zz,Jz=hD,vD=function(e){var t=Xz(e,"string");return Jz(t)?t:t+""},Zz=Ss,e4=pD,t4=_D,Jv=xp,mD=vD,r4=TypeError,Fb=Object.defineProperty,n4=Object.getOwnPropertyDescriptor,$b="enumerable",Vb="configurable",Gb="writable";Lu.f=Zz?t4?function(t,r,n){if(Jv(t),r=mD(r),Jv(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Gb in n&&!n[Gb]){var i=n4(t,r);i&&i[Gb]&&(t[r]=n.value,n={configurable:Vb in n?n[Vb]:i[Vb],enumerable:$b in n?n[$b]:i[$b],writable:!1})}return Fb(t,r,n)}:Fb:function(t,r,n){if(Jv(t),r=mD(r),Jv(n),e4)try{return Fb(t,r,n)}catch{}if("get"in n||"set"in n)throw r4("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var i4=Math.ceil,a4=Math.floor,o4=Math.trunc||function(t){var r=+t;return(r>0?a4:i4)(r)},s4=o4,TD=function(e){var t=+e;return t!==t||t===0?0:s4(t)},u4=TD,c4=Math.max,l4=Math.min,f4=function(e,t){var r=u4(e);return r<0?c4(r+t,0):l4(r,t)},_4=TD,d4=Math.min,p4=function(e){return e>0?d4(_4(e),9007199254740991):0},h4=p4,S4=function(e){return h4(e.length)},E4=wp,v4=f4,m4=S4,AD=function(e){return function(t,r,n){var i=E4(t),a=m4(i),u=v4(n,a),c;if(e&&r!=r){for(;a>u;)if(c=i[u++],c!=c)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},T4={includes:AD(!0),indexOf:AD(!1)},Bb={},A4=Uo,kb=Ys,g4=wp,y4=T4.indexOf,R4=Bb,gD=A4([].push),yD=function(e,t){var r=g4(e),n=0,i=[],a;for(a in r)!kb(R4,a)&&kb(r,a)&&gD(i,a);for(;t.length>n;)kb(r,a=t[n++])&&(~y4(i,a)||gD(i,a));return i},jb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],O4=yD,b4=jb,RD=Object.keys||function(t){return O4(t,b4)},C4=Ss,P4=_D,M4=Lu,I4=xp,N4=wp,L4=RD;fD.f=C4&&!P4?Object.defineProperties:function(t,r){I4(t);for(var n=N4(r),i=L4(r),a=i.length,u=0,c;a>u;)M4.f(t,c=i[u++],n[c]);return t};var D4=Qv,w4=D4("document","documentElement"),U4=bb.exports,x4=J0,OD=U4("keys"),Hb=function(e){return OD[e]||(OD[e]=x4(e))},F4=xp,$4=fD,bD=jb,V4=Bb,G4=w4,B4=Db,k4=Hb,CD=">",PD="<",Yb="prototype",qb="script",MD=k4("IE_PROTO"),Kb=function(){},ID=function(e){return PD+qb+CD+e+PD+"/"+qb+CD},ND=function(e){e.write(ID("")),e.close();var t=e.parentWindow.Object;return e=null,t},j4=function(){var e=B4("iframe"),t="java"+qb+":",r;return e.style.display="none",G4.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(ID("document.F=Object")),r.close(),r.F},Zv,em=function(){try{Zv=new ActiveXObject("htmlfile")}catch{}em=typeof document<"u"?document.domain&&Zv?ND(Zv):j4():ND(Zv);for(var e=bD.length;e--;)delete em[Yb][bD[e]];return em()};V4[MD]=!0;var LD=Object.create||function(t,r){var n;return t!==null?(Kb[Yb]=F4(t),n=new Kb,Kb[Yb]=null,n[MD]=t):n=em(),r===void 0?n:$4.f(n,r)},H4=Yf,Y4=LD,q4=Lu.f,Wb=H4("unscopables"),Qb=Array.prototype;Qb[Wb]==null&&q4(Qb,Wb,{configurable:!0,value:Y4(null)});var K4=function(e){Qb[Wb][e]=!0},zb={},W4=Uo,Q4=Ca,Xb=Pb,z4=W4(Function.toString);Q4(Xb.inspectSource)||(Xb.inspectSource=function(e){return z4(e)});var DD=Xb.inspectSource,X4=hs,J4=Ca,Z4=DD,wD=X4.WeakMap,e6=J4(wD)&&/native code/.test(Z4(wD)),Jb=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},t6=Ss,r6=Lu,n6=Jb,tm=t6?function(e,t,r){return r6.f(e,t,n6(1,r))}:function(e,t,r){return e[t]=r,e},i6=e6,UD=hs,Zb=Uo,a6=Up,o6=tm,eC=Ys,tC=Pb,s6=Hb,u6=Bb,xD="Object already initialized",rC=UD.TypeError,c6=UD.WeakMap,rm,$p,nm,l6=function(e){return nm(e)?$p(e):rm(e,{})},f6=function(e){return function(t){var r;if(!a6(t)||(r=$p(t)).type!==e)throw rC("Incompatible receiver, "+e+" required");return r}};if(i6||tC.state){var Wc=tC.state||(tC.state=new c6),_6=Zb(Wc.get),FD=Zb(Wc.has),d6=Zb(Wc.set);rm=function(e,t){if(FD(Wc,e))throw new rC(xD);return t.facade=e,d6(Wc,e,t),t},$p=function(e){return _6(Wc,e)||{}},nm=function(e){return FD(Wc,e)}}else{var qf=s6("state");u6[qf]=!0,rm=function(e,t){if(eC(e,qf))throw new rC(xD);return t.facade=e,o6(e,qf,t),t},$p=function(e){return eC(e,qf)?e[qf]:{}},nm=function(e){return eC(e,qf)}}var $D={set:rm,get:$p,has:nm,enforce:l6,getterFor:f6},nC={},iC={},VD={}.propertyIsEnumerable,GD=Object.getOwnPropertyDescriptor,p6=GD&&!VD.call({1:2},1);iC.f=p6?function(t){var r=GD(this,t);return!!r&&r.enumerable}:VD;var h6=Ss,S6=Fp,E6=iC,v6=Jb,m6=wp,T6=vD,A6=Ys,g6=pD,BD=Object.getOwnPropertyDescriptor;nC.f=h6?BD:function(t,r){if(t=m6(t),r=T6(r),g6)try{return BD(t,r)}catch{}if(A6(t,r))return v6(!S6(E6.f,t,r),t[r])};var kD={exports:{}},aC=Ss,y6=Ys,jD=Function.prototype,R6=aC&&Object.getOwnPropertyDescriptor,oC=y6(jD,"name"),O6=oC&&function(){}.name==="something",b6=oC&&(!aC||aC&&R6(jD,"name").configurable),HD={EXISTS:oC,PROPER:O6,CONFIGURABLE:b6},C6=wo,P6=Ca,im=Ys,sC=Ss,M6=HD.CONFIGURABLE,I6=DD,YD=$D,N6=YD.enforce,L6=YD.get,am=Object.defineProperty,D6=sC&&!C6(function(){return am(function(){},"length",{value:8}).length!==8}),w6=String(String).split("String"),U6=kD.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!im(e,"name")||M6&&e.name!==t)&&(sC?am(e,"name",{value:t,configurable:!0}):e.name=t),D6&&r&&im(r,"arity")&&e.length!==r.arity&&am(e,"length",{value:r.arity});try{r&&im(r,"constructor")&&r.constructor?sC&&am(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=N6(e);return im(n,"source")||(n.source=w6.join(typeof t=="string"?t:"")),e};Function.prototype.toString=U6(function(){return P6(this)&&L6(this).source||I6(this)},"toString");var x6=Ca,F6=Lu,$6=kD.exports,V6=Cb,uC=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(x6(r)&&$6(r,a,n),n.global)i?e[t]=r:V6(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:F6.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},qD={},G6=yD,B6=jb,k6=B6.concat("length","prototype");qD.f=Object.getOwnPropertyNames||function(t){return G6(t,k6)};var cC={};cC.f=Object.getOwnPropertySymbols;var j6=Qv,H6=Uo,Y6=qD,q6=cC,K6=xp,W6=H6([].concat),Q6=j6("Reflect","ownKeys")||function(t){var r=Y6.f(K6(t)),n=q6.f;return n?W6(r,n(t)):r},KD=Ys,z6=Q6,X6=nC,J6=Lu,Z6=function(e,t,r){for(var n=z6(t),i=J6.f,a=X6.f,u=0;u<n.length;u++){var c=n[u];!KD(e,c)&&!(r&&KD(r,c))&&i(e,c,a(t,c))}},eX=wo,tX=Ca,rX=/#|\.prototype\./,Vp=function(e,t){var r=iX[nX(e)];return r==oX?!0:r==aX?!1:tX(t)?eX(t):!!t},nX=Vp.normalize=function(e){return String(e).replace(rX,".").toLowerCase()},iX=Vp.data={},aX=Vp.NATIVE="N",oX=Vp.POLYFILL="P",sX=Vp,lC=hs,uX=nC.f,cX=tm,lX=uC,fX=Cb,_X=Z6,dX=sX,WD=function(e,t){var r=e.target,n=e.global,i=e.stat,a,u,c,v,_,h;if(n?u=lC:i?u=lC[r]||fX(r,{}):u=(lC[r]||{}).prototype,u)for(c in t){if(_=t[c],e.dontCallGetSet?(h=uX(u,c),v=h&&h.value):v=u[c],a=dX(n?c:r+(i?".":"#")+c,e.forced),!a&&v!==void 0){if(typeof _==typeof v)continue;_X(_,v)}(e.sham||v&&v.sham)&&cX(_,"sham",!0),lX(u,c,_,e)}},pX=wo,hX=!pX(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SX=Ys,EX=Ca,vX=Mb,mX=Hb,TX=hX,QD=mX("IE_PROTO"),fC=Object,AX=fC.prototype,zD=TX?fC.getPrototypeOf:function(e){var t=vX(e);if(SX(t,QD))return t[QD];var r=t.constructor;return EX(r)&&t instanceof r?r.prototype:t instanceof fC?AX:null},gX=wo,yX=Ca,XD=zD,RX=uC,OX=Yf,_C=OX("iterator"),JD=!1,Qc,dC,pC;[].keys&&(pC=[].keys(),"next"in pC?(dC=XD(XD(pC)),dC!==Object.prototype&&(Qc=dC)):JD=!0);var bX=Qc==null||gX(function(){var e={};return Qc[_C].call(e)!==e});bX&&(Qc={}),yX(Qc[_C])||RX(Qc,_C,function(){return this});var ZD={IteratorPrototype:Qc,BUGGY_SAFARI_ITERATORS:JD},CX=Lu.f,PX=Ys,MX=Yf,ew=MX("toStringTag"),tw=function(e,t,r){e&&!r&&(e=e.prototype),e&&!PX(e,ew)&&CX(e,ew,{configurable:!0,value:t})},IX=ZD.IteratorPrototype,NX=LD,LX=Jb,DX=tw,wX=zb,UX=function(){return this},xX=function(e,t,r,n){var i=t+" Iterator";return e.prototype=NX(IX,{next:LX(+!n,r)}),DX(e,i,!1),wX[i]=UX,e},FX=Ca,$X=String,VX=TypeError,GX=function(e){if(typeof e=="object"||FX(e))return e;throw VX("Can't set "+$X(e)+" as a prototype")},BX=Uo,kX=xp,jX=GX,HX=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=BX(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,a){return kX(i),jX(a),e?r(i,a):i.__proto__=a,i}}():void 0),YX=WD,qX=Fp,rw=HD,KX=Ca,WX=xX,nw=zD,iw=HX,QX=tw,zX=tm,hC=uC,XX=Yf,JX=zb,aw=ZD,ZX=rw.PROPER,e5=rw.CONFIGURABLE,ow=aw.IteratorPrototype,om=aw.BUGGY_SAFARI_ITERATORS,Gp=XX("iterator"),sw="keys",Bp="values",uw="entries",t5=function(){return this},r5=function(e,t,r,n,i,a,u){WX(r,t,n);var c=function(qe){if(qe===i&&W)return W;if(!om&&qe in h)return h[qe];switch(qe){case sw:return function(){return new r(this,qe)};case Bp:return function(){return new r(this,qe)};case uw:return function(){return new r(this,qe)}}return function(){return new r(this)}},v=t+" Iterator",_=!1,h=e.prototype,L=h[Gp]||h["@@iterator"]||i&&h[i],W=!om&&L||c(i),Te=t=="Array"&&h.entries||L,me,Oe,He;if(Te&&(me=nw(Te.call(new e)),me!==Object.prototype&&me.next&&(nw(me)!==ow&&(iw?iw(me,ow):KX(me[Gp])||hC(me,Gp,t5)),QX(me,v,!0))),ZX&&i==Bp&&L&&L.name!==Bp&&(e5?zX(h,"name",Bp):(_=!0,W=function(){return qX(L,this)})),i)if(Oe={values:c(Bp),keys:a?W:c(sw),entries:c(uw)},u)for(He in Oe)(om||_||!(He in h))&&hC(h,He,Oe[He]);else YX({target:t,proto:!0,forced:om||_},Oe);return h[Gp]!==W&&hC(h,Gp,W,{name:i}),JX[t]=W,Oe},n5=wp,SC=K4,cw=zb,lw=$D,i5=Lu.f,a5=r5,o5=Ss,fw="Array Iterator",s5=lw.set,u5=lw.getterFor(fw),c5=a5(Array,"Array",function(e,t){s5(this,{type:fw,target:n5(e),index:0,kind:t})},function(){var e=u5(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),_w=cw.Arguments=cw.Array;if(SC("keys"),SC("values"),SC("entries"),o5&&_w.name!=="values")try{i5(_w,"name",{value:"values"})}catch{}var l5={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},f5=Db,EC=f5("span").classList,dw=EC&&EC.constructor&&EC.constructor.prototype,_5=dw===Object.prototype?void 0:dw,pw=hs,hw=l5,d5=_5,kp=c5,vC=tm,Sw=Yf,mC=Sw("iterator"),Ew=Sw("toStringTag"),TC=kp.values,vw=function(e,t){if(e){if(e[mC]!==TC)try{vC(e,mC,TC)}catch{e[mC]=TC}if(e[Ew]||vC(e,Ew,t),hw[t]){for(var r in kp)if(e[r]!==kp[r])try{vC(e,r,kp[r])}catch{e[r]=kp[r]}}}};for(var AC in hw)vw(pw[AC]&&pw[AC].prototype,AC);vw(d5,"DOMTokenList");var mw=Ss,p5=Uo,h5=Fp,S5=wo,gC=RD,E5=cC,v5=iC,m5=Mb,T5=K0,Kf=Object.assign,Tw=Object.defineProperty,A5=p5([].concat),g5=!Kf||S5(function(){if(mw&&Kf({b:1},Kf(Tw({},"a",{enumerable:!0,get:function(){Tw(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Kf({},e)[r]!=7||gC(Kf({},t)).join("")!=n})?function(t,r){for(var n=m5(t),i=arguments.length,a=1,u=E5.f,c=v5.f;i>a;)for(var v=T5(arguments[a++]),_=u?A5(gC(v),u(v)):gC(v),h=_.length,L=0,W;h>L;)W=_[L++],(!mw||h5(c,v,W))&&(n[W]=v[W]);return n}:Kf,y5=WD,Aw=g5;y5({target:"Object",stat:!0,arity:2,forced:Object.assign!==Aw},{assign:Aw});function sm(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})}function Jr(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Du(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}const yC=null,QIe=({children:e,i18n:t})=>jsx(yC.Provider,Object.assign({value:t},{children:e})),zIe=()=>{const e=useContext(yC);if(e===void 0)throw new Error("useTranslation must be used within an I18nProvider");return e.t},R5=e=>{const[t,r]=useState(!e.isLoaded),[n,i]=useState();return useEffect(()=>{e.isLoaded||sm(void 0,void 0,void 0,function*(){try{yield e.load()}catch(a){i(a)}finally{r(!1)}})},[]),{loading:t,error:n}},XIe=e=>{const t=O5(),r=useMemo(()=>t.child(e),[]),{loading:n,error:i}=R5(r);return{loading:n,error:i,i18n:r}},O5=()=>{const e=useContext(yC);if(e===void 0)throw new Error("I18n instance hooks must be used within an I18nProvider");return e};var Ue=p(4370);let um=e=>e,gw,yw,Rw,Ow;const b5=(0,Ue.Ay)(gw||(gw=um`
102
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),yt.warnIfExceeded()),ct}}}}function Na(e){return typeof e=="boolean"}function Eo(){return function(t){return Ns(t)}}function Ns(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,u=a===void 0?!0:a,c=new Ms;if(r&&(Na(r)?c.push(ut):c.push(ut.withExtraArgument(r.extraArgument))),!1)var v,_;return c}var Ls=!0;function ou(e){var t=Eo(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,u=a===void 0?t():a,c=r.devTools,v=c===void 0?!0:c,_=r.preloadedState,h=_===void 0?void 0:_,L=r.enhancers,W=L===void 0?void 0:L,Te;if(typeof i=="function")Te=i;else if(Rn(i))Te=ve(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var me=u;if(typeof me=="function"&&(me=me(t),!Ls&&!Array.isArray(me)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ls&&me.some(function(ct){return typeof ct!="function"}))throw new Error("each middleware provided to configureStore must be a function");var Oe=Tt.apply(void 0,me),He=at;v&&(He=Pi(Br({trace:!Ls},typeof v=="object"&&v)));var qe=[Oe];Array.isArray(W)?qe=Nt([Oe],W):typeof W=="function"&&(qe=W(qe));var We=He.apply(void 0,qe);return Re(Te,h,We)}function ra(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Br(Br({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function on(e){return Rn(e)&&typeof e.type=="string"&&Object.keys(e).every(qr)}function qr(e){return["type","payload","error","meta"].indexOf(e)>-1}function su(e){return""+e}function ge(e){var t={},r=[],n,i={addCase:function(a,u){var c=typeof a=="string"?a:a.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=u,i},addMatcher:function(a,u){return r.push({matcher:a,reducer:u}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function ke(e){return typeof e=="function"}var Ze=!1;function Dt(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?ge(t):[t,r,n],a=i[0],u=i[1],c=i[2],v;if(ke(e))v=function(){return qo(e())};else{var _=qo(e);v=function(){return _}}function h(L,W){L===void 0&&(L=v());var Te=Nt([a[W.type]],u.filter(function(me){var Oe=me.matcher;return Oe(W)}).map(function(me){var Oe=me.reducer;return Oe}));return Te.filter(function(me){return!!me}).length===0&&(Te=[c]),Te.reduce(function(me,Oe){if(Oe)if(Pe(me)){var He=me,qe=Oe(He,W);return qe===void 0?me:qe}else{if(Me(me))return Be(me,function(We){return Oe(We,W)});var qe=Oe(me,W);if(qe===void 0){if(me===null)return me;throw Error("A case reducer on a non-draftable value must not return undefined")}return qe}return me},L)}return h.getInitialState=v,h}var Or=!1;function Cr(e,t){return e+"/"+t}function Kr(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:qo(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},u={},c={};i.forEach(function(h){var L=n[h],W=Cr(t,h),Te,me;"reducer"in L?(Te=L.reducer,me=L.prepare):Te=L,a[h]=Te,u[W]=Te,c[h]=me?ra(W,me):ra(W)});function v(){var h=typeof e.extraReducers=="function"?ge(e.extraReducers):[e.extraReducers],L=h[0],W=L===void 0?{}:L,Te=h[1],me=Te===void 0?[]:Te,Oe=h[2],He=Oe===void 0?void 0:Oe,qe=Br(Br({},W),u);return Dt(r,function(We){for(var ct in qe)We.addCase(ct,qe[ct]);for(var yt=0,jt=me;yt<jt.length;yt++){var dr=jt[yt];We.addMatcher(dr.matcher,dr.reducer)}He&&We.addDefaultCase(He)})}var _;return{name:t,reducer:function(h,L){return _||(_=v()),_(h,L)},actions:c,caseReducers:a,getInitialState:function(){return _||(_=v()),_.getInitialState()}}}function Gt(){return{ids:[],entities:{}}}function sn(){function e(t){return t===void 0&&(t={}),Object.assign(Gt(),t)}return{getInitialState:e}}function Kn(){function e(t){var r=function(_){return _.ids},n=function(_){return _.entities},i=Ci(r,n,function(_,h){return _.map(function(L){return h[L]})}),a=function(_,h){return h},u=function(_,h){return _[h]},c=Ci(r,function(_){return _.length});if(!t)return{selectIds:r,selectEntities:n,selectAll:i,selectTotal:c,selectById:Ci(n,a,u)};var v=Ci(t,n);return{selectIds:Ci(t,r),selectEntities:v,selectAll:Ci(t,i),selectTotal:Ci(t,c),selectById:Ci(v,a,u)}}return{getSelectors:e}}function ai(e){var t=Wr(function(r,n){return e(n)});return function(n){return t(n,void 0)}}function Wr(e){return function(r,n){function i(u){return on(u)}var a=function(u){i(n)?e(n.payload,u):e(n,u)};return isDraft3(r)?(a(r),r):createNextState3(r,a)}}function Gn(e,t){var r=t(e);return r}function Ui(e){return Array.isArray(e)||(e=Object.values(e)),e}function Wa(e,t,r){e=Ui(e);for(var n=[],i=[],a=0,u=e;a<u.length;a++){var c=u[a],v=Gn(c,t);v in r.entities?i.push({id:v,changes:c}):n.push(c)}return[n,i]}function uu(e){function t(me,Oe){var He=Gn(me,e);He in Oe.entities||(Oe.ids.push(He),Oe.entities[He]=me)}function r(me,Oe){me=Ui(me);for(var He=0,qe=me;He<qe.length;He++){var We=qe[He];t(We,Oe)}}function n(me,Oe){var He=Gn(me,e);He in Oe.entities||Oe.ids.push(He),Oe.entities[He]=me}function i(me,Oe){me=Ui(me);for(var He=0,qe=me;He<qe.length;He++){var We=qe[He];n(We,Oe)}}function a(me,Oe){me=Ui(me),Oe.ids=[],Oe.entities={},r(me,Oe)}function u(me,Oe){return c([me],Oe)}function c(me,Oe){var He=!1;me.forEach(function(qe){qe in Oe.entities&&(delete Oe.entities[qe],He=!0)}),He&&(Oe.ids=Oe.ids.filter(function(qe){return qe in Oe.entities}))}function v(me){Object.assign(me,{ids:[],entities:{}})}function _(me,Oe,He){var qe=He.entities[Oe.id],We=Object.assign({},qe,Oe.changes),ct=Gn(We,e),yt=ct!==Oe.id;return yt&&(me[Oe.id]=ct,delete He.entities[Oe.id]),He.entities[ct]=We,yt}function h(me,Oe){return L([me],Oe)}function L(me,Oe){var He={},qe={};me.forEach(function(yt){yt.id in Oe.entities&&(qe[yt.id]={id:yt.id,changes:Br(Br({},qe[yt.id]?qe[yt.id].changes:null),yt.changes)})}),me=Object.values(qe);var We=me.length>0;if(We){var ct=me.filter(function(yt){return _(He,yt,Oe)}).length>0;ct&&(Oe.ids=Object.keys(Oe.entities))}}function W(me,Oe){return Te([me],Oe)}function Te(me,Oe){var He=Wa(me,e,Oe),qe=He[0],We=He[1];L(We,Oe),r(qe,Oe)}return{removeAll:ai(v),addOne:Wr(t),addMany:Wr(r),setOne:Wr(n),setMany:Wr(i),setAll:Wr(a),updateOne:Wr(h),updateMany:Wr(L),upsertOne:Wr(W),upsertMany:Wr(Te),removeOne:Wr(u),removeMany:Wr(c)}}function cu(e,t){var r=uu(e),n=r.removeOne,i=r.removeMany,a=r.removeAll;function u(We,ct){return c([We],ct)}function c(We,ct){We=Ui(We);var yt=We.filter(function(jt){return!(Gn(jt,e)in ct.entities)});yt.length!==0&&He(yt,ct)}function v(We,ct){return _([We],ct)}function _(We,ct){We=Ui(We),We.length!==0&&He(We,ct)}function h(We,ct){We=Ui(We),ct.entities={},ct.ids=[],c(We,ct)}function L(We,ct){return W([We],ct)}function W(We,ct){for(var yt=!1,jt=0,dr=We;jt<dr.length;jt++){var Sr=dr[jt],an=ct.entities[Sr.id];if(!!an){yt=!0,Object.assign(an,Sr.changes);var Ia=e(an);Sr.id!==Ia&&(delete ct.entities[Sr.id],ct.entities[Ia]=an)}}yt&&qe(ct)}function Te(We,ct){return me([We],ct)}function me(We,ct){var yt=Wa(We,e,ct),jt=yt[0],dr=yt[1];W(dr,ct),c(jt,ct)}function Oe(We,ct){if(We.length!==ct.length)return!1;for(var yt=0;yt<We.length&&yt<ct.length;yt++)if(We[yt]!==ct[yt])return!1;return!0}function He(We,ct){We.forEach(function(yt){ct.entities[e(yt)]=yt}),qe(ct)}function qe(We){var ct=Object.values(We.entities);ct.sort(t);var yt=ct.map(e),jt=We.ids;Oe(jt,yt)||(We.ids=yt)}return{removeOne:n,removeMany:i,removeAll:a,addOne:Wr(u),updateOne:Wr(L),upsertOne:Wr(Te),setOne:Wr(v),setMany:Wr(_),setAll:Wr(h),addMany:Wr(c),updateMany:Wr(W),upsertMany:Wr(me)}}function j_(e){e===void 0&&(e={});var t=Br({sortComparer:!1,selectId:function(c){return c.id}},e),r=t.selectId,n=t.sortComparer,i=sn(),a=Kn(),u=n?cu(r,n):uu(r);return Br(Br(Br({selectId:r,sortComparer:n},i),a),u)}var rc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Si=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=rc[Math.random()*64|0];return t},nc=["name","message","stack","code"],oi=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ic=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ac=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=nc;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},vo=function(){function e(t,r,n){var i=ra(t+"/fulfilled",function(h,L,W,Te){return{payload:h,meta:bi(Br({},Te||{}),{arg:W,requestId:L,requestStatus:"fulfilled"})}}),a=ra(t+"/pending",function(h,L,W){return{payload:void 0,meta:bi(Br({},W||{}),{arg:L,requestId:h,requestStatus:"pending"})}}),u=ra(t+"/rejected",function(h,L,W,Te,me){return{payload:Te,error:(n&&n.serializeError||ac)(h||"Rejected"),meta:bi(Br({},me||{}),{arg:W,requestId:L,rejectedWithValue:!!Te,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,v=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function _(h){return function(L,W,Te){var me=n?.idGenerator?n.idGenerator(h):Si(),Oe=new v,He,qe=new Promise(function(jt,dr){return Oe.signal.addEventListener("abort",function(){return dr({name:"AbortError",message:He||"Aborted"})})}),We=!1;function ct(jt){We&&(He=jt,Oe.abort())}var yt=function(){return Vn(this,null,function(){var jt,dr,Sr,an,Ia,JT;return Ot(this,function(pi){switch(pi.label){case 0:return pi.trys.push([0,4,,5]),an=(jt=n?.condition)==null?void 0:jt.call(n,h,{getState:W,extra:Te}),Qa(an)?[4,an]:[3,2];case 1:an=pi.sent(),pi.label=2;case 2:if(an===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return We=!0,L(a(me,h,(dr=n?.getPendingMeta)==null?void 0:dr.call(n,{requestId:me,arg:h},{getState:W,extra:Te}))),[4,Promise.race([qe,Promise.resolve(r(h,{dispatch:L,getState:W,extra:Te,requestId:me,signal:Oe.signal,abort:ct,rejectWithValue:function(ni,k_){return new oi(ni,k_)},fulfillWithValue:function(ni,k_){return new ic(ni,k_)}})).then(function(ni){if(ni instanceof oi)throw ni;return ni instanceof ic?i(ni.payload,me,h,ni.meta):i(ni,me,h)})])];case 3:return Sr=pi.sent(),[3,5];case 4:return Ia=pi.sent(),Sr=Ia instanceof oi?u(null,me,h,Ia.payload,Ia.meta):u(Ia,me,h),[3,5];case 5:return JT=n&&!n.dispatchConditionRejection&&u.match(Sr)&&Sr.meta.condition,JT||L(Sr),[2,Sr]}})})}();return Object.assign(yt,{abort:ct,requestId:me,arg:h,unwrap:function(){return yt.then(lu)}})}}return Object.assign(_,{pending:a,rejected:u,fulfilled:i,typePrefix:t})}return e.withTypes=e,e}();function lu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Qa(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Tn=function(e){return e&&typeof e.match=="function"},La=function(e,t){return Tn(e)?e.match(t):e(t)};function Xo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return e.some(function(n){return La(n,r)})}}function oc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return e.every(function(n){return La(n,r)})}}function Sa(e,t){if(!e||!e.meta)return!1;var r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function w(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return Sa(r,["pending"])}:w(e)?function(r){var n=e.map(function(a){return a.pending}),i=Xo.apply(void 0,n);return i(r)}:l()(e[0])}function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return Sa(r,["rejected"])}:w(e)?function(r){var n=e.map(function(a){return a.rejected}),i=Xo.apply(void 0,n);return i(r)}:S()(e[0])}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function(n){return n&&n.meta&&n.meta.rejectedWithValue};return e.length===0?function(n){var i=oc(S.apply(void 0,e),r);return i(n)}:w(e)?function(n){var i=oc(S.apply(void 0,e),r);return i(n)}:R()(e[0])}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return Sa(r,["fulfilled"])}:w(e)?function(r){var n=e.map(function(a){return a.fulfilled}),i=Xo.apply(void 0,n);return i(r)}:q()(e[0])}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?function(r){return Sa(r,["pending","fulfilled","rejected"])}:w(e)?function(r){for(var n=[],i=0,a=e;i<a.length;i++){var u=a[i];n.push(u.pending,u.rejected,u.fulfilled)}var c=Xo.apply(void 0,n);return c(r)}:ne()(e[0])}var se=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},Ie=function(){},$e=function(e,t){return t===void 0&&(t=Ie),e.catch(t),e},Le=function(e,t){e.addEventListener("abort",t,{once:!0})},Qe=function(e,t){var r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},et="task",ze="listener",st="completed",bt="cancelled",At="task-"+bt,It="task-"+st,wt=ze+"-"+bt,ur=ze+"-"+st,Ct=function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=et+" "+bt+" (reason: "+t+")"}return e}(),Yt=function(e){if(e.aborted)throw new Ct(e.reason)},pr=function(e){return $e(new Promise(function(t,r){var n=function(){return r(new Ct(e.reason))};e.aborted?n():Le(e,n)}))},or=function(e,t){return Vn(void 0,null,function(){var r,n;return Ot(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return r=i.sent(),[2,{status:"ok",value:r}];case 3:return n=i.sent(),[2,{status:n instanceof Ct?"cancelled":"rejected",error:n}];case 4:return t?.(),[7];case 5:return[2]}})})},ir=function(e){return function(t){return $e(Promise.race([pr(e),t]).then(function(r){return Yt(e),r}))}},en=function(e){var t=ir(e);return function(r){return t(new Promise(function(n){return setTimeout(n,r)}))}},xi=Object.assign,An={},ei="listenerMiddleware",fu=function(e){var t=function(r){return Le(e,function(){return Qe(r,e.reason)})};return function(r){se(r,"taskExecutor");var n=new AbortController;t(n);var i=or(function(){return Vn(void 0,null,function(){var a;return Ot(this,function(u){switch(u.label){case 0:return Yt(e),Yt(n.signal),[4,r({pause:ir(n.signal),delay:en(n.signal),signal:n.signal})];case 1:return a=u.sent(),Yt(n.signal),[2,a]}})})},function(){return Qe(n,It)});return{result:ir(e)(i),cancel:function(){Qe(n,At)}}}},H_=function(e,t){var r=function(n,i){return Vn(void 0,null,function(){var a,u,c,v;return Ot(this,function(_){switch(_.label){case 0:Yt(t),a=function(){},u=new Promise(function(h){a=e({predicate:n,effect:function(L,W){W.unsubscribe(),h([L,W.getState(),W.getOriginalState()])}})}),c=[pr(t),u],i!=null&&c.push(new Promise(function(h){return setTimeout(h,i,null)})),_.label=1;case 1:return _.trys.push([1,,3,4]),[4,Promise.race(c)];case 2:return v=_.sent(),Yt(t),[2,v];case 3:return a(),[7];case 4:return[2]}})})};return function(n,i){return $e(r(n,i))}},Ds=function(e){var t=e.type,r=e.actionCreator,n=e.matcher,i=e.predicate,a=e.effect;if(t)i=ra(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return se(a,"options.listener"),{predicate:i,type:t,effect:a}},Cl=function(e){var t=Ds(e),r=t.type,n=t.predicate,i=t.effect,a=Si(),u={id:a,effect:i,type:r,predicate:n,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return u},Da=function(e){return function(){e.forEach(na),e.clear()}},si=function(e,t,r){try{e(t,r)}catch(n){setTimeout(function(){throw n},0)}},Pl=ra(ei+"/add"),Ei=ra(ei+"/removeAll"),eA=ra(ei+"/remove"),_u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,Nt([ei+"/error"],e))},na=function(e){e.pending.forEach(function(t){Qe(t,wt)})};function tA(e){var t=this;e===void 0&&(e={});var r=new Map,n=e.extra,i=e.onError,a=i===void 0?_u:i;se(a,"onError");var u=function(Te){return Te.unsubscribe=function(){return r.delete(Te.id)},r.set(Te.id,Te),function(me){Te.unsubscribe(),me?.cancelActive&&na(Te)}},c=function(Te){for(var me=0,Oe=Array.from(r.values());me<Oe.length;me++){var He=Oe[me];if(Te(He))return He}},v=function(Te){var me=c(function(Oe){return Oe.effect===Te.effect});return me||(me=Cl(Te)),u(me)},_=function(Te){var me=Ds(Te),Oe=me.type,He=me.effect,qe=me.predicate,We=c(function(ct){var yt=typeof Oe=="string"?ct.type===Oe:ct.predicate===qe;return yt&&ct.effect===He});return We&&(We.unsubscribe(),Te.cancelActive&&na(We)),!!We},h=function(Te,me,Oe,He){return Vn(t,null,function(){var qe,We,ct;return Ot(this,function(yt){switch(yt.label){case 0:qe=new AbortController,We=H_(v,qe.signal),yt.label=1;case 1:return yt.trys.push([1,3,4,5]),Te.pending.add(qe),[4,Promise.resolve(Te.effect(me,xi({},Oe,{getOriginalState:He,condition:function(jt,dr){return We(jt,dr).then(Boolean)},take:We,delay:en(qe.signal),pause:ir(qe.signal),extra:n,signal:qe.signal,fork:fu(qe.signal),unsubscribe:Te.unsubscribe,subscribe:function(){r.set(Te.id,Te)},cancelActiveListeners:function(){Te.pending.forEach(function(jt,dr,Sr){jt!==qe&&(Qe(jt,wt),Sr.delete(jt))})}})))];case 2:return yt.sent(),[3,5];case 3:return ct=yt.sent(),ct instanceof Ct||si(a,ct,{raisedBy:"effect"}),[3,5];case 4:return Qe(qe,ur),Te.pending.delete(qe),[7];case 5:return[2]}})})},L=Da(r),W=function(Te){return function(me){return function(Oe){if(Pl.match(Oe))return v(Oe.payload);if(Ei.match(Oe)){L();return}if(eA.match(Oe))return _(Oe.payload);var He=Te.getState(),qe=function(){if(He===An)throw new Error(ei+": getOriginalState can only be called synchronously");return He},We;try{if(We=me(Oe),r.size>0)for(var ct=Te.getState(),yt=Array.from(r.values()),jt=0,dr=yt;jt<dr.length;jt++){var Sr=dr[jt],an=!1;try{an=Sr.predicate(Oe,ct,He)}catch(Ia){an=!1,si(a,Ia,{raisedBy:"predicate"})}!an||h(Sr,Oe,Te,qe)}}finally{He=An}return We}}};return{middleware:W,startListening:v,stopListening:_,clearListeners:L}}var Hh="RTK_autoBatch",MI=function(){return function(e){var t;return{payload:e,meta:(t={},t[Hh]=!0,t)}}},Yh,rA=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:p.g):function(e){return(Yh||(Yh=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},nA=function(e){return function(t){setTimeout(t,e)}},Y_=function(e){return e===void 0&&(e={type:"raf"}),function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(void 0,r),a=!0,u=!1,c=!1,v=new Set,_=e.type==="tick"?rA:e.type==="raf"?requestAnimationFrame:e.type==="callback"?e.queueNotification:nA(e.timeout),h=function(){c=!1,u&&(u=!1,v.forEach(function(L){return L()}))};return Object.assign({},i,{subscribe:function(L){var W=function(){return a&&L()},Te=i.subscribe(W);return v.add(L),function(){Te(),v.delete(L)}},dispatch:function(L){var W;try{return a=!((W=L?.meta)!=null&&W[Hh]),u=!a,u&&(c||(c=!0,_(h))),i.dispatch(L)}finally{a=!0}}})}}};Yn();const Ye=Kr({name:"client",initialState:{},reducers:{replace:(e,{payload:t})=>t}}),ot=e=>e.client,rt={},Ut=Kr({name:"user",initialState:rt,reducers:{replace:(e,{payload:t})=>t,updateTokens:(e,{payload:{accessToken:t,idToken:r,refreshToken:n}})=>{e.tokenData&&(e.tokenData.accessToken.jwtToken=t,e.tokenData.idToken.jwtToken=r,e.tokenData.refreshToken.token=n||e.tokenData.refreshToken.token)},logout:()=>rt}}),sr=e=>e.user.tokenData,Xr=e=>e.user,ti=Kr({name:"telemetry",initialState:{},reducers:{replace:(e,{payload:t})=>t}}),Sn=e=>e.telemetry,Ml=Kr({name:"metadata",initialState:{},reducers:{replace:(e,{payload:t})=>t}}),iA=e=>e.metadata,Ea=ve({[Ye.name]:Ye.reducer,[Ut.name]:Ut.reducer,[ti.name]:ti.reducer,[Ml.name]:Ml.reducer}),Il=e=>ou({reducer:Ea,preloadedState:e});Ye.actions;const q_=Ut.actions;var vi;(function(e){e.one="1.0.0"})(vi||(vi={}));const Wn="orchestrator:state-service",Nl=e=>({id:Wn,create:()=>{const t=Il(e);return{[vi.one]:()=>({featureService:{getStore:()=>t,getState:()=>t.getState(),getUser:()=>Xr(t.getState()),getUserTokenData:()=>sr(t.getState()),getClientContext:()=>ot(t.getState()),getTelemetryConfig:()=>Sn(t.getState()),setUser:r=>t.dispatch(q_.replace(r)),updateTokens:r=>t.dispatch(q_.updateTokens(r)),logoutUser:()=>t.dispatch(q_.logout()),getMetadata:()=>iA(t.getState())}})}}});var Nr;(function(e){e.one="1.0.0"})(Nr||(Nr={}));const za="orchestrator:api-client",qh={id:za,dependencies:{featureServices:{[Wn]:vi.one}},create:({featureServices:e})=>{const t=e[Wn],{apiMap:r}=t.getClientContext(),n=new ce.ApiClient(r);return{[Nr.one]:()=>({featureService:n})}}};var Ll=p(7799),du=p(6843),II=p(1085),aA=p(4041),sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wa=function(e){return e&&e.Math==Math&&e},mi=wa(typeof globalThis=="object"&&globalThis)||wa(typeof window=="object"&&window)||wa(typeof self=="object"&&self)||wa(typeof sc=="object"&&sc)||function(){return this}()||Function("return this")(),Dl={},ri=function(e){try{return!!e()}catch{return!0}},Kh=ri,Ua=!Kh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),wl=ri,Ul=!wl(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),uc=Ul,Xa=Function.prototype.call,xa=uc?Xa.bind(Xa):function(){return Xa.apply(Xa,arguments)},K_={},Wh={}.propertyIsEnumerable,Qh=Object.getOwnPropertyDescriptor,xl=Qh&&!Wh.call({1:2},1);K_.f=xl?function(t){var r=Qh(this,t);return!!r&&r.enumerable}:Wh;var pu=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},Fl=Ul,zh=Function.prototype,Xh=zh.bind,W_=zh.call,oA=Fl&&Xh.bind(W_,W_),Lr=Fl?function(e){return e&&oA(e)}:function(e){return e&&function(){return W_.apply(e,arguments)}},Ti=Lr,sA=Ti({}.toString),uA=Ti("".slice),$l=function(e){return uA(sA(e),8,-1)},cA=Lr,Q_=ri,cc=$l,lc=Object,hu=cA("".split),Su=Q_(function(){return!lc("z").propertyIsEnumerable(0)})?function(e){return cc(e)=="String"?hu(e,""):lc(e)}:lc,fc=TypeError,Jo=function(e){if(e==null)throw fc("Can't call method on "+e);return e},Eu=Su,lA=Jo,_c=function(e){return Eu(lA(e))},Ai=function(e){return typeof e=="function"},fA=Ai,dc=function(e){return typeof e=="object"?e!==null:fA(e)},vu=mi,pc=Ai,Jh=function(e){return pc(e)?e:void 0},fe=function(e,t){return arguments.length<2?Jh(vu[e]):vu[e]&&vu[e][t]},mu=Lr,Vl=mu({}.isPrototypeOf),va=fe,Dr=va("navigator","userAgent")||"",Zh=mi,z_=Dr,eS=Zh.process,Zo=Zh.Deno,tS=eS&&eS.versions||Zo&&Zo.version,rS=tS&&tS.v8,Fa,Gl;rS&&(Fa=rS.split("."),Gl=Fa[0]>0&&Fa[0]<4?1:+(Fa[0]+Fa[1])),!Gl&&z_&&(Fa=z_.match(/Edge\/(\d+)/),(!Fa||Fa[1]>=74)&&(Fa=z_.match(/Chrome\/(\d+)/),Fa&&(Gl=+Fa[1])));var _A=Gl,Ja=_A,dA=ri,nS=!!Object.getOwnPropertySymbols&&!dA(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ja&&Ja<41}),pA=nS,iS=pA&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hA=fe,mo=Ai,SA=Vl,EA=iS,vA=Object,aS=EA?function(e){return typeof e=="symbol"}:function(e){var t=hA("Symbol");return mo(t)&&SA(t.prototype,vA(e))},mA=String,ws=function(e){try{return mA(e)}catch{return"Object"}},TA=Ai,AA=ws,$a=TypeError,gA=function(e){if(TA(e))return e;throw $a(AA(e)+" is not a function")},yA=gA,oS=function(e,t){var r=e[t];return r==null?void 0:yA(r)},X_=xa,J_=Ai,Bl=dc,sS=TypeError,RA=function(e,t){var r,n;if(t==="string"&&J_(r=e.toString)&&!Bl(n=X_(r,e))||J_(r=e.valueOf)&&!Bl(n=X_(r,e))||t!=="string"&&J_(r=e.toString)&&!Bl(n=X_(r,e)))return n;throw sS("Can't convert object to primitive value")},kl={exports:{}},jl=mi,hc=Object.defineProperty,Tu=function(e,t){try{hc(jl,e,{value:t,configurable:!0,writable:!0})}catch{jl[e]=t}return t},OA=mi,uS=Tu,cS="__core-js_shared__",To=OA[cS]||uS(cS,{}),Sc=To,es=Sc;(kl.exports=function(e,t){return es[e]||(es[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var ma=Jo,bA=Object,Ec=function(e){return bA(ma(e))},lS=Lr,vc=Ec,ts=lS({}.hasOwnProperty),Za=Object.hasOwn||function(t,r){return ts(vc(t),r)},CA=Lr,Hl=0,PA=Math.random(),fS=CA(1 .toString),fi=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fS(++Hl+PA,36)},Z_=mi,_S=kl.exports,Va=Za,ed=fi,mc=nS,rs=iS,Us=_S("wks"),Qn=Z_.Symbol,Yl=Qn&&Qn.for,MA=rs?Qn:Qn&&Qn.withoutSetter||ed,eo=function(e){if(!Va(Us,e)||!(mc||typeof Us[e]=="string")){var t="Symbol."+e;mc&&Va(Qn,e)?Us[e]=Qn[e]:rs&&Yl?Us[e]=Yl(t):Us[e]=MA(t)}return Us[e]},IA=xa,ql=dc,dS=aS,Tc=oS,pS=RA,NA=eo,LA=TypeError,Ac=NA("toPrimitive"),DA=function(e,t){if(!ql(e)||dS(e))return e;var r=Tc(e,Ac),n;if(r){if(t===void 0&&(t="default"),n=IA(r,e,t),!ql(n)||dS(n))return n;throw LA("Can't convert object to primitive value")}return t===void 0&&(t="number"),pS(e,t)},wA=DA,td=aS,rd=function(e){var t=wA(e,"string");return td(t)?t:t+""},UA=mi,hS=dc,nd=UA.document,SS=hS(nd)&&hS(nd.createElement),gc=function(e){return SS?nd.createElement(e):{}},xA=Ua,id=ri,ES=gc,ad=!xA&&!id(function(){return Object.defineProperty(ES("div"),"a",{get:function(){return 7}}).a!=7}),vS=Ua,Kl=xa,FA=K_,mS=pu,TS=_c,$A=rd,AS=Za,VA=ad,Wl=Object.getOwnPropertyDescriptor;Dl.f=vS?Wl:function(t,r){if(t=TS(t),r=$A(r),VA)try{return Wl(t,r)}catch{}if(AS(t,r))return mS(!Kl(FA.f,t,r),t[r])};var Ao={},od=Ua,GA=ri,Ql=od&&GA(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),yr=dc,BA=String,kA=TypeError,Ta=function(e){if(yr(e))return e;throw kA(BA(e)+" is not an object")},gS=Ua,jA=ad,HA=Ql,Fi=Ta,yS=rd,zl=TypeError,yc=Object.defineProperty,RS=Object.getOwnPropertyDescriptor,Xl="enumerable",$i="configurable",to="writable";Ao.f=gS?HA?function(t,r,n){if(Fi(t),r=yS(r),Fi(n),typeof t=="function"&&r==="prototype"&&"value"in n&&to in n&&!n[to]){var i=RS(t,r);i&&i[to]&&(t[r]=n.value,n={configurable:$i in n?n[$i]:i[$i],enumerable:Xl in n?n[Xl]:i[Xl],writable:!1})}return yc(t,r,n)}:yc:function(t,r,n){if(Fi(t),r=yS(r),Fi(n),jA)try{return yc(t,r,n)}catch{}if("get"in n||"set"in n)throw zl("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var sd=Ua,OS=Ao,Jl=pu,Au=sd?function(e,t,r){return OS.f(e,t,Jl(1,r))}:function(e,t,r){return e[t]=r,e},Zl={exports:{}},ef=Ua,ud=Za,tf=Function.prototype,ns=ef&&Object.getOwnPropertyDescriptor,cd=ud(tf,"name"),is=cd&&function(){}.name==="something",bS=cd&&(!ef||ef&&ns(tf,"name").configurable),ld={EXISTS:cd,PROPER:is,CONFIGURABLE:bS},fd=Lr,YA=Ai,_d=Sc,qA=fd(Function.toString);YA(_d.inspectSource)||(_d.inspectSource=function(e){return qA(e)});var dd=_d.inspectSource,CS=mi,KA=Ai,PS=dd,pd=CS.WeakMap,Qi=KA(pd)&&/native code/.test(PS(pd)),ro=kl.exports,WA=fi,MS=ro("keys"),gu=function(e){return MS[e]||(MS[e]=WA(e))},as={},IS=Qi,hd=mi,Sd=Lr,NS=dc,yu=Au,xs=Za,Ed=Sc,LS=gu,DS=as,Rc="Object already initialized",rf=hd.TypeError,nf=hd.WeakMap,Ru,os,af,wS=function(e){return af(e)?os(e):Ru(e,{})},of=function(e){return function(t){var r;if(!NS(t)||(r=os(t)).type!==e)throw rf("Incompatible receiver, "+e+" required");return r}};if(IS||Ed.state){var ss=Ed.state||(Ed.state=new nf),vd=Sd(ss.get),US=Sd(ss.has),xS=Sd(ss.set);Ru=function(e,t){if(US(ss,e))throw new rf(Rc);return t.facade=e,xS(ss,e,t),t},os=function(e){return vd(ss,e)||{}},af=function(e){return US(ss,e)}}else{var zi=LS("state");DS[zi]=!0,Ru=function(e,t){if(xs(e,zi))throw new rf(Rc);return t.facade=e,yu(e,zi,t),t},os=function(e){return xs(e,zi)?e[zi]:{}},af=function(e){return xs(e,zi)}}var sf={set:Ru,get:os,has:af,enforce:wS,getterFor:of},FS=ri,QA=Ai,Oc=Za,md=Ua,zA=ld.CONFIGURABLE,go=dd,uf=sf,Td=uf.enforce,Ad=uf.get,Fs=Object.defineProperty,Ou=md&&!FS(function(){return Fs(function(){},"length",{value:8}).length!==8}),Wt=String(String).split("String"),cf=Zl.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Oc(e,"name")||zA&&e.name!==t)&&(md?Fs(e,"name",{value:t,configurable:!0}):e.name=t),Ou&&r&&Oc(r,"arity")&&e.length!==r.arity&&Fs(e,"length",{value:r.arity});try{r&&Oc(r,"constructor")&&r.constructor?md&&Fs(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=Td(e);return Oc(n,"source")||(n.source=Wt.join(typeof t=="string"?t:"")),e};Function.prototype.toString=cf(function(){return QA(this)&&Ad(this).source||go(this)},"toString");var gd=Ai,$s=Ao,XA=Zl.exports,yd=Tu,bc=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(gd(r)&&XA(r,a,n),n.global)i?e[t]=r:yd(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:$s.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},gi={},JA=Math.ceil,ZA=Math.floor,$S=Math.trunc||function(t){var r=+t;return(r>0?ZA:JA)(r)},eg=$S,Cc=function(e){var t=+e;return t!==t||t===0?0:eg(t)},tg=Cc,rg=Math.max,ng=Math.min,yo=function(e,t){var r=tg(e);return r<0?rg(r+t,0):ng(r,t)},Vi=Cc,Rd=Math.min,VS=function(e){return e>0?Rd(Vi(e),9007199254740991):0},Od=VS,ig=function(e){return Od(e.length)},ag=_c,Pc=yo,GS=ig,bd=function(e){return function(t,r,n){var i=ag(t),a=GS(i),u=Pc(n,a),c;if(e&&r!=r){for(;a>u;)if(c=i[u++],c!=c)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},og={includes:bd(!0),indexOf:bd(!1)},sg=Lr,Cd=Za,ug=_c,BS=og.indexOf,kS=as,jS=sg([].push),lf=function(e,t){var r=ug(e),n=0,i=[],a;for(a in r)!Cd(kS,a)&&Cd(r,a)&&jS(i,a);for(;t.length>n;)Cd(r,a=t[n++])&&(~BS(i,a)||jS(i,a));return i},ff=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mc=lf,Pd=ff,HS=Pd.concat("length","prototype");gi.f=Object.getOwnPropertyNames||function(t){return Mc(t,HS)};var _f={};_f.f=Object.getOwnPropertySymbols;var df=fe,YS=Lr,no=gi,Vs=_f,cg=Ta,qS=YS([].concat),lg=df("Reflect","ownKeys")||function(t){var r=no.f(cg(t)),n=Vs.f;return n?qS(r,n(t)):r},KS=Za,fg=lg,_g=Dl,dg=Ao,pg=function(e,t,r){for(var n=fg(t),i=dg.f,a=_g.f,u=0;u<n.length;u++){var c=n[u];!KS(e,c)&&!(r&&KS(r,c))&&i(e,c,a(t,c))}},hg=ri,Sg=Ai,Eg=/#|\.prototype\./,Ic=function(e,t){var r=WS[vg(e)];return r==zS?!0:r==QS?!1:Sg(t)?hg(t):!!t},vg=Ic.normalize=function(e){return String(e).replace(Eg,".").toLowerCase()},WS=Ic.data={},QS=Ic.NATIVE="N",zS=Ic.POLYFILL="P",mg=Ic,Md=mi,Tg=Dl.f,XS=Au,Ag=bc,gg=Tu,yg=pg,Rg=mg,pf=function(e,t){var r=e.target,n=e.global,i=e.stat,a,u,c,v,_,h;if(n?u=Md:i?u=Md[r]||gg(r,{}):u=(Md[r]||{}).prototype,u)for(c in t){if(_=t[c],e.dontCallGetSet?(h=Tg(u,c),v=h&&h.value):v=u[c],a=Rg(n?c:r+(i?".":"#")+c,e.forced),!a&&v!==void 0){if(typeof _==typeof v)continue;yg(_,v)}(e.sham||v&&v.sham)&&XS(_,"sham",!0),Ag(u,c,_,e)}},Og=eo,Aa=Og("toStringTag"),JS={};JS[Aa]="z";var bg=String(JS)==="[object z]",Cg=bg,ZS=Ai,hf=$l,Pg=eo,Mg=Pg("toStringTag"),Ig=Object,Id=hf(function(){return arguments}())=="Arguments",Ng=function(e,t){try{return e[t]}catch{}},Lg=Cg?hf:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=Ng(t=Ig(e),Mg))=="string"?r:Id?hf(t):(n=hf(t))=="Object"&&ZS(t.callee)?"Arguments":n},Dg=Lg,wg=String,Nc=function(e){if(Dg(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return wg(e)},eE=`
103
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Ug=Lr,xg=Jo,Fg=Nc,$g=eE,tE=Ug("".replace),Sf="["+$g+"]",Vg=RegExp("^"+Sf+Sf+"*"),Gg=RegExp(Sf+Sf+"*$"),Nd=function(e){return function(t){var r=Fg(xg(t));return e&1&&(r=tE(r,Vg,"")),e&2&&(r=tE(r,Gg,"")),r}},Bg={start:Nd(1),end:Nd(2),trim:Nd(3)},rE=mi,kg=ri,jg=Lr,Hg=Nc,Ld=Bg.trim,Dd=eE,Lc=rE.parseInt,nE=rE.Symbol,iE=nE&&nE.iterator,aE=/^[+-]?0x/i,Yg=jg(aE.exec),qg=Lc(Dd+"08")!==8||Lc(Dd+"0x16")!==22||iE&&!kg(function(){Lc(Object(iE))}),Kg=qg?function(t,r){var n=Ld(Hg(t));return Lc(n,r>>>0||(Yg(aE,n)?16:10))}:Lc,Wg=pf,wd=Kg;Wg({global:!0,forced:parseInt!=wd},{parseInt:wd});var Qg=Ta,Ef=function(){var e=Qg(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ud=ri,zg=mi,xd=zg.RegExp,Fd=Ud(function(){var e=xd("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Xg=Fd||Ud(function(){return!xd("a","y").sticky}),Jg=Fd||Ud(function(){var e=xd("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),Zg={BROKEN_CARET:Jg,MISSED_STICKY:Xg,UNSUPPORTED_Y:Fd},oE={},ey=lf,ty=ff,sE=Object.keys||function(t){return ey(t,ty)},ry=Ua,ny=Ql,iy=Ao,ay=Ta,oy=_c,uE=sE;oE.f=ry&&!ny?Object.defineProperties:function(t,r){ay(t);for(var n=oy(r),i=uE(r),a=i.length,u=0,c;a>u;)iy.f(t,c=i[u++],n[c]);return t};var cE=fe,sy=cE("document","documentElement"),uy=Ta,cy=oE,lE=ff,vf=as,ly=sy,fy=gc,_y=gu,fE=">",_E="<",$d="prototype",Vd="script",dE=_y("IE_PROTO"),Gd=function(){},pE=function(e){return _E+Vd+fE+e+_E+"/"+Vd+fE},hE=function(e){e.write(pE("")),e.close();var t=e.parentWindow.Object;return e=null,t},mf=function(){var e=fy("iframe"),t="java"+Vd+":",r;return e.style.display="none",ly.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(pE("document.F=Object")),r.close(),r.F},Tf,Dc=function(){try{Tf=new ActiveXObject("htmlfile")}catch{}Dc=typeof document<"u"?document.domain&&Tf?hE(Tf):mf():hE(Tf);for(var e=lE.length;e--;)delete Dc[$d][lE[e]];return Dc()};vf[dE]=!0;var Af=Object.create||function(t,r){var n;return t!==null?(Gd[$d]=uy(t),n=new Gd,Gd[$d]=null,n[dE]=t):n=Dc(),r===void 0?n:cy.f(n,r)},Bd=ri,SE=mi,EE=SE.RegExp,vE=Bd(function(){var e=EE(".","s");return!(e.dotAll&&e.exec(`
104
+ `)&&e.flags==="s")}),mE=ri,dy=mi,py=dy.RegExp,hy=mE(function(){var e=py("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ro=xa,Gs=Lr,Sy=Nc,Ey=Ef,kd=Zg,TE=kl.exports,vy=Af,my=sf.get,Ty=vE,Ay=hy,gy=TE("native-string-replace",String.prototype.replace),gf=RegExp.prototype.exec,jd=gf,yy=Gs("".charAt),Ry=Gs("".indexOf),Oy=Gs("".replace),Hd=Gs("".slice),Yd=function(){var e=/a/,t=/b*/g;return Ro(gf,e,"a"),Ro(gf,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),ga=kd.BROKEN_CARET,qd=/()??/.exec("")[1]!==void 0,by=Yd||qd||ga||Ty||Ay;by&&(jd=function(t){var r=this,n=my(r),i=Sy(t),a=n.raw,u,c,v,_,h,L,W;if(a)return a.lastIndex=r.lastIndex,u=Ro(jd,a,i),r.lastIndex=a.lastIndex,u;var Te=n.groups,me=ga&&r.sticky,Oe=Ro(Ey,r),He=r.source,qe=0,We=i;if(me&&(Oe=Oy(Oe,"y",""),Ry(Oe,"g")===-1&&(Oe+="g"),We=Hd(i,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&yy(i,r.lastIndex-1)!==`
105
+ `)&&(He="(?: "+He+")",We=" "+We,qe++),c=new RegExp("^(?:"+He+")",Oe)),qd&&(c=new RegExp("^"+He+"$(?!\\s)",Oe)),Yd&&(v=r.lastIndex),_=Ro(gf,me?c:r,We),me?_?(_.input=Hd(_.input,qe),_[0]=Hd(_[0],qe),_.index=r.lastIndex,r.lastIndex+=_[0].length):r.lastIndex=0:Yd&&_&&(r.lastIndex=r.global?_.index+_[0].length:v),qd&&_&&_.length>1&&Ro(gy,_[0],c,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(_[h]=void 0)}),_&&Te)for(_.groups=L=vy(null),h=0;h<Te.length;h++)W=Te[h],L[W[0]]=_[W[1]];return _});var Oo=jd,cr=pf,AE=Oo;cr({target:"RegExp",proto:!0,forced:/./.exec!==AE},{exec:AE});var Xi=Ul,Bn=Function.prototype,gE=Bn.apply,bo=Bn.call,Cy=typeof Reflect=="object"&&Reflect.apply||(Xi?bo.bind(gE):function(){return bo.apply(gE,arguments)}),yE=Lr,RE=bc,Py=Oo,OE=ri,yf=eo,My=Au,Co=yf("species"),Rf=RegExp.prototype,Of=function(e,t,r,n){var i=yf(e),a=!OE(function(){var _={};return _[i]=function(){return 7},""[e](_)!=7}),u=a&&!OE(function(){var _=!1,h=/a/;return e==="split"&&(h={},h.constructor={},h.constructor[Co]=function(){return h},h.flags="",h[i]=/./[i]),h.exec=function(){return _=!0,null},h[i](""),!_});if(!a||!u||r){var c=yE(/./[i]),v=t(i,""[e],function(_,h,L,W,Te){var me=yE(_),Oe=h.exec;return Oe===Py||Oe===Rf.exec?a&&!Te?{done:!0,value:c(h,L,W)}:{done:!0,value:me(L,h,W)}:{done:!1}});RE(String.prototype,e,v[0]),RE(Rf,i,v[1])}n&&My(Rf[i],"sham",!0)},On=Lr,kn=Cc,bE=Nc,Iy=Jo,Ny=On("".charAt),CE=On("".charCodeAt),Ly=On("".slice),PE=function(e){return function(t,r){var n=bE(Iy(t)),i=kn(r),a=n.length,u,c;return i<0||i>=a?e?"":void 0:(u=CE(n,i),u<55296||u>56319||i+1===a||(c=CE(n,i+1))<56320||c>57343?e?Ny(n,i):u:e?Ly(n,i,i+2):(u-55296<<10)+(c-56320)+65536)}},Dy={codeAt:PE(!1),charAt:PE(!0)},ME=Dy.charAt,wc=function(e,t,r){return t+(r?ME(e,t).length:1)},Uc=Lr,wy=Ec,IE=Math.floor,bu=Uc("".charAt),ia=Uc("".replace),us=Uc("".slice),Uy=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xy=/\$([$&'`]|\d{1,2})/g,Fy=function(e,t,r,n,i,a){var u=r+e.length,c=n.length,v=xy;return i!==void 0&&(i=wy(i),v=Uy),ia(a,v,function(_,h){var L;switch(bu(h,0)){case"$":return"$";case"&":return e;case"`":return us(t,0,r);case"'":return us(t,u);case"<":L=i[us(h,1,-1)];break;default:var W=+h;if(W===0)return _;if(W>c){var Te=IE(W/10);return Te===0?_:Te<=c?n[Te-1]===void 0?bu(h,1):n[Te-1]+bu(h,1):_}L=n[W-1]}return L===void 0?"":L})},NE=xa,$y=Ta,LE=Ai,Po=$l,Ar=Oo,DE=TypeError,ya=function(e,t){var r=e.exec;if(LE(r)){var n=NE(r,e,t);return n!==null&&$y(n),n}if(Po(e)==="RegExp")return NE(Ar,e,t);throw DE("RegExp#exec called on incompatible receiver")},wE=Cy,UE=xa,kr=Lr,Vy=Of,xE=ri,bf=Ta,Gy=Ai,By=Cc,ky=VS,Cu=Nc,jy=Jo,Hy=wc,Yy=oS,qy=Fy,Ky=ya,Wy=eo,Kd=Wy("replace"),Qy=Math.max,zy=Math.min,Wd=kr([].concat),Qd=kr([].push),Cf=kr("".indexOf),FE=kr("".slice),Xy=function(e){return e===void 0?e:String(e)},Jy=function(){return"a".replace(/./,"$0")==="$0"}(),ui=function(){return/./[Kd]?/./[Kd]("a","$0")==="":!1}(),Ji=!xE(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});Vy("replace",function(e,t,r){var n=ui?"$":"$0";return[function(a,u){var c=jy(this),v=a==null?void 0:Yy(a,Kd);return v?UE(v,a,c,u):UE(t,Cu(c),a,u)},function(i,a){var u=bf(this),c=Cu(i);if(typeof a=="string"&&Cf(a,n)===-1&&Cf(a,"$<")===-1){var v=r(t,u,c,a);if(v.done)return v.value}var _=Gy(a);_||(a=Cu(a));var h=u.global;if(h){var L=u.unicode;u.lastIndex=0}for(var W=[];;){var Te=Ky(u,c);if(Te===null||(Qd(W,Te),!h))break;var me=Cu(Te[0]);me===""&&(u.lastIndex=Hy(c,ky(u.lastIndex),L))}for(var Oe="",He=0,qe=0;qe<W.length;qe++){Te=W[qe];for(var We=Cu(Te[0]),ct=Qy(zy(By(Te.index),c.length),0),yt=[],jt=1;jt<Te.length;jt++)Qd(yt,Xy(Te[jt]));var dr=Te.groups;if(_){var Sr=Wd([We],yt,ct,c);dr!==void 0&&Qd(Sr,dr);var an=Cu(wE(a,void 0,Sr))}else an=qy(We,c,ct,yt,dr,a);ct>=He&&(Oe+=FE(c,He,ct)+an,He=ct+We.length)}return Oe+FE(c,He)}]},!Ji||!Jy||ui);var Zy=eo,eR=Af,tR=Ao.f,Pf=Zy("unscopables"),zd=Array.prototype;zd[Pf]==null&&tR(zd,Pf,{configurable:!0,value:eR(null)});var rR=function(e){zd[Pf][e]=!0},Xd={},$E=ri,nR=!$E(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),iR=Za,aR=Ai,VE=Ec,GE=gu,oR=nR,BE=GE("IE_PROTO"),Jd=Object,sR=Jd.prototype,Bs=oR?Jd.getPrototypeOf:function(e){var t=VE(e);if(iR(t,BE))return t[BE];var r=t.constructor;return aR(r)&&t instanceof r?r.prototype:t instanceof Jd?sR:null},uR=ri,cR=Ai,kE=Bs,lR=bc,fR=eo,Mf=fR("iterator"),Zd=!1,ks,ep,tp;[].keys&&(tp=[].keys(),"next"in tp?(ep=kE(kE(tp)),ep!==Object.prototype&&(ks=ep)):Zd=!0);var _R=ks==null||uR(function(){var e={};return ks[Mf].call(e)!==e});_R&&(ks={}),cR(ks[Mf])||lR(ks,Mf,function(){return this});var jE={IteratorPrototype:ks,BUGGY_SAFARI_ITERATORS:Zd},dR=Ao.f,pR=Za,hR=eo,HE=hR("toStringTag"),YE=function(e,t,r){e&&!r&&(e=e.prototype),e&&!pR(e,HE)&&dR(e,HE,{configurable:!0,value:t})},SR=jE.IteratorPrototype,ER=Af,vR=pu,mR=YE,TR=Xd,AR=function(){return this},gR=function(e,t,r,n){var i=t+" Iterator";return e.prototype=ER(SR,{next:vR(+!n,r)}),mR(e,i,!1),TR[i]=AR,e},yR=Ai,RR=String,OR=TypeError,bR=function(e){if(typeof e=="object"||yR(e))return e;throw OR("Can't set "+RR(e)+" as a prototype")},CR=Lr,PR=Ta,MR=bR,IR=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=CR(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,a){return PR(i),MR(a),e?r(i,a):i.__proto__=a,i}}():void 0),rp=pf,qE=xa,np=ld,NR=Ai,LR=gR,KE=Bs,If=IR,DR=YE,wR=Au,ip=bc,Zi=eo,ap=Xd,WE=jE,UR=np.PROPER,xR=np.CONFIGURABLE,QE=WE.IteratorPrototype,Pu=WE.BUGGY_SAFARI_ITERATORS,xc=Zi("iterator"),Nf="keys",Fc="values",zE="entries",FR=function(){return this},$R=function(e,t,r,n,i,a,u){LR(r,t,n);var c=function(qe){if(qe===i&&W)return W;if(!Pu&&qe in h)return h[qe];switch(qe){case Nf:return function(){return new r(this,qe)};case Fc:return function(){return new r(this,qe)};case zE:return function(){return new r(this,qe)}}return function(){return new r(this)}},v=t+" Iterator",_=!1,h=e.prototype,L=h[xc]||h["@@iterator"]||i&&h[i],W=!Pu&&L||c(i),Te=t=="Array"&&h.entries||L,me,Oe,He;if(Te&&(me=KE(Te.call(new e)),me!==Object.prototype&&me.next&&(KE(me)!==QE&&(If?If(me,QE):NR(me[xc])||ip(me,xc,FR)),DR(me,v,!0))),UR&&i==Fc&&L&&L.name!==Fc&&(xR?wR(h,"name",Fc):(_=!0,W=function(){return qE(L,this)})),i)if(Oe={values:c(Fc),keys:a?W:c(Nf),entries:c(zE)},u)for(He in Oe)(Pu||_||!(He in h))&&ip(h,He,Oe[He]);else rp({target:t,proto:!0,forced:Pu||_},Oe);return h[xc]!==W&&ip(h,xc,W,{name:i}),ap[t]=W,Oe},XE=_c,op=rR,JE=Xd,ZE=sf,sp=Ao.f,up=$R,VR=Ua,ev="Array Iterator",GR=ZE.set,BR=ZE.getterFor(ev),kR=up(Array,"Array",function(e,t){GR(this,{type:ev,target:XE(e),index:0,kind:t})},function(){var e=BR(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),tv=JE.Arguments=JE.Array;if(op("keys"),op("values"),op("entries"),VR&&tv.name!=="values")try{sp(tv,"name",{value:"values"})}catch{}var jR={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},HR=gc,cp=HR("span").classList,rv=cp&&cp.constructor&&cp.constructor.prototype,YR=rv===Object.prototype?void 0:rv,nv=mi,iv=jR,qR=YR,$c=kR,lp=Au,av=eo,fp=av("iterator"),ov=av("toStringTag"),_p=$c.values,sv=function(e,t){if(e){if(e[fp]!==_p)try{lp(e,fp,_p)}catch{e[fp]=_p}if(e[ov]||lp(e,ov,t),iv[t]){for(var r in $c)if(e[r]!==$c[r])try{lp(e,r,$c[r])}catch{e[r]=$c[r]}}}};for(var o in iv)sv(nv[o]&&nv[o].prototype,o);sv(qR,"DOMTokenList");function s(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function f(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var M,X,he;function Ce(e){let t=0;if(e.length===0)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t=t&t;return t}class Ve{constructor({definitions:t,uuid:r,appVersion:n}){M.set(this,void 0),X.set(this,void 0),he.set(this,void 0),f(this,M,t,"f"),f(this,X,parseInt(`0x${r.replace(/-/g,"")}`),"f"),f(this,he,n,"f")}getFeatureFlagVariant(t,r){const n=s(this,M,"f").find(a=>a.name===t);let i=0;if(n){const a=Ce(n.id),u=Math.abs(s(this,X,"f")-a)%100;return n.variants.find(({percent:v})=>(i=v+i,u<i))||{name:"control",percent:100-i,value:r}}}getFeatureFlagValue(t,r){const n=this.getFeatureFlagVariant(t,r);if(n&&s(this,he,"f")){if(n.exactVersion){if(!du.valid(s(this,he,"f"))||!du.valid(n.exactVersion)||!du.eq(s(this,he,"f"),n.exactVersion))return r}else if(n.minimumRequiredVersion&&(!du.valid(s(this,he,"f"))||!du.valid(n.minimumRequiredVersion)||du.lt(s(this,he,"f"),n.minimumRequiredVersion)))return r}return n?.value||r}}M=new WeakMap,X=new WeakMap,he=new WeakMap;var Ke=Ua,lt=Lr,_t=xa,Et=ri,Pt=sE,xt=_f,Jt=K_,gr=Ec,Zt=Su,hr=Object.assign,wr=Object.defineProperty,aa=lt([].concat),Gi=!hr||Et(function(){if(Ke&&hr({b:1},hr(wr({},"a",{enumerable:!0,get:function(){wr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),hr({},e)[r]!=7||Pt(hr({},t)).join("")!=n})?function(t,r){for(var n=gr(t),i=arguments.length,a=1,u=xt.f,c=Jt.f;i>a;)for(var v=Zt(arguments[a++]),_=u?aa(Pt(v),u(v)):Pt(v),h=_.length,L=0,W;h>L;)W=_[L++],(!Ke||_t(c,v,W))&&(n[W]=v[W]);return n}:hr,oa=pf,jn=Gi;oa({target:"Object",stat:!0,arity:2,forced:Object.assign!==jn},{assign:jn});const Ra=null,cs=({children:e,featureFlags:t})=>jsx(Ra.Provider,Object.assign({value:t},{children:e}));function KR(e,t){const r=React.useContext(Ra);return r?.getFeatureFlagValue(e,t)||t}var dp;(function(e){e.one="1.0.0"})(dp||(dp={}));const uv="orchestrator:feature-flags-service",sH={id:uv,dependencies:{featureServices:{[Wn]:vi.one},externals:{}},create:({featureServices:e})=>{var t;const r=e[Wn],n="b0e74b60-1797-4d34-b90a-712a93f4e732",i=r.getClientContext(),a=new Ve({uuid:n,definitions:((t=i?.featureFlagConfiguration)===null||t===void 0?void 0:t.featureFlagDefinitions)||[],appVersion:r.getMetadata().version});return{[dp.one]:()=>({featureService:a})}}};var NI=p(3170),Mu;(function(e){e.one="1.0.0"})(Mu||(Mu={}));const js="orchestrator:logging-service",uH={id:js,dependencies:{featureServices:{[Wn]:vi.one,[uv]:dp.one}},create:({featureServices:e})=>{const t=e[Wn],r=e[uv],{environment:n,slug:i}=t.getClientContext(),a=t.getTelemetryConfig(),{version:u}=t.getMetadata(),c=r.getFeatureFlagValue("client log url",void 0),v=(0,NI.default)({url:typeof c=="string"?c:void 0,telemetry:a,environment:n,clientSlug:i,appVersion:u});return{[Mu.one]:()=>({featureService:v})}}};var cv;(function(e){e.one="1.0.0"})(cv||(cv={}));const LI="orchestrator:theme-service",cH={id:LI,dependencies:{featureServices:{[za]:Nr.one,[Wn]:vi.one,[js]:Mu.one}},create:({featureServices:e})=>{const t=e[za],r=e[Wn],n=e[js],{slug:i}=r.getClientContext(),a=new Ll.ThemeFactory(t,i);return a.createTheme().catch(u=>{n.error(u,"Error occurred while prefetching theme")}),{[cv.one]:()=>({featureService:a})}}};var DI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},lv=function(e){return e&&e.Math==Math&&e},Mi=lv(typeof globalThis=="object"&&globalThis)||lv(typeof window=="object"&&window)||lv(typeof self=="object"&&self)||lv(typeof DI=="object"&&DI)||function(){return this}()||Function("return this")(),fv={},Ga=function(e){try{return!!e()}catch{return!0}},lH=Ga,Mo=!lH(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fH=Ga,_v=!fH(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),_H=_v,dv=Function.prototype.call,io=_H?dv.bind(dv):function(){return dv.apply(dv,arguments)},WR={},wI={}.propertyIsEnumerable,UI=Object.getOwnPropertyDescriptor,dH=UI&&!wI.call({1:2},1);WR.f=dH?function(t){var r=UI(this,t);return!!r&&r.enumerable}:wI;var QR=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},xI=_v,FI=Function.prototype,pH=FI.bind,zR=FI.call,hH=xI&&pH.bind(zR,zR),Oa=xI?function(e){return e&&hH(e)}:function(e){return e&&function(){return zR.apply(e,arguments)}},$I=Oa,SH=$I({}.toString),EH=$I("".slice),XR=function(e){return EH(SH(e),8,-1)},vH=Oa,mH=Ga,TH=XR,JR=Object,AH=vH("".split),VI=mH(function(){return!JR("z").propertyIsEnumerable(0)})?function(e){return TH(e)=="String"?AH(e,""):JR(e)}:JR,gH=TypeError,GI=function(e){if(e==null)throw gH("Can't call method on "+e);return e},yH=VI,RH=GI,pp=function(e){return yH(RH(e))},_i=function(e){return typeof e=="function"},OH=_i,Vc=function(e){return typeof e=="object"?e!==null:OH(e)},ZR=Mi,bH=_i,CH=function(e){return bH(e)?e:void 0},Iu=function(e,t){return arguments.length<2?CH(ZR[e]):ZR[e]&&ZR[e][t]},PH=Oa,eO=PH({}.isPrototypeOf),MH=Iu,pv=MH("navigator","userAgent")||"",BI=Mi,tO=pv,kI=BI.process,jI=BI.Deno,HI=kI&&kI.versions||jI&&jI.version,YI=HI&&HI.v8,Io,hv;YI&&(Io=YI.split("."),hv=Io[0]>0&&Io[0]<4?1:+(Io[0]+Io[1])),!hv&&tO&&(Io=tO.match(/Edge\/(\d+)/),(!Io||Io[1]>=74)&&(Io=tO.match(/Chrome\/(\d+)/),Io&&(hv=+Io[1])));var qI=hv,KI=qI,IH=Ga,WI=!!Object.getOwnPropertySymbols&&!IH(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KI&&KI<41}),NH=WI,QI=NH&&!Symbol.sham&&typeof Symbol.iterator=="symbol",LH=Iu,DH=_i,wH=eO,UH=QI,xH=Object,zI=UH?function(e){return typeof e=="symbol"}:function(e){var t=LH("Symbol");return DH(t)&&wH(t.prototype,xH(e))},FH=String,Sv=function(e){try{return FH(e)}catch{return"Object"}},$H=_i,VH=Sv,GH=TypeError,Gc=function(e){if($H(e))return e;throw GH(VH(e)+" is not a function")},BH=Gc,rO=function(e,t){var r=e[t];return r==null?void 0:BH(r)},nO=io,iO=_i,aO=Vc,kH=TypeError,jH=function(e,t){var r,n;if(t==="string"&&iO(r=e.toString)&&!aO(n=nO(r,e))||iO(r=e.valueOf)&&!aO(n=nO(r,e))||t!=="string"&&iO(r=e.toString)&&!aO(n=nO(r,e)))return n;throw kH("Can't convert object to primitive value")},oO={exports:{}},XI=Mi,HH=Object.defineProperty,sO=function(e,t){try{HH(XI,e,{value:t,configurable:!0,writable:!0})}catch{XI[e]=t}return t},YH=Mi,qH=sO,JI="__core-js_shared__",KH=YH[JI]||qH(JI,{}),uO=KH,ZI=uO;(oO.exports=function(e,t){return ZI[e]||(ZI[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var WH=GI,QH=Object,cO=function(e){return QH(WH(e))},zH=Oa,XH=cO,JH=zH({}.hasOwnProperty),ls=Object.hasOwn||function(t,r){return JH(XH(t),r)},ZH=Oa,eY=0,tY=Math.random(),rY=ZH(1 .toString),eN=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rY(++eY+tY,36)},nY=Mi,iY=oO.exports,tN=ls,aY=eN,rN=WI,nN=QI,Lf=iY("wks"),Bc=nY.Symbol,iN=Bc&&Bc.for,oY=nN?Bc:Bc&&Bc.withoutSetter||aY,ba=function(e){if(!tN(Lf,e)||!(rN||typeof Lf[e]=="string")){var t="Symbol."+e;rN&&tN(Bc,e)?Lf[e]=Bc[e]:nN&&iN?Lf[e]=iN(t):Lf[e]=oY(t)}return Lf[e]},sY=io,aN=Vc,oN=zI,uY=rO,cY=jH,lY=ba,fY=TypeError,_Y=lY("toPrimitive"),dY=function(e,t){if(!aN(e)||oN(e))return e;var r=uY(e,_Y),n;if(r){if(t===void 0&&(t="default"),n=sY(r,e,t),!aN(n)||oN(n))return n;throw fY("Can't convert object to primitive value")}return t===void 0&&(t="number"),cY(e,t)},pY=dY,hY=zI,sN=function(e){var t=pY(e,"string");return hY(t)?t:t+""},SY=Mi,uN=Vc,lO=SY.document,EY=uN(lO)&&uN(lO.createElement),Ev=function(e){return EY?lO.createElement(e):{}},vY=Mo,mY=Ga,TY=Ev,cN=!vY&&!mY(function(){return Object.defineProperty(TY("div"),"a",{get:function(){return 7}}).a!=7}),AY=Mo,gY=io,yY=WR,RY=QR,OY=pp,bY=sN,CY=ls,PY=cN,lN=Object.getOwnPropertyDescriptor;fv.f=AY?lN:function(t,r){if(t=OY(t),r=bY(r),PY)try{return lN(t,r)}catch{}if(CY(t,r))return RY(!gY(yY.f,t,r),t[r])};var Hs={},MY=Mo,IY=Ga,fN=MY&&IY(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),NY=Vc,LY=String,DY=TypeError,fs=function(e){if(NY(e))return e;throw DY(LY(e)+" is not an object")},wY=Mo,UY=cN,xY=fN,vv=fs,_N=sN,FY=TypeError,fO=Object.defineProperty,$Y=Object.getOwnPropertyDescriptor,_O="enumerable",dO="configurable",pO="writable";Hs.f=wY?xY?function(t,r,n){if(vv(t),r=_N(r),vv(n),typeof t=="function"&&r==="prototype"&&"value"in n&&pO in n&&!n[pO]){var i=$Y(t,r);i&&i[pO]&&(t[r]=n.value,n={configurable:dO in n?n[dO]:i[dO],enumerable:_O in n?n[_O]:i[_O],writable:!1})}return fO(t,r,n)}:fO:function(t,r,n){if(vv(t),r=_N(r),vv(n),UY)try{return fO(t,r,n)}catch{}if("get"in n||"set"in n)throw FY("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var VY=Mo,GY=Hs,BY=QR,mv=VY?function(e,t,r){return GY.f(e,t,BY(1,r))}:function(e,t,r){return e[t]=r,e},dN={exports:{}},hO=Mo,kY=ls,pN=Function.prototype,jY=hO&&Object.getOwnPropertyDescriptor,SO=kY(pN,"name"),HY=SO&&function(){}.name==="something",YY=SO&&(!hO||hO&&jY(pN,"name").configurable),hN={EXISTS:SO,PROPER:HY,CONFIGURABLE:YY},qY=Oa,KY=_i,EO=uO,WY=qY(Function.toString);KY(EO.inspectSource)||(EO.inspectSource=function(e){return WY(e)});var Tv=EO.inspectSource,QY=Mi,zY=_i,XY=Tv,SN=QY.WeakMap,JY=zY(SN)&&/native code/.test(XY(SN)),ZY=oO.exports,e8=eN,EN=ZY("keys"),vO=function(e){return EN[e]||(EN[e]=e8(e))},mO={},t8=JY,vN=Mi,TO=Oa,r8=Vc,n8=mv,AO=ls,gO=uO,i8=vO,a8=mO,mN="Object already initialized",yO=vN.TypeError,o8=vN.WeakMap,Av,hp,gv,s8=function(e){return gv(e)?hp(e):Av(e,{})},u8=function(e){return function(t){var r;if(!r8(t)||(r=hp(t)).type!==e)throw yO("Incompatible receiver, "+e+" required");return r}};if(t8||gO.state){var kc=gO.state||(gO.state=new o8),c8=TO(kc.get),TN=TO(kc.has),l8=TO(kc.set);Av=function(e,t){if(TN(kc,e))throw new yO(mN);return t.facade=e,l8(kc,e,t),t},hp=function(e){return c8(kc,e)||{}},gv=function(e){return TN(kc,e)}}else{var Df=i8("state");a8[Df]=!0,Av=function(e,t){if(AO(e,Df))throw new yO(mN);return t.facade=e,n8(e,Df,t),t},hp=function(e){return AO(e,Df)?e[Df]:{}},gv=function(e){return AO(e,Df)}}var RO={set:Av,get:hp,has:gv,enforce:s8,getterFor:u8},f8=Ga,_8=_i,yv=ls,OO=Mo,d8=hN.CONFIGURABLE,p8=Tv,AN=RO,h8=AN.enforce,S8=AN.get,Rv=Object.defineProperty,E8=OO&&!f8(function(){return Rv(function(){},"length",{value:8}).length!==8}),v8=String(String).split("String"),m8=dN.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!yv(e,"name")||d8&&e.name!==t)&&(OO?Rv(e,"name",{value:t,configurable:!0}):e.name=t),E8&&r&&yv(r,"arity")&&e.length!==r.arity&&Rv(e,"length",{value:r.arity});try{r&&yv(r,"constructor")&&r.constructor?OO&&Rv(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=h8(e);return yv(n,"source")||(n.source=v8.join(typeof t=="string"?t:"")),e};Function.prototype.toString=m8(function(){return _8(this)&&S8(this).source||p8(this)},"toString");var T8=_i,A8=Hs,g8=dN.exports,y8=sO,Sp=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(T8(r)&&g8(r,a,n),n.global)i?e[t]=r:y8(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:A8.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},gN={},R8=Math.ceil,O8=Math.floor,b8=Math.trunc||function(t){var r=+t;return(r>0?O8:R8)(r)},C8=b8,yN=function(e){var t=+e;return t!==t||t===0?0:C8(t)},P8=yN,M8=Math.max,I8=Math.min,N8=function(e,t){var r=P8(e);return r<0?M8(r+t,0):I8(r,t)},L8=yN,D8=Math.min,w8=function(e){return e>0?D8(L8(e),9007199254740991):0},U8=w8,RN=function(e){return U8(e.length)},x8=pp,F8=N8,$8=RN,ON=function(e){return function(t,r,n){var i=x8(t),a=$8(i),u=F8(n,a),c;if(e&&r!=r){for(;a>u;)if(c=i[u++],c!=c)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},V8={includes:ON(!0),indexOf:ON(!1)},G8=Oa,bO=ls,B8=pp,k8=V8.indexOf,j8=mO,bN=G8([].push),CN=function(e,t){var r=B8(e),n=0,i=[],a;for(a in r)!bO(j8,a)&&bO(r,a)&&bN(i,a);for(;t.length>n;)bO(r,a=t[n++])&&(~k8(i,a)||bN(i,a));return i},CO=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H8=CN,Y8=CO,q8=Y8.concat("length","prototype");gN.f=Object.getOwnPropertyNames||function(t){return H8(t,q8)};var PO={};PO.f=Object.getOwnPropertySymbols;var K8=Iu,W8=Oa,Q8=gN,z8=PO,X8=fs,J8=W8([].concat),Z8=K8("Reflect","ownKeys")||function(t){var r=Q8.f(X8(t)),n=z8.f;return n?J8(r,n(t)):r},PN=ls,eq=Z8,tq=fv,rq=Hs,nq=function(e,t,r){for(var n=eq(t),i=rq.f,a=tq.f,u=0;u<n.length;u++){var c=n[u];!PN(e,c)&&!(r&&PN(r,c))&&i(e,c,a(t,c))}},iq=Ga,aq=_i,oq=/#|\.prototype\./,Ep=function(e,t){var r=uq[sq(e)];return r==lq?!0:r==cq?!1:aq(t)?iq(t):!!t},sq=Ep.normalize=function(e){return String(e).replace(oq,".").toLowerCase()},uq=Ep.data={},cq=Ep.NATIVE="N",lq=Ep.POLYFILL="P",MN=Ep,MO=Mi,fq=fv.f,_q=mv,dq=Sp,pq=sO,hq=nq,Sq=MN,Nu=function(e,t){var r=e.target,n=e.global,i=e.stat,a,u,c,v,_,h;if(n?u=MO:i?u=MO[r]||pq(r,{}):u=(MO[r]||{}).prototype,u)for(c in t){if(_=t[c],e.dontCallGetSet?(h=fq(u,c),v=h&&h.value):v=u[c],a=Sq(n?c:r+(i?".":"#")+c,e.forced),!a&&v!==void 0){if(typeof _==typeof v)continue;hq(_,v)}(e.sham||v&&v.sham)&&_q(_,"sham",!0),dq(u,c,_,e)}},Eq=_i,vq=String,mq=TypeError,Tq=function(e){if(typeof e=="object"||Eq(e))return e;throw mq("Can't set "+vq(e)+" as a prototype")},Aq=Oa,gq=fs,yq=Tq,IN=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=Aq(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,a){return gq(i),yq(a),e?r(i,a):i.__proto__=a,i}}():void 0),Rq=Hs.f,Oq=ls,bq=ba,NN=bq("toStringTag"),IO=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Oq(e,NN)&&Rq(e,NN,{configurable:!0,value:t})},Cq=Iu,LN=Cq("document","documentElement"),vp={},Pq=CN,Mq=CO,DN=Object.keys||function(t){return Pq(t,Mq)},wN=Mo,Iq=Oa,Nq=io,Lq=Ga,NO=DN,Dq=PO,wq=WR,Uq=cO,xq=VI,wf=Object.assign,UN=Object.defineProperty,Fq=Iq([].concat),$q=!wf||Lq(function(){if(wN&&wf({b:1},wf(UN({},"a",{enumerable:!0,get:function(){UN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),wf({},e)[r]!=7||NO(wf({},t)).join("")!=n})?function(t,r){for(var n=Uq(t),i=arguments.length,a=1,u=Dq.f,c=wq.f;i>a;)for(var v=xq(arguments[a++]),_=u?Fq(NO(v),u(v)):NO(v),h=_.length,L=0,W;h>L;)W=_[L++],(!wN||Nq(c,v,W))&&(n[W]=v[W]);return n}:wf,Vq=Nu,xN=$q;Vq({target:"Object",stat:!0,arity:2,forced:Object.assign!==xN},{assign:xN});const Gq={setProfileProperties(){},trackEvent(){},reset(){console.warn("Reset method not implemented for analytics context.")}},FN=null,MIe=({children:e,analyticsService:t})=>jsx(FN.Provider,Object.assign({value:t||Gq},{children:e}));function Bq(){return useContext(FN)}var $N={},kq=Mo,jq=fN,Hq=Hs,Yq=fs,qq=pp,Kq=DN;$N.f=kq&&!jq?Object.defineProperties:function(t,r){Yq(t);for(var n=qq(r),i=Kq(r),a=i.length,u=0,c;a>u;)Hq.f(t,c=i[u++],n[c]);return t};var Wq=fs,Qq=$N,VN=CO,zq=mO,Xq=LN,Jq=Ev,Zq=vO,GN=">",BN="<",LO="prototype",DO="script",kN=Zq("IE_PROTO"),wO=function(){},jN=function(e){return BN+DO+GN+e+BN+"/"+DO+GN},HN=function(e){e.write(jN("")),e.close();var t=e.parentWindow.Object;return e=null,t},e2=function(){var e=Jq("iframe"),t="java"+DO+":",r;return e.style.display="none",Xq.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(jN("document.F=Object")),r.close(),r.F},Ov,bv=function(){try{Ov=new ActiveXObject("htmlfile")}catch{}bv=typeof document<"u"?document.domain&&Ov?HN(Ov):e2():HN(Ov);for(var e=VN.length;e--;)delete bv[LO][VN[e]];return bv()};zq[kN]=!0;var YN=Object.create||function(t,r){var n;return t!==null?(wO[LO]=Wq(t),n=new wO,wO[LO]=null,n[kN]=t):n=bv(),r===void 0?n:Qq.f(n,r)},t2=ba,r2=YN,n2=Hs.f,UO=t2("unscopables"),xO=Array.prototype;xO[UO]==null&&n2(xO,UO,{configurable:!0,value:r2(null)});var i2=function(e){xO[UO][e]=!0},a2=Ga,o2=!a2(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),s2=ls,u2=_i,c2=cO,l2=vO,f2=o2,qN=l2("IE_PROTO"),FO=Object,_2=FO.prototype,KN=f2?FO.getPrototypeOf:function(e){var t=c2(e);if(s2(t,qN))return t[qN];var r=t.constructor;return u2(r)&&t instanceof r?r.prototype:t instanceof FO?_2:null},d2=Ga,p2=_i,WN=KN,h2=Sp,S2=ba,$O=S2("iterator"),QN=!1,jc,VO,GO;[].keys&&(GO=[].keys(),"next"in GO?(VO=WN(WN(GO)),VO!==Object.prototype&&(jc=VO)):QN=!0);var E2=jc==null||d2(function(){var e={};return jc[$O].call(e)!==e});E2&&(jc={}),p2(jc[$O])||h2(jc,$O,function(){return this});var zN={IteratorPrototype:jc,BUGGY_SAFARI_ITERATORS:QN},v2=zN.IteratorPrototype,m2=YN,T2=QR,A2=IO,g2=vp,y2=function(){return this},R2=function(e,t,r,n){var i=t+" Iterator";return e.prototype=m2(v2,{next:T2(+!n,r)}),A2(e,i,!1),g2[i]=y2,e},O2=Nu,b2=io,XN=hN,C2=_i,P2=R2,JN=KN,ZN=IN,M2=IO,I2=mv,BO=Sp,N2=ba,L2=vp,eL=zN,D2=XN.PROPER,w2=XN.CONFIGURABLE,tL=eL.IteratorPrototype,Cv=eL.BUGGY_SAFARI_ITERATORS,mp=N2("iterator"),rL="keys",Tp="values",nL="entries",U2=function(){return this},x2=function(e,t,r,n,i,a,u){P2(r,t,n);var c=function(qe){if(qe===i&&W)return W;if(!Cv&&qe in h)return h[qe];switch(qe){case rL:return function(){return new r(this,qe)};case Tp:return function(){return new r(this,qe)};case nL:return function(){return new r(this,qe)}}return function(){return new r(this)}},v=t+" Iterator",_=!1,h=e.prototype,L=h[mp]||h["@@iterator"]||i&&h[i],W=!Cv&&L||c(i),Te=t=="Array"&&h.entries||L,me,Oe,He;if(Te&&(me=JN(Te.call(new e)),me!==Object.prototype&&me.next&&(JN(me)!==tL&&(ZN?ZN(me,tL):C2(me[mp])||BO(me,mp,U2)),M2(me,v,!0))),D2&&i==Tp&&L&&L.name!==Tp&&(w2?I2(h,"name",Tp):(_=!0,W=function(){return b2(L,this)})),i)if(Oe={values:c(Tp),keys:a?W:c(rL),entries:c(nL)},u)for(He in Oe)(Cv||_||!(He in h))&&BO(h,He,Oe[He]);else O2({target:t,proto:!0,forced:Cv||_},Oe);return h[mp]!==W&&BO(h,mp,W,{name:i}),L2[t]=W,Oe},F2=pp,kO=i2,iL=vp,aL=RO,$2=Hs.f,V2=x2,G2=Mo,oL="Array Iterator",B2=aL.set,k2=aL.getterFor(oL),j2=V2(Array,"Array",function(e,t){B2(this,{type:oL,target:F2(e),index:0,kind:t})},function(){var e=k2(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),sL=iL.Arguments=iL.Array;if(kO("keys"),kO("values"),kO("entries"),G2&&sL.name!=="values")try{$2(sL,"name",{value:"values"})}catch{}var H2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Y2=Ev,jO=Y2("span").classList,uL=jO&&jO.constructor&&jO.constructor.prototype,q2=uL===Object.prototype?void 0:uL,cL=Mi,lL=H2,K2=q2,Ap=j2,HO=mv,fL=ba,YO=fL("iterator"),_L=fL("toStringTag"),qO=Ap.values,dL=function(e,t){if(e){if(e[YO]!==qO)try{HO(e,YO,qO)}catch{e[YO]=qO}if(e[_L]||HO(e,_L,t),lL[t]){for(var r in Ap)if(e[r]!==Ap[r])try{HO(e,r,Ap[r])}catch{e[r]=Ap[r]}}}};for(var KO in lL)dL(cL[KO]&&cL[KO].prototype,KO);dL(K2,"DOMTokenList");const pL=aA.createContext({customProperties:{},prefixArray:[],trackEvent(){},setProfileProperties(){},updateCustomProperty(){},clearCustomProperty(){},updateCustomProperties(){},clearCustomProperties(){},setPrefixArray(){},pushPrefix(){},popPrefix(){},reset(){console.warn("Reset method not implemented for custom analytics context.")}}),IIe=({children:e})=>{const{trackEvent:t,setProfileProperties:r}=Bq(),[n,i]=useState({}),L={trackEvent:(W,Te=void 0,me=void 0)=>{const Oe=[W],He=Object.assign(Object.assign({},n),Te);Object.keys(He).length&&Oe.push(He),me&&Oe.push(me),t(...Oe)},setProfileProperties:r,customProperties:n,updateCustomProperty:(W,Te)=>{i(me=>Object.assign(Object.assign({},me),{[W]:Te}))},clearCustomProperty:W=>{n==null||delete n[W],i(Object.assign({},n))},updateCustomProperties:W=>{i(Te=>Object.assign(Object.assign({},Te),W))},clearCustomProperties:()=>{i({})},reset:()=>{console.warn("Reset method not implemented for custom analytics context.")}};return jsx(pL.Provider,Object.assign({value:L},{children:e}))};function NIe(){return useContext(pL)}var Uf=p(6934),W2=p(5250),Q2=XR,z2=Mi,Pv=Q2(z2.process)=="process",X2=Iu,J2=Hs,Z2=ba,eK=Mo,hL=Z2("species"),tK=function(e){var t=X2(e),r=J2.f;eK&&t&&!t[hL]&&r(t,hL,{configurable:!0,get:function(){return this}})},rK=eO,nK=TypeError,iK=function(e,t){if(rK(t,e))return e;throw nK("Incorrect invocation")},aK=ba,oK=aK("toStringTag"),SL={};SL[oK]="z";var sK=String(SL)==="[object z]",uK=sK,cK=_i,Mv=XR,lK=ba,fK=lK("toStringTag"),_K=Object,dK=Mv(function(){return arguments}())=="Arguments",pK=function(e,t){try{return e[t]}catch{}},EL=uK?Mv:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=pK(t=_K(e),fK))=="string"?r:dK?Mv(t):(n=Mv(t))=="Object"&&cK(t.callee)?"Arguments":n},hK=Oa,SK=Ga,vL=_i,EK=EL,vK=Iu,mK=Tv,mL=function(){},TK=[],TL=vK("Reflect","construct"),WO=/^\s*(?:class|function)\b/,AK=hK(WO.exec),gK=!WO.exec(mL),gp=function(t){if(!vL(t))return!1;try{return TL(mL,TK,t),!0}catch{return!1}},AL=function(t){if(!vL(t))return!1;switch(EK(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gK||!!AK(WO,mK(t))}catch{return!0}};AL.sham=!0;var yK=!TL||SK(function(){var e;return gp(gp.call)||!gp(Object)||!gp(function(){e=!0})||e})?AL:gp,RK=yK,OK=Sv,bK=TypeError,CK=function(e){if(RK(e))return e;throw bK(OK(e)+" is not a constructor")},gL=fs,PK=CK,MK=ba,IK=MK("species"),NK=function(e,t){var r=gL(e).constructor,n;return r===void 0||(n=gL(r)[IK])==null?t:PK(n)},LK=_v,yL=Function.prototype,RL=yL.apply,OL=yL.call,DK=typeof Reflect=="object"&&Reflect.apply||(LK?OL.bind(RL):function(){return OL.apply(RL,arguments)}),bL=Oa,wK=Gc,UK=_v,xK=bL(bL.bind),QO=function(e,t){return wK(e),t===void 0?e:UK?xK(e,t):function(){return e.apply(t,arguments)}},FK=Oa,$K=FK([].slice),VK=TypeError,GK=function(e,t){if(e<t)throw VK("Not enough arguments");return e},BK=pv,CL=/(?:ipad|iphone|ipod).*applewebkit/i.test(BK),Ba=Mi,kK=DK,jK=QO,PL=_i,HK=ls,YK=Ga,ML=LN,qK=$K,IL=Ev,KK=GK,WK=CL,QK=Pv,zO=Ba.setImmediate,XO=Ba.clearImmediate,zK=Ba.process,JO=Ba.Dispatch,XK=Ba.Function,NL=Ba.MessageChannel,JK=Ba.String,ZO=0,yp={},LL="onreadystatechange",Rp,Hc,eb,tb;try{Rp=Ba.location}catch{}var rb=function(e){if(HK(yp,e)){var t=yp[e];delete yp[e],t()}},nb=function(e){return function(){rb(e)}},DL=function(e){rb(e.data)},wL=function(e){Ba.postMessage(JK(e),Rp.protocol+"//"+Rp.host)};(!zO||!XO)&&(zO=function(t){KK(arguments.length,1);var r=PL(t)?t:XK(t),n=qK(arguments,1);return yp[++ZO]=function(){kK(r,void 0,n)},Hc(ZO),ZO},XO=function(t){delete yp[t]},QK?Hc=function(e){zK.nextTick(nb(e))}:JO&&JO.now?Hc=function(e){JO.now(nb(e))}:NL&&!WK?(eb=new NL,tb=eb.port2,eb.port1.onmessage=DL,Hc=jK(tb.postMessage,tb)):Ba.addEventListener&&PL(Ba.postMessage)&&!Ba.importScripts&&Rp&&Rp.protocol!=="file:"&&!YK(wL)?(Hc=wL,Ba.addEventListener("message",DL,!1)):LL in IL("script")?Hc=function(e){ML.appendChild(IL("script"))[LL]=function(){ML.removeChild(this),rb(e)}}:Hc=function(e){setTimeout(nb(e),0)});var UL={set:zO,clear:XO},ZK=pv,eW=Mi,tW=/ipad|iphone|ipod/i.test(ZK)&&eW.Pebble!==void 0,rW=pv,nW=/web0s(?!.*chrome)/i.test(rW),Yc=Mi,xL=QO,iW=fv.f,ib=UL.set,aW=CL,oW=tW,sW=nW,ab=Pv,FL=Yc.MutationObserver||Yc.WebKitMutationObserver,$L=Yc.document,VL=Yc.process,Iv=Yc.Promise,GL=iW(Yc,"queueMicrotask"),BL=GL&&GL.value,Op,qc,bp,xf,ob,sb,Nv,kL;BL||(Op=function(){var e,t;for(ab&&(e=VL.domain)&&e.exit();qc;){t=qc.fn,qc=qc.next;try{t()}catch(r){throw qc?xf():bp=void 0,r}}bp=void 0,e&&e.enter()},!aW&&!ab&&!sW&&FL&&$L?(ob=!0,sb=$L.createTextNode(""),new FL(Op).observe(sb,{characterData:!0}),xf=function(){sb.data=ob=!ob}):!oW&&Iv&&Iv.resolve?(Nv=Iv.resolve(void 0),Nv.constructor=Iv,kL=xL(Nv.then,Nv),xf=function(){kL(Op)}):ab?xf=function(){VL.nextTick(Op)}:(ib=xL(ib,Yc),xf=function(){ib(Op)}));var uW=BL||function(e){var t={fn:e,next:void 0};bp&&(bp.next=t),qc||(qc=t,xf()),bp=t},cW=Mi,lW=function(e,t){var r=cW.console;r&&r.error&&(arguments.length==1?r.error(e):r.error(e,t))},ub=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},jL=function(){this.head=null,this.tail=null};jL.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var fW=jL,_W=Mi,Lv=_W.Promise,HL=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",dW=HL,pW=Pv,hW=!dW&&!pW&&typeof window=="object"&&typeof document=="object",SW=Mi,Cp=Lv,EW=_i,vW=MN,mW=Tv,TW=ba,AW=hW,gW=HL,cb=qI;Cp&&Cp.prototype;var yW=TW("species"),lb=!1,YL=EW(SW.PromiseRejectionEvent),RW=vW("Promise",function(){var e=mW(Cp),t=e!==String(Cp);if(!t&&cb===66)return!0;if(!cb||cb<51||!/native code/.test(e)){var r=new Cp(function(a){a(1)}),n=function(a){a(function(){},function(){})},i=r.constructor={};if(i[yW]=n,lb=r.then(function(){})instanceof n,!lb)return!0}return!t&&(AW||gW)&&!YL}),Pp={CONSTRUCTOR:RW,REJECTION_EVENT:YL,SUBCLASSING:lb},Ff={},qL=Gc,OW=function(e){var t,r;this.promise=new e(function(n,i){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=i}),this.resolve=qL(t),this.reject=qL(r)};Ff.f=function(e){return new OW(e)};var bW=Nu,Dv=Pv,Lu=Mi,$f=io,KL=Sp,WL=IN,CW=IO,PW=tK,MW=Gc,wv=_i,IW=Vc,NW=iK,LW=NK,QL=UL.set,fb=uW,DW=lW,wW=ub,UW=fW,zL=RO,Uv=Lv,_b=Pp,XL=Ff,xv="Promise",JL=_b.CONSTRUCTOR,xW=_b.REJECTION_EVENT,FW=_b.SUBCLASSING,db=zL.getterFor(xv),$W=zL.set,Vf=Uv&&Uv.prototype,Kc=Uv,Fv=Vf,ZL=Lu.TypeError,pb=Lu.document,hb=Lu.process,Sb=XL.f,VW=Sb,GW=!!(pb&&pb.createEvent&&Lu.dispatchEvent),e0="unhandledrejection",BW="rejectionhandled",t0=0,r0=1,kW=2,Eb=1,n0=2,$v,i0,jW,a0,o0=function(e){var t;return IW(e)&&wv(t=e.then)?t:!1},s0=function(e,t){var r=t.value,n=t.state==r0,i=n?e.ok:e.fail,a=e.resolve,u=e.reject,c=e.domain,v,_,h;try{i?(n||(t.rejection===n0&&YW(t),t.rejection=Eb),i===!0?v=r:(c&&c.enter(),v=i(r),c&&(c.exit(),h=!0)),v===e.promise?u(ZL("Promise-chain cycle")):(_=o0(v))?$f(_,v,a,u):a(v)):u(r)}catch(L){c&&!h&&c.exit(),u(L)}},u0=function(e,t){e.notified||(e.notified=!0,fb(function(){for(var r=e.reactions,n;n=r.get();)s0(n,e);e.notified=!1,t&&!e.rejection&&HW(e)}))},c0=function(e,t,r){var n,i;GW?(n=pb.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),Lu.dispatchEvent(n)):n={promise:t,reason:r},!xW&&(i=Lu["on"+e])?i(n):e===e0&&DW("Unhandled promise rejection",r)},HW=function(e){$f(QL,Lu,function(){var t=e.facade,r=e.value,n=l0(e),i;if(n&&(i=wW(function(){Dv?hb.emit("unhandledRejection",r,t):c0(e0,t,r)}),e.rejection=Dv||l0(e)?n0:Eb,i.error))throw i.value})},l0=function(e){return e.rejection!==Eb&&!e.parent},YW=function(e){$f(QL,Lu,function(){var t=e.facade;Dv?hb.emit("rejectionHandled",t):c0(BW,t,e.value)})},Gf=function(e,t,r){return function(n){e(t,n,r)}},Bf=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=kW,u0(e,!0))},vb=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw ZL("Promise can't be resolved itself");var n=o0(t);n?fb(function(){var i={done:!1};try{$f(n,t,Gf(vb,i,e),Gf(Bf,i,e))}catch(a){Bf(i,a,e)}}):(e.value=t,e.state=r0,u0(e,!1))}catch(i){Bf({done:!1},i,e)}}};if(JL&&(Kc=function(t){NW(this,Fv),MW(t),$f($v,this);var r=db(this);try{t(Gf(vb,r),Gf(Bf,r))}catch(n){Bf(r,n)}},Fv=Kc.prototype,$v=function(t){$W(this,{type:xv,done:!1,notified:!1,parent:!1,reactions:new UW,rejection:!1,state:t0,value:void 0})},$v.prototype=KL(Fv,"then",function(t,r){var n=db(this),i=Sb(LW(this,Kc));return n.parent=!0,i.ok=wv(t)?t:!0,i.fail=wv(r)&&r,i.domain=Dv?hb.domain:void 0,n.state==t0?n.reactions.add(i):fb(function(){s0(i,n)}),i.promise}),i0=function(){var e=new $v,t=db(e);this.promise=e,this.resolve=Gf(vb,t),this.reject=Gf(Bf,t)},XL.f=Sb=function(e){return e===Kc||e===jW?new i0(e):VW(e)},wv(Uv)&&Vf!==Object.prototype)){a0=Vf.then,FW||KL(Vf,"then",function(t,r){var n=this;return new Kc(function(i,a){$f(a0,n,i,a)}).then(t,r)},{unsafe:!0});try{delete Vf.constructor}catch{}WL&&WL(Vf,Fv)}bW({global:!0,constructor:!0,wrap:!0,forced:JL},{Promise:Kc}),CW(Kc,xv,!1),PW(xv);var qW=ba,KW=vp,WW=qW("iterator"),QW=Array.prototype,zW=function(e){return e!==void 0&&(KW.Array===e||QW[WW]===e)},XW=EL,f0=rO,JW=vp,ZW=ba,eQ=ZW("iterator"),_0=function(e){if(e!=null)return f0(e,eQ)||f0(e,"@@iterator")||JW[XW(e)]},tQ=io,rQ=Gc,nQ=fs,iQ=Sv,aQ=_0,oQ=TypeError,sQ=function(e,t){var r=arguments.length<2?aQ(e):t;if(rQ(r))return nQ(tQ(r,e));throw oQ(iQ(e)+" is not iterable")},uQ=io,d0=fs,cQ=rO,lQ=function(e,t,r){var n,i;d0(e);try{if(n=cQ(e,"return"),!n){if(t==="throw")throw r;return r}n=uQ(n,e)}catch(a){i=!0,n=a}if(t==="throw")throw r;if(i)throw n;return d0(n),r},fQ=QO,_Q=io,dQ=fs,pQ=Sv,hQ=zW,SQ=RN,p0=eO,EQ=sQ,vQ=_0,h0=lQ,mQ=TypeError,Vv=function(e,t){this.stopped=e,this.result=t},S0=Vv.prototype,E0=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),a=!!(r&&r.IS_RECORD),u=!!(r&&r.IS_ITERATOR),c=!!(r&&r.INTERRUPTED),v=fQ(t,n),_,h,L,W,Te,me,Oe,He=function(We){return _&&h0(_,"normal",We),new Vv(!0,We)},qe=function(We){return i?(dQ(We),c?v(We[0],We[1],He):v(We[0],We[1])):c?v(We,He):v(We)};if(a)_=e.iterator;else if(u)_=e;else{if(h=vQ(e),!h)throw mQ(pQ(e)+" is not iterable");if(hQ(h)){for(L=0,W=SQ(e);W>L;L++)if(Te=qe(e[L]),Te&&p0(S0,Te))return Te;return new Vv(!1)}_=EQ(e,h)}for(me=a?e.next:_.next;!(Oe=_Q(me,_)).done;){try{Te=qe(Oe.value)}catch(We){h0(_,"throw",We)}if(typeof Te=="object"&&Te&&p0(S0,Te))return Te}return new Vv(!1)},TQ=ba,v0=TQ("iterator"),m0=!1;try{var AQ=0,T0={next:function(){return{done:!!AQ++}},return:function(){m0=!0}};T0[v0]=function(){return this},Array.from(T0,function(){throw 2})}catch{}var gQ=function(e,t){if(!t&&!m0)return!1;var r=!1;try{var n={};n[v0]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},yQ=Lv,RQ=gQ,OQ=Pp.CONSTRUCTOR,A0=OQ||!RQ(function(e){yQ.all(e).then(void 0,function(){})}),bQ=Nu,CQ=io,PQ=Gc,MQ=Ff,IQ=ub,NQ=E0,LQ=A0;bQ({target:"Promise",stat:!0,forced:LQ},{all:function(t){var r=this,n=MQ.f(r),i=n.resolve,a=n.reject,u=IQ(function(){var c=PQ(r.resolve),v=[],_=0,h=1;NQ(t,function(L){var W=_++,Te=!1;h++,CQ(c,r,L).then(function(me){Te||(Te=!0,v[W]=me,--h||i(v))},a)}),--h||i(v)});return u.error&&a(u.value),n.promise}});var DQ=Nu,wQ=Pp.CONSTRUCTOR,mb=Lv,UQ=Iu,xQ=_i,FQ=Sp,g0=mb&&mb.prototype;if(DQ({target:"Promise",proto:!0,forced:wQ,real:!0},{catch:function(e){return this.then(void 0,e)}}),xQ(mb)){var y0=UQ("Promise").prototype.catch;g0.catch!==y0&&FQ(g0,"catch",y0,{unsafe:!0})}var $Q=Nu,VQ=io,GQ=Gc,BQ=Ff,kQ=ub,jQ=E0,HQ=A0;$Q({target:"Promise",stat:!0,forced:HQ},{race:function(t){var r=this,n=BQ.f(r),i=n.reject,a=kQ(function(){var u=GQ(r.resolve);jQ(t,function(c){VQ(u,r,c).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}});var YQ=Nu,qQ=io,KQ=Ff,WQ=Pp.CONSTRUCTOR;YQ({target:"Promise",stat:!0,forced:WQ},{reject:function(t){var r=KQ.f(this);return qQ(r.reject,void 0,t),r.promise}});var QQ=fs,zQ=Vc,XQ=Ff,JQ=function(e,t){if(QQ(e),zQ(t)&&t.constructor===e)return t;var r=XQ.f(e),n=r.resolve;return n(t),r.promise},ZQ=Nu,e3=Iu,t3=Pp.CONSTRUCTOR,r3=JQ;e3("Promise"),ZQ({target:"Promise",stat:!0,forced:t3},{resolve:function(t){return r3(this,t)}});function n3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function R0(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})}class Tb{static initializeGoogleTagManager(t){return R0(this,void 0,void 0,function*(){return new Tb(t).init()})}constructor({gaKey:t,eventMap:r,dataLayerName:n}){this.dataLayerName="",this.gaKey=t,this.eventMap=r||[],this.dataLayerName=n||"dataLayer",window[this.dataLayerName]=window[this.dataLayerName]||[],this.dataLayer=window[this.dataLayerName]}init(){var t;return R0(this,void 0,void 0,function*(){this.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});const r=document.createElement("script");return r.async=!0,r.src=`https://www.googletagmanager.com/gtm.js?id=${this.gaKey}${this.dataLayerName!=="dataLayer"?`&l=${this.dataLayerName}`:""}`,(t=document.head.parentNode)===null||t===void 0||t.append(r),new Promise((n,i)=>{r.onload=()=>n(this),r.onerror=i})})}setProfileProperties(t){}trackEvent(t,r={}){const n=this.eventMap.find(i=>i.key===t);n&&this.dataLayer.push(Object.assign(Object.assign({},r),{event:n.value}))}reset(){console.warn("Reset method not implemented for google tag manager.")}}class i3{constructor(t,r,n){Uf.init(t.key),r&&Uf.register(r),n&&this.setProfileProperties(n)}setProfileProperties(t){var{id:r}=t,n=n3(t,["id"]);r&&Uf.identify(r),Uf.people.set(n)}trackEvent(t,r){Uf.track(t,r)}reset(){Uf.reset()}}class a3{constructor(t=[]){this.services=t,(0,W2.bindAll)(this,"trackEvent","append")}setProfileProperties(t){this.services.forEach(r=>r.setProfileProperties(t))}trackEvent(t,r){this.services.forEach(n=>n.trackEvent(t,r))}append(t){this.services.push(t)}reset(){this.services.forEach(t=>t.reset())}}function o3(e,t,r){const n=new a3;return e&&(e?.mixPanel&&e?.mixPanel.length&&e.mixPanel.forEach(i=>{n.append(new i3(i,t,r))}),e?.googleTagManager&&e.googleTagManager.length&&e.googleTagManager.forEach(i=>n.append(new Tb(i)))),n}class LIe{constructor({script:t}){var r;if(t){const n=document.createElement("script");n.async=!0,n.src=t,(r=document.head.parentNode)===null||r===void 0||r.append(n),this.adobeAnalytics=new Promise((i,a)=>{n.onload=()=>i(this),n.onerror=()=>a("Failed to inject script")})}else throw new Error("Adobe analytics is not initialized")}setProfileProperties(t){console.warn("SetProfileProperties method is not implemented for adobe analytics")}trackEvent(t,r={}){console.warn("TrackEvent method is not implemented for adobe analytics")}reset(){console.warn("Reset method is not implemented for adobe analytics")}}var kf;(function(e){e.one="1.0.0"})(kf||(kf={}));const Mp="orchestrator:analytics-service",s3={id:Mp,dependencies:{featureServices:{[Wn]:vi.one}},create:({featureServices:e})=>{const t=e[Wn],{client:r,app:n,slug:i,frontendEnvironment:a}=t.getClientContext(),{version:u}=t.getMetadata(),c=o3(a?.analytics||{},{client:r,app:n,clientSlug:i,appVersion:u},{});return t.getStore().subscribe(()=>{var v,_,h,L;const W=t.getUser();!((_=(v=W?.tokenData)===null||v===void 0?void 0:v.idToken)===null||_===void 0)&&_.payload&&c.setProfileProperties({id:W.tokenData.idToken.payload["custom:bwellFhirPersonId"],clientPersonId:W.tokenData.idToken.payload["custom:clientFhirPersonId"],clientPatientId:W.tokenData.idToken.payload["custom:clientFhirPatientId"],isInternalTestUser:(L=(h=W.meta)===null||h===void 0?void 0:h.tag)===null||L===void 0?void 0:L.some(Te=>Te.code==="bwelltestuser")})}),{[kf.one]:()=>({featureService:c})}}};var Ab=p(8577),Gv;(function(e){e.one="1.0.0"})(Gv||(Gv={}));const O0="orchestrator:auth-service",u3={id:O0,dependencies:{featureServices:{[za]:Nr.one},externals:{}},create:({featureServices:e})=>{const t=e[za],r=new Ab.Auth(t);return{[Gv.one]:()=>({featureService:r})}}};function DIe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function wIe(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})}function No(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function c3(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var Lo=p(934),_s=p(9226),Do,Ip,ds;const{ROUTE_NAVIGATION_DELEGATE:l3}=_s.ErrorCode;class f3{constructor(){Do.add(this),Ip.set(this,void 0)}setDelegate(t){c3(this,Ip,t,"f")}navigate(t,r){return typeof t=="number"?No(this,Do,"a",ds).navigate(t):No(this,Do,"a",ds).navigate(t,r)}has(t){return No(this,Do,"a",ds).has(t)}getPath(t){return No(this,Do,"a",ds).getPath(t)}getHref(t){return No(this,Do,"a",ds).getHref(t)}getSearchParams(){return No(this,Do,"a",ds).getSearchParams()}setSearchParams(t,r){No(this,Do,"a",ds).setSearchParams(t,r)}getUrlParams(){return No(this,Do,"a",ds).getUrlParams()}getId(t){return No(this,Do,"a",ds).getId(t)}}Ip=new WeakMap,Do=new WeakSet,ds=function(){if(!No(this,Ip,"f"))throw new Lo.b("route navigation delegate has not been set",{errorCode:l3});return No(this,Ip,"f")};var Bv;(function(e){e.one="1.0.0"})(Bv||(Bv={}));const b0="orchestrator:navigation-service",_3={id:b0,create:()=>{const e=new f3;return{[Bv.one]:()=>({featureService:e})}}},lr=e=>typeof e=="string",Np=()=>{let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r},C0=e=>e==null?"":""+e,d3=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},p3=/###/g,P0=e=>e&&e.indexOf("###")>-1?e.replace(p3,"."):e,M0=e=>!e||lr(e),Lp=(e,t,r)=>{const n=lr(t)?t.split("."):t;let i=0;for(;i<n.length-1;){if(M0(e))return{};const a=P0(n[i]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++i}return M0(e)?{}:{obj:e,k:P0(n[i])}},I0=(e,t,r)=>{const{obj:n,k:i}=Lp(e,t,Object);if(n!==void 0||t.length===1){n[i]=r;return}let a=t[t.length-1],u=t.slice(0,t.length-1),c=Lp(e,u,Object);for(;c.obj===void 0&&u.length;)a=`${u[u.length-1]}.${a}`,u=u.slice(0,u.length-1),c=Lp(e,u,Object),c?.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=r},h3=(e,t,r,n)=>{const{obj:i,k:a}=Lp(e,t,Object);i[a]=i[a]||[],i[a].push(r)},kv=(e,t)=>{const{obj:r,k:n}=Lp(e,t);if(!!r&&!!Object.prototype.hasOwnProperty.call(r,n))return r[n]},S3=(e,t,r)=>{const n=kv(e,r);return n!==void 0?n:kv(t,r)},N0=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?lr(e[n])||e[n]instanceof String||lr(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):N0(e[n],t[n],r):e[n]=t[n]);return e},jf=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var E3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const v3=e=>lr(e)?e.replace(/[&<>"'\/]/g,t=>E3[t]):e;class m3{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const T3=[" ",",","?","!",";"],A3=new m3(20),g3=(e,t,r)=>{t=t||"",r=r||"";const n=T3.filter(u=>t.indexOf(u)<0&&r.indexOf(u)<0);if(n.length===0)return!0;const i=A3.getRegExp(`(${n.map(u=>u==="?"?"\\?":u).join("|")})`);let a=!i.test(e);if(!a){const u=e.indexOf(r);u>0&&!i.test(e.substring(0,u))&&(a=!0)}return a},gb=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const n=t.split(r);let i=e;for(let a=0;a<n.length;){if(!i||typeof i!="object")return;let u,c="";for(let v=a;v<n.length;++v)if(v!==a&&(c+=r),c+=n[v],u=i[c],u!==void 0){if(["string","number","boolean"].indexOf(typeof u)>-1&&v<n.length-1)continue;a+=v-a+1;break}i=u}return i},jv=e=>e?.replace("_","-"),y3={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Hv{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||y3,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,i){return i&&!this.debug?null:(lr(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Hv(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Hv(this.logger,t)}}var ps=new Hv;class Yv{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(t,r){if(!!this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(u=>{let[c,v]=u;for(let _=0;_<v;_++)c(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(u=>{let[c,v]=u;for(let _=0;_<v;_++)c.apply(c,[t,...n])})}}class L0 extends Yv{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,r],n&&(Array.isArray(n)?c.push(...n):lr(n)&&a?c.push(...n.split(a)):c.push(n)));const v=kv(this.data,c);return!v&&!r&&!n&&t.indexOf(".")>-1&&(t=c[0],r=c[1],n=c.slice(2).join(".")),v||!u||!lr(n)?v:gb(this.data?.[t]?.[r],n,a)}addResource(t,r,n,i){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=[t,r];n&&(c=c.concat(u?n.split(u):n)),t.indexOf(".")>-1&&(c=t.split("."),i=r,r=c[1]),this.addNamespaces(r),I0(this.data,c,i),a.silent||this.emit("added",t,r,n,i)}addResources(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(lr(n[a])||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});i.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,i,a){let u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,r];t.indexOf(".")>-1&&(c=t.split("."),i=n,n=r,r=c[1]),this.addNamespaces(r);let v=kv(this.data,c)||{};u.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?N0(v,n,a):v={...v,...n},I0(this.data,c,v),u.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var D0={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(a=>{t=this.processors[a]?.process(t,r,n,i)??t}),t}};const w0={},U0=e=>!lr(e)&&typeof e!="boolean"&&typeof e!="number";class qv extends Yv{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),d3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ps.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return t==null?!1:this.resolve(t,r)?.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const u=n&&t.indexOf(n)>-1,c=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!g3(t,n,i);if(u&&!c){const v=t.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:t,namespaces:lr(a)?[a]:a};const _=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(_[0])>-1)&&(a=_.shift()),t=_.join(i)}return{key:t,namespaces:lr(a)?[a]:a}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:u,namespaces:c}=this.extractFromKey(t[t.length-1],r),v=c[c.length-1],_=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_?.toLowerCase()==="cimode"){if(h){const pi=r.nsSeparator||this.options.nsSeparator;return i?{res:`${v}${pi}${u}`,usedKey:u,exactUsedKey:u,usedLng:_,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:`${v}${pi}${u}`}return i?{res:u,usedKey:u,exactUsedKey:u,usedLng:_,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:u}const L=this.resolve(t,r);let W=L?.res;const Te=L?.usedKey||u,me=L?.exactUsedKey||u,Oe=["[object Number]","[object Function]","[object RegExp]"],He=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,qe=!this.i18nFormat||this.i18nFormat.handleAsObject,We=r.count!==void 0&&!lr(r.count),ct=qv.hasDefaultValue(r),yt=We?this.pluralResolver.getSuffix(_,r.count,r):"",jt=r.ordinal&&We?this.pluralResolver.getSuffix(_,r.count,{ordinal:!1}):"",dr=We&&!r.ordinal&&r.count===0,Sr=dr&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${yt}`]||r[`defaultValue${jt}`]||r.defaultValue;let an=W;qe&&!W&&ct&&(an=Sr);const Ia=U0(an),JT=Object.prototype.toString.apply(an);if(qe&&an&&Ia&&Oe.indexOf(JT)<0&&!(lr(He)&&Array.isArray(an))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const pi=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Te,an,{...r,ns:c}):`key '${u} (${this.language})' returned an object instead of string.`;return i?(L.res=pi,L.usedParams=this.getUsedParamsDetails(r),L):pi}if(a){const pi=Array.isArray(an),ni=pi?[]:{},k_=pi?me:Te;for(const Ps in an)if(Object.prototype.hasOwnProperty.call(an,Ps)){const au=`${k_}${a}${Ps}`;ct&&!W?ni[Ps]=this.translate(au,{...r,defaultValue:U0(Sr)?Sr[Ps]:void 0,joinArrays:!1,ns:c}):ni[Ps]=this.translate(au,{...r,joinArrays:!1,ns:c}),ni[Ps]===au&&(ni[Ps]=an[Ps])}W=ni}}else if(qe&&lr(He)&&Array.isArray(W))W=W.join(He),W&&(W=this.extendTranslation(W,t,r,n));else{let pi=!1,ni=!1;!this.isValidLookup(W)&&ct&&(pi=!0,W=Sr),this.isValidLookup(W)||(ni=!0,W=u);const Ps=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ni?void 0:W,au=ct&&Sr!==W&&this.options.updateMissing;if(ni||pi||au){if(this.logger.log(au?"updateKey":"missingKey",_,v,u,au?Sr:W),a){const qa=this.resolve(u,{...r,keySeparator:!1});qa&&qa.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let kh=[];const ZT=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ZT&&ZT[0])for(let qa=0;qa<ZT.length;qa++)kh.push(ZT[qa]);else this.options.saveMissingTo==="all"?kh=this.languageUtils.toResolveHierarchy(r.lng||this.language):kh.push(r.lng||this.language);const aH=(qa,bl,jh)=>{const oH=ct&&jh!==W?jh:Ps;this.options.missingKeyHandler?this.options.missingKeyHandler(qa,v,bl,oH,au,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(qa,v,bl,oH,au,r),this.emit("missingKey",qa,v,bl,W)};this.options.saveMissing&&(this.options.saveMissingPlurals&&We?kh.forEach(qa=>{const bl=this.pluralResolver.getSuffixes(qa,r);dr&&r[`defaultValue${this.options.pluralSeparator}zero`]&&bl.indexOf(`${this.options.pluralSeparator}zero`)<0&&bl.push(`${this.options.pluralSeparator}zero`),bl.forEach(jh=>{aH([qa],u+jh,r[`defaultValue${jh}`]||Sr)})}):aH(kh,u,Sr))}W=this.extendTranslation(W,t,r,L,n),ni&&W===u&&this.options.appendNamespaceToMissingKey&&(W=`${v}:${u}`),(ni||pi)&&this.options.parseMissingKeyHandler&&(W=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}:${u}`:u,pi?W:void 0))}return i?(L.res=W,L.usedParams=this.getUsedParamsDetails(r),L):W}extendTranslation(t,r,n,i,a){var u=this;if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const _=lr(t)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(_){const W=t.match(this.interpolator.nestingRegexp);h=W&&W.length}let L=n.replace&&!lr(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(L={...this.options.interpolation.defaultVariables,...L}),t=this.interpolator.interpolate(t,L,n.lng||this.language||i.usedLng,n),_){const W=t.match(this.interpolator.nestingRegexp),Te=W&&W.length;h<Te&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var W=arguments.length,Te=new Array(W),me=0;me<W;me++)Te[me]=arguments[me];return a?.[0]===Te[0]&&!n.context?(u.logger.warn(`It seems you are nesting recursively key: ${Te[0]} in key: ${r[0]}`),null):u.translate(...Te,r)},n)),n.interpolation&&this.interpolator.reset()}const c=n.postProcess||this.options.postProcess,v=lr(c)?[c]:c;return t!=null&&v?.length&&n.applyPostProcessor!==!1&&(t=D0.handle(v,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,a,u,c;return lr(t)&&(t=[t]),t.forEach(v=>{if(this.isValidLookup(n))return;const _=this.extractFromKey(v,r),h=_.key;i=h;let L=_.namespaces;this.options.fallbackNS&&(L=L.concat(this.options.fallbackNS));const W=r.count!==void 0&&!lr(r.count),Te=W&&!r.ordinal&&r.count===0,me=r.context!==void 0&&(lr(r.context)||typeof r.context=="number")&&r.context!=="",Oe=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);L.forEach(He=>{this.isValidLookup(n)||(c=He,!w0[`${Oe[0]}-${He}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(w0[`${Oe[0]}-${He}`]=!0,this.logger.warn(`key "${i}" for languages "${Oe.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Oe.forEach(qe=>{if(this.isValidLookup(n))return;u=qe;const We=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(We,h,qe,He,r);else{let yt;W&&(yt=this.pluralResolver.getSuffix(qe,r.count,r));const jt=`${this.options.pluralSeparator}zero`,dr=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(W&&(We.push(h+yt),r.ordinal&&yt.indexOf(dr)===0&&We.push(h+yt.replace(dr,this.options.pluralSeparator)),Te&&We.push(h+jt)),me){const Sr=`${h}${this.options.contextSeparator}${r.context}`;We.push(Sr),W&&(We.push(Sr+yt),r.ordinal&&yt.indexOf(dr)===0&&We.push(Sr+yt.replace(dr,this.options.pluralSeparator)),Te&&We.push(Sr+jt))}}let ct;for(;ct=We.pop();)this.isValidLookup(n)||(a=ct,n=this.getResource(qe,He,ct,r))}))})}),{res:n,usedKey:i,exactUsedKey:a,usedLng:u,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!lr(t.replace);let i=n?t.replace:t;if(n&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const a of r)delete i[a]}return i}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class x0{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ps.create("languageUtils")}getScriptPartFromCode(t){if(t=jv(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=jv(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(lr(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),lr(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],a=u=>{!u||(this.isSupportedCode(u)?i.push(u):this.logger.warn(`rejecting language code not found in supportedLngs: ${u}`))};return lr(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):lr(t)&&a(this.formatLanguageCode(t)),n.forEach(u=>{i.indexOf(u)<0&&a(this.formatLanguageCode(u))}),i}}const F0={zero:0,one:1,two:2,few:3,many:4,other:5},$0={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class R3{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ps.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=jv(t==="dev"?"en":t),i=r.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let u;try{u=new Intl.PluralRules(n,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),$0;if(!t.match(/-|_/))return $0;const v=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(v,r)}return this.pluralRulesCache[a]=u,u}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(i=>`${r}${i}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((i,a)=>F0[i]-F0[a]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const V0=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=S3(e,t,r);return!a&&i&&lr(r)&&(a=gb(e,r,n),a===void 0&&(a=gb(t,r,n))),a},yb=e=>e.replace(/\$/g,"$$$$");class O3{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ps.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:a,prefixEscaped:u,suffix:c,suffixEscaped:v,formatSeparator:_,unescapeSuffix:h,unescapePrefix:L,nestingPrefix:W,nestingPrefixEscaped:Te,nestingSuffix:me,nestingSuffixEscaped:Oe,nestingOptionsSeparator:He,maxReplaces:qe,alwaysFormat:We}=t.interpolation;this.escape=r!==void 0?r:v3,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?jf(a):u||"{{",this.suffix=c?jf(c):v||"}}",this.formatSeparator=_||",",this.unescapePrefix=h?"":L||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=W?jf(W):Te||jf("$t("),this.nestingSuffix=me?jf(me):Oe||jf(")"),this.nestingOptionsSeparator=He||",",this.maxReplaces=qe||1e3,this.alwaysFormat=We!==void 0?We:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r?.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,i){let a,u,c;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},_=Te=>{if(Te.indexOf(this.formatSeparator)<0){const qe=V0(r,v,Te,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(qe,void 0,n,{...i,...r,interpolationkey:Te}):qe}const me=Te.split(this.formatSeparator),Oe=me.shift().trim(),He=me.join(this.formatSeparator).trim();return this.format(V0(r,v,Oe,this.options.keySeparator,this.options.ignoreJSONStructure),He,n,{...i,...r,interpolationkey:Oe})};this.resetRegExp();const h=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,L=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Te=>yb(Te)},{regex:this.regexp,safeValue:Te=>this.escapeValue?yb(this.escape(Te)):yb(Te)}].forEach(Te=>{for(c=0;a=Te.regex.exec(t);){const me=a[1].trim();if(u=_(me),u===void 0)if(typeof h=="function"){const He=h(t,a,i);u=lr(He)?He:""}else if(i&&Object.prototype.hasOwnProperty.call(i,me))u="";else if(L){u=a[0];continue}else this.logger.warn(`missed to pass in variable ${me} for interpolating ${t}`),u="";else!lr(u)&&!this.useRawValueToEscape&&(u=C0(u));const Oe=Te.safeValue(u);if(t=t.replace(a[0],Oe),L?(Te.regex.lastIndex+=u.length,Te.regex.lastIndex-=a[0].length):Te.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,u;const c=(v,_)=>{const h=this.nestingOptionsSeparator;if(v.indexOf(h)<0)return v;const L=v.split(new RegExp(`${h}[ ]*{`));let W=`{${L[1]}`;v=L[0],W=this.interpolate(W,u);const Te=W.match(/'/g),me=W.match(/"/g);((Te?.length??0)%2===0&&!me||me.length%2!==0)&&(W=W.replace(/'/g,'"'));try{u=JSON.parse(W),_&&(u={..._,...u})}catch(Oe){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,Oe),`${v}${h}${W}`}return u.defaultValue&&u.defaultValue.indexOf(this.prefix)>-1&&delete u.defaultValue,v};for(;i=this.nestingRegexp.exec(t);){let v=[];u={...n},u=u.replace&&!lr(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;let _=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const h=i[1].split(this.formatSeparator).map(L=>L.trim());i[1]=h.shift(),v=h,_=!0}if(a=r(c.call(this,i[1].trim(),u),u),a&&i[0]===t&&!lr(a))return a;lr(a)||(a=C0(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),_&&(a=v.reduce((h,L)=>this.format(h,L,n.lng,{...n,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const b3=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(u=>{if(u){const[c,...v]=u.split(":"),_=v.join(":").trim().replace(/^'+|'+$/g,""),h=c.trim();r[h]||(r[h]=_),_==="false"&&(r[h]=!1),_==="true"&&(r[h]=!0),isNaN(_)||(r[h]=parseInt(_,10))}})}return{formatName:t,formatOptions:r}},Hf=e=>{const t={};return(r,n,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const u=n+JSON.stringify(a);let c=t[u];return c||(c=e(jv(n),i),t[u]=c),c(r)}};class C3{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ps.create("formatter"),this.options=t,this.formats={number:Hf((r,n)=>{const i=new Intl.NumberFormat(r,{...n});return a=>i.format(a)}),currency:Hf((r,n)=>{const i=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>i.format(a)}),datetime:Hf((r,n)=>{const i=new Intl.DateTimeFormat(r,{...n});return a=>i.format(a)}),relativetime:Hf((r,n)=>{const i=new Intl.RelativeTimeFormat(r,{...n});return a=>i.format(a,n.range||"day")}),list:Hf((r,n)=>{const i=new Intl.ListFormat(r,{...n});return a=>i.format(a)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Hf(r)}format(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(c=>c.indexOf(")")>-1)){const c=a.findIndex(v=>v.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,v)=>{const{formatName:_,formatOptions:h}=b3(v);if(this.formats[_]){let L=c;try{const W=i?.formatParams?.[i.interpolationkey]||{},Te=W.locale||W.lng||i.locale||i.lng||n;L=this.formats[_](c,Te,{...h,...i,...W})}catch(W){this.logger.warn(W)}return L}else this.logger.warn(`there was no format function for ${_}`);return c},t)}}const P3=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class M3 extends Yv{constructor(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=ps.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(t,r,n,i){const a={},u={},c={},v={};return t.forEach(_=>{let h=!0;r.forEach(L=>{const W=`${_}|${L}`;!n.reload&&this.store.hasResourceBundle(_,L)?this.state[W]=2:this.state[W]<0||(this.state[W]===1?u[W]===void 0&&(u[W]=!0):(this.state[W]=1,h=!1,u[W]===void 0&&(u[W]=!0),a[W]===void 0&&(a[W]=!0),v[L]===void 0&&(v[L]=!0)))}),h||(c[_]=!0)}),(Object.keys(a).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(u),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(v)}}loaded(t,r,n){const i=t.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),!r&&n&&this.store.addResourceBundle(a,u,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const c={};this.queue.forEach(v=>{h3(v.loaded,[a],u),P3(v,t),r&&v.errors.push(r),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(_=>{c[_]||(c[_]={});const h=v.loaded[_];h.length&&h.forEach(L=>{c[_][L]===void 0&&(c[_][L]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(v=>!v.done)}read(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:i,wait:a,callback:u});return}this.readingCalls++;const c=(_,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const L=this.waitingReads.shift();this.read(L.lng,L.ns,L.fcName,L.tried,L.wait,L.callback)}if(_&&h&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,i+1,a*2,u)},a);return}u(_,h)},v=this.backend[n].bind(this.backend);if(v.length===2){try{const _=v(t,r);_&&typeof _.then=="function"?_.then(h=>c(null,h)).catch(c):c(null,_)}catch(_){c(_)}return}return v(t,r,c)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();lr(t)&&(t=this.languageUtils.toResolveHierarchy(t)),lr(r)&&(r=[r]);const a=this.queueLoad(t,r,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(u=>{this.loadOne(u)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,(u,c)=>{u&&this.logger.warn(`${r}loading namespace ${a} for language ${i} failed`,u),!u&&c&&this.logger.log(`${r}loaded namespace ${a} for language ${i}`,c),this.loaded(t,u,c)})}saveMissing(t,r,n,i,a){let u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){const v={...u,isUpdate:a},_=this.backend.create.bind(this.backend);if(_.length<6)try{let h;_.length===5?h=_(t,r,n,i,v):h=_(t,r,n,i),h&&typeof h.then=="function"?h.then(L=>c(null,L)).catch(c):c(null,h)}catch(h){c(h)}else _(t,r,n,i,c,v)}!t||!t[0]||this.store.addResource(t[0],r,n,i)}}}const G0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),lr(e[1])&&(t.defaultValue=e[1]),lr(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),B0=e=>(lr(e.ns)&&(e.ns=[e.ns]),lr(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),lr(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),Kv=()=>{},I3=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Dp extends Yv{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=B0(t),this.services={},this.logger=ps,this.modules={external:[]},I3(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),r.defaultNS==null&&r.ns&&(lr(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const i=G0();this.options={...i,...this.options,...B0(r)},this.options.interpolation={...i.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?ps.init(a(this.modules.logger),this.options):ps.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=C3;const L=new x0(this.options);this.store=new L0(this.options.resources,this.options);const W=this.services;W.logger=ps,W.resourceStore=this.store,W.languageUtils=L,W.pluralResolver=new R3(L,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(W.formatter=a(h),W.formatter.init(W,this.options),this.options.interpolation.format=W.formatter.format.bind(W.formatter)),W.interpolator=new O3(this.options),W.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},W.backendConnector=new M3(a(this.modules.backend),W.resourceStore,W,this.options),W.backendConnector.on("*",function(Te){for(var me=arguments.length,Oe=new Array(me>1?me-1:0),He=1;He<me;He++)Oe[He-1]=arguments[He];t.emit(Te,...Oe)}),this.modules.languageDetector&&(W.languageDetector=a(this.modules.languageDetector),W.languageDetector.init&&W.languageDetector.init(W,this.options.detection,this.options)),this.modules.i18nFormat&&(W.i18nFormat=a(this.modules.i18nFormat),W.i18nFormat.init&&W.i18nFormat.init(this)),this.translator=new qv(this.services,this.options),this.translator.on("*",function(Te){for(var me=arguments.length,Oe=new Array(me>1?me-1:0),He=1;He<me;He++)Oe[He-1]=arguments[He];t.emit(Te,...Oe)}),this.modules.external.forEach(Te=>{Te.init&&Te.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Kv),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const v=Np(),_=()=>{const h=(L,W)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(W),n(L,W)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?_():setTimeout(_,0),v}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kv;const i=lr(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],u=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(_=>{_!=="cimode"&&a.indexOf(_)<0&&a.push(_)})};i?u(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>u(v)),this.options.preload?.forEach?.(c=>u(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(t,r,n){const i=Np();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Kv),this.services.backendConnector.reload(t,r,a=>{i.resolve(),n(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&D0.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const i=Np();this.emit("languageChanging",t);const a=v=>{this.language=v,this.languages=this.services.languageUtils.toResolveHierarchy(v),this.resolvedLanguage=void 0,this.setResolvedLanguage(v)},u=(v,_)=>{_?(a(_),this.translator.changeLanguage(_),this.isLanguageChangingTo=void 0,this.emit("languageChanged",_),this.logger.log("languageChanged",_)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),r&&r(v,function(){return n.t(...arguments)})},c=v=>{!t&&!v&&this.services.languageDetector&&(v=[]);const _=lr(v)?v:this.services.languageUtils.getBestMatchFromCodes(v);_&&(this.language||a(_),this.translator.language||this.translator.changeLanguage(_),this.services.languageDetector?.cacheUserLanguage?.(_)),this.loadResources(_,h=>{u(h,_)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),i}getFixedT(t,r,n){var i=this;const a=function(u,c){let v;if(typeof c!="object"){for(var _=arguments.length,h=new Array(_>2?_-2:0),L=2;L<_;L++)h[L-2]=arguments[L];v=i.options.overloadTranslationOptionHandler([u,c].concat(h))}else v={...c};v.lng=v.lng||a.lng,v.lngs=v.lngs||a.lngs,v.ns=v.ns||a.ns,v.keyPrefix!==""&&(v.keyPrefix=v.keyPrefix||n||a.keyPrefix);const W=i.options.keySeparator||".";let Te;return v.keyPrefix&&Array.isArray(u)?Te=u.map(me=>`${v.keyPrefix}${W}${me}`):Te=v.keyPrefix?`${v.keyPrefix}${W}${u}`:u,i.t(Te,v)};return lr(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.translator?.translate(...r)}exists(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.translator?.exists(...r)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const u=(c,v)=>{const _=this.services.backendConnector.state[`${c}|${v}`];return _===-1||_===0||_===2};if(r.precheck){const c=r.precheck(this,u);if(c!==void 0)return c}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(n,t)&&(!i||u(a,t)))}loadNamespaces(t,r){const n=Np();return this.options.ns?(lr(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Np();lr(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(u=>i.indexOf(u)<0&&this.services.languageUtils.isSupportedCode(u));return a.length?(this.options.preload=i.concat(a),this.loadResources(u=>{n.resolve(),r&&r(u)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services?.languageUtils||new x0(G0());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Dp(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kv;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new Dp(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n){const c=Object.keys(this.store.data).reduce((v,_)=>(v[_]={...this.store.data[_]},Object.keys(v[_]).reduce((h,L)=>(h[L]={...v[_][L]},h),{})),{});a.store=new L0(c,i),a.services.resourceStore=a.store}return a.translator=new qv(a.services,i),a.translator.on("*",function(c){for(var v=arguments.length,_=new Array(v>1?v-1:0),h=1;h<v;h++)_[h-1]=arguments[h];a.emit(c,..._)}),a.init(i,r),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ea=Dp.createInstance();ea.createInstance=Dp.createInstance;const UIe=ea.createInstance,xIe=ea.dir,FIe=ea.init,$Ie=ea.loadResources,VIe=ea.reloadResources,GIe=ea.use,BIe=ea.changeLanguage,kIe=ea.getFixedT,jIe=ea.t,HIe=ea.exists,YIe=ea.setDefaultNamespace,qIe=ea.hasLoadedNamespace,KIe=ea.loadNamespaces,WIe=ea.loadLanguages;var k0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wo=function(e){try{return!!e()}catch{return!0}},N3=wo,j0=!N3(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),H0=j0,Y0=Function.prototype,L3=Y0.bind,Rb=Y0.call,D3=H0&&L3.bind(Rb,Rb),Uo=H0?function(e){return e&&D3(e)}:function(e){return e&&function(){return Rb.apply(e,arguments)}},q0=Uo,w3=q0({}.toString),U3=q0("".slice),x3=function(e){return U3(w3(e),8,-1)},F3=Uo,$3=wo,V3=x3,Ob=Object,G3=F3("".split),K0=$3(function(){return!Ob("z").propertyIsEnumerable(0)})?function(e){return V3(e)=="String"?G3(e,""):Ob(e)}:Ob,B3=TypeError,W0=function(e){if(e==null)throw B3("Can't call method on "+e);return e},k3=K0,j3=W0,wp=function(e){return k3(j3(e))},Wv=function(e){return e&&e.Math==Math&&e},hs=Wv(typeof globalThis=="object"&&globalThis)||Wv(typeof window=="object"&&window)||Wv(typeof self=="object"&&self)||Wv(typeof k0=="object"&&k0)||function(){return this}()||Function("return this")(),bb={exports:{}},Q0=hs,H3=Object.defineProperty,Cb=function(e,t){try{H3(Q0,e,{value:t,configurable:!0,writable:!0})}catch{Q0[e]=t}return t},Y3=hs,q3=Cb,z0="__core-js_shared__",K3=Y3[z0]||q3(z0,{}),Pb=K3,X0=Pb;(bb.exports=function(e,t){return X0[e]||(X0[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"});var W3=W0,Q3=Object,Mb=function(e){return Q3(W3(e))},z3=Uo,X3=Mb,J3=z3({}.hasOwnProperty),Ys=Object.hasOwn||function(t,r){return J3(X3(t),r)},Z3=Uo,ez=0,tz=Math.random(),rz=Z3(1 .toString),J0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rz(++ez+tz,36)},Ca=function(e){return typeof e=="function"},Ib=hs,nz=Ca,iz=function(e){return nz(e)?e:void 0},Qv=function(e,t){return arguments.length<2?iz(Ib[e]):Ib[e]&&Ib[e][t]},az=Qv,oz=az("navigator","userAgent")||"",Z0=hs,Nb=oz,eD=Z0.process,tD=Z0.Deno,rD=eD&&eD.versions||tD&&tD.version,nD=rD&&rD.v8,xo,zv;nD&&(xo=nD.split("."),zv=xo[0]>0&&xo[0]<4?1:+(xo[0]+xo[1])),!zv&&Nb&&(xo=Nb.match(/Edge\/(\d+)/),(!xo||xo[1]>=74)&&(xo=Nb.match(/Chrome\/(\d+)/),xo&&(zv=+xo[1])));var sz=zv,iD=sz,uz=wo,aD=!!Object.getOwnPropertySymbols&&!uz(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&iD&&iD<41}),cz=aD,oD=cz&&!Symbol.sham&&typeof Symbol.iterator=="symbol",lz=hs,fz=bb.exports,sD=Ys,_z=J0,uD=aD,cD=oD,Yf=fz("wks"),Wc=lz.Symbol,lD=Wc&&Wc.for,dz=cD?Wc:Wc&&Wc.withoutSetter||_z,qf=function(e){if(!sD(Yf,e)||!(uD||typeof Yf[e]=="string")){var t="Symbol."+e;uD&&sD(Wc,e)?Yf[e]=Wc[e]:cD&&lD?Yf[e]=lD(t):Yf[e]=dz(t)}return Yf[e]},pz=Ca,Up=function(e){return typeof e=="object"?e!==null:pz(e)},hz=Up,Sz=String,Ez=TypeError,xp=function(e){if(hz(e))return e;throw Ez(Sz(e)+" is not an object")},fD={},vz=wo,Ss=!vz(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mz=Ss,Tz=wo,_D=mz&&Tz(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),Du={},Az=hs,dD=Up,Lb=Az.document,gz=dD(Lb)&&dD(Lb.createElement),Db=function(e){return gz?Lb.createElement(e):{}},yz=Ss,Rz=wo,Oz=Db,pD=!yz&&!Rz(function(){return Object.defineProperty(Oz("div"),"a",{get:function(){return 7}}).a!=7}),bz=j0,Xv=Function.prototype.call,Fp=bz?Xv.bind(Xv):function(){return Xv.apply(Xv,arguments)},Cz=Uo,Pz=Cz({}.isPrototypeOf),Mz=Qv,Iz=Ca,Nz=Pz,Lz=oD,Dz=Object,hD=Lz?function(e){return typeof e=="symbol"}:function(e){var t=Mz("Symbol");return Iz(t)&&Nz(t.prototype,Dz(e))},wz=String,Uz=function(e){try{return wz(e)}catch{return"Object"}},xz=Ca,Fz=Uz,$z=TypeError,Vz=function(e){if(xz(e))return e;throw $z(Fz(e)+" is not a function")},Gz=Vz,Bz=function(e,t){var r=e[t];return r==null?void 0:Gz(r)},wb=Fp,Ub=Ca,xb=Up,kz=TypeError,jz=function(e,t){var r,n;if(t==="string"&&Ub(r=e.toString)&&!xb(n=wb(r,e))||Ub(r=e.valueOf)&&!xb(n=wb(r,e))||t!=="string"&&Ub(r=e.toString)&&!xb(n=wb(r,e)))return n;throw kz("Can't convert object to primitive value")},Hz=Fp,SD=Up,ED=hD,Yz=Bz,qz=jz,Kz=qf,Wz=TypeError,Qz=Kz("toPrimitive"),zz=function(e,t){if(!SD(e)||ED(e))return e;var r=Yz(e,Qz),n;if(r){if(t===void 0&&(t="default"),n=Hz(r,e,t),!SD(n)||ED(n))return n;throw Wz("Can't convert object to primitive value")}return t===void 0&&(t="number"),qz(e,t)},Xz=zz,Jz=hD,vD=function(e){var t=Xz(e,"string");return Jz(t)?t:t+""},Zz=Ss,e4=pD,t4=_D,Jv=xp,mD=vD,r4=TypeError,Fb=Object.defineProperty,n4=Object.getOwnPropertyDescriptor,$b="enumerable",Vb="configurable",Gb="writable";Du.f=Zz?t4?function(t,r,n){if(Jv(t),r=mD(r),Jv(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Gb in n&&!n[Gb]){var i=n4(t,r);i&&i[Gb]&&(t[r]=n.value,n={configurable:Vb in n?n[Vb]:i[Vb],enumerable:$b in n?n[$b]:i[$b],writable:!1})}return Fb(t,r,n)}:Fb:function(t,r,n){if(Jv(t),r=mD(r),Jv(n),e4)try{return Fb(t,r,n)}catch{}if("get"in n||"set"in n)throw r4("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var i4=Math.ceil,a4=Math.floor,o4=Math.trunc||function(t){var r=+t;return(r>0?a4:i4)(r)},s4=o4,TD=function(e){var t=+e;return t!==t||t===0?0:s4(t)},u4=TD,c4=Math.max,l4=Math.min,f4=function(e,t){var r=u4(e);return r<0?c4(r+t,0):l4(r,t)},_4=TD,d4=Math.min,p4=function(e){return e>0?d4(_4(e),9007199254740991):0},h4=p4,S4=function(e){return h4(e.length)},E4=wp,v4=f4,m4=S4,AD=function(e){return function(t,r,n){var i=E4(t),a=m4(i),u=v4(n,a),c;if(e&&r!=r){for(;a>u;)if(c=i[u++],c!=c)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},T4={includes:AD(!0),indexOf:AD(!1)},Bb={},A4=Uo,kb=Ys,g4=wp,y4=T4.indexOf,R4=Bb,gD=A4([].push),yD=function(e,t){var r=g4(e),n=0,i=[],a;for(a in r)!kb(R4,a)&&kb(r,a)&&gD(i,a);for(;t.length>n;)kb(r,a=t[n++])&&(~y4(i,a)||gD(i,a));return i},jb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],O4=yD,b4=jb,RD=Object.keys||function(t){return O4(t,b4)},C4=Ss,P4=_D,M4=Du,I4=xp,N4=wp,L4=RD;fD.f=C4&&!P4?Object.defineProperties:function(t,r){I4(t);for(var n=N4(r),i=L4(r),a=i.length,u=0,c;a>u;)M4.f(t,c=i[u++],n[c]);return t};var D4=Qv,w4=D4("document","documentElement"),U4=bb.exports,x4=J0,OD=U4("keys"),Hb=function(e){return OD[e]||(OD[e]=x4(e))},F4=xp,$4=fD,bD=jb,V4=Bb,G4=w4,B4=Db,k4=Hb,CD=">",PD="<",Yb="prototype",qb="script",MD=k4("IE_PROTO"),Kb=function(){},ID=function(e){return PD+qb+CD+e+PD+"/"+qb+CD},ND=function(e){e.write(ID("")),e.close();var t=e.parentWindow.Object;return e=null,t},j4=function(){var e=B4("iframe"),t="java"+qb+":",r;return e.style.display="none",G4.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(ID("document.F=Object")),r.close(),r.F},Zv,em=function(){try{Zv=new ActiveXObject("htmlfile")}catch{}em=typeof document<"u"?document.domain&&Zv?ND(Zv):j4():ND(Zv);for(var e=bD.length;e--;)delete em[Yb][bD[e]];return em()};V4[MD]=!0;var LD=Object.create||function(t,r){var n;return t!==null?(Kb[Yb]=F4(t),n=new Kb,Kb[Yb]=null,n[MD]=t):n=em(),r===void 0?n:$4.f(n,r)},H4=qf,Y4=LD,q4=Du.f,Wb=H4("unscopables"),Qb=Array.prototype;Qb[Wb]==null&&q4(Qb,Wb,{configurable:!0,value:Y4(null)});var K4=function(e){Qb[Wb][e]=!0},zb={},W4=Uo,Q4=Ca,Xb=Pb,z4=W4(Function.toString);Q4(Xb.inspectSource)||(Xb.inspectSource=function(e){return z4(e)});var DD=Xb.inspectSource,X4=hs,J4=Ca,Z4=DD,wD=X4.WeakMap,e6=J4(wD)&&/native code/.test(Z4(wD)),Jb=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},t6=Ss,r6=Du,n6=Jb,tm=t6?function(e,t,r){return r6.f(e,t,n6(1,r))}:function(e,t,r){return e[t]=r,e},i6=e6,UD=hs,Zb=Uo,a6=Up,o6=tm,eC=Ys,tC=Pb,s6=Hb,u6=Bb,xD="Object already initialized",rC=UD.TypeError,c6=UD.WeakMap,rm,$p,nm,l6=function(e){return nm(e)?$p(e):rm(e,{})},f6=function(e){return function(t){var r;if(!a6(t)||(r=$p(t)).type!==e)throw rC("Incompatible receiver, "+e+" required");return r}};if(i6||tC.state){var Qc=tC.state||(tC.state=new c6),_6=Zb(Qc.get),FD=Zb(Qc.has),d6=Zb(Qc.set);rm=function(e,t){if(FD(Qc,e))throw new rC(xD);return t.facade=e,d6(Qc,e,t),t},$p=function(e){return _6(Qc,e)||{}},nm=function(e){return FD(Qc,e)}}else{var Kf=s6("state");u6[Kf]=!0,rm=function(e,t){if(eC(e,Kf))throw new rC(xD);return t.facade=e,o6(e,Kf,t),t},$p=function(e){return eC(e,Kf)?e[Kf]:{}},nm=function(e){return eC(e,Kf)}}var $D={set:rm,get:$p,has:nm,enforce:l6,getterFor:f6},nC={},iC={},VD={}.propertyIsEnumerable,GD=Object.getOwnPropertyDescriptor,p6=GD&&!VD.call({1:2},1);iC.f=p6?function(t){var r=GD(this,t);return!!r&&r.enumerable}:VD;var h6=Ss,S6=Fp,E6=iC,v6=Jb,m6=wp,T6=vD,A6=Ys,g6=pD,BD=Object.getOwnPropertyDescriptor;nC.f=h6?BD:function(t,r){if(t=m6(t),r=T6(r),g6)try{return BD(t,r)}catch{}if(A6(t,r))return v6(!S6(E6.f,t,r),t[r])};var kD={exports:{}},aC=Ss,y6=Ys,jD=Function.prototype,R6=aC&&Object.getOwnPropertyDescriptor,oC=y6(jD,"name"),O6=oC&&function(){}.name==="something",b6=oC&&(!aC||aC&&R6(jD,"name").configurable),HD={EXISTS:oC,PROPER:O6,CONFIGURABLE:b6},C6=wo,P6=Ca,im=Ys,sC=Ss,M6=HD.CONFIGURABLE,I6=DD,YD=$D,N6=YD.enforce,L6=YD.get,am=Object.defineProperty,D6=sC&&!C6(function(){return am(function(){},"length",{value:8}).length!==8}),w6=String(String).split("String"),U6=kD.exports=function(e,t,r){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!im(e,"name")||M6&&e.name!==t)&&(sC?am(e,"name",{value:t,configurable:!0}):e.name=t),D6&&r&&im(r,"arity")&&e.length!==r.arity&&am(e,"length",{value:r.arity});try{r&&im(r,"constructor")&&r.constructor?sC&&am(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=N6(e);return im(n,"source")||(n.source=w6.join(typeof t=="string"?t:"")),e};Function.prototype.toString=U6(function(){return P6(this)&&L6(this).source||I6(this)},"toString");var x6=Ca,F6=Du,$6=kD.exports,V6=Cb,uC=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(x6(r)&&$6(r,a,n),n.global)i?e[t]=r:V6(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch{}i?e[t]=r:F6.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},qD={},G6=yD,B6=jb,k6=B6.concat("length","prototype");qD.f=Object.getOwnPropertyNames||function(t){return G6(t,k6)};var cC={};cC.f=Object.getOwnPropertySymbols;var j6=Qv,H6=Uo,Y6=qD,q6=cC,K6=xp,W6=H6([].concat),Q6=j6("Reflect","ownKeys")||function(t){var r=Y6.f(K6(t)),n=q6.f;return n?W6(r,n(t)):r},KD=Ys,z6=Q6,X6=nC,J6=Du,Z6=function(e,t,r){for(var n=z6(t),i=J6.f,a=X6.f,u=0;u<n.length;u++){var c=n[u];!KD(e,c)&&!(r&&KD(r,c))&&i(e,c,a(t,c))}},eX=wo,tX=Ca,rX=/#|\.prototype\./,Vp=function(e,t){var r=iX[nX(e)];return r==oX?!0:r==aX?!1:tX(t)?eX(t):!!t},nX=Vp.normalize=function(e){return String(e).replace(rX,".").toLowerCase()},iX=Vp.data={},aX=Vp.NATIVE="N",oX=Vp.POLYFILL="P",sX=Vp,lC=hs,uX=nC.f,cX=tm,lX=uC,fX=Cb,_X=Z6,dX=sX,WD=function(e,t){var r=e.target,n=e.global,i=e.stat,a,u,c,v,_,h;if(n?u=lC:i?u=lC[r]||fX(r,{}):u=(lC[r]||{}).prototype,u)for(c in t){if(_=t[c],e.dontCallGetSet?(h=uX(u,c),v=h&&h.value):v=u[c],a=dX(n?c:r+(i?".":"#")+c,e.forced),!a&&v!==void 0){if(typeof _==typeof v)continue;_X(_,v)}(e.sham||v&&v.sham)&&cX(_,"sham",!0),lX(u,c,_,e)}},pX=wo,hX=!pX(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),SX=Ys,EX=Ca,vX=Mb,mX=Hb,TX=hX,QD=mX("IE_PROTO"),fC=Object,AX=fC.prototype,zD=TX?fC.getPrototypeOf:function(e){var t=vX(e);if(SX(t,QD))return t[QD];var r=t.constructor;return EX(r)&&t instanceof r?r.prototype:t instanceof fC?AX:null},gX=wo,yX=Ca,XD=zD,RX=uC,OX=qf,_C=OX("iterator"),JD=!1,zc,dC,pC;[].keys&&(pC=[].keys(),"next"in pC?(dC=XD(XD(pC)),dC!==Object.prototype&&(zc=dC)):JD=!0);var bX=zc==null||gX(function(){var e={};return zc[_C].call(e)!==e});bX&&(zc={}),yX(zc[_C])||RX(zc,_C,function(){return this});var ZD={IteratorPrototype:zc,BUGGY_SAFARI_ITERATORS:JD},CX=Du.f,PX=Ys,MX=qf,ew=MX("toStringTag"),tw=function(e,t,r){e&&!r&&(e=e.prototype),e&&!PX(e,ew)&&CX(e,ew,{configurable:!0,value:t})},IX=ZD.IteratorPrototype,NX=LD,LX=Jb,DX=tw,wX=zb,UX=function(){return this},xX=function(e,t,r,n){var i=t+" Iterator";return e.prototype=NX(IX,{next:LX(+!n,r)}),DX(e,i,!1),wX[i]=UX,e},FX=Ca,$X=String,VX=TypeError,GX=function(e){if(typeof e=="object"||FX(e))return e;throw VX("Can't set "+$X(e)+" as a prototype")},BX=Uo,kX=xp,jX=GX,HX=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=BX(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),r(t,[]),e=t instanceof Array}catch{}return function(i,a){return kX(i),jX(a),e?r(i,a):i.__proto__=a,i}}():void 0),YX=WD,qX=Fp,rw=HD,KX=Ca,WX=xX,nw=zD,iw=HX,QX=tw,zX=tm,hC=uC,XX=qf,JX=zb,aw=ZD,ZX=rw.PROPER,e5=rw.CONFIGURABLE,ow=aw.IteratorPrototype,om=aw.BUGGY_SAFARI_ITERATORS,Gp=XX("iterator"),sw="keys",Bp="values",uw="entries",t5=function(){return this},r5=function(e,t,r,n,i,a,u){WX(r,t,n);var c=function(qe){if(qe===i&&W)return W;if(!om&&qe in h)return h[qe];switch(qe){case sw:return function(){return new r(this,qe)};case Bp:return function(){return new r(this,qe)};case uw:return function(){return new r(this,qe)}}return function(){return new r(this)}},v=t+" Iterator",_=!1,h=e.prototype,L=h[Gp]||h["@@iterator"]||i&&h[i],W=!om&&L||c(i),Te=t=="Array"&&h.entries||L,me,Oe,He;if(Te&&(me=nw(Te.call(new e)),me!==Object.prototype&&me.next&&(nw(me)!==ow&&(iw?iw(me,ow):KX(me[Gp])||hC(me,Gp,t5)),QX(me,v,!0))),ZX&&i==Bp&&L&&L.name!==Bp&&(e5?zX(h,"name",Bp):(_=!0,W=function(){return qX(L,this)})),i)if(Oe={values:c(Bp),keys:a?W:c(sw),entries:c(uw)},u)for(He in Oe)(om||_||!(He in h))&&hC(h,He,Oe[He]);else YX({target:t,proto:!0,forced:om||_},Oe);return h[Gp]!==W&&hC(h,Gp,W,{name:i}),JX[t]=W,Oe},n5=wp,SC=K4,cw=zb,lw=$D,i5=Du.f,a5=r5,o5=Ss,fw="Array Iterator",s5=lw.set,u5=lw.getterFor(fw),c5=a5(Array,"Array",function(e,t){s5(this,{type:fw,target:n5(e),index:0,kind:t})},function(){var e=u5(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),_w=cw.Arguments=cw.Array;if(SC("keys"),SC("values"),SC("entries"),o5&&_w.name!=="values")try{i5(_w,"name",{value:"values"})}catch{}var l5={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},f5=Db,EC=f5("span").classList,dw=EC&&EC.constructor&&EC.constructor.prototype,_5=dw===Object.prototype?void 0:dw,pw=hs,hw=l5,d5=_5,kp=c5,vC=tm,Sw=qf,mC=Sw("iterator"),Ew=Sw("toStringTag"),TC=kp.values,vw=function(e,t){if(e){if(e[mC]!==TC)try{vC(e,mC,TC)}catch{e[mC]=TC}if(e[Ew]||vC(e,Ew,t),hw[t]){for(var r in kp)if(e[r]!==kp[r])try{vC(e,r,kp[r])}catch{e[r]=kp[r]}}}};for(var AC in hw)vw(pw[AC]&&pw[AC].prototype,AC);vw(d5,"DOMTokenList");var mw=Ss,p5=Uo,h5=Fp,S5=wo,gC=RD,E5=cC,v5=iC,m5=Mb,T5=K0,Wf=Object.assign,Tw=Object.defineProperty,A5=p5([].concat),g5=!Wf||S5(function(){if(mw&&Wf({b:1},Wf(Tw({},"a",{enumerable:!0,get:function(){Tw(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Wf({},e)[r]!=7||gC(Wf({},t)).join("")!=n})?function(t,r){for(var n=m5(t),i=arguments.length,a=1,u=E5.f,c=v5.f;i>a;)for(var v=T5(arguments[a++]),_=u?A5(gC(v),u(v)):gC(v),h=_.length,L=0,W;h>L;)W=_[L++],(!mw||h5(c,v,W))&&(n[W]=v[W]);return n}:Wf,y5=WD,Aw=g5;y5({target:"Object",stat:!0,arity:2,forced:Object.assign!==Aw},{assign:Aw});function sm(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})}function Jr(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function wu(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}const yC=null,QIe=({children:e,i18n:t})=>jsx(yC.Provider,Object.assign({value:t},{children:e})),zIe=()=>{const e=useContext(yC);if(e===void 0)throw new Error("useTranslation must be used within an I18nProvider");return e.t},R5=e=>{const[t,r]=useState(!e.isLoaded),[n,i]=useState();return useEffect(()=>{e.isLoaded||sm(void 0,void 0,void 0,function*(){try{yield e.load()}catch(a){i(a)}finally{r(!1)}})},[]),{loading:t,error:n}},XIe=e=>{const t=O5(),r=useMemo(()=>t.child(e),[]),{loading:n,error:i}=R5(r);return{loading:n,error:i,i18n:r}},O5=()=>{const e=useContext(yC);if(e===void 0)throw new Error("I18n instance hooks must be used within an I18nProvider");return e};var Ue=p(4370);let um=e=>e,gw,yw,Rw,Ow;const b5=(0,Ue.Ay)(gw||(gw=um`
106
106
  query GetPersonDOBAndZip($id: ID!) {
107
107
  getPersonById(id: $id) {
108
108
  birthDate
@@ -175,7 +175,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
175
175
  }
176
176
  }
177
177
  }
178
- `));function I5(e){return{GetPersonDOBAndZip(t,r){return e(b5,t,r)},GetPersonProfile(t,r){return e(C5,t,r)},UpdatePersonAndPatient(t,r){return e(P5,t,r)},UpdatePersonProfile(t,r){return e(M5,t,r)}}}const zc=e=>{const r=Object.entries(e).map(([n,i])=>[`${n.substring(0,1).toLowerCase()}${n.substring(1)}`,i]);return Object.fromEntries(r)};function fn(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})}const N5=["mutation","query","subscription"],Xc=({api:e})=>(t,r,n)=>fn(void 0,void 0,void 0,function*(){if(t.definitions.filter(c=>c.kind==="OperationDefinition"&&N5.includes(c.operation)).length!==1)throw new Error("DocumentNode passed to Apollo Client must contain single query or mutation");const i=t.definitions[0];if(i.kind!=="OperationDefinition")throw new Error("DocumentNode passed to Apollo Client must contain single query or mutation");const a=Object.assign(Object.assign({},n),{context:Object.assign(Object.assign({},n?.context),{apiName:e.mapKey})});let u={};switch(i.operation){case"mutation":{u=yield e.client.mutate(Object.assign({mutation:t,variables:r},a));break}case"query":{u=yield e.client.query(Object.assign({query:t,variables:r},a));break}case"subscription":throw new Error("Subscription requests through SDK interface are not supported")}if(u.errors)throw new Error(u.errors[0].toString());if(u.data===void 0||u.data===null)throw new Error("No data presented in the GraphQL response");return u.data}),L5=e=>zc(I5(Xc({api:{client:e,mapKey:"enterprisePerson"}})));let cm=e=>e,bw,Cw,Pw,Mw;const D5=(0,Ue.J1)(bw||(bw=cm`
178
+ `));function I5(e){return{GetPersonDOBAndZip(t,r){return e(b5,t,r)},GetPersonProfile(t,r){return e(C5,t,r)},UpdatePersonAndPatient(t,r){return e(P5,t,r)},UpdatePersonProfile(t,r){return e(M5,t,r)}}}const Xc=e=>{const r=Object.entries(e).map(([n,i])=>[`${n.substring(0,1).toLowerCase()}${n.substring(1)}`,i]);return Object.fromEntries(r)};function fn(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})}const N5=["mutation","query","subscription"],Jc=({api:e})=>(t,r,n)=>fn(void 0,void 0,void 0,function*(){if(t.definitions.filter(c=>c.kind==="OperationDefinition"&&N5.includes(c.operation)).length!==1)throw new Error("DocumentNode passed to Apollo Client must contain single query or mutation");const i=t.definitions[0];if(i.kind!=="OperationDefinition")throw new Error("DocumentNode passed to Apollo Client must contain single query or mutation");const a=Object.assign(Object.assign({},n),{context:Object.assign(Object.assign({},n?.context),{apiName:e.mapKey})});let u={};switch(i.operation){case"mutation":{u=yield e.client.mutate(Object.assign({mutation:t,variables:r},a));break}case"query":{u=yield e.client.query(Object.assign({query:t,variables:r},a));break}case"subscription":throw new Error("Subscription requests through SDK interface are not supported")}if(u.errors)throw new Error(u.errors[0].toString());if(u.data===void 0||u.data===null)throw new Error("No data presented in the GraphQL response");return u.data}),L5=e=>Xc(I5(Jc({api:{client:e,mapKey:"enterprisePerson"}})));let cm=e=>e,bw,Cw,Pw,Mw;const D5=(0,Ue.J1)(bw||(bw=cm`
179
179
  query GetPatientVerificationAll($patientId: String!) {
180
180
  getPatientVerificationAll(patientId: $patientId)
181
181
  @rest(method: "GET", path: "/verification/patient/{args.patientId}/all", endpoint: "user") {
@@ -945,7 +945,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
945
945
  }
946
946
  }
947
947
  }
948
- `));function SJ(e){return{GetAccountDeletionSettings(t,r){return e(V5,t,r)},GetBrandAssets(t,r){return e(G5,t,r)},GetClientAppModalConfig(t,r){return e(B5,t,r)},GetClientNavigationIcon(t,r){return e(k5,t,r)},GetCookiePolicyConfig(t,r){return e(j5,t,r)},GetDataConnectionsConfig(t,r){return e(H5,t,r)},GetDigitalWalletConfig(t,r){return e(Y5,t,r)},GetFederatedSSOConfig(t,r){return e(q5,t,r)},GetForcedUpgradeNotice(t,r){return e(K5,t,r)},healthSpaceAssetsClientConfiguration(t,r){return e(W5,t,r)},healthSpaceConfigClientConfiguration(t,r){return e(Q5,t,r)},GetHealthSummaryConfig(t,r){return e(z5,t,r)},GetHpMfesAssets(t,r){return e(X5,t,r)},GetIAL2ProofingConfig(t,r){return e(J5,t,r)},GetInsuranceClaimsConfig(t,r){return e(Z5,t,r)},GetLabsConfig(t,r){return e(eJ,t,r)},GetLoginScreenWelcomeMessage(t,r){return e(tJ,t,r)},GetMedicineConfig(t,r){return e(rJ,t,r)},mfeCareSchedulingAssetsClientConfiguration(t,r){return e(nJ,t,r)},mfeCareSchedulingConfigClientConfiguration(t,r){return e(iJ,t,r)},mfeCareSearchAssetsClientConfiguration(t,r){return e(aJ,t,r)},mfeCareSearchConfigClientConfiguration(t,r){return e(oJ,t,r)},GetDataConnectionsAssetsConfig(t,r){return e(sJ,t,r)},GetMfeUserAuthAssets(t,r){return e(uJ,t,r)},GetOnboardingAssets(t,r){return e(cJ,t,r)},GetPrivacyPolicyConfig(t,r){return e(lJ,t,r)},GetProviderSearchConfig(t,r){return e(fJ,t,r)},GetResourcesConfig(t,r){return e(_J,t,r)},GetTermsOfServiceConfig(t,r){return e(dJ,t,r)},GetClientTranslations(t,r){return e(pJ,t,r)},GetUserProfileConfig(t,r){return e(hJ,t,r)}}}const uU=e=>zc(SJ(Xc({api:{client:e,mapKey:"config"}})));let lm=e=>e,cU,lU,fU,_U;const EJ=(0,Ue.Ay)(cU||(cU=lm`
948
+ `));function SJ(e){return{GetAccountDeletionSettings(t,r){return e(V5,t,r)},GetBrandAssets(t,r){return e(G5,t,r)},GetClientAppModalConfig(t,r){return e(B5,t,r)},GetClientNavigationIcon(t,r){return e(k5,t,r)},GetCookiePolicyConfig(t,r){return e(j5,t,r)},GetDataConnectionsConfig(t,r){return e(H5,t,r)},GetDigitalWalletConfig(t,r){return e(Y5,t,r)},GetFederatedSSOConfig(t,r){return e(q5,t,r)},GetForcedUpgradeNotice(t,r){return e(K5,t,r)},healthSpaceAssetsClientConfiguration(t,r){return e(W5,t,r)},healthSpaceConfigClientConfiguration(t,r){return e(Q5,t,r)},GetHealthSummaryConfig(t,r){return e(z5,t,r)},GetHpMfesAssets(t,r){return e(X5,t,r)},GetIAL2ProofingConfig(t,r){return e(J5,t,r)},GetInsuranceClaimsConfig(t,r){return e(Z5,t,r)},GetLabsConfig(t,r){return e(eJ,t,r)},GetLoginScreenWelcomeMessage(t,r){return e(tJ,t,r)},GetMedicineConfig(t,r){return e(rJ,t,r)},mfeCareSchedulingAssetsClientConfiguration(t,r){return e(nJ,t,r)},mfeCareSchedulingConfigClientConfiguration(t,r){return e(iJ,t,r)},mfeCareSearchAssetsClientConfiguration(t,r){return e(aJ,t,r)},mfeCareSearchConfigClientConfiguration(t,r){return e(oJ,t,r)},GetDataConnectionsAssetsConfig(t,r){return e(sJ,t,r)},GetMfeUserAuthAssets(t,r){return e(uJ,t,r)},GetOnboardingAssets(t,r){return e(cJ,t,r)},GetPrivacyPolicyConfig(t,r){return e(lJ,t,r)},GetProviderSearchConfig(t,r){return e(fJ,t,r)},GetResourcesConfig(t,r){return e(_J,t,r)},GetTermsOfServiceConfig(t,r){return e(dJ,t,r)},GetClientTranslations(t,r){return e(pJ,t,r)},GetUserProfileConfig(t,r){return e(hJ,t,r)}}}const uU=e=>Xc(SJ(Jc({api:{client:e,mapKey:"config"}})));let lm=e=>e,cU,lU,fU,_U;const EJ=(0,Ue.Ay)(cU||(cU=lm`
949
949
  mutation CreateQuestionnaireResponse(
950
950
  $data: String!
951
951
  $patientId: String!
@@ -1040,7 +1040,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
1040
1040
  questionnaireName
1041
1041
  }
1042
1042
  }
1043
- `));function AJ(e){return{CreateQuestionnaireResponse(t,r){return e(EJ,t,r)},GetConsent(t,r){return e(vJ,t,r)},GetQuestionnaire(t,r){return e(mJ,t,r)},GetQuestionnaireResponse(t,r){return e(TJ,t,r)}}}const gJ=e=>zc(AJ(Xc({api:{client:e,mapKey:"consent"}})));let fm=e=>e,dU,pU,hU,SU;const yJ=(0,Ue.Ay)(dU||(dU=fm`
1043
+ `));function AJ(e){return{CreateQuestionnaireResponse(t,r){return e(EJ,t,r)},GetConsent(t,r){return e(vJ,t,r)},GetQuestionnaire(t,r){return e(mJ,t,r)},GetQuestionnaireResponse(t,r){return e(TJ,t,r)}}}const gJ=e=>Xc(AJ(Jc({api:{client:e,mapKey:"consent"}})));let fm=e=>e,dU,pU,hU,SU;const yJ=(0,Ue.Ay)(dU||(dU=fm`
1044
1044
  mutation Interacted($user: UserInput, $result_id: String) {
1045
1045
  itemInteracted(user: $user, resultId: $result_id, interaction: CLICKED)
1046
1046
  }
@@ -1380,7 +1380,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
1380
1380
  }
1381
1381
  }
1382
1382
  }
1383
- `));function CJ(e){return{Interacted(t,r){return e(yJ,t,r)},GetProviders(t,r){return e(RJ,t,r)},GetProvidersDetails(t,r){return e(OJ,t,r)},GetProvidersTypeahead(t,r){return e(bJ,t,r)}}}const PJ=e=>zc(CJ(Xc({api:{client:e,mapKey:"pss"}})));let wn=e=>e,EU,vU,mU,TU,AU,gU,yU,RU,OU,bU,CU,PU,MU,IU,NU,LU,DU,wU,UU,xU,FU,$U,VU,GU,BU;const MJ=(0,Ue.Ay)(EU||(EU=wn`
1383
+ `));function CJ(e){return{Interacted(t,r){return e(yJ,t,r)},GetProviders(t,r){return e(RJ,t,r)},GetProvidersDetails(t,r){return e(OJ,t,r)},GetProvidersTypeahead(t,r){return e(bJ,t,r)}}}const PJ=e=>Xc(CJ(Jc({api:{client:e,mapKey:"pss"}})));let wn=e=>e,EU,vU,mU,TU,AU,gU,yU,RU,OU,bU,CU,PU,MU,IU,NU,LU,DU,wU,UU,xU,FU,$U,VU,GU,BU;const MJ=(0,Ue.Ay)(EU||(EU=wn`
1384
1384
  fragment GeneralPractitionerFields on Patient {
1385
1385
  generalPractitioner {
1386
1386
  __typename
@@ -1967,7 +1967,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
1967
1967
  }
1968
1968
  }
1969
1969
  }
1970
- `));function e7(e){return{getAppointmentDetail(t,r){return e(IJ,t,r)},getAppointmentsList(t,r){return e(NJ,t,r)},cancelAppointment(t,r){return e(LJ,t,r)},cancelReasons(t,r){return e(DJ,t,r)},checkTransferEligibility(t,r){return e(wJ,t,r)},directAppointmentBooking(t,r){return e(UJ,t,r)},directSchedulingSlots(t,r){return e(xJ,t,r)},directVisitTypes(t,r){return e(FJ,t,r)},geocode(t,r){return e($J,t,r)},patientIdentifiers(t,r){return e(VJ,t,r)},getPatient(t,r){return e(GJ,t,r)},getPatientPreferredProviders(t,r){return e(BJ,t,r)},getStore(t,r){return e(kJ,t,r)},getStoreHours(t,r){return e(jJ,t,r)},identifiers(t,r){return e(HJ,t,r)},patientLookupOrCreate(t,r){return e(YJ,t,r)},providerVisitTypes(t,r){return e(qJ,t,r)},GetProtocolEngineQuestionnaire(t,r){return e(KJ,t,r)},rescheduleAppointment(t,r){return e(WJ,t,r)},rxTransfer(t,r){return e(QJ,t,r)},schedulingAppointment(t,r){return e(zJ,t,r)},schedulingSlots(t,r){return e(XJ,t,r)},updateGeneralPractitioner(t,r){return e(JJ,t,r)},UpdatePreferredProviders(t,r){return e(ZJ,t,r)}}}const t7=e=>zc(e7(Xc({api:{client:e,mapKey:"accessToCare"}})));let Un=e=>e,kU,jU,HU,YU,qU,KU,WU,QU,zU,XU,JU,ZU,ex,tx,rx,nx,ix,ax,ox,sx,ux,cx,lx,fx,_x;const r7=(0,Ue.J1)(kU||(kU=Un`
1970
+ `));function e7(e){return{getAppointmentDetail(t,r){return e(IJ,t,r)},getAppointmentsList(t,r){return e(NJ,t,r)},cancelAppointment(t,r){return e(LJ,t,r)},cancelReasons(t,r){return e(DJ,t,r)},checkTransferEligibility(t,r){return e(wJ,t,r)},directAppointmentBooking(t,r){return e(UJ,t,r)},directSchedulingSlots(t,r){return e(xJ,t,r)},directVisitTypes(t,r){return e(FJ,t,r)},geocode(t,r){return e($J,t,r)},patientIdentifiers(t,r){return e(VJ,t,r)},getPatient(t,r){return e(GJ,t,r)},getPatientPreferredProviders(t,r){return e(BJ,t,r)},getStore(t,r){return e(kJ,t,r)},getStoreHours(t,r){return e(jJ,t,r)},identifiers(t,r){return e(HJ,t,r)},patientLookupOrCreate(t,r){return e(YJ,t,r)},providerVisitTypes(t,r){return e(qJ,t,r)},GetProtocolEngineQuestionnaire(t,r){return e(KJ,t,r)},rescheduleAppointment(t,r){return e(WJ,t,r)},rxTransfer(t,r){return e(QJ,t,r)},schedulingAppointment(t,r){return e(zJ,t,r)},schedulingSlots(t,r){return e(XJ,t,r)},updateGeneralPractitioner(t,r){return e(JJ,t,r)},UpdatePreferredProviders(t,r){return e(ZJ,t,r)}}}const t7=e=>Xc(e7(Jc({api:{client:e,mapKey:"accessToCare"}})));let Un=e=>e,kU,jU,HU,YU,qU,KU,WU,QU,zU,XU,JU,ZU,ex,tx,rx,nx,ix,ax,ox,sx,ux,cx,lx,fx,_x;const r7=(0,Ue.J1)(kU||(kU=Un`
1971
1971
  mutation Login($email: String!, $password: String!) {
1972
1972
  tokenData(input: { email: $email, password: $password })
1973
1973
  @rest(type: "User", method: "POST", path: "/account/login", endpoint: "big") {
@@ -2249,7 +2249,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2249
2249
  }
2250
2250
  }
2251
2251
  }
2252
- `));function O7(e){return{AccountDeletionStatusByClientPerson(t,r){return e(y7,t,r)},UpdateUserAccountStatus(t,r){return e(R7,t,r)}}}const Sx=e=>Object.assign(Object.assign({},g7(e)),zc(O7(Xc({api:{client:e,mapKey:"identityGateway"}}))));let wu=e=>e,Ex,vx,mx,Tx,Ax,gx,yx,Rx;const b7=(0,Ue.J1)(Ex||(Ex=wu`
2252
+ `));function O7(e){return{AccountDeletionStatusByClientPerson(t,r){return e(y7,t,r)},UpdateUserAccountStatus(t,r){return e(R7,t,r)}}}const Sx=e=>Object.assign(Object.assign({},g7(e)),Xc(O7(Jc({api:{client:e,mapKey:"identityGateway"}}))));let Uu=e=>e,Ex,vx,mx,Tx,Ax,gx,yx,Rx;const b7=(0,Ue.J1)(Ex||(Ex=Uu`
2253
2253
  query GetMemberConnections($external: Boolean!) {
2254
2254
  memberConnections(external: $external)
2255
2255
  @rest(
@@ -2266,7 +2266,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2266
2266
  icon
2267
2267
  }
2268
2268
  }
2269
- `)),C7=(0,Ue.J1)(vx||(vx=wu`
2269
+ `)),C7=(0,Ue.J1)(vx||(vx=Uu`
2270
2270
  query GetConnections(
2271
2271
  $external: Boolean!
2272
2272
  $category: String
@@ -2298,7 +2298,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2298
2298
  }
2299
2299
  }
2300
2300
  }
2301
- `)),P7=(0,Ue.J1)(mx||(mx=wu`
2301
+ `)),P7=(0,Ue.J1)(mx||(mx=Uu`
2302
2302
  query GetConnection($external: Boolean!, $value: String!) {
2303
2303
  connection(external: $external, value: $value)
2304
2304
  @rest(
@@ -2317,7 +2317,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2317
2317
  }
2318
2318
  }
2319
2319
  }
2320
- `)),M7=(0,Ue.J1)(Tx||(Tx=wu`
2320
+ `)),M7=(0,Ue.J1)(Tx||(Tx=Uu`
2321
2321
  query GetOauthGeneratedUrl(
2322
2322
  $external: Boolean!
2323
2323
  $value: String!
@@ -2339,7 +2339,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2339
2339
  url
2340
2340
  }
2341
2341
  }
2342
- `)),I7=(0,Ue.J1)(Ax||(Ax=wu`
2342
+ `)),I7=(0,Ue.J1)(Ax||(Ax=Uu`
2343
2343
  mutation CreateOauthThirdPartyConnection(
2344
2344
  $external: Boolean!
2345
2345
  $type: String!
@@ -2363,7 +2363,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2363
2363
  connectionCode
2364
2364
  }
2365
2365
  }
2366
- `)),N7=(0,Ue.J1)(gx||(gx=wu`
2366
+ `)),N7=(0,Ue.J1)(gx||(gx=Uu`
2367
2367
  mutation DeleteUserToken($external: Boolean!, $value: String!) {
2368
2368
  deleteUserToken(external: $external, value: $value)
2369
2369
  @rest(
@@ -2375,7 +2375,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2375
2375
  NoResponse
2376
2376
  }
2377
2377
  }
2378
- `)),L7=(0,Ue.J1)(yx||(yx=wu`
2378
+ `)),L7=(0,Ue.J1)(yx||(yx=Uu`
2379
2379
  mutation DisconnectUserToken($external: Boolean!, $value: String!) {
2380
2380
  disconnectUserToken(external: $external, value: $value, input: {})
2381
2381
  @rest(
@@ -2387,7 +2387,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2387
2387
  NoResponse
2388
2388
  }
2389
2389
  }
2390
- `)),D7=(0,Ue.J1)(Rx||(Rx=wu`
2390
+ `)),D7=(0,Ue.J1)(Rx||(Rx=Uu`
2391
2391
  mutation CreateConnectionStatus(
2392
2392
  $external: Boolean!
2393
2393
  $clientSlugSecurityTag: String!
@@ -2459,7 +2459,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2459
2459
  mutation RemoveMember($memberId: ID!) {
2460
2460
  removeMember(memberId: $memberId)
2461
2461
  }
2462
- `));function V7(e){return{GetHealthCircleMembers(t,r){return e(x7,t,r)},InviteMember(t,r){return e(F7,t,r)},RemoveMember(t,r){return e($7,t,r)}}}const G7=e=>zc(V7(Xc({api:{client:e,mapKey:"healthCircle"}}))),B7=e=>({enterprisePerson:L5(e),user:F5(e),config:uU(e),consent:gJ(e),providerSearch:PJ(e),accessToCare:t7(e),identityGateway:Sx(e),apertureTokenService:U7(e),healthCircle:G7(e)});let _m=e=>e,Px,Mx,Ix,Nx;const Wf={context:{apiName:"enterprisePerson"}},Lx=(0,Ue.J1)(Px||(Px=_m`
2462
+ `));function V7(e){return{GetHealthCircleMembers(t,r){return e(x7,t,r)},InviteMember(t,r){return e(F7,t,r)},RemoveMember(t,r){return e($7,t,r)}}}const G7=e=>Xc(V7(Jc({api:{client:e,mapKey:"healthCircle"}}))),B7=e=>({enterprisePerson:L5(e),user:F5(e),config:uU(e),consent:gJ(e),providerSearch:PJ(e),accessToCare:t7(e),identityGateway:Sx(e),apertureTokenService:U7(e),healthCircle:G7(e)});let _m=e=>e,Px,Mx,Ix,Nx;const Qf={context:{apiName:"enterprisePerson"}},Lx=(0,Ue.J1)(Px||(Px=_m`
2463
2463
  query GetPersonDOBAndZip($id: ID!) {
2464
2464
  getPersonById(id: $id) {
2465
2465
  birthDate
@@ -2468,7 +2468,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2468
2468
  }
2469
2469
  }
2470
2470
  }
2471
- `));function iNe(e){const t=Object.assign(Object.assign({},Wf),e);return Apollo.useQuery(Lx,t)}function aNe(e){const t=Object.assign(Object.assign({},Wf),e);return Apollo.useLazyQuery(Lx,t)}const Dx=(0,Ue.J1)(Mx||(Mx=_m`
2471
+ `));function iNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useQuery(Lx,t)}function aNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useLazyQuery(Lx,t)}const Dx=(0,Ue.J1)(Mx||(Mx=_m`
2472
2472
  query GetPersonProfile($id: ID!) {
2473
2473
  profile(id: $id) {
2474
2474
  id
@@ -2496,7 +2496,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2496
2496
  }
2497
2497
  }
2498
2498
  }
2499
- `));function oNe(e){const t=Object.assign(Object.assign({},Wf),e);return Apollo.useQuery(Dx,t)}function sNe(e){const t=Object.assign(Object.assign({},Wf),e);return Apollo.useLazyQuery(Dx,t)}const k7=(0,Ue.J1)(Ix||(Ix=_m`
2499
+ `));function oNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useQuery(Dx,t)}function sNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useLazyQuery(Dx,t)}const k7=(0,Ue.J1)(Ix||(Ix=_m`
2500
2500
  mutation UpdatePersonAndPatient(
2501
2501
  $bwellPersonId: String!
2502
2502
  $clientPersonId: String!
@@ -2511,7 +2511,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2511
2511
  statusCode
2512
2512
  }
2513
2513
  }
2514
- `));function uNe(e){const t=Object.assign(Object.assign({},Wf),e);return Apollo.useMutation(k7,t)}const j7=(0,Ue.J1)(Nx||(Nx=_m`
2514
+ `));function uNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useMutation(k7,t)}const j7=(0,Ue.J1)(Nx||(Nx=_m`
2515
2515
  mutation UpdatePersonProfile($id: String!, $input: InputProfile) {
2516
2516
  updateProfile(input: $input, id: $id) {
2517
2517
  id
@@ -2532,7 +2532,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2532
2532
  }
2533
2533
  }
2534
2534
  }
2535
- `));function cNe(e){const t=Object.assign(Object.assign({},Wf),e);return Apollo.useMutation(j7,t)}var lNe=p(8089);const dm={context:{apiName:"rest"}},fNe=e=>{const t=merge({},dm,e);return useQuery(GetPatientVerificationAllDocument,t)},_Ne=e=>{const t=merge({},dm,e);return useLazyQuery(GetPatientVerificationAllDocument,t)},dNe=e=>{const t=merge({},dm,e);return useQuery(GetLastPhoneNumberVerified,t)},pNe=e=>{const t=merge({},dm,e);return useLazyQuery(GetLastPhoneNumberVerified,t)},hNe=e=>useQuery(GetLegalDocument,e),SNe=e=>useLazyQuery(GetLegalDocument,e),ENe=e=>useMutation(TransferTokenVerification,e);let jp=e=>e,wx,Ux,xx,Fx,$x;const Qf={context:{apiName:"user"}},H7=(0,Ue.J1)(wx||(wx=jp`
2535
+ `));function cNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useMutation(j7,t)}var lNe=p(8089);const dm={context:{apiName:"rest"}},fNe=e=>{const t=merge({},dm,e);return useQuery(GetPatientVerificationAllDocument,t)},_Ne=e=>{const t=merge({},dm,e);return useLazyQuery(GetPatientVerificationAllDocument,t)},dNe=e=>{const t=merge({},dm,e);return useQuery(GetLastPhoneNumberVerified,t)},pNe=e=>{const t=merge({},dm,e);return useLazyQuery(GetLastPhoneNumberVerified,t)},hNe=e=>useQuery(GetLegalDocument,e),SNe=e=>useLazyQuery(GetLegalDocument,e),ENe=e=>useMutation(TransferTokenVerification,e);let jp=e=>e,wx,Ux,xx,Fx,$x;const zf={context:{apiName:"user"}},H7=(0,Ue.J1)(wx||(wx=jp`
2536
2536
  mutation GenerateAuthTransfer($redirectURI: String!, $includeAttributeMatchingCheck: Boolean) {
2537
2537
  generateAuthTransfer(redirectURI: $redirectURI, includeAttributeMatchingCheck: $includeAttributeMatchingCheck) {
2538
2538
  transferToken
@@ -2540,7 +2540,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2540
2540
  timeToLive
2541
2541
  }
2542
2542
  }
2543
- `));function vNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useMutation(H7,t)}const Vx=(0,Ue.J1)(Ux||(Ux=jp`
2543
+ `));function vNe(e){const t=Object.assign(Object.assign({},zf),e);return Apollo.useMutation(H7,t)}const Vx=(0,Ue.J1)(Ux||(Ux=jp`
2544
2544
  query GetUserVerificationStatus {
2545
2545
  verificationStatus {
2546
2546
  resourceType
@@ -2557,7 +2557,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2557
2557
  }
2558
2558
  }
2559
2559
  }
2560
- `));function mNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useQuery(Vx,t)}function TNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useLazyQuery(Vx,t)}const Y7=(0,Ue.J1)(xx||(xx=jp`
2560
+ `));function mNe(e){const t=Object.assign(Object.assign({},zf),e);return Apollo.useQuery(Vx,t)}function TNe(e){const t=Object.assign(Object.assign({},zf),e);return Apollo.useLazyQuery(Vx,t)}const Y7=(0,Ue.J1)(xx||(xx=jp`
2561
2561
  mutation SendOtp($otpRequest: SendOtpRequest!) {
2562
2562
  sendOtp(SendOtpRequest: $otpRequest) {
2563
2563
  resourceType
@@ -2572,7 +2572,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2572
2572
  }
2573
2573
  }
2574
2574
  }
2575
- `));function ANe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useMutation(Y7,t)}const q7=(0,Ue.J1)(Fx||(Fx=jp`
2575
+ `));function ANe(e){const t=Object.assign(Object.assign({},zf),e);return Apollo.useMutation(Y7,t)}const q7=(0,Ue.J1)(Fx||(Fx=jp`
2576
2576
  mutation VerifyAndUpdatePerson($code: String!, $redirectURI: String!, $performAttributeMatching: Boolean!) {
2577
2577
  verifyAndUpdatePerson(
2578
2578
  VerificationInput: { code: $code, redirectURI: $redirectURI, performAttributeMatching: $performAttributeMatching }
@@ -2590,7 +2590,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2590
2590
  }
2591
2591
  }
2592
2592
  }
2593
- `));function gNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useMutation(q7,t)}const K7=(0,Ue.J1)($x||($x=jp`
2593
+ `));function gNe(e){const t=Object.assign(Object.assign({},zf),e);return Apollo.useMutation(q7,t)}const K7=(0,Ue.J1)($x||($x=jp`
2594
2594
  mutation VerifyOtp($verifyOtp: VerifyOtpRequest!) {
2595
2595
  verifyOtp(VerifyOtpRequest: $verifyOtp) {
2596
2596
  resourceType
@@ -2605,7 +2605,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
2605
2605
  }
2606
2606
  }
2607
2607
  }
2608
- `));function yNe(e){const t=Object.assign(Object.assign({},Qf),e);return Apollo.useMutation(K7,t)}let rn=e=>e,Gx,Bx,kx,jx,Hx,Yx,qx,Kx,Wx,Qx,zx,Xx,Jx,Zx,eF,tF,rF,nF,iF,aF,oF,sF,uF,cF,lF,fF,_F,dF,pF,hF,SF,EF;const Ft={context:{apiName:"config"}},W7=(0,Ue.J1)(Gx||(Gx=rn`
2608
+ `));function yNe(e){const t=Object.assign(Object.assign({},zf),e);return Apollo.useMutation(K7,t)}let rn=e=>e,Gx,Bx,kx,jx,Hx,Yx,qx,Kx,Wx,Qx,zx,Xx,Jx,Zx,eF,tF,rF,nF,iF,aF,oF,sF,uF,cF,lF,fF,_F,dF,pF,hF,SF,EF;const Ft={context:{apiName:"config"}},W7=(0,Ue.J1)(Gx||(Gx=rn`
2609
2609
  fragment pssClientFields on PssClient {
2610
2610
  id
2611
2611
  name
@@ -4237,11 +4237,11 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
4237
4237
  NoResponse
4238
4238
  }
4239
4239
  }
4240
- `)),i0e=(e,t={})=>{const r=useApolloClient(),[n,i]=useState({data:void 0,error:void 0,loading:!t.skip,networkStatus:t.skip?NetworkStatus.ready:NetworkStatus.loading}),a=useRef(!0),u=useMemo(()=>t,[JSON.stringify(t)]),c=useMemo(()=>e,[e]);return useEffect(()=>{if(u.skip){i({data:void 0,error:void 0,loading:!1,networkStatus:NetworkStatus.ready});return}return(()=>__awaiter(void 0,void 0,void 0,function*(){i(_=>Object.assign(Object.assign({},_),{loading:!0,error:null}));try{const _=yield r.query(Object.assign({query:c},u));a.current&&i(_)}catch(_){a.current&&i({data:void 0,loading:!1,error:_ instanceof ApolloError?_:new ApolloError({errorMessage:_.message}),networkStatus:NetworkStatus.error})}}))(),()=>{a.current=!1}},[c,u,r]),n},a0e=e=>useQuery(GetCoverage,e),o0e=e=>useQuery(GetClaims,e),s0e=e=>useQuery(GetClaim,e),u0e=e=>useQuery(GetCoverageEligibility,e),c0e=e=>useQuery(GetPlanBenefits,e),l0e=e=>useQuery(GetMedications,e),f0e=e=>useQuery(GetMedicationPricing,e),_0e=e=>useLazyQuery(GetMedicationPricing,e),d0e=e=>useQuery(GetMedicationKnowledge,e),p0e=e=>useLazyQuery(GetMedicationKnowledge,e),h0e=e=>useQuery(GetLabs,e),S0e=e=>useQuery(GetAllergies,e),E0e=e=>useQuery(GetCarePlans,e),v0e=e=>useQuery(GetEncounters,e),m0e=e=>useQuery(GetVitals,e),T0e=e=>useQuery(GetProcedures,e),A0e=e=>useQuery(GetDiagnoses,e),g0e=e=>useQuery(GetImmunizations,e),y0e=e=>useQuery(GetNotifications,e),R0e=e=>useMutation(ClearNotifications,e),O0e=e=>useQuery(GetDigitalWalletCards,e),b0e=e=>useQuery(GetDigitalWalletCardDetails,e),C0e=e=>useQuery(GetDigitalWalletCardTypes,e),P0e=e=>useQuery(GetDigitalWalletInsuranceTypes,e),M0e=e=>useMutation(CreateDigitalWalletCard,e),I0e=e=>useMutation(DeleteDigitalWalletCard,e),N0e=e=>useMutation(UpdateDigitalWalletCard,e),L0e=e=>useApolloClientQuery(GetDigitalWalletCardAttachements,e);let pm=e=>e,L1,D1,w1,U1;const Jc={context:{apiName:"pss"}},Z7=(0,Ue.J1)(L1||(L1=pm`
4240
+ `)),i0e=(e,t={})=>{const r=useApolloClient(),[n,i]=useState({data:void 0,error:void 0,loading:!t.skip,networkStatus:t.skip?NetworkStatus.ready:NetworkStatus.loading}),a=useRef(!0),u=useMemo(()=>t,[JSON.stringify(t)]),c=useMemo(()=>e,[e]);return useEffect(()=>{if(u.skip){i({data:void 0,error:void 0,loading:!1,networkStatus:NetworkStatus.ready});return}return(()=>__awaiter(void 0,void 0,void 0,function*(){i(_=>Object.assign(Object.assign({},_),{loading:!0,error:null}));try{const _=yield r.query(Object.assign({query:c},u));a.current&&i(_)}catch(_){a.current&&i({data:void 0,loading:!1,error:_ instanceof ApolloError?_:new ApolloError({errorMessage:_.message}),networkStatus:NetworkStatus.error})}}))(),()=>{a.current=!1}},[c,u,r]),n},a0e=e=>useQuery(GetCoverage,e),o0e=e=>useQuery(GetClaims,e),s0e=e=>useQuery(GetClaim,e),u0e=e=>useQuery(GetCoverageEligibility,e),c0e=e=>useQuery(GetPlanBenefits,e),l0e=e=>useQuery(GetMedications,e),f0e=e=>useQuery(GetMedicationPricing,e),_0e=e=>useLazyQuery(GetMedicationPricing,e),d0e=e=>useQuery(GetMedicationKnowledge,e),p0e=e=>useLazyQuery(GetMedicationKnowledge,e),h0e=e=>useQuery(GetLabs,e),S0e=e=>useQuery(GetAllergies,e),E0e=e=>useQuery(GetCarePlans,e),v0e=e=>useQuery(GetEncounters,e),m0e=e=>useQuery(GetVitals,e),T0e=e=>useQuery(GetProcedures,e),A0e=e=>useQuery(GetDiagnoses,e),g0e=e=>useQuery(GetImmunizations,e),y0e=e=>useQuery(GetNotifications,e),R0e=e=>useMutation(ClearNotifications,e),O0e=e=>useQuery(GetDigitalWalletCards,e),b0e=e=>useQuery(GetDigitalWalletCardDetails,e),C0e=e=>useQuery(GetDigitalWalletCardTypes,e),P0e=e=>useQuery(GetDigitalWalletInsuranceTypes,e),M0e=e=>useMutation(CreateDigitalWalletCard,e),I0e=e=>useMutation(DeleteDigitalWalletCard,e),N0e=e=>useMutation(UpdateDigitalWalletCard,e),L0e=e=>useApolloClientQuery(GetDigitalWalletCardAttachements,e);let pm=e=>e,L1,D1,w1,U1;const Zc={context:{apiName:"pss"}},Z7=(0,Ue.J1)(L1||(L1=pm`
4241
4241
  mutation Interacted($user: UserInput, $result_id: String) {
4242
4242
  itemInteracted(user: $user, resultId: $result_id, interaction: CLICKED)
4243
4243
  }
4244
- `));function D0e(e){const t=Object.assign(Object.assign({},Jc),e);return Apollo.useMutation(Z7,t)}const x1=(0,Ue.J1)(D1||(D1=pm`
4244
+ `));function D0e(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useMutation(Z7,t)}const x1=(0,Ue.J1)(D1||(D1=pm`
4245
4245
  query GetProviders(
4246
4246
  $accepting_new: Boolean
4247
4247
  $ages_accepted: AgeRangeAccepted
@@ -4413,7 +4413,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
4413
4413
  totalCount
4414
4414
  }
4415
4415
  }
4416
- `));function w0e(e){const t=Object.assign(Object.assign({},Jc),e);return Apollo.useQuery(x1,t)}function U0e(e){const t=Object.assign(Object.assign({},Jc),e);return Apollo.useLazyQuery(x1,t)}const F1=(0,Ue.J1)(w1||(w1=pm`
4416
+ `));function w0e(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useQuery(x1,t)}function U0e(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useLazyQuery(x1,t)}const F1=(0,Ue.J1)(w1||(w1=pm`
4417
4417
  query GetProvidersDetails(
4418
4418
  $client: [ClientInput]
4419
4419
  $id_: [String]
@@ -4555,7 +4555,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
4555
4555
  }
4556
4556
  }
4557
4557
  }
4558
- `));function x0e(e){const t=Object.assign(Object.assign({},Jc),e);return Apollo.useQuery(F1,t)}function F0e(e){const t=Object.assign(Object.assign({},Jc),e);return Apollo.useLazyQuery(F1,t)}const $1=(0,Ue.J1)(U1||(U1=pm`
4558
+ `));function x0e(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useQuery(F1,t)}function F0e(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useLazyQuery(F1,t)}const $1=(0,Ue.J1)(U1||(U1=pm`
4559
4559
  query GetProvidersTypeahead(
4560
4560
  $client: [ClientInput]
4561
4561
  $search: String
@@ -4577,7 +4577,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
4577
4577
  }
4578
4578
  }
4579
4579
  }
4580
- `));function $0e(e){const t=Object.assign(Object.assign({},Jc),e);return Apollo.useQuery($1,t)}function V0e(e){const t=Object.assign(Object.assign({},Jc),e);return Apollo.useLazyQuery($1,t)}let xn=e=>e,V1,G1,B1,k1,j1,H1,Y1,q1,K1,W1,Q1,z1,X1,J1,Z1,e$,t$,r$,n$,i$,a$,o$,s$,u$,c$;const Pr={context:{apiName:"accessToCare"}},e9=(0,Ue.J1)(V1||(V1=xn`
4580
+ `));function $0e(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useQuery($1,t)}function V0e(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useLazyQuery($1,t)}let xn=e=>e,V1,G1,B1,k1,j1,H1,Y1,q1,K1,W1,Q1,z1,X1,J1,Z1,e$,t$,r$,n$,i$,a$,o$,s$,u$,c$;const Pr={context:{apiName:"accessToCare"}},e9=(0,Ue.J1)(V1||(V1=xn`
4581
4581
  fragment GeneralPractitionerFields on Patient {
4582
4582
  generalPractitioner {
4583
4583
  __typename
@@ -5246,7 +5246,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
5246
5246
  mutation RemoveMember($memberId: ID!) {
5247
5247
  removeMember(memberId: $memberId)
5248
5248
  }
5249
- `));function rwe(e){const t=Object.assign(Object.assign({},hm),e);return Apollo.useMutation(_9,t)}let Sm=e=>e,D$,w$,U$,x$;const Zc={context:{apiName:"consent"}},d9=(0,Ue.J1)(D$||(D$=Sm`
5249
+ `));function rwe(e){const t=Object.assign(Object.assign({},hm),e);return Apollo.useMutation(_9,t)}let Sm=e=>e,D$,w$,U$,x$;const el={context:{apiName:"consent"}},d9=(0,Ue.J1)(D$||(D$=Sm`
5250
5250
  mutation CreateQuestionnaireResponse(
5251
5251
  $data: String!
5252
5252
  $patientId: String!
@@ -5270,7 +5270,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
5270
5270
  questionnaireName
5271
5271
  }
5272
5272
  }
5273
- `));function nwe(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useMutation(d9,t)}const F$=(0,Ue.J1)(w$||(w$=Sm`
5273
+ `));function nwe(e){const t=Object.assign(Object.assign({},el),e);return Apollo.useMutation(d9,t)}const F$=(0,Ue.J1)(w$||(w$=Sm`
5274
5274
  query GetConsent($patientId: String!, $questionnaireId: String, $questionnaireName: String, $searchParams: String) {
5275
5275
  consent(
5276
5276
  patientId: $patientId
@@ -5301,7 +5301,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
5301
5301
  provision
5302
5302
  }
5303
5303
  }
5304
- `));function iwe(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useQuery(F$,t)}function awe(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useLazyQuery(F$,t)}const $$=(0,Ue.J1)(U$||(U$=Sm`
5304
+ `));function iwe(e){const t=Object.assign(Object.assign({},el),e);return Apollo.useQuery(F$,t)}function awe(e){const t=Object.assign(Object.assign({},el),e);return Apollo.useLazyQuery(F$,t)}const $$=(0,Ue.J1)(U$||(U$=Sm`
5305
5305
  query GetQuestionnaire($name: String) {
5306
5306
  questionnaire(name: $name) {
5307
5307
  model {
@@ -5323,7 +5323,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
5323
5323
  uiSchema
5324
5324
  }
5325
5325
  }
5326
- `));function owe(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useQuery($$,t)}function swe(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useLazyQuery($$,t)}const V$=(0,Ue.J1)(x$||(x$=Sm`
5326
+ `));function owe(e){const t=Object.assign(Object.assign({},el),e);return Apollo.useQuery($$,t)}function swe(e){const t=Object.assign(Object.assign({},el),e);return Apollo.useLazyQuery($$,t)}const V$=(0,Ue.J1)(x$||(x$=Sm`
5327
5327
  query GetQuestionnaireResponse(
5328
5328
  $patientId: String!
5329
5329
  $questionnaireId: String
@@ -5341,7 +5341,7 @@ Take a look at the reducer(s) handling this action type: `+We.type+`.
5341
5341
  questionnaireName
5342
5342
  }
5343
5343
  }
5344
- `));function uwe(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useQuery(V$,t)}function cwe(e){const t=Object.assign(Object.assign({},Zc),e);return Apollo.useLazyQuery(V$,t)}const lwe=e=>useMutation(CreateOauthThirdPartyConnection,e),fwe=e=>useMutation(DisconnectUserToken,e),_we=e=>useMutation(CreateConnectionStatus,e),dwe=e=>useQuery(GetMemberConnections,e),pwe=e=>useQuery(GetConnections,e),hwe=e=>useQuery(GetConnection,e),Swe=e=>useQuery(GetOauthGeneratedUrl,e);var G$=p(46),Hp,Em;class B${constructor(){this.type="backend",Hp.set(this,void 0),Em.set(this,void 0)}init(t,{clientSlug:r,apiClient:n}){if(!n)throw t.logger.error('"apiClient" not supplied to "QueryBackend".'),new Error('"apiClient" required for "QueryBackend".');Du(this,Hp,r,"f"),Du(this,Em,uU(n),"f")}read(t,r,n){return sm(this,void 0,void 0,function*(){try{const{translation:i}=yield Jr(this,Em,"f").getClientTranslations({name:Jr(this,Hp,"f"),key:r,lang:t});n(null,i?.json||{})}catch{const a=`Error fetching translation with key "${r}" and client "${Jr(this,Hp,"f")||"N/A"}".`;n(a,null)}})}}Hp=new WeakMap,Em=new WeakMap,B$.type="backend";var zf;class k${constructor(t){this.type="logger",zf.set(this,void 0),Du(this,zf,t,"f")}log([t,r,...n]){Jr(this,zf,"f").info({meta:r},t,...n)}warn([t,r,...n]){Jr(this,zf,"f").error({meta:r},t,...n)}error([t,r,...n]){Jr(this,zf,"f").error({meta:r},t,...n)}}zf=new WeakMap,k$.type="logger";var vm,mm,el,Yp,Ii,tl;const j$="appLanguage";class Pa{constructor({keys:t,nativeBridge:r,fallbackKeys:n=[],defaultLanguage:i="en",logger:a,parent:u,debug:c=!1,remoteConfig:v={}}){el.set(this,void 0),Yp.set(this,void 0),Ii.set(this,void 0),tl.set(this,void 0),Du(this,el,t,"f"),Du(this,Yp,n,"f"),Du(this,tl,r,"f");const _={lng:i,fallbackNS:Jr(this,Yp,"f"),debug:c,defaultNS:t,returnNull:!1};u?Du(this,Ii,u.cloneInstance(_),"f"):(Du(this,Ii,ea.createInstance(),"f"),a&&Jr(this,Ii,"f").use(new k$(a.child({library:"@icanbwell/i18n"}))),v.apiClient&&Jr(this,Ii,"f").use(B$),Jr(this,Ii,"f").init(Object.assign(Object.assign({},_),{fallbackLng:!1,partialBundledLanguages:!0,ns:[],resources:{},backend:v,saveMissing:!0,missingKeyHandler:(h,L,W)=>Jr(this,Ii,"f").services.logger.error(`missing key: ${W}; language: ${h}; key: ${L}`)}))),this.t=Jr(this,Ii,"f").t,Pa.resolvedLanguage=Jr(this,Ii,"f").resolvedLanguage||i}load(){var t;return sm(this,void 0,void 0,function*(){const r=(yield(t=Jr(this,tl,"f"))===null||t===void 0?void 0:t.storage.getItem(j$))||Pa.resolvedLanguage;r!==Pa.resolvedLanguage&&(yield Jr(this,Ii,"f").changeLanguage(r),Pa.resolvedLanguage=r),yield Jr(this,Ii,"f").loadNamespaces(Jr(this,el,"f"));const n=Jr(this,el,"f").filter(i=>!Jr(this,Ii,"f").hasResourceBundle(r,i));if(n.length)throw new Error(`Error loading translations for key(s): ${n.join(", ")}`);return Jr(Pa,vm,"f",mm).emit("changeLanguage",r),this})}child(t){return new Pa(Object.assign(Object.assign({},t),{nativeBridge:Jr(this,tl,"f"),fallbackKeys:[...Jr(this,Yp,"f"),...Jr(this,el,"f")],parent:Jr(this,Ii,"f"),defaultLanguage:Jr(this,Ii,"f").language}))}get isLoaded(){return Jr(this,el,"f").every(t=>Jr(this,Ii,"f").hasResourceBundle(Jr(this,Ii,"f").language,t))}changeLanguage(t){var r;return sm(this,void 0,void 0,function*(){Pa.resolvedLanguage=t,yield Jr(this,Ii,"f").changeLanguage(t),Jr(Pa,vm,"f",mm).emit("changeLanguage",t),yield(r=Jr(this,tl,"f"))===null||r===void 0?void 0:r.storage.setItem(j$,t),Jr(this,tl,"f").reloadView()})}get resolvedLanguage(){return Pa.resolvedLanguage}onChangeLanguage(t){Jr(Pa,vm,"f",mm).on("changeLanguage",t)}}vm=Pa,el=new WeakMap,Yp=new WeakMap,Ii=new WeakMap,tl=new WeakMap,mm={value:new G$},Pa.resolvedLanguage="en";var PC=p(1827),qp;(function(e){e.one="1.0.0"})(qp||(qp={}));const Tm="orchestrator:native-bridge",p9={id:Tm,dependencies:{featureServices:{}},create:()=>({[qp.one]:()=>({featureService:PC.b})})};var Kp;(function(e){e.one="1.0.0"})(Kp||(Kp={}));const Am="orchestrator:translation-service",h9={id:Am,dependencies:{featureServices:{[za]:Nr.one,[js]:Pu.one,[Wn]:vi.one,[Mp]:Bf.one,[Tm]:qp.one}},create:({featureServices:e})=>{const t=e[za],r=e[js],n=e[Mp],{slug:i}=e[Wn].getClientContext(),a=e[Tm],u=new Pa({keys:[],nativeBridge:a,defaultLanguage:"en",logger:r,remoteConfig:{clientSlug:i,apiClient:t}});return n.setProfileProperties({language:u.resolvedLanguage}),u.onChangeLanguage(c=>n.setProfileProperties({language:c})),{[Kp.one]:()=>({featureService:u})}}};var Xf,Jf,gm,rl;const ym="tokens";class S9{constructor({apiClient:t,stateService:r,identityGatewaySdk:n,storage:i}){Xf.set(this,void 0),Jf.set(this,void 0),gm.set(this,void 0),rl.set(this,void 0),(0,F.GG)(this,Xf,t,"f"),(0,F.GG)(this,Jf,r,"f"),(0,F.GG)(this,gm,n,"f"),(0,F.GG)(this,rl,i,"f")}getStoredTokens(){const t=(0,F.gn)(this,rl,"f").getItem(ym);return t?JSON.parse(t):void 0}removeStoredTokens(){(0,F.gn)(this,rl,"f").removeItem(ym)}storeTokens(t){(0,F.gn)(this,rl,"f").setItem(ym,JSON.stringify(t))}logout(){return(0,F.sH)(this,void 0,void 0,function*(){const t=(0,F.gn)(this,Jf,"f").getUserTokenData().accessToken.jwtToken,{key:r,variant:n}=(0,F.gn)(this,Jf,"f").getClientContext();n!==te.GUEST&&(yield(0,F.gn)(this,gm,"f").logout({accessToken:t},{context:{headers:{clientKey:r}}})),(0,F.gn)(this,Xf,"f").stop(),(0,F.gn)(this,Xf,"f").clearAuth(),yield(0,F.gn)(this,Xf,"f").clearStore(),(0,F.gn)(this,Jf,"f").logoutUser(),(0,F.gn)(this,rl,"f").removeItem(ym)})}}Xf=new WeakMap,Jf=new WeakMap,gm=new WeakMap,rl=new WeakMap;var Rm;(function(e){e.one="1.0.0"})(Rm||(Rm={}));const H$="orchestrator:identity-utils",E9={id:H$,dependencies:{featureServices:{[za]:Nr.one,[js]:Pu.one,[Wn]:vi.one,[Mp]:Bf.one}},create:({featureServices:e})=>{const t=e[za];return{[Rm.one]:()=>({featureService:new S9({apiClient:t,stateService:e[Wn],identityGatewaySdk:Sx(t),storage:window.sessionStorage})})}}};var Om;(function(e){e.one="1.0.0"})(Om||(Om={}));const Y$="orchestrator:globaleventemitter-service",v9=e=>({id:Y$,create:()=>({[Om.one]:()=>({featureService:e})})});var bm;(function(e){e.one="1.0.0"})(bm||(bm={}));const q$="orchestrator:reboot-controller",m9=e=>({id:q$,create:()=>({[bm.one]:()=>({featureService:e})})});class Bi extends Error{constructor(t,r){super(t),this.name="BWellError",r?.cause&&(this.cause=r.cause)}static isBwellError(t){return t instanceof Bi}}class Ewe extends Bi{constructor(t="Authentication Error"){super(t),this.name="AuthenticationError"}}class vwe extends Bi{constructor(t="Illegal Argument Error"){super(t),this.name="IllegalArgumentError"}}class mwe extends Bi{constructor(t="Illegal State Error"){super(t),this.name="IllegalStateError"}}class T9 extends Bi{constructor(t="Invalid Client Key Error"){super(t),this.name="InvalidClientKeyError"}}class MC extends Bi{constructor(t,r){super(t),this.credentials=r,this.name="InvalidCredentialsTypeError"}}class Zf extends Bi{constructor(t="Invalid Token Error"){super(t),this.name="InvalidTokenError"}}class A9 extends Bi{constructor(t,r){super(t),this.status=r,this.name="NetworkError"}}class g9 extends Bi{constructor(t){super(t.message()),this.operationOutcome=t,this.name="OperationOutcomeError"}}class IC extends Bi{constructor(t,r){super(t),this.data=r,this.name="UnknownError"}}class y9 extends Bi{constructor(t){super(t.join(". ")),this.errors=t,this.name="ValidationError"}}class ar{constructor(t,r){this.data=t,r!==null&&(this.error=r)}hasError(){return this.error!==void 0}static error(t){return new ar(void 0,t)}}var K$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Cm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Wp,Qp;class Kt{static success(t){return new R9(t)}static failure(t){return new Pm(t)}}class R9 extends Kt{constructor(t){super(),Wp.set(this,void 0),K$(this,Wp,t,"f")}data(){return Cm(this,Wp,"f")}error(){throw Cm(this,Wp,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new ar(this.data())}}Wp=new WeakMap;class Pm extends Kt{constructor(t){super(),Qp.set(this,void 0),K$(this,Qp,t,"f")}data(){throw Cm(this,Qp,"f")}error(){return Cm(this,Qp,"f")}success(){return!1}failure(){return!0}intoFailure(){return Kt.failure(this.error())}toQueryResult(){return new ar(void 0,this.error())}}Qp=new WeakMap;var NC=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},zp;class O9{constructor(){zp.set(this,[])}add(t){NC(this,zp,"f").push(t)}errors(){return NC(this,zp,"f")}hasErrors(){return NC(this,zp,"f").length>0}}zp=new WeakMap;var W$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},LC=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Xp,Mm;class b9{constructor(t){Xp.set(this,void 0),Mm.set(this,void 0),W$(this,Mm,t,"f"),W$(this,Xp,this.transformInput(t),"f")}validate(){return Kt.success(null)}data(){return LC(this,Xp,"f")}toJSON(){return LC(this,Xp,"f")}transformInput(t){return t}input(){return LC(this,Mm,"f")}}Xp=new WeakMap,Mm=new WeakMap;class sa extends b9{validate(){const t=new O9;return this.validator.validate(this.input(),t),t.hasErrors()?Kt.failure(new y9(t.errors())):Kt.success(null)}}var Q$=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Im,z$,X$;const J$=100,C9=20;class qs{constructor(){Im.add(this)}validate(t,r){Q$(this,Im,"m",z$).call(this,t.page,r),Q$(this,Im,"m",X$).call(this,t.pageSize,r)}}Im=new WeakSet,z$=function(t,r){t<0&&r.add("page must be a positive number")},X$=function(t,r){t!==void 0&&(t<=0&&r.add("Page size must be greater than 0"),t>J$&&r.add(`Page size must not exceed ${J$}`))};class Ks extends sa{constructor(){super(...arguments),this.validator=new qs}transformInput(t){return Object.assign({pageSize:C9},t)}}function P9(){var e;return!(typeof process>"u"||((e=process.versions)===null||e===void 0?void 0:e.node)===void 0)}function M9(){return typeof window<"u"}function Z$(){if(M9())return"browser";if(P9())return"node";throw new Error("Invalid runtime")}function I9(e){switch(Z$()){case"browser":return e.browser();case"node":return e.node()}}function eV(e){switch(Z$()){case"node":return Buffer.from(e,"base64").toString("utf-8");case"browser":return atob(e)}}function Fn(e){return e!=null}function Fo(e){return e==null}function Twe(e){return Fn(e)&&e!==""}function Ws(e){return e==null||e===""}function ka(e){return e===void 0}function ki(e){return e!==void 0}function N9(e){return JSON.parse(eV(e)).env}const L9=3;function tV(e){const t=e.split("."),r=t[1];if(r===void 0||t.length!==L9)throw new Zf("Token is missing data and may be corrupted");try{return JSON.parse(eV(r))}catch(n){const i=n;throw new Zf(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function D9(e){const r=tV(e).exp;if(typeof r!="number")throw new Zf("The access token is missing an expiration date and is most likely corrupted.");return r*1e3}const w9="custom:clientFhirPersonId",U9="custom:bwellFhirPatientId";function x9(e){const t=tV(e),r=t[U9],n=t[w9];return Fn(r)&&Fn(n)?{bwellFhirPersonId:r,clientFhirPersonId:n}:null}function $o(e){return e.trim()===""}const F9="1.33.0";function $9(){return F9}var DC;(function(e){e.Arrived="ARRIVED",e.Booked="BOOKED",e.Cancelled="CANCELLED",e.CheckedIn="CHECKED_IN",e.EnteredInError="ENTERED_IN_ERROR",e.Fulfilled="FULFILLED",e.Noshow="NOSHOW",e.Pending="PENDING",e.Proposed="PROPOSED",e.Waitlist="WAITLIST"})(DC||(DC={}));var rV;(function(e){e.Guest="GUEST"})(rV||(rV={}));var Nm;(function(e){e.CommunicationPreferencesPhi="COMMUNICATION_PREFERENCES_PHI",e.DataSharing="DATA_SHARING",e.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",e.HealthCircleMinor="HEALTH_CIRCLE_MINOR",e.HealthMatch="HEALTH_MATCH",e.IasImportRecords="IAS_IMPORT_RECORDS",e.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",e.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",e.ProaAttestation="PROA_ATTESTATION",e.Tos="TOS"})(Nm||(Nm={}));var nV;(function(e){e.Bwell="bwell"})(nV||(nV={}));var iV;(function(e){e.Bwell="BWELL"})(iV||(iV={}));var aV;(function(e){e.Basic="BASIC",e.Oauth="OAUTH"})(aV||(aV={}));var wC;(function(e){e.Deny="DENY",e.Permit="PERMIT"})(wC||(wC={}));var UC;(function(e){e.Active="ACTIVE",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Inactive="INACTIVE",e.Proposed="PROPOSED",e.Rejected="REJECTED"})(UC||(UC={}));var oV;(function(e){e.Usd="USD"})(oV||(oV={}));var sV;(function(e){e.Connected="CONNECTED",e.Deleted="DELETED",e.Disconnected="DISCONNECTED",e.Error="ERROR",e.Expired="EXPIRED"})(sV||(sV={}));var uV;(function(e){e.Clinical="CLINICAL",e.Insurance="INSURANCE",e.Lab="LAB",e.Pharmacy="PHARMACY",e.Practitioner="PRACTITIONER"})(uV||(uV={}));var Lm;(function(e){e.Connecthub="connecthub",e.Nppes="nppes"})(Lm||(Lm={}));var cV;(function(e){e.Connecthub="CONNECTHUB",e.Nppes="NPPES"})(cV||(cV={}));var lV;(function(e){e.BwellPatient="BWELL_PATIENT",e.BwellPerson="BWELL_PERSON",e.ClientPatient="CLIENT_PATIENT",e.ClientPerson="CLIENT_PERSON"})(lV||(lV={}));var fV;(function(e){e.Active="active",e.EnteredInError="entered_in_error",e.Error="error",e.Off="off",e.Suspended="suspended",e.Test="test"})(fV||(fV={}));var _V;(function(e){e.Active="ACTIVE",e.EnteredInError="ENTERED_IN_ERROR",e.Error="ERROR",e.Off="OFF",e.Suspended="SUSPENDED",e.Test="TEST"})(_V||(_V={}));var xC;(function(e){e.CustomEvent="CUSTOM_EVENT",e.MobilePushOpen="MOBILE_PUSH_OPEN"})(xC||(xC={}));var FC;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(FC||(FC={}));var $C;(function(e){e.Person="Person"})($C||($C={}));var VC;(function(e){e.Characteristic="characteristic",e.Communication="communication",e.Gender="gender",e.Specialty="specialty"})(VC||(VC={}));var dV;(function(e){e.Characteristic="CHARACTERISTIC",e.Communication="COMMUNICATION",e.Gender="GENDER",e.Specialty="SPECIALTY"})(dV||(dV={}));var pV;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(pV||(pV={}));var hV;(function(e){e.Female="FEMALE",e.Male="MALE",e.Other="OTHER",e.Unknown="UNKNOWN"})(hV||(hV={}));var SV;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.Labs="LABS",e.Medications="MEDICATIONS",e.Procedure="PROCEDURE",e.VitalSigns="VITAL_SIGNS"})(SV||(SV={}));var EV;(function(e){e.Official="_official",e.Old="_old",e.Secondary="_secondary",e.Temp="_temp",e.Usual="_usual"})(EV||(EV={}));var vV;(function(e){e.Clicked="clicked"})(vV||(vV={}));var mV;(function(e){e.Clicked="CLICKED"})(mV||(mV={}));var GC;(function(e){e.Debug="DEBUG",e.Error="ERROR",e.Info="INFO",e.Verbose="VERBOSE",e.Warn="WARN"})(GC||(GC={}));var TV;(function(e){e.Activity="ACTIVITY",e.Exam="EXAM",e.Imaging="IMAGING",e.Laboratory="LABORATORY",e.Procedure="PROCEDURE",e.SocialHistory="SOCIAL_HISTORY",e.Survey="SURVEY",e.Therapy="THERAPY",e.VitalSigns="VITAL_SIGNS"})(TV||(TV={}));var AV;(function(e){e.CancelDelete="CANCEL_DELETE",e.ConfirmDelete="CONFIRM_DELETE",e.DeletionInProgress="DELETION_IN_PROGRESS",e.ImmediateExecution="IMMEDIATE_EXECUTION",e.RequestDelete="REQUEST_DELETE"})(AV||(AV={}));var BC;(function(e){e.C19Vaccine="C19Vaccine",e.Device="Device",e.Insurance="Insurance",e.Laboratory="Laboratory",e.Pharmacy="Pharmacy",e.Provider="Provider",e.Bus="bus",e.Cg="cg",e.Crs="crs",e.Dept="dept",e.Edu="edu",e.Govt="govt",e.Ins="ins",e.Other="other",e.Pay="pay",e.Prov="prov",e.Reli="reli",e.Team="team"})(BC||(BC={}));var gV;(function(e){e.Bus="BUS",e.C19Vaccine="C19VACCINE",e.Cg="CG",e.Crs="CRS",e.Dept="DEPT",e.Device="DEVICE",e.Edu="EDU",e.Govt="GOVT",e.Ins="INS",e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Other="OTHER",e.Pay="PAY",e.Pharmacy="PHARMACY",e.Prov="PROV",e.Provider="PROVIDER",e.Reli="RELI",e.Team="TEAM"})(gV||(gV={}));var yV;(function(e){e.Add="add",e.Copy="copy",e.Move="move",e.Remove="remove",e.Replace="replace",e.Test="test"})(yV||(yV={}));var RV;(function(e){e.Patient="Patient",e.Person="Person"})(RV||(RV={}));var OV;(function(e){e.Practice="practice",e.Practitioner="practitioner"})(OV||(OV={}));var bV;(function(e){e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(bV||(bV={}));var CV;(function(e){e.QuestionnaireResponse="QuestionnaireResponse"})(CV||(CV={}));var PV;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.MedicationDispense="MEDICATION_DISPENSE",e.MedicationRequest="MEDICATION_REQUEST",e.MedicationStatement="MEDICATION_STATEMENT",e.Observation="OBSERVATION",e.Procedure="PROCEDURE"})(PV||(PV={}));var MV;(function(e){e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Pharmacy="PHARMACY",e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(MV||(MV={}));var kC;(function(e){e.Content="content",e.Distance="distance",e.Relevance="relevance"})(kC||(kC={}));var IV;(function(e){e.Content="CONTENT",e.DataSourceRank="DATA_SOURCE_RANK",e.Distance="DISTANCE",e.Relevance="RELEVANCE"})(IV||(IV={}));var jC;(function(e){e.Asc="asc",e.Desc="desc"})(jC||(jC={}));var NV;(function(e){e.Asc="ASC",e.Desc="DESC"})(NV||(NV={}));var LV;(function(e){e.CareSearch="CARE_SEARCH",e.Proa="PROA",e.ProviderDetails="PROVIDER_DETAILS",e.Sayt="SAYT",e.Unspecified="UNSPECIFIED"})(LV||(LV={}));var DV;(function(e){e.Error="ERROR",e.Pending="PENDING",e.Retrieved="RETRIEVED",e.Retrieving="RETRIEVING"})(DV||(DV={}));var HC;(function(e){e.Accepted="ACCEPTED",e.Cancelled="CANCELLED",e.Completed="COMPLETED",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.OnHold="ON_HOLD",e.Ready="READY",e.Received="RECEIVED",e.Rejected="REJECTED",e.Requested="REQUESTED"})(HC||(HC={}));var wV;(function(e){e.Accurate="accurate",e.Estimate="estimate"})(wV||(wV={}));const V9=new Set(Object.values(FC));function UV(e){return V9.has(e)}const G9=new Set(Object.values(UC));function B9(e){return G9.has(e)}const k9=new Set(Object.values(Nm));function xV(e){return k9.has(e)}const j9=new Set(Object.values(wC));function H9(e){return j9.has(e)}class Y9{validate(t,r){!ka(t.gender)&&!UV(t.gender)&&r.add(`Invalid gender value: "${t.gender}"`)}}class Awe extends sa{constructor(){super(...arguments),this.validator=new Y9}}class q9{validate(t,r){xV(t.category)||r.add(`Invalid consent category code: "${t.category}"`)}}class gwe extends sa{constructor(){super(...arguments),this.validator=new q9}}class K9{validate(t,r){B9(t.status)||r.add(`Invalid consent status: "${t.status}"`),H9(t.provision)||r.add(`Invalid consent provision type: "${t.provision}"`),xV(t.category)||r.add(`Invalid consent category code: "${t.category}"`),!ka(t.organizationId)&&$o(t.organizationId)&&r.add("organizationId cannot be empty"),t.category===Nm.ProaAttestation&&ka(t.organizationId)&&r.add("organizationId must be provided when category is PROA_ATTESTATION")}}class ywe extends sa{constructor(){super(...arguments),this.validator=new K9}}class W9{validate(t,r){Ws(t.exportId)&&r.add("exportId is required"),Ws(t.password)&&r.add("password is required")}}class Rwe extends sa{constructor(){super(...arguments),this.validator=new W9}}class Owe extends null{}var ja=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ua,Uu,FV,$V,VV,GV,BV,kV;class YC{constructor(){ua.add(this)}validate(t,r){if(!t.values||t.values.length===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const n of t.values)ja(this,ua,"m",FV).call(this,n,r)}}ua=new WeakSet,Uu=function(t,r){t&&t!==null&&isNaN(t.getTime())&&r.add("The date is not valid")},FV=function(t,r){const{equals:n,notEquals:i,greaterThan:a,greaterThanOrEqualTo:u,lessThan:c,lessThanOrEqualTo:v,approximately:_}=t,L=[n,i,a,u,c,v,_].filter(W=>W!=null).length;if(L===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}ja(this,ua,"m",$V).call(this,t,L,r),ja(this,ua,"m",BV).call(this,t,r),ja(this,ua,"m",kV).call(this,t,r)},$V=function(t,r,n){const{equals:i,notEquals:a,approximately:u}=t;if(i&&r>1){n.add("The equals value cannot be set with any other values");return}if(a&&r>1){n.add("The notEquals value cannot be set with any other values");return}if(u&&r>1){n.add("The approximately value cannot be set with any other values");return}ja(this,ua,"m",VV).call(this,t,n),ja(this,ua,"m",GV).call(this,t,n)},VV=function(t,r){t.greaterThan&&t.greaterThanOrEqualTo&&r.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},GV=function(t,r){t.lessThan&&t.lessThanOrEqualTo&&r.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},BV=function(t,r){const{equals:n,notEquals:i,greaterThan:a,greaterThanOrEqualTo:u,lessThan:c,lessThanOrEqualTo:v,approximately:_}=t;n&&ja(this,ua,"m",Uu).call(this,n,r),i&&ja(this,ua,"m",Uu).call(this,i,r),a&&ja(this,ua,"m",Uu).call(this,a,r),u&&ja(this,ua,"m",Uu).call(this,u,r),c&&ja(this,ua,"m",Uu).call(this,c,r),v&&ja(this,ua,"m",Uu).call(this,v,r),_&&ja(this,ua,"m",Uu).call(this,_,r)},kV=function(t,r){const{greaterThan:n,greaterThanOrEqualTo:i,lessThan:a,lessThanOrEqualTo:u}=t;n&&u&&n>=u&&r.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&a&&i>=a&&r.add("The greaterThanOrEqualTo value must be less than the lessThan value"),n&&a&&n>=a&&r.add("The greaterThan value must be less than the lessThan value"),i&&u&&i>=u&&r.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var qC=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Jp;class Dm{constructor(){Jp.set(this,new Q9)}validate(t,r){var n;if(t.value===void 0&&t.values===void 0&&t.notEquals===void 0){r.add("Either SearchToken value or values or notEquals must be provided");return}if(t.value!==void 0&&qC(this,Jp,"f").validate(t.value,r),t.values!==void 0&&t.values.length===0){r.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(n=t.values)!==null&&n!==void 0?n:[])qC(this,Jp,"f").validate(i,r);if(t.notEquals!==void 0){if(t.notEquals.values!==void 0){if(t.notEquals.values.length===0){r.add("If notEquals values are provided, at least one Coding must be set");return}for(const i of t.notEquals.values)qC(this,Jp,"f").validate(i,r)}t.notEquals.code===void 0&&t.notEquals.value===void 0&&t.notEquals.system===void 0&&t.notEquals.values===void 0&&r.add("NotEquals must have at least one non-null property (code, value, system, or values)")}}}Jp=new WeakMap;class Q9{validate(t,r){!t.system&&!t.code&&r.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var e_=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},KC,WC,QC,zC,XC,JC;class jV extends qs{constructor(){super(...arguments),KC.set(this,new Dm),WC.set(this,new YC)}validate(t,r){super.validate(t,r),t.groupCode&&e_(this,KC,"f").validate(t.groupCode,r),t.lastUpdated&&e_(this,WC,"f").validate(t.lastUpdated,r)}}KC=new WeakMap,WC=new WeakMap;class z9{validate(t,r){t.length===0&&r.add("Prescription array must not be empty.")}}class HV extends qs{constructor(){super(...arguments),QC.set(this,new z9),zC.set(this,new YC)}validate(t,r){super.validate(t,r),t.lastUpdated!==void 0&&e_(this,zC,"f").validate(t.lastUpdated,r),t.prescription!==void 0&&e_(this,QC,"f").validate(t.prescription,r)}}QC=new WeakMap,zC=new WeakMap;class X9 extends qs{validate(t,r){var n;super.validate(t,r),!((n=t?.ids)===null||n===void 0)&&n.length||r.add("ids must not be empty")}}class J9 extends Ks{constructor(){super(...arguments),this.validator=new jV}}class bwe extends null{}class Cwe extends null{}class Pwe extends null{}class Mwe extends null{}class Iwe extends null{}class Nwe extends null{}class Lwe extends null{}class Dwe extends null{}class wwe extends null{}class Uwe extends null{}class xwe extends null{}class Fwe extends null{}class $we extends null{}class Vwe extends null{}class Gwe extends null{}class Bwe extends null{}class kwe extends null{}class jwe extends null{}class Hwe extends null{}class Z9 extends HV{constructor(){super(...arguments),XC.set(this,new Dm)}validate(t,r){super.validate(t,r),t.medicationCode!==void 0&&e_(this,XC,"f").validate(t.medicationCode,r)}}XC=new WeakMap;class Ywe extends Ks{constructor(){super(...arguments),this.validator=new HV}}class qwe extends Ks{constructor(){super(...arguments),this.validator=new Z9}}class eZ extends jV{constructor(){super(...arguments),JC.set(this,new Dm)}validate(t,r){super.validate(t,r),t.medicationCode!==void 0&&e_(this,JC,"f").validate(t.medicationCode,r)}}JC=new WeakMap;class Kwe extends J9{constructor(){super(...arguments),this.validator=new eZ}}class Wwe extends null{}class Qwe extends Ks{constructor(){super(...arguments),this.validator=new X9}}class zwe extends null{}class tZ{validate(t,r){$o(t.medicationStatementId)&&r.add("The medication pricing request must possess a medication statement id.")}}class Xwe extends sa{constructor(){super(...arguments),this.validator=new tZ}}class rZ extends qs{validate(t,r){$o(t.medicationStatementId)&&r.add("The medication knowledge request must possess a medication statement id."),super.validate(t,r)}}class Jwe extends Ks{constructor(){super(...arguments),this.validator=new rZ}}class nZ extends qs{validate(t,r){$o(t.labId)&&r.add("The lab knowledge request must contain a lab id."),super.validate(t,r)}}class Zwe extends Ks{constructor(){super(...arguments),this.validator=new nZ}}const iZ=new Set(Object.values(HC));function YV(e){return iZ.has(e)}var aZ=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ZC,qV;class oZ extends qs{constructor(){super(...arguments),ZC.add(this)}validate(t,r){if(super.validate(t,r),!ka(t.status)){const n=Array.isArray(t.status)?t.status:[t.status];for(const i of n)aZ(this,ZC,"m",qV).call(this,i,r)}}}ZC=new WeakSet,qV=function(t,r){YV(t)||r.add(`Invalid task status: "${t}"`)};class eUe extends Ks{constructor(){super(...arguments),this.validator=new oZ}}class sZ{validate(t,r){YV(t.newStatus)||r.add(`Invalid task status: "${t.newStatus}"`)}}class tUe extends sa{constructor(){super(...arguments),this.validator=new sZ}}var wm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},t_,KV,WV,QV,zV;class rUe extends Ks{constructor(){super(...arguments),this.validator=new uZ}}class uZ extends qs{constructor(){super(...arguments),t_.add(this)}validate(t,r){super.validate(t,r),ki(t.organizationTypeFilters)&&wm(this,t_,"m",KV).call(this,t.organizationTypeFilters,r),ki(t.sortBy)&&wm(this,t_,"m",WV).call(this,t.sortBy,r),ki(t.filterFields)&&wm(this,t_,"m",QV).call(this,t.filterFields,r),ki(t.gender)&&wm(this,t_,"m",zV).call(this,t.gender,r)}}t_=new WeakSet,KV=function(t,r){for(const n of t)lZ(n)||r.add(`Invalid organizationTypeFilters value: "${n}"`)},WV=function(t,r){ki(t.field)&&!_Z(t.field)&&r.add(`Invalid sortBy.field value: "${t.field}"`),ki(t.order)&&!pZ(t.order)&&r.add(`Invalid sortBy.order value: "${t.order}"`)},QV=function(t,r){for(const n of t)SZ(n)||r.add(`Invalid filterField value: "${n}"`)},zV=function(t,r){UV(t)||r.add(`Invalid gender value: "${t}"`)};const cZ=new Set(Object.values(BC));function lZ(e){return cZ.has(e)}const fZ=new Set(Object.values(kC));function _Z(e){return fZ.has(e)}const dZ=new Set(Object.values(jC));function pZ(e){return dZ.has(e)}const hZ=new Set(Object.values(VC));function SZ(e){return hZ.has(e)}class nUe extends null{}class iUe extends Ks{constructor(){super(...arguments),this.validator=new EZ}}class EZ extends qs{validate(t,r){super.validate(t,r)}}const vZ="data-connection-status";var mZ=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},eP;const TZ="connectionId cannot be null or empty",AZ="username cannot be null or empty",gZ="password cannot be null or empty";class XV{validate(t,r){t.connectionId===""&&r.add(TZ)}}class yZ{constructor(){eP.set(this,new XV)}validate(t,r){mZ(this,eP,"f").validate(t,r),t.username===""&&r.add(AZ),t.password===""&&r.add(gZ)}}eP=new WeakMap;class RZ extends sa{constructor(){super(...arguments),this.validator=new XV}}class aUe extends null{}class oUe extends RZ{constructor(){super(...arguments),this.validator=new yZ}}const OZ="deviceToken is required",bZ="platformName must be a valid DevicePlatform value",CZ="applicationName is required";var tP;(function(e){e.IOS="IOS",e.ANDROID="ANDROID"})(tP||(tP={}));const PZ=new Set(Object.values(tP));function MZ(e){return PZ.has(e)}function IZ(e){return!MZ(e)}class JV{validate(t,r){$o(t.deviceToken)&&r.add(OZ)}}class NZ extends JV{validate(t,r){super.validate(t,r),IZ(t.platformName.toUpperCase())&&r.add(bZ),$o(t.applicationName)&&r.add(CZ)}}class sUe extends sa{constructor(){super(...arguments),this.validator=new NZ}}class uUe extends sa{constructor(){super(...arguments),this.validator=new JV}}const LZ="string parameter serializedNotification must be provided",DZ="serialized notification must have a non-empty notification_id field of type string",ZV="serialized notification must have an itbl object containing a non-empty messageId field of type string",wZ="parsed notification must be a non-null object.",UZ="serialized notification is not valid JSON.";class xZ{validate(t,r){if(ka(t.serializedNotification)||typeof t.serializedNotification!="string"||$o(t.serializedNotification)){r.add(LZ);return}let n=null;try{n=JSON.parse(t.serializedNotification)}catch{r.add(UZ);return}if(typeof n!="object"||n===null){r.add(wZ);return}const{itbl:i,notification_id:a}=n;if((ka(a)||typeof a!="string"||$o(a))&&r.add(DZ),typeof i!="object"||Fo(i)){r.add(ZV);return}(ka(i.messageId)||typeof i.messageId!="string"||$o(i.messageId))&&r.add(ZV)}}class cUe extends sa{constructor(){super(...arguments),this.validator=new xZ}}const FZ="SearchStringValue should be a non-empty string";class $Z{validate(t,r){if(Fo(t.values))return;let n=!1;for(const i of t.values)$o(i)&&(n=!0);n&&r.add(FZ)}}var rP=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},nP,iP,aP;class VZ{constructor(){nP.set(this,new YC),iP.set(this,new $Z),aP.set(this,new Dm)}validate(t,r){var n;Fn(t._source)&&rP(this,iP,"f").validate(t._source,r),Fn(t.date)&&rP(this,nP,"f").validate(t.date,r),Fn(t._count)&&t._count<0&&r.add("Value of count cannot be less than 0"),Fn(t._getpagesoffset)&&t._getpagesoffset<0&&r.add("Value of getpagesoffset cannot be less than 0"),Fn((n=t.supporting_info)===null||n===void 0?void 0:n.value)&&$o(t.supporting_info.value)&&r.add("Supporting Information must have a non-empty value."),Fn(t.status)&&rP(this,aP,"f").validate(t.status,r)}}nP=new WeakMap,iP=new WeakMap,aP=new WeakMap;class lUe extends sa{constructor(){super(...arguments),this.validator=new VZ}}class GZ{validate(t,r){if(!Fo(t.cancelationReason)){if(Fo(t.cancelationReason.coding)||t.cancelationReason.coding.length===0){r.add("cancelationReason must have at least one coding");return}for(const n of t.cancelationReason.coding)(Fo(n?.code)||Fo(n?.system))&&r.add("cancelationReason.coding must have a code and a system")}}}class fUe extends sa{constructor(){super(...arguments),this.validator=new GZ}}class BZ{validate(t,r){var n;Ws((n=t.organization.value)===null||n===void 0?void 0:n.trim())&&r.add("Organization reference is required and must have a non-empty value.")}}class _Ue extends sa{constructor(){super(...arguments),this.validator=new BZ}}class kZ{validate(t,r){const n=t.questionnaireResponse;if(Fo(n)){r.add("questionnaireResponse is required");return}if((Ws(n.resourceType)||n.resourceType!=="QuestionnaireResponse")&&r.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Ws(n.status)&&r.add("questionnaireResponse.status is required"),Ws(n.questionnaire)&&r.add("questionnaireResponse.questionnaire is required"),Fo(n.contained)||n.contained.length===0)r.add("questionnaireResponse.contained must have at least one item");else{let i=null;for(const a of n.contained){if(Fo(a)){r.add("questionnaireResponse.contained item cannot be null or undefined");break}if(a.resourceType==="Questionnaire"){i=a;break}}if(Fo(i)){r.add("questionnaireResponse.contained must contain a Questionnaire resource");return}Ws(i.id)&&r.add("questionnaireResponse.contained Questionnaire resource must have an id")}}}class dUe extends sa{constructor(){super(...arguments),this.validator=new kZ}}var oP=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})};class eG{constructor(t=new Map){this.storage=t}get(t){return oP(this,void 0,void 0,function*(){return this.storage.get(t)})}set(t,r){return oP(this,void 0,void 0,function*(){this.storage.set(t,r)})}delete(t){return oP(this,void 0,void 0,function*(){return this.storage.delete(t)})}}const jZ={logLevel:GC.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new eG,language:null,overrides:{unauthedApiUrl:null,authedApiUrl:null}};var Qs;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})(Qs||(Qs={}));var HZ=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},tG=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Zp,Mr;(function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL"})(Mr||(Mr={}));const YZ={[Mr.VERBOSE]:"VERBOSE",[Mr.DEBUG]:"DEBUG",[Mr.INFO]:"INFO",[Mr.WARN]:"WARN",[Mr.ERROR]:"ERROR",[Mr.FATAL]:"FATAL"};class r_{constructor(t){Zp.set(this,void 0),HZ(this,Zp,t,"f")}get severity(){return tG(this,Zp,"f")}shouldLog(t){return t>=tG(this,Zp,"f")}static severityText(t){return YZ[t]}static severityFromText(t){switch(t){case"VERBOSE":return Mr.VERBOSE;case"DEBUG":return Mr.DEBUG;case"INFO":return Mr.INFO;case"WARN":return Mr.WARN;case"ERROR":return Mr.ERROR;case"FATAL":return Mr.FATAL;default:throw new Error(`Invalid severity text: ${t}`)}}}Zp=new WeakMap;var sP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Es=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},xu,rG,Um,eh,xm,nl;class nG{constructor(t,r,n){xu.add(this),Um.set(this,void 0),eh.set(this,void 0),xm.set(this,void 0),sP(this,Um,n,"f"),sP(this,eh,new r_(t),"f"),sP(this,xm,r,"f")}name(){return Es(this,Um,"f")}severity(){return Es(this,eh,"f").severity}verbose(t,r){Es(this,xu,"m",nl).call(this,Mr.VERBOSE,t,r)}debug(t,r){Es(this,xu,"m",nl).call(this,Mr.DEBUG,t,r)}info(t,r){Es(this,xu,"m",nl).call(this,Mr.INFO,t,r)}warn(t,r){Es(this,xu,"m",nl).call(this,Mr.WARN,t,r)}error(t,r){let n;r instanceof Kt&&(n={error:r.failure()?r.error().message:r.data()}),r instanceof Error&&(n={error:r.message}),n===void 0&&(n=r),Es(this,xu,"m",nl).call(this,Mr.ERROR,t,n)}fatal(t,r){Es(this,xu,"m",nl).call(this,Mr.FATAL,t,r)}static otelSeverityNumber(t){switch(t){case Mr.VERBOSE:return Qs.TRACE;case Mr.DEBUG:return Qs.DEBUG;case Mr.INFO:return Qs.INFO;case Mr.WARN:return Qs.WARN;case Mr.ERROR:return Qs.ERROR;case Mr.FATAL:return Qs.FATAL;default:return Qs.UNSPECIFIED}}}rG=nG,Um=new WeakMap,eh=new WeakMap,xm=new WeakMap,xu=new WeakSet,nl=function(t,r,n){!Es(this,eh,"f").shouldLog(t)||Es(this,xm,"f").emit({timestamp:Date.now(),severityNumber:rG.otelSeverityNumber(t),severityText:r_.severityText(t),body:r,attributes:n??{}})};var iG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},aG=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Fm,$m;class qZ{constructor(t,r){Fm.set(this,void 0),$m.set(this,void 0),iG(this,$m,t,"f"),iG(this,Fm,r.loggerProvider(),"f")}getLogger(t){const r=t??"default",n=aG(this,Fm,"f").getLogger(r);return new nG(aG(this,$m,"f"),n,r)}}Fm=new WeakMap,$m=new WeakMap;class KZ{format(t,r,n,i){let u=`[${new Date().toISOString()}] ${r_.severityText(t)}`;return n!==void 0&&(u+=` (${n})`),u+=`: ${r}`,i===void 0?[u]:[u,i]}}var uP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},di=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},vs,ms,zs;class WZ{constructor(t,r){vs.set(this,void 0),ms.set(this,void 0),zs.set(this,void 0),uP(this,ms,new r_(t),"f"),uP(this,vs,r,"f"),uP(this,zs,new KZ,"f")}name(){return di(this,vs,"f")}severity(){return di(this,ms,"f").severity}verbose(t,r){di(this,ms,"f").shouldLog(Mr.VERBOSE)&&console.debug(...di(this,zs,"f").format(Mr.VERBOSE,t,di(this,vs,"f"),r))}debug(t,r){di(this,ms,"f").shouldLog(Mr.DEBUG)&&console.debug(...di(this,zs,"f").format(Mr.DEBUG,t,di(this,vs,"f"),r))}info(t,r){di(this,ms,"f").shouldLog(Mr.INFO)&&console.info(...di(this,zs,"f").format(Mr.INFO,t,di(this,vs,"f"),r))}warn(t,r){di(this,ms,"f").shouldLog(Mr.WARN)&&console.warn(...di(this,zs,"f").format(Mr.WARN,t,di(this,vs,"f"),r))}error(t,r){let n=r;r instanceof Kt&&(n=r.failure()?r.error():r.data()),di(this,ms,"f").shouldLog(Mr.ERROR)&&console.error(...di(this,zs,"f").format(Mr.ERROR,t,di(this,vs,"f"),n))}fatal(t,r){di(this,ms,"f").shouldLog(Mr.FATAL)&&console.error(...di(this,zs,"f").format(Mr.FATAL,t,di(this,vs,"f"),r))}}vs=new WeakMap,ms=new WeakMap,zs=new WeakMap;var QZ=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},zZ=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Vm;class ji{constructor(t=Mr.FATAL){Vm.set(this,void 0),QZ(this,Vm,t,"f")}getLogger(t){return new WZ(zZ(this,Vm,"f"),t)}}Vm=new WeakMap;var XZ=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},cP,oG;class JZ{constructor(){cP.add(this)}createLogProvider(t,r){switch(XZ(this,cP,"m",oG).call(this,t)){case"otel":if(r===void 0)throw new Error('telemetry is required for "otel" logging');return new qZ(t.logLevel,r);case"console":return new ji(t.logLevel)}}}cP=new WeakSet,oG=function(t){return t.telemetry.enabled?"otel":"console"};var Nn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Xs=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ao,n_,Fu,i_,$u,il,sG,uG,cG,lG,fG,_G,dG,pG,hG,SG;class Gm{constructor(t){ao.add(this),n_.set(this,void 0),Fu.set(this,void 0),i_.set(this,void 0),$u.set(this,void 0),il.set(this,void 0),this.bwellConfig=Nn(this,ao,"m",fG).call(this,t),Xs(this,n_,r_.severityFromText(this.bwellConfig.logLevel),"f"),Xs(this,il,Nn(this,ao,"m",SG).call(this),"f"),Xs(this,i_,Nn(this,ao,"m",dG).call(this),"f"),Xs(this,Fu,Nn(this,ao,"m",pG).call(this),"f"),Xs(this,$u,Nn(this,ao,"m",hG).call(this),"f")}static initialize(t){try{const r=new Gm(t);return Kt.success(r)}catch(r){if(Bi.isBwellError(r))return Kt.failure(r);throw r}}get logLevel(){return Nn(this,n_,"f")}get graphQL(){return Nn(this,i_,"f")}get telemetry(){return Nn(this,Fu,"f")}get http(){return Nn(this,$u,"f")}get context(){return Nn(this,il,"f")}setContextUser(t){Nn(this,il,"f").user=t}mergeRemoteConfig(t){Xs(this,n_,Nn(this,ao,"m",sG).call(this,t),"f"),Xs(this,i_,Nn(this,ao,"m",uG).call(this,t),"f"),Xs(this,Fu,Object.freeze(Nn(this,ao,"m",cG).call(this,t)),"f"),Xs(this,$u,Object.freeze(Nn(this,ao,"m",lG).call(this,t)),"f")}}n_=new WeakMap,Fu=new WeakMap,i_=new WeakMap,$u=new WeakMap,il=new WeakMap,ao=new WeakSet,sG=function(t){var r;const n=(r=t?.logLevel)!==null&&r!==void 0?r:null;return n===null?Nn(this,n_,"f"):r_.severityFromText(n)},uG=function(t){var r;const n=(r=t?.graphQLClient)!==null&&r!==void 0?r:null;if(n===null)return Nn(this,i_,"f");const{authedApiUrl:i,unauthedApiUrl:a}=this.bwellConfig.overrides;return{unauthApiUrl:a??n.url,apiUrl:i??n.authUrl}},cG=function(t){var r,n;const i=(r=t?.telemetry)!==null&&r!==void 0?r:null;if(i===null)return Nn(this,Fu,"f");const a=(n=i.enabled)!==null&&n!==void 0?n:Nn(this,Fu,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let u;try{u=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(u.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},Nn(this,Fu,"f")),{enabled:a,collectorUrl:i.collectorUrl})},lG=function(t){var r,n,i;const a=(r=t?.httpClient)!==null&&r!==void 0?r:null;return a===null?Nn(this,$u,"f"):{timeout:(n=a.requestTimeout)!==null&&n!==void 0?n:Nn(this,$u,"f").timeout,retryPolicy:(i=a.retry)!==null&&i!==void 0?i:Nn(this,$u,"f").retryPolicy}},fG=function(t){return Object.assign(Object.assign({},jZ),t)},_G=function(){try{return N9(this.bwellConfig.clientKey)}catch{throw new T9("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},dG=function(){var t,r;return{apiUrl:(t=this.bwellConfig.overrides.authedApiUrl)!==null&&t!==void 0?t:`https://api-gateway.${Nn(this,il,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:(r=this.bwellConfig.overrides.unauthedApiUrl)!==null&&r!==void 0?r:`https://api-gateway.${Nn(this,il,"f").env}.icanbwell.com/federated-graph/graphql`}},pG=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},hG=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},SG=function(){return{clientKey:this.bwellConfig.clientKey,env:Nn(this,ao,"m",_G).call(this),user:null}};var ZZ=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},EG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Bm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},a_,km;class eee{constructor(t,r=new ji){a_.set(this,void 0),km.set(this,void 0),EG(this,km,t,"f"),EG(this,a_,r.getLogger("ConfigManager"),"f")}initialize(t){return ZZ(this,void 0,void 0,function*(){const r=Gm.initialize(t);if(r.failure())return r;const n=r.data();Bm(this,a_,"f").verbose("Initializing SDK Configuration");const i=yield Bm(this,km,"f").initialize(n.context.clientKey);if(i.failure())return i.intoFailure();const a=i.data();try{n.mergeRemoteConfig(a)}catch(u){Bm(this,a_,"f").error("Error merging SDK config with remote config.",u)}return Bm(this,a_,"f").info("Remote SDK Configuration merged with user config"),Kt.success(n)})}}a_=new WeakMap,km=new WeakMap;const lP=JSON,tee=e=>e.toUpperCase(),ree=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},nee=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},iee=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},aee=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},pUe=(e,t,...r)=>{const[n,i]=r;return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},hUe=(e,t,...r)=>{const[n,i]=r;return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}};var oee=p(5157),see=p(2704);const vG=e=>{let t;const r=e.definitions.filter(n=>n.kind==="OperationDefinition");return r.length===1&&(t=r[0]?.name?.value),t},jm=e=>{if(typeof e=="string"){let r;try{const n=(0,oee.qg)(e);r=vG(n)}catch{}return{query:e,operationName:r}}const t=vG(e);return{query:(0,see.y)(e),operationName:t}};class Vu extends Error{constructor(t,r){const n=`${Vu.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,Vu.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Vu)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}}var o_=p(288),uee=p.t(o_,2);const cee="connection_init",lee="connection_ack",mG="ping",TG="pong",fee="subscribe",_ee="next",dee="error",AG="complete";class Gu{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(t,r,n){this._type=t,this._payload=r,this._id=n}get text(){const t={type:this.type};return this.id!=null&&this.id!=null&&(t.id=this.id),this.payload!=null&&this.payload!=null&&(t.payload=this.payload),JSON.stringify(t)}static parse(t,r){const{type:n,payload:i,id:a}=JSON.parse(t);return new Gu(n,r(i),a)}}class pee{constructor(t,{onInit:r,onAcknowledged:n,onPing:i,onPong:a}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener("open",async u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},t.send(See(r?await r():null).text)}),t.addEventListener("close",u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),t.addEventListener("error",u=>{console.error(u)}),t.addEventListener("message",u=>{try{const c=hee(u.data);switch(c.type){case lee:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(c.payload));return}case mG:{i?i(c.payload).then(L=>t.send(gG(L).text)):t.send(gG(null).text);return}case TG:{a&&a(c.payload);return}}if(!this.socketState.acknowledged||c.id===void 0||c.id===null||!this.socketState.subscriptions[c.id])return;const{query:v,variables:_,subscriber:h}=this.socketState.subscriptions[c.id];switch(c.type){case _ee:{!c.payload.errors&&c.payload.data&&h.next&&h.next(c.payload.data),c.payload.errors&&h.error&&h.error(new Vu({...c.payload,status:200},{query:v,variables:_}));return}case dee:{h.error&&h.error(new Vu({errors:c.payload,status:200},{query:v,variables:_}));return}case AG:{h.complete&&h.complete(),delete this.socketState.subscriptions[c.id];return}}}catch(c){console.error(c),t.close(1006)}t.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(t,r,n,i){const a=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[a]={query:t,variables:i,subscriber:n},this.socket.send(vee(a,{query:t,operationName:r,variables:i}).text),()=>{this.socket.send(mee(a).text),delete this.socketState.subscriptions[a]}}rawRequest(t,r){return new Promise((n,i)=>{let a;this.rawSubscribe(t,{next:(u,c)=>a={data:u,extensions:c},error:i,complete:()=>n(a)},r)})}request(t,r){return new Promise((n,i)=>{let a;this.subscribe(t,{next:u=>a=u,error:i,complete:()=>n(a)},r)})}subscribe(t,r,n){const{query:i,operationName:a}=jm(t);return this.makeSubscribe(i,a,r,n)}rawSubscribe(t,r,n){return this.makeSubscribe(t,void 0,r,n)}ping(t){this.socket.send(Eee(t).text)}close(){this.socket.close(1e3)}}pee.PROTOCOL="graphql-transport-ws";function hee(e,t=r=>r){return Gu.parse(e,t)}function See(e){return new Gu(cee,e)}function Eee(e){return new Gu(mG,e,void 0)}function gG(e){return new Gu(TG,e,void 0)}function vee(e,t){return new Gu(fee,t,e)}function mee(e){return new Gu(AG,void 0,e)}const s_=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||uee&&o_.Headers&&e instanceof o_.Headers?t=ree(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):t=e),t},yG=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),Tee=e=>{if(!Array.isArray(e.query)){const n=e,i=[`query=${encodeURIComponent(yG(n.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`),n.operationName&&i.push(`operationName=${encodeURIComponent(n.operationName)}`),i.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce((n,i,a)=>(n.push({query:yG(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[a]):void 0}),n),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`},Aee=e=>async t=>{const{url:r,query:n,variables:i,operationName:a,fetch:u,fetchOptions:c,middleware:v}=t,_={...t.headers};let h="",L;e==="POST"?(L=yee(n,i,a,c.jsonSerializer),typeof L=="string"&&(_["Content-Type"]="application/json")):h=Tee({query:n,variables:i,operationName:a,jsonSerializer:c.jsonSerializer??lP});const W={method:e,headers:_,body:L,...c};let Te=r,me=W;if(v){const Oe=await Promise.resolve(v({...W,url:r,operationName:a,variables:i})),{url:He,...qe}=Oe;Te=He,me=qe}return h&&(Te=`${Te}?${h}`),await u(Te,me)};class Hm{constructor(t,r={}){this.url=t,this.requestConfig=r,this.rawRequest=async(...n)=>{const[i,a,u]=n,c=iee(i,a,u),{headers:v,fetch:_=o_,method:h="POST",requestMiddleware:L,responseMiddleware:W,...Te}=this.requestConfig,{url:me}=this;c.signal!==void 0&&(Te.signal=c.signal);const{operationName:Oe}=jm(c.query);return fP({url:me,query:c.query,variables:c.variables,headers:{...s_(_P(v)),...s_(c.requestHeaders)},operationName:Oe,fetch:_,method:h,fetchOptions:Te,middleware:L}).then(He=>(W&&W(He),He)).catch(He=>{throw W&&W(He),He})}}async request(t,...r){const[n,i]=r,a=nee(t,n,i),{headers:u,fetch:c=o_,method:v="POST",requestMiddleware:_,responseMiddleware:h,...L}=this.requestConfig,{url:W}=this;a.signal!==void 0&&(L.signal=a.signal);const{query:Te,operationName:me}=jm(a.document);return fP({url:W,query:Te,variables:a.variables,headers:{...s_(_P(u)),...s_(a.requestHeaders)},operationName:me,fetch:c,method:v,fetchOptions:L,middleware:_}).then(Oe=>(h&&h(Oe),Oe.data)).catch(Oe=>{throw h&&h(Oe),Oe})}batchRequests(t,r){const n=aee(t,r),{headers:i,...a}=this.requestConfig;n.signal!==void 0&&(a.signal=n.signal);const u=n.documents.map(({document:v})=>jm(v).query),c=n.documents.map(({variables:v})=>v);return fP({url:this.url,query:u,variables:c,headers:{...s_(_P(i)),...s_(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??o_,method:this.requestConfig.method||"POST",fetchOptions:a,middleware:this.requestConfig.requestMiddleware}).then(v=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(v),v.data)).catch(v=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(v),v})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const fP=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=Aee(tee(e.method??"post")),a=Array.isArray(e.query),u=await i(e),c=await Ree(u,n.jsonSerializer??lP),v=Array.isArray(c)?!c.some(({data:h})=>!h):Boolean(c.data),_=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||n.errorPolicy==="all"||n.errorPolicy==="ignore";if(u.ok&&_&&v){const{errors:h,...L}=(Array.isArray(c),c),W=n.errorPolicy==="ignore"?L:c;return{...a?{data:W}:W,headers:u.headers,status:u.status}}else{const h=typeof c=="string"?{error:c}:c;throw new Vu({...h,status:u.status,headers:u.headers},{query:t,variables:r})}},SUe=async(...e)=>{const[t,r,...n]=e,i=parseRawRequestExtendedArgs(t,r,...n);return new Hm(i.url).rawRequest({...i})};async function EUe(e,t,...r){const n=parseRequestExtendedArgs(e,t,...r);return new Hm(n.url).request({...n})}const vUe=async(...e)=>{const t=gee(e);return new Hm(t.url).batchRequests(t)},gee=e=>e.length===1?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},yee=(e,t,r,n)=>{const i=n??lP;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const a=e.reduce((u,c,v)=>(u.push({query:c,variables:t?t[v]:void 0}),u),[]);return i.stringify(a)},Ree=async(e,t)=>{let r;return e.headers.forEach((n,i)=>{i.toLowerCase()==="content-type"&&(r=n)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},_P=e=>typeof e=="function"?e():e,mUe=(e,...t)=>e.reduce((r,n,i)=>`${r}${n}${i in t?String(t[i]):""}`,""),TUe=null,Hi=`
5344
+ `));function uwe(e){const t=Object.assign(Object.assign({},el),e);return Apollo.useQuery(V$,t)}function cwe(e){const t=Object.assign(Object.assign({},el),e);return Apollo.useLazyQuery(V$,t)}const lwe=e=>useMutation(CreateOauthThirdPartyConnection,e),fwe=e=>useMutation(DisconnectUserToken,e),_we=e=>useMutation(CreateConnectionStatus,e),dwe=e=>useQuery(GetMemberConnections,e),pwe=e=>useQuery(GetConnections,e),hwe=e=>useQuery(GetConnection,e),Swe=e=>useQuery(GetOauthGeneratedUrl,e);var G$=p(46),Hp,Em;class B${constructor(){this.type="backend",Hp.set(this,void 0),Em.set(this,void 0)}init(t,{clientSlug:r,apiClient:n}){if(!n)throw t.logger.error('"apiClient" not supplied to "QueryBackend".'),new Error('"apiClient" required for "QueryBackend".');wu(this,Hp,r,"f"),wu(this,Em,uU(n),"f")}read(t,r,n){return sm(this,void 0,void 0,function*(){try{const{translation:i}=yield Jr(this,Em,"f").getClientTranslations({name:Jr(this,Hp,"f"),key:r,lang:t});n(null,i?.json||{})}catch{const a=`Error fetching translation with key "${r}" and client "${Jr(this,Hp,"f")||"N/A"}".`;n(a,null)}})}}Hp=new WeakMap,Em=new WeakMap,B$.type="backend";var Xf;class k${constructor(t){this.type="logger",Xf.set(this,void 0),wu(this,Xf,t,"f")}log([t,r,...n]){Jr(this,Xf,"f").info({meta:r},t,...n)}warn([t,r,...n]){Jr(this,Xf,"f").error({meta:r},t,...n)}error([t,r,...n]){Jr(this,Xf,"f").error({meta:r},t,...n)}}Xf=new WeakMap,k$.type="logger";var vm,mm,tl,Yp,Ii,rl;const j$="appLanguage";class Pa{constructor({keys:t,nativeBridge:r,fallbackKeys:n=[],defaultLanguage:i="en",logger:a,parent:u,debug:c=!1,remoteConfig:v={}}){tl.set(this,void 0),Yp.set(this,void 0),Ii.set(this,void 0),rl.set(this,void 0),wu(this,tl,t,"f"),wu(this,Yp,n,"f"),wu(this,rl,r,"f");const _={lng:i,fallbackNS:Jr(this,Yp,"f"),debug:c,defaultNS:t,returnNull:!1};u?wu(this,Ii,u.cloneInstance(_),"f"):(wu(this,Ii,ea.createInstance(),"f"),a&&Jr(this,Ii,"f").use(new k$(a.child({library:"@icanbwell/i18n"}))),v.apiClient&&Jr(this,Ii,"f").use(B$),Jr(this,Ii,"f").init(Object.assign(Object.assign({},_),{fallbackLng:!1,partialBundledLanguages:!0,ns:[],resources:{},backend:v,saveMissing:!0,missingKeyHandler:(h,L,W)=>Jr(this,Ii,"f").services.logger.error(`missing key: ${W}; language: ${h}; key: ${L}`)}))),this.t=Jr(this,Ii,"f").t,Pa.resolvedLanguage=Jr(this,Ii,"f").resolvedLanguage||i}load(){var t;return sm(this,void 0,void 0,function*(){const r=(yield(t=Jr(this,rl,"f"))===null||t===void 0?void 0:t.storage.getItem(j$))||Pa.resolvedLanguage;r!==Pa.resolvedLanguage&&(yield Jr(this,Ii,"f").changeLanguage(r),Pa.resolvedLanguage=r),yield Jr(this,Ii,"f").loadNamespaces(Jr(this,tl,"f"));const n=Jr(this,tl,"f").filter(i=>!Jr(this,Ii,"f").hasResourceBundle(r,i));if(n.length)throw new Error(`Error loading translations for key(s): ${n.join(", ")}`);return Jr(Pa,vm,"f",mm).emit("changeLanguage",r),this})}child(t){return new Pa(Object.assign(Object.assign({},t),{nativeBridge:Jr(this,rl,"f"),fallbackKeys:[...Jr(this,Yp,"f"),...Jr(this,tl,"f")],parent:Jr(this,Ii,"f"),defaultLanguage:Jr(this,Ii,"f").language}))}get isLoaded(){return Jr(this,tl,"f").every(t=>Jr(this,Ii,"f").hasResourceBundle(Jr(this,Ii,"f").language,t))}changeLanguage(t){var r;return sm(this,void 0,void 0,function*(){Pa.resolvedLanguage=t,yield Jr(this,Ii,"f").changeLanguage(t),Jr(Pa,vm,"f",mm).emit("changeLanguage",t),yield(r=Jr(this,rl,"f"))===null||r===void 0?void 0:r.storage.setItem(j$,t),Jr(this,rl,"f").reloadView()})}get resolvedLanguage(){return Pa.resolvedLanguage}onChangeLanguage(t){Jr(Pa,vm,"f",mm).on("changeLanguage",t)}}vm=Pa,tl=new WeakMap,Yp=new WeakMap,Ii=new WeakMap,rl=new WeakMap,mm={value:new G$},Pa.resolvedLanguage="en";var PC=p(1827),qp;(function(e){e.one="1.0.0"})(qp||(qp={}));const Tm="orchestrator:native-bridge",p9={id:Tm,dependencies:{featureServices:{}},create:()=>({[qp.one]:()=>({featureService:PC.b})})};var Kp;(function(e){e.one="1.0.0"})(Kp||(Kp={}));const Am="orchestrator:translation-service",h9={id:Am,dependencies:{featureServices:{[za]:Nr.one,[js]:Mu.one,[Wn]:vi.one,[Mp]:kf.one,[Tm]:qp.one}},create:({featureServices:e})=>{const t=e[za],r=e[js],n=e[Mp],{slug:i}=e[Wn].getClientContext(),a=e[Tm],u=new Pa({keys:[],nativeBridge:a,defaultLanguage:"en",logger:r,remoteConfig:{clientSlug:i,apiClient:t}});return n.setProfileProperties({language:u.resolvedLanguage}),u.onChangeLanguage(c=>n.setProfileProperties({language:c})),{[Kp.one]:()=>({featureService:u})}}};var Jf,Zf,gm,nl;const ym="tokens";class S9{constructor({apiClient:t,stateService:r,identityGatewaySdk:n,storage:i}){Jf.set(this,void 0),Zf.set(this,void 0),gm.set(this,void 0),nl.set(this,void 0),(0,F.GG)(this,Jf,t,"f"),(0,F.GG)(this,Zf,r,"f"),(0,F.GG)(this,gm,n,"f"),(0,F.GG)(this,nl,i,"f")}getStoredTokens(){const t=(0,F.gn)(this,nl,"f").getItem(ym);return t?JSON.parse(t):void 0}removeStoredTokens(){(0,F.gn)(this,nl,"f").removeItem(ym)}storeTokens(t){(0,F.gn)(this,nl,"f").setItem(ym,JSON.stringify(t))}logout(){return(0,F.sH)(this,void 0,void 0,function*(){const t=(0,F.gn)(this,Zf,"f").getUserTokenData().accessToken.jwtToken,{key:r,variant:n}=(0,F.gn)(this,Zf,"f").getClientContext();n!==te.GUEST&&(yield(0,F.gn)(this,gm,"f").logout({accessToken:t},{context:{headers:{clientKey:r}}})),(0,F.gn)(this,Jf,"f").stop(),(0,F.gn)(this,Jf,"f").clearAuth(),yield(0,F.gn)(this,Jf,"f").clearStore(),(0,F.gn)(this,Zf,"f").logoutUser(),(0,F.gn)(this,nl,"f").removeItem(ym)})}}Jf=new WeakMap,Zf=new WeakMap,gm=new WeakMap,nl=new WeakMap;var Rm;(function(e){e.one="1.0.0"})(Rm||(Rm={}));const H$="orchestrator:identity-utils",E9={id:H$,dependencies:{featureServices:{[za]:Nr.one,[js]:Mu.one,[Wn]:vi.one,[Mp]:kf.one}},create:({featureServices:e})=>{const t=e[za];return{[Rm.one]:()=>({featureService:new S9({apiClient:t,stateService:e[Wn],identityGatewaySdk:Sx(t),storage:window.sessionStorage})})}}};var Om;(function(e){e.one="1.0.0"})(Om||(Om={}));const Y$="orchestrator:globaleventemitter-service",v9=e=>({id:Y$,create:()=>({[Om.one]:()=>({featureService:e})})});var bm;(function(e){e.one="1.0.0"})(bm||(bm={}));const q$="orchestrator:reboot-controller",m9=e=>({id:q$,create:()=>({[bm.one]:()=>({featureService:e})})});class Bi extends Error{constructor(t,r){super(t),this.name="BWellError",r?.cause&&(this.cause=r.cause)}static isBwellError(t){return t instanceof Bi}}class Ewe extends Bi{constructor(t="Authentication Error"){super(t),this.name="AuthenticationError"}}class vwe extends Bi{constructor(t="Illegal Argument Error"){super(t),this.name="IllegalArgumentError"}}class mwe extends Bi{constructor(t="Illegal State Error"){super(t),this.name="IllegalStateError"}}class T9 extends Bi{constructor(t="Invalid Client Key Error"){super(t),this.name="InvalidClientKeyError"}}class MC extends Bi{constructor(t,r){super(t),this.credentials=r,this.name="InvalidCredentialsTypeError"}}class e_ extends Bi{constructor(t="Invalid Token Error"){super(t),this.name="InvalidTokenError"}}class A9 extends Bi{constructor(t,r){super(t),this.status=r,this.name="NetworkError"}}class g9 extends Bi{constructor(t){super(t.message()),this.operationOutcome=t,this.name="OperationOutcomeError"}}class IC extends Bi{constructor(t,r){super(t),this.data=r,this.name="UnknownError"}}class y9 extends Bi{constructor(t){super(t.join(". ")),this.errors=t,this.name="ValidationError"}}class ar{constructor(t,r){this.data=t,r!==null&&(this.error=r)}hasError(){return this.error!==void 0}static error(t){return new ar(void 0,t)}}var K$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Cm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Wp,Qp;class Kt{static success(t){return new R9(t)}static failure(t){return new Pm(t)}}class R9 extends Kt{constructor(t){super(),Wp.set(this,void 0),K$(this,Wp,t,"f")}data(){return Cm(this,Wp,"f")}error(){throw Cm(this,Wp,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new ar(this.data())}}Wp=new WeakMap;class Pm extends Kt{constructor(t){super(),Qp.set(this,void 0),K$(this,Qp,t,"f")}data(){throw Cm(this,Qp,"f")}error(){return Cm(this,Qp,"f")}success(){return!1}failure(){return!0}intoFailure(){return Kt.failure(this.error())}toQueryResult(){return new ar(void 0,this.error())}}Qp=new WeakMap;var NC=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},zp;class O9{constructor(){zp.set(this,[])}add(t){NC(this,zp,"f").push(t)}errors(){return NC(this,zp,"f")}hasErrors(){return NC(this,zp,"f").length>0}}zp=new WeakMap;var W$=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},LC=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Xp,Mm;class b9{constructor(t){Xp.set(this,void 0),Mm.set(this,void 0),W$(this,Mm,t,"f"),W$(this,Xp,this.transformInput(t),"f")}validate(){return Kt.success(null)}data(){return LC(this,Xp,"f")}toJSON(){return LC(this,Xp,"f")}transformInput(t){return t}input(){return LC(this,Mm,"f")}}Xp=new WeakMap,Mm=new WeakMap;class sa extends b9{validate(){const t=new O9;return this.validator.validate(this.input(),t),t.hasErrors()?Kt.failure(new y9(t.errors())):Kt.success(null)}}var Q$=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Im,z$,X$;const J$=100,C9=20;class qs{constructor(){Im.add(this)}validate(t,r){Q$(this,Im,"m",z$).call(this,t.page,r),Q$(this,Im,"m",X$).call(this,t.pageSize,r)}}Im=new WeakSet,z$=function(t,r){t<0&&r.add("page must be a positive number")},X$=function(t,r){t!==void 0&&(t<=0&&r.add("Page size must be greater than 0"),t>J$&&r.add(`Page size must not exceed ${J$}`))};class Ks extends sa{constructor(){super(...arguments),this.validator=new qs}transformInput(t){return Object.assign({pageSize:C9},t)}}function P9(){var e;return!(typeof process>"u"||((e=process.versions)===null||e===void 0?void 0:e.node)===void 0)}function M9(){return typeof window<"u"}function Z$(){if(M9())return"browser";if(P9())return"node";throw new Error("Invalid runtime")}function I9(e){switch(Z$()){case"browser":return e.browser();case"node":return e.node()}}function eV(e){switch(Z$()){case"node":return Buffer.from(e,"base64").toString("utf-8");case"browser":return atob(e)}}function Fn(e){return e!=null}function Fo(e){return e==null}function Twe(e){return Fn(e)&&e!==""}function Ws(e){return e==null||e===""}function ka(e){return e===void 0}function ki(e){return e!==void 0}function N9(e){return JSON.parse(eV(e)).env}const L9=3;function tV(e){const t=e.split("."),r=t[1];if(r===void 0||t.length!==L9)throw new e_("Token is missing data and may be corrupted");try{return JSON.parse(eV(r))}catch(n){const i=n;throw new e_(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function D9(e){const r=tV(e).exp;if(typeof r!="number")throw new e_("The access token is missing an expiration date and is most likely corrupted.");return r*1e3}const w9="custom:clientFhirPersonId",U9="custom:bwellFhirPatientId";function x9(e){const t=tV(e),r=t[U9],n=t[w9];return Fn(r)&&Fn(n)?{bwellFhirPersonId:r,clientFhirPersonId:n}:null}function $o(e){return e.trim()===""}const F9="1.33.0";function $9(){return F9}var DC;(function(e){e.Arrived="ARRIVED",e.Booked="BOOKED",e.Cancelled="CANCELLED",e.CheckedIn="CHECKED_IN",e.EnteredInError="ENTERED_IN_ERROR",e.Fulfilled="FULFILLED",e.Noshow="NOSHOW",e.Pending="PENDING",e.Proposed="PROPOSED",e.Waitlist="WAITLIST"})(DC||(DC={}));var rV;(function(e){e.Guest="GUEST"})(rV||(rV={}));var Nm;(function(e){e.CommunicationPreferencesPhi="COMMUNICATION_PREFERENCES_PHI",e.DataSharing="DATA_SHARING",e.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",e.HealthCircleMinor="HEALTH_CIRCLE_MINOR",e.HealthMatch="HEALTH_MATCH",e.IasImportRecords="IAS_IMPORT_RECORDS",e.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",e.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",e.ProaAttestation="PROA_ATTESTATION",e.Tos="TOS"})(Nm||(Nm={}));var nV;(function(e){e.Bwell="bwell"})(nV||(nV={}));var iV;(function(e){e.Bwell="BWELL"})(iV||(iV={}));var aV;(function(e){e.Basic="BASIC",e.Oauth="OAUTH"})(aV||(aV={}));var wC;(function(e){e.Deny="DENY",e.Permit="PERMIT"})(wC||(wC={}));var UC;(function(e){e.Active="ACTIVE",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Inactive="INACTIVE",e.Proposed="PROPOSED",e.Rejected="REJECTED"})(UC||(UC={}));var oV;(function(e){e.Usd="USD"})(oV||(oV={}));var sV;(function(e){e.Connected="CONNECTED",e.Deleted="DELETED",e.Disconnected="DISCONNECTED",e.Error="ERROR",e.Expired="EXPIRED"})(sV||(sV={}));var uV;(function(e){e.Clinical="CLINICAL",e.Insurance="INSURANCE",e.Lab="LAB",e.Pharmacy="PHARMACY",e.Practitioner="PRACTITIONER"})(uV||(uV={}));var Lm;(function(e){e.Connecthub="connecthub",e.Nppes="nppes"})(Lm||(Lm={}));var cV;(function(e){e.Connecthub="CONNECTHUB",e.Nppes="NPPES"})(cV||(cV={}));var lV;(function(e){e.BwellPatient="BWELL_PATIENT",e.BwellPerson="BWELL_PERSON",e.ClientPatient="CLIENT_PATIENT",e.ClientPerson="CLIENT_PERSON"})(lV||(lV={}));var fV;(function(e){e.Active="active",e.EnteredInError="entered_in_error",e.Error="error",e.Off="off",e.Suspended="suspended",e.Test="test"})(fV||(fV={}));var _V;(function(e){e.Active="ACTIVE",e.EnteredInError="ENTERED_IN_ERROR",e.Error="ERROR",e.Off="OFF",e.Suspended="SUSPENDED",e.Test="TEST"})(_V||(_V={}));var xC;(function(e){e.CustomEvent="CUSTOM_EVENT",e.MobilePushOpen="MOBILE_PUSH_OPEN"})(xC||(xC={}));var FC;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(FC||(FC={}));var $C;(function(e){e.Person="Person"})($C||($C={}));var VC;(function(e){e.Characteristic="characteristic",e.Communication="communication",e.Gender="gender",e.Specialty="specialty"})(VC||(VC={}));var dV;(function(e){e.Characteristic="CHARACTERISTIC",e.Communication="COMMUNICATION",e.Gender="GENDER",e.Specialty="SPECIALTY"})(dV||(dV={}));var pV;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(pV||(pV={}));var hV;(function(e){e.Female="FEMALE",e.Male="MALE",e.Other="OTHER",e.Unknown="UNKNOWN"})(hV||(hV={}));var SV;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.Labs="LABS",e.Medications="MEDICATIONS",e.Procedure="PROCEDURE",e.VitalSigns="VITAL_SIGNS"})(SV||(SV={}));var EV;(function(e){e.Official="_official",e.Old="_old",e.Secondary="_secondary",e.Temp="_temp",e.Usual="_usual"})(EV||(EV={}));var vV;(function(e){e.Clicked="clicked"})(vV||(vV={}));var mV;(function(e){e.Clicked="CLICKED"})(mV||(mV={}));var GC;(function(e){e.Debug="DEBUG",e.Error="ERROR",e.Info="INFO",e.Verbose="VERBOSE",e.Warn="WARN"})(GC||(GC={}));var TV;(function(e){e.Activity="ACTIVITY",e.Exam="EXAM",e.Imaging="IMAGING",e.Laboratory="LABORATORY",e.Procedure="PROCEDURE",e.SocialHistory="SOCIAL_HISTORY",e.Survey="SURVEY",e.Therapy="THERAPY",e.VitalSigns="VITAL_SIGNS"})(TV||(TV={}));var AV;(function(e){e.CancelDelete="CANCEL_DELETE",e.ConfirmDelete="CONFIRM_DELETE",e.DeletionInProgress="DELETION_IN_PROGRESS",e.ImmediateExecution="IMMEDIATE_EXECUTION",e.RequestDelete="REQUEST_DELETE"})(AV||(AV={}));var BC;(function(e){e.C19Vaccine="C19Vaccine",e.Device="Device",e.Insurance="Insurance",e.Laboratory="Laboratory",e.Pharmacy="Pharmacy",e.Provider="Provider",e.Bus="bus",e.Cg="cg",e.Crs="crs",e.Dept="dept",e.Edu="edu",e.Govt="govt",e.Ins="ins",e.Other="other",e.Pay="pay",e.Prov="prov",e.Reli="reli",e.Team="team"})(BC||(BC={}));var gV;(function(e){e.Bus="BUS",e.C19Vaccine="C19VACCINE",e.Cg="CG",e.Crs="CRS",e.Dept="DEPT",e.Device="DEVICE",e.Edu="EDU",e.Govt="GOVT",e.Ins="INS",e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Other="OTHER",e.Pay="PAY",e.Pharmacy="PHARMACY",e.Prov="PROV",e.Provider="PROVIDER",e.Reli="RELI",e.Team="TEAM"})(gV||(gV={}));var yV;(function(e){e.Add="add",e.Copy="copy",e.Move="move",e.Remove="remove",e.Replace="replace",e.Test="test"})(yV||(yV={}));var RV;(function(e){e.Patient="Patient",e.Person="Person"})(RV||(RV={}));var OV;(function(e){e.Practice="practice",e.Practitioner="practitioner"})(OV||(OV={}));var bV;(function(e){e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(bV||(bV={}));var CV;(function(e){e.QuestionnaireResponse="QuestionnaireResponse"})(CV||(CV={}));var PV;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.MedicationDispense="MEDICATION_DISPENSE",e.MedicationRequest="MEDICATION_REQUEST",e.MedicationStatement="MEDICATION_STATEMENT",e.Observation="OBSERVATION",e.Procedure="PROCEDURE"})(PV||(PV={}));var MV;(function(e){e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Pharmacy="PHARMACY",e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(MV||(MV={}));var kC;(function(e){e.Content="content",e.Distance="distance",e.Relevance="relevance"})(kC||(kC={}));var IV;(function(e){e.Content="CONTENT",e.DataSourceRank="DATA_SOURCE_RANK",e.Distance="DISTANCE",e.Relevance="RELEVANCE"})(IV||(IV={}));var jC;(function(e){e.Asc="asc",e.Desc="desc"})(jC||(jC={}));var NV;(function(e){e.Asc="ASC",e.Desc="DESC"})(NV||(NV={}));var LV;(function(e){e.CareSearch="CARE_SEARCH",e.Proa="PROA",e.ProviderDetails="PROVIDER_DETAILS",e.Sayt="SAYT",e.Unspecified="UNSPECIFIED"})(LV||(LV={}));var DV;(function(e){e.Error="ERROR",e.Pending="PENDING",e.Retrieved="RETRIEVED",e.Retrieving="RETRIEVING"})(DV||(DV={}));var HC;(function(e){e.Accepted="ACCEPTED",e.Cancelled="CANCELLED",e.Completed="COMPLETED",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.OnHold="ON_HOLD",e.Ready="READY",e.Received="RECEIVED",e.Rejected="REJECTED",e.Requested="REQUESTED"})(HC||(HC={}));var wV;(function(e){e.Accurate="accurate",e.Estimate="estimate"})(wV||(wV={}));const V9=new Set(Object.values(FC));function UV(e){return V9.has(e)}const G9=new Set(Object.values(UC));function B9(e){return G9.has(e)}const k9=new Set(Object.values(Nm));function xV(e){return k9.has(e)}const j9=new Set(Object.values(wC));function H9(e){return j9.has(e)}class Y9{validate(t,r){!ka(t.gender)&&!UV(t.gender)&&r.add(`Invalid gender value: "${t.gender}"`)}}class Awe extends sa{constructor(){super(...arguments),this.validator=new Y9}}class q9{validate(t,r){xV(t.category)||r.add(`Invalid consent category code: "${t.category}"`)}}class gwe extends sa{constructor(){super(...arguments),this.validator=new q9}}class K9{validate(t,r){B9(t.status)||r.add(`Invalid consent status: "${t.status}"`),H9(t.provision)||r.add(`Invalid consent provision type: "${t.provision}"`),xV(t.category)||r.add(`Invalid consent category code: "${t.category}"`),!ka(t.organizationId)&&$o(t.organizationId)&&r.add("organizationId cannot be empty"),t.category===Nm.ProaAttestation&&ka(t.organizationId)&&r.add("organizationId must be provided when category is PROA_ATTESTATION")}}class ywe extends sa{constructor(){super(...arguments),this.validator=new K9}}class W9{validate(t,r){Ws(t.exportId)&&r.add("exportId is required"),Ws(t.password)&&r.add("password is required")}}class Rwe extends sa{constructor(){super(...arguments),this.validator=new W9}}class Owe extends null{}var ja=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ua,xu,FV,$V,VV,GV,BV,kV;class YC{constructor(){ua.add(this)}validate(t,r){if(!t.values||t.values.length===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const n of t.values)ja(this,ua,"m",FV).call(this,n,r)}}ua=new WeakSet,xu=function(t,r){t&&t!==null&&isNaN(t.getTime())&&r.add("The date is not valid")},FV=function(t,r){const{equals:n,notEquals:i,greaterThan:a,greaterThanOrEqualTo:u,lessThan:c,lessThanOrEqualTo:v,approximately:_}=t,L=[n,i,a,u,c,v,_].filter(W=>W!=null).length;if(L===0){r.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}ja(this,ua,"m",$V).call(this,t,L,r),ja(this,ua,"m",BV).call(this,t,r),ja(this,ua,"m",kV).call(this,t,r)},$V=function(t,r,n){const{equals:i,notEquals:a,approximately:u}=t;if(i&&r>1){n.add("The equals value cannot be set with any other values");return}if(a&&r>1){n.add("The notEquals value cannot be set with any other values");return}if(u&&r>1){n.add("The approximately value cannot be set with any other values");return}ja(this,ua,"m",VV).call(this,t,n),ja(this,ua,"m",GV).call(this,t,n)},VV=function(t,r){t.greaterThan&&t.greaterThanOrEqualTo&&r.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},GV=function(t,r){t.lessThan&&t.lessThanOrEqualTo&&r.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},BV=function(t,r){const{equals:n,notEquals:i,greaterThan:a,greaterThanOrEqualTo:u,lessThan:c,lessThanOrEqualTo:v,approximately:_}=t;n&&ja(this,ua,"m",xu).call(this,n,r),i&&ja(this,ua,"m",xu).call(this,i,r),a&&ja(this,ua,"m",xu).call(this,a,r),u&&ja(this,ua,"m",xu).call(this,u,r),c&&ja(this,ua,"m",xu).call(this,c,r),v&&ja(this,ua,"m",xu).call(this,v,r),_&&ja(this,ua,"m",xu).call(this,_,r)},kV=function(t,r){const{greaterThan:n,greaterThanOrEqualTo:i,lessThan:a,lessThanOrEqualTo:u}=t;n&&u&&n>=u&&r.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&a&&i>=a&&r.add("The greaterThanOrEqualTo value must be less than the lessThan value"),n&&a&&n>=a&&r.add("The greaterThan value must be less than the lessThan value"),i&&u&&i>=u&&r.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var qC=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Jp;class Dm{constructor(){Jp.set(this,new Q9)}validate(t,r){var n;if(t.value===void 0&&t.values===void 0&&t.notEquals===void 0){r.add("Either SearchToken value or values or notEquals must be provided");return}if(t.value!==void 0&&qC(this,Jp,"f").validate(t.value,r),t.values!==void 0&&t.values.length===0){r.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(n=t.values)!==null&&n!==void 0?n:[])qC(this,Jp,"f").validate(i,r);if(t.notEquals!==void 0){if(t.notEquals.values!==void 0){if(t.notEquals.values.length===0){r.add("If notEquals values are provided, at least one Coding must be set");return}for(const i of t.notEquals.values)qC(this,Jp,"f").validate(i,r)}t.notEquals.code===void 0&&t.notEquals.value===void 0&&t.notEquals.system===void 0&&t.notEquals.values===void 0&&r.add("NotEquals must have at least one non-null property (code, value, system, or values)")}}}Jp=new WeakMap;class Q9{validate(t,r){!t.system&&!t.code&&r.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var t_=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},KC,WC,QC,zC,XC,JC;class jV extends qs{constructor(){super(...arguments),KC.set(this,new Dm),WC.set(this,new YC)}validate(t,r){super.validate(t,r),t.groupCode&&t_(this,KC,"f").validate(t.groupCode,r),t.lastUpdated&&t_(this,WC,"f").validate(t.lastUpdated,r)}}KC=new WeakMap,WC=new WeakMap;class z9{validate(t,r){t.length===0&&r.add("Prescription array must not be empty.")}}class HV extends qs{constructor(){super(...arguments),QC.set(this,new z9),zC.set(this,new YC)}validate(t,r){super.validate(t,r),t.lastUpdated!==void 0&&t_(this,zC,"f").validate(t.lastUpdated,r),t.prescription!==void 0&&t_(this,QC,"f").validate(t.prescription,r)}}QC=new WeakMap,zC=new WeakMap;class X9 extends qs{validate(t,r){var n;super.validate(t,r),!((n=t?.ids)===null||n===void 0)&&n.length||r.add("ids must not be empty")}}class J9 extends Ks{constructor(){super(...arguments),this.validator=new jV}}class bwe extends null{}class Cwe extends null{}class Pwe extends null{}class Mwe extends null{}class Iwe extends null{}class Nwe extends null{}class Lwe extends null{}class Dwe extends null{}class wwe extends null{}class Uwe extends null{}class xwe extends null{}class Fwe extends null{}class $we extends null{}class Vwe extends null{}class Gwe extends null{}class Bwe extends null{}class kwe extends null{}class jwe extends null{}class Hwe extends null{}class Z9 extends HV{constructor(){super(...arguments),XC.set(this,new Dm)}validate(t,r){super.validate(t,r),t.medicationCode!==void 0&&t_(this,XC,"f").validate(t.medicationCode,r)}}XC=new WeakMap;class Ywe extends Ks{constructor(){super(...arguments),this.validator=new HV}}class qwe extends Ks{constructor(){super(...arguments),this.validator=new Z9}}class eZ extends jV{constructor(){super(...arguments),JC.set(this,new Dm)}validate(t,r){super.validate(t,r),t.medicationCode!==void 0&&t_(this,JC,"f").validate(t.medicationCode,r)}}JC=new WeakMap;class Kwe extends J9{constructor(){super(...arguments),this.validator=new eZ}}class Wwe extends null{}class Qwe extends Ks{constructor(){super(...arguments),this.validator=new X9}}class zwe extends null{}class tZ{validate(t,r){$o(t.medicationStatementId)&&r.add("The medication pricing request must possess a medication statement id.")}}class Xwe extends sa{constructor(){super(...arguments),this.validator=new tZ}}class rZ extends qs{validate(t,r){$o(t.medicationStatementId)&&r.add("The medication knowledge request must possess a medication statement id."),super.validate(t,r)}}class Jwe extends Ks{constructor(){super(...arguments),this.validator=new rZ}}class nZ extends qs{validate(t,r){$o(t.labId)&&r.add("The lab knowledge request must contain a lab id."),super.validate(t,r)}}class Zwe extends Ks{constructor(){super(...arguments),this.validator=new nZ}}const iZ=new Set(Object.values(HC));function YV(e){return iZ.has(e)}var aZ=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ZC,qV;class oZ extends qs{constructor(){super(...arguments),ZC.add(this)}validate(t,r){if(super.validate(t,r),!ka(t.status)){const n=Array.isArray(t.status)?t.status:[t.status];for(const i of n)aZ(this,ZC,"m",qV).call(this,i,r)}}}ZC=new WeakSet,qV=function(t,r){YV(t)||r.add(`Invalid task status: "${t}"`)};class eUe extends Ks{constructor(){super(...arguments),this.validator=new oZ}}class sZ{validate(t,r){YV(t.newStatus)||r.add(`Invalid task status: "${t.newStatus}"`)}}class tUe extends sa{constructor(){super(...arguments),this.validator=new sZ}}var wm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},r_,KV,WV,QV,zV;class rUe extends Ks{constructor(){super(...arguments),this.validator=new uZ}}class uZ extends qs{constructor(){super(...arguments),r_.add(this)}validate(t,r){super.validate(t,r),ki(t.organizationTypeFilters)&&wm(this,r_,"m",KV).call(this,t.organizationTypeFilters,r),ki(t.sortBy)&&wm(this,r_,"m",WV).call(this,t.sortBy,r),ki(t.filterFields)&&wm(this,r_,"m",QV).call(this,t.filterFields,r),ki(t.gender)&&wm(this,r_,"m",zV).call(this,t.gender,r)}}r_=new WeakSet,KV=function(t,r){for(const n of t)lZ(n)||r.add(`Invalid organizationTypeFilters value: "${n}"`)},WV=function(t,r){ki(t.field)&&!_Z(t.field)&&r.add(`Invalid sortBy.field value: "${t.field}"`),ki(t.order)&&!pZ(t.order)&&r.add(`Invalid sortBy.order value: "${t.order}"`)},QV=function(t,r){for(const n of t)SZ(n)||r.add(`Invalid filterField value: "${n}"`)},zV=function(t,r){UV(t)||r.add(`Invalid gender value: "${t}"`)};const cZ=new Set(Object.values(BC));function lZ(e){return cZ.has(e)}const fZ=new Set(Object.values(kC));function _Z(e){return fZ.has(e)}const dZ=new Set(Object.values(jC));function pZ(e){return dZ.has(e)}const hZ=new Set(Object.values(VC));function SZ(e){return hZ.has(e)}class nUe extends null{}class iUe extends Ks{constructor(){super(...arguments),this.validator=new EZ}}class EZ extends qs{validate(t,r){super.validate(t,r)}}const vZ="data-connection-status";var mZ=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},eP;const TZ="connectionId cannot be null or empty",AZ="username cannot be null or empty",gZ="password cannot be null or empty";class XV{validate(t,r){t.connectionId===""&&r.add(TZ)}}class yZ{constructor(){eP.set(this,new XV)}validate(t,r){mZ(this,eP,"f").validate(t,r),t.username===""&&r.add(AZ),t.password===""&&r.add(gZ)}}eP=new WeakMap;class RZ extends sa{constructor(){super(...arguments),this.validator=new XV}}class aUe extends null{}class oUe extends RZ{constructor(){super(...arguments),this.validator=new yZ}}const OZ="deviceToken is required",bZ="platformName must be a valid DevicePlatform value",CZ="applicationName is required";var tP;(function(e){e.IOS="IOS",e.ANDROID="ANDROID"})(tP||(tP={}));const PZ=new Set(Object.values(tP));function MZ(e){return PZ.has(e)}function IZ(e){return!MZ(e)}class JV{validate(t,r){$o(t.deviceToken)&&r.add(OZ)}}class NZ extends JV{validate(t,r){super.validate(t,r),IZ(t.platformName.toUpperCase())&&r.add(bZ),$o(t.applicationName)&&r.add(CZ)}}class sUe extends sa{constructor(){super(...arguments),this.validator=new NZ}}class uUe extends sa{constructor(){super(...arguments),this.validator=new JV}}const LZ="string parameter serializedNotification must be provided",DZ="serialized notification must have a non-empty notification_id field of type string",ZV="serialized notification must have an itbl object containing a non-empty messageId field of type string",wZ="parsed notification must be a non-null object.",UZ="serialized notification is not valid JSON.";class xZ{validate(t,r){if(ka(t.serializedNotification)||typeof t.serializedNotification!="string"||$o(t.serializedNotification)){r.add(LZ);return}let n=null;try{n=JSON.parse(t.serializedNotification)}catch{r.add(UZ);return}if(typeof n!="object"||n===null){r.add(wZ);return}const{itbl:i,notification_id:a}=n;if((ka(a)||typeof a!="string"||$o(a))&&r.add(DZ),typeof i!="object"||Fo(i)){r.add(ZV);return}(ka(i.messageId)||typeof i.messageId!="string"||$o(i.messageId))&&r.add(ZV)}}class cUe extends sa{constructor(){super(...arguments),this.validator=new xZ}}const FZ="SearchStringValue should be a non-empty string";class $Z{validate(t,r){if(Fo(t.values))return;let n=!1;for(const i of t.values)$o(i)&&(n=!0);n&&r.add(FZ)}}var rP=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},nP,iP,aP;class VZ{constructor(){nP.set(this,new YC),iP.set(this,new $Z),aP.set(this,new Dm)}validate(t,r){var n;Fn(t._source)&&rP(this,iP,"f").validate(t._source,r),Fn(t.date)&&rP(this,nP,"f").validate(t.date,r),Fn(t._count)&&t._count<0&&r.add("Value of count cannot be less than 0"),Fn(t._getpagesoffset)&&t._getpagesoffset<0&&r.add("Value of getpagesoffset cannot be less than 0"),Fn((n=t.supporting_info)===null||n===void 0?void 0:n.value)&&$o(t.supporting_info.value)&&r.add("Supporting Information must have a non-empty value."),Fn(t.status)&&rP(this,aP,"f").validate(t.status,r)}}nP=new WeakMap,iP=new WeakMap,aP=new WeakMap;class lUe extends sa{constructor(){super(...arguments),this.validator=new VZ}}class GZ{validate(t,r){if(!Fo(t.cancelationReason)){if(Fo(t.cancelationReason.coding)||t.cancelationReason.coding.length===0){r.add("cancelationReason must have at least one coding");return}for(const n of t.cancelationReason.coding)(Fo(n?.code)||Fo(n?.system))&&r.add("cancelationReason.coding must have a code and a system")}}}class fUe extends sa{constructor(){super(...arguments),this.validator=new GZ}}class BZ{validate(t,r){var n;Ws((n=t.organization.value)===null||n===void 0?void 0:n.trim())&&r.add("Organization reference is required and must have a non-empty value.")}}class _Ue extends sa{constructor(){super(...arguments),this.validator=new BZ}}class kZ{validate(t,r){const n=t.questionnaireResponse;if(Fo(n)){r.add("questionnaireResponse is required");return}if((Ws(n.resourceType)||n.resourceType!=="QuestionnaireResponse")&&r.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Ws(n.status)&&r.add("questionnaireResponse.status is required"),Ws(n.questionnaire)&&r.add("questionnaireResponse.questionnaire is required"),Fo(n.contained)||n.contained.length===0)r.add("questionnaireResponse.contained must have at least one item");else{let i=null;for(const a of n.contained){if(Fo(a)){r.add("questionnaireResponse.contained item cannot be null or undefined");break}if(a.resourceType==="Questionnaire"){i=a;break}}if(Fo(i)){r.add("questionnaireResponse.contained must contain a Questionnaire resource");return}Ws(i.id)&&r.add("questionnaireResponse.contained Questionnaire resource must have an id")}}}class dUe extends sa{constructor(){super(...arguments),this.validator=new kZ}}var oP=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})};class eG{constructor(t=new Map){this.storage=t}get(t){return oP(this,void 0,void 0,function*(){return this.storage.get(t)})}set(t,r){return oP(this,void 0,void 0,function*(){this.storage.set(t,r)})}delete(t){return oP(this,void 0,void 0,function*(){return this.storage.delete(t)})}}const jZ={logLevel:GC.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new eG,language:null,overrides:{unauthedApiUrl:null,authedApiUrl:null}};var Qs;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})(Qs||(Qs={}));var HZ=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},tG=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Zp,Mr;(function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL"})(Mr||(Mr={}));const YZ={[Mr.VERBOSE]:"VERBOSE",[Mr.DEBUG]:"DEBUG",[Mr.INFO]:"INFO",[Mr.WARN]:"WARN",[Mr.ERROR]:"ERROR",[Mr.FATAL]:"FATAL"};class n_{constructor(t){Zp.set(this,void 0),HZ(this,Zp,t,"f")}get severity(){return tG(this,Zp,"f")}shouldLog(t){return t>=tG(this,Zp,"f")}static severityText(t){return YZ[t]}static severityFromText(t){switch(t){case"VERBOSE":return Mr.VERBOSE;case"DEBUG":return Mr.DEBUG;case"INFO":return Mr.INFO;case"WARN":return Mr.WARN;case"ERROR":return Mr.ERROR;case"FATAL":return Mr.FATAL;default:throw new Error(`Invalid severity text: ${t}`)}}}Zp=new WeakMap;var sP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Es=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Fu,rG,Um,eh,xm,il;class nG{constructor(t,r,n){Fu.add(this),Um.set(this,void 0),eh.set(this,void 0),xm.set(this,void 0),sP(this,Um,n,"f"),sP(this,eh,new n_(t),"f"),sP(this,xm,r,"f")}name(){return Es(this,Um,"f")}severity(){return Es(this,eh,"f").severity}verbose(t,r){Es(this,Fu,"m",il).call(this,Mr.VERBOSE,t,r)}debug(t,r){Es(this,Fu,"m",il).call(this,Mr.DEBUG,t,r)}info(t,r){Es(this,Fu,"m",il).call(this,Mr.INFO,t,r)}warn(t,r){Es(this,Fu,"m",il).call(this,Mr.WARN,t,r)}error(t,r){let n;r instanceof Kt&&(n={error:r.failure()?r.error().message:r.data()}),r instanceof Error&&(n={error:r.message}),n===void 0&&(n=r),Es(this,Fu,"m",il).call(this,Mr.ERROR,t,n)}fatal(t,r){Es(this,Fu,"m",il).call(this,Mr.FATAL,t,r)}static otelSeverityNumber(t){switch(t){case Mr.VERBOSE:return Qs.TRACE;case Mr.DEBUG:return Qs.DEBUG;case Mr.INFO:return Qs.INFO;case Mr.WARN:return Qs.WARN;case Mr.ERROR:return Qs.ERROR;case Mr.FATAL:return Qs.FATAL;default:return Qs.UNSPECIFIED}}}rG=nG,Um=new WeakMap,eh=new WeakMap,xm=new WeakMap,Fu=new WeakSet,il=function(t,r,n){!Es(this,eh,"f").shouldLog(t)||Es(this,xm,"f").emit({timestamp:Date.now(),severityNumber:rG.otelSeverityNumber(t),severityText:n_.severityText(t),body:r,attributes:n??{}})};var iG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},aG=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Fm,$m;class qZ{constructor(t,r){Fm.set(this,void 0),$m.set(this,void 0),iG(this,$m,t,"f"),iG(this,Fm,r.loggerProvider(),"f")}getLogger(t){const r=t??"default",n=aG(this,Fm,"f").getLogger(r);return new nG(aG(this,$m,"f"),n,r)}}Fm=new WeakMap,$m=new WeakMap;class KZ{format(t,r,n,i){let u=`[${new Date().toISOString()}] ${n_.severityText(t)}`;return n!==void 0&&(u+=` (${n})`),u+=`: ${r}`,i===void 0?[u]:[u,i]}}var uP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},di=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},vs,ms,zs;class WZ{constructor(t,r){vs.set(this,void 0),ms.set(this,void 0),zs.set(this,void 0),uP(this,ms,new n_(t),"f"),uP(this,vs,r,"f"),uP(this,zs,new KZ,"f")}name(){return di(this,vs,"f")}severity(){return di(this,ms,"f").severity}verbose(t,r){di(this,ms,"f").shouldLog(Mr.VERBOSE)&&console.debug(...di(this,zs,"f").format(Mr.VERBOSE,t,di(this,vs,"f"),r))}debug(t,r){di(this,ms,"f").shouldLog(Mr.DEBUG)&&console.debug(...di(this,zs,"f").format(Mr.DEBUG,t,di(this,vs,"f"),r))}info(t,r){di(this,ms,"f").shouldLog(Mr.INFO)&&console.info(...di(this,zs,"f").format(Mr.INFO,t,di(this,vs,"f"),r))}warn(t,r){di(this,ms,"f").shouldLog(Mr.WARN)&&console.warn(...di(this,zs,"f").format(Mr.WARN,t,di(this,vs,"f"),r))}error(t,r){let n=r;r instanceof Kt&&(n=r.failure()?r.error():r.data()),di(this,ms,"f").shouldLog(Mr.ERROR)&&console.error(...di(this,zs,"f").format(Mr.ERROR,t,di(this,vs,"f"),n))}fatal(t,r){di(this,ms,"f").shouldLog(Mr.FATAL)&&console.error(...di(this,zs,"f").format(Mr.FATAL,t,di(this,vs,"f"),r))}}vs=new WeakMap,ms=new WeakMap,zs=new WeakMap;var QZ=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},zZ=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Vm;class ji{constructor(t=Mr.FATAL){Vm.set(this,void 0),QZ(this,Vm,t,"f")}getLogger(t){return new WZ(zZ(this,Vm,"f"),t)}}Vm=new WeakMap;var XZ=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},cP,oG;class JZ{constructor(){cP.add(this)}createLogProvider(t,r){switch(XZ(this,cP,"m",oG).call(this,t)){case"otel":if(r===void 0)throw new Error('telemetry is required for "otel" logging');return new qZ(t.logLevel,r);case"console":return new ji(t.logLevel)}}}cP=new WeakSet,oG=function(t){return t.telemetry.enabled?"otel":"console"};var Nn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Xs=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ao,i_,$u,a_,Vu,al,sG,uG,cG,lG,fG,_G,dG,pG,hG,SG;class Gm{constructor(t){ao.add(this),i_.set(this,void 0),$u.set(this,void 0),a_.set(this,void 0),Vu.set(this,void 0),al.set(this,void 0),this.bwellConfig=Nn(this,ao,"m",fG).call(this,t),Xs(this,i_,n_.severityFromText(this.bwellConfig.logLevel),"f"),Xs(this,al,Nn(this,ao,"m",SG).call(this),"f"),Xs(this,a_,Nn(this,ao,"m",dG).call(this),"f"),Xs(this,$u,Nn(this,ao,"m",pG).call(this),"f"),Xs(this,Vu,Nn(this,ao,"m",hG).call(this),"f")}static initialize(t){try{const r=new Gm(t);return Kt.success(r)}catch(r){if(Bi.isBwellError(r))return Kt.failure(r);throw r}}get logLevel(){return Nn(this,i_,"f")}get graphQL(){return Nn(this,a_,"f")}get telemetry(){return Nn(this,$u,"f")}get http(){return Nn(this,Vu,"f")}get context(){return Nn(this,al,"f")}setContextUser(t){Nn(this,al,"f").user=t}mergeRemoteConfig(t){Xs(this,i_,Nn(this,ao,"m",sG).call(this,t),"f"),Xs(this,a_,Nn(this,ao,"m",uG).call(this,t),"f"),Xs(this,$u,Object.freeze(Nn(this,ao,"m",cG).call(this,t)),"f"),Xs(this,Vu,Object.freeze(Nn(this,ao,"m",lG).call(this,t)),"f")}}i_=new WeakMap,$u=new WeakMap,a_=new WeakMap,Vu=new WeakMap,al=new WeakMap,ao=new WeakSet,sG=function(t){var r;const n=(r=t?.logLevel)!==null&&r!==void 0?r:null;return n===null?Nn(this,i_,"f"):n_.severityFromText(n)},uG=function(t){var r;const n=(r=t?.graphQLClient)!==null&&r!==void 0?r:null;if(n===null)return Nn(this,a_,"f");const{authedApiUrl:i,unauthedApiUrl:a}=this.bwellConfig.overrides;return{unauthApiUrl:a??n.url,apiUrl:i??n.authUrl}},cG=function(t){var r,n;const i=(r=t?.telemetry)!==null&&r!==void 0?r:null;if(i===null)return Nn(this,$u,"f");const a=(n=i.enabled)!==null&&n!==void 0?n:Nn(this,$u,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let u;try{u=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(u.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},Nn(this,$u,"f")),{enabled:a,collectorUrl:i.collectorUrl})},lG=function(t){var r,n,i;const a=(r=t?.httpClient)!==null&&r!==void 0?r:null;return a===null?Nn(this,Vu,"f"):{timeout:(n=a.requestTimeout)!==null&&n!==void 0?n:Nn(this,Vu,"f").timeout,retryPolicy:(i=a.retry)!==null&&i!==void 0?i:Nn(this,Vu,"f").retryPolicy}},fG=function(t){return Object.assign(Object.assign({},jZ),t)},_G=function(){try{return N9(this.bwellConfig.clientKey)}catch{throw new T9("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},dG=function(){var t,r;return{apiUrl:(t=this.bwellConfig.overrides.authedApiUrl)!==null&&t!==void 0?t:`https://api-gateway.${Nn(this,al,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:(r=this.bwellConfig.overrides.unauthedApiUrl)!==null&&r!==void 0?r:`https://api-gateway.${Nn(this,al,"f").env}.icanbwell.com/federated-graph/graphql`}},pG=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},hG=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},SG=function(){return{clientKey:this.bwellConfig.clientKey,env:Nn(this,ao,"m",_G).call(this),user:null}};var ZZ=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},EG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Bm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},o_,km;class eee{constructor(t,r=new ji){o_.set(this,void 0),km.set(this,void 0),EG(this,km,t,"f"),EG(this,o_,r.getLogger("ConfigManager"),"f")}initialize(t){return ZZ(this,void 0,void 0,function*(){const r=Gm.initialize(t);if(r.failure())return r;const n=r.data();Bm(this,o_,"f").verbose("Initializing SDK Configuration");const i=yield Bm(this,km,"f").initialize(n.context.clientKey);if(i.failure())return i.intoFailure();const a=i.data();try{n.mergeRemoteConfig(a)}catch(u){Bm(this,o_,"f").error("Error merging SDK config with remote config.",u)}return Bm(this,o_,"f").info("Remote SDK Configuration merged with user config"),Kt.success(n)})}}o_=new WeakMap,km=new WeakMap;const lP=JSON,tee=e=>e.toUpperCase(),ree=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},nee=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},iee=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},aee=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},pUe=(e,t,...r)=>{const[n,i]=r;return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},hUe=(e,t,...r)=>{const[n,i]=r;return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}};var oee=p(5157),see=p(2704);const vG=e=>{let t;const r=e.definitions.filter(n=>n.kind==="OperationDefinition");return r.length===1&&(t=r[0]?.name?.value),t},jm=e=>{if(typeof e=="string"){let r;try{const n=(0,oee.qg)(e);r=vG(n)}catch{}return{query:e,operationName:r}}const t=vG(e);return{query:(0,see.y)(e),operationName:t}};class Gu extends Error{constructor(t,r){const n=`${Gu.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,Gu.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Gu)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${t.status})`}}var s_=p(288),uee=p.t(s_,2);const cee="connection_init",lee="connection_ack",mG="ping",TG="pong",fee="subscribe",_ee="next",dee="error",AG="complete";class Bu{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(t,r,n){this._type=t,this._payload=r,this._id=n}get text(){const t={type:this.type};return this.id!=null&&this.id!=null&&(t.id=this.id),this.payload!=null&&this.payload!=null&&(t.payload=this.payload),JSON.stringify(t)}static parse(t,r){const{type:n,payload:i,id:a}=JSON.parse(t);return new Bu(n,r(i),a)}}class pee{constructor(t,{onInit:r,onAcknowledged:n,onPing:i,onPong:a}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.addEventListener("open",async u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},t.send(See(r?await r():null).text)}),t.addEventListener("close",u=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),t.addEventListener("error",u=>{console.error(u)}),t.addEventListener("message",u=>{try{const c=hee(u.data);switch(c.type){case lee:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(c.payload));return}case mG:{i?i(c.payload).then(L=>t.send(gG(L).text)):t.send(gG(null).text);return}case TG:{a&&a(c.payload);return}}if(!this.socketState.acknowledged||c.id===void 0||c.id===null||!this.socketState.subscriptions[c.id])return;const{query:v,variables:_,subscriber:h}=this.socketState.subscriptions[c.id];switch(c.type){case _ee:{!c.payload.errors&&c.payload.data&&h.next&&h.next(c.payload.data),c.payload.errors&&h.error&&h.error(new Gu({...c.payload,status:200},{query:v,variables:_}));return}case dee:{h.error&&h.error(new Gu({errors:c.payload,status:200},{query:v,variables:_}));return}case AG:{h.complete&&h.complete(),delete this.socketState.subscriptions[c.id];return}}}catch(c){console.error(c),t.close(1006)}t.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(t,r,n,i){const a=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[a]={query:t,variables:i,subscriber:n},this.socket.send(vee(a,{query:t,operationName:r,variables:i}).text),()=>{this.socket.send(mee(a).text),delete this.socketState.subscriptions[a]}}rawRequest(t,r){return new Promise((n,i)=>{let a;this.rawSubscribe(t,{next:(u,c)=>a={data:u,extensions:c},error:i,complete:()=>n(a)},r)})}request(t,r){return new Promise((n,i)=>{let a;this.subscribe(t,{next:u=>a=u,error:i,complete:()=>n(a)},r)})}subscribe(t,r,n){const{query:i,operationName:a}=jm(t);return this.makeSubscribe(i,a,r,n)}rawSubscribe(t,r,n){return this.makeSubscribe(t,void 0,r,n)}ping(t){this.socket.send(Eee(t).text)}close(){this.socket.close(1e3)}}pee.PROTOCOL="graphql-transport-ws";function hee(e,t=r=>r){return Bu.parse(e,t)}function See(e){return new Bu(cee,e)}function Eee(e){return new Bu(mG,e,void 0)}function gG(e){return new Bu(TG,e,void 0)}function vee(e,t){return new Bu(fee,t,e)}function mee(e){return new Bu(AG,void 0,e)}const u_=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||uee&&s_.Headers&&e instanceof s_.Headers?t=ree(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):t=e),t},yG=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),Tee=e=>{if(!Array.isArray(e.query)){const n=e,i=[`query=${encodeURIComponent(yG(n.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`),n.operationName&&i.push(`operationName=${encodeURIComponent(n.operationName)}`),i.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce((n,i,a)=>(n.push({query:yG(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[a]):void 0}),n),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`},Aee=e=>async t=>{const{url:r,query:n,variables:i,operationName:a,fetch:u,fetchOptions:c,middleware:v}=t,_={...t.headers};let h="",L;e==="POST"?(L=yee(n,i,a,c.jsonSerializer),typeof L=="string"&&(_["Content-Type"]="application/json")):h=Tee({query:n,variables:i,operationName:a,jsonSerializer:c.jsonSerializer??lP});const W={method:e,headers:_,body:L,...c};let Te=r,me=W;if(v){const Oe=await Promise.resolve(v({...W,url:r,operationName:a,variables:i})),{url:He,...qe}=Oe;Te=He,me=qe}return h&&(Te=`${Te}?${h}`),await u(Te,me)};class Hm{constructor(t,r={}){this.url=t,this.requestConfig=r,this.rawRequest=async(...n)=>{const[i,a,u]=n,c=iee(i,a,u),{headers:v,fetch:_=s_,method:h="POST",requestMiddleware:L,responseMiddleware:W,...Te}=this.requestConfig,{url:me}=this;c.signal!==void 0&&(Te.signal=c.signal);const{operationName:Oe}=jm(c.query);return fP({url:me,query:c.query,variables:c.variables,headers:{...u_(_P(v)),...u_(c.requestHeaders)},operationName:Oe,fetch:_,method:h,fetchOptions:Te,middleware:L}).then(He=>(W&&W(He),He)).catch(He=>{throw W&&W(He),He})}}async request(t,...r){const[n,i]=r,a=nee(t,n,i),{headers:u,fetch:c=s_,method:v="POST",requestMiddleware:_,responseMiddleware:h,...L}=this.requestConfig,{url:W}=this;a.signal!==void 0&&(L.signal=a.signal);const{query:Te,operationName:me}=jm(a.document);return fP({url:W,query:Te,variables:a.variables,headers:{...u_(_P(u)),...u_(a.requestHeaders)},operationName:me,fetch:c,method:v,fetchOptions:L,middleware:_}).then(Oe=>(h&&h(Oe),Oe.data)).catch(Oe=>{throw h&&h(Oe),Oe})}batchRequests(t,r){const n=aee(t,r),{headers:i,...a}=this.requestConfig;n.signal!==void 0&&(a.signal=n.signal);const u=n.documents.map(({document:v})=>jm(v).query),c=n.documents.map(({variables:v})=>v);return fP({url:this.url,query:u,variables:c,headers:{...u_(_P(i)),...u_(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??s_,method:this.requestConfig.method||"POST",fetchOptions:a,middleware:this.requestConfig.requestMiddleware}).then(v=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(v),v.data)).catch(v=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(v),v})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const fP=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=Aee(tee(e.method??"post")),a=Array.isArray(e.query),u=await i(e),c=await Ree(u,n.jsonSerializer??lP),v=Array.isArray(c)?!c.some(({data:h})=>!h):Boolean(c.data),_=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||n.errorPolicy==="all"||n.errorPolicy==="ignore";if(u.ok&&_&&v){const{errors:h,...L}=(Array.isArray(c),c),W=n.errorPolicy==="ignore"?L:c;return{...a?{data:W}:W,headers:u.headers,status:u.status}}else{const h=typeof c=="string"?{error:c}:c;throw new Gu({...h,status:u.status,headers:u.headers},{query:t,variables:r})}},SUe=async(...e)=>{const[t,r,...n]=e,i=parseRawRequestExtendedArgs(t,r,...n);return new Hm(i.url).rawRequest({...i})};async function EUe(e,t,...r){const n=parseRequestExtendedArgs(e,t,...r);return new Hm(n.url).request({...n})}const vUe=async(...e)=>{const t=gee(e);return new Hm(t.url).batchRequests(t)},gee=e=>e.length===1?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},yee=(e,t,r,n)=>{const i=n??lP;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const a=e.reduce((u,c,v)=>(u.push({query:c,variables:t?t[v]:void 0}),u),[]);return i.stringify(a)},Ree=async(e,t)=>{let r;return e.headers.forEach((n,i)=>{i.toLowerCase()==="content-type"&&(r=n)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},_P=e=>typeof e=="function"?e():e,mUe=(e,...t)=>e.reduce((r,n,i)=>`${r}${n}${i in t?String(t[i]):""}`,""),TUe=null,Hi=`
5345
5345
  fragment CodingFields on Coding {
5346
5346
  system
5347
5347
  code
@@ -6058,7 +6058,7 @@ ${bn}`,PG=`
6058
6058
  ${yi}
6059
6059
  ${Ur}
6060
6060
  ${EP}
6061
- ${la}`,Bu=`
6061
+ ${la}`,ku=`
6062
6062
  fragment EncounterFields on EncounterResource {
6063
6063
  meta {
6064
6064
  ...MetaFields
@@ -6277,7 +6277,7 @@ ${Ym}
6277
6277
  ${qm}
6278
6278
  ${SP}
6279
6279
  ${la}
6280
- ${Bu}
6280
+ ${ku}
6281
6281
  ${Wm}
6282
6282
  ${kee}`,IG=`
6283
6283
  fragment ReactionFields on Reaction {
@@ -7029,7 +7029,7 @@ ${la}`,fte=`
7029
7029
  }
7030
7030
  ${gn}
7031
7031
  ${yi}
7032
- ${Bu}
7032
+ ${ku}
7033
7033
  ${PG}
7034
7034
  ${bn}
7035
7035
  ${Ur}
@@ -7175,7 +7175,7 @@ ${yi}
7175
7175
  ${EP}
7176
7176
  ${la}
7177
7177
  ${oo}
7178
- ${Bu}`,hte=`
7178
+ ${ku}`,hte=`
7179
7179
  query getDiagnosticReportLabGroups($request: DiagnosticReportLabGroupQueryRequest) {
7180
7180
  getDiagnosticReportLabGroups(request: $request) {
7181
7181
  resources {
@@ -7248,7 +7248,7 @@ ${Hi}`,vte=`
7248
7248
  }
7249
7249
  }
7250
7250
  ${gn}
7251
- ${Bu}`,mte=`
7251
+ ${ku}`,mte=`
7252
7252
  query GetHealthSummary {
7253
7253
  getHealthSummary {
7254
7254
  resources {
@@ -7351,7 +7351,7 @@ ${Ur}
7351
7351
  ${Ts}
7352
7352
  ${yi}
7353
7353
  ${ca}
7354
- ${Bu}
7354
+ ${ku}
7355
7355
  ${IG}
7356
7356
  ${$ee}
7357
7357
  ${Lee}
@@ -7467,7 +7467,7 @@ ${Ur}
7467
7467
  ${yi}
7468
7468
  ${la}
7469
7469
  ${Wm}
7470
- ${Bu}`,Rte=`
7470
+ ${ku}`,Rte=`
7471
7471
  query getVitalSignGroups($request: VitalSignGroupQueryRequest) {
7472
7472
  getVitalSignGroups(request: $request) {
7473
7473
  paging_info {
@@ -7657,7 +7657,7 @@ ${ca}
7657
7657
  ${OG}
7658
7658
  ${CG}
7659
7659
  ${oo}
7660
- ${Bu}
7660
+ ${ku}
7661
7661
  ${Wm}
7662
7662
  ${Km}
7663
7663
  ${pP}`,Ite=`
@@ -7794,7 +7794,7 @@ ${CG}
7794
7794
  ${Ts}
7795
7795
  ${oo}
7796
7796
  ${mP}
7797
- ${Bu}
7797
+ ${ku}
7798
7798
  ${pP}
7799
7799
  ${Iee}`,wte=`
7800
7800
  query getMedicationStatements($request: MedicationStatementQueryRequest) {
@@ -8530,7 +8530,7 @@ ${la}`,Qte=`
8530
8530
  lastPerformed
8531
8531
  }
8532
8532
  }
8533
- `,rre=(e,t,r,n)=>e();function nre(e,t=rre){return{getTasks(r,n){return t(i=>e.rawRequest(Qee,r,Object.assign(Object.assign({},n),i)),"getTasks","query",r)},taskUpdateStatus(r,n){return t(i=>e.rawRequest(zee,r,Object.assign(Object.assign({},n),i)),"taskUpdateStatus","mutation",r)},createConnection(r,n){return t(i=>e.rawRequest(Xee,r,Object.assign(Object.assign({},n),i)),"createConnection","mutation",r)},deleteConnection(r,n){return t(i=>e.rawRequest(Jee,r,Object.assign(Object.assign({},n),i)),"deleteConnection","mutation",r)},disconnectConnection(r,n){return t(i=>e.rawRequest(Zee,r,Object.assign(Object.assign({},n),i)),"disconnectConnection","mutation",r)},getDataSource(r,n){return t(i=>e.rawRequest(ete,r,Object.assign(Object.assign({},n),i)),"getDataSource","query",r)},getMemberConnections(r,n){return t(i=>e.rawRequest(tte,r,Object.assign(Object.assign({},n),i)),"getMemberConnections","query",r)},getOauthUrl(r,n){return t(i=>e.rawRequest(rte,r,Object.assign(Object.assign({},n),i)),"getOauthUrl","query",r)},updateDeviceRegistration(r,n){return t(i=>e.rawRequest(nte,r,Object.assign(Object.assign({},n),i)),"updateDeviceRegistration","mutation",r)},publishEvent(r,n){return t(i=>e.rawRequest(ite,r,Object.assign(Object.assign({},n),i)),"publishEvent","mutation",r)},getBinary(r,n){return t(i=>e.rawRequest(ate,r,Object.assign(Object.assign({},n),i)),"getBinary","query",r)},getFHIR(r,n){return t(i=>e.rawRequest(ote,r,Object.assign(Object.assign({},n),i)),"getFHIR","query",r)},getDiagnosticReports(r,n){return t(i=>e.rawRequest(ste,r,Object.assign(Object.assign({},n),i)),"getDiagnosticReports","query",r)},getAllergyIntoleranceGroups(r,n){return t(i=>e.rawRequest(ute,r,Object.assign(Object.assign({},n),i)),"getAllergyIntoleranceGroups","query",r)},getAllergyIntolerances(r,n){return t(i=>e.rawRequest(cte,r,Object.assign(Object.assign({},n),i)),"getAllergyIntolerances","query",r)},getCarePlanGroups(r,n){return t(i=>e.rawRequest(lte,r,Object.assign(Object.assign({},n),i)),"getCarePlanGroups","query",r)},getCarePlans(r,n){return t(i=>e.rawRequest(fte,r,Object.assign(Object.assign({},n),i)),"getCarePlans","query",r)},getCareTeams(r,n){return t(i=>e.rawRequest(_te,r,Object.assign(Object.assign({},n),i)),"getCareTeams","query",r)},getConditionGroups(r,n){return t(i=>e.rawRequest(dte,r,Object.assign(Object.assign({},n),i)),"getConditionGroups","query",r)},getConditions(r,n){return t(i=>e.rawRequest(pte,r,Object.assign(Object.assign({},n),i)),"getConditions","query",r)},getDiagnosticReportLabGroups(r,n){return t(i=>e.rawRequest(hte,r,Object.assign(Object.assign({},n),i)),"getDiagnosticReportLabGroups","query",r)},getDocumentReferences(r,n){return t(i=>e.rawRequest(Ste,r,Object.assign(Object.assign({},n),i)),"getDocumentReferences","query",r)},getEncountersGroup(r,n){return t(i=>e.rawRequest(Ete,r,Object.assign(Object.assign({},n),i)),"getEncountersGroup","query",r)},getEncounterQuery(r,n){return t(i=>e.rawRequest(vte,r,Object.assign(Object.assign({},n),i)),"getEncounterQuery","query",r)},GetHealthSummary(r,n){return t(i=>e.rawRequest(mte,r,Object.assign(Object.assign({},n),i)),"GetHealthSummary","query",r)},getImmunizationGroups(r,n){return t(i=>e.rawRequest(Tte,r,Object.assign(Object.assign({},n),i)),"getImmunizationGroups","query",r)},getImmunizations(r,n){return t(i=>e.rawRequest(Ate,r,Object.assign(Object.assign({},n),i)),"getImmunizations","query",r)},getProcedureGroups(r,n){return t(i=>e.rawRequest(gte,r,Object.assign(Object.assign({},n),i)),"getProcedureGroups","query",r)},GetProcedures(r,n){return t(i=>e.rawRequest(yte,r,Object.assign(Object.assign({},n),i)),"GetProcedures","query",r)},getVitalSignGroups(r,n){return t(i=>e.rawRequest(Rte,r,Object.assign(Object.assign({},n),i)),"getVitalSignGroups","query",r)},getVitalSigns(r,n){return t(i=>e.rawRequest(Ote,r,Object.assign(Object.assign({},n),i)),"getVitalSigns","query",r)},getLabGroups(r,n){return t(i=>e.rawRequest(bte,r,Object.assign(Object.assign({},n),i)),"getLabGroups","query",r)},getLabKnowledge(r,n){return t(i=>e.rawRequest(Cte,r,Object.assign(Object.assign({},n),i)),"getLabKnowledge","query",r)},getLabs(r,n){return t(i=>e.rawRequest(Pte,r,Object.assign(Object.assign({},n),i)),"getLabs","query",r)},getMedicationDispense(r,n){return t(i=>e.rawRequest(Mte,r,Object.assign(Object.assign({},n),i)),"getMedicationDispense","query",r)},getMedicationGroups(r,n){return t(i=>e.rawRequest(Ite,r,Object.assign(Object.assign({},n),i)),"getMedicationGroups","query",r)},getMedicationKnowledge(r,n){return t(i=>e.rawRequest(Nte,r,Object.assign(Object.assign({},n),i)),"getMedicationKnowledge","query",r)},getMedicationPricing(r,n){return t(i=>e.rawRequest(Lte,r,Object.assign(Object.assign({},n),i)),"getMedicationPricing","query",r)},getMedicationRequest(r,n){return t(i=>e.rawRequest(Dte,r,Object.assign(Object.assign({},n),i)),"getMedicationRequest","query",r)},getMedicationStatements(r,n){return t(i=>e.rawRequest(wte,r,Object.assign(Object.assign({},n),i)),"getMedicationStatements","query",r)},appointments(r,n){return t(i=>e.rawRequest(Ute,r,Object.assign(Object.assign({},n),i)),"appointments","query",r)},cancelAppointment(r,n){return t(i=>e.rawRequest(xte,r,Object.assign(Object.assign({},n),i)),"cancelAppointment","mutation",r)},cancelationReasons(r,n){return t(i=>e.rawRequest(Fte,r,Object.assign(Object.assign({},n),i)),"cancelationReasons","query",r)},authenticate(r,n){return t(i=>e.rawRequest($te,r,Object.assign(Object.assign({},n),i)),"authenticate","query",r)},createGuestAccessToken(r,n){return t(i=>e.rawRequest(Vte,r,Object.assign(Object.assign({},n),i)),"createGuestAccessToken","mutation",r)},ExchangeAuthCode(r,n){return t(i=>e.rawRequest(Gte,r,Object.assign(Object.assign({},n),i)),"ExchangeAuthCode","mutation",r)},initialize(r,n){return t(i=>e.rawRequest(Bte,r,Object.assign(Object.assign({},n),i)),"initialize","query",r)},login(r,n){return t(i=>e.rawRequest(kte,r,Object.assign(Object.assign({},n),i)),"login","query",r)},refreshTokens(r,n){return t(i=>e.rawRequest(jte,r,Object.assign(Object.assign({},n),i)),"refreshTokens","query",r)},nextQuestion(r,n){return t(i=>e.rawRequest(Hte,r,Object.assign(Object.assign({},n),i)),"nextQuestion","mutation",r)},providerSearch(r,n){return t(i=>e.rawRequest(Yte,r,Object.assign(Object.assign({},n),i)),"providerSearch","query",r)},requestConnection(r,n){return t(i=>e.rawRequest(qte,r,Object.assign(Object.assign({},n),i)),"requestConnection","mutation",r)},SearchHealthResources(r,n){return t(i=>e.rawRequest(Kte,r,Object.assign(Object.assign({},n),i)),"SearchHealthResources","query",r)},createConsent(r,n){return t(i=>e.rawRequest(Wte,r,Object.assign(Object.assign({},n),i)),"createConsent","mutation",r)},CreateDataExportDirectDownloadUrl(r,n){return t(i=>e.rawRequest(Qte,r,Object.assign(Object.assign({},n),i)),"CreateDataExportDirectDownloadUrl","mutation",r)},CreateVerificationUrl(r,n){return t(i=>e.rawRequest(zte,r,Object.assign(Object.assign({},n),i)),"CreateVerificationUrl","mutation",r)},delete(r,n){return t(i=>e.rawRequest(Xte,r,Object.assign(Object.assign({},n),i)),"delete","mutation",r)},getProfile(r,n){return t(i=>e.rawRequest(Jte,r,Object.assign(Object.assign({},n),i)),"getProfile","query",r)},searchConsent(r,n){return t(i=>e.rawRequest(Zte,r,Object.assign(Object.assign({},n),i)),"searchConsent","query",r)},updateUserProfile(r,n){return t(i=>e.rawRequest(ere,r,Object.assign(Object.assign({},n),i)),"updateUserProfile","mutation",r)},VerificationStatus(r,n){return t(i=>e.rawRequest(tre,r,Object.assign(Object.assign({},n),i)),"VerificationStatus","query",r)}}}var ire=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})};function NG(e,t,r){let n;t!==void 0&&(n=are(t));const i={};r!=null&&(i["accept-language"]=r);const a=new Hm(e,{errorPolicy:"all",mode:"cors",requestMiddleware:n,headers:i});return{client:a,sdk:nre(a)}}function are(e){return t=>ire(this,void 0,void 0,function*(){const n=(yield e.getAccessToken()).data();return Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),{Authorization:`Bearer ${n}`})})})}var ore=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},LG=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},rh;const DG="accept-language";class sre{constructor(t){rh.set(this,void 0),ore(this,rh,t,"f")}setLanguage(t){LG(this,rh,"f").setHeader(DG,t)}getLanguage(){var t;const r=LG(this,rh,"f").requestConfig.headers;return(t=r?.[DG])!==null&&t!==void 0?t:null}}rh=new WeakMap;const ure="INFORMATION",yUe="WARNING",wG="ERROR",cre="FATAL";class Qm{constructor(t){this.issue=t}message(){var t,r;const n=[];for(const i of this.issue){const a=(r=(t=i.details)===null||t===void 0?void 0:t.text)===null||r===void 0?void 0:r.trim();a==null||a.length===0||n.push(a)}return n.join(", ")}success(){for(const t of this.issue){const r=t.severity.toUpperCase();if(r===wG||r===cre)return!1}return!0}static error(t){return new Qm([{severity:wG,code:"EXCEPTION",details:{text:t.message}}])}static success(){return new Qm([{severity:ure,code:"INFORMATIONAL",details:{}}])}}function lre(e){for(const t of e){const r=UG(t);if(r!==null){if(r.code==="500")return!0;for(const n of r.resource.issue)if(n.code==="exception")return!0}}return!1}function TP(e=[]){const t=[];let r=!1;for(const a of e){const u=UG(a);if(u!==null){r=!0;for(const c of u.resource.issue)t.push(c)}}if(!r)return null;const n=new Qm(t),i=new g9(n);if(Ws(i.message)){const a=e.map(u=>u.message).join(", ");i.message=Ws(a)?"Unknown error. Contact b.well support for further assistance.":a}return i}function UG(e){const t=e.extensions,r=t?.code,n=t?.resource;return r===void 0||n===void 0||!fre(n)?null:{code:r,resource:n}}function fre(e){const t=e.issue;return t===void 0?!1:Array.isArray(t)}var xG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},zm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},u_,AP,gP;class As{constructor(){u_.add(this)}handleTransaction(t){return xG(this,void 0,void 0,function*(){try{const r=yield t,n=TP(r.errors);return n!==null?Kt.failure(n):Kt.success(r.data)}catch(r){if(Bi.isBwellError(r))return Kt.failure(r);if(zm(this,u_,"m",AP).call(this,r))return zm(this,u_,"m",gP).call(this,r);throw r}})}handleQuery(t){return xG(this,void 0,void 0,function*(){try{const r=yield t,n=TP(r.errors);return new ar(r.data,n)}catch(r){if(Bi.isBwellError(r))return new ar(void 0,r);if(zm(this,u_,"m",AP).call(this,r)){const n=zm(this,u_,"m",gP).call(this,r);return ar.error(n.error())}throw r}})}validateRequest(t){return t===void 0?Kt.success(null):t.validate()}}u_=new WeakSet,AP=function(t){return t instanceof Vu},gP=function(t){if(t.response.status>299)return new Pm(new A9("Network error",t.response.status));const r=t.response.errors;if(r!==void 0){if(lre(r))return new Pm(new IC("Internal server error",r));const n=TP(r);if(n!==null)return Kt.failure(n)}return new Pm(new IC("Unknown error",t))};var c_=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ku,al,nh;(function(e){e.ACTIVITY_CONTENT="https://www.icanbwell.com/contentDescription",e.ACTIVITY_ID="https://www.icanbwell.com/activityId",e.ACTIVITY_TOPIC="https://www.icanbwell.com/activityTopic",e.ACTIVITY_TYPE="https://www.icanbwell.com/activityType"})(nh||(nh={}));class _re{constructor(){ku.add(this)}create(t){var r;const n=t.data(),i={page:n.page,pageSize:n.pageSize};return ki(n.id)&&(i.id=c_(this,ku,"m",al).call(this,n.id)),ki(n.activityId)&&(i.identifier=c_(this,ku,"m",al).call(this,n.activityId,nh.ACTIVITY_ID)),ki(n.activityType)&&(i.code=c_(this,ku,"m",al).call(this,n.activityType,nh.ACTIVITY_TYPE)),ki(n.activityTopic)&&(i.tag=c_(this,ku,"m",al).call(this,n.activityTopic,nh.ACTIVITY_TOPIC)),ki(n.status)&&(i.status=c_(this,ku,"m",al).call(this,n.status)),ki(n.subject)&&(i.subject=c_(this,ku,"m",al).call(this,n.subject)),i.sortMethod=n.smartSort===!0?"smartSort":"",ki(n.enrichContent)&&(i.enrichContent=n.enrichContent),i.contentLanguage=(r=n.contentLanguage)!==null&&r!==void 0?r:"en",{request:i}}}ku=new WeakSet,al=function(t,r){const i={value:(Array.isArray(t)?t:[t]).join(",")};return ki(r)&&(i.system=r),{values:[i]}};var FG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},$G=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Vo=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Go,ih,yP;class dre extends As{constructor(t,r=new ji){super(),Go.set(this,void 0),ih.set(this,void 0),yP.set(this,new _re),$G(this,ih,t,"f"),$G(this,Go,r.getLogger("GraphQLActivityManager"),"f")}getTasks(t){return FG(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Vo(this,Go,"f").verbose("calling getTask query...");const i=yield this.handleQuery(Vo(this,ih,"f").getTasks(Vo(this,yP,"f").create(t)));return Vo(this,Go,"f").verbose("getTask query complete"),i.hasError()?Vo(this,Go,"f").error("getTask query error",i.error):Vo(this,Go,"f").info("successfully called getTask query"),new ar((r=i.data)===null||r===void 0?void 0:r.getTasks,i.error)})}updateTaskStatus(t){return FG(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;Vo(this,Go,"f").verbose("calling taskUpdateStatus mutation");const n=yield this.handleTransaction(Vo(this,ih,"f").taskUpdateStatus(t.data()));return Vo(this,Go,"f").verbose("taskUpdateStatus mutation complete"),n.failure()?(Vo(this,Go,"f").error("taskUpdateStatus error",n),n.intoFailure()):(Vo(this,Go,"f").info("taskUpdateStatus mutation success"),Kt.success(n.data().taskUpdateStatus))})}}Go=new WeakMap,ih=new WeakMap,yP=new WeakMap;var l_=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},RP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},un=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Js,Cn,Xm;class pre extends As{constructor(t,r=new ji,n=new hre){super(),Js.set(this,void 0),Cn.set(this,void 0),Xm.set(this,void 0),RP(this,Js,t,"f"),RP(this,Cn,r.getLogger("GraphQLConnectionManager"),"f"),RP(this,Xm,n,"f")}getMemberConnections(){return l_(this,void 0,void 0,function*(){un(this,Cn,"f").verbose("calling getMemberConnections...");const t=yield this.handleQuery(un(this,Js,"f").getMemberConnections());return un(this,Cn,"f").verbose("getMemberConnections complete"),t.hasError()?un(this,Cn,"f").error("getMemberConnections failed",t.error):un(this,Cn,"f").info("successfully called getMemberConnections"),un(this,Xm,"f").create(t)})}getDataSource(t){return l_(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();un(this,Cn,"f").verbose("calling getDataSources...");const i=yield this.handleQuery(un(this,Js,"f").getDataSource(Object.assign({},t.data())));return un(this,Cn,"f").verbose("getDataSources complete"),i.hasError()?un(this,Cn,"f").error("getDataSources failed",i.error):un(this,Cn,"f").info("successfully called getDataSources"),new ar((r=i.data)===null||r===void 0?void 0:r.getDataSource,i.error)})}createConnection(t){return l_(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();un(this,Cn,"f").verbose("calling createConnection...");const n=yield this.handleTransaction(un(this,Js,"f").createConnection(Object.assign({},t.data())));return un(this,Cn,"f").verbose("createConnection complete"),n.failure()?(un(this,Cn,"f").error("createConnection failed",n),n.intoFailure()):(un(this,Cn,"f").info("successfully called createConnection"),Kt.success(n.data().createConnection))})}disconnectConnection(t){return l_(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();un(this,Cn,"f").verbose("calling disconnectConnection...");const n=yield this.handleTransaction(un(this,Js,"f").disconnectConnection(Object.assign({},t.data())));return un(this,Cn,"f").verbose("disconnectConnection complete"),n.failure()?(un(this,Cn,"f").error("disconnectConnection failed",n),n.intoFailure()):(un(this,Cn,"f").info("successfully called disconnectConnection"),Kt.success(n.data().disconnectConnection))})}deleteConnection(t){return l_(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();un(this,Cn,"f").verbose("calling deleteConnection...");const n=yield this.handleTransaction(un(this,Js,"f").deleteConnection(Object.assign({},t.data())));return un(this,Cn,"f").verbose("deleteConnection complete"),n.failure()?(un(this,Cn,"f").error("deleteConnection failed",n),n.intoFailure()):(un(this,Cn,"f").info("successfully called deleteConnection"),Kt.success(n.data().deleteConnection))})}getOauthUrl(t){return l_(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();un(this,Cn,"f").verbose("calling getOauthUrl...");const i=yield this.handleQuery(un(this,Js,"f").getOauthUrl(Object.assign({},t.data())));return un(this,Cn,"f").verbose("getOauthUrl complete"),i.hasError()?un(this,Cn,"f").error("getOauthUrl failed",i.error):un(this,Cn,"f").info("successfully called getOauthUrl"),new ar((r=i.data)===null||r===void 0?void 0:r.getOauthUrl,i.error)})}}Js=new WeakMap,Cn=new WeakMap,Xm=new WeakMap;class hre{create(t){var r,n,i,a,u,c;const v=new Map,_=(i=(n=(r=t.data)===null||r===void 0?void 0:r.subscription_subscription)===null||n===void 0?void 0:n.entry)!==null&&i!==void 0?i:[];for(const L of _)if(Fn((a=L?.resource)===null||a===void 0?void 0:a.service_slug)&&Fn(L?.resource.subscriptionStatus))for(const W of L.resource.subscriptionStatus)v.set(L.resource.service_slug,{error:W?.error,extension:W?.extension});const h=(c=(u=t.data)===null||u===void 0?void 0:u.getMemberConnections)!==null&&c!==void 0?c:[];return new ar(h.map(L=>{var W;const Te=v.get(L.id);if(Fo(Te))return Object.assign(Object.assign({},L),{syncErrors:[]});const me=(W=Te.extension)===null||W===void 0?void 0:W.find(Oe=>Oe?.id===vZ);return Object.assign(Object.assign({},L),{syncErrors:Te.error,syncStatus:me?me.valueString:L.syncStatus})}),t.error)}}class Sre{create(t){return{deviceToken:t.data().deviceToken,platformName:"",applicationName:"",notificationPreference:!1}}}class Ere{create(t){return Object.assign(Object.assign({},t.data()),{notificationPreference:!0})}}var VG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},GG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},so=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ah,Bo,OP,bP;class vre extends As{constructor(t,r=new ji){super(),ah.set(this,void 0),Bo.set(this,void 0),OP.set(this,new Sre),bP.set(this,new Ere),GG(this,ah,t,"f"),GG(this,Bo,r.getLogger("GraphQLDeviceManager"),"f")}registerDevice(t){return VG(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();const n=so(this,bP,"f").create(t);so(this,Bo,"f").verbose("calling updateDeviceRegistration to register device...");const i=yield this.handleTransaction(so(this,ah,"f").updateDeviceRegistration(n));return so(this,Bo,"f").verbose("updateDeviceRegistration complete for registration."),i.failure()?(so(this,Bo,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(so(this,Bo,"f").info("successfully called updateDeviceRegistration for registration."),Kt.success(i.data().updateDeviceRegistration))})}deregisterDevice(t){return VG(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();so(this,Bo,"f").verbose("calling updateDeviceRegistration to deregister device...");const n=so(this,OP,"f").create(t),i=yield this.handleTransaction(so(this,ah,"f").updateDeviceRegistration(n));return so(this,Bo,"f").verbose("updateDeviceRegistration complete for deregistration."),i.failure()?(so(this,Bo,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(so(this,Bo,"f").info("successfully called updateDeviceRegistration for deregistration."),Kt.success(i.data().updateDeviceRegistration))})}}ah=new WeakMap,Bo=new WeakMap,OP=new WeakMap,bP=new WeakMap;class mre{create(t){const r=JSON.parse(t.data().serializedNotification);return{notificationId:r.notification_id,messageId:r.itbl.messageId,eventType:xC.MobilePushOpen}}}var Tre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},CP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ol=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Jm,ju,Zm;class Are extends As{constructor(t,r=new ji,n=new mre){super(),Jm.set(this,void 0),ju.set(this,void 0),Zm.set(this,void 0),CP(this,Jm,t,"f"),CP(this,ju,r.getLogger("GraphQLEventManager"),"f"),CP(this,Zm,n,"f")}handleNotification(t){return Tre(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();ol(this,ju,"f").debug("Calling publishEvent");let n;try{n=ol(this,Zm,"f").create(t)}catch(a){return ol(this,ju,"f").error("Error creating publishEvent request",a),Kt.failure(new IC("Error creating publishEvent request"))}const i=yield this.handleTransaction(ol(this,Jm,"f").publishEvent(n));return ol(this,ju,"f").debug("publishEvent completed"),i.failure()?(ol(this,ju,"f").error("publishEvent mutation error",i),i.intoFailure()):(ol(this,ju,"f").info("publishEvent mutation success"),Kt.success(i.data().publishEvent))})}}Jm=new WeakMap,ju=new WeakMap,Zm=new WeakMap;class gre{create(t){var r,n,i,a,u,c,v,_;const h=t.data();return{source:(r=h._source)!==null&&r!==void 0?r:null,id:(n=h._id)!==null&&n!==void 0?n:null,count:(i=h._count)!==null&&i!==void 0?i:25,getPagesOffset:(a=h._getpagesoffset)!==null&&a!==void 0?a:0,date:(u=h.date)!==null&&u!==void 0?u:null,sort:(c=h._sort)!==null&&c!==void 0?c:null,supportingInformation:(v=h.supporting_info)!==null&&v!==void 0?v:null,status:(_=h.status)!==null&&_!==void 0?_:null}}}class yre{create(t){const r=t.data();return{appointment:{id:r.id,status:DC.Cancelled,cancelationReason:r.cancelationReason}}}}var PP=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},BG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Yi=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},fa,f_,MP,IP;class Rre extends As{constructor(t,r=new ji){super(),fa.set(this,void 0),f_.set(this,void 0),MP.set(this,new gre),IP.set(this,new yre),BG(this,f_,t,"f"),BG(this,fa,r.getLogger("GraphQLHealthSpaceManager"),"f")}getAppointments(t){return PP(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();Yi(this,fa,"f").verbose("calling appointments query...");const i=yield this.handleQuery(Yi(this,f_,"f").appointments(Yi(this,MP,"f").create(t)));return Yi(this,fa,"f").verbose("appointments query complete"),i.hasError()?Yi(this,fa,"f").error("appointments query error",i.error):Yi(this,fa,"f").info("successfully called appointments query"),new ar((r=i.data)===null||r===void 0?void 0:r.appointments,i.error)})}cancelAppointment(t){return PP(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();Yi(this,fa,"f").verbose("calling cancel appointment mutation...");const n=yield this.handleTransaction(Yi(this,f_,"f").cancelAppointment(Yi(this,IP,"f").create(t)));return Yi(this,fa,"f").verbose("cancel appointment mutation complete"),n.failure()?(Yi(this,fa,"f").error("cancel appointment mutation error",n),n.intoFailure()):(Yi(this,fa,"f").info("successfully called cancel appointment mutation"),Kt.success(n.data().updateAppointment))})}getCancelationReasons(t){return PP(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();Yi(this,fa,"f").verbose("calling cancelationReasons query...");const i=yield this.handleQuery(Yi(this,f_,"f").cancelationReasons(t.data()));return Yi(this,fa,"f").verbose("cancelationReasons query complete"),i.hasError()?Yi(this,fa,"f").error("cancelationReasons query error",i.error):Yi(this,fa,"f").info("successfully called cancelationReasons query"),new ar((r=i.data)===null||r===void 0?void 0:r.cancelationReasons,i.error)})}}fa=new WeakMap,f_=new WeakMap,MP=new WeakMap,IP=new WeakMap;var En=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},kG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ft=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},nn,Rt;class Ore extends As{constructor(t,r=new ji){super(),nn.set(this,void 0),Rt.set(this,void 0),kG(this,nn,t,"f"),kG(this,Rt,r.getLogger("GraphQLHealthManager"),"f")}getHealthSummary(){return En(this,void 0,void 0,function*(){var t;ft(this,Rt,"f").verbose("calling getHealthSummary...");const r=yield this.handleQuery(ft(this,nn,"f").GetHealthSummary());return ft(this,Rt,"f").verbose("getHealthSummary complete"),r.hasError()?ft(this,Rt,"f").error("getHealthSummary failed",r.error):ft(this,Rt,"f").info("successfully called getHealthSummary"),new ar((t=r.data)===null||t===void 0?void 0:t.getHealthSummary,r.error)})}getAllergyIntolerances(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getAllergyIntolerances...");const a=yield this.handleQuery(ft(this,nn,"f").getAllergyIntolerances({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getAllergyIntolerances complete"),a.hasError()&&ft(this,Rt,"f").error("getAllergyIntolerances errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getAllergyIntolerances,a.error)})}getAllergyIntoleranceGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getAllergyIntoleranceGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getAllergyIntoleranceGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getAllergyIntoleranceGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getAllergyIntoleranceGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getAllergyIntoleranceGroups,a.error)})}getConditions(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getConditions...");const a=yield this.handleQuery(ft(this,nn,"f").getConditions({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getConditions complete"),a.hasError()&&ft(this,Rt,"f").error("getConditions errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getConditions,a.error)})}getConditionGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getConditionGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getConditionGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getConditionGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getConditionGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getConditionGroups,a.error)})}getDiagnosticReports(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getDiagnosticReports...");const i=yield this.handleQuery(ft(this,nn,"f").getDiagnosticReports());return ft(this,Rt,"f").verbose("getDiagnosticReports complete"),i.hasError()&&ft(this,Rt,"f").error("getDiagnosticReports errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.diagnosticReports,i.error)})}getDocumentReferences(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getDocumentReferences...");const a=yield this.handleQuery(ft(this,nn,"f").getDocumentReferences({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getDocumentReferences complete"),a.hasError()&&ft(this,Rt,"f").error("getDocumentReferences errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getDocumentReferences,a.error)})}getBinary(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getBinary...");const i=yield this.handleQuery(ft(this,nn,"f").getBinary({request:t.data()}));return ft(this,Rt,"f").verbose("getBinary complete"),i.hasError()&&ft(this,Rt,"f").error("getBinary errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.getBinary,i.error)})}getLabs(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getLabs...");const a=yield this.handleQuery(ft(this,nn,"f").getLabs({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getLabs complete"),a.hasError()&&ft(this,Rt,"f").error("getLabs errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getLabs,a.error)})}getLabGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getLabGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getLabGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getLabGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getLabGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getLabGroups,a.error)})}getCarePlans(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getCarePlans...");const a=yield this.handleQuery(ft(this,nn,"f").getCarePlans({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getCarePlans complete"),a.hasError()&&ft(this,Rt,"f").error("getCarePlans errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getCarePlans,a.error)})}getCarePlanGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getCarePlanGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getCarePlanGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getCarePlanGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getCarePlanGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getCarePlanGroups,a.error)})}getCareTeams(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getCareTeams");const a=yield this.handleQuery(ft(this,nn,"f").getCareTeams({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getCareTeams complete"),a.hasError()&&ft(this,Rt,"f").error("getCareTeams errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getCareTeams,a.error)})}getEncounters(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getEncounters...");const a=yield this.handleQuery(ft(this,nn,"f").getEncounterQuery({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getEncounters complete"),a.hasError()&&ft(this,Rt,"f").error("getEncounters errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getEncounters,a.error)})}getEncounterGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getEncounterGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getEncountersGroup({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getEncounterGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getEncounterGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getEncounterGroups,a.error)})}getImmunizations(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getImmunizations...");const a=yield this.handleQuery(ft(this,nn,"f").getImmunizations({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getImmunizations complete"),a.hasError()&&ft(this,Rt,"f").error("getImmunizations errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getImmunizations,a.error)})}getImmunizationGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getImmunizationGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getImmunizationGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getImmunizationGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getImmunizationGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getImmunizationGroups,a.error)})}getProcedures(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getProcedures...");const a=yield this.handleQuery(ft(this,nn,"f").GetProcedures({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getProcedures complete"),a.hasError()&&ft(this,Rt,"f").error("getProcedures errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getProcedures,a.error)})}getProcedureGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getProcedureGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getProcedureGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getProcedureGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getProcedureGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getProcedureGroups,a.error)})}getVitalSigns(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getVitalSigns...");const a=yield this.handleQuery(ft(this,nn,"f").getVitalSigns({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getVitalSigns complete"),a.hasError()&&ft(this,Rt,"f").error("getVitalSigns errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getVitalSigns,a.error)})}getVitalSignGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getVitalSignGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getVitalSignGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getVitalSignGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getVitalSignGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getVitalSignGroups,a.error)})}getMedicationDispense(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationDispense...");const a=yield this.handleQuery(ft(this,nn,"f").getMedicationDispense({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getMedicationDispense complete"),a.hasError()&&ft(this,Rt,"f").error("getMedicationDispense errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getMedicationDispense,a.error)})}getMedicationRequest(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationRequest...");const a=yield this.handleQuery(ft(this,nn,"f").getMedicationRequest({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getMedicationRequest complete"),a.hasError()&&ft(this,Rt,"f").error("getMedicationRequest errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getMedicationRequest,a.error)})}getMedicationStatements(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationStatements...");const a=yield this.handleQuery(ft(this,nn,"f").getMedicationStatements({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getMedicationStatements complete"),a.hasError()&&ft(this,Rt,"f").error("getMedicationStatements errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getMedicationStatements,a.error)})}getMedicationGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getMedicationGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getMedicationGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getMedicationGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getMedicationGroups,a.error)})}getMedicationKnowledge(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationKnowledge...");const i=yield this.handleQuery(ft(this,nn,"f").getMedicationKnowledge({request:t.data()}));return ft(this,Rt,"f").verbose("getMedicationKnowledge complete"),i.hasError()&&ft(this,Rt,"f").error("getMedicationKnowledge errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.getMedicationKnowledge,i.error)})}getLabKnowledge(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getLabKnowledge...");const i=yield this.handleQuery(ft(this,nn,"f").getLabKnowledge({request:t.data()}));return ft(this,Rt,"f").verbose("getLabKnowledge complete"),i.hasError()&&ft(this,Rt,"f").error("getLabKnowledge errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.getLabKnowledge,i.error)})}getMedicationPricing(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationPricing...");const i=yield this.handleQuery(ft(this,nn,"f").getMedicationPricing({request:t.data()}));return ft(this,Rt,"f").verbose("getMedicationPricing complete"),i.hasError()&&ft(this,Rt,"f").error("getMedicationPricing errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.getMedicationPricing,i.error)})}getDiagnosticReportLabGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getDiagnosticReportLabGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getDiagnosticReportLabGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getDiagnosticReportLabGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getDiagnosticReportLabGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getDiagnosticReportLabGroups,a.error)})}}nn=new WeakMap,Rt=new WeakMap;var bre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},jG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},oh=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},sl,eT;class Cre extends As{constructor(t,r=new ji){super(),sl.set(this,void 0),eT.set(this,void 0),jG(this,eT,t,"f"),jG(this,sl,r.getLogger("GraphQLQuestionnaireManager"),"f")}nextQuestion(t){return bre(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r.intoFailure();oh(this,sl,"f").verbose("calling nextQuestion mutation...");const n=yield this.handleTransaction(oh(this,eT,"f").nextQuestion(t.data()));return oh(this,sl,"f").verbose("nextQuestion mutation complete"),n.failure()?(oh(this,sl,"f").error("nextQuestion mutation failed",n.error()),n.intoFailure()):(oh(this,sl,"f").info("successfully called nextQuestion mutation"),Kt.success(n.data().nextQuestion))})}}sl=new WeakMap,eT=new WeakMap;class NP{create(t){var r,n,i,a,u,c,v,_,h;const L=t.data(),W=null,Te=(r=L.searchTerm)!==null&&r!==void 0?r:null,me=(n=L.specialtyFilters)!==null&&n!==void 0?n:null,Oe=(i=L.includePopulatedPROAonly)!==null&&i!==void 0?i:!1,He=(a=L.organizationTypeFilters)!==null&&a!==void 0?a:null,qe=(u=L.gender)!==null&&u!==void 0?u:null,We=(c=L.location)!==null&&c!==void 0?c:null;let ct=null;ki(L.sortBy)&&(ct={field:(v=L.sortBy.field)!==null&&v!==void 0?v:null,order:(_=L.sortBy.order)!==null&&_!==void 0?_:null});const yt=(h=L.filterFields)!==null&&h!==void 0?h:null,jt=L.page,dr=L.pageSize;return{client:W,searchTerm:Te,specialtyFilters:me,includePopulatedPROAonly:Oe,organizationTypeFilters:He,gender:qe,location:We,sortBy:ct,filterFields:yt,page:jt,pageSize:dr}}}var Pre=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},LP;class Mre{constructor(){LP.set(this,new NP)}create(t){const r=Pre(this,LP,"f").create(t);return r.client={data_sets:[Lm.Connecthub]},r}}LP=new WeakMap;var Ire=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},DP;class Nre{constructor(){DP.set(this,new NP)}create(t){const r=Ire(this,DP,"f").create(t);return r.client={data_sets:[Lm.Nppes]},r}}DP=new WeakMap;class Lre{create(t){var r,n,i,a;const u=t.data();return{institution:(r=u.institution)!==null&&r!==void 0?r:null,provider:(n=u.provider)!==null&&n!==void 0?n:null,city:(i=u.city)!==null&&i!==void 0?i:null,state:(a=u.state)!==null&&a!==void 0?a:null}}}class Dre{create(t){var r,n,i,a,u,c,v;const _=t.data();return{searchInput:{client:_.client,filters:(r=_.filters)!==null&&r!==void 0?r:null,orderBy:(n=_.orderBy)!==null&&n!==void 0?n:null,paging:{pageNumber:(i=_.page)!==null&&i!==void 0?i:null,pageSize:(a=_.pageSize)!==null&&a!==void 0?a:null},search:(u=_.search)!==null&&u!==void 0?u:null,searchLocation:(c=_.searchLocation)!==null&&c!==void 0?c:null,user:(v=_.user)!==null&&v!==void 0?v:null}}}}var sh=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},HG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},_n=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Hu,zn,wP,UP,xP,FP,$P;class wre extends As{constructor(t,r=new ji){super(),Hu.set(this,void 0),zn.set(this,void 0),wP.set(this,new NP),UP.set(this,new Nre),xP.set(this,new Mre),FP.set(this,new Lre),$P.set(this,new Dre),HG(this,Hu,t,"f"),HG(this,zn,r.getLogger("GraphQLSearchManager"),"f")}searchHealthResources(t){return sh(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();_n(this,zn,"f").verbose("calling searchHealthResources query");const i=yield this.handleQuery(_n(this,Hu,"f").SearchHealthResources(_n(this,$P,"f").create(t)));return _n(this,zn,"f").verbose("searchHealthResources query complete"),i.hasError()?_n(this,zn,"f").error("searchHealthResources query failed",i.error):_n(this,zn,"f").info("successfully called searchHealthResources query"),new ar((r=i.data)===null||r===void 0?void 0:r.searchHealthResources,i.error)})}search(t){return sh(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();_n(this,zn,"f").verbose("calling providerSearch search query");const i=yield this.handleQuery(_n(this,Hu,"f").providerSearch(_n(this,wP,"f").create(t)));return _n(this,zn,"f").verbose("providerSearch search query complete"),i.hasError()?_n(this,zn,"f").error("providerSearch search query failed",i.error):_n(this,zn,"f").info("successfully called providerSearch search query"),new ar((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}searchProviders(t){return sh(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();_n(this,zn,"f").verbose("calling providerSearch searchProviders query");const i=yield this.handleQuery(_n(this,Hu,"f").providerSearch(_n(this,UP,"f").create(t)));return _n(this,zn,"f").verbose("providerSearch searchProviders query complete"),i.hasError()?_n(this,zn,"f").error("providerSearch searchProviders query failed",i.error):_n(this,zn,"f").info("successfully called providerSearch searchProviders query"),new ar((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}searchConnections(t){return sh(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();_n(this,zn,"f").verbose("calling providerSearch searchConnections query");const i=yield this.handleQuery(_n(this,Hu,"f").providerSearch(_n(this,xP,"f").create(t)));return _n(this,zn,"f").verbose("providerSearch searchConnections query complete"),i.hasError()?_n(this,zn,"f").error("providerSearch searchConnections query failed",i.error):_n(this,zn,"f").info("successfully called providerSearch searchConnections query"),new ar((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}requestConnection(t){return sh(this,void 0,void 0,function*(){_n(this,zn,"f").verbose("calling requestConnection mutation");const r=yield this.handleTransaction(_n(this,Hu,"f").requestConnection(_n(this,FP,"f").create(t)));return _n(this,zn,"f").verbose("requestConnection mutation complete"),r.failure()?(_n(this,zn,"f").error("requestConnection mutation failed",r),r.intoFailure()):(_n(this,zn,"f").info("requestConnection request success"),Kt.success(r.data().requestConnection))})}}Hu=new WeakMap,zn=new WeakMap,wP=new WeakMap,UP=new WeakMap,xP=new WeakMap,FP=new WeakMap,$P=new WeakMap;const Ure="http://www.icanbwell.com/consent-category";class xre{create(t){const r=t.data(),n={status:r.status,provision:{type:r.provision}};return ki(r.organizationId)&&(n.organization=[{type:"Organization",reference:`Organization/${r.organizationId}`}]),ki(r.category)&&(n.category=[{coding:[{system:Ure,code:r.category}]}]),{consentInput:n}}}class Fre{create(t){const r=t.data();return{exportId:r.exportId,password:r.password}}}class $re{create(t){var r,n;const i=t.data();return{callbackURL:(r=i.callbackUrl)!==null&&r!==void 0?r:null,includeAttributeMatchingCheck:(n=i.includeAttributeMatchingCheck)!==null&&n!==void 0?n:null}}}class Vre{create(t){return{categoryCode:t.data().category}}}var __=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Yu,VP,YG,qG,KG,WG;class Gre{constructor(){Yu.add(this)}create(t){const r=t.data(),n={resourceType:$C.Person};return __(this,Yu,"m",VP).call(this,"id",r.id,n),__(this,Yu,"m",VP).call(this,"birthDate",r.birthDate,n),__(this,Yu,"m",YG).call(this,r,n),__(this,Yu,"m",KG).call(this,r,n),__(this,Yu,"m",qG).call(this,r,n),__(this,Yu,"m",WG).call(this,r,n),{person:n}}}Yu=new WeakSet,VP=function(t,r,n){ka(r)||(n[t]=r)},YG=function(t,r){let n=!1;const{firstName:i,lastName:a}=t,u={};Fn(i)&&(n=!0,u.given=[i]),Fn(a)&&(n=!0,u.family=a),n&&(r.name=[u])},qG=function(t,r){let n=!1;const{addressUnit:i,addressStreet:a,city:u,stateOrProvidence:c,postageOrZipCode:v}=t,_={};if(Fn(i)||Fn(a)){n=!0;const h=[];Fn(a)&&h.push(a),Fn(i)&&h.push(i),_.line=h}Fn(u)&&(n=!0,_.city=u),Fn(c)&&(n=!0,_.state=c),Fn(v)&&(n=!0,_.postalCode=v),n&&(r.address=[_])},KG=function(t,r){const n=t.gender;ka(n)||(r.gender=n)},WG=function(t,r){const n=[],{homePhone:i,mobilePhone:a,workPhone:u,email:c}=t;Fn(i)&&n.push({system:"phone",use:"home",value:i}),Fn(a)&&n.push({system:"phone",use:"mobile",value:a}),Fn(u)&&n.push({system:"phone",use:"work",value:u}),Fn(c)&&n.push({system:"email",value:c}),n.length!==0&&(r.telecom=n)};var qu=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},QG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},fr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ko,jr,GP,BP,kP,jP,HP;class Bre extends As{constructor(t,r=new ji){super(),ko.set(this,void 0),jr.set(this,void 0),GP.set(this,new xre),BP.set(this,new Gre),kP.set(this,new Vre),jP.set(this,new Fre),HP.set(this,new $re),QG(this,ko,t,"f"),QG(this,jr,r.getLogger("GraphQLUserManager"),"f")}getProfile(){return qu(this,void 0,void 0,function*(){var t;fr(this,jr,"f").verbose("calling getProfile...");const r=yield this.handleQuery(fr(this,ko,"f").getProfile());return fr(this,jr,"f").verbose("getProfile complete"),r.hasError()?fr(this,jr,"f").error("getProfile failed",r.error):fr(this,jr,"f").info("successfully called getProfile"),new ar((t=r.data)===null||t===void 0?void 0:t.userProfile,r.error)})}delete(){return qu(this,void 0,void 0,function*(){fr(this,jr,"f").verbose("calling delete...");const t=yield this.handleTransaction(fr(this,ko,"f").delete());return fr(this,jr,"f").verbose("delete complete"),t.failure()?(fr(this,jr,"f").error("delete failed",t.error),t.intoFailure()):(fr(this,jr,"f").info("successfully called delete"),Kt.success(null))})}updateProfile(t){return qu(this,void 0,void 0,function*(){fr(this,jr,"f").verbose("calling updateUserProfile");const r=yield this.handleTransaction(fr(this,ko,"f").updateUserProfile(fr(this,BP,"f").create(t)));return fr(this,jr,"f").verbose("updateUserProfile complete"),r.failure()?(fr(this,jr,"f").error("updateUserProfile error",r),r.intoFailure()):(fr(this,jr,"f").info("updateUserProfile success"),Kt.success(r.data().updateUserProfile))})}getConsents(t){return qu(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();fr(this,jr,"f").verbose("calling consent search query...");let i;t!==void 0&&(i=fr(this,kP,"f").create(t));const a=yield this.handleQuery(fr(this,ko,"f").searchConsent(i));return fr(this,jr,"f").verbose("consent search query complete"),a.hasError()?fr(this,jr,"f").error("consent search failed",a.error):fr(this,jr,"f").info("successfully called consent search query"),new ar((r=a.data)===null||r===void 0?void 0:r.search,a.error)})}createConsent(t){return qu(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;fr(this,jr,"f").verbose("calling createConsent mutation...");const n=yield this.handleTransaction(fr(this,ko,"f").createConsent(fr(this,GP,"f").create(t)));return fr(this,jr,"f").verbose("createConsent mutation complete"),n.failure()?(fr(this,jr,"f").error("createConsent mutation error",n),n.intoFailure()):(fr(this,jr,"f").info("createConsent mutation success"),Kt.success(n.data().createConsent))})}createDataExportDirectDownloadUrl(t){return qu(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;fr(this,jr,"f").verbose("calling createDataExportDirectDownloadUrl mutation...");const n=yield this.handleTransaction(fr(this,ko,"f").CreateDataExportDirectDownloadUrl(fr(this,jP,"f").create(t)));return fr(this,jr,"f").verbose("createDataExportDirectDownloadUrl mutation complete"),n.failure()?(fr(this,jr,"f").error("createDataExportDirectDownloadUrl mutation error",n),n.intoFailure()):(fr(this,jr,"f").info("createDataExportDirectDownloadUrl mutation success"),Kt.success(n.data().createDataExportDirectDownloadUrl))})}createVerificationUrl(t){return qu(this,void 0,void 0,function*(){fr(this,jr,"f").verbose("calling createVerificationUrl mutation...");const r=yield this.handleTransaction(fr(this,ko,"f").CreateVerificationUrl(fr(this,HP,"f").create(t)));return fr(this,jr,"f").verbose("createVerificationUrl complete"),r.failure()?(fr(this,jr,"f").error("createVerificationUrl error",r),r.intoFailure()):(fr(this,jr,"f").info("createVerificationUrl success"),Kt.success(r.data().createVerificationUrl))})}getVerificationStatus(){return qu(this,void 0,void 0,function*(){fr(this,jr,"f").verbose("calling getVerificationStatus query...");const t=yield this.handleTransaction(fr(this,ko,"f").VerificationStatus());return fr(this,jr,"f").verbose("getVerificationStatus complete"),t.failure()?(fr(this,jr,"f").error("getVerificationStatus error",t),t.intoFailure()):(fr(this,jr,"f").info("getVerificationStatus success"),Kt.success(t.data().verificationStatus))})}}ko=new WeakMap,jr=new WeakMap,GP=new WeakMap,BP=new WeakMap,kP=new WeakMap,jP=new WeakMap,HP=new WeakMap;var zG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},gs=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},tT,uo;class kre{constructor(t,r,n){tT.set(this,void 0),uo.set(this,void 0),zG(this,tT,r.getLogger("GraphQLAPIProvider"),"f"),zG(this,uo,t,"f"),gs(this,tT,"f").verbose("initializing GraphQLClient"),this.activity=new dre(gs(this,uo,"f"),r),this.connection=new pre(gs(this,uo,"f"),r),this.device=new vre(gs(this,uo,"f"),r),this.event=new Are(gs(this,uo,"f"),r),this.health=new Ore(gs(this,uo,"f"),r),this.healthSpace=new Rre(gs(this,uo,"f"),r),this.user=new Bre(gs(this,uo,"f"),r),this.search=new wre(gs(this,uo,"f"),r),this.questionnaire=new Cre(gs(this,uo,"f"),r),this.language=new sre(n)}}tT=new WeakMap,uo=new WeakMap;class jre{createApiProvider(t,r,n){const{sdk:i,client:a}=NG(t.graphQL.apiUrl,r,t.bwellConfig.language);return new kre(i,n,a)}}var d_=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},XG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},dn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Zs,Pn;class Hre extends As{constructor(t,r=new ji){super(),Zs.set(this,void 0),Pn.set(this,void 0),XG(this,Zs,t,"f"),XG(this,Pn,r.getLogger("GraphQLIdentityManager"),"f")}initialize(t){return d_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("executing initialize query...",{clientKey:t});const r=yield this.handleTransaction(dn(this,Zs,"f").initialize({clientKey:t}));return dn(this,Pn,"f").verbose("initialize query complete",r),r.failure()?(dn(this,Pn,"f").error("initialize failed.",r),r.intoFailure()):(dn(this,Pn,"f").info("successfully called initialize"),Kt.success(r.data().initSdk))})}authenticateWithOauth(t){return d_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("exectuting oauth authenticate query...");const r=yield this.handleTransaction(dn(this,Zs,"f").authenticate({},{Authorization:t.jweToken,ClientKey:t.clientKey}));if(dn(this,Pn,"f").verbose("oauth authenticate query complete",r),r.failure())return dn(this,Pn,"f").error("oauth authenticate failed",r),r.intoFailure();dn(this,Pn,"f").info("oauth authenticate success");const n=r.data(),i={accessToken:n.getToken.accessToken.jwtToken,idToken:n.getToken.idToken.jwtToken,refreshToken:n.getToken.refreshToken.token};return Kt.success(i)})}authenticateWithUsernamePassword(t){return d_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("exectuting username/password authenticate query...");const r=yield this.handleTransaction(dn(this,Zs,"f").login({email:t.email,password:t.password},{ClientKey:t.clientKey}));if(dn(this,Pn,"f").verbose("username/password authenticate query complete",r),r.failure())return dn(this,Pn,"f").error("username/password authenticate failed",r),r.intoFailure();dn(this,Pn,"f").info("username/password authenticate success");const n=r.data(),i={accessToken:n.login.accessToken.jwtToken,idToken:n.login.idToken.jwtToken,refreshToken:n.login.refreshToken.token};return Kt.success(i)})}authenticateWithAuthCode(t){return d_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("executing authenticateWithAuthCode query...");const r=yield this.handleTransaction(dn(this,Zs,"f").ExchangeAuthCode({authCode:t.authCode}));if(dn(this,Pn,"f").verbose("authenticateWithAuthCode query complete",r),r.failure())return dn(this,Pn,"f").error("authenticateWithAuthCode failed",r),r.intoFailure();dn(this,Pn,"f").info("authenticateWithAuthCode successful");const n=r.data(),i={accessToken:n.exchangeAuthCode.accessToken.jwtToken,idToken:n.exchangeAuthCode.idToken.jwtToken,refreshToken:n.exchangeAuthCode.refreshToken.token};return Kt.success(i)})}refreshAccessToken(t){return d_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("executing refreshAccessToken query...");const r=yield this.handleTransaction(dn(this,Zs,"f").refreshTokens({},{refresh_token:t.refreshToken,clientkey:t.clientKey}));return dn(this,Pn,"f").verbose("refreshAccessToken query complete",r),r.failure()?(dn(this,Pn,"f").error("refreshAccessToken failed",r),r.intoFailure()):(dn(this,Pn,"f").info("refreshAccessToken successful"),Kt.success(r.data().refresh))})}createGuestAccessToken(t){return d_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("executing createGuestAccessToken mutation...",t);const r=yield this.handleTransaction(dn(this,Zs,"f").createGuestAccessToken(t));if(dn(this,Pn,"f").verbose("createGuestAccessToken mutation complete",r),r.failure())return dn(this,Pn,"f").error("createGuestAccessToken failed",r),r.intoFailure();dn(this,Pn,"f").info("createGuestAccessToken successful");const n=r.data();return Kt.success(n.createGuestAccessToken)})}}Zs=new WeakMap,Pn=new WeakMap;class Yre{createIdentityManager(t,r){const{sdk:n}=NG(t.graphQL.unauthApiUrl);return new Hre(n,r)}}function YP(e,t){const r=Object.keys(e);return r.length===t.length&&r.every(n=>t.includes(n))}function JG(e){return"token"in e&&YP(e,["token"])}function ZG(e){return"email"in e&&"password"in e&&YP(e,["email","password"])}function eB(e){return"authCode"in e&&YP(e,["authCode"])}var qre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},qP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},uh=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},rT,p_,nT;class Kre{constructor(t,r,n=new ji){rT.set(this,void 0),p_.set(this,void 0),nT.set(this,void 0),qP(this,rT,r,"f"),qP(this,nT,t,"f"),qP(this,p_,n.getLogger("OAuthStrategy"),"f")}authenticate(t){return qre(this,void 0,void 0,function*(){if(!JG(t))return uh(this,p_,"f").error("Incorrect credentials type provided to OAuthStrategy"),Kt.failure(new MC("Expected OAuthCredentials",t));uh(this,p_,"f").verbose("authenticating via OAuth strategy...");const r=yield uh(this,rT,"f").authenticateWithOauth({jweToken:t.token,clientKey:uh(this,nT,"f").context.clientKey});return uh(this,p_,"f").verbose("finished OAuth authentication"),r})}}rT=new WeakMap,p_=new WeakMap,nT=new WeakMap;var Wre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},KP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ch=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},iT,h_,aT;class Qre{constructor(t,r,n=new ji){iT.set(this,void 0),h_.set(this,void 0),aT.set(this,void 0),KP(this,iT,r,"f"),KP(this,aT,t,"f"),KP(this,h_,n.getLogger("AuthCodeStrategy"),"f")}authenticate(t){return Wre(this,void 0,void 0,function*(){if(!eB(t))return ch(this,h_,"f").error("Incorrect credentials type provided to AuthCodeStrategy"),Kt.failure(new MC("Expected AuthCodeCredentials",t));ch(this,h_,"f").verbose("authenticating via AuthCode strategy...");const r=yield ch(this,iT,"f").authenticateWithAuthCode({authCode:t.authCode,clientKey:ch(this,aT,"f").context.clientKey});return ch(this,h_,"f").verbose("finished AuthCode authentication"),r})}}iT=new WeakMap,h_=new WeakMap,aT=new WeakMap;var zre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},WP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},lh=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},oT,S_,sT;class Xre{constructor(t,r,n=new ji){oT.set(this,void 0),S_.set(this,void 0),sT.set(this,void 0),WP(this,oT,r,"f"),WP(this,sT,t,"f"),WP(this,S_,n.getLogger("UsernamePasswordStrategy"),"f")}authenticate(t){return zre(this,void 0,void 0,function*(){if(!ZG(t))return lh(this,S_,"f").error("Invalid credentials type provided to UsernamePasswordStrategy. Please provide username and password."),Kt.failure(new MC("Expected UserPassCredentials",t));lh(this,S_,"f").verbose("authenticating via UsernamePassword strategy...");const r=yield lh(this,oT,"f").authenticateWithUsernamePassword({clientKey:lh(this,sT,"f").context.clientKey,email:t.email,password:t.password});return lh(this,S_,"f").verbose("finished OAuth authentication"),r})}}oT=new WeakMap,S_=new WeakMap,sT=new WeakMap;class Jre{createAuthStrategy(t,r,n,i=new ji){if(ZG(n))return new Xre(t,r,i);if(JG(n))return new Kre(t,r,i);if(eB(n))return new Qre(t,r,i);throw new Error("Invalid credentials type provided; expected UserPassCredentials, OauthCredentials or AuthCodeCredentials.")}}var Zre=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{},ul="1.9.0",tB=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function ene(e){var t=new Set([e]),r=new Set,n=e.match(tB);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(v){return v===e};function a(c){return r.add(c),!1}function u(c){return t.add(c),!0}return function(v){if(t.has(v))return!0;if(r.has(v))return!1;var _=v.match(tB);if(!_)return a(v);var h={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return h.prerelease!=null||i.major!==h.major?a(v):i.major===0?i.minor===h.minor&&i.patch<=h.patch?u(v):a(v):i.minor<=h.minor?u(v):a(v)}}var tne=ene(ul),rne=ul.split(".")[0],fh=Symbol.for("opentelemetry.js.api."+rne),_h=Zre;function dh(e,t,r,n){var i;n===void 0&&(n=!1);var a=_h[fh]=(i=_h[fh])!==null&&i!==void 0?i:{version:ul};if(!n&&a[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(a.version!==ul){var u=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+ul);return r.error(u.stack||u.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+ul+"."),!0}function cl(e){var t,r,n=(t=_h[fh])===null||t===void 0?void 0:t.version;if(!(!n||!tne(n)))return(r=_h[fh])===null||r===void 0?void 0:r[e]}function ph(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+ul+".");var r=_h[fh];r&&delete r[e]}function uT(e){return Symbol.for(e)}var nne=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var a=new e(r._currentContext);return a._currentContext.set(n,i),a},r.deleteValue=function(n){var i=new e(r._currentContext);return i._currentContext.delete(n),i}}return e}(),E_=new nne,ine=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ane=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},one=function(){function e(){}return e.prototype.active=function(){return E_},e.prototype.with=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return r.call.apply(r,ane([n],ine(i),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),sne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},une=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},cne=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("verbose",this._namespace,t)},e}();function hh(e,t,r){var n=cl("diag");if(!!n)return r.unshift(t),n[e].apply(n,une([],sne(r),!1))}var vn;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(vn||(vn={}));function lne(e,t){e<vn.NONE?e=vn.NONE:e>vn.ALL&&(e=vn.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",vn.ERROR),warn:r("warn",vn.WARN),info:r("info",vn.INFO),debug:r("debug",vn.DEBUG),verbose:r("verbose",vn.VERBOSE)}}var fne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},_ne=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},dne="diag",ys=function(){function e(){function t(i){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=cl("diag");if(!!c)return c[i].apply(c,_ne([],fne(a),!1))}}var r=this,n=function(i,a){var u,c,v;if(a===void 0&&(a={logLevel:vn.INFO}),i===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((u=_.stack)!==null&&u!==void 0?u:_.message),!1}typeof a=="number"&&(a={logLevel:a});var h=cl("diag"),L=lne((c=a.logLevel)!==null&&c!==void 0?c:vn.INFO,i);if(h&&!a.suppressOverrideMessage){var W=(v=new Error().stack)!==null&&v!==void 0?v:"<failed to generate stacktrace>";h.warn("Current logger will be overwritten from "+W),L.warn("Current logger will overwrite one already registered from "+W)}return dh("diag",L,r,!0)};r.setLogger=n,r.disable=function(){ph(dne,r)},r.createComponentLogger=function(i){return new cne(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),pne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},hne=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},QP="context",Sne=new one,cT=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return dh(QP,t,ys.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var i,a=[],u=3;u<arguments.length;u++)a[u-3]=arguments[u];return(i=this._getContextManager()).with.apply(i,hne([t,r,n],pne(a),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return cl(QP)||Sne},e.prototype.disable=function(){this._getContextManager().disable(),ph(QP,ys.instance())},e}(),Rs;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Rs||(Rs={}));var rB="0000000000000000",nB="00000000000000000000000000000000",iB={traceId:nB,spanId:rB,traceFlags:Rs.NONE},Sh=function(){function e(t){t===void 0&&(t=iB),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,r){},e}(),zP=uT("OpenTelemetry Context Key SPAN");function XP(e){return e.getValue(zP)||void 0}function Ene(){return XP(cT.getInstance().active())}function JP(e,t){return e.setValue(zP,t)}function vne(e){return e.deleteValue(zP)}function mne(e,t){return JP(e,new Sh(t))}function aB(e){var t;return(t=XP(e))===null||t===void 0?void 0:t.spanContext()}var Tne=/^([0-9a-f]{32})$/i,Ane=/^[0-9a-f]{16}$/i;function oB(e){return Tne.test(e)&&e!==nB}function gne(e){return Ane.test(e)&&e!==rB}function v_(e){return oB(e.traceId)&&gne(e.spanId)}function yne(e){return new Sh(e)}var ZP=cT.getInstance(),sB=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=ZP.active());var i=Boolean(r?.root);if(i)return new Sh;var a=n&&aB(n);return Rne(a)&&v_(a)?new Sh(a):new Sh},e.prototype.startActiveSpan=function(t,r,n,i){var a,u,c;if(!(arguments.length<2)){arguments.length===2?c=r:arguments.length===3?(a=r,c=n):(a=r,u=n,c=i);var v=u??ZP.active(),_=this.startSpan(t,a,v),h=JP(v,_);return ZP.with(h,c,void 0,_)}},e}();function Rne(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var One=new sB,bne=function(){function e(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):One},e}(),Cne=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new sB},e}(),Pne=new Cne,uB=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var i;return(i=this.getDelegateTracer(t,r,n))!==null&&i!==void 0?i:new bne(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Pne},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,r,n)},e}(),eM="trace",Mne=function(){function e(){this._proxyTracerProvider=new uB,this.wrapSpanContext=yne,this.isSpanContextValid=v_,this.deleteSpan=vne,this.getSpan=XP,this.getActiveSpan=Ene,this.getSpanContext=aB,this.setSpan=JP,this.setSpanContext=mne}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=dh(eM,this._proxyTracerProvider,ys.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return cl(eM)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){ph(eM,ys.instance()),this._proxyTracerProvider=new uB},e}(),ta=Mne.getInstance(),tM=uT("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Ine(e){return e.setValue(tM,!0)}function RUe(e){return e.deleteValue(tM)}function Nne(e){return e.getValue(tM)===!0}var rM="[_0-9a-z-*/]",Lne="[a-z]"+rM+"{0,255}",Dne="[a-z0-9]"+rM+"{0,240}@[a-z]"+rM+"{0,13}",wne=new RegExp("^(?:"+Lne+"|"+Dne+")$"),Une=/^[ -~]{0,255}[!-~]$/,xne=/,|=/;function Fne(e){return wne.test(e)}function $ne(e){return Une.test(e)&&!xne.test(e)}var cB=32,Vne=512,lB=",",fB="=",Gne=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+fB+t.get(n)),r},[]).join(lB)},e.prototype._parse=function(t){t.length>Vne||(this._internalState=t.split(lB).reverse().reduce(function(r,n){var i=n.trim(),a=i.indexOf(fB);if(a!==-1){var u=i.slice(0,a),c=i.slice(a+1,n.length);Fne(u)&&$ne(c)&&r.set(u,c)}return r},new Map),this._internalState.size>cB&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,cB))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),nM="traceparent",iM="tracestate",Bne="00",kne="(?!ff)[\\da-f]{2}",jne="(?![0]{32})[\\da-f]{32}",Hne="(?![0]{16})[\\da-f]{16}",Yne="[\\da-f]{2}",qne=new RegExp("^\\s?("+kne+")-("+jne+")-("+Hne+")-("+Yne+")(-.*)?\\s?$");function Kne(e){var t=qne.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Wne=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=ta.getSpanContext(t);if(!(!i||Nne(t)||!v_(i))){var a=Bne+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Rs.NONE).toString(16);n.set(r,nM,a),i.traceState&&n.set(r,iM,i.traceState.serialize())}},e.prototype.extract=function(t,r,n){var i=n.get(r,nM);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var u=Kne(a);if(!u)return t;u.isRemote=!0;var c=n.get(r,iM);if(c){var v=Array.isArray(c)?c.join(","):c;u.traceState=new Gne(typeof v=="string"?v:void 0)}return ta.setSpanContext(t,u)},e.prototype.fields=function(){return[nM,iM]},e}(),Qne=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{},ll="1.6.0",_B=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function zne(e){var t=new Set([e]),r=new Set,n=e.match(_B);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(v){return v===e};function a(c){return r.add(c),!1}function u(c){return t.add(c),!0}return function(v){if(t.has(v))return!0;if(r.has(v))return!1;var _=v.match(_B);if(!_)return a(v);var h={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return h.prerelease!=null||i.major!==h.major?a(v):i.major===0?i.minor===h.minor&&i.patch<=h.patch?u(v):a(v):i.minor<=h.minor?u(v):a(v)}}var Xne=zne(ll),Jne=ll.split(".")[0],Eh=Symbol.for("opentelemetry.js.api."+Jne),vh=Qne;function Zne(e,t,r,n){var i;n===void 0&&(n=!1);var a=vh[Eh]=(i=vh[Eh])!==null&&i!==void 0?i:{version:ll};if(!n&&a[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(a.version!==ll){var u=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+ll);return r.error(u.stack||u.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+ll+"."),!0}function aM(e){var t,r,n=(t=vh[Eh])===null||t===void 0?void 0:t.version;if(!(!n||!Xne(n)))return(r=vh[Eh])===null||r===void 0?void 0:r[e]}function eie(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+ll+".");var r=vh[Eh];r&&delete r[e]}var tie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},rie=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},nie=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("verbose",this._namespace,t)},e}();function mh(e,t,r){var n=aM("diag");if(!!n)return r.unshift(t),n[e].apply(n,rie([],tie(r),!1))}var ci;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(ci||(ci={}));function iie(e,t){e<ci.NONE?e=ci.NONE:e>ci.ALL&&(e=ci.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",ci.ERROR),warn:r("warn",ci.WARN),info:r("info",ci.INFO),debug:r("debug",ci.DEBUG),verbose:r("verbose",ci.VERBOSE)}}var aie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},oie=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},sie="diag",dB=function(){function e(){function t(i){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=aM("diag");if(!!c)return c[i].apply(c,oie([],aie(a),!1))}}var r=this,n=function(i,a){var u,c,v;if(a===void 0&&(a={logLevel:ci.INFO}),i===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((u=_.stack)!==null&&u!==void 0?u:_.message),!1}typeof a=="number"&&(a={logLevel:a});var h=aM("diag"),L=iie((c=a.logLevel)!==null&&c!==void 0?c:ci.INFO,i);if(h&&!a.suppressOverrideMessage){var W=(v=new Error().stack)!==null&&v!==void 0?v:"<failed to generate stacktrace>";h.warn("Current logger will be overwritten from "+W),L.warn("Current logger will overwrite one already registered from "+W)}return Zne("diag",L,r,!0)};r.setLogger=n,r.disable=function(){eie(sie,r)},r.createComponentLogger=function(i){return new nie(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),Ku=dB.instance(),uie=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),cie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},lie=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},fie=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new uie}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,lie([this._that],cie(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),m_;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(m_||(m_={}));var oM;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(oM||(oM={}));var _ie=",",die=["OTEL_SDK_DISABLED"];function pie(e){return die.indexOf(e)>-1}var hie=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Sie(e){return hie.indexOf(e)>-1}var Eie=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function vie(e){return Eie.indexOf(e)>-1}var sM=1/0,uM=128,mie=128,Tie=128,pB={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:ci.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:sM,OTEL_ATTRIBUTE_COUNT_LIMIT:uM,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:sM,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:uM,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:sM,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:uM,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:mie,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Tie,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:oM.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function Aie(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function gie(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function yie(e,t,r,n){n===void 0&&(n=_ie);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var Rie={ALL:ci.ALL,VERBOSE:ci.VERBOSE,DEBUG:ci.DEBUG,INFO:ci.INFO,WARN:ci.WARN,ERROR:ci.ERROR,NONE:ci.NONE};function Oie(e,t,r){var n=r[e];if(typeof n=="string"){var i=Rie[n.toUpperCase()];i!=null&&(t[e]=i)}}function bie(e){var t={};for(var r in pB){var n=r;switch(n){case"OTEL_LOG_LEVEL":Oie(n,t,e);break;default:if(pie(n))Aie(n,t,e);else if(Sie(n))gie(n,t,e);else if(vie(n))yie(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var Cie=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{};function eu(){var e=bie(Cie);return Object.assign({},pB,e)}function OUe(){return parseEnvironment(_globalThis)}var Pie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},hB=1e4,Mie=5,Iie=1e3,Nie=5e3,Lie=1.5;function Die(e){e===void 0&&(e={});var t={};return Object.entries(e).forEach(function(r){var n=Pie(r,2),i=n[0],a=n[1];typeof a<"u"?t[i]=String(a):Ku.warn('Header "'+i+'" has invalid value ('+a+") and will be ignored")}),t}function wie(e,t){return e.endsWith("/")||(e=e+"/"),e+t}function Uie(e){try{var t=new URL(e);return t.pathname===""&&(t.pathname=t.pathname+"/"),t.toString()}catch{return Ku.warn("Could not parse export URL: '"+e+"'"),e}}function xie(e){return typeof e=="number"?e<=0?SB(e,hB):e:Fie()}function Fie(){var e,t=Number((e=eu().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&e!==void 0?e:eu().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?SB(t,hB):t}function SB(e,t){return Ku.warn("Timeout must be greater than 0",e),t}function $ie(e){var t=[429,502,503,504];return t.includes(e)}function Vie(e){if(e==null)return-1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;var r=new Date(e).getTime()-Date.now();return r>=0?r:0}var Gie=function(){function e(t){t===void 0&&(t={}),this._sendingPromises=[],this.url=this.getDefaultUrl(t),typeof t.hostname=="string"&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new fie(this._shutdown,this),this._concurrencyLimit=typeof t.concurrencyLimit=="number"?t.concurrencyLimit:30,this.timeoutMillis=xie(t.timeoutMillis),this.onInit(t)}return e.prototype.export=function(t,r){if(this._shutdownOnce.isCalled){r({code:m_.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){r({code:m_.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(t).then(function(){r({code:m_.SUCCESS})}).catch(function(n){r({code:m_.FAILED,error:n})})},e.prototype._export=function(t){var r=this;return new Promise(function(n,i){try{Ku.debug("items to be sent",t),r.send(t,n,i)}catch(a){i(a)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return Ku.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),Bie=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Th=function(e){Bie(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.name="OTLPExporterError",a.data=i,a.code=n,a}return t}(Error),lT=function(){return lT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lT.apply(this,arguments)},kie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function jie(e,t,r,n,i){if(navigator.sendBeacon(t,new Blob([e],r)))Ku.debug("sendBeacon - can send",e),n();else{var a=new Th("sendBeacon - cannot send "+e);i(a)}}function Hie(e,t,r,n,i,a){var u,c,v=!1,_=setTimeout(function(){if(clearTimeout(u),v=!0,c.readyState===XMLHttpRequest.DONE){var L=new Th("Request Timeout");a(L)}else c.abort()},n),h=function(L,W){L===void 0&&(L=Mie),W===void 0&&(W=Iie),c=new XMLHttpRequest,c.open("POST",t);var Te={Accept:"application/json","Content-Type":"application/json"};Object.entries(lT(lT({},Te),r)).forEach(function(me){var Oe=kie(me,2),He=Oe[0],qe=Oe[1];c.setRequestHeader(He,qe)}),c.send(e),c.onreadystatechange=function(){if(c.readyState===XMLHttpRequest.DONE&&v===!1)if(c.status>=200&&c.status<=299)Ku.debug("xhr success",e),i(),clearTimeout(_),clearTimeout(u);else if(c.status&&$ie(c.status)&&L>0){var me=void 0;W=Lie*W,c.getResponseHeader("Retry-After")?me=Vie(c.getResponseHeader("Retry-After")):me=Math.round(Math.random()*(Nie-W)+W),u=setTimeout(function(){h(L-1,W)},me)}else{var Oe=new Th("Failed to export with XHR (status: "+c.status+")",c.status);a(Oe),clearTimeout(_),clearTimeout(u)}},c.onabort=function(){if(v){var me=new Th("Request Timeout");a(me)}clearTimeout(_),clearTimeout(u)},c.onerror=function(){if(v){var me=new Th("Request Timeout");a(me)}clearTimeout(_),clearTimeout(u)}};h()}var Yie=Symbol("BaggageEntryMetadata"),qie=dB.instance();function bUe(e){return e===void 0&&(e={}),new BaggageImpl(new Map(Object.entries(e)))}function Kie(e){return typeof e!="string"&&(qie.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Yie,toString:function(){return e}}}var Wie="=",EB=";",Qie=",",CUe="baggage",PUe=180,MUe=4096,IUe=8192,zie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function NUe(e){return e.reduce(function(t,r){var n=""+t+(t!==""?BAGGAGE_ITEMS_SEPARATOR:"")+r;return n.length>BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}function LUe(e){return e.getAllEntries().map(function(t){var r=zie(t,2),n=r[0],i=r[1],a=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),a})}function Xie(e){var t=e.split(EB);if(!(t.length<=0)){var r=t.shift();if(!!r){var n=r.indexOf(Wie);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim()),u;return t.length>0&&(u=Kie(t.join(EB))),{key:i,value:a,metadata:u}}}}}function vB(e){return typeof e!="string"||e.length===0?{}:e.split(Qie).map(function(t){return Xie(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var Jie=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),fT=function(){return fT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fT.apply(this,arguments)},Zie=function(e){Jie(t,e);function t(r,n,i){r===void 0&&(r={});var a=e.call(this,r)||this;return a._useXHR=!1,a._serializer=n,a._contentType=i,a._useXHR=!!r.headers||typeof navigator.sendBeacon!="function",a._useXHR?a._headers=Object.assign({},Die(r.headers),vB(eu().OTEL_EXPORTER_OTLP_HEADERS)):a._headers={},a}return t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(r,n,i){var a=this,u;if(this._shutdownOnce.isCalled){Ku.debug("Shutdown already started. Cannot send objects");return}var c=(u=this._serializer.serializeRequest(r))!==null&&u!==void 0?u:new Uint8Array,v=new Promise(function(h,L){a._useXHR?Hie(c,a.url,fT(fT({},a._headers),{"Content-Type":a._contentType}),a.timeoutMillis,h,L):jie(c,a.url,{type:a._contentType},h,L)}).then(n,i);this._sendingPromises.push(v);var _=function(){var h=a._sendingPromises.indexOf(v);a._sendingPromises.splice(h,1)};v.then(_,_)},t}(Gie),eae=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function cM(e){return{name:e.name,version:e.version}}function fl(e){return Object.keys(e).map(function(t){return lM(t,e[t])})}function lM(e,t){return{key:e,value:fM(t)}}function fM(e){var t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(fM)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(function(r){var n=eae(r,2),i=n[0],a=n[1];return lM(i,a)})}}:{}}function tae(e,t){var r,n=e.spanContext(),i=e.status;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:(r=n.traceState)===null||r===void 0?void 0:r.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:fl(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(a){return nae(a,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:i.code,message:i.message},links:e.links.map(function(a){return rae(a,t)}),droppedLinksCount:e.droppedLinksCount}}function rae(e,t){var r;return{attributes:e.attributes?fl(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(r=e.context.traceState)===null||r===void 0?void 0:r.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function nae(e,t){return{attributes:e.attributes?fl(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}var mB=9,iae=6,aae=Math.pow(10,iae),_T=Math.pow(10,mB);function dT(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*aae);return[r,n]}function TB(){var e=performance.timeOrigin;if(typeof e!="number"){var t=performance;e=t.timing&&t.timing.fetchStart}return e}function oae(e){var t=dT(TB()),r=dT(typeof e=="number"?e:performance.now());return uae(t,r)}function DUe(e){if(AB(e))return e;if(typeof e=="number")return e<TB()?oae(e):dT(e);if(e instanceof Date)return dT(e.getTime());throw TypeError("Invalid input type")}function wUe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=_T),[r,n]}function UUe(e){var t=mB,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function sae(e){return e[0]*_T+e[1]}function xUe(e){return e[0]*1e3+e[1]/1e6}function FUe(e){return e[0]*1e6+e[1]/1e3}function AB(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function $Ue(e){return AB(e)||typeof e=="number"||e instanceof Date}function uae(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=_T&&(r[1]-=_T,r[0]+=1),r}function gB(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function _M(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var i=gB(e.charCodeAt(n)),a=gB(e.charCodeAt(n+1));t[r++]=i<<4|a}return t}function yB(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function cae(e){var t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function RB(e){var t=yB(e);return cae(t)}function lae(e){var t=yB(e);return t.toString()}var fae=typeof BigInt<"u"?lae:sae;function OB(e){return e}function bB(e){if(e!==void 0)return _M(e)}var _ae={encodeHrTime:RB,encodeSpanContext:_M,encodeOptionalSpanContext:bB};function dM(e){var t,r;if(e===void 0)return _ae;var n=(t=e.useLongBits)!==null&&t!==void 0?t:!0,i=(r=e.useHex)!==null&&r!==void 0?r:!1;return{encodeHrTime:n?RB:fae,encodeSpanContext:i?OB:_M,encodeOptionalSpanContext:i?OB:bB}}function pM(e){return{attributes:fl(e.attributes),droppedAttributesCount:0}}var dae=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},pae=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function hae(e,t){var r=dM(t);return{resourceSpans:Eae(e,r)}}function Sae(e){var t,r,n=new Map;try{for(var i=dae(e),a=i.next();!a.done;a=i.next()){var u=a.value,c=n.get(u.resource);c||(c=new Map,n.set(u.resource,c));var v=u.instrumentationLibrary.name+"@"+(u.instrumentationLibrary.version||"")+":"+(u.instrumentationLibrary.schemaUrl||""),_=c.get(v);_||(_=[],c.set(v,_)),_.push(u)}}catch(h){t={error:h}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function Eae(e,t){for(var r=Sae(e),n=[],i=r.entries(),a=i.next();!a.done;){for(var u=pae(a.value,2),c=u[0],v=u[1],_=[],h=v.values(),L=h.next();!L.done;){var W=L.value;if(W.length>0){var Te=W.map(function(Oe){return tae(Oe,t)});_.push({scope:cM(W[0].instrumentationLibrary),spans:Te,schemaUrl:W[0].instrumentationLibrary.schemaUrl})}L=h.next()}var me={resource:pM(c),scopeSpans:_,schemaUrl:void 0};n.push(me),a=i.next()}return n}var pT;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(pT||(pT={}));var T_;(function(e){e[e.HISTOGRAM=0]="HISTOGRAM",e[e.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",e[e.GAUGE=2]="GAUGE",e[e.SUM=3]="SUM"})(T_||(T_={}));var hT;(function(e){e[e.DELTA=0]="DELTA",e[e.CUMULATIVE=1]="CUMULATIVE"})(hT||(hT={}));function vae(e,t){var r=dM(t);return{resource:pM(e.resource),schemaUrl:void 0,scopeMetrics:mae(e.scopeMetrics,r)}}function mae(e,t){return Array.from(e.map(function(r){return{scope:cM(r.scope),metrics:r.metrics.map(function(n){return Tae(n,t)}),schemaUrl:r.scope.schemaUrl}}))}function Tae(e,t){var r={name:e.descriptor.name,description:e.descriptor.description,unit:e.descriptor.unit},n=Rae(e.aggregationTemporality);switch(e.dataPointType){case T_.SUM:r.sum={aggregationTemporality:n,isMonotonic:e.isMonotonic,dataPoints:CB(e,t)};break;case T_.GAUGE:r.gauge={dataPoints:CB(e,t)};break;case T_.HISTOGRAM:r.histogram={aggregationTemporality:n,dataPoints:gae(e,t)};break;case T_.EXPONENTIAL_HISTOGRAM:r.exponentialHistogram={aggregationTemporality:n,dataPoints:yae(e,t)};break}return r}function Aae(e,t,r){var n={attributes:fl(e.attributes),startTimeUnixNano:r.encodeHrTime(e.startTime),timeUnixNano:r.encodeHrTime(e.endTime)};switch(t){case pT.INT:n.asInt=e.value;break;case pT.DOUBLE:n.asDouble=e.value;break}return n}function CB(e,t){return e.dataPoints.map(function(r){return Aae(r,e.descriptor.valueType,t)})}function gae(e,t){return e.dataPoints.map(function(r){var n=r.value;return{attributes:fl(r.attributes),bucketCounts:n.buckets.counts,explicitBounds:n.buckets.boundaries,count:n.count,sum:n.sum,min:n.min,max:n.max,startTimeUnixNano:t.encodeHrTime(r.startTime),timeUnixNano:t.encodeHrTime(r.endTime)}})}function yae(e,t){return e.dataPoints.map(function(r){var n=r.value;return{attributes:fl(r.attributes),count:n.count,min:n.min,max:n.max,sum:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},scale:n.scale,zeroCount:n.zeroCount,startTimeUnixNano:t.encodeHrTime(r.startTime),timeUnixNano:t.encodeHrTime(r.endTime)}})}function Rae(e){switch(e){case hT.DELTA:return 1;case hT.CUMULATIVE:return 2}}function Oae(e,t){return{resourceMetrics:e.map(function(r){return vae(r,t)})}}var bae=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},PB=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function Cae(e,t){var r=dM(t);return{resourceLogs:Mae(e,r)}}function Pae(e){var t,r,n=new Map;try{for(var i=bae(e),a=i.next();!a.done;a=i.next()){var u=a.value,c=u.resource,v=u.instrumentationScope,_=v.name,h=v.version,L=h===void 0?"":h,W=v.schemaUrl,Te=W===void 0?"":W,me=n.get(c);me||(me=new Map,n.set(c,me));var Oe=_+"@"+L+":"+Te,He=me.get(Oe);He||(He=[],me.set(Oe,He)),He.push(u)}}catch(qe){t={error:qe}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function Mae(e,t){var r=Pae(e);return Array.from(r,function(n){var i=PB(n,2),a=i[0],u=i[1];return{resource:pM(a),scopeLogs:Array.from(u,function(c){var v=PB(c,2),_=v[1];return{scope:cM(_[0].instrumentationScope),logRecords:_.map(function(h){return Iae(h,t)}),schemaUrl:_[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function Iae(e,t){var r,n,i;return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:e.severityNumber,severityText:e.severityText,body:fM(e.body),attributes:Nae(e.attributes),droppedAttributesCount:e.droppedAttributesCount,flags:(r=e.spanContext)===null||r===void 0?void 0:r.traceFlags,traceId:t.encodeOptionalSpanContext((n=e.spanContext)===null||n===void 0?void 0:n.traceId),spanId:t.encodeOptionalSpanContext((i=e.spanContext)===null||i===void 0?void 0:i.spanId)}}function VUe(e){return e}function Nae(e){return Object.keys(e).map(function(t){return lM(t,e[t])})}var GUe={serializeRequest:function(e){var t=hae(e,{useHex:!0,useLongBits:!1}),r=new TextEncoder;return r.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},BUe={serializeRequest:function(e){var t=Oae(e,{useLongBits:!1}),r=new TextEncoder;return r.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},Lae={serializeRequest:function(e){var t=Cae(e,{useHex:!0,useLongBits:!1}),r=new TextEncoder;return r.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},MB="v1/logs",Dae="http://localhost:4318/"+MB;function wae(e){return typeof e.url=="string"?e.url:eu().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length>0?Uie(eu().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT):eu().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?wie(eu().OTEL_EXPORTER_OTLP_ENDPOINT,MB):Dae}var Uae=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ah=function(){return Ah=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ah.apply(this,arguments)},xae=function(e){Uae(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,Ah({timeoutMillis:eu().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT},r),Lae,"application/json")||this;return n._headers=Ah(Ah({},n._headers),vB(eu().OTEL_EXPORTER_OTLP_LOGS_HEADERS)),n}return t.prototype.getDefaultUrl=function(r){return wae(r)},t}(Zie),_r=ys.instance();function _l(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Fae="cloud.provider",$ae="cloud.account.id",Vae="cloud.region",Gae="cloud.availability_zone",Bae="cloud.platform",kae="aws.ecs.container.arn",jae="aws.ecs.cluster.arn",Hae="aws.ecs.launchtype",Yae="aws.ecs.task.arn",qae="aws.ecs.task.family",Kae="aws.ecs.task.revision",Wae="aws.eks.cluster.arn",Qae="aws.log.group.names",zae="aws.log.group.arns",Xae="aws.log.stream.names",Jae="aws.log.stream.arns",Zae="container.name",eoe="container.id",toe="container.runtime",roe="container.image.name",noe="container.image.tag",ioe="deployment.environment",aoe="device.id",ooe="device.model.identifier",soe="device.model.name",uoe="faas.name",coe="faas.id",loe="faas.version",foe="faas.instance",_oe="faas.max_memory",doe="host.id",poe="host.name",hoe="host.type",Soe="host.arch",Eoe="host.image.name",voe="host.image.id",moe="host.image.version",Toe="k8s.cluster.name",Aoe="k8s.node.name",goe="k8s.node.uid",yoe="k8s.namespace.name",Roe="k8s.pod.uid",Ooe="k8s.pod.name",boe="k8s.container.name",Coe="k8s.replicaset.uid",Poe="k8s.replicaset.name",Moe="k8s.deployment.uid",Ioe="k8s.deployment.name",Noe="k8s.statefulset.uid",Loe="k8s.statefulset.name",Doe="k8s.daemonset.uid",woe="k8s.daemonset.name",Uoe="k8s.job.uid",xoe="k8s.job.name",Foe="k8s.cronjob.uid",$oe="k8s.cronjob.name",Voe="os.type",Goe="os.description",Boe="os.name",koe="os.version",joe="process.pid",Hoe="process.executable.name",Yoe="process.executable.path",qoe="process.command",Koe="process.command_line",Woe="process.command_args",Qoe="process.owner",IB="process.runtime.name",zoe="process.runtime.version",Xoe="process.runtime.description",NB="service.name",Joe="service.namespace",Zoe="service.instance.id",ese="service.version",LB="telemetry.sdk.name",DB="telemetry.sdk.language",wB="telemetry.sdk.version",tse="telemetry.auto.version",rse="webengine.name",nse="webengine.version",ise="webengine.description",kUe=null,jUe=null,HUe=null,YUe=null,qUe=null,KUe=null,WUe=null,QUe=null,zUe=null,XUe=null,JUe=null,ZUe=null,exe=null,txe=null,rxe=null,nxe=null,ixe=null,axe=null,oxe=null,sxe=null,uxe=null,cxe=null,lxe=null,fxe=null,_xe=null,dxe=null,pxe=null,hxe=null,Sxe=null,Exe=null,vxe=null,mxe=null,Txe=null,Axe=null,gxe=null,yxe=null,Rxe=null,Oxe=null,bxe=null,Cxe=null,Pxe=null,Mxe=null,Ixe=null,Nxe=null,Lxe=null,Dxe=null,wxe=null,Uxe=null,xxe=null,Fxe=null,$xe=null,Vxe=null,Gxe=null,Bxe=null,kxe=null,jxe=null,Hxe=null,Yxe=null,qxe=null,Kxe=null,Wxe=null,Qxe=null,zxe=null,Xxe=null,Jxe=null,Zxe=null,eFe=null,ase=IB,tFe=null,rFe=null,ose=NB,nFe=null,iFe=null,aFe=null,hM=LB,SM=DB,EM=wB,oFe=null,sFe=null,uFe=null,cFe=null,lFe=_l([Fae,$ae,Vae,Gae,Bae,kae,jae,Hae,Yae,qae,Kae,Wae,Qae,zae,Xae,Jae,Zae,eoe,toe,roe,noe,ioe,aoe,ooe,soe,uoe,coe,loe,foe,_oe,doe,poe,hoe,Soe,Eoe,voe,moe,Toe,Aoe,goe,yoe,Roe,Ooe,boe,Coe,Poe,Moe,Ioe,Noe,Loe,Doe,woe,Uoe,xoe,Foe,$oe,Voe,Goe,Boe,koe,joe,Hoe,Yoe,qoe,Koe,Woe,Qoe,IB,zoe,Xoe,NB,Joe,Zoe,ese,LB,DB,wB,tse,rse,nse,ise]),sse="alibaba_cloud",use="aws",cse="azure",lse="gcp",fFe=null,_Fe=null,dFe=null,pFe=null,hFe=_l([sse,use,cse,lse]),fse="alibaba_cloud_ecs",_se="alibaba_cloud_fc",dse="aws_ec2",pse="aws_ecs",hse="aws_eks",Sse="aws_lambda",Ese="aws_elastic_beanstalk",vse="azure_vm",mse="azure_container_instances",Tse="azure_aks",Ase="azure_functions",gse="azure_app_service",yse="gcp_compute_engine",Rse="gcp_cloud_run",Ose="gcp_kubernetes_engine",bse="gcp_cloud_functions",Cse="gcp_app_engine",SFe=null,EFe=null,vFe=null,mFe=null,TFe=null,AFe=null,gFe=null,yFe=null,RFe=null,OFe=null,bFe=null,CFe=null,PFe=null,MFe=null,IFe=null,NFe=null,LFe=null,DFe=_l([fse,_se,dse,pse,hse,Sse,Ese,vse,mse,Tse,Ase,gse,yse,Rse,Ose,bse,Cse]),Pse="ec2",Mse="fargate",wFe=null,UFe=null,xFe=_l([Pse,Mse]),Ise="amd64",Nse="arm32",Lse="arm64",Dse="ia64",wse="ppc32",Use="ppc64",xse="x86",FFe=null,$Fe=null,VFe=null,GFe=null,BFe=null,kFe=null,jFe=null,HFe=_l([Ise,Nse,Lse,Dse,wse,Use,xse]),Fse="windows",$se="linux",Vse="darwin",Gse="freebsd",Bse="netbsd",kse="openbsd",jse="dragonflybsd",Hse="hpux",Yse="aix",qse="solaris",Kse="z_os",YFe=null,qFe=null,KFe=null,WFe=null,QFe=null,zFe=null,XFe=null,JFe=null,ZFe=null,e1e=null,t1e=null,r1e=_l([Fse,$se,Vse,Gse,Bse,kse,jse,Hse,Yse,qse,Kse]),Wse="cpp",Qse="dotnet",zse="erlang",Xse="go",Jse="java",Zse="nodejs",eue="php",tue="python",rue="ruby",UB="webjs",n1e=null,i1e=null,a1e=null,o1e=null,s1e=null,u1e=null,c1e=null,l1e=null,f1e=null,nue=UB,_1e=_l([Wse,Qse,zse,Xse,Jse,Zse,eue,tue,rue,UB]),iue="1.30.1",A_,vM=(A_={},A_[hM]="opentelemetry",A_[ase]="browser",A_[SM]=nue,A_[EM]=iue,A_);function aue(){return"unknown_service"}var Wu=function(){return Wu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wu.apply(this,arguments)},oue=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},sue=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},uue=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ST=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r?.then(function(a){return n._attributes=Object.assign({},n._attributes,a),n.asyncAttributesPending=!1,a},function(a){return _r.debug("a resource's async attributes promise rejected: %s",a),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[ose]=aue(),t[SM]=vM[SM],t[hM]=vM[hM],t[EM]=vM[EM],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&_r.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return oue(this,void 0,void 0,function(){return sue(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=Wu(Wu({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(u){var c,v=uue(u,2),_=v[0],h=v[1];return Wu(Wu(Wu(Wu({},r._syncAttributes),_),(c=t._syncAttributes)!==null&&c!==void 0?c:t.attributes),h)});return new e(i,a)},e.EMPTY=new e({}),e}(),xB=function(){function e(){}return e.prototype.emit=function(t){},e}(),cue=new xB;function dl(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var lue="cloud.provider",fue="cloud.account.id",_ue="cloud.region",due="cloud.availability_zone",pue="cloud.platform",hue="aws.ecs.container.arn",Sue="aws.ecs.cluster.arn",Eue="aws.ecs.launchtype",vue="aws.ecs.task.arn",mue="aws.ecs.task.family",Tue="aws.ecs.task.revision",Aue="aws.eks.cluster.arn",gue="aws.log.group.names",yue="aws.log.group.arns",Rue="aws.log.stream.names",Oue="aws.log.stream.arns",bue="container.name",Cue="container.id",Pue="container.runtime",Mue="container.image.name",Iue="container.image.tag",Nue="deployment.environment",Lue="device.id",Due="device.model.identifier",wue="device.model.name",Uue="faas.name",xue="faas.id",Fue="faas.version",$ue="faas.instance",Vue="faas.max_memory",Gue="host.id",Bue="host.name",kue="host.type",jue="host.arch",Hue="host.image.name",Yue="host.image.id",que="host.image.version",Kue="k8s.cluster.name",Wue="k8s.node.name",Que="k8s.node.uid",zue="k8s.namespace.name",Xue="k8s.pod.uid",Jue="k8s.pod.name",Zue="k8s.container.name",ece="k8s.replicaset.uid",tce="k8s.replicaset.name",rce="k8s.deployment.uid",nce="k8s.deployment.name",ice="k8s.statefulset.uid",ace="k8s.statefulset.name",oce="k8s.daemonset.uid",sce="k8s.daemonset.name",uce="k8s.job.uid",cce="k8s.job.name",lce="k8s.cronjob.uid",fce="k8s.cronjob.name",_ce="os.type",dce="os.description",pce="os.name",hce="os.version",Sce="process.pid",Ece="process.executable.name",vce="process.executable.path",mce="process.command",Tce="process.command_line",Ace="process.command_args",gce="process.owner",yce="process.runtime.name",Rce="process.runtime.version",Oce="process.runtime.description",FB="service.name",bce="service.namespace",Cce="service.instance.id",Pce="service.version",$B="telemetry.sdk.name",VB="telemetry.sdk.language",GB="telemetry.sdk.version",Mce="telemetry.auto.version",Ice="webengine.name",Nce="webengine.version",Lce="webengine.description",d1e=null,p1e=null,h1e=null,S1e=null,E1e=null,v1e=null,m1e=null,T1e=null,A1e=null,g1e=null,y1e=null,R1e=null,O1e=null,b1e=null,C1e=null,P1e=null,M1e=null,I1e=null,N1e=null,L1e=null,D1e=null,w1e=null,U1e=null,x1e=null,F1e=null,$1e=null,V1e=null,G1e=null,B1e=null,k1e=null,j1e=null,H1e=null,Y1e=null,q1e=null,K1e=null,W1e=null,Q1e=null,z1e=null,X1e=null,J1e=null,Z1e=null,e$e=null,t$e=null,r$e=null,n$e=null,i$e=null,a$e=null,o$e=null,s$e=null,u$e=null,c$e=null,l$e=null,f$e=null,_$e=null,d$e=null,p$e=null,h$e=null,S$e=null,E$e=null,v$e=null,m$e=null,T$e=null,A$e=null,g$e=null,y$e=null,R$e=null,O$e=null,b$e=null,C$e=null,P$e=null,Dce=FB,M$e=null,I$e=null,N$e=null,BB=$B,kB=VB,jB=GB,L$e=null,D$e=null,w$e=null,U$e=null,x$e=dl([lue,fue,_ue,due,pue,hue,Sue,Eue,vue,mue,Tue,Aue,gue,yue,Rue,Oue,bue,Cue,Pue,Mue,Iue,Nue,Lue,Due,wue,Uue,xue,Fue,$ue,Vue,Gue,Bue,kue,jue,Hue,Yue,que,Kue,Wue,Que,zue,Xue,Jue,Zue,ece,tce,rce,nce,ice,ace,oce,sce,uce,cce,lce,fce,_ce,dce,pce,hce,Sce,Ece,vce,mce,Tce,Ace,gce,yce,Rce,Oce,FB,bce,Cce,Pce,$B,VB,GB,Mce,Ice,Nce,Lce]),wce="alibaba_cloud",Uce="aws",xce="azure",Fce="gcp",F$e=null,$$e=null,V$e=null,G$e=null,B$e=dl([wce,Uce,xce,Fce]),$ce="alibaba_cloud_ecs",Vce="alibaba_cloud_fc",Gce="aws_ec2",Bce="aws_ecs",kce="aws_eks",jce="aws_lambda",Hce="aws_elastic_beanstalk",Yce="azure_vm",qce="azure_container_instances",Kce="azure_aks",Wce="azure_functions",Qce="azure_app_service",zce="gcp_compute_engine",Xce="gcp_cloud_run",Jce="gcp_kubernetes_engine",Zce="gcp_cloud_functions",ele="gcp_app_engine",k$e=null,j$e=null,H$e=null,Y$e=null,q$e=null,K$e=null,W$e=null,Q$e=null,z$e=null,X$e=null,J$e=null,Z$e=null,eVe=null,tVe=null,rVe=null,nVe=null,iVe=null,aVe=dl([$ce,Vce,Gce,Bce,kce,jce,Hce,Yce,qce,Kce,Wce,Qce,zce,Xce,Jce,Zce,ele]),tle="ec2",rle="fargate",oVe=null,sVe=null,uVe=dl([tle,rle]),nle="amd64",ile="arm32",ale="arm64",ole="ia64",sle="ppc32",ule="ppc64",cle="x86",cVe=null,lVe=null,fVe=null,_Ve=null,dVe=null,pVe=null,hVe=null,SVe=dl([nle,ile,ale,ole,sle,ule,cle]),lle="windows",fle="linux",_le="darwin",dle="freebsd",ple="netbsd",hle="openbsd",Sle="dragonflybsd",Ele="hpux",vle="aix",mle="solaris",Tle="z_os",EVe=null,vVe=null,mVe=null,TVe=null,AVe=null,gVe=null,yVe=null,RVe=null,OVe=null,bVe=null,CVe=null,PVe=dl([lle,fle,_le,dle,ple,hle,Sle,Ele,vle,mle,Tle]),Ale="cpp",gle="dotnet",yle="erlang",Rle="go",Ole="java",ble="nodejs",Cle="php",Ple="python",Mle="ruby",Ile="webjs",MVe=null,IVe=null,NVe=null,LVe=null,DVe=null,wVe=null,UVe=null,xVe=null,FVe=null,$Ve=null,VVe=dl([Ale,gle,yle,Rle,Ole,ble,Cle,Ple,Mle,Ile]),Nle="1.25.1";function pl(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Lle="cloud.provider",Dle="cloud.account.id",wle="cloud.region",Ule="cloud.availability_zone",xle="cloud.platform",Fle="aws.ecs.container.arn",$le="aws.ecs.cluster.arn",Vle="aws.ecs.launchtype",Gle="aws.ecs.task.arn",Ble="aws.ecs.task.family",kle="aws.ecs.task.revision",jle="aws.eks.cluster.arn",Hle="aws.log.group.names",Yle="aws.log.group.arns",qle="aws.log.stream.names",Kle="aws.log.stream.arns",Wle="container.name",Qle="container.id",zle="container.runtime",Xle="container.image.name",Jle="container.image.tag",Zle="deployment.environment",efe="device.id",tfe="device.model.identifier",rfe="device.model.name",nfe="faas.name",ife="faas.id",afe="faas.version",ofe="faas.instance",sfe="faas.max_memory",ufe="host.id",cfe="host.name",lfe="host.type",ffe="host.arch",_fe="host.image.name",dfe="host.image.id",pfe="host.image.version",hfe="k8s.cluster.name",Sfe="k8s.node.name",Efe="k8s.node.uid",vfe="k8s.namespace.name",mfe="k8s.pod.uid",Tfe="k8s.pod.name",Afe="k8s.container.name",gfe="k8s.replicaset.uid",yfe="k8s.replicaset.name",Rfe="k8s.deployment.uid",Ofe="k8s.deployment.name",bfe="k8s.statefulset.uid",Cfe="k8s.statefulset.name",Pfe="k8s.daemonset.uid",Mfe="k8s.daemonset.name",Ife="k8s.job.uid",Nfe="k8s.job.name",Lfe="k8s.cronjob.uid",Dfe="k8s.cronjob.name",wfe="os.type",Ufe="os.description",xfe="os.name",Ffe="os.version",$fe="process.pid",Vfe="process.executable.name",Gfe="process.executable.path",Bfe="process.command",kfe="process.command_line",jfe="process.command_args",Hfe="process.owner",HB="process.runtime.name",Yfe="process.runtime.version",qfe="process.runtime.description",Kfe="service.name",Wfe="service.namespace",Qfe="service.instance.id",zfe="service.version",YB="telemetry.sdk.name",qB="telemetry.sdk.language",KB="telemetry.sdk.version",Xfe="telemetry.auto.version",Jfe="webengine.name",Zfe="webengine.version",e_e="webengine.description",GVe=null,BVe=null,kVe=null,jVe=null,HVe=null,YVe=null,qVe=null,KVe=null,WVe=null,QVe=null,zVe=null,XVe=null,JVe=null,ZVe=null,eGe=null,tGe=null,rGe=null,nGe=null,iGe=null,aGe=null,oGe=null,sGe=null,uGe=null,cGe=null,lGe=null,fGe=null,_Ge=null,dGe=null,pGe=null,hGe=null,SGe=null,EGe=null,vGe=null,mGe=null,TGe=null,AGe=null,gGe=null,yGe=null,RGe=null,OGe=null,bGe=null,CGe=null,PGe=null,MGe=null,IGe=null,NGe=null,LGe=null,DGe=null,wGe=null,UGe=null,xGe=null,FGe=null,$Ge=null,VGe=null,GGe=null,BGe=null,kGe=null,jGe=null,HGe=null,YGe=null,qGe=null,KGe=null,WGe=null,QGe=null,zGe=null,XGe=null,JGe=null,t_e=HB,ZGe=null,eBe=null,tBe=null,rBe=null,nBe=null,iBe=null,r_e=YB,n_e=qB,i_e=KB,aBe=null,oBe=null,sBe=null,uBe=null,cBe=pl([Lle,Dle,wle,Ule,xle,Fle,$le,Vle,Gle,Ble,kle,jle,Hle,Yle,qle,Kle,Wle,Qle,zle,Xle,Jle,Zle,efe,tfe,rfe,nfe,ife,afe,ofe,sfe,ufe,cfe,lfe,ffe,_fe,dfe,pfe,hfe,Sfe,Efe,vfe,mfe,Tfe,Afe,gfe,yfe,Rfe,Ofe,bfe,Cfe,Pfe,Mfe,Ife,Nfe,Lfe,Dfe,wfe,Ufe,xfe,Ffe,$fe,Vfe,Gfe,Bfe,kfe,jfe,Hfe,HB,Yfe,qfe,Kfe,Wfe,Qfe,zfe,YB,qB,KB,Xfe,Jfe,Zfe,e_e]),a_e="alibaba_cloud",o_e="aws",s_e="azure",u_e="gcp",lBe=null,fBe=null,_Be=null,dBe=null,pBe=pl([a_e,o_e,s_e,u_e]),c_e="alibaba_cloud_ecs",l_e="alibaba_cloud_fc",f_e="aws_ec2",__e="aws_ecs",d_e="aws_eks",p_e="aws_lambda",h_e="aws_elastic_beanstalk",S_e="azure_vm",E_e="azure_container_instances",v_e="azure_aks",m_e="azure_functions",T_e="azure_app_service",A_e="gcp_compute_engine",g_e="gcp_cloud_run",y_e="gcp_kubernetes_engine",R_e="gcp_cloud_functions",O_e="gcp_app_engine",hBe=null,SBe=null,EBe=null,vBe=null,mBe=null,TBe=null,ABe=null,gBe=null,yBe=null,RBe=null,OBe=null,bBe=null,CBe=null,PBe=null,MBe=null,IBe=null,NBe=null,LBe=pl([c_e,l_e,f_e,__e,d_e,p_e,h_e,S_e,E_e,v_e,m_e,T_e,A_e,g_e,y_e,R_e,O_e]),b_e="ec2",C_e="fargate",DBe=null,wBe=null,UBe=pl([b_e,C_e]),P_e="amd64",M_e="arm32",I_e="arm64",N_e="ia64",L_e="ppc32",D_e="ppc64",w_e="x86",xBe=null,FBe=null,$Be=null,VBe=null,GBe=null,BBe=null,kBe=null,jBe=pl([P_e,M_e,I_e,N_e,L_e,D_e,w_e]),U_e="windows",x_e="linux",F_e="darwin",$_e="freebsd",V_e="netbsd",G_e="openbsd",B_e="dragonflybsd",k_e="hpux",j_e="aix",H_e="solaris",Y_e="z_os",HBe=null,YBe=null,qBe=null,KBe=null,WBe=null,QBe=null,zBe=null,XBe=null,JBe=null,ZBe=null,eke=null,tke=pl([U_e,x_e,F_e,$_e,V_e,G_e,B_e,k_e,j_e,H_e,Y_e]),q_e="cpp",K_e="dotnet",W_e="erlang",Q_e="go",z_e="java",X_e="nodejs",J_e="php",Z_e="python",ede="ruby",WB="webjs",rke=null,nke=null,ike=null,ake=null,oke=null,ske=null,uke=null,cke=null,lke=null,tde=WB,fke=pl([q_e,K_e,W_e,Q_e,z_e,X_e,J_e,Z_e,ede,WB]),g_,mM=(g_={},g_[r_e]="opentelemetry",g_[t_e]="browser",g_[n_e]=tde,g_[i_e]=Nle,g_);function rde(){return"unknown_service"}var Qu=function(){return Qu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qu.apply(this,arguments)},nde=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},ide=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},ade=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},QB=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r?.then(function(a){return n._attributes=Object.assign({},n._attributes,a),n.asyncAttributesPending=!1,a},function(a){return _r.debug("a resource's async attributes promise rejected: %s",a),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[Dce]=rde(),t[kB]=mM[kB],t[BB]=mM[BB],t[jB]=mM[jB],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&_r.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return nde(this,void 0,void 0,function(){return ide(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=Qu(Qu({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(u){var c,v=ade(u,2),_=v[0],h=v[1];return Qu(Qu(Qu(Qu({},r._syncAttributes),_),(c=t._syncAttributes)!==null&&c!==void 0?c:t.attributes),h)});return new e(i,a)},e.EMPTY=new e({}),e}(),ode="[object Object]",sde="[object Null]",ude="[object Undefined]",cde=Function.prototype,zB=cde.toString,lde=zB.call(Object),fde=_de(Object.getPrototypeOf,Object),XB=Object.prototype,JB=XB.hasOwnProperty,hl=Symbol?Symbol.toStringTag:void 0,ZB=XB.toString;function _de(e,t){return function(r){return e(t(r))}}function ek(e){if(!dde(e)||pde(e)!==ode)return!1;var t=fde(e);if(t===null)return!0;var r=JB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&zB.call(r)===lde}function dde(e){return e!=null&&typeof e=="object"}function pde(e){return e==null?e===void 0?ude:sde:hl&&hl in Object(e)?hde(e):Sde(e)}function hde(e){var t=JB.call(e,hl),r=e[hl],n=!1;try{e[hl]=void 0,n=!0}catch{}var i=ZB.call(e);return n&&(t?e[hl]=r:delete e[hl]),i}function Sde(e){return ZB.call(e)}var Ede=20;function vde(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=tk(r,e.shift(),0,n);return r}function TM(e){return ET(e)?e.slice():e}function tk(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>Ede)){if(r++,vT(e)||vT(t)||nk(t))i=TM(t);else if(ET(e)){if(i=e.slice(),ET(t))for(var a=0,u=t.length;a<u;a++)i.push(TM(t[a]));else if(gh(t))for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a];i[v]=TM(t[v])}}else if(gh(e))if(gh(t)){if(!mde(e,t))return t;i=Object.assign({},e);for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a],_=t[v];if(vT(_))typeof _>"u"?delete i[v]:i[v]=_;else{var h=i[v],L=_;if(rk(e,v,n)||rk(t,v,n))delete i[v];else{if(gh(h)&&gh(L)){var W=n.get(h)||[],Te=n.get(L)||[];W.push({obj:e,key:v}),Te.push({obj:t,key:v}),n.set(h,W),n.set(L,Te)}i[v]=tk(i[v],_,r,n)}}}}else i=t;return i}}function rk(e,t,r){for(var n=r.get(e[t])||[],i=0,a=n.length;i<a;i++){var u=n[i];if(u.key===t&&u.obj===e)return!0}return!1}function ET(e){return Array.isArray(e)}function nk(e){return typeof e=="function"}function gh(e){return!vT(e)&&!ET(e)&&!nk(e)&&typeof e=="object"}function vT(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function mde(e,t){return!(!ek(e)||!ek(t))}var Tde=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),Ade=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},gde=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ik=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new Tde}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,gde([this._that],Ade(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),_a=cT.getInstance(),yh=performance,ak=9,yde=6,Rde=Math.pow(10,yde),mT=Math.pow(10,ak);function TT(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Rde);return[r,n]}function ok(){var e=yh.timeOrigin;if(typeof e!="number"){var t=yh;e=t.timing&&t.timing.fetchStart}return e}function AM(e){var t=TT(ok()),r=TT(typeof e=="number"?e:yh.now());return Ode(t,r)}function Sl(e){if(sk(e))return e;if(typeof e=="number")return e<ok()?AM(e):TT(e);if(e instanceof Date)return TT(e.getTime());throw TypeError("Invalid input type")}function _ke(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=mT),[r,n]}function dke(e){var t=ak,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function zu(e){return e[0]*mT+e[1]}function pke(e){return e[0]*1e3+e[1]/1e6}function hke(e){return e[0]*1e6+e[1]/1e3}function sk(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Ske(e){return sk(e)||typeof e=="number"||e instanceof Date}function Ode(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=mT&&(r[1]-=mT,r[0]+=1),r}var uk=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bde=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function Eke(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=uk(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=bde(a.value,2),c=u[0],v=u[1];if(!Cde(c)){diag.warn("Invalid attribute key: "+c);continue}if(!gM(v)){diag.warn("Invalid attribute value set for key: "+c);continue}Array.isArray(v)?n[c]=v.slice():n[c]=v}}catch(_){t={error:_}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function Cde(e){return typeof e=="string"&&e.length>0}function gM(e){return e==null?!0:Array.isArray(e)?Pde(e):ck(e)}function Pde(e){var t,r,n;try{for(var i=uk(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u!=null){if(!n){if(ck(u)){n=typeof u;continue}return!1}if(typeof u!==n)return!1}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function ck(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var Mde=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ide=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Nde=function(){function e(t,r,n){this.attributes={},this.totalAttributesCount=0,this._isReadonly=!1;var i=n.timestamp,a=n.observedTimestamp,u=n.severityNumber,c=n.severityText,v=n.body,_=n.attributes,h=_===void 0?{}:_,L=n.context,W=Date.now();if(this.hrTime=Sl(i??W),this.hrTimeObserved=Sl(a??W),L){var Te=ta.getSpanContext(L);Te&&v_(Te)&&(this.spanContext=Te)}this.severityNumber=u,this.severityText=c,this.body=v,this.resource=t.resource,this.instrumentationScope=r,this._logRecordLimits=t.logRecordLimits,this.setAttributes(h)}return Object.defineProperty(e.prototype,"severityText",{get:function(){return this._severityText},set:function(t){this._isLogRecordReadonly()||(this._severityText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"severityNumber",{get:function(){return this._severityNumber},set:function(t){this._isLogRecordReadonly()||(this._severityNumber=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},set:function(t){this._isLogRecordReadonly()||(this._body=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this.totalAttributesCount-Object.keys(this.attributes).length},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,r){return this._isLogRecordReadonly()?this:r===null?this:t.length===0?(_r.warn("Invalid attribute key: "+t),this):!gM(r)&&!(typeof r=="object"&&!Array.isArray(r)&&Object.keys(r).length>0)?(_r.warn("Invalid attribute value set for key: "+t),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&_r.warn("Dropping extra attributes."),this):(gM(r)?this.attributes[t]=this._truncateToSize(r):this.attributes[t]=r,this))},e.prototype.setAttributes=function(t){var r,n;try{for(var i=Mde(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=Ide(a.value,2),c=u[0],v=u[1];this.setAttribute(c,v)}}catch(_){r={error:_}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.setBody=function(t){return this.body=t,this},e.prototype.setSeverityNumber=function(t){return this.severityNumber=t,this},e.prototype.setSeverityText=function(t){return this.severityText=t,this},e.prototype._makeReadonly=function(){this._isReadonly=!0},e.prototype._truncateToSize=function(t){var r=this,n=this._logRecordLimits.attributeValueLengthLimit;return n<=0?(_r.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substring(0,r)},e.prototype._isLogRecordReadonly=function(){return this._isReadonly&&_r.warn("Can not execute the operation on emitted log record"),this._isReadonly},e}(),yM=function(){return yM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},yM.apply(this,arguments)},Lde=function(){function e(t,r){this.instrumentationScope=t,this._sharedState=r}return e.prototype.emit=function(t){var r=t.context||_a.active(),n=new Nde(this._sharedState,this.instrumentationScope,yM({context:r},t));this._sharedState.activeProcessor.onEmit(n,r),n._makeReadonly()},e}(),RM;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(RM||(RM={}));var Dde=",",wde=["OTEL_SDK_DISABLED"];function Ude(e){return wde.indexOf(e)>-1}var xde=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Fde(e){return xde.indexOf(e)>-1}var $de=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Vde(e){return $de.indexOf(e)>-1}var AT=1/0,gT=128,Gde=128,Bde=128,lk={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:vn.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:AT,OTEL_ATTRIBUTE_COUNT_LIMIT:gT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:AT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:gT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:AT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:gT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Gde,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Bde,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:RM.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function kde(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function jde(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function Hde(e,t,r,n){n===void 0&&(n=Dde);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var Yde={ALL:vn.ALL,VERBOSE:vn.VERBOSE,DEBUG:vn.DEBUG,INFO:vn.INFO,WARN:vn.WARN,ERROR:vn.ERROR,NONE:vn.NONE};function qde(e,t,r){var n=r[e];if(typeof n=="string"){var i=Yde[n.toUpperCase()];i!=null&&(t[e]=i)}}function fk(e){var t={};for(var r in lk){var n=r;switch(n){case"OTEL_LOG_LEVEL":qde(n,t,e);break;default:if(Ude(n))kde(n,t,e);else if(Fde(n))jde(n,t,e);else if(Vde(n))Hde(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var _k=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{};function OM(){var e=fk(_k);return Object.assign({},lk,e)}function Kde(){return fk(_k)}function Wde(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:OM().OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:OM().OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT},includeTraceContext:!0}}function Qde(e){var t,r,n,i,a,u,c=Kde();return{attributeCountLimit:(n=(r=(t=e.attributeCountLimit)!==null&&t!==void 0?t:c.OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT)!==null&&r!==void 0?r:c.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&n!==void 0?n:gT,attributeValueLengthLimit:(u=(a=(i=e.attributeValueLengthLimit)!==null&&i!==void 0?i:c.OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&a!==void 0?a:c.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&u!==void 0?u:AT}}var zde=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Xde=function(e){zde(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t}(Error);function dk(e,t){var r,n=new Promise(function(a,u){r=setTimeout(function(){u(new Xde("Operation timed out."))},t)});return Promise.race([e,n]).then(function(i){return clearTimeout(r),i},function(i){throw clearTimeout(r),i})}var pk=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},hk=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Jde=function(){function e(t,r){this.processors=t,this.forceFlushTimeoutMillis=r}return e.prototype.forceFlush=function(){return pk(this,void 0,void 0,function(){var t;return hk(this,function(r){switch(r.label){case 0:return t=this.forceFlushTimeoutMillis,[4,Promise.all(this.processors.map(function(n){return dk(n.forceFlush(),t)}))];case 1:return r.sent(),[2]}})})},e.prototype.onEmit=function(t,r){this.processors.forEach(function(n){return n.onEmit(t,r)})},e.prototype.shutdown=function(){return pk(this,void 0,void 0,function(){return hk(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.processors.map(function(r){return r.shutdown()}))];case 1:return t.sent(),[2]}})})},e}(),Zde=function(){function e(){}return e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype.onEmit=function(t,r){},e.prototype.shutdown=function(){return Promise.resolve()},e}(),epe=function(){function e(t,r,n){this.resource=t,this.forceFlushTimeoutMillis=r,this.logRecordLimits=n,this.loggers=new Map,this.registeredLogRecordProcessors=[],this.activeProcessor=new Zde}return e}(),tpe="unknown",rpe=function(){function e(t){t===void 0&&(t={});var r,n=vde({},Wde(),t),i=QB.default().merge((r=n.resource)!==null&&r!==void 0?r:QB.empty());this._sharedState=new epe(i,n.forceFlushTimeoutMillis,Qde(n.logRecordLimits)),this._shutdownOnce=new ik(this._shutdown,this)}return e.prototype.getLogger=function(t,r,n){if(this._shutdownOnce.isCalled)return _r.warn("A shutdown LoggerProvider cannot provide a Logger"),cue;t||_r.warn("Logger requested without instrumentation scope name.");var i=t||tpe,a=i+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._sharedState.loggers.has(a)||this._sharedState.loggers.set(a,new Lde({name:i,version:r,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(a)},e.prototype.addLogRecordProcessor=function(t){this._sharedState.registeredLogRecordProcessors.length===0&&this._sharedState.activeProcessor.shutdown().catch(function(r){return _r.error("Error while trying to shutdown current log record processor",r)}),this._sharedState.registeredLogRecordProcessors.push(t),this._sharedState.activeProcessor=new Jde(this._sharedState.registeredLogRecordProcessors,this._sharedState.forceFlushTimeoutMillis)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?(_r.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()},e.prototype.shutdown=function(){return this._shutdownOnce.isCalled?(_r.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()},e.prototype._shutdown=function(){return this._sharedState.activeProcessor.shutdown()},e}();function npe(){return function(e){_r.error(ipe(e))}}function ipe(e){return typeof e=="string"?e:JSON.stringify(ape(e))}function ape(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i))}}),r=Object.getPrototypeOf(r);return t}var Sk=npe();function vke(e){Sk=e}function yT(e){try{Sk(e)}catch{}}function mke(e){}function ope(e,t){return new Promise(function(r){_a.with(Ine(_a.active()),function(){e.export(t,function(n){r(n)})})})}var spe={_export:ope},bM;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(bM||(bM={}));var upe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},cpe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},lpe=function(){function e(t,r){var n,i,a,u;this._exporter=t,this._finishedLogRecords=[];var c=OM();this._maxExportBatchSize=(n=r?.maxExportBatchSize)!==null&&n!==void 0?n:c.OTEL_BLRP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=(i=r?.maxQueueSize)!==null&&i!==void 0?i:c.OTEL_BLRP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=(a=r?.scheduledDelayMillis)!==null&&a!==void 0?a:c.OTEL_BLRP_SCHEDULE_DELAY,this._exportTimeoutMillis=(u=r?.exportTimeoutMillis)!==null&&u!==void 0?u:c.OTEL_BLRP_EXPORT_TIMEOUT,this._shutdownOnce=new ik(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_r.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.onEmit=function(t){this._shutdownOnce.isCalled||this._addToBuffer(t)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){return upe(this,void 0,void 0,function(){return cpe(this,function(t){switch(t.label){case 0:return this.onShutdown(),[4,this._flushAll()];case 1:return t.sent(),[4,this._exporter.shutdown()];case 2:return t.sent(),[2]}})})},e.prototype._addToBuffer=function(t){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(t),this._maybeStartTimer())},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],a=Math.ceil(t._finishedLogRecords.length/t._maxExportBatchSize),u=0;u<a;u++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedLogRecords.length===0?Promise.resolve():new Promise(function(r,n){dk(t._export(t._finishedLogRecords.splice(0,t._maxExportBatchSize)),t._exportTimeoutMillis).then(function(){return r()}).catch(n)})},e.prototype._maybeStartTimer=function(){var t=this;this._timer===void 0&&(this._timer=setTimeout(function(){t._flushOneBatch().then(function(){t._finishedLogRecords.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(r){yT(r)})},this._scheduledDelayMillis),this._timer,void 0)},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e.prototype._export=function(t){var r=this,n=function(){return spe._export(r._exporter,t).then(function(a){var u;a.code!==bM.SUCCESS&&yT((u=a.error)!==null&&u!==void 0?u:new Error("BatchLogRecordProcessor: log record export failed (status "+a+")"))}).catch(yT)},i=t.map(function(a){return a.resource}).filter(function(a){return a.asyncAttributesPending});return i.length===0?n():Promise.all(i.map(function(a){var u;return(u=a.waitForAsyncAttributes)===null||u===void 0?void 0:u.call(a)})).then(n,yT)},e}(),fpe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),_pe=function(e){fpe(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._onInit(n),i}return t.prototype.onShutdown=function(){typeof document>"u"||(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t.prototype._onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide===!0||typeof document>"u"||(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t}(lpe),dpe=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),ppe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},hpe={set:function(e,t,r){e!=null&&(e[t]=r)}},CM=uT("OpenTelemetry Baggage Key");function Ek(e){return e.getValue(CM)||void 0}function Spe(){return Ek(cT.getInstance().active())}function Epe(e,t){return e.setValue(CM,t)}function vpe(e){return e.deleteValue(CM)}var mpe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Tpe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ape=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(!!r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=mpe(t,2),n=r[0],i=r[1];return[n,i]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=new e(this._entries);try{for(var u=Tpe(n),c=u.next();!c.done;c=u.next()){var v=c.value;a._entries.delete(v)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),gpe=Symbol("BaggageEntryMetadata"),ype=ys.instance();function Rpe(e){return e===void 0&&(e={}),new Ape(new Map(Object.entries(e)))}function Ope(e){return typeof e!="string"&&(ype.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:gpe,toString:function(){return e}}}var PM="propagation",bpe=new dpe,Cpe=function(){function e(){this.createBaggage=Rpe,this.getBaggage=Ek,this.getActiveBaggage=Spe,this.setBaggage=Epe,this.deleteBaggage=vpe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return dh(PM,t,ys.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=hpe),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=ppe),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){ph(PM,ys.instance())},e.prototype._getGlobalPropagator=function(){return cl(PM)||bpe},e}(),y_=Cpe.getInstance(),Ppe="[object Object]",Mpe="[object Null]",Ipe="[object Undefined]",Npe=Function.prototype,vk=Npe.toString,Lpe=vk.call(Object),Dpe=wpe(Object.getPrototypeOf,Object),mk=Object.prototype,Tk=mk.hasOwnProperty,El=Symbol?Symbol.toStringTag:void 0,Ak=mk.toString;function wpe(e,t){return function(r){return e(t(r))}}function gk(e){if(!Upe(e)||xpe(e)!==Ppe)return!1;var t=Dpe(e);if(t===null)return!0;var r=Tk.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&vk.call(r)===Lpe}function Upe(e){return e!=null&&typeof e=="object"}function xpe(e){return e==null?e===void 0?Ipe:Mpe:El&&El in Object(e)?Fpe(e):$pe(e)}function Fpe(e){var t=Tk.call(e,El),r=e[El],n=!1;try{e[El]=void 0,n=!0}catch{}var i=Ak.call(e);return n&&(t?e[El]=r:delete e[El]),i}function $pe(e){return Ak.call(e)}var Vpe=20;function Gpe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=yk(r,e.shift(),0,n);return r}function MM(e){return RT(e)?e.slice():e}function yk(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>Vpe)){if(r++,OT(e)||OT(t)||Ok(t))i=MM(t);else if(RT(e)){if(i=e.slice(),RT(t))for(var a=0,u=t.length;a<u;a++)i.push(MM(t[a]));else if(Rh(t))for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a];i[v]=MM(t[v])}}else if(Rh(e))if(Rh(t)){if(!Bpe(e,t))return t;i=Object.assign({},e);for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a],_=t[v];if(OT(_))typeof _>"u"?delete i[v]:i[v]=_;else{var h=i[v],L=_;if(Rk(e,v,n)||Rk(t,v,n))delete i[v];else{if(Rh(h)&&Rh(L)){var W=n.get(h)||[],Te=n.get(L)||[];W.push({obj:e,key:v}),Te.push({obj:t,key:v}),n.set(h,W),n.set(L,Te)}i[v]=yk(i[v],_,r,n)}}}}else i=t;return i}}function Rk(e,t,r){for(var n=r.get(e[t])||[],i=0,a=n.length;i<a;i++){var u=n[i];if(u.key===t&&u.obj===e)return!0}return!1}function RT(e){return Array.isArray(e)}function Ok(e){return typeof e=="function"}function Rh(e){return!OT(e)&&!RT(e)&&!Ok(e)&&typeof e=="object"}function OT(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Bpe(e,t){return!(!gk(e)||!gk(t))}var Os;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Os||(Os={}));var kpe=",",jpe=["OTEL_SDK_DISABLED"];function Hpe(e){return jpe.indexOf(e)>-1}var Ype=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function qpe(e){return Ype.indexOf(e)>-1}var Kpe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function Wpe(e){return Kpe.indexOf(e)>-1}var bT=1/0,CT=128,Qpe=128,zpe=128,bk={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:vn.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:bT,OTEL_ATTRIBUTE_COUNT_LIMIT:CT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:bT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:CT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:bT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:CT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Qpe,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:zpe,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Os.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Xpe(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function Jpe(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function Zpe(e,t,r,n){n===void 0&&(n=kpe);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var ehe={ALL:vn.ALL,VERBOSE:vn.VERBOSE,DEBUG:vn.DEBUG,INFO:vn.INFO,WARN:vn.WARN,ERROR:vn.ERROR,NONE:vn.NONE};function the(e,t,r){var n=r[e];if(typeof n=="string"){var i=ehe[n.toUpperCase()];i!=null&&(t[e]=i)}}function Ck(e){var t={};for(var r in bk){var n=r;switch(n){case"OTEL_LOG_LEVEL":the(n,t,e);break;default:if(Hpe(n))Xpe(n,t,e);else if(qpe(n))Jpe(n,t,e);else if(Wpe(n))Zpe(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var Pk=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{};function Oh(){var e=Ck(Pk);return Object.assign({},bk,e)}function rhe(){return Ck(Pk)}var nhe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ihe=function(){function e(t){t===void 0&&(t={});var r;this._propagators=(r=t.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(function(n){return typeof n.fields=="function"?n.fields():[]}).reduce(function(n,i){return n.concat(i)},[])))}return e.prototype.inject=function(t,r,n){var i,a;try{for(var u=nhe(this._propagators),c=u.next();!c.done;c=u.next()){var v=c.value;try{v.inject(t,r,n)}catch(_){_r.warn("Failed to inject with "+v.constructor.name+". Err: "+_.message)}}}catch(_){i={error:_}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},e.prototype.extract=function(t,r,n){return this._propagators.reduce(function(i,a){try{return a.extract(i,r,n)}catch(u){_r.warn("Failed to extract with "+a.constructor.name+". Err: "+u.message)}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e}(),IM=uT("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function ahe(e){return e.setValue(IM,!0)}function Tke(e){return e.deleteValue(IM)}function NM(e){return e.getValue(IM)===!0}var LM="[_0-9a-z-*/]",ohe="[a-z]"+LM+"{0,255}",she="[a-z0-9]"+LM+"{0,240}@[a-z]"+LM+"{0,13}",uhe=new RegExp("^(?:"+ohe+"|"+she+")$"),che=/^[ -~]{0,255}[!-~]$/,lhe=/,|=/;function fhe(e){return uhe.test(e)}function _he(e){return che.test(e)&&!lhe.test(e)}var Mk=32,dhe=512,Ik=",",Nk="=",phe=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+Nk+t.get(n)),r},[]).join(Ik)},e.prototype._parse=function(t){t.length>dhe||(this._internalState=t.split(Ik).reverse().reduce(function(r,n){var i=n.trim(),a=i.indexOf(Nk);if(a!==-1){var u=i.slice(0,a),c=i.slice(a+1,n.length);fhe(u)&&_he(c)&&r.set(u,c)}return r},new Map),this._internalState.size>Mk&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Mk))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),DM="traceparent",wM="tracestate",hhe="00",She="(?!ff)[\\da-f]{2}",Ehe="(?![0]{32})[\\da-f]{32}",vhe="(?![0]{16})[\\da-f]{16}",mhe="[\\da-f]{2}",The=new RegExp("^\\s?("+She+")-("+Ehe+")-("+vhe+")-("+mhe+")(-.*)?\\s?$");function Ahe(e){var t=The.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var ghe=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=ta.getSpanContext(t);if(!(!i||NM(t)||!v_(i))){var a=hhe+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Rs.NONE).toString(16);n.set(r,DM,a),i.traceState&&n.set(r,wM,i.traceState.serialize())}},e.prototype.extract=function(t,r,n){var i=n.get(r,DM);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var u=Ahe(a);if(!u)return t;u.isRemote=!0;var c=n.get(r,wM);if(c){var v=Array.isArray(c)?c.join(","):c;u.traceState=new phe(typeof v=="string"?v:void 0)}return ta.setSpanContext(t,u)},e.prototype.fields=function(){return[DM,wM]},e}(),yhe="=",UM=";",xM=",",FM="baggage",Rhe=180,Ohe=4096,bhe=8192,Che=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function Phe(e){return e.reduce(function(t,r){var n=""+t+(t!==""?xM:"")+r;return n.length>bhe?t:n},"")}function Mhe(e){return e.getAllEntries().map(function(t){var r=Che(t,2),n=r[0],i=r[1],a=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=UM+i.metadata.toString()),a})}function Lk(e){var t=e.split(UM);if(!(t.length<=0)){var r=t.shift();if(!!r){var n=r.indexOf(yhe);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim()),u;return t.length>0&&(u=Ope(t.join(UM))),{key:i,value:a,metadata:u}}}}}function Ake(e){return typeof e!="string"||e.length===0?{}:e.split(BAGGAGE_ITEMS_SEPARATOR).map(function(t){return Lk(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var Ihe=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=y_.getBaggage(t);if(!(!i||NM(t))){var a=Mhe(i).filter(function(c){return c.length<=Ohe}).slice(0,Rhe),u=Phe(a);u.length>0&&n.set(r,FM,u)}},e.prototype.extract=function(t,r,n){var i=n.get(r,FM),a=Array.isArray(i)?i.join(xM):i;if(!a)return t;var u={};if(a.length===0)return t;var c=a.split(xM);return c.forEach(function(v){var _=Lk(v);if(_){var h={value:_.value};_.metadata&&(h.metadata=_.metadata),u[_.key]=h}}),Object.entries(u).length===0?t:y_.setBaggage(t,y_.createBaggage(u))},e.prototype.fields=function(){return[FM]},e}(),PT;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(PT||(PT={}));var MT;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(MT||(MT={}));var Dk=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Nhe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function IT(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=Dk(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=Nhe(a.value,2),c=u[0],v=u[1];if(!Lhe(c)){_r.warn("Invalid attribute key: "+c);continue}if(!wk(v)){_r.warn("Invalid attribute value set for key: "+c);continue}Array.isArray(v)?n[c]=v.slice():n[c]=v}}catch(_){t={error:_}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function Lhe(e){return typeof e=="string"&&e.length>0}function wk(e){return e==null?!0:Array.isArray(e)?Dhe(e):Uk(e)}function Dhe(e){var t,r,n;try{for(var i=Dk(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u!=null){if(!n){if(Uk(u)){n=typeof u;continue}return!1}if(typeof u!==n)return!1}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function Uk(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var $M;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})($M||($M={}));var R_=performance,xk=9,whe=6,Uhe=Math.pow(10,whe),NT=Math.pow(10,xk);function Xu(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Uhe);return[r,n]}function VM(){var e=R_.timeOrigin;if(typeof e!="number"){var t=R_;e=t.timing&&t.timing.fetchStart}return e}function Fk(e){var t=Xu(VM()),r=Xu(typeof e=="number"?e:R_.now());return Vk(t,r)}function gke(e){if(GM(e))return e;if(typeof e=="number")return e<VM()?Fk(e):Xu(e);if(e instanceof Date)return Xu(e.getTime());throw TypeError("Invalid input type")}function xhe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=NT),[r,n]}function yke(e){var t=xk,r=""+"0".repeat(t)+e[1]+"Z",n=r.substring(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function Rke(e){return e[0]*NT+e[1]}function Oke(e){return e[0]*1e3+e[1]/1e6}function bke(e){return e[0]*1e6+e[1]/1e3}function GM(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function $k(e){return GM(e)||typeof e=="number"||e instanceof Date}function Vk(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=NT&&(r[1]-=NT,r[0]+=1),r}function co(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Fhe="aws.lambda.invoked_arn",$he="db.system",Vhe="db.connection_string",Ghe="db.user",Bhe="db.jdbc.driver_classname",khe="db.name",jhe="db.statement",Hhe="db.operation",Yhe="db.mssql.instance_name",qhe="db.cassandra.keyspace",Khe="db.cassandra.page_size",Whe="db.cassandra.consistency_level",Qhe="db.cassandra.table",zhe="db.cassandra.idempotence",Xhe="db.cassandra.speculative_execution_count",Jhe="db.cassandra.coordinator.id",Zhe="db.cassandra.coordinator.dc",eSe="db.hbase.namespace",tSe="db.redis.database_index",rSe="db.mongodb.collection",nSe="db.sql.table",Gk="exception.type",Bk="exception.message",kk="exception.stacktrace",iSe="exception.escaped",aSe="faas.trigger",oSe="faas.execution",sSe="faas.document.collection",uSe="faas.document.operation",cSe="faas.document.time",lSe="faas.document.name",fSe="faas.time",_Se="faas.cron",dSe="faas.coldstart",pSe="faas.invoked_name",hSe="faas.invoked_provider",SSe="faas.invoked_region",ESe="net.transport",vSe="net.peer.ip",mSe="net.peer.port",TSe="net.peer.name",ASe="net.host.ip",gSe="net.host.port",ySe="net.host.name",RSe="net.host.connection.type",OSe="net.host.connection.subtype",bSe="net.host.carrier.name",CSe="net.host.carrier.mcc",PSe="net.host.carrier.mnc",MSe="net.host.carrier.icc",ISe="peer.service",NSe="enduser.id",LSe="enduser.role",DSe="enduser.scope",wSe="thread.id",USe="thread.name",xSe="code.function",FSe="code.namespace",$Se="code.filepath",VSe="code.lineno",GSe="http.method",BSe="http.url",kSe="http.target",jSe="http.host",HSe="http.scheme",YSe="http.status_code",qSe="http.flavor",KSe="http.user_agent",WSe="http.request_content_length",QSe="http.request_content_length_uncompressed",zSe="http.response_content_length",XSe="http.response_content_length_uncompressed",JSe="http.server_name",ZSe="http.route",eEe="http.client_ip",tEe="aws.dynamodb.table_names",rEe="aws.dynamodb.consumed_capacity",nEe="aws.dynamodb.item_collection_metrics",iEe="aws.dynamodb.provisioned_read_capacity",aEe="aws.dynamodb.provisioned_write_capacity",oEe="aws.dynamodb.consistent_read",sEe="aws.dynamodb.projection",uEe="aws.dynamodb.limit",cEe="aws.dynamodb.attributes_to_get",lEe="aws.dynamodb.index_name",fEe="aws.dynamodb.select",_Ee="aws.dynamodb.global_secondary_indexes",dEe="aws.dynamodb.local_secondary_indexes",pEe="aws.dynamodb.exclusive_start_table",hEe="aws.dynamodb.table_count",SEe="aws.dynamodb.scan_forward",EEe="aws.dynamodb.segment",vEe="aws.dynamodb.total_segments",mEe="aws.dynamodb.count",TEe="aws.dynamodb.scanned_count",AEe="aws.dynamodb.attribute_definitions",gEe="aws.dynamodb.global_secondary_index_updates",yEe="messaging.system",REe="messaging.destination",OEe="messaging.destination_kind",bEe="messaging.temp_destination",CEe="messaging.protocol",PEe="messaging.protocol_version",MEe="messaging.url",IEe="messaging.message_id",NEe="messaging.conversation_id",LEe="messaging.message_payload_size_bytes",DEe="messaging.message_payload_compressed_size_bytes",wEe="messaging.operation",UEe="messaging.consumer_id",xEe="messaging.rabbitmq.routing_key",FEe="messaging.kafka.message_key",$Ee="messaging.kafka.consumer_group",VEe="messaging.kafka.client_id",GEe="messaging.kafka.partition",BEe="messaging.kafka.tombstone",kEe="rpc.system",jEe="rpc.service",HEe="rpc.method",YEe="rpc.grpc.status_code",qEe="rpc.jsonrpc.version",KEe="rpc.jsonrpc.request_id",WEe="rpc.jsonrpc.error_code",QEe="rpc.jsonrpc.error_message",zEe="message.type",XEe="message.id",JEe="message.compressed_size",ZEe="message.uncompressed_size",Cke=null,Pke=null,Mke=null,Ike=null,Nke=null,Lke=null,Dke=null,wke=null,Uke=null,xke=null,Fke=null,$ke=null,Vke=null,Gke=null,Bke=null,kke=null,jke=null,Hke=null,Yke=null,qke=null,Kke=null,BM=Gk,kM=Bk,eve=kk,Wke=null,Qke=null,zke=null,Xke=null,Jke=null,Zke=null,eje=null,tje=null,rje=null,nje=null,ije=null,aje=null,oje=null,sje=null,uje=null,cje=null,lje=null,fje=null,_je=null,dje=null,pje=null,hje=null,Sje=null,Eje=null,vje=null,mje=null,Tje=null,Aje=null,gje=null,yje=null,Rje=null,Oje=null,bje=null,Cje=null,Pje=null,Mje=null,Ije=null,Nje=null,Lje=null,Dje=null,wje=null,Uje=null,xje=null,Fje=null,$je=null,Vje=null,Gje=null,Bje=null,kje=null,jje=null,Hje=null,Yje=null,qje=null,Kje=null,Wje=null,Qje=null,zje=null,Xje=null,Jje=null,Zje=null,eHe=null,tHe=null,rHe=null,nHe=null,iHe=null,aHe=null,oHe=null,sHe=null,uHe=null,cHe=null,lHe=null,fHe=null,_He=null,dHe=null,pHe=null,hHe=null,SHe=null,EHe=null,vHe=null,mHe=null,THe=null,AHe=null,gHe=null,yHe=null,RHe=null,OHe=null,bHe=null,CHe=null,PHe=null,MHe=null,IHe=null,NHe=null,LHe=null,DHe=null,wHe=null,UHe=null,xHe=null,FHe=null,$He=null,VHe=null,GHe=null,BHe=null,kHe=null,jHe=null,HHe=co([Fhe,$he,Vhe,Ghe,Bhe,khe,jhe,Hhe,Yhe,qhe,Khe,Whe,Qhe,zhe,Xhe,Jhe,Zhe,eSe,tSe,rSe,nSe,Gk,Bk,kk,iSe,aSe,oSe,sSe,uSe,cSe,lSe,fSe,_Se,dSe,pSe,hSe,SSe,ESe,vSe,mSe,TSe,ASe,gSe,ySe,RSe,OSe,bSe,CSe,PSe,MSe,ISe,NSe,LSe,DSe,wSe,USe,xSe,FSe,$Se,VSe,GSe,BSe,kSe,jSe,HSe,YSe,qSe,KSe,WSe,QSe,zSe,XSe,JSe,ZSe,eEe,tEe,rEe,nEe,iEe,aEe,oEe,sEe,uEe,cEe,lEe,fEe,_Ee,dEe,pEe,hEe,SEe,EEe,vEe,mEe,TEe,AEe,gEe,yEe,REe,OEe,bEe,CEe,PEe,MEe,IEe,NEe,LEe,DEe,wEe,UEe,xEe,FEe,$Ee,VEe,GEe,BEe,kEe,jEe,HEe,YEe,qEe,KEe,WEe,QEe,zEe,XEe,JEe,ZEe]),tve="other_sql",rve="mssql",nve="mysql",ive="oracle",ave="db2",ove="postgresql",sve="redshift",uve="hive",cve="cloudscape",lve="hsqldb",fve="progress",_ve="maxdb",dve="hanadb",pve="ingres",hve="firstsql",Sve="edb",Eve="cache",vve="adabas",mve="firebird",Tve="derby",Ave="filemaker",gve="informix",yve="instantdb",Rve="interbase",Ove="mariadb",bve="netezza",Cve="pervasive",Pve="pointbase",Mve="sqlite",Ive="sybase",Nve="teradata",Lve="vertica",Dve="h2",wve="coldfusion",Uve="cassandra",xve="hbase",Fve="mongodb",$ve="redis",Vve="couchbase",Gve="couchdb",Bve="cosmosdb",kve="dynamodb",jve="neo4j",Hve="geode",Yve="elasticsearch",qve="memcached",Kve="cockroachdb",YHe=null,qHe=null,KHe=null,WHe=null,QHe=null,zHe=null,XHe=null,JHe=null,ZHe=null,eYe=null,tYe=null,rYe=null,nYe=null,iYe=null,aYe=null,oYe=null,sYe=null,uYe=null,cYe=null,lYe=null,fYe=null,_Ye=null,dYe=null,pYe=null,hYe=null,SYe=null,EYe=null,vYe=null,mYe=null,TYe=null,AYe=null,gYe=null,yYe=null,RYe=null,OYe=null,bYe=null,CYe=null,PYe=null,MYe=null,IYe=null,NYe=null,LYe=null,DYe=null,wYe=null,UYe=null,xYe=null,FYe=null,$Ye=co([tve,rve,nve,ive,ave,ove,sve,uve,cve,lve,fve,_ve,dve,pve,hve,Sve,Eve,vve,mve,Tve,Ave,gve,yve,Rve,Ove,bve,Cve,Pve,Mve,Ive,Nve,Lve,Dve,wve,Uve,xve,Fve,$ve,Vve,Gve,Bve,kve,jve,Hve,Yve,qve,Kve]),Wve="all",Qve="each_quorum",zve="quorum",Xve="local_quorum",Jve="one",Zve="two",eme="three",tme="local_one",rme="any",nme="serial",ime="local_serial",VYe=null,GYe=null,BYe=null,kYe=null,jYe=null,HYe=null,YYe=null,qYe=null,KYe=null,WYe=null,QYe=null,zYe=co([Wve,Qve,zve,Xve,Jve,Zve,eme,tme,rme,nme,ime]),ame="datasource",ome="http",sme="pubsub",ume="timer",cme="other",XYe=null,JYe=null,ZYe=null,e8e=null,t8e=null,r8e=co([ame,ome,sme,ume,cme]),lme="insert",fme="edit",_me="delete",n8e=null,i8e=null,a8e=null,o8e=co([lme,fme,_me]),dme="alibaba_cloud",pme="aws",hme="azure",Sme="gcp",s8e=null,u8e=null,c8e=null,l8e=null,f8e=co([dme,pme,hme,Sme]),Eme="ip_tcp",vme="ip_udp",mme="ip",Tme="unix",Ame="pipe",gme="inproc",yme="other",_8e=null,d8e=null,p8e=null,h8e=null,S8e=null,E8e=null,v8e=null,m8e=co([Eme,vme,mme,Tme,Ame,gme,yme]),Rme="wifi",Ome="wired",bme="cell",Cme="unavailable",Pme="unknown",T8e=null,A8e=null,g8e=null,y8e=null,R8e=null,O8e=co([Rme,Ome,bme,Cme,Pme]),Mme="gprs",Ime="edge",Nme="umts",Lme="cdma",Dme="evdo_0",wme="evdo_a",Ume="cdma2000_1xrtt",xme="hsdpa",Fme="hsupa",$me="hspa",Vme="iden",Gme="evdo_b",Bme="lte",kme="ehrpd",jme="hspap",Hme="gsm",Yme="td_scdma",qme="iwlan",Kme="nr",Wme="nrnsa",Qme="lte_ca",b8e=null,C8e=null,P8e=null,M8e=null,I8e=null,N8e=null,L8e=null,D8e=null,w8e=null,U8e=null,x8e=null,F8e=null,$8e=null,V8e=null,G8e=null,B8e=null,k8e=null,j8e=null,H8e=null,Y8e=null,q8e=null,K8e=co([Mme,Ime,Nme,Lme,Dme,wme,Ume,xme,Fme,$me,Vme,Gme,Bme,kme,jme,Hme,Yme,qme,Kme,Wme,Qme]),zme="1.0",Xme="1.1",Jme="2.0",Zme="SPDY",eTe="QUIC",W8e=null,Q8e=null,z8e=null,X8e=null,J8e=null,Z8e={HTTP_1_0:zme,HTTP_1_1:Xme,HTTP_2_0:Jme,SPDY:Zme,QUIC:eTe},tTe="queue",rTe="topic",eqe=null,tqe=null,rqe=co([tTe,rTe]),nTe="receive",iTe="process",nqe=null,iqe=null,aqe=co([nTe,iTe]),aTe=0,oTe=1,sTe=2,uTe=3,cTe=4,lTe=5,fTe=6,_Te=7,dTe=8,pTe=9,hTe=10,STe=11,ETe=12,vTe=13,mTe=14,TTe=15,ATe=16,oqe=null,sqe=null,uqe=null,cqe=null,lqe=null,fqe=null,_qe=null,dqe=null,pqe=null,hqe=null,Sqe=null,Eqe=null,vqe=null,mqe=null,Tqe=null,Aqe=null,gqe=null,yqe={OK:aTe,CANCELLED:oTe,UNKNOWN:sTe,INVALID_ARGUMENT:uTe,DEADLINE_EXCEEDED:cTe,NOT_FOUND:lTe,ALREADY_EXISTS:fTe,PERMISSION_DENIED:_Te,RESOURCE_EXHAUSTED:dTe,FAILED_PRECONDITION:pTe,ABORTED:hTe,OUT_OF_RANGE:STe,UNIMPLEMENTED:ETe,INTERNAL:vTe,UNAVAILABLE:mTe,DATA_LOSS:TTe,UNAUTHENTICATED:ATe},gTe="SENT",yTe="RECEIVED",Rqe=null,Oqe=null,bqe=co([gTe,yTe]),RTe="exception",jM=function(){return jM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},jM.apply(this,arguments)},OTe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jk=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},bTe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},CTe=function(){function e(t,r,n,i,a,u,c,v,_,h){c===void 0&&(c=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:$M.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=i,this.parentSpanId=u,this.kind=a,this.links=c;var L=Date.now();this._performanceStartTime=R_.now(),this._performanceOffset=L-(this._performanceStartTime+VM()),this._startTimeProvided=v!=null,this.startTime=this._getTime(v??L),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,h!=null&&this.setAttributes(h),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return r==null||this._isSpanEnded()?this:t.length===0?(_r.warn("Invalid attribute key: "+t),this):wk(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(_r.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var r,n;try{for(var i=OTe(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=jk(a.value,2),c=u[0],v=u[1];this.setAttribute(c,v)}}catch(_){r={error:_}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.addEvent=function(t,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return _r.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&_r.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),$k(r)&&($k(n)||(n=r),r=void 0);var i=IT(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var r;return(r=this.links).push.apply(r,bTe([],jk(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=jM({},t),this.status.message!=null&&typeof t.message!="string"&&(_r.warn("Dropping invalid status.message of type '"+typeof t.message+"', expected 'string'"),delete this.status.message),this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){_r.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(t),this._duration=xhe(this.startTime,this.endTime),this._duration[0]<0&&(_r.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&_r.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<=R_.now())return Fk(t+this._performanceOffset);if(typeof t=="number")return Xu(t);if(t instanceof Date)return Xu(t.getTime());if(GM(t))return t;if(this._startTimeProvided)return Xu(Date.now());var r=R_.now()-this._performanceStartTime;return Vk(this.startTime,Xu(r))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,r){var n={};typeof t=="string"?n[kM]=t:t&&(t.code?n[BM]=t.code.toString():t.name&&(n[BM]=t.name),t.message&&(n[kM]=t.message),t.stack&&(n[eve]=t.stack)),n[BM]||n[kM]?this.addEvent(RTe,n,r):_r.warn("Failed to record an exception "+t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&_r.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substring(0,r)},e.prototype._truncateToSize=function(t){var r=this,n=this._attributeValueLengthLimit;return n<=0?(_r.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e}(),O_;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(O_||(O_={}));var LT=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:O_.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),b_=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:O_.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}();function PTe(){return function(e){_r.error(MTe(e))}}function MTe(e){return typeof e=="string"?e:JSON.stringify(ITe(e))}function ITe(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i))}}),r=Object.getPrototypeOf(r);return t}var Hk=PTe();function Cqe(e){Hk=e}function C_(e){try{Hk(e)}catch{}}var HM=function(){function e(t){var r,n,i,a;this._root=t.root,this._root||(C_(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new b_),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new b_,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new LT,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new b_,this._localParentNotSampled=(a=t.localParentNotSampled)!==null&&a!==void 0?a:new LT}return e.prototype.shouldSample=function(t,r,n,i,a,u){var c=ta.getSpanContext(t);return!c||!v_(c)?this._root.shouldSample(t,r,n,i,a,u):c.isRemote?c.traceFlags&Rs.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,a,u):this._remoteParentNotSampled.shouldSample(t,r,n,i,a,u):c.traceFlags&Rs.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,a,u):this._localParentNotSampled.shouldSample(t,r,n,i,a,u)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),Yk=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,r){return{decision:oB(r)&&this._accumulate(r)<this._upperBound?O_.RECORD_AND_SAMPLED:O_.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var i=n*8,a=parseInt(t.slice(i,i+8),16);r=(r^a)>>>0}return r},e}(),NTe=Os.AlwaysOn,P_=1;function qk(){var e=Oh();return{sampler:Kk(e),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function Kk(e){switch(e===void 0&&(e=Oh()),e.OTEL_TRACES_SAMPLER){case Os.AlwaysOn:return new b_;case Os.AlwaysOff:return new LT;case Os.ParentBasedAlwaysOn:return new HM({root:new b_});case Os.ParentBasedAlwaysOff:return new HM({root:new LT});case Os.TraceIdRatio:return new Yk(Wk(e));case Os.ParentBasedTraceIdRatio:return new HM({root:new Yk(Wk(e))});default:return _r.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+NTe+'".'),new b_}}function Wk(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return _r.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+P_+"."),P_;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(_r.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+P_+"."),P_):t<0||t>1?(_r.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+P_+"."),P_):t}function LTe(e){var t={sampler:Kk()},r=qk(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function DTe(e){var t,r,n,i,a,u,c,v,_,h,L,W,Te=Object.assign({},e.spanLimits),me=rhe();return Te.attributeCountLimit=(u=(a=(i=(r=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&r!==void 0?r:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&i!==void 0?i:me.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:me.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:CT,Te.attributeValueLengthLimit=(W=(L=(h=(v=(c=e.spanLimits)===null||c===void 0?void 0:c.attributeValueLengthLimit)!==null&&v!==void 0?v:(_=e.generalLimits)===null||_===void 0?void 0:_.attributeValueLengthLimit)!==null&&h!==void 0?h:me.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&L!==void 0?L:me.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&W!==void 0?W:bT,Object.assign({},e,{spanLimits:Te})}var wTe=8,UTe=16,xTe=function(){function e(){this.generateTraceId=Qk(UTe),this.generateSpanId=Qk(wTe)}return e}(),DT=Array(32);function Qk(e){return function(){for(var r=0;r<e*2;r++)DT[r]=Math.floor(Math.random()*16)+48,DT[r]>=58&&(DT[r]+=39);return String.fromCharCode.apply(null,DT.slice(0,e*2))}}var FTe=function(){function e(t,r,n){this._tracerProvider=n;var i=LTe(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new xTe,this.resource=n.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,r,n){var i,a,u;r===void 0&&(r={}),n===void 0&&(n=_a.active()),r.root&&(n=ta.deleteSpan(n));var c=ta.getSpan(n);if(NM(n)){_r.debug("Instrumentation suppressed, returning Noop Span");var v=ta.wrapSpanContext(iB);return v}var _=c?.spanContext(),h=this._idGenerator.generateSpanId(),L,W,Te;!_||!ta.isSpanContextValid(_)?L=this._idGenerator.generateTraceId():(L=_.traceId,W=_.traceState,Te=_.spanId);var me=(i=r.kind)!==null&&i!==void 0?i:PT.INTERNAL,Oe=((a=r.links)!==null&&a!==void 0?a:[]).map(function(dr){return{context:dr.context,attributes:IT(dr.attributes)}}),He=IT(r.attributes),qe=this._sampler.shouldSample(n,L,t,me,He,Oe);W=(u=qe.traceState)!==null&&u!==void 0?u:W;var We=qe.decision===MT.RECORD_AND_SAMPLED?Rs.SAMPLED:Rs.NONE,ct={traceId:L,spanId:h,traceFlags:We,traceState:W};if(qe.decision===MT.NOT_RECORD){_r.debug("Recording is off, propagating context in a non-recording span");var v=ta.wrapSpanContext(ct);return v}var yt=IT(Object.assign(He,qe.attributes)),jt=new CTe(this,n,t,ct,me,Te,Oe,r.startTime,void 0,yt);return jt},e.prototype.startActiveSpan=function(t,r,n,i){var a,u,c;if(!(arguments.length<2)){arguments.length===2?c=r:arguments.length===3?(a=r,c=n):(a=r,u=n,c=i);var v=u??_a.active(),_=this.startSpan(t,a,v),h=ta.setSpan(v,_);return _a.with(h,c,void 0,_)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),wT=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},zk=function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,r,n=[];try{for(var i=wT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;n.push(u.forceFlush())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(c){Promise.all(n).then(function(){c()}).catch(function(v){C_(v||new Error("MultiSpanProcessor: forceFlush failed")),c()})})},e.prototype.onStart=function(t,r){var n,i;try{for(var a=wT(this._spanProcessors),u=a.next();!u.done;u=a.next()){var c=u.value;c.onStart(t,r)}}catch(v){n={error:v}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(t){var r,n;try{for(var i=wT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;u.onEnd(t)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.shutdown=function(){var t,r,n=[];try{for(var i=wT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;n.push(u.shutdown())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(c,v){Promise.all(n).then(function(){c()},v)})},e}(),$Te=function(){function e(){}return e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),VTe=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),GTe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},BTe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},kTe=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new VTe}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,BTe([this._that],GTe(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),YM;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(YM||(YM={}));function Pqe(e){}var jTe=function(){function e(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=Oh();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new kTe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_r.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Rs.SAMPLED)!==0&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&_r.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(_r.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],a=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),u=0,c=a;u<c;u++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(r,n){var i=setTimeout(function(){n(new Error("Timeout"))},t._exportTimeoutMillis);_a.with(ahe(_a.active()),function(){var a;t._finishedSpans.length<=t._maxExportBatchSize?(a=t._finishedSpans,t._finishedSpans=[]):a=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var u=function(){return t._exporter.export(a,function(L){var W;clearTimeout(i),L.code===YM.SUCCESS?r():n((W=L.error)!==null&&W!==void 0?W:new Error("BatchSpanProcessor: span export failed"))})},c=null,v=0,_=a.length;v<_;v++){var h=a[v];h.resource.asyncAttributesPending&&h.resource.waitForAsyncAttributes&&(c??(c=[]),c.push(h.resource.waitForAsyncAttributes()))}c===null?u():Promise.all(c).then(u,function(L){C_(L),n(L)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var r=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(n){t._isExporting=!1,C_(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis),this._timer,void 0)}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}(),HTe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),YTe=function(e){HTe(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.onInit(n),i}return t.prototype.onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush().catch(function(i){C_(i)})},this._pageHideListener=function(){n.forceFlush().catch(function(i){C_(i)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(jTe),qTe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},KTe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},vl;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(vl||(vl={}));var WTe=function(){function e(t){t===void 0&&(t={});var r,n;this._registeredSpanProcessors=[],this._tracers=new Map;var i=Gpe({},qk(),DTe(t));if(this.resource=(r=i.resource)!==null&&r!==void 0?r:ST.empty(),i.mergeResourceWithDefaults&&(this.resource=ST.default().merge(this.resource)),this._config=Object.assign({},i,{resource:this.resource}),!((n=t.spanProcessors)===null||n===void 0)&&n.length)this._registeredSpanProcessors=KTe([],qTe(t.spanProcessors),!1),this.activeSpanProcessor=new zk(this._registeredSpanProcessors);else{var a=this._buildExporterFromEnv();if(a!==void 0){var u=new YTe(a);this.activeSpanProcessor=u}else this.activeSpanProcessor=new $Te}}return e.prototype.getTracer=function(t,r,n){var i=t+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._tracers.has(i)||this._tracers.set(i,new FTe({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(r){return _r.error("Error while trying to shutdown current span processor",r)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new zk(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),ta.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&_a.setGlobalContextManager(t.contextManager),t.propagator&&y_.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(n){return new Promise(function(i){var a,u=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),a=vl.timeout},t);n.forceFlush().then(function(){clearTimeout(u),a!==vl.timeout&&(a=vl.resolved,i(a))}).catch(function(c){clearTimeout(u),a=vl.error,i(c)})})});return new Promise(function(n,i){Promise.all(r).then(function(a){var u=a.filter(function(c){return c!==vl.resolved});u.length>0?i(u):n()}).catch(function(a){return i([a])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return(r=this.constructor._registeredPropagators.get(t))===null||r===void 0?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return(r=this.constructor._registeredExporters.get(t))===null||r===void 0?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set(Oh().OTEL_PROPAGATORS)),n=r.map(function(a){var u=t._getPropagator(a);return u||_r.warn('Propagator "'+a+'" requested through environment variable is unavailable.'),u}),i=n.reduce(function(a,u){return u&&a.push(u),a},[]);if(i.length!==0)return r.length===1?i[0]:new ihe({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=Oh().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var r=this._getSpanExporter(t);return r||_r.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},e._registeredPropagators=new Map([["tracecontext",function(){return new ghe}],["baggage",function(){return new Ihe}]]),e._registeredExporters=new Map,e}(),QTe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},zTe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},XTe=function(){function e(){this._enabled=!1,this._currentContext=E_}return e.prototype._bindFunction=function(t,r){t===void 0&&(t=E_);var n=this,i=function(){for(var a=this,u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return n.with(t,function(){return r.apply(a,u)})};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r},e.prototype.disable=function(){return this._currentContext=E_,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=E_,this)},e.prototype.with=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var u=this._currentContext;this._currentContext=t||E_;try{return r.call.apply(r,zTe([n],QTe(i),!1))}finally{this._currentContext=u}},e}(),JTe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ZTe=function(e){JTe(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,r)||this;if(r.contextManager)throw"contextManager should be defined in register method not in constructor";if(r.propagator)throw"propagator should be defined in register method not in constructor";return n}return t.prototype.register=function(r){r===void 0&&(r={}),r.contextManager===void 0&&(r.contextManager=new XTe),r.contextManager&&r.contextManager.enable(),e.prototype.register.call(this,r)},t}(WTe);function ml(e){let t={};const r=e.length;for(let n=0;n<r;n++){const i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}const eAe="cloud.provider",tAe="cloud.account.id",rAe="cloud.region",nAe="cloud.availability_zone",iAe="cloud.platform",aAe="aws.ecs.container.arn",oAe="aws.ecs.cluster.arn",sAe="aws.ecs.launchtype",uAe="aws.ecs.task.arn",cAe="aws.ecs.task.family",lAe="aws.ecs.task.revision",fAe="aws.eks.cluster.arn",_Ae="aws.log.group.names",dAe="aws.log.group.arns",pAe="aws.log.stream.names",hAe="aws.log.stream.arns",SAe="container.name",EAe="container.id",vAe="container.runtime",mAe="container.image.name",TAe="container.image.tag",Xk="deployment.environment",AAe="device.id",gAe="device.model.identifier",yAe="device.model.name",RAe="faas.name",OAe="faas.id",bAe="faas.version",CAe="faas.instance",PAe="faas.max_memory",MAe="host.id",IAe="host.name",NAe="host.type",LAe="host.arch",DAe="host.image.name",wAe="host.image.id",UAe="host.image.version",xAe="k8s.cluster.name",FAe="k8s.node.name",$Ae="k8s.node.uid",VAe="k8s.namespace.name",GAe="k8s.pod.uid",BAe="k8s.pod.name",kAe="k8s.container.name",jAe="k8s.replicaset.uid",HAe="k8s.replicaset.name",YAe="k8s.deployment.uid",qAe="k8s.deployment.name",KAe="k8s.statefulset.uid",WAe="k8s.statefulset.name",QAe="k8s.daemonset.uid",zAe="k8s.daemonset.name",XAe="k8s.job.uid",JAe="k8s.job.name",ZAe="k8s.cronjob.uid",ege="k8s.cronjob.name",tge="os.type",rge="os.description",nge="os.name",ige="os.version",age="process.pid",oge="process.executable.name",sge="process.executable.path",uge="process.command",cge="process.command_line",lge="process.command_args",fge="process.owner",_ge="process.runtime.name",dge="process.runtime.version",pge="process.runtime.description",Jk="service.name",Zk="service.namespace",hge="service.instance.id",ej="service.version",Sge="telemetry.sdk.name",tj="telemetry.sdk.language",Ege="telemetry.sdk.version",vge="telemetry.auto.version",mge="webengine.name",Tge="webengine.version",Age="webengine.description",Mqe=null,Iqe=null,Nqe=null,Lqe=null,Dqe=null,wqe=null,Uqe=null,xqe=null,Fqe=null,$qe=null,Vqe=null,Gqe=null,Bqe=null,kqe=null,jqe=null,Hqe=null,Yqe=null,qqe=null,Kqe=null,Wqe=null,Qqe=null,gge=Xk,zqe=null,Xqe=null,Jqe=null,Zqe=null,e2e=null,t2e=null,r2e=null,n2e=null,i2e=null,a2e=null,o2e=null,s2e=null,u2e=null,c2e=null,l2e=null,f2e=null,_2e=null,d2e=null,p2e=null,h2e=null,S2e=null,E2e=null,v2e=null,m2e=null,T2e=null,A2e=null,g2e=null,y2e=null,R2e=null,O2e=null,b2e=null,C2e=null,P2e=null,M2e=null,I2e=null,N2e=null,L2e=null,D2e=null,w2e=null,U2e=null,x2e=null,F2e=null,$2e=null,V2e=null,G2e=null,B2e=null,k2e=null,j2e=null,yge=Jk,Rge=Zk,H2e=null,Oge=ej,Y2e=null,bge=tj,q2e=null,K2e=null,W2e=null,Q2e=null,z2e=null,X2e=ml([eAe,tAe,rAe,nAe,iAe,aAe,oAe,sAe,uAe,cAe,lAe,fAe,_Ae,dAe,pAe,hAe,SAe,EAe,vAe,mAe,TAe,Xk,AAe,gAe,yAe,RAe,OAe,bAe,CAe,PAe,MAe,IAe,NAe,LAe,DAe,wAe,UAe,xAe,FAe,$Ae,VAe,GAe,BAe,kAe,jAe,HAe,YAe,qAe,KAe,WAe,QAe,zAe,XAe,JAe,ZAe,ege,tge,rge,nge,ige,age,oge,sge,uge,cge,lge,fge,_ge,dge,pge,Jk,Zk,hge,ej,Sge,tj,Ege,vge,mge,Tge,Age]),Cge="alibaba_cloud",Pge="aws",Mge="azure",Ige="gcp",J2e=null,Z2e=null,eKe=null,tKe=null,rKe=ml([Cge,Pge,Mge,Ige]),Nge="alibaba_cloud_ecs",Lge="alibaba_cloud_fc",Dge="aws_ec2",wge="aws_ecs",Uge="aws_eks",xge="aws_lambda",Fge="aws_elastic_beanstalk",$ge="azure_vm",Vge="azure_container_instances",Gge="azure_aks",Bge="azure_functions",kge="azure_app_service",jge="gcp_compute_engine",Hge="gcp_cloud_run",Yge="gcp_kubernetes_engine",qge="gcp_cloud_functions",Kge="gcp_app_engine",nKe=null,iKe=null,aKe=null,oKe=null,sKe=null,uKe=null,cKe=null,lKe=null,fKe=null,_Ke=null,dKe=null,pKe=null,hKe=null,SKe=null,EKe=null,vKe=null,mKe=null,TKe=ml([Nge,Lge,Dge,wge,Uge,xge,Fge,$ge,Vge,Gge,Bge,kge,jge,Hge,Yge,qge,Kge]),Wge="ec2",Qge="fargate",AKe=null,gKe=null,yKe=ml([Wge,Qge]),zge="amd64",Xge="arm32",Jge="arm64",Zge="ia64",eye="ppc32",tye="ppc64",rye="x86",RKe=null,OKe=null,bKe=null,CKe=null,PKe=null,MKe=null,IKe=null,NKe=ml([zge,Xge,Jge,Zge,eye,tye,rye]),nye="windows",iye="linux",aye="darwin",oye="freebsd",sye="netbsd",uye="openbsd",cye="dragonflybsd",lye="hpux",fye="aix",_ye="solaris",dye="z_os",LKe=null,DKe=null,wKe=null,UKe=null,xKe=null,FKe=null,$Ke=null,VKe=null,GKe=null,BKe=null,kKe=null,jKe=ml([nye,iye,aye,oye,sye,uye,cye,lye,fye,_ye,dye]),pye="cpp",hye="dotnet",Sye="erlang",Eye="go",vye="java",mye="nodejs",Tye="php",Aye="python",gye="ruby",yye="webjs",HKe=null,YKe=null,qKe=null,KKe=null,WKe=null,QKe=null,zKe=null,XKe=null,JKe=null,ZKe=null,eWe=ml([pye,hye,Sye,Eye,vye,mye,Tye,Aye,gye,yye]);var Rye=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Oye=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};function bye(e,t,r){var n,i;try{i=e()}catch(a){n=a}finally{if(t(n,i),n&&!r)throw n;return i}}function tWe(e,t,r){return Rye(this,void 0,void 0,function(){var n,i,a;return Oye(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,3,4]),[4,e()];case 1:return i=u.sent(),[3,4];case 2:return a=u.sent(),n=a,[3,4];case 3:if(t(n,i),n&&!r)throw n;return[2,i];case 4:return[2]}})})}function rj(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Tl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cye=function(){function e(){}return e.prototype.createGauge=function(t,r){return xye},e.prototype.createHistogram=function(t,r){return Fye},e.prototype.createCounter=function(t,r){return Uye},e.prototype.createUpDownCounter=function(t,r){return $ye},e.prototype.createObservableGauge=function(t,r){return Gye},e.prototype.createObservableCounter=function(t,r){return Vye},e.prototype.createObservableUpDownCounter=function(t,r){return Bye},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),UT=function(){function e(){}return e}(),Pye=function(e){Tl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(UT),Mye=function(e){Tl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(UT),Iye=function(e){Tl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(UT),Nye=function(e){Tl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(UT),qM=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),Lye=function(e){Tl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qM),Dye=function(e){Tl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qM),wye=function(e){Tl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qM),nj=new Cye,Uye=new Pye,xye=new Iye,Fye=new Nye,$ye=new Mye,Vye=new Lye,Gye=new Dye,Bye=new wye;function rWe(){return nj}var kye=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return nj},e}(),jye=new kye,KM="metrics",Hye=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return dh(KM,t,ys.instance())},e.prototype.getMeterProvider=function(){return cl(KM)||jye},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){ph(KM,ys.instance())},e}(),Yye=Hye.getInstance(),qye=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{},xT=Symbol.for("io.opentelemetry.js.api.logs"),bh=qye;function Kye(e,t,r){return function(n){return n===e?t:r}}var ij=1,Wye=function(){function e(){}return e.prototype.getLogger=function(t,r,n){return new xB},e}(),aj=new Wye,Qye=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return bh[xT]?this.getLoggerProvider():(bh[xT]=Kye(ij,t,aj),t)},e.prototype.getLoggerProvider=function(){var t,r;return(r=(t=bh[xT])===null||t===void 0?void 0:t.call(bh,ij))!==null&&r!==void 0?r:aj},e.prototype.getLogger=function(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)},e.prototype.disable=function(){delete bh[xT]},e}(),zye=Qye.getInstance(),FT=p(8821),$T=function(){return $T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$T.apply(this,arguments)},Xye=function(){function e(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this._wrap=FT.wrap,this._unwrap=FT.unwrap,this._massWrap=FT.massWrap,this._massUnwrap=FT.massUnwrap,this._config=$T({enabled:!0},n),this._diag=_r.createComponentLogger({namespace:t}),this._tracer=ta.getTracer(t,r),this._meter=Yye.getMeter(t,r),this._logger=zye.getLogger(t,r),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var t,r=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(r)?r:[r]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){this._config=$T({},t)},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(t,r,n,i){if(!!t)try{t(n,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}},e}(),Jye=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zye=function(e){Jye(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a._config.enabled&&a.enable(),a}return t}(Xye),eRe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function oj(e,t){return typeof t=="string"?e===t:!!e.match(t)}function tRe(e,t){var r,n;if(!t)return!1;try{for(var i=eRe(t),a=i.next();!a.done;a=i.next()){var u=a.value;if(oj(e,u))return!0}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1}function lo(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var rRe="aws.lambda.invoked_arn",nRe="db.system",iRe="db.connection_string",aRe="db.user",oRe="db.jdbc.driver_classname",sRe="db.name",uRe="db.statement",cRe="db.operation",lRe="db.mssql.instance_name",fRe="db.cassandra.keyspace",_Re="db.cassandra.page_size",dRe="db.cassandra.consistency_level",pRe="db.cassandra.table",hRe="db.cassandra.idempotence",SRe="db.cassandra.speculative_execution_count",ERe="db.cassandra.coordinator.id",vRe="db.cassandra.coordinator.dc",mRe="db.hbase.namespace",TRe="db.redis.database_index",ARe="db.mongodb.collection",gRe="db.sql.table",yRe="exception.type",RRe="exception.message",ORe="exception.stacktrace",bRe="exception.escaped",CRe="faas.trigger",PRe="faas.execution",MRe="faas.document.collection",IRe="faas.document.operation",NRe="faas.document.time",LRe="faas.document.name",DRe="faas.time",wRe="faas.cron",URe="faas.coldstart",xRe="faas.invoked_name",FRe="faas.invoked_provider",$Re="faas.invoked_region",VRe="net.transport",GRe="net.peer.ip",BRe="net.peer.port",kRe="net.peer.name",jRe="net.host.ip",HRe="net.host.port",YRe="net.host.name",qRe="net.host.connection.type",KRe="net.host.connection.subtype",WRe="net.host.carrier.name",QRe="net.host.carrier.mcc",zRe="net.host.carrier.mnc",XRe="net.host.carrier.icc",JRe="peer.service",ZRe="enduser.id",eOe="enduser.role",tOe="enduser.scope",rOe="thread.id",nOe="thread.name",iOe="code.function",aOe="code.namespace",oOe="code.filepath",sOe="code.lineno",sj="http.method",uj="http.url",uOe="http.target",cj="http.host",lj="http.scheme",fj="http.status_code",cOe="http.flavor",_j="http.user_agent",lOe="http.request_content_length",fOe="http.request_content_length_uncompressed",dj="http.response_content_length",pj="http.response_content_length_uncompressed",_Oe="http.server_name",dOe="http.route",pOe="http.client_ip",hOe="aws.dynamodb.table_names",SOe="aws.dynamodb.consumed_capacity",EOe="aws.dynamodb.item_collection_metrics",vOe="aws.dynamodb.provisioned_read_capacity",mOe="aws.dynamodb.provisioned_write_capacity",TOe="aws.dynamodb.consistent_read",AOe="aws.dynamodb.projection",gOe="aws.dynamodb.limit",yOe="aws.dynamodb.attributes_to_get",ROe="aws.dynamodb.index_name",OOe="aws.dynamodb.select",bOe="aws.dynamodb.global_secondary_indexes",COe="aws.dynamodb.local_secondary_indexes",POe="aws.dynamodb.exclusive_start_table",MOe="aws.dynamodb.table_count",IOe="aws.dynamodb.scan_forward",NOe="aws.dynamodb.segment",LOe="aws.dynamodb.total_segments",DOe="aws.dynamodb.count",wOe="aws.dynamodb.scanned_count",UOe="aws.dynamodb.attribute_definitions",xOe="aws.dynamodb.global_secondary_index_updates",FOe="messaging.system",$Oe="messaging.destination",VOe="messaging.destination_kind",GOe="messaging.temp_destination",BOe="messaging.protocol",kOe="messaging.protocol_version",jOe="messaging.url",HOe="messaging.message_id",YOe="messaging.conversation_id",qOe="messaging.message_payload_size_bytes",KOe="messaging.message_payload_compressed_size_bytes",WOe="messaging.operation",QOe="messaging.consumer_id",zOe="messaging.rabbitmq.routing_key",XOe="messaging.kafka.message_key",JOe="messaging.kafka.consumer_group",ZOe="messaging.kafka.client_id",ebe="messaging.kafka.partition",tbe="messaging.kafka.tombstone",rbe="rpc.system",nbe="rpc.service",ibe="rpc.method",abe="rpc.grpc.status_code",obe="rpc.jsonrpc.version",sbe="rpc.jsonrpc.request_id",ube="rpc.jsonrpc.error_code",cbe="rpc.jsonrpc.error_message",lbe="message.type",fbe="message.id",_be="message.compressed_size",dbe="message.uncompressed_size",nWe=null,iWe=null,aWe=null,oWe=null,sWe=null,uWe=null,cWe=null,lWe=null,fWe=null,_We=null,dWe=null,pWe=null,hWe=null,SWe=null,EWe=null,vWe=null,mWe=null,TWe=null,AWe=null,gWe=null,yWe=null,RWe=null,OWe=null,bWe=null,CWe=null,PWe=null,MWe=null,IWe=null,NWe=null,LWe=null,DWe=null,wWe=null,UWe=null,xWe=null,FWe=null,$We=null,VWe=null,GWe=null,BWe=null,kWe=null,jWe=null,HWe=null,YWe=null,qWe=null,KWe=null,WWe=null,QWe=null,zWe=null,XWe=null,JWe=null,ZWe=null,eQe=null,tQe=null,rQe=null,nQe=null,iQe=null,aQe=null,oQe=null,sQe=null,uQe=null,pbe=sj,hbe=uj,cQe=null,Sbe=cj,Ebe=lj,vbe=fj,lQe=null,mbe=_j,fQe=null,_Qe=null,Tbe=dj,Abe=pj,dQe=null,pQe=null,hQe=null,SQe=null,EQe=null,vQe=null,mQe=null,TQe=null,AQe=null,gQe=null,yQe=null,RQe=null,OQe=null,bQe=null,CQe=null,PQe=null,MQe=null,IQe=null,NQe=null,LQe=null,DQe=null,wQe=null,UQe=null,xQe=null,FQe=null,$Qe=null,VQe=null,GQe=null,BQe=null,kQe=null,jQe=null,HQe=null,YQe=null,qQe=null,KQe=null,WQe=null,QQe=null,zQe=null,XQe=null,JQe=null,ZQe=null,e3e=null,t3e=null,r3e=null,n3e=null,i3e=null,a3e=null,o3e=null,s3e=null,u3e=null,c3e=null,l3e=null,f3e=null,_3e=null,d3e=null,p3e=null,h3e=lo([rRe,nRe,iRe,aRe,oRe,sRe,uRe,cRe,lRe,fRe,_Re,dRe,pRe,hRe,SRe,ERe,vRe,mRe,TRe,ARe,gRe,yRe,RRe,ORe,bRe,CRe,PRe,MRe,IRe,NRe,LRe,DRe,wRe,URe,xRe,FRe,$Re,VRe,GRe,BRe,kRe,jRe,HRe,YRe,qRe,KRe,WRe,QRe,zRe,XRe,JRe,ZRe,eOe,tOe,rOe,nOe,iOe,aOe,oOe,sOe,sj,uj,uOe,cj,lj,fj,cOe,_j,lOe,fOe,dj,pj,_Oe,dOe,pOe,hOe,SOe,EOe,vOe,mOe,TOe,AOe,gOe,yOe,ROe,OOe,bOe,COe,POe,MOe,IOe,NOe,LOe,DOe,wOe,UOe,xOe,FOe,$Oe,VOe,GOe,BOe,kOe,jOe,HOe,YOe,qOe,KOe,WOe,QOe,zOe,XOe,JOe,ZOe,ebe,tbe,rbe,nbe,ibe,abe,obe,sbe,ube,cbe,lbe,fbe,_be,dbe]),gbe="other_sql",ybe="mssql",Rbe="mysql",Obe="oracle",bbe="db2",Cbe="postgresql",Pbe="redshift",Mbe="hive",Ibe="cloudscape",Nbe="hsqldb",Lbe="progress",Dbe="maxdb",wbe="hanadb",Ube="ingres",xbe="firstsql",Fbe="edb",$be="cache",Vbe="adabas",Gbe="firebird",Bbe="derby",kbe="filemaker",jbe="informix",Hbe="instantdb",Ybe="interbase",qbe="mariadb",Kbe="netezza",Wbe="pervasive",Qbe="pointbase",zbe="sqlite",Xbe="sybase",Jbe="teradata",Zbe="vertica",eCe="h2",tCe="coldfusion",rCe="cassandra",nCe="hbase",iCe="mongodb",aCe="redis",oCe="couchbase",sCe="couchdb",uCe="cosmosdb",cCe="dynamodb",lCe="neo4j",fCe="geode",_Ce="elasticsearch",dCe="memcached",pCe="cockroachdb",S3e=null,E3e=null,v3e=null,m3e=null,T3e=null,A3e=null,g3e=null,y3e=null,R3e=null,O3e=null,b3e=null,C3e=null,P3e=null,M3e=null,I3e=null,N3e=null,L3e=null,D3e=null,w3e=null,U3e=null,x3e=null,F3e=null,$3e=null,V3e=null,G3e=null,B3e=null,k3e=null,j3e=null,H3e=null,Y3e=null,q3e=null,K3e=null,W3e=null,Q3e=null,z3e=null,X3e=null,J3e=null,Z3e=null,eze=null,tze=null,rze=null,nze=null,ize=null,aze=null,oze=null,sze=null,uze=null,cze=lo([gbe,ybe,Rbe,Obe,bbe,Cbe,Pbe,Mbe,Ibe,Nbe,Lbe,Dbe,wbe,Ube,xbe,Fbe,$be,Vbe,Gbe,Bbe,kbe,jbe,Hbe,Ybe,qbe,Kbe,Wbe,Qbe,zbe,Xbe,Jbe,Zbe,eCe,tCe,rCe,nCe,iCe,aCe,oCe,sCe,uCe,cCe,lCe,fCe,_Ce,dCe,pCe]),hCe="all",SCe="each_quorum",ECe="quorum",vCe="local_quorum",mCe="one",TCe="two",ACe="three",gCe="local_one",yCe="any",RCe="serial",OCe="local_serial",lze=null,fze=null,_ze=null,dze=null,pze=null,hze=null,Sze=null,Eze=null,vze=null,mze=null,Tze=null,Aze=lo([hCe,SCe,ECe,vCe,mCe,TCe,ACe,gCe,yCe,RCe,OCe]),bCe="datasource",CCe="http",PCe="pubsub",MCe="timer",ICe="other",gze=null,yze=null,Rze=null,Oze=null,bze=null,Cze=lo([bCe,CCe,PCe,MCe,ICe]),NCe="insert",LCe="edit",DCe="delete",Pze=null,Mze=null,Ize=null,Nze=lo([NCe,LCe,DCe]),wCe="alibaba_cloud",UCe="aws",xCe="azure",FCe="gcp",Lze=null,Dze=null,wze=null,Uze=null,xze=lo([wCe,UCe,xCe,FCe]),$Ce="ip_tcp",VCe="ip_udp",GCe="ip",BCe="unix",kCe="pipe",jCe="inproc",HCe="other",Fze=null,$ze=null,Vze=null,Gze=null,Bze=null,kze=null,jze=null,Hze=lo([$Ce,VCe,GCe,BCe,kCe,jCe,HCe]),YCe="wifi",qCe="wired",KCe="cell",WCe="unavailable",QCe="unknown",Yze=null,qze=null,Kze=null,Wze=null,Qze=null,zze=lo([YCe,qCe,KCe,WCe,QCe]),zCe="gprs",XCe="edge",JCe="umts",ZCe="cdma",ePe="evdo_0",tPe="evdo_a",rPe="cdma2000_1xrtt",nPe="hsdpa",iPe="hsupa",aPe="hspa",oPe="iden",sPe="evdo_b",uPe="lte",cPe="ehrpd",lPe="hspap",fPe="gsm",_Pe="td_scdma",dPe="iwlan",pPe="nr",hPe="nrnsa",SPe="lte_ca",Xze=null,Jze=null,Zze=null,e4e=null,t4e=null,r4e=null,n4e=null,i4e=null,a4e=null,o4e=null,s4e=null,u4e=null,c4e=null,l4e=null,f4e=null,_4e=null,d4e=null,p4e=null,h4e=null,S4e=null,E4e=null,v4e=lo([zCe,XCe,JCe,ZCe,ePe,tPe,rPe,nPe,iPe,aPe,oPe,sPe,uPe,cPe,lPe,fPe,_Pe,dPe,pPe,hPe,SPe]),EPe="1.0",vPe="1.1",mPe="2.0",TPe="SPDY",APe="QUIC",m4e=null,T4e=null,A4e=null,g4e=null,y4e=null,R4e={HTTP_1_0:EPe,HTTP_1_1:vPe,HTTP_2_0:mPe,SPDY:TPe,QUIC:APe},gPe="queue",yPe="topic",O4e=null,b4e=null,C4e=lo([gPe,yPe]),RPe="receive",OPe="process",P4e=null,M4e=null,I4e=lo([RPe,OPe]),bPe=0,CPe=1,PPe=2,MPe=3,IPe=4,NPe=5,LPe=6,DPe=7,wPe=8,UPe=9,xPe=10,FPe=11,$Pe=12,VPe=13,GPe=14,BPe=15,kPe=16,N4e=null,L4e=null,D4e=null,w4e=null,U4e=null,x4e=null,F4e=null,$4e=null,V4e=null,G4e=null,B4e=null,k4e=null,j4e=null,H4e=null,Y4e=null,q4e=null,K4e=null,W4e={OK:bPe,CANCELLED:CPe,UNKNOWN:PPe,INVALID_ARGUMENT:MPe,DEADLINE_EXCEEDED:IPe,NOT_FOUND:NPe,ALREADY_EXISTS:LPe,PERMISSION_DENIED:DPe,RESOURCE_EXHAUSTED:wPe,FAILED_PRECONDITION:UPe,ABORTED:xPe,OUT_OF_RANGE:FPe,UNIMPLEMENTED:$Pe,INTERNAL:VPe,UNAVAILABLE:GPe,DATA_LOSS:BPe,UNAUTHENTICATED:kPe},jPe="SENT",HPe="RECEIVED",Q4e=null,z4e=null,X4e=lo([jPe,HPe]),$n;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})($n||($n={}));var WM;function YPe(){return WM||(WM=document.createElement("a")),WM}function QM(e,t){return t in e}function tu(e,t,r,n){var i=void 0,a=void 0;QM(r,t)&&typeof r[t]=="number"&&(i=r[t]);var u=n||$n.FETCH_START;if(QM(r,u)&&typeof r[u]=="number"&&(a=r[u]),i!==void 0&&a!==void 0&&i>=a)return e.addEvent(t,i),e}function hj(e,t){tu(e,$n.FETCH_START,t),tu(e,$n.DOMAIN_LOOKUP_START,t),tu(e,$n.DOMAIN_LOOKUP_END,t),tu(e,$n.CONNECT_START,t),QM(t,"name")&&t.name.startsWith("https:")&&tu(e,$n.SECURE_CONNECTION_START,t),tu(e,$n.CONNECT_END,t),tu(e,$n.REQUEST_START,t),tu(e,$n.RESPONSE_START,t),tu(e,$n.RESPONSE_END,t);var r=t[$n.ENCODED_BODY_SIZE];r!==void 0&&e.setAttribute(Tbe,r);var n=t[$n.DECODED_BODY_SIZE];n!==void 0&&r!==n&&e.setAttribute(Abe,n)}function qPe(e){return e.slice().sort(function(t,r){var n=t[$n.FETCH_START],i=r[$n.FETCH_START];return n>i?1:n<i?-1:0})}function Sj(){return typeof location<"u"?location.origin:void 0}function KPe(e,t,r,n,i,a){i===void 0&&(i=new WeakSet);var u=Ju(e);e=u.toString();var c=QPe(e,t,r,n,i,a);if(c.length===0)return{mainRequest:void 0};if(c.length===1)return{mainRequest:c[0]};var v=qPe(c);if(u.origin!==Sj()&&v.length>1){var _=v[0],h=WPe(v,_[$n.RESPONSE_END],r),L=_[$n.RESPONSE_END],W=h[$n.FETCH_START];return W<L&&(h=_,_=void 0),{corsPreFlightRequest:_,mainRequest:h}}else return{mainRequest:c[0]}}function WPe(e,t,r){for(var n=zu(r),i=zu(Sl(t)),a=e[1],u,c=e.length,v=1;v<c;v++){var _=e[v],h=zu(Sl(_[$n.FETCH_START])),L=zu(Sl(_[$n.RESPONSE_END])),W=n-L;h>=i&&(!u||W<u)&&(u=W,a=_)}return a}function QPe(e,t,r,n,i,a){var u=zu(t),c=zu(r),v=n.filter(function(_){var h=zu(Sl(_[$n.FETCH_START])),L=zu(Sl(_[$n.RESPONSE_END]));return _.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&_.name===e&&h>=u&&L<=c});return v.length>0&&(v=v.filter(function(_){return!i.has(_)})),v}function Ju(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var t=YPe();return t.href=e,t}function J4e(e){var t=Ju(e);return t.href}function zPe(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var r=JPe(e,t);if(t&&r.indexOf("@id")>0)return r;var n="";return e.parentNode&&(n+=zPe(e.parentNode,!1)),n+=r,n}function XPe(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var r=Array.from(e.parentNode.childNodes);return r=r.filter(function(n){var i=n.localName;return t.indexOf(n.nodeType)>=0&&i===e.localName}),r.length>=1?r.indexOf(e)+1:0}function JPe(e,t){var r=e.nodeType,n=XPe(e),i="";if(r===Node.ELEMENT_NODE){var a=e.getAttribute("id");if(t&&a)return'//*[@id="'+a+'"]';i=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)i="text()";else if(r===Node.COMMENT_NODE)i="comment()";else return"";return i&&n>1?"/"+i+"["+n+"]":"/"+i}function ZPe(e,t){var r=t||[];(typeof r=="string"||r instanceof RegExp)&&(r=[r]);var n=Ju(e);return n.origin===Sj()?!0:r.some(function(i){return oj(e,i)})}var ru;(function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"})(ru||(ru={}));var Ej="0.52.1",zM;(function(e){e.HTTP_STATUS_TEXT="http.status_text"})(zM||(zM={}));var eMe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),tMe=300,rMe=function(e){eMe(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,"@opentelemetry/instrumentation-xml-http-request",Ej,r)||this;return n.component="xml-http-request",n.version=Ej,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return t.prototype.init=function(){},t.prototype._addHeaders=function(r,n){var i=Ju(n).href;if(!ZPe(i,this.getConfig().propagateTraceHeaderCorsUrls)){var a={};y_.inject(_a.active(),a),Object.keys(a).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}var u={};y_.inject(_a.active(),u),Object.keys(u).forEach(function(c){r.setRequestHeader(c,String(u[c]))})},t.prototype._addChildSpan=function(r,n){var i=this;_a.with(ta.setSpan(_a.active(),r),function(){var a=i.tracer.startSpan("CORS Preflight",{startTime:n[$n.FETCH_START]});i.getConfig().ignoreNetworkEvents||hj(a,n),a.end(n[$n.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(r,n,i){if(typeof i=="string"){var a=Ju(i);n.status!==void 0&&r.setAttribute(vbe,n.status),n.statusText!==void 0&&r.setAttribute(zM.HTTP_STATUS_TEXT,n.statusText),r.setAttribute(Sbe,a.host),r.setAttribute(Ebe,a.protocol.replace(":","")),r.setAttribute(mbe,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(r,n){var i=this,a=this.getConfig().applyCustomAttributesOnSpan;typeof a=="function"&&bye(function(){return a(r,n)},function(u){!u||i._diag.error("applyCustomAttributesOnSpan",u)},!0)},t.prototype._addResourceObserver=function(r,n){var i=this._xhrMem.get(r);!i||typeof PerformanceObserver!="function"||typeof PerformanceResourceTiming!="function"||(i.createdResources={observer:new PerformanceObserver(function(a){var u=a.getEntries(),c=Ju(n);u.forEach(function(v){v.initiatorType==="xmlhttprequest"&&v.name===c.href&&i.createdResources&&i.createdResources.entries.push(v)})}),entries:[]},i.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(yh.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(r,n,i,a,u){if(!(!i||!a||!u||!r.createdResources)){var c=r.createdResources.entries;(!c||!c.length)&&(c=yh.getEntriesByType("resource"));var v=KPe(Ju(i).href,a,u,c,this._usedResources);if(v.mainRequest){var _=v.mainRequest;this._markResourceAsUsed(_);var h=v.corsPreFlightRequest;h&&(this._addChildSpan(n,h),this._markResourceAsUsed(h)),this.getConfig().ignoreNetworkEvents||hj(n,_)}}},t.prototype._cleanPreviousSpanInformation=function(r){var n=this._xhrMem.get(r);if(n){var i=n.callbackToRemoveEvents;i&&i(),this._xhrMem.delete(r)}},t.prototype._createSpan=function(r,n,i){var a;if(tRe(n,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var u=i.toUpperCase(),c=this.tracer.startSpan(u,{kind:PT.CLIENT,attributes:(a={},a[pbe]=i,a[hbe]=Ju(n).toString(),a)});return c.addEvent(ru.METHOD_OPEN),this._cleanPreviousSpanInformation(r),this._xhrMem.set(r,{span:c,spanUrl:n}),c},t.prototype._markResourceAsUsed=function(r){this._usedResources.add(r)},t.prototype._patchOpen=function(){var r=this;return function(n){var i=r;return function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var v=u[0],_=u[1];return i._createSpan(this,_,v),n.apply(this,u)}}},t.prototype._patchSend=function(){var r=this;function n(h,L,W,Te){var me=L.callbackToRemoveEvents;typeof me=="function"&&me();var Oe=L.span,He=L.spanUrl,qe=L.sendStartTime;Oe&&(r._findResourceAndAddNetworkEvents(L,Oe,He,qe,W),Oe.addEvent(h,Te),r._addFinalSpanAttributes(Oe,L,He),Oe.end(Te),r._tasksCount--),r._clearResources()}function i(h,L){var W=r._xhrMem.get(L);if(!!W){W.status=L.status,W.statusText=L.statusText,r._xhrMem.delete(L),W.span&&r._applyAttributesAfterXHR(W.span,L);var Te=AM(),me=Date.now();setTimeout(function(){n(h,W,Te,me)},tMe)}}function a(){i(ru.EVENT_ERROR,this)}function u(){i(ru.EVENT_ABORT,this)}function c(){i(ru.EVENT_TIMEOUT,this)}function v(){this.status<299?i(ru.EVENT_LOAD,this):i(ru.EVENT_ERROR,this)}function _(h){h.removeEventListener("abort",u),h.removeEventListener("error",a),h.removeEventListener("load",v),h.removeEventListener("timeout",c);var L=r._xhrMem.get(h);L&&(L.callbackToRemoveEvents=void 0)}return function(h){return function(){for(var W=this,Te=[],me=0;me<arguments.length;me++)Te[me]=arguments[me];var Oe=r._xhrMem.get(this);if(!Oe)return h.apply(this,Te);var He=Oe.span,qe=Oe.spanUrl;return He&&qe&&_a.with(ta.setSpan(_a.active(),He),function(){r._tasksCount++,Oe.sendStartTime=AM(),He.addEvent(ru.METHOD_SEND),W.addEventListener("abort",u),W.addEventListener("error",a),W.addEventListener("load",v),W.addEventListener("timeout",c),Oe.callbackToRemoveEvents=function(){_(W),Oe.createdResources&&Oe.createdResources.observer.disconnect()},r._addHeaders(W,qe),r._addResourceObserver(W,qe)}),h.apply(this,Te)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),rj(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),rj(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t}(Zye);const nMe="https?://api-gateway.[a-zA-Z]+.icanbwell.com",vj=new RegExp(`^(?!${nMe})`);function Z4e(e){return vj.test(e)}function iMe(e){return I9({node:()=>null,browser:()=>new rMe({ignoreUrls:[vj],propagateTraceHeaderCorsUrls:[e.graphQL.apiUrl,e.graphQL.unauthApiUrl]})})}var bs=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},XM=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},M_,I_,Ch,VT,mj,Tj,Aj,gj;class aMe{constructor(t){M_.add(this),I_.set(this,void 0),Ch.set(this,void 0),VT.set(this,void 0),XM(this,I_,bs(this,M_,"m",mj).call(this,t),"f"),XM(this,Ch,bs(this,M_,"m",Tj).call(this),"f"),XM(this,VT,bs(this,M_,"m",Aj).call(this,t),"f"),this.fetchInstrumentation=bs(this,M_,"m",gj).call(this,t)}loggerProvider(){return bs(this,VT,"f")}resource(){return bs(this,I_,"f")}tracerProvider(){return bs(this,Ch,"f")}}I_=new WeakMap,Ch=new WeakMap,VT=new WeakMap,M_=new WeakSet,mj=function(t){var r,n,i,a;return ST.default().merge(new ST({[yge]:"bwell-sdk-typescript",[Oge]:$9(),[bge]:"typescript",[Rge]:"com.bwell",[gge]:t.context.env,"client.key":t.context.clientKey,"user.id":(n=(r=t.context.user)===null||r===void 0?void 0:r.clientFhirPersonId)!==null&&n!==void 0?n:"","user.bwell-person-id":(a=(i=t.context.user)===null||i===void 0?void 0:i.bwellFhirPersonId)!==null&&a!==void 0?a:""}))},Tj=function(){const t=new ZTe({resource:bs(this,I_,"f")});return t.register({propagator:new Wne}),t},Aj=function(t){const r=new rpe({resource:bs(this,I_,"f")}),n=new xae({url:`${t.telemetry.collectorUrl}/otlp-http/v1/logs`}),i=new _pe(n);return r.addLogRecordProcessor(i),r},gj=function(t){const r=iMe(t);return r===null?null:(r.setTracerProvider(bs(this,Ch,"f")),r)};var Al=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},JM=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},qi=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},N_,Zu,GT,Ph,jo,ZM,yj,Rj,eI;class Oj{constructor(t,r,n,i){N_.add(this),GT.set(this,void 0),Ph.set(this,void 0),jo.set(this,void 0),JM(this,GT,r,"f"),JM(this,Ph,n.getLogger("TokenManager"),"f"),JM(this,jo,i,"f")}static initialize(t,r){return Al(this,arguments,void 0,function*(n,i,a=new ji,u=new eG){const c=qi(Zu,Zu,"m",ZM).call(Zu,n.accessToken);if(c.failure())return c.intoFailure();const v=new Zu(Object.assign(Object.assign({},n),{expiration:c.data()}),i,a,u);try{yield Promise.all([u.set("idToken",n.idToken),u.set("clientKey",n.clientKey),u.set("accessToken",n.accessToken),u.set("refreshToken",n.refreshToken),u.set("expiration",c.data().toISOString())])}catch{return Kt.failure(new Zf("Failed to set tokens in token storage"))}return Kt.success(v)})}getAccessToken(){return Al(this,void 0,void 0,function*(){if(yield qi(this,N_,"m",Rj).call(this)){const n=yield qi(this,N_,"m",eI).call(this);if(n.failure())return n.intoFailure()}const r=yield qi(this,jo,"f").get("accessToken");return ka(r)?Kt.failure(new Zf("accessToken not found in token storage")):Kt.success(r)})}getIdToken(){return Al(this,void 0,void 0,function*(){return yield qi(this,jo,"f").get("idToken")})}refreshAccessToken(){return Al(this,void 0,void 0,function*(){return qi(this,N_,"m",eI).call(this)})}}Zu=Oj,GT=new WeakMap,Ph=new WeakMap,jo=new WeakMap,N_=new WeakSet,ZM=function(t){try{const r=D9(t);return Kt.success(new Date(r))}catch(r){if(!Bi.isBwellError(r))throw r;return Kt.failure(r)}},yj=function(){return Al(this,void 0,void 0,function*(){const t=yield qi(this,jo,"f").get("expiration");if(ka(t))throw new Error("expiration not found in token storage");return new Date(t)})},Rj=function(){return Al(this,void 0,void 0,function*(){const r=(yield qi(this,N_,"m",yj).call(this)).getTime(),n=Date.now();return r<n})},eI=function(){return Al(this,void 0,void 0,function*(){qi(this,Ph,"f").verbose("refreshing access token...");const[t,r]=yield Promise.all([qi(this,jo,"f").get("refreshToken"),qi(this,jo,"f").get("clientKey")]);if(ka(t)||ka(r))return Kt.failure(new Zf("refreshToken or clientKey not found in token storage"));const n=yield qi(this,GT,"f").refreshAccessToken({refreshToken:t,clientKey:r});if(qi(this,Ph,"f").verbose("refreshing access token complete"),n.failure())return n.intoFailure();const i=n.data();yield qi(this,jo,"f").set("accessToken",i.accessToken),yield qi(this,jo,"f").set("idToken",i.idToken);const a=qi(Zu,Zu,"m",ZM).call(Zu,i.accessToken);return a.failure()?a.intoFailure():(yield qi(this,jo,"f").set("expiration",a.data().toISOString()),Kt.success(null))})};var Mh=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Ha=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},qt=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},li,L_,Ya,Ih,tI,rI,nI,iI,Cs,Nh,gl,yl,BT,D_,aI,Ho,oI,sI,uI,bj;class oMe{constructor(t){li.add(this),L_.set(this,void 0),Ya.set(this,void 0),Ih.set(this,void 0),tI.set(this,new JZ),rI.set(this,new jre),nI.set(this,new Yre),iI.set(this,new Jre),Cs.set(this,void 0),Nh.set(this,void 0),gl.set(this,void 0),yl.set(this,void 0),BT.set(this,void 0),D_.set(this,void 0),Ha(this,L_,t,"f"),Ha(this,Ya,Gm.initialize(qt(this,L_,"f")).data(),"f"),Ha(this,Ih,qt(this,li,"m",uI).call(this),"f"),Ha(this,Cs,qt(this,li,"m",sI).call(this),"f"),Ha(this,gl,qt(this,Cs,"f").getLogger("BWellSDK"),"f"),Ha(this,yl,qt(this,nI,"f").createIdentityManager(qt(this,Ya,"f"),qt(this,Cs,"f")),"f"),Ha(this,BT,new eee(qt(this,yl,"f")),"f")}initialize(){return Mh(this,void 0,void 0,function*(){qt(this,gl,"f").verbose("initializing SDKConfig...");const t=yield qt(this,BT,"f").initialize(qt(this,L_,"f"));return t.failure()?t.intoFailure():(qt(this,gl,"f").verbose("SDK Config initialized successfully"),Ha(this,Ya,t.data(),"f"),qt(this,li,"m",oI).call(this),Kt.success(null))})}authenticate(t){return Mh(this,void 0,void 0,function*(){const n=yield qt(this,iI,"f").createAuthStrategy(qt(this,Ya,"f"),qt(this,yl,"f"),t,qt(this,Cs,"f")).authenticate(t);if(n.failure())return n.intoFailure();const i=n.data();return qt(this,li,"m",aI).call(this,i)})}setAuthTokens(t){return Mh(this,void 0,void 0,function*(){const r=yield qt(this,li,"m",aI).call(this,t);if(r.failure())return r.intoFailure();if(qt(this,D_,"f")===void 0)throw new Error("TokenManager not set");const n=yield qt(this,D_,"f").refreshAccessToken();return n.failure()?n.intoFailure():Kt.success(null)})}createGuestAccessToken(){return Mh(this,void 0,void 0,function*(){return qt(this,yl,"f").createGuestAccessToken({clientKey:qt(this,Ya,"f").context.clientKey})})}get health(){return qt(this,li,"m",Ho).call(this).health}get healthSpace(){return qt(this,li,"m",Ho).call(this).healthSpace}get user(){return qt(this,li,"m",Ho).call(this).user}get connection(){return qt(this,li,"m",Ho).call(this).connection}get activity(){return qt(this,li,"m",Ho).call(this).activity}get device(){return qt(this,li,"m",Ho).call(this).device}get event(){return qt(this,li,"m",Ho).call(this).event}get search(){return qt(this,li,"m",Ho).call(this).search}get language(){return qt(this,li,"m",Ho).call(this).language}get questionnaire(){return qt(this,li,"m",Ho).call(this).questionnaire}}L_=new WeakMap,Ya=new WeakMap,Ih=new WeakMap,tI=new WeakMap,rI=new WeakMap,nI=new WeakMap,iI=new WeakMap,Cs=new WeakMap,Nh=new WeakMap,gl=new WeakMap,yl=new WeakMap,BT=new WeakMap,D_=new WeakMap,li=new WeakSet,aI=function(t){return Mh(this,void 0,void 0,function*(){try{const i=x9(t.idToken);Fn(i)&&qt(this,Ya,"f").setContextUser(i)}catch(i){if(Bi.isBwellError(i))return Kt.failure(i);throw i}const r=Object.assign(Object.assign({},t),{clientKey:qt(this,Ya,"f").context.clientKey}),n=yield Oj.initialize(r,qt(this,yl,"f"),qt(this,Cs,"f"),qt(this,L_,"f").tokenStorage);return n.failure()?n.intoFailure():(Ha(this,D_,n.data(),"f"),qt(this,li,"m",oI).call(this),Ha(this,Nh,qt(this,li,"m",bj).call(this,qt(this,D_,"f")),"f"),Kt.success(null))})},Ho=function(){if(qt(this,Nh,"f")===void 0)throw new Error("Unintialized");return qt(this,Nh,"f")},oI=function(){qt(this,gl,"f").verbose("reinitializing SDK dependencies"),Ha(this,Ih,qt(this,li,"m",uI).call(this),"f"),Ha(this,Cs,qt(this,li,"m",sI).call(this),"f"),Ha(this,gl,qt(this,Cs,"f").getLogger("BwellSDK"),"f")},sI=function(){return qt(this,tI,"f").createLogProvider(qt(this,Ya,"f"),qt(this,Ih,"f"))},uI=function(){if(!!qt(this,Ya,"f").telemetry.enabled)return new aMe(qt(this,Ya,"f"))},bj=function(t){return qt(this,rI,"f").createApiProvider(qt(this,Ya,"f"),t,qt(this,Cs,"f"))};const Cj="orchestrator:bwell-sdk";var kT;(function(e){e.one="1.0.0"})(kT||(kT={}));const sMe={id:Cj,dependencies:{featureServices:{[Wn]:vi.one,[Am]:Kp.one,[js]:Pu.one}},create:({featureServices:e})=>{const t=e[Wn],r=e[Am],n=e[js],{key:i}=t.getClientContext(),a=new oMe({clientKey:i});return t.getStore().subscribe(()=>{var u;if((u=t.getUser().tokenData)===null||u===void 0?void 0:u.idToken)try{a.language.setLanguage(r.resolvedLanguage),r.onChangeLanguage(_=>{const h=a.language.getLanguage();_!==h&&a.language.setLanguage(_)})}catch(_){n.error(_,"embeddable-core: Error occurred when switching language in SDK")}}),{[kT.one]:()=>({featureService:a})}}},cI={apiClient:d,theme:H,analytics:V,auth:A,logging:y,state:T,navigation:m,featureFlags:D,translation:P,identityUtils:g,nativeBridge:$,globalEventEmitter:G,rebootController:x,bwellSdk:Z},e6e=Object.keys(cI).reduce((e,t)=>{const{id:r,version:n}=cI[t];return Object.assign(Object.assign({},e),{[t]:{id:r,version:n}})},{});var er=cI,uMe=p(8561),cMe=p(295),Pj=p.n(cMe),lMe=p(2424),Mj=p.n(lMe);class fMe{constructor(t){this.providedExternals=t;for(const[r,n]of Object.entries(t))if(!Mj()(n))throw new Error(`The provided version ${JSON.stringify(n)} for the external ${JSON.stringify(r)} is invalid.`)}validate(t){for(const[r,n]of Object.entries(t)){const i=this.providedExternals[r];if(!i)throw new Error(`The external dependency ${JSON.stringify(r)} is not provided.`);if(!Pj()(i,n))throw new Error(`The external dependency ${JSON.stringify(r)} in the required version range ${JSON.stringify(n)} is not satisfied. The provided version is ${JSON.stringify(i)}.`)}}}class _Me{constructor(t,r,n){this.promise=t,this.value=r,this.error=n,t.then(i=>this.value=i).catch(i=>this.error=i)}}function dMe(e,t,r){let n=`The Feature App module at the url ${JSON.stringify(e)} ${t?`with the module type ${JSON.stringify(t)}`:"with no specific module type"} is invalid. A Feature App module must have a Feature App definition as default export. A Feature App definition is an object with at least a \`create\` method.`;return r&&r.length>1&&!t&&(n+=" Hint: The provided module loader expects an optional second parameter `moduleType`. It might need to be provided for this Feature App."),n}function pMe(e){return typeof e!="object"||!e?!1:typeof e.create=="function"}function hMe(e){return typeof e!="object"||!e?!1:pMe(e.default)}class SMe{constructor(t,r={}){this.featureServiceRegistry=t,this.options=r,this.asyncFeatureAppDefinitions=new Map,this.featureAppDefinitionsWithRegisteredOwnFeatureServices=new WeakSet,this.featureAppRetainers=new Map,this.logger=r.logger||console}getAsyncFeatureAppDefinition(t,r){const n=`${t}${r}`;let i=this.asyncFeatureAppDefinitions.get(n);return i||(i=this.createAsyncFeatureAppDefinition(t,r),this.asyncFeatureAppDefinitions.set(n,i)),i}createFeatureAppScope(t,r,n={}){const i=this.getFeatureAppRetainer(t,r,n);let a=!1;return{featureApp:i.featureApp,release:()=>{a?this.logger.warn(`The Feature App with the ID ${JSON.stringify(t)} has already been released for this scope.`):(a=!0,i.release())}}}async preloadFeatureApp(t,r){await this.getAsyncFeatureAppDefinition(t,r).promise}createAsyncFeatureAppDefinition(t,r){const{moduleLoader:n}=this.options;if(!n)throw new Error("No module loader provided.");return new _Me(n(t,r).then(i=>{if(!hMe(i))throw new Error(dMe(t,r,this.options.moduleLoader));return this.logger.info(`The Feature App module at the url ${JSON.stringify(t)} has been successfully loaded.`),i.default}))}registerOwnFeatureServices(t,r){this.featureAppDefinitionsWithRegisteredOwnFeatureServices.has(r)||(r.ownFeatureServiceDefinitions&&this.featureServiceRegistry.registerFeatureServices(r.ownFeatureServiceDefinitions,t),this.featureAppDefinitionsWithRegisteredOwnFeatureServices.add(r))}getFeatureAppRetainer(t,r,n){let i=this.featureAppRetainers.get(t);return i?i.retain():(this.registerOwnFeatureServices(t,r),i=this.createFeatureAppRetainer(r,t,n)),i}createFeatureAppRetainer(t,r,n){var i,a;this.validateExternals(t);const{featureAppName:u,baseUrl:c,beforeCreate:v,config:_,done:h}=n,L=this.featureServiceRegistry.bindFeatureServices(t,r,u);try{(a=(i=this.options).onBind)===null||a===void 0||a.call(i,{featureAppDefinition:t,featureAppId:r,featureAppName:u})}catch(Te){this.logger.error("Failed to execute onBind callback.",Te)}const W={baseUrl:c,config:_,featureAppId:r,featureAppName:u,featureServices:L.featureServices,done:h};try{v?.(W);const Te=t.create(W);this.logger.info(`The Feature App with the ID ${JSON.stringify(r)} has been successfully created.`);let me=1;const Oe={featureApp:Te,retain:()=>{me+=1},release:()=>{me-=1,me===0&&(this.featureAppRetainers.delete(r),L.unbind())}};return this.featureAppRetainers.set(r,Oe),Oe}catch(Te){throw L.unbind(),Te}}validateExternals(t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=t;n&&n.externals&&r.validate(n.externals)}}var EMe=p(5725),vMe=p.n(EMe);function mMe(e,t,r,n,i){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in the unsupported version range ${JSON.stringify(n)} could not be bound to consumer ${JSON.stringify(r)}. The supported versions are ${JSON.stringify(i)}.`}function TMe(e,t,r){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it defines the invalid version ${JSON.stringify(r)}.`}function AMe(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in an invalid version could not be bound to consumer ${JSON.stringify(r)}.`}function gMe(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} is not registered and therefore could not be bound to consumer ${JSON.stringify(r)}.`}function yMe(e,t){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it returned undefined.`}function RMe(e,t){return`The Feature Service ${JSON.stringify(e)} has been successfully registered by registrant ${JSON.stringify(t)}.`}function OMe(e,t){return`The already registered Feature Service ${JSON.stringify(e)} could not be re-registered by registrant ${JSON.stringify(t)}.`}function bMe(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully bound to consumer ${JSON.stringify(t)}.`}function CMe(e){return`All required Feature Services are already bound to consumer ${JSON.stringify(e)}.`}function PMe(e,t){return`The required Feature Service ${JSON.stringify(e)} could not be unbound from consumer ${JSON.stringify(t)}.`}function MMe(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully unbound from consumer ${JSON.stringify(t)}.`}function IMe(e){return`All required Feature Services are already unbound from consumer ${JSON.stringify(e)}.`}var NMe=p(2702),LMe=p.n(NMe);function DMe(e){return t=>[e,t]}function wMe(e,t){return Object.keys(t).map(DMe(e))}function UMe(e){return Array.from(e.keys()).reduce((t,r)=>{const n=e.get(r);if(!n)return t;const i=wMe(r,n);return[...t,...i]},[])}function xMe(e){const t=Array.from(e.keys()),r=UMe(e),n=LMe()(r);return n.push(...t.filter(i=>e.has(i)&&n.indexOf(i)===-1)),n.reverse()}function Ij({dependencies:e,optionalDependencies:t}){return Object.assign(Object.assign({},e&&e.featureServices),t&&t.featureServices)}function FMe(e){const t=new Map;for(const r of e)t.set(r.id,Ij(r));return t}function $Me({optionalDependencies:e},t){return Boolean(e&&e.featureServices&&e.featureServices.hasOwnProperty(t))}function VMe(e){const t=new Map;for(const r of e)t.set(r.id,r);return t}class GMe{constructor(t={}){this.options=t,this.sharedFeatureServices=new Map,this.consumerIds=new Set,this.logger=t.logger||console}registerFeatureServices(t,r){const n=VMe(t),i=FMe(t);for(const a of xMe(i))this.registerFeatureService(n,a,r)}bindFeatureServices(t,r,n){if(this.consumerIds.has(r))throw new Error(CMe(r));const i=new Map,a=Object.create(null),u=Ij(t);for(const _ of Object.keys(u)){const h=$Me(t,_),L=u[_],W=this.bindFeatureService(_,r,n,L,{optional:h});!W||(this.logger.info(bMe(_,r)),i.set(_,W),a[_]=W.featureService)}this.consumerIds.add(r);let c=!1;return{featureServices:a,unbind:()=>{if(c)throw new Error(IMe(r));c=!0,this.consumerIds.delete(r);for(const[_,h]of i.entries())try{h.unbind&&h.unbind(),this.logger.info(MMe(_,r))}catch(L){this.logger.error(PMe(_,r),L)}}}}registerFeatureService(t,r,n){const i=t.get(r);if(!i)return;if(this.sharedFeatureServices.has(r)){this.logger.warn(OMe(r,n));return}this.validateExternals(i);const{featureServices:a}=this.bindFeatureServices(i,r),u=i.create({featureServices:a});u?(this.validateFeatureServiceVersions(u,r,n),this.sharedFeatureServices.set(r,u),this.logger.info(RMe(r,n))):this.logger.info(yMe(r,n))}bindFeatureService(t,r,n,i,{optional:a}){const u=i&&vMe()(i);if(!u){const W=AMe(a,t,r);if(a){this.logger.info(W);return}throw new Error(W)}const c=`^${u.version}`,v=this.sharedFeatureServices.get(t);if(!v){const W=gMe(a,t,r);if(a){this.logger.info(W);return}throw new Error(W)}const _=Object.keys(v),h=_.find(W=>Pj()(W,c)),L=h?v[h]:void 0;if(!L){const W=mMe(a,t,r,c,_);if(a){this.logger.info(W);return}throw new Error(W)}return L(r,n)}validateExternals(t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=t;n&&n.externals&&r.validate(n.externals)}validateFeatureServiceVersions(t,r,n){for(const i of Object.keys(t))if(!Mj()(i))throw new Error(TMe(r,n,i))}}function Nj(e,t={}){const{featureServiceDefinitions:r,featureServiceDependencies:n,providedExternals:i,moduleLoader:a,logger:u,onBind:c}=t;let v;i&&(v=new fMe(i));const _=new GMe({externalsValidator:v,logger:u}),h={dependencies:{featureServices:n}};r&&_.registerFeatureServices(r,e);const L=new SMe(_,{externalsValidator:v,moduleLoader:a,logger:u,onBind:c}),{featureServices:W}=_.bindFeatureServices(h,e);return{featureAppManager:L,featureServiceRegistry:_,featureServices:W}}/**
8533
+ `,rre=(e,t,r,n)=>e();function nre(e,t=rre){return{getTasks(r,n){return t(i=>e.rawRequest(Qee,r,Object.assign(Object.assign({},n),i)),"getTasks","query",r)},taskUpdateStatus(r,n){return t(i=>e.rawRequest(zee,r,Object.assign(Object.assign({},n),i)),"taskUpdateStatus","mutation",r)},createConnection(r,n){return t(i=>e.rawRequest(Xee,r,Object.assign(Object.assign({},n),i)),"createConnection","mutation",r)},deleteConnection(r,n){return t(i=>e.rawRequest(Jee,r,Object.assign(Object.assign({},n),i)),"deleteConnection","mutation",r)},disconnectConnection(r,n){return t(i=>e.rawRequest(Zee,r,Object.assign(Object.assign({},n),i)),"disconnectConnection","mutation",r)},getDataSource(r,n){return t(i=>e.rawRequest(ete,r,Object.assign(Object.assign({},n),i)),"getDataSource","query",r)},getMemberConnections(r,n){return t(i=>e.rawRequest(tte,r,Object.assign(Object.assign({},n),i)),"getMemberConnections","query",r)},getOauthUrl(r,n){return t(i=>e.rawRequest(rte,r,Object.assign(Object.assign({},n),i)),"getOauthUrl","query",r)},updateDeviceRegistration(r,n){return t(i=>e.rawRequest(nte,r,Object.assign(Object.assign({},n),i)),"updateDeviceRegistration","mutation",r)},publishEvent(r,n){return t(i=>e.rawRequest(ite,r,Object.assign(Object.assign({},n),i)),"publishEvent","mutation",r)},getBinary(r,n){return t(i=>e.rawRequest(ate,r,Object.assign(Object.assign({},n),i)),"getBinary","query",r)},getFHIR(r,n){return t(i=>e.rawRequest(ote,r,Object.assign(Object.assign({},n),i)),"getFHIR","query",r)},getDiagnosticReports(r,n){return t(i=>e.rawRequest(ste,r,Object.assign(Object.assign({},n),i)),"getDiagnosticReports","query",r)},getAllergyIntoleranceGroups(r,n){return t(i=>e.rawRequest(ute,r,Object.assign(Object.assign({},n),i)),"getAllergyIntoleranceGroups","query",r)},getAllergyIntolerances(r,n){return t(i=>e.rawRequest(cte,r,Object.assign(Object.assign({},n),i)),"getAllergyIntolerances","query",r)},getCarePlanGroups(r,n){return t(i=>e.rawRequest(lte,r,Object.assign(Object.assign({},n),i)),"getCarePlanGroups","query",r)},getCarePlans(r,n){return t(i=>e.rawRequest(fte,r,Object.assign(Object.assign({},n),i)),"getCarePlans","query",r)},getCareTeams(r,n){return t(i=>e.rawRequest(_te,r,Object.assign(Object.assign({},n),i)),"getCareTeams","query",r)},getConditionGroups(r,n){return t(i=>e.rawRequest(dte,r,Object.assign(Object.assign({},n),i)),"getConditionGroups","query",r)},getConditions(r,n){return t(i=>e.rawRequest(pte,r,Object.assign(Object.assign({},n),i)),"getConditions","query",r)},getDiagnosticReportLabGroups(r,n){return t(i=>e.rawRequest(hte,r,Object.assign(Object.assign({},n),i)),"getDiagnosticReportLabGroups","query",r)},getDocumentReferences(r,n){return t(i=>e.rawRequest(Ste,r,Object.assign(Object.assign({},n),i)),"getDocumentReferences","query",r)},getEncountersGroup(r,n){return t(i=>e.rawRequest(Ete,r,Object.assign(Object.assign({},n),i)),"getEncountersGroup","query",r)},getEncounterQuery(r,n){return t(i=>e.rawRequest(vte,r,Object.assign(Object.assign({},n),i)),"getEncounterQuery","query",r)},GetHealthSummary(r,n){return t(i=>e.rawRequest(mte,r,Object.assign(Object.assign({},n),i)),"GetHealthSummary","query",r)},getImmunizationGroups(r,n){return t(i=>e.rawRequest(Tte,r,Object.assign(Object.assign({},n),i)),"getImmunizationGroups","query",r)},getImmunizations(r,n){return t(i=>e.rawRequest(Ate,r,Object.assign(Object.assign({},n),i)),"getImmunizations","query",r)},getProcedureGroups(r,n){return t(i=>e.rawRequest(gte,r,Object.assign(Object.assign({},n),i)),"getProcedureGroups","query",r)},GetProcedures(r,n){return t(i=>e.rawRequest(yte,r,Object.assign(Object.assign({},n),i)),"GetProcedures","query",r)},getVitalSignGroups(r,n){return t(i=>e.rawRequest(Rte,r,Object.assign(Object.assign({},n),i)),"getVitalSignGroups","query",r)},getVitalSigns(r,n){return t(i=>e.rawRequest(Ote,r,Object.assign(Object.assign({},n),i)),"getVitalSigns","query",r)},getLabGroups(r,n){return t(i=>e.rawRequest(bte,r,Object.assign(Object.assign({},n),i)),"getLabGroups","query",r)},getLabKnowledge(r,n){return t(i=>e.rawRequest(Cte,r,Object.assign(Object.assign({},n),i)),"getLabKnowledge","query",r)},getLabs(r,n){return t(i=>e.rawRequest(Pte,r,Object.assign(Object.assign({},n),i)),"getLabs","query",r)},getMedicationDispense(r,n){return t(i=>e.rawRequest(Mte,r,Object.assign(Object.assign({},n),i)),"getMedicationDispense","query",r)},getMedicationGroups(r,n){return t(i=>e.rawRequest(Ite,r,Object.assign(Object.assign({},n),i)),"getMedicationGroups","query",r)},getMedicationKnowledge(r,n){return t(i=>e.rawRequest(Nte,r,Object.assign(Object.assign({},n),i)),"getMedicationKnowledge","query",r)},getMedicationPricing(r,n){return t(i=>e.rawRequest(Lte,r,Object.assign(Object.assign({},n),i)),"getMedicationPricing","query",r)},getMedicationRequest(r,n){return t(i=>e.rawRequest(Dte,r,Object.assign(Object.assign({},n),i)),"getMedicationRequest","query",r)},getMedicationStatements(r,n){return t(i=>e.rawRequest(wte,r,Object.assign(Object.assign({},n),i)),"getMedicationStatements","query",r)},appointments(r,n){return t(i=>e.rawRequest(Ute,r,Object.assign(Object.assign({},n),i)),"appointments","query",r)},cancelAppointment(r,n){return t(i=>e.rawRequest(xte,r,Object.assign(Object.assign({},n),i)),"cancelAppointment","mutation",r)},cancelationReasons(r,n){return t(i=>e.rawRequest(Fte,r,Object.assign(Object.assign({},n),i)),"cancelationReasons","query",r)},authenticate(r,n){return t(i=>e.rawRequest($te,r,Object.assign(Object.assign({},n),i)),"authenticate","query",r)},createGuestAccessToken(r,n){return t(i=>e.rawRequest(Vte,r,Object.assign(Object.assign({},n),i)),"createGuestAccessToken","mutation",r)},ExchangeAuthCode(r,n){return t(i=>e.rawRequest(Gte,r,Object.assign(Object.assign({},n),i)),"ExchangeAuthCode","mutation",r)},initialize(r,n){return t(i=>e.rawRequest(Bte,r,Object.assign(Object.assign({},n),i)),"initialize","query",r)},login(r,n){return t(i=>e.rawRequest(kte,r,Object.assign(Object.assign({},n),i)),"login","query",r)},refreshTokens(r,n){return t(i=>e.rawRequest(jte,r,Object.assign(Object.assign({},n),i)),"refreshTokens","query",r)},nextQuestion(r,n){return t(i=>e.rawRequest(Hte,r,Object.assign(Object.assign({},n),i)),"nextQuestion","mutation",r)},providerSearch(r,n){return t(i=>e.rawRequest(Yte,r,Object.assign(Object.assign({},n),i)),"providerSearch","query",r)},requestConnection(r,n){return t(i=>e.rawRequest(qte,r,Object.assign(Object.assign({},n),i)),"requestConnection","mutation",r)},SearchHealthResources(r,n){return t(i=>e.rawRequest(Kte,r,Object.assign(Object.assign({},n),i)),"SearchHealthResources","query",r)},createConsent(r,n){return t(i=>e.rawRequest(Wte,r,Object.assign(Object.assign({},n),i)),"createConsent","mutation",r)},CreateDataExportDirectDownloadUrl(r,n){return t(i=>e.rawRequest(Qte,r,Object.assign(Object.assign({},n),i)),"CreateDataExportDirectDownloadUrl","mutation",r)},CreateVerificationUrl(r,n){return t(i=>e.rawRequest(zte,r,Object.assign(Object.assign({},n),i)),"CreateVerificationUrl","mutation",r)},delete(r,n){return t(i=>e.rawRequest(Xte,r,Object.assign(Object.assign({},n),i)),"delete","mutation",r)},getProfile(r,n){return t(i=>e.rawRequest(Jte,r,Object.assign(Object.assign({},n),i)),"getProfile","query",r)},searchConsent(r,n){return t(i=>e.rawRequest(Zte,r,Object.assign(Object.assign({},n),i)),"searchConsent","query",r)},updateUserProfile(r,n){return t(i=>e.rawRequest(ere,r,Object.assign(Object.assign({},n),i)),"updateUserProfile","mutation",r)},VerificationStatus(r,n){return t(i=>e.rawRequest(tre,r,Object.assign(Object.assign({},n),i)),"VerificationStatus","query",r)}}}var ire=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})};function NG(e,t,r){let n;t!==void 0&&(n=are(t));const i={};r!=null&&(i["accept-language"]=r);const a=new Hm(e,{errorPolicy:"all",mode:"cors",requestMiddleware:n,headers:i});return{client:a,sdk:nre(a)}}function are(e){return t=>ire(this,void 0,void 0,function*(){const n=(yield e.getAccessToken()).data();return Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),{Authorization:`Bearer ${n}`})})})}var ore=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},LG=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},rh;const DG="accept-language";class sre{constructor(t){rh.set(this,void 0),ore(this,rh,t,"f")}setLanguage(t){LG(this,rh,"f").setHeader(DG,t)}getLanguage(){var t;const r=LG(this,rh,"f").requestConfig.headers;return(t=r?.[DG])!==null&&t!==void 0?t:null}}rh=new WeakMap;const ure="INFORMATION",yUe="WARNING",wG="ERROR",cre="FATAL";class Qm{constructor(t){this.issue=t}message(){var t,r;const n=[];for(const i of this.issue){const a=(r=(t=i.details)===null||t===void 0?void 0:t.text)===null||r===void 0?void 0:r.trim();a==null||a.length===0||n.push(a)}return n.join(", ")}success(){for(const t of this.issue){const r=t.severity.toUpperCase();if(r===wG||r===cre)return!1}return!0}static error(t){return new Qm([{severity:wG,code:"EXCEPTION",details:{text:t.message}}])}static success(){return new Qm([{severity:ure,code:"INFORMATIONAL",details:{}}])}}function lre(e){for(const t of e){const r=UG(t);if(r!==null){if(r.code==="500")return!0;for(const n of r.resource.issue)if(n.code==="exception")return!0}}return!1}function TP(e=[]){const t=[];let r=!1;for(const a of e){const u=UG(a);if(u!==null){r=!0;for(const c of u.resource.issue)t.push(c)}}if(!r)return null;const n=new Qm(t),i=new g9(n);if(Ws(i.message)){const a=e.map(u=>u.message).join(", ");i.message=Ws(a)?"Unknown error. Contact b.well support for further assistance.":a}return i}function UG(e){const t=e.extensions,r=t?.code,n=t?.resource;return r===void 0||n===void 0||!fre(n)?null:{code:r,resource:n}}function fre(e){const t=e.issue;return t===void 0?!1:Array.isArray(t)}var xG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},zm=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},c_,AP,gP;class As{constructor(){c_.add(this)}handleTransaction(t){return xG(this,void 0,void 0,function*(){try{const r=yield t,n=TP(r.errors);return n!==null?Kt.failure(n):Kt.success(r.data)}catch(r){if(Bi.isBwellError(r))return Kt.failure(r);if(zm(this,c_,"m",AP).call(this,r))return zm(this,c_,"m",gP).call(this,r);throw r}})}handleQuery(t){return xG(this,void 0,void 0,function*(){try{const r=yield t,n=TP(r.errors);return new ar(r.data,n)}catch(r){if(Bi.isBwellError(r))return new ar(void 0,r);if(zm(this,c_,"m",AP).call(this,r)){const n=zm(this,c_,"m",gP).call(this,r);return ar.error(n.error())}throw r}})}validateRequest(t){return t===void 0?Kt.success(null):t.validate()}}c_=new WeakSet,AP=function(t){return t instanceof Gu},gP=function(t){if(t.response.status>299)return new Pm(new A9("Network error",t.response.status));const r=t.response.errors;if(r!==void 0){if(lre(r))return new Pm(new IC("Internal server error",r));const n=TP(r);if(n!==null)return Kt.failure(n)}return new Pm(new IC("Unknown error",t))};var l_=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ju,ol,nh;(function(e){e.ACTIVITY_CONTENT="https://www.icanbwell.com/contentDescription",e.ACTIVITY_ID="https://www.icanbwell.com/activityId",e.ACTIVITY_TOPIC="https://www.icanbwell.com/activityTopic",e.ACTIVITY_TYPE="https://www.icanbwell.com/activityType"})(nh||(nh={}));class _re{constructor(){ju.add(this)}create(t){var r;const n=t.data(),i={page:n.page,pageSize:n.pageSize};return ki(n.id)&&(i.id=l_(this,ju,"m",ol).call(this,n.id)),ki(n.activityId)&&(i.identifier=l_(this,ju,"m",ol).call(this,n.activityId,nh.ACTIVITY_ID)),ki(n.activityType)&&(i.code=l_(this,ju,"m",ol).call(this,n.activityType,nh.ACTIVITY_TYPE)),ki(n.activityTopic)&&(i.tag=l_(this,ju,"m",ol).call(this,n.activityTopic,nh.ACTIVITY_TOPIC)),ki(n.status)&&(i.status=l_(this,ju,"m",ol).call(this,n.status)),ki(n.subject)&&(i.subject=l_(this,ju,"m",ol).call(this,n.subject)),i.sortMethod=n.smartSort===!0?"smartSort":"",ki(n.enrichContent)&&(i.enrichContent=n.enrichContent),i.contentLanguage=(r=n.contentLanguage)!==null&&r!==void 0?r:"en",{request:i}}}ju=new WeakSet,ol=function(t,r){const i={value:(Array.isArray(t)?t:[t]).join(",")};return ki(r)&&(i.system=r),{values:[i]}};var FG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},$G=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Vo=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Go,ih,yP;class dre extends As{constructor(t,r=new ji){super(),Go.set(this,void 0),ih.set(this,void 0),yP.set(this,new _re),$G(this,ih,t,"f"),$G(this,Go,r.getLogger("GraphQLActivityManager"),"f")}getTasks(t){return FG(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();Vo(this,Go,"f").verbose("calling getTask query...");const i=yield this.handleQuery(Vo(this,ih,"f").getTasks(Vo(this,yP,"f").create(t)));return Vo(this,Go,"f").verbose("getTask query complete"),i.hasError()?Vo(this,Go,"f").error("getTask query error",i.error):Vo(this,Go,"f").info("successfully called getTask query"),new ar((r=i.data)===null||r===void 0?void 0:r.getTasks,i.error)})}updateTaskStatus(t){return FG(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;Vo(this,Go,"f").verbose("calling taskUpdateStatus mutation");const n=yield this.handleTransaction(Vo(this,ih,"f").taskUpdateStatus(t.data()));return Vo(this,Go,"f").verbose("taskUpdateStatus mutation complete"),n.failure()?(Vo(this,Go,"f").error("taskUpdateStatus error",n),n.intoFailure()):(Vo(this,Go,"f").info("taskUpdateStatus mutation success"),Kt.success(n.data().taskUpdateStatus))})}}Go=new WeakMap,ih=new WeakMap,yP=new WeakMap;var f_=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},RP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},un=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Js,Cn,Xm;class pre extends As{constructor(t,r=new ji,n=new hre){super(),Js.set(this,void 0),Cn.set(this,void 0),Xm.set(this,void 0),RP(this,Js,t,"f"),RP(this,Cn,r.getLogger("GraphQLConnectionManager"),"f"),RP(this,Xm,n,"f")}getMemberConnections(){return f_(this,void 0,void 0,function*(){un(this,Cn,"f").verbose("calling getMemberConnections...");const t=yield this.handleQuery(un(this,Js,"f").getMemberConnections());return un(this,Cn,"f").verbose("getMemberConnections complete"),t.hasError()?un(this,Cn,"f").error("getMemberConnections failed",t.error):un(this,Cn,"f").info("successfully called getMemberConnections"),un(this,Xm,"f").create(t)})}getDataSource(t){return f_(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();un(this,Cn,"f").verbose("calling getDataSources...");const i=yield this.handleQuery(un(this,Js,"f").getDataSource(Object.assign({},t.data())));return un(this,Cn,"f").verbose("getDataSources complete"),i.hasError()?un(this,Cn,"f").error("getDataSources failed",i.error):un(this,Cn,"f").info("successfully called getDataSources"),new ar((r=i.data)===null||r===void 0?void 0:r.getDataSource,i.error)})}createConnection(t){return f_(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();un(this,Cn,"f").verbose("calling createConnection...");const n=yield this.handleTransaction(un(this,Js,"f").createConnection(Object.assign({},t.data())));return un(this,Cn,"f").verbose("createConnection complete"),n.failure()?(un(this,Cn,"f").error("createConnection failed",n),n.intoFailure()):(un(this,Cn,"f").info("successfully called createConnection"),Kt.success(n.data().createConnection))})}disconnectConnection(t){return f_(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();un(this,Cn,"f").verbose("calling disconnectConnection...");const n=yield this.handleTransaction(un(this,Js,"f").disconnectConnection(Object.assign({},t.data())));return un(this,Cn,"f").verbose("disconnectConnection complete"),n.failure()?(un(this,Cn,"f").error("disconnectConnection failed",n),n.intoFailure()):(un(this,Cn,"f").info("successfully called disconnectConnection"),Kt.success(n.data().disconnectConnection))})}deleteConnection(t){return f_(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();un(this,Cn,"f").verbose("calling deleteConnection...");const n=yield this.handleTransaction(un(this,Js,"f").deleteConnection(Object.assign({},t.data())));return un(this,Cn,"f").verbose("deleteConnection complete"),n.failure()?(un(this,Cn,"f").error("deleteConnection failed",n),n.intoFailure()):(un(this,Cn,"f").info("successfully called deleteConnection"),Kt.success(n.data().deleteConnection))})}getOauthUrl(t){return f_(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();un(this,Cn,"f").verbose("calling getOauthUrl...");const i=yield this.handleQuery(un(this,Js,"f").getOauthUrl(Object.assign({},t.data())));return un(this,Cn,"f").verbose("getOauthUrl complete"),i.hasError()?un(this,Cn,"f").error("getOauthUrl failed",i.error):un(this,Cn,"f").info("successfully called getOauthUrl"),new ar((r=i.data)===null||r===void 0?void 0:r.getOauthUrl,i.error)})}}Js=new WeakMap,Cn=new WeakMap,Xm=new WeakMap;class hre{create(t){var r,n,i,a,u,c;const v=new Map,_=(i=(n=(r=t.data)===null||r===void 0?void 0:r.subscription_subscription)===null||n===void 0?void 0:n.entry)!==null&&i!==void 0?i:[];for(const L of _)if(Fn((a=L?.resource)===null||a===void 0?void 0:a.service_slug)&&Fn(L?.resource.subscriptionStatus))for(const W of L.resource.subscriptionStatus)v.set(L.resource.service_slug,{error:W?.error,extension:W?.extension});const h=(c=(u=t.data)===null||u===void 0?void 0:u.getMemberConnections)!==null&&c!==void 0?c:[];return new ar(h.map(L=>{var W;const Te=v.get(L.id);if(Fo(Te))return Object.assign(Object.assign({},L),{syncErrors:[]});const me=(W=Te.extension)===null||W===void 0?void 0:W.find(Oe=>Oe?.id===vZ);return Object.assign(Object.assign({},L),{syncErrors:Te.error,syncStatus:me?me.valueString:L.syncStatus})}),t.error)}}class Sre{create(t){return{deviceToken:t.data().deviceToken,platformName:"",applicationName:"",notificationPreference:!1}}}class Ere{create(t){return Object.assign(Object.assign({},t.data()),{notificationPreference:!0})}}var VG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},GG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},so=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ah,Bo,OP,bP;class vre extends As{constructor(t,r=new ji){super(),ah.set(this,void 0),Bo.set(this,void 0),OP.set(this,new Sre),bP.set(this,new Ere),GG(this,ah,t,"f"),GG(this,Bo,r.getLogger("GraphQLDeviceManager"),"f")}registerDevice(t){return VG(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();const n=so(this,bP,"f").create(t);so(this,Bo,"f").verbose("calling updateDeviceRegistration to register device...");const i=yield this.handleTransaction(so(this,ah,"f").updateDeviceRegistration(n));return so(this,Bo,"f").verbose("updateDeviceRegistration complete for registration."),i.failure()?(so(this,Bo,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(so(this,Bo,"f").info("successfully called updateDeviceRegistration for registration."),Kt.success(i.data().updateDeviceRegistration))})}deregisterDevice(t){return VG(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();so(this,Bo,"f").verbose("calling updateDeviceRegistration to deregister device...");const n=so(this,OP,"f").create(t),i=yield this.handleTransaction(so(this,ah,"f").updateDeviceRegistration(n));return so(this,Bo,"f").verbose("updateDeviceRegistration complete for deregistration."),i.failure()?(so(this,Bo,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(so(this,Bo,"f").info("successfully called updateDeviceRegistration for deregistration."),Kt.success(i.data().updateDeviceRegistration))})}}ah=new WeakMap,Bo=new WeakMap,OP=new WeakMap,bP=new WeakMap;class mre{create(t){const r=JSON.parse(t.data().serializedNotification);return{notificationId:r.notification_id,messageId:r.itbl.messageId,eventType:xC.MobilePushOpen}}}var Tre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},CP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},sl=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Jm,Hu,Zm;class Are extends As{constructor(t,r=new ji,n=new mre){super(),Jm.set(this,void 0),Hu.set(this,void 0),Zm.set(this,void 0),CP(this,Jm,t,"f"),CP(this,Hu,r.getLogger("GraphQLEventManager"),"f"),CP(this,Zm,n,"f")}handleNotification(t){return Tre(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();sl(this,Hu,"f").debug("Calling publishEvent");let n;try{n=sl(this,Zm,"f").create(t)}catch(a){return sl(this,Hu,"f").error("Error creating publishEvent request",a),Kt.failure(new IC("Error creating publishEvent request"))}const i=yield this.handleTransaction(sl(this,Jm,"f").publishEvent(n));return sl(this,Hu,"f").debug("publishEvent completed"),i.failure()?(sl(this,Hu,"f").error("publishEvent mutation error",i),i.intoFailure()):(sl(this,Hu,"f").info("publishEvent mutation success"),Kt.success(i.data().publishEvent))})}}Jm=new WeakMap,Hu=new WeakMap,Zm=new WeakMap;class gre{create(t){var r,n,i,a,u,c,v,_;const h=t.data();return{source:(r=h._source)!==null&&r!==void 0?r:null,id:(n=h._id)!==null&&n!==void 0?n:null,count:(i=h._count)!==null&&i!==void 0?i:25,getPagesOffset:(a=h._getpagesoffset)!==null&&a!==void 0?a:0,date:(u=h.date)!==null&&u!==void 0?u:null,sort:(c=h._sort)!==null&&c!==void 0?c:null,supportingInformation:(v=h.supporting_info)!==null&&v!==void 0?v:null,status:(_=h.status)!==null&&_!==void 0?_:null}}}class yre{create(t){const r=t.data();return{appointment:{id:r.id,status:DC.Cancelled,cancelationReason:r.cancelationReason}}}}var PP=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},BG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Yi=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},fa,__,MP,IP;class Rre extends As{constructor(t,r=new ji){super(),fa.set(this,void 0),__.set(this,void 0),MP.set(this,new gre),IP.set(this,new yre),BG(this,__,t,"f"),BG(this,fa,r.getLogger("GraphQLHealthSpaceManager"),"f")}getAppointments(t){return PP(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();Yi(this,fa,"f").verbose("calling appointments query...");const i=yield this.handleQuery(Yi(this,__,"f").appointments(Yi(this,MP,"f").create(t)));return Yi(this,fa,"f").verbose("appointments query complete"),i.hasError()?Yi(this,fa,"f").error("appointments query error",i.error):Yi(this,fa,"f").info("successfully called appointments query"),new ar((r=i.data)===null||r===void 0?void 0:r.appointments,i.error)})}cancelAppointment(t){return PP(this,void 0,void 0,function*(){const r=this.validateRequest(t);if(r.failure())return r.intoFailure();Yi(this,fa,"f").verbose("calling cancel appointment mutation...");const n=yield this.handleTransaction(Yi(this,__,"f").cancelAppointment(Yi(this,IP,"f").create(t)));return Yi(this,fa,"f").verbose("cancel appointment mutation complete"),n.failure()?(Yi(this,fa,"f").error("cancel appointment mutation error",n),n.intoFailure()):(Yi(this,fa,"f").info("successfully called cancel appointment mutation"),Kt.success(n.data().updateAppointment))})}getCancelationReasons(t){return PP(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();Yi(this,fa,"f").verbose("calling cancelationReasons query...");const i=yield this.handleQuery(Yi(this,__,"f").cancelationReasons(t.data()));return Yi(this,fa,"f").verbose("cancelationReasons query complete"),i.hasError()?Yi(this,fa,"f").error("cancelationReasons query error",i.error):Yi(this,fa,"f").info("successfully called cancelationReasons query"),new ar((r=i.data)===null||r===void 0?void 0:r.cancelationReasons,i.error)})}}fa=new WeakMap,__=new WeakMap,MP=new WeakMap,IP=new WeakMap;var En=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},kG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ft=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},nn,Rt;class Ore extends As{constructor(t,r=new ji){super(),nn.set(this,void 0),Rt.set(this,void 0),kG(this,nn,t,"f"),kG(this,Rt,r.getLogger("GraphQLHealthManager"),"f")}getHealthSummary(){return En(this,void 0,void 0,function*(){var t;ft(this,Rt,"f").verbose("calling getHealthSummary...");const r=yield this.handleQuery(ft(this,nn,"f").GetHealthSummary());return ft(this,Rt,"f").verbose("getHealthSummary complete"),r.hasError()?ft(this,Rt,"f").error("getHealthSummary failed",r.error):ft(this,Rt,"f").info("successfully called getHealthSummary"),new ar((t=r.data)===null||t===void 0?void 0:t.getHealthSummary,r.error)})}getAllergyIntolerances(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getAllergyIntolerances...");const a=yield this.handleQuery(ft(this,nn,"f").getAllergyIntolerances({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getAllergyIntolerances complete"),a.hasError()&&ft(this,Rt,"f").error("getAllergyIntolerances errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getAllergyIntolerances,a.error)})}getAllergyIntoleranceGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getAllergyIntoleranceGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getAllergyIntoleranceGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getAllergyIntoleranceGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getAllergyIntoleranceGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getAllergyIntoleranceGroups,a.error)})}getConditions(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getConditions...");const a=yield this.handleQuery(ft(this,nn,"f").getConditions({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getConditions complete"),a.hasError()&&ft(this,Rt,"f").error("getConditions errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getConditions,a.error)})}getConditionGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getConditionGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getConditionGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getConditionGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getConditionGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getConditionGroups,a.error)})}getDiagnosticReports(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getDiagnosticReports...");const i=yield this.handleQuery(ft(this,nn,"f").getDiagnosticReports());return ft(this,Rt,"f").verbose("getDiagnosticReports complete"),i.hasError()&&ft(this,Rt,"f").error("getDiagnosticReports errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.diagnosticReports,i.error)})}getDocumentReferences(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getDocumentReferences...");const a=yield this.handleQuery(ft(this,nn,"f").getDocumentReferences({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getDocumentReferences complete"),a.hasError()&&ft(this,Rt,"f").error("getDocumentReferences errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getDocumentReferences,a.error)})}getBinary(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getBinary...");const i=yield this.handleQuery(ft(this,nn,"f").getBinary({request:t.data()}));return ft(this,Rt,"f").verbose("getBinary complete"),i.hasError()&&ft(this,Rt,"f").error("getBinary errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.getBinary,i.error)})}getLabs(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getLabs...");const a=yield this.handleQuery(ft(this,nn,"f").getLabs({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getLabs complete"),a.hasError()&&ft(this,Rt,"f").error("getLabs errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getLabs,a.error)})}getLabGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getLabGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getLabGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getLabGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getLabGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getLabGroups,a.error)})}getCarePlans(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getCarePlans...");const a=yield this.handleQuery(ft(this,nn,"f").getCarePlans({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getCarePlans complete"),a.hasError()&&ft(this,Rt,"f").error("getCarePlans errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getCarePlans,a.error)})}getCarePlanGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getCarePlanGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getCarePlanGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getCarePlanGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getCarePlanGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getCarePlanGroups,a.error)})}getCareTeams(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getCareTeams");const a=yield this.handleQuery(ft(this,nn,"f").getCareTeams({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getCareTeams complete"),a.hasError()&&ft(this,Rt,"f").error("getCareTeams errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getCareTeams,a.error)})}getEncounters(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getEncounters...");const a=yield this.handleQuery(ft(this,nn,"f").getEncounterQuery({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getEncounters complete"),a.hasError()&&ft(this,Rt,"f").error("getEncounters errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getEncounters,a.error)})}getEncounterGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getEncounterGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getEncountersGroup({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getEncounterGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getEncounterGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getEncounterGroups,a.error)})}getImmunizations(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getImmunizations...");const a=yield this.handleQuery(ft(this,nn,"f").getImmunizations({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getImmunizations complete"),a.hasError()&&ft(this,Rt,"f").error("getImmunizations errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getImmunizations,a.error)})}getImmunizationGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getImmunizationGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getImmunizationGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getImmunizationGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getImmunizationGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getImmunizationGroups,a.error)})}getProcedures(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getProcedures...");const a=yield this.handleQuery(ft(this,nn,"f").GetProcedures({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getProcedures complete"),a.hasError()&&ft(this,Rt,"f").error("getProcedures errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getProcedures,a.error)})}getProcedureGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getProcedureGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getProcedureGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getProcedureGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getProcedureGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getProcedureGroups,a.error)})}getVitalSigns(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getVitalSigns...");const a=yield this.handleQuery(ft(this,nn,"f").getVitalSigns({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getVitalSigns complete"),a.hasError()&&ft(this,Rt,"f").error("getVitalSigns errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getVitalSigns,a.error)})}getVitalSignGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getVitalSignGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getVitalSignGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getVitalSignGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getVitalSignGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getVitalSignGroups,a.error)})}getMedicationDispense(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationDispense...");const a=yield this.handleQuery(ft(this,nn,"f").getMedicationDispense({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getMedicationDispense complete"),a.hasError()&&ft(this,Rt,"f").error("getMedicationDispense errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getMedicationDispense,a.error)})}getMedicationRequest(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationRequest...");const a=yield this.handleQuery(ft(this,nn,"f").getMedicationRequest({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getMedicationRequest complete"),a.hasError()&&ft(this,Rt,"f").error("getMedicationRequest errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getMedicationRequest,a.error)})}getMedicationStatements(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationStatements...");const a=yield this.handleQuery(ft(this,nn,"f").getMedicationStatements({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getMedicationStatements complete"),a.hasError()&&ft(this,Rt,"f").error("getMedicationStatements errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getMedicationStatements,a.error)})}getMedicationGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getMedicationGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getMedicationGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getMedicationGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getMedicationGroups,a.error)})}getMedicationKnowledge(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationKnowledge...");const i=yield this.handleQuery(ft(this,nn,"f").getMedicationKnowledge({request:t.data()}));return ft(this,Rt,"f").verbose("getMedicationKnowledge complete"),i.hasError()&&ft(this,Rt,"f").error("getMedicationKnowledge errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.getMedicationKnowledge,i.error)})}getLabKnowledge(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getLabKnowledge...");const i=yield this.handleQuery(ft(this,nn,"f").getLabKnowledge({request:t.data()}));return ft(this,Rt,"f").verbose("getLabKnowledge complete"),i.hasError()&&ft(this,Rt,"f").error("getLabKnowledge errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.getLabKnowledge,i.error)})}getMedicationPricing(t){return En(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();ft(this,Rt,"f").verbose("calling getMedicationPricing...");const i=yield this.handleQuery(ft(this,nn,"f").getMedicationPricing({request:t.data()}));return ft(this,Rt,"f").verbose("getMedicationPricing complete"),i.hasError()&&ft(this,Rt,"f").error("getMedicationPricing errors",i.error),new ar((r=i.data)===null||r===void 0?void 0:r.getMedicationPricing,i.error)})}getDiagnosticReportLabGroups(t){return En(this,void 0,void 0,function*(){var r,n;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Rt,"f").verbose("calling getDiagnosticReportLabGroups...");const a=yield this.handleQuery(ft(this,nn,"f").getDiagnosticReportLabGroups({request:(r=t?.data())!==null&&r!==void 0?r:null}));return ft(this,Rt,"f").verbose("getDiagnosticReportLabGroups complete"),a.hasError()&&ft(this,Rt,"f").error("getDiagnosticReportLabGroups errors",a.error),new ar((n=a.data)===null||n===void 0?void 0:n.getDiagnosticReportLabGroups,a.error)})}}nn=new WeakMap,Rt=new WeakMap;var bre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},jG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},oh=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ul,eT;class Cre extends As{constructor(t,r=new ji){super(),ul.set(this,void 0),eT.set(this,void 0),jG(this,eT,t,"f"),jG(this,ul,r.getLogger("GraphQLQuestionnaireManager"),"f")}nextQuestion(t){return bre(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r.intoFailure();oh(this,ul,"f").verbose("calling nextQuestion mutation...");const n=yield this.handleTransaction(oh(this,eT,"f").nextQuestion(t.data()));return oh(this,ul,"f").verbose("nextQuestion mutation complete"),n.failure()?(oh(this,ul,"f").error("nextQuestion mutation failed",n.error()),n.intoFailure()):(oh(this,ul,"f").info("successfully called nextQuestion mutation"),Kt.success(n.data().nextQuestion))})}}ul=new WeakMap,eT=new WeakMap;class NP{create(t){var r,n,i,a,u,c,v,_,h;const L=t.data(),W=null,Te=(r=L.searchTerm)!==null&&r!==void 0?r:null,me=(n=L.specialtyFilters)!==null&&n!==void 0?n:null,Oe=(i=L.includePopulatedPROAonly)!==null&&i!==void 0?i:!1,He=(a=L.organizationTypeFilters)!==null&&a!==void 0?a:null,qe=(u=L.gender)!==null&&u!==void 0?u:null,We=(c=L.location)!==null&&c!==void 0?c:null;let ct=null;ki(L.sortBy)&&(ct={field:(v=L.sortBy.field)!==null&&v!==void 0?v:null,order:(_=L.sortBy.order)!==null&&_!==void 0?_:null});const yt=(h=L.filterFields)!==null&&h!==void 0?h:null,jt=L.page,dr=L.pageSize;return{client:W,searchTerm:Te,specialtyFilters:me,includePopulatedPROAonly:Oe,organizationTypeFilters:He,gender:qe,location:We,sortBy:ct,filterFields:yt,page:jt,pageSize:dr}}}var Pre=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},LP;class Mre{constructor(){LP.set(this,new NP)}create(t){const r=Pre(this,LP,"f").create(t);return r.client={data_sets:[Lm.Connecthub]},r}}LP=new WeakMap;var Ire=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},DP;class Nre{constructor(){DP.set(this,new NP)}create(t){const r=Ire(this,DP,"f").create(t);return r.client={data_sets:[Lm.Nppes]},r}}DP=new WeakMap;class Lre{create(t){var r,n,i,a;const u=t.data();return{institution:(r=u.institution)!==null&&r!==void 0?r:null,provider:(n=u.provider)!==null&&n!==void 0?n:null,city:(i=u.city)!==null&&i!==void 0?i:null,state:(a=u.state)!==null&&a!==void 0?a:null}}}class Dre{create(t){var r,n,i,a,u,c,v;const _=t.data();return{searchInput:{client:_.client,filters:(r=_.filters)!==null&&r!==void 0?r:null,orderBy:(n=_.orderBy)!==null&&n!==void 0?n:null,paging:{pageNumber:(i=_.page)!==null&&i!==void 0?i:null,pageSize:(a=_.pageSize)!==null&&a!==void 0?a:null},search:(u=_.search)!==null&&u!==void 0?u:null,searchLocation:(c=_.searchLocation)!==null&&c!==void 0?c:null,user:(v=_.user)!==null&&v!==void 0?v:null}}}}var sh=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},HG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},_n=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Yu,zn,wP,UP,xP,FP,$P;class wre extends As{constructor(t,r=new ji){super(),Yu.set(this,void 0),zn.set(this,void 0),wP.set(this,new NP),UP.set(this,new Nre),xP.set(this,new Mre),FP.set(this,new Lre),$P.set(this,new Dre),HG(this,Yu,t,"f"),HG(this,zn,r.getLogger("GraphQLSearchManager"),"f")}searchHealthResources(t){return sh(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();_n(this,zn,"f").verbose("calling searchHealthResources query");const i=yield this.handleQuery(_n(this,Yu,"f").SearchHealthResources(_n(this,$P,"f").create(t)));return _n(this,zn,"f").verbose("searchHealthResources query complete"),i.hasError()?_n(this,zn,"f").error("searchHealthResources query failed",i.error):_n(this,zn,"f").info("successfully called searchHealthResources query"),new ar((r=i.data)===null||r===void 0?void 0:r.searchHealthResources,i.error)})}search(t){return sh(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();_n(this,zn,"f").verbose("calling providerSearch search query");const i=yield this.handleQuery(_n(this,Yu,"f").providerSearch(_n(this,wP,"f").create(t)));return _n(this,zn,"f").verbose("providerSearch search query complete"),i.hasError()?_n(this,zn,"f").error("providerSearch search query failed",i.error):_n(this,zn,"f").info("successfully called providerSearch search query"),new ar((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}searchProviders(t){return sh(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();_n(this,zn,"f").verbose("calling providerSearch searchProviders query");const i=yield this.handleQuery(_n(this,Yu,"f").providerSearch(_n(this,UP,"f").create(t)));return _n(this,zn,"f").verbose("providerSearch searchProviders query complete"),i.hasError()?_n(this,zn,"f").error("providerSearch searchProviders query failed",i.error):_n(this,zn,"f").info("successfully called providerSearch searchProviders query"),new ar((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}searchConnections(t){return sh(this,void 0,void 0,function*(){var r;const n=t.validate();if(n.failure())return n.toQueryResult();_n(this,zn,"f").verbose("calling providerSearch searchConnections query");const i=yield this.handleQuery(_n(this,Yu,"f").providerSearch(_n(this,xP,"f").create(t)));return _n(this,zn,"f").verbose("providerSearch searchConnections query complete"),i.hasError()?_n(this,zn,"f").error("providerSearch searchConnections query failed",i.error):_n(this,zn,"f").info("successfully called providerSearch searchConnections query"),new ar((r=i.data)===null||r===void 0?void 0:r.providers,i.error)})}requestConnection(t){return sh(this,void 0,void 0,function*(){_n(this,zn,"f").verbose("calling requestConnection mutation");const r=yield this.handleTransaction(_n(this,Yu,"f").requestConnection(_n(this,FP,"f").create(t)));return _n(this,zn,"f").verbose("requestConnection mutation complete"),r.failure()?(_n(this,zn,"f").error("requestConnection mutation failed",r),r.intoFailure()):(_n(this,zn,"f").info("requestConnection request success"),Kt.success(r.data().requestConnection))})}}Yu=new WeakMap,zn=new WeakMap,wP=new WeakMap,UP=new WeakMap,xP=new WeakMap,FP=new WeakMap,$P=new WeakMap;const Ure="http://www.icanbwell.com/consent-category";class xre{create(t){const r=t.data(),n={status:r.status,provision:{type:r.provision}};return ki(r.organizationId)&&(n.organization=[{type:"Organization",reference:`Organization/${r.organizationId}`}]),ki(r.category)&&(n.category=[{coding:[{system:Ure,code:r.category}]}]),{consentInput:n}}}class Fre{create(t){const r=t.data();return{exportId:r.exportId,password:r.password}}}class $re{create(t){var r,n;const i=t.data();return{callbackURL:(r=i.callbackUrl)!==null&&r!==void 0?r:null,includeAttributeMatchingCheck:(n=i.includeAttributeMatchingCheck)!==null&&n!==void 0?n:null}}}class Vre{create(t){return{categoryCode:t.data().category}}}var d_=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},qu,VP,YG,qG,KG,WG;class Gre{constructor(){qu.add(this)}create(t){const r=t.data(),n={resourceType:$C.Person};return d_(this,qu,"m",VP).call(this,"id",r.id,n),d_(this,qu,"m",VP).call(this,"birthDate",r.birthDate,n),d_(this,qu,"m",YG).call(this,r,n),d_(this,qu,"m",KG).call(this,r,n),d_(this,qu,"m",qG).call(this,r,n),d_(this,qu,"m",WG).call(this,r,n),{person:n}}}qu=new WeakSet,VP=function(t,r,n){ka(r)||(n[t]=r)},YG=function(t,r){let n=!1;const{firstName:i,lastName:a}=t,u={};Fn(i)&&(n=!0,u.given=[i]),Fn(a)&&(n=!0,u.family=a),n&&(r.name=[u])},qG=function(t,r){let n=!1;const{addressUnit:i,addressStreet:a,city:u,stateOrProvidence:c,postageOrZipCode:v}=t,_={};if(Fn(i)||Fn(a)){n=!0;const h=[];Fn(a)&&h.push(a),Fn(i)&&h.push(i),_.line=h}Fn(u)&&(n=!0,_.city=u),Fn(c)&&(n=!0,_.state=c),Fn(v)&&(n=!0,_.postalCode=v),n&&(r.address=[_])},KG=function(t,r){const n=t.gender;ka(n)||(r.gender=n)},WG=function(t,r){const n=[],{homePhone:i,mobilePhone:a,workPhone:u,email:c}=t;Fn(i)&&n.push({system:"phone",use:"home",value:i}),Fn(a)&&n.push({system:"phone",use:"mobile",value:a}),Fn(u)&&n.push({system:"phone",use:"work",value:u}),Fn(c)&&n.push({system:"email",value:c}),n.length!==0&&(r.telecom=n)};var Ku=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},QG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},fr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},ko,jr,GP,BP,kP,jP,HP;class Bre extends As{constructor(t,r=new ji){super(),ko.set(this,void 0),jr.set(this,void 0),GP.set(this,new xre),BP.set(this,new Gre),kP.set(this,new Vre),jP.set(this,new Fre),HP.set(this,new $re),QG(this,ko,t,"f"),QG(this,jr,r.getLogger("GraphQLUserManager"),"f")}getProfile(){return Ku(this,void 0,void 0,function*(){var t;fr(this,jr,"f").verbose("calling getProfile...");const r=yield this.handleQuery(fr(this,ko,"f").getProfile());return fr(this,jr,"f").verbose("getProfile complete"),r.hasError()?fr(this,jr,"f").error("getProfile failed",r.error):fr(this,jr,"f").info("successfully called getProfile"),new ar((t=r.data)===null||t===void 0?void 0:t.userProfile,r.error)})}delete(){return Ku(this,void 0,void 0,function*(){fr(this,jr,"f").verbose("calling delete...");const t=yield this.handleTransaction(fr(this,ko,"f").delete());return fr(this,jr,"f").verbose("delete complete"),t.failure()?(fr(this,jr,"f").error("delete failed",t.error),t.intoFailure()):(fr(this,jr,"f").info("successfully called delete"),Kt.success(null))})}updateProfile(t){return Ku(this,void 0,void 0,function*(){fr(this,jr,"f").verbose("calling updateUserProfile");const r=yield this.handleTransaction(fr(this,ko,"f").updateUserProfile(fr(this,BP,"f").create(t)));return fr(this,jr,"f").verbose("updateUserProfile complete"),r.failure()?(fr(this,jr,"f").error("updateUserProfile error",r),r.intoFailure()):(fr(this,jr,"f").info("updateUserProfile success"),Kt.success(r.data().updateUserProfile))})}getConsents(t){return Ku(this,void 0,void 0,function*(){var r;const n=this.validateRequest(t);if(n.failure())return n.toQueryResult();fr(this,jr,"f").verbose("calling consent search query...");let i;t!==void 0&&(i=fr(this,kP,"f").create(t));const a=yield this.handleQuery(fr(this,ko,"f").searchConsent(i));return fr(this,jr,"f").verbose("consent search query complete"),a.hasError()?fr(this,jr,"f").error("consent search failed",a.error):fr(this,jr,"f").info("successfully called consent search query"),new ar((r=a.data)===null||r===void 0?void 0:r.search,a.error)})}createConsent(t){return Ku(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;fr(this,jr,"f").verbose("calling createConsent mutation...");const n=yield this.handleTransaction(fr(this,ko,"f").createConsent(fr(this,GP,"f").create(t)));return fr(this,jr,"f").verbose("createConsent mutation complete"),n.failure()?(fr(this,jr,"f").error("createConsent mutation error",n),n.intoFailure()):(fr(this,jr,"f").info("createConsent mutation success"),Kt.success(n.data().createConsent))})}createDataExportDirectDownloadUrl(t){return Ku(this,void 0,void 0,function*(){const r=t.validate();if(r.failure())return r;fr(this,jr,"f").verbose("calling createDataExportDirectDownloadUrl mutation...");const n=yield this.handleTransaction(fr(this,ko,"f").CreateDataExportDirectDownloadUrl(fr(this,jP,"f").create(t)));return fr(this,jr,"f").verbose("createDataExportDirectDownloadUrl mutation complete"),n.failure()?(fr(this,jr,"f").error("createDataExportDirectDownloadUrl mutation error",n),n.intoFailure()):(fr(this,jr,"f").info("createDataExportDirectDownloadUrl mutation success"),Kt.success(n.data().createDataExportDirectDownloadUrl))})}createVerificationUrl(t){return Ku(this,void 0,void 0,function*(){fr(this,jr,"f").verbose("calling createVerificationUrl mutation...");const r=yield this.handleTransaction(fr(this,ko,"f").CreateVerificationUrl(fr(this,HP,"f").create(t)));return fr(this,jr,"f").verbose("createVerificationUrl complete"),r.failure()?(fr(this,jr,"f").error("createVerificationUrl error",r),r.intoFailure()):(fr(this,jr,"f").info("createVerificationUrl success"),Kt.success(r.data().createVerificationUrl))})}getVerificationStatus(){return Ku(this,void 0,void 0,function*(){fr(this,jr,"f").verbose("calling getVerificationStatus query...");const t=yield this.handleTransaction(fr(this,ko,"f").VerificationStatus());return fr(this,jr,"f").verbose("getVerificationStatus complete"),t.failure()?(fr(this,jr,"f").error("getVerificationStatus error",t),t.intoFailure()):(fr(this,jr,"f").info("getVerificationStatus success"),Kt.success(t.data().verificationStatus))})}}ko=new WeakMap,jr=new WeakMap,GP=new WeakMap,BP=new WeakMap,kP=new WeakMap,jP=new WeakMap,HP=new WeakMap;var zG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},gs=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},tT,uo;class kre{constructor(t,r,n){tT.set(this,void 0),uo.set(this,void 0),zG(this,tT,r.getLogger("GraphQLAPIProvider"),"f"),zG(this,uo,t,"f"),gs(this,tT,"f").verbose("initializing GraphQLClient"),this.activity=new dre(gs(this,uo,"f"),r),this.connection=new pre(gs(this,uo,"f"),r),this.device=new vre(gs(this,uo,"f"),r),this.event=new Are(gs(this,uo,"f"),r),this.health=new Ore(gs(this,uo,"f"),r),this.healthSpace=new Rre(gs(this,uo,"f"),r),this.user=new Bre(gs(this,uo,"f"),r),this.search=new wre(gs(this,uo,"f"),r),this.questionnaire=new Cre(gs(this,uo,"f"),r),this.language=new sre(n)}}tT=new WeakMap,uo=new WeakMap;class jre{createApiProvider(t,r,n){const{sdk:i,client:a}=NG(t.graphQL.apiUrl,r,t.bwellConfig.language);return new kre(i,n,a)}}var p_=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},XG=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},dn=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Zs,Pn;class Hre extends As{constructor(t,r=new ji){super(),Zs.set(this,void 0),Pn.set(this,void 0),XG(this,Zs,t,"f"),XG(this,Pn,r.getLogger("GraphQLIdentityManager"),"f")}initialize(t){return p_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("executing initialize query...",{clientKey:t});const r=yield this.handleTransaction(dn(this,Zs,"f").initialize({clientKey:t}));return dn(this,Pn,"f").verbose("initialize query complete",r),r.failure()?(dn(this,Pn,"f").error("initialize failed.",r),r.intoFailure()):(dn(this,Pn,"f").info("successfully called initialize"),Kt.success(r.data().initSdk))})}authenticateWithOauth(t){return p_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("exectuting oauth authenticate query...");const r=yield this.handleTransaction(dn(this,Zs,"f").authenticate({},{Authorization:t.jweToken,ClientKey:t.clientKey}));if(dn(this,Pn,"f").verbose("oauth authenticate query complete",r),r.failure())return dn(this,Pn,"f").error("oauth authenticate failed",r),r.intoFailure();dn(this,Pn,"f").info("oauth authenticate success");const n=r.data(),i={accessToken:n.getToken.accessToken.jwtToken,idToken:n.getToken.idToken.jwtToken,refreshToken:n.getToken.refreshToken.token};return Kt.success(i)})}authenticateWithUsernamePassword(t){return p_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("exectuting username/password authenticate query...");const r=yield this.handleTransaction(dn(this,Zs,"f").login({email:t.email,password:t.password},{ClientKey:t.clientKey}));if(dn(this,Pn,"f").verbose("username/password authenticate query complete",r),r.failure())return dn(this,Pn,"f").error("username/password authenticate failed",r),r.intoFailure();dn(this,Pn,"f").info("username/password authenticate success");const n=r.data(),i={accessToken:n.login.accessToken.jwtToken,idToken:n.login.idToken.jwtToken,refreshToken:n.login.refreshToken.token};return Kt.success(i)})}authenticateWithAuthCode(t){return p_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("executing authenticateWithAuthCode query...");const r=yield this.handleTransaction(dn(this,Zs,"f").ExchangeAuthCode({authCode:t.authCode}));if(dn(this,Pn,"f").verbose("authenticateWithAuthCode query complete",r),r.failure())return dn(this,Pn,"f").error("authenticateWithAuthCode failed",r),r.intoFailure();dn(this,Pn,"f").info("authenticateWithAuthCode successful");const n=r.data(),i={accessToken:n.exchangeAuthCode.accessToken.jwtToken,idToken:n.exchangeAuthCode.idToken.jwtToken,refreshToken:n.exchangeAuthCode.refreshToken.token};return Kt.success(i)})}refreshAccessToken(t){return p_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("executing refreshAccessToken query...");const r=yield this.handleTransaction(dn(this,Zs,"f").refreshTokens({},{refresh_token:t.refreshToken,clientkey:t.clientKey}));return dn(this,Pn,"f").verbose("refreshAccessToken query complete",r),r.failure()?(dn(this,Pn,"f").error("refreshAccessToken failed",r),r.intoFailure()):(dn(this,Pn,"f").info("refreshAccessToken successful"),Kt.success(r.data().refresh))})}createGuestAccessToken(t){return p_(this,void 0,void 0,function*(){dn(this,Pn,"f").verbose("executing createGuestAccessToken mutation...",t);const r=yield this.handleTransaction(dn(this,Zs,"f").createGuestAccessToken(t));if(dn(this,Pn,"f").verbose("createGuestAccessToken mutation complete",r),r.failure())return dn(this,Pn,"f").error("createGuestAccessToken failed",r),r.intoFailure();dn(this,Pn,"f").info("createGuestAccessToken successful");const n=r.data();return Kt.success(n.createGuestAccessToken)})}}Zs=new WeakMap,Pn=new WeakMap;class Yre{createIdentityManager(t,r){const{sdk:n}=NG(t.graphQL.unauthApiUrl);return new Hre(n,r)}}function YP(e,t){const r=Object.keys(e);return r.length===t.length&&r.every(n=>t.includes(n))}function JG(e){return"token"in e&&YP(e,["token"])}function ZG(e){return"email"in e&&"password"in e&&YP(e,["email","password"])}function eB(e){return"authCode"in e&&YP(e,["authCode"])}var qre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},qP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},uh=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},rT,h_,nT;class Kre{constructor(t,r,n=new ji){rT.set(this,void 0),h_.set(this,void 0),nT.set(this,void 0),qP(this,rT,r,"f"),qP(this,nT,t,"f"),qP(this,h_,n.getLogger("OAuthStrategy"),"f")}authenticate(t){return qre(this,void 0,void 0,function*(){if(!JG(t))return uh(this,h_,"f").error("Incorrect credentials type provided to OAuthStrategy"),Kt.failure(new MC("Expected OAuthCredentials",t));uh(this,h_,"f").verbose("authenticating via OAuth strategy...");const r=yield uh(this,rT,"f").authenticateWithOauth({jweToken:t.token,clientKey:uh(this,nT,"f").context.clientKey});return uh(this,h_,"f").verbose("finished OAuth authentication"),r})}}rT=new WeakMap,h_=new WeakMap,nT=new WeakMap;var Wre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},KP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},ch=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},iT,S_,aT;class Qre{constructor(t,r,n=new ji){iT.set(this,void 0),S_.set(this,void 0),aT.set(this,void 0),KP(this,iT,r,"f"),KP(this,aT,t,"f"),KP(this,S_,n.getLogger("AuthCodeStrategy"),"f")}authenticate(t){return Wre(this,void 0,void 0,function*(){if(!eB(t))return ch(this,S_,"f").error("Incorrect credentials type provided to AuthCodeStrategy"),Kt.failure(new MC("Expected AuthCodeCredentials",t));ch(this,S_,"f").verbose("authenticating via AuthCode strategy...");const r=yield ch(this,iT,"f").authenticateWithAuthCode({authCode:t.authCode,clientKey:ch(this,aT,"f").context.clientKey});return ch(this,S_,"f").verbose("finished AuthCode authentication"),r})}}iT=new WeakMap,S_=new WeakMap,aT=new WeakMap;var zre=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},WP=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},lh=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},oT,E_,sT;class Xre{constructor(t,r,n=new ji){oT.set(this,void 0),E_.set(this,void 0),sT.set(this,void 0),WP(this,oT,r,"f"),WP(this,sT,t,"f"),WP(this,E_,n.getLogger("UsernamePasswordStrategy"),"f")}authenticate(t){return zre(this,void 0,void 0,function*(){if(!ZG(t))return lh(this,E_,"f").error("Invalid credentials type provided to UsernamePasswordStrategy. Please provide username and password."),Kt.failure(new MC("Expected UserPassCredentials",t));lh(this,E_,"f").verbose("authenticating via UsernamePassword strategy...");const r=yield lh(this,oT,"f").authenticateWithUsernamePassword({clientKey:lh(this,sT,"f").context.clientKey,email:t.email,password:t.password});return lh(this,E_,"f").verbose("finished OAuth authentication"),r})}}oT=new WeakMap,E_=new WeakMap,sT=new WeakMap;class Jre{createAuthStrategy(t,r,n,i=new ji){if(ZG(n))return new Xre(t,r,i);if(JG(n))return new Kre(t,r,i);if(eB(n))return new Qre(t,r,i);throw new Error("Invalid credentials type provided; expected UserPassCredentials, OauthCredentials or AuthCodeCredentials.")}}var Zre=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{},cl="1.9.0",tB=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function ene(e){var t=new Set([e]),r=new Set,n=e.match(tB);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(v){return v===e};function a(c){return r.add(c),!1}function u(c){return t.add(c),!0}return function(v){if(t.has(v))return!0;if(r.has(v))return!1;var _=v.match(tB);if(!_)return a(v);var h={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return h.prerelease!=null||i.major!==h.major?a(v):i.major===0?i.minor===h.minor&&i.patch<=h.patch?u(v):a(v):i.minor<=h.minor?u(v):a(v)}}var tne=ene(cl),rne=cl.split(".")[0],fh=Symbol.for("opentelemetry.js.api."+rne),_h=Zre;function dh(e,t,r,n){var i;n===void 0&&(n=!1);var a=_h[fh]=(i=_h[fh])!==null&&i!==void 0?i:{version:cl};if(!n&&a[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(a.version!==cl){var u=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+cl);return r.error(u.stack||u.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+cl+"."),!0}function ll(e){var t,r,n=(t=_h[fh])===null||t===void 0?void 0:t.version;if(!(!n||!tne(n)))return(r=_h[fh])===null||r===void 0?void 0:r[e]}function ph(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+cl+".");var r=_h[fh];r&&delete r[e]}function uT(e){return Symbol.for(e)}var nne=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var a=new e(r._currentContext);return a._currentContext.set(n,i),a},r.deleteValue=function(n){var i=new e(r._currentContext);return i._currentContext.delete(n),i}}return e}(),v_=new nne,ine=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ane=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},one=function(){function e(){}return e.prototype.active=function(){return v_},e.prototype.with=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return r.call.apply(r,ane([n],ine(i),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),sne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},une=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},cne=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hh("verbose",this._namespace,t)},e}();function hh(e,t,r){var n=ll("diag");if(!!n)return r.unshift(t),n[e].apply(n,une([],sne(r),!1))}var vn;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(vn||(vn={}));function lne(e,t){e<vn.NONE?e=vn.NONE:e>vn.ALL&&(e=vn.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",vn.ERROR),warn:r("warn",vn.WARN),info:r("info",vn.INFO),debug:r("debug",vn.DEBUG),verbose:r("verbose",vn.VERBOSE)}}var fne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},_ne=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},dne="diag",ys=function(){function e(){function t(i){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=ll("diag");if(!!c)return c[i].apply(c,_ne([],fne(a),!1))}}var r=this,n=function(i,a){var u,c,v;if(a===void 0&&(a={logLevel:vn.INFO}),i===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((u=_.stack)!==null&&u!==void 0?u:_.message),!1}typeof a=="number"&&(a={logLevel:a});var h=ll("diag"),L=lne((c=a.logLevel)!==null&&c!==void 0?c:vn.INFO,i);if(h&&!a.suppressOverrideMessage){var W=(v=new Error().stack)!==null&&v!==void 0?v:"<failed to generate stacktrace>";h.warn("Current logger will be overwritten from "+W),L.warn("Current logger will overwrite one already registered from "+W)}return dh("diag",L,r,!0)};r.setLogger=n,r.disable=function(){ph(dne,r)},r.createComponentLogger=function(i){return new cne(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),pne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},hne=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},QP="context",Sne=new one,cT=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return dh(QP,t,ys.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var i,a=[],u=3;u<arguments.length;u++)a[u-3]=arguments[u];return(i=this._getContextManager()).with.apply(i,hne([t,r,n],pne(a),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return ll(QP)||Sne},e.prototype.disable=function(){this._getContextManager().disable(),ph(QP,ys.instance())},e}(),Rs;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Rs||(Rs={}));var rB="0000000000000000",nB="00000000000000000000000000000000",iB={traceId:nB,spanId:rB,traceFlags:Rs.NONE},Sh=function(){function e(t){t===void 0&&(t=iB),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,r){},e}(),zP=uT("OpenTelemetry Context Key SPAN");function XP(e){return e.getValue(zP)||void 0}function Ene(){return XP(cT.getInstance().active())}function JP(e,t){return e.setValue(zP,t)}function vne(e){return e.deleteValue(zP)}function mne(e,t){return JP(e,new Sh(t))}function aB(e){var t;return(t=XP(e))===null||t===void 0?void 0:t.spanContext()}var Tne=/^([0-9a-f]{32})$/i,Ane=/^[0-9a-f]{16}$/i;function oB(e){return Tne.test(e)&&e!==nB}function gne(e){return Ane.test(e)&&e!==rB}function m_(e){return oB(e.traceId)&&gne(e.spanId)}function yne(e){return new Sh(e)}var ZP=cT.getInstance(),sB=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=ZP.active());var i=Boolean(r?.root);if(i)return new Sh;var a=n&&aB(n);return Rne(a)&&m_(a)?new Sh(a):new Sh},e.prototype.startActiveSpan=function(t,r,n,i){var a,u,c;if(!(arguments.length<2)){arguments.length===2?c=r:arguments.length===3?(a=r,c=n):(a=r,u=n,c=i);var v=u??ZP.active(),_=this.startSpan(t,a,v),h=JP(v,_);return ZP.with(h,c,void 0,_)}},e}();function Rne(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var One=new sB,bne=function(){function e(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):One},e}(),Cne=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new sB},e}(),Pne=new Cne,uB=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var i;return(i=this.getDelegateTracer(t,r,n))!==null&&i!==void 0?i:new bne(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Pne},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,r,n)},e}(),eM="trace",Mne=function(){function e(){this._proxyTracerProvider=new uB,this.wrapSpanContext=yne,this.isSpanContextValid=m_,this.deleteSpan=vne,this.getSpan=XP,this.getActiveSpan=Ene,this.getSpanContext=aB,this.setSpan=JP,this.setSpanContext=mne}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=dh(eM,this._proxyTracerProvider,ys.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return ll(eM)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){ph(eM,ys.instance()),this._proxyTracerProvider=new uB},e}(),ta=Mne.getInstance(),tM=uT("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Ine(e){return e.setValue(tM,!0)}function RUe(e){return e.deleteValue(tM)}function Nne(e){return e.getValue(tM)===!0}var rM="[_0-9a-z-*/]",Lne="[a-z]"+rM+"{0,255}",Dne="[a-z0-9]"+rM+"{0,240}@[a-z]"+rM+"{0,13}",wne=new RegExp("^(?:"+Lne+"|"+Dne+")$"),Une=/^[ -~]{0,255}[!-~]$/,xne=/,|=/;function Fne(e){return wne.test(e)}function $ne(e){return Une.test(e)&&!xne.test(e)}var cB=32,Vne=512,lB=",",fB="=",Gne=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+fB+t.get(n)),r},[]).join(lB)},e.prototype._parse=function(t){t.length>Vne||(this._internalState=t.split(lB).reverse().reduce(function(r,n){var i=n.trim(),a=i.indexOf(fB);if(a!==-1){var u=i.slice(0,a),c=i.slice(a+1,n.length);Fne(u)&&$ne(c)&&r.set(u,c)}return r},new Map),this._internalState.size>cB&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,cB))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),nM="traceparent",iM="tracestate",Bne="00",kne="(?!ff)[\\da-f]{2}",jne="(?![0]{32})[\\da-f]{32}",Hne="(?![0]{16})[\\da-f]{16}",Yne="[\\da-f]{2}",qne=new RegExp("^\\s?("+kne+")-("+jne+")-("+Hne+")-("+Yne+")(-.*)?\\s?$");function Kne(e){var t=qne.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Wne=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=ta.getSpanContext(t);if(!(!i||Nne(t)||!m_(i))){var a=Bne+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Rs.NONE).toString(16);n.set(r,nM,a),i.traceState&&n.set(r,iM,i.traceState.serialize())}},e.prototype.extract=function(t,r,n){var i=n.get(r,nM);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var u=Kne(a);if(!u)return t;u.isRemote=!0;var c=n.get(r,iM);if(c){var v=Array.isArray(c)?c.join(","):c;u.traceState=new Gne(typeof v=="string"?v:void 0)}return ta.setSpanContext(t,u)},e.prototype.fields=function(){return[nM,iM]},e}(),Qne=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{},fl="1.6.0",_B=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function zne(e){var t=new Set([e]),r=new Set,n=e.match(_B);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(v){return v===e};function a(c){return r.add(c),!1}function u(c){return t.add(c),!0}return function(v){if(t.has(v))return!0;if(r.has(v))return!1;var _=v.match(_B);if(!_)return a(v);var h={major:+_[1],minor:+_[2],patch:+_[3],prerelease:_[4]};return h.prerelease!=null||i.major!==h.major?a(v):i.major===0?i.minor===h.minor&&i.patch<=h.patch?u(v):a(v):i.minor<=h.minor?u(v):a(v)}}var Xne=zne(fl),Jne=fl.split(".")[0],Eh=Symbol.for("opentelemetry.js.api."+Jne),vh=Qne;function Zne(e,t,r,n){var i;n===void 0&&(n=!1);var a=vh[Eh]=(i=vh[Eh])!==null&&i!==void 0?i:{version:fl};if(!n&&a[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(u.stack||u.message),!1}if(a.version!==fl){var u=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+fl);return r.error(u.stack||u.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+fl+"."),!0}function aM(e){var t,r,n=(t=vh[Eh])===null||t===void 0?void 0:t.version;if(!(!n||!Xne(n)))return(r=vh[Eh])===null||r===void 0?void 0:r[e]}function eie(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+fl+".");var r=vh[Eh];r&&delete r[e]}var tie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},rie=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},nie=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mh("verbose",this._namespace,t)},e}();function mh(e,t,r){var n=aM("diag");if(!!n)return r.unshift(t),n[e].apply(n,rie([],tie(r),!1))}var ci;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(ci||(ci={}));function iie(e,t){e<ci.NONE?e=ci.NONE:e>ci.ALL&&(e=ci.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",ci.ERROR),warn:r("warn",ci.WARN),info:r("info",ci.INFO),debug:r("debug",ci.DEBUG),verbose:r("verbose",ci.VERBOSE)}}var aie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},oie=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},sie="diag",dB=function(){function e(){function t(i){return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=aM("diag");if(!!c)return c[i].apply(c,oie([],aie(a),!1))}}var r=this,n=function(i,a){var u,c,v;if(a===void 0&&(a={logLevel:ci.INFO}),i===r){var _=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((u=_.stack)!==null&&u!==void 0?u:_.message),!1}typeof a=="number"&&(a={logLevel:a});var h=aM("diag"),L=iie((c=a.logLevel)!==null&&c!==void 0?c:ci.INFO,i);if(h&&!a.suppressOverrideMessage){var W=(v=new Error().stack)!==null&&v!==void 0?v:"<failed to generate stacktrace>";h.warn("Current logger will be overwritten from "+W),L.warn("Current logger will overwrite one already registered from "+W)}return Zne("diag",L,r,!0)};r.setLogger=n,r.disable=function(){eie(sie,r)},r.createComponentLogger=function(i){return new nie(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),Wu=dB.instance(),uie=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),cie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},lie=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},fie=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new uie}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,lie([this._that],cie(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),T_;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(T_||(T_={}));var oM;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(oM||(oM={}));var _ie=",",die=["OTEL_SDK_DISABLED"];function pie(e){return die.indexOf(e)>-1}var hie=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Sie(e){return hie.indexOf(e)>-1}var Eie=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function vie(e){return Eie.indexOf(e)>-1}var sM=1/0,uM=128,mie=128,Tie=128,pB={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:ci.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:sM,OTEL_ATTRIBUTE_COUNT_LIMIT:uM,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:sM,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:uM,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:sM,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:uM,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:mie,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Tie,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:oM.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function Aie(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function gie(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function yie(e,t,r,n){n===void 0&&(n=_ie);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var Rie={ALL:ci.ALL,VERBOSE:ci.VERBOSE,DEBUG:ci.DEBUG,INFO:ci.INFO,WARN:ci.WARN,ERROR:ci.ERROR,NONE:ci.NONE};function Oie(e,t,r){var n=r[e];if(typeof n=="string"){var i=Rie[n.toUpperCase()];i!=null&&(t[e]=i)}}function bie(e){var t={};for(var r in pB){var n=r;switch(n){case"OTEL_LOG_LEVEL":Oie(n,t,e);break;default:if(pie(n))Aie(n,t,e);else if(Sie(n))gie(n,t,e);else if(vie(n))yie(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var Cie=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{};function eu(){var e=bie(Cie);return Object.assign({},pB,e)}function OUe(){return parseEnvironment(_globalThis)}var Pie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},hB=1e4,Mie=5,Iie=1e3,Nie=5e3,Lie=1.5;function Die(e){e===void 0&&(e={});var t={};return Object.entries(e).forEach(function(r){var n=Pie(r,2),i=n[0],a=n[1];typeof a<"u"?t[i]=String(a):Wu.warn('Header "'+i+'" has invalid value ('+a+") and will be ignored")}),t}function wie(e,t){return e.endsWith("/")||(e=e+"/"),e+t}function Uie(e){try{var t=new URL(e);return t.pathname===""&&(t.pathname=t.pathname+"/"),t.toString()}catch{return Wu.warn("Could not parse export URL: '"+e+"'"),e}}function xie(e){return typeof e=="number"?e<=0?SB(e,hB):e:Fie()}function Fie(){var e,t=Number((e=eu().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&e!==void 0?e:eu().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?SB(t,hB):t}function SB(e,t){return Wu.warn("Timeout must be greater than 0",e),t}function $ie(e){var t=[429,502,503,504];return t.includes(e)}function Vie(e){if(e==null)return-1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;var r=new Date(e).getTime()-Date.now();return r>=0?r:0}var Gie=function(){function e(t){t===void 0&&(t={}),this._sendingPromises=[],this.url=this.getDefaultUrl(t),typeof t.hostname=="string"&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new fie(this._shutdown,this),this._concurrencyLimit=typeof t.concurrencyLimit=="number"?t.concurrencyLimit:30,this.timeoutMillis=xie(t.timeoutMillis),this.onInit(t)}return e.prototype.export=function(t,r){if(this._shutdownOnce.isCalled){r({code:T_.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){r({code:T_.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(t).then(function(){r({code:T_.SUCCESS})}).catch(function(n){r({code:T_.FAILED,error:n})})},e.prototype._export=function(t){var r=this;return new Promise(function(n,i){try{Wu.debug("items to be sent",t),r.send(t,n,i)}catch(a){i(a)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return Wu.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),Bie=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Th=function(e){Bie(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.name="OTLPExporterError",a.data=i,a.code=n,a}return t}(Error),lT=function(){return lT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lT.apply(this,arguments)},kie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function jie(e,t,r,n,i){if(navigator.sendBeacon(t,new Blob([e],r)))Wu.debug("sendBeacon - can send",e),n();else{var a=new Th("sendBeacon - cannot send "+e);i(a)}}function Hie(e,t,r,n,i,a){var u,c,v=!1,_=setTimeout(function(){if(clearTimeout(u),v=!0,c.readyState===XMLHttpRequest.DONE){var L=new Th("Request Timeout");a(L)}else c.abort()},n),h=function(L,W){L===void 0&&(L=Mie),W===void 0&&(W=Iie),c=new XMLHttpRequest,c.open("POST",t);var Te={Accept:"application/json","Content-Type":"application/json"};Object.entries(lT(lT({},Te),r)).forEach(function(me){var Oe=kie(me,2),He=Oe[0],qe=Oe[1];c.setRequestHeader(He,qe)}),c.send(e),c.onreadystatechange=function(){if(c.readyState===XMLHttpRequest.DONE&&v===!1)if(c.status>=200&&c.status<=299)Wu.debug("xhr success",e),i(),clearTimeout(_),clearTimeout(u);else if(c.status&&$ie(c.status)&&L>0){var me=void 0;W=Lie*W,c.getResponseHeader("Retry-After")?me=Vie(c.getResponseHeader("Retry-After")):me=Math.round(Math.random()*(Nie-W)+W),u=setTimeout(function(){h(L-1,W)},me)}else{var Oe=new Th("Failed to export with XHR (status: "+c.status+")",c.status);a(Oe),clearTimeout(_),clearTimeout(u)}},c.onabort=function(){if(v){var me=new Th("Request Timeout");a(me)}clearTimeout(_),clearTimeout(u)},c.onerror=function(){if(v){var me=new Th("Request Timeout");a(me)}clearTimeout(_),clearTimeout(u)}};h()}var Yie=Symbol("BaggageEntryMetadata"),qie=dB.instance();function bUe(e){return e===void 0&&(e={}),new BaggageImpl(new Map(Object.entries(e)))}function Kie(e){return typeof e!="string"&&(qie.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Yie,toString:function(){return e}}}var Wie="=",EB=";",Qie=",",CUe="baggage",PUe=180,MUe=4096,IUe=8192,zie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function NUe(e){return e.reduce(function(t,r){var n=""+t+(t!==""?BAGGAGE_ITEMS_SEPARATOR:"")+r;return n.length>BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}function LUe(e){return e.getAllEntries().map(function(t){var r=zie(t,2),n=r[0],i=r[1],a=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),a})}function Xie(e){var t=e.split(EB);if(!(t.length<=0)){var r=t.shift();if(!!r){var n=r.indexOf(Wie);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim()),u;return t.length>0&&(u=Kie(t.join(EB))),{key:i,value:a,metadata:u}}}}}function vB(e){return typeof e!="string"||e.length===0?{}:e.split(Qie).map(function(t){return Xie(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var Jie=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),fT=function(){return fT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fT.apply(this,arguments)},Zie=function(e){Jie(t,e);function t(r,n,i){r===void 0&&(r={});var a=e.call(this,r)||this;return a._useXHR=!1,a._serializer=n,a._contentType=i,a._useXHR=!!r.headers||typeof navigator.sendBeacon!="function",a._useXHR?a._headers=Object.assign({},Die(r.headers),vB(eu().OTEL_EXPORTER_OTLP_HEADERS)):a._headers={},a}return t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(r,n,i){var a=this,u;if(this._shutdownOnce.isCalled){Wu.debug("Shutdown already started. Cannot send objects");return}var c=(u=this._serializer.serializeRequest(r))!==null&&u!==void 0?u:new Uint8Array,v=new Promise(function(h,L){a._useXHR?Hie(c,a.url,fT(fT({},a._headers),{"Content-Type":a._contentType}),a.timeoutMillis,h,L):jie(c,a.url,{type:a._contentType},h,L)}).then(n,i);this._sendingPromises.push(v);var _=function(){var h=a._sendingPromises.indexOf(v);a._sendingPromises.splice(h,1)};v.then(_,_)},t}(Gie),eae=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function cM(e){return{name:e.name,version:e.version}}function _l(e){return Object.keys(e).map(function(t){return lM(t,e[t])})}function lM(e,t){return{key:e,value:fM(t)}}function fM(e){var t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(fM)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(function(r){var n=eae(r,2),i=n[0],a=n[1];return lM(i,a)})}}:{}}function tae(e,t){var r,n=e.spanContext(),i=e.status;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:(r=n.traceState)===null||r===void 0?void 0:r.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:_l(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(a){return nae(a,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:i.code,message:i.message},links:e.links.map(function(a){return rae(a,t)}),droppedLinksCount:e.droppedLinksCount}}function rae(e,t){var r;return{attributes:e.attributes?_l(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(r=e.context.traceState)===null||r===void 0?void 0:r.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function nae(e,t){return{attributes:e.attributes?_l(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}var mB=9,iae=6,aae=Math.pow(10,iae),_T=Math.pow(10,mB);function dT(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*aae);return[r,n]}function TB(){var e=performance.timeOrigin;if(typeof e!="number"){var t=performance;e=t.timing&&t.timing.fetchStart}return e}function oae(e){var t=dT(TB()),r=dT(typeof e=="number"?e:performance.now());return uae(t,r)}function DUe(e){if(AB(e))return e;if(typeof e=="number")return e<TB()?oae(e):dT(e);if(e instanceof Date)return dT(e.getTime());throw TypeError("Invalid input type")}function wUe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=_T),[r,n]}function UUe(e){var t=mB,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function sae(e){return e[0]*_T+e[1]}function xUe(e){return e[0]*1e3+e[1]/1e6}function FUe(e){return e[0]*1e6+e[1]/1e3}function AB(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function $Ue(e){return AB(e)||typeof e=="number"||e instanceof Date}function uae(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=_T&&(r[1]-=_T,r[0]+=1),r}function gB(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function _M(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var i=gB(e.charCodeAt(n)),a=gB(e.charCodeAt(n+1));t[r++]=i<<4|a}return t}function yB(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function cae(e){var t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function RB(e){var t=yB(e);return cae(t)}function lae(e){var t=yB(e);return t.toString()}var fae=typeof BigInt<"u"?lae:sae;function OB(e){return e}function bB(e){if(e!==void 0)return _M(e)}var _ae={encodeHrTime:RB,encodeSpanContext:_M,encodeOptionalSpanContext:bB};function dM(e){var t,r;if(e===void 0)return _ae;var n=(t=e.useLongBits)!==null&&t!==void 0?t:!0,i=(r=e.useHex)!==null&&r!==void 0?r:!1;return{encodeHrTime:n?RB:fae,encodeSpanContext:i?OB:_M,encodeOptionalSpanContext:i?OB:bB}}function pM(e){return{attributes:_l(e.attributes),droppedAttributesCount:0}}var dae=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},pae=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function hae(e,t){var r=dM(t);return{resourceSpans:Eae(e,r)}}function Sae(e){var t,r,n=new Map;try{for(var i=dae(e),a=i.next();!a.done;a=i.next()){var u=a.value,c=n.get(u.resource);c||(c=new Map,n.set(u.resource,c));var v=u.instrumentationLibrary.name+"@"+(u.instrumentationLibrary.version||"")+":"+(u.instrumentationLibrary.schemaUrl||""),_=c.get(v);_||(_=[],c.set(v,_)),_.push(u)}}catch(h){t={error:h}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function Eae(e,t){for(var r=Sae(e),n=[],i=r.entries(),a=i.next();!a.done;){for(var u=pae(a.value,2),c=u[0],v=u[1],_=[],h=v.values(),L=h.next();!L.done;){var W=L.value;if(W.length>0){var Te=W.map(function(Oe){return tae(Oe,t)});_.push({scope:cM(W[0].instrumentationLibrary),spans:Te,schemaUrl:W[0].instrumentationLibrary.schemaUrl})}L=h.next()}var me={resource:pM(c),scopeSpans:_,schemaUrl:void 0};n.push(me),a=i.next()}return n}var pT;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(pT||(pT={}));var A_;(function(e){e[e.HISTOGRAM=0]="HISTOGRAM",e[e.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",e[e.GAUGE=2]="GAUGE",e[e.SUM=3]="SUM"})(A_||(A_={}));var hT;(function(e){e[e.DELTA=0]="DELTA",e[e.CUMULATIVE=1]="CUMULATIVE"})(hT||(hT={}));function vae(e,t){var r=dM(t);return{resource:pM(e.resource),schemaUrl:void 0,scopeMetrics:mae(e.scopeMetrics,r)}}function mae(e,t){return Array.from(e.map(function(r){return{scope:cM(r.scope),metrics:r.metrics.map(function(n){return Tae(n,t)}),schemaUrl:r.scope.schemaUrl}}))}function Tae(e,t){var r={name:e.descriptor.name,description:e.descriptor.description,unit:e.descriptor.unit},n=Rae(e.aggregationTemporality);switch(e.dataPointType){case A_.SUM:r.sum={aggregationTemporality:n,isMonotonic:e.isMonotonic,dataPoints:CB(e,t)};break;case A_.GAUGE:r.gauge={dataPoints:CB(e,t)};break;case A_.HISTOGRAM:r.histogram={aggregationTemporality:n,dataPoints:gae(e,t)};break;case A_.EXPONENTIAL_HISTOGRAM:r.exponentialHistogram={aggregationTemporality:n,dataPoints:yae(e,t)};break}return r}function Aae(e,t,r){var n={attributes:_l(e.attributes),startTimeUnixNano:r.encodeHrTime(e.startTime),timeUnixNano:r.encodeHrTime(e.endTime)};switch(t){case pT.INT:n.asInt=e.value;break;case pT.DOUBLE:n.asDouble=e.value;break}return n}function CB(e,t){return e.dataPoints.map(function(r){return Aae(r,e.descriptor.valueType,t)})}function gae(e,t){return e.dataPoints.map(function(r){var n=r.value;return{attributes:_l(r.attributes),bucketCounts:n.buckets.counts,explicitBounds:n.buckets.boundaries,count:n.count,sum:n.sum,min:n.min,max:n.max,startTimeUnixNano:t.encodeHrTime(r.startTime),timeUnixNano:t.encodeHrTime(r.endTime)}})}function yae(e,t){return e.dataPoints.map(function(r){var n=r.value;return{attributes:_l(r.attributes),count:n.count,min:n.min,max:n.max,sum:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},scale:n.scale,zeroCount:n.zeroCount,startTimeUnixNano:t.encodeHrTime(r.startTime),timeUnixNano:t.encodeHrTime(r.endTime)}})}function Rae(e){switch(e){case hT.DELTA:return 1;case hT.CUMULATIVE:return 2}}function Oae(e,t){return{resourceMetrics:e.map(function(r){return vae(r,t)})}}var bae=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},PB=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function Cae(e,t){var r=dM(t);return{resourceLogs:Mae(e,r)}}function Pae(e){var t,r,n=new Map;try{for(var i=bae(e),a=i.next();!a.done;a=i.next()){var u=a.value,c=u.resource,v=u.instrumentationScope,_=v.name,h=v.version,L=h===void 0?"":h,W=v.schemaUrl,Te=W===void 0?"":W,me=n.get(c);me||(me=new Map,n.set(c,me));var Oe=_+"@"+L+":"+Te,He=me.get(Oe);He||(He=[],me.set(Oe,He)),He.push(u)}}catch(qe){t={error:qe}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function Mae(e,t){var r=Pae(e);return Array.from(r,function(n){var i=PB(n,2),a=i[0],u=i[1];return{resource:pM(a),scopeLogs:Array.from(u,function(c){var v=PB(c,2),_=v[1];return{scope:cM(_[0].instrumentationScope),logRecords:_.map(function(h){return Iae(h,t)}),schemaUrl:_[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function Iae(e,t){var r,n,i;return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:e.severityNumber,severityText:e.severityText,body:fM(e.body),attributes:Nae(e.attributes),droppedAttributesCount:e.droppedAttributesCount,flags:(r=e.spanContext)===null||r===void 0?void 0:r.traceFlags,traceId:t.encodeOptionalSpanContext((n=e.spanContext)===null||n===void 0?void 0:n.traceId),spanId:t.encodeOptionalSpanContext((i=e.spanContext)===null||i===void 0?void 0:i.spanId)}}function VUe(e){return e}function Nae(e){return Object.keys(e).map(function(t){return lM(t,e[t])})}var GUe={serializeRequest:function(e){var t=hae(e,{useHex:!0,useLongBits:!1}),r=new TextEncoder;return r.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},BUe={serializeRequest:function(e){var t=Oae(e,{useLongBits:!1}),r=new TextEncoder;return r.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},Lae={serializeRequest:function(e){var t=Cae(e,{useHex:!0,useLongBits:!1}),r=new TextEncoder;return r.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},MB="v1/logs",Dae="http://localhost:4318/"+MB;function wae(e){return typeof e.url=="string"?e.url:eu().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length>0?Uie(eu().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT):eu().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?wie(eu().OTEL_EXPORTER_OTLP_ENDPOINT,MB):Dae}var Uae=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ah=function(){return Ah=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ah.apply(this,arguments)},xae=function(e){Uae(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,Ah({timeoutMillis:eu().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT},r),Lae,"application/json")||this;return n._headers=Ah(Ah({},n._headers),vB(eu().OTEL_EXPORTER_OTLP_LOGS_HEADERS)),n}return t.prototype.getDefaultUrl=function(r){return wae(r)},t}(Zie),_r=ys.instance();function dl(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Fae="cloud.provider",$ae="cloud.account.id",Vae="cloud.region",Gae="cloud.availability_zone",Bae="cloud.platform",kae="aws.ecs.container.arn",jae="aws.ecs.cluster.arn",Hae="aws.ecs.launchtype",Yae="aws.ecs.task.arn",qae="aws.ecs.task.family",Kae="aws.ecs.task.revision",Wae="aws.eks.cluster.arn",Qae="aws.log.group.names",zae="aws.log.group.arns",Xae="aws.log.stream.names",Jae="aws.log.stream.arns",Zae="container.name",eoe="container.id",toe="container.runtime",roe="container.image.name",noe="container.image.tag",ioe="deployment.environment",aoe="device.id",ooe="device.model.identifier",soe="device.model.name",uoe="faas.name",coe="faas.id",loe="faas.version",foe="faas.instance",_oe="faas.max_memory",doe="host.id",poe="host.name",hoe="host.type",Soe="host.arch",Eoe="host.image.name",voe="host.image.id",moe="host.image.version",Toe="k8s.cluster.name",Aoe="k8s.node.name",goe="k8s.node.uid",yoe="k8s.namespace.name",Roe="k8s.pod.uid",Ooe="k8s.pod.name",boe="k8s.container.name",Coe="k8s.replicaset.uid",Poe="k8s.replicaset.name",Moe="k8s.deployment.uid",Ioe="k8s.deployment.name",Noe="k8s.statefulset.uid",Loe="k8s.statefulset.name",Doe="k8s.daemonset.uid",woe="k8s.daemonset.name",Uoe="k8s.job.uid",xoe="k8s.job.name",Foe="k8s.cronjob.uid",$oe="k8s.cronjob.name",Voe="os.type",Goe="os.description",Boe="os.name",koe="os.version",joe="process.pid",Hoe="process.executable.name",Yoe="process.executable.path",qoe="process.command",Koe="process.command_line",Woe="process.command_args",Qoe="process.owner",IB="process.runtime.name",zoe="process.runtime.version",Xoe="process.runtime.description",NB="service.name",Joe="service.namespace",Zoe="service.instance.id",ese="service.version",LB="telemetry.sdk.name",DB="telemetry.sdk.language",wB="telemetry.sdk.version",tse="telemetry.auto.version",rse="webengine.name",nse="webengine.version",ise="webengine.description",kUe=null,jUe=null,HUe=null,YUe=null,qUe=null,KUe=null,WUe=null,QUe=null,zUe=null,XUe=null,JUe=null,ZUe=null,exe=null,txe=null,rxe=null,nxe=null,ixe=null,axe=null,oxe=null,sxe=null,uxe=null,cxe=null,lxe=null,fxe=null,_xe=null,dxe=null,pxe=null,hxe=null,Sxe=null,Exe=null,vxe=null,mxe=null,Txe=null,Axe=null,gxe=null,yxe=null,Rxe=null,Oxe=null,bxe=null,Cxe=null,Pxe=null,Mxe=null,Ixe=null,Nxe=null,Lxe=null,Dxe=null,wxe=null,Uxe=null,xxe=null,Fxe=null,$xe=null,Vxe=null,Gxe=null,Bxe=null,kxe=null,jxe=null,Hxe=null,Yxe=null,qxe=null,Kxe=null,Wxe=null,Qxe=null,zxe=null,Xxe=null,Jxe=null,Zxe=null,eFe=null,ase=IB,tFe=null,rFe=null,ose=NB,nFe=null,iFe=null,aFe=null,hM=LB,SM=DB,EM=wB,oFe=null,sFe=null,uFe=null,cFe=null,lFe=dl([Fae,$ae,Vae,Gae,Bae,kae,jae,Hae,Yae,qae,Kae,Wae,Qae,zae,Xae,Jae,Zae,eoe,toe,roe,noe,ioe,aoe,ooe,soe,uoe,coe,loe,foe,_oe,doe,poe,hoe,Soe,Eoe,voe,moe,Toe,Aoe,goe,yoe,Roe,Ooe,boe,Coe,Poe,Moe,Ioe,Noe,Loe,Doe,woe,Uoe,xoe,Foe,$oe,Voe,Goe,Boe,koe,joe,Hoe,Yoe,qoe,Koe,Woe,Qoe,IB,zoe,Xoe,NB,Joe,Zoe,ese,LB,DB,wB,tse,rse,nse,ise]),sse="alibaba_cloud",use="aws",cse="azure",lse="gcp",fFe=null,_Fe=null,dFe=null,pFe=null,hFe=dl([sse,use,cse,lse]),fse="alibaba_cloud_ecs",_se="alibaba_cloud_fc",dse="aws_ec2",pse="aws_ecs",hse="aws_eks",Sse="aws_lambda",Ese="aws_elastic_beanstalk",vse="azure_vm",mse="azure_container_instances",Tse="azure_aks",Ase="azure_functions",gse="azure_app_service",yse="gcp_compute_engine",Rse="gcp_cloud_run",Ose="gcp_kubernetes_engine",bse="gcp_cloud_functions",Cse="gcp_app_engine",SFe=null,EFe=null,vFe=null,mFe=null,TFe=null,AFe=null,gFe=null,yFe=null,RFe=null,OFe=null,bFe=null,CFe=null,PFe=null,MFe=null,IFe=null,NFe=null,LFe=null,DFe=dl([fse,_se,dse,pse,hse,Sse,Ese,vse,mse,Tse,Ase,gse,yse,Rse,Ose,bse,Cse]),Pse="ec2",Mse="fargate",wFe=null,UFe=null,xFe=dl([Pse,Mse]),Ise="amd64",Nse="arm32",Lse="arm64",Dse="ia64",wse="ppc32",Use="ppc64",xse="x86",FFe=null,$Fe=null,VFe=null,GFe=null,BFe=null,kFe=null,jFe=null,HFe=dl([Ise,Nse,Lse,Dse,wse,Use,xse]),Fse="windows",$se="linux",Vse="darwin",Gse="freebsd",Bse="netbsd",kse="openbsd",jse="dragonflybsd",Hse="hpux",Yse="aix",qse="solaris",Kse="z_os",YFe=null,qFe=null,KFe=null,WFe=null,QFe=null,zFe=null,XFe=null,JFe=null,ZFe=null,e1e=null,t1e=null,r1e=dl([Fse,$se,Vse,Gse,Bse,kse,jse,Hse,Yse,qse,Kse]),Wse="cpp",Qse="dotnet",zse="erlang",Xse="go",Jse="java",Zse="nodejs",eue="php",tue="python",rue="ruby",UB="webjs",n1e=null,i1e=null,a1e=null,o1e=null,s1e=null,u1e=null,c1e=null,l1e=null,f1e=null,nue=UB,_1e=dl([Wse,Qse,zse,Xse,Jse,Zse,eue,tue,rue,UB]),iue="1.30.1",g_,vM=(g_={},g_[hM]="opentelemetry",g_[ase]="browser",g_[SM]=nue,g_[EM]=iue,g_);function aue(){return"unknown_service"}var Qu=function(){return Qu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qu.apply(this,arguments)},oue=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},sue=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},uue=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},ST=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r?.then(function(a){return n._attributes=Object.assign({},n._attributes,a),n.asyncAttributesPending=!1,a},function(a){return _r.debug("a resource's async attributes promise rejected: %s",a),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[ose]=aue(),t[SM]=vM[SM],t[hM]=vM[hM],t[EM]=vM[EM],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&_r.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return oue(this,void 0,void 0,function(){return sue(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=Qu(Qu({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(u){var c,v=uue(u,2),_=v[0],h=v[1];return Qu(Qu(Qu(Qu({},r._syncAttributes),_),(c=t._syncAttributes)!==null&&c!==void 0?c:t.attributes),h)});return new e(i,a)},e.EMPTY=new e({}),e}(),xB=function(){function e(){}return e.prototype.emit=function(t){},e}(),cue=new xB;function pl(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var lue="cloud.provider",fue="cloud.account.id",_ue="cloud.region",due="cloud.availability_zone",pue="cloud.platform",hue="aws.ecs.container.arn",Sue="aws.ecs.cluster.arn",Eue="aws.ecs.launchtype",vue="aws.ecs.task.arn",mue="aws.ecs.task.family",Tue="aws.ecs.task.revision",Aue="aws.eks.cluster.arn",gue="aws.log.group.names",yue="aws.log.group.arns",Rue="aws.log.stream.names",Oue="aws.log.stream.arns",bue="container.name",Cue="container.id",Pue="container.runtime",Mue="container.image.name",Iue="container.image.tag",Nue="deployment.environment",Lue="device.id",Due="device.model.identifier",wue="device.model.name",Uue="faas.name",xue="faas.id",Fue="faas.version",$ue="faas.instance",Vue="faas.max_memory",Gue="host.id",Bue="host.name",kue="host.type",jue="host.arch",Hue="host.image.name",Yue="host.image.id",que="host.image.version",Kue="k8s.cluster.name",Wue="k8s.node.name",Que="k8s.node.uid",zue="k8s.namespace.name",Xue="k8s.pod.uid",Jue="k8s.pod.name",Zue="k8s.container.name",ece="k8s.replicaset.uid",tce="k8s.replicaset.name",rce="k8s.deployment.uid",nce="k8s.deployment.name",ice="k8s.statefulset.uid",ace="k8s.statefulset.name",oce="k8s.daemonset.uid",sce="k8s.daemonset.name",uce="k8s.job.uid",cce="k8s.job.name",lce="k8s.cronjob.uid",fce="k8s.cronjob.name",_ce="os.type",dce="os.description",pce="os.name",hce="os.version",Sce="process.pid",Ece="process.executable.name",vce="process.executable.path",mce="process.command",Tce="process.command_line",Ace="process.command_args",gce="process.owner",yce="process.runtime.name",Rce="process.runtime.version",Oce="process.runtime.description",FB="service.name",bce="service.namespace",Cce="service.instance.id",Pce="service.version",$B="telemetry.sdk.name",VB="telemetry.sdk.language",GB="telemetry.sdk.version",Mce="telemetry.auto.version",Ice="webengine.name",Nce="webengine.version",Lce="webengine.description",d1e=null,p1e=null,h1e=null,S1e=null,E1e=null,v1e=null,m1e=null,T1e=null,A1e=null,g1e=null,y1e=null,R1e=null,O1e=null,b1e=null,C1e=null,P1e=null,M1e=null,I1e=null,N1e=null,L1e=null,D1e=null,w1e=null,U1e=null,x1e=null,F1e=null,$1e=null,V1e=null,G1e=null,B1e=null,k1e=null,j1e=null,H1e=null,Y1e=null,q1e=null,K1e=null,W1e=null,Q1e=null,z1e=null,X1e=null,J1e=null,Z1e=null,e$e=null,t$e=null,r$e=null,n$e=null,i$e=null,a$e=null,o$e=null,s$e=null,u$e=null,c$e=null,l$e=null,f$e=null,_$e=null,d$e=null,p$e=null,h$e=null,S$e=null,E$e=null,v$e=null,m$e=null,T$e=null,A$e=null,g$e=null,y$e=null,R$e=null,O$e=null,b$e=null,C$e=null,P$e=null,Dce=FB,M$e=null,I$e=null,N$e=null,BB=$B,kB=VB,jB=GB,L$e=null,D$e=null,w$e=null,U$e=null,x$e=pl([lue,fue,_ue,due,pue,hue,Sue,Eue,vue,mue,Tue,Aue,gue,yue,Rue,Oue,bue,Cue,Pue,Mue,Iue,Nue,Lue,Due,wue,Uue,xue,Fue,$ue,Vue,Gue,Bue,kue,jue,Hue,Yue,que,Kue,Wue,Que,zue,Xue,Jue,Zue,ece,tce,rce,nce,ice,ace,oce,sce,uce,cce,lce,fce,_ce,dce,pce,hce,Sce,Ece,vce,mce,Tce,Ace,gce,yce,Rce,Oce,FB,bce,Cce,Pce,$B,VB,GB,Mce,Ice,Nce,Lce]),wce="alibaba_cloud",Uce="aws",xce="azure",Fce="gcp",F$e=null,$$e=null,V$e=null,G$e=null,B$e=pl([wce,Uce,xce,Fce]),$ce="alibaba_cloud_ecs",Vce="alibaba_cloud_fc",Gce="aws_ec2",Bce="aws_ecs",kce="aws_eks",jce="aws_lambda",Hce="aws_elastic_beanstalk",Yce="azure_vm",qce="azure_container_instances",Kce="azure_aks",Wce="azure_functions",Qce="azure_app_service",zce="gcp_compute_engine",Xce="gcp_cloud_run",Jce="gcp_kubernetes_engine",Zce="gcp_cloud_functions",ele="gcp_app_engine",k$e=null,j$e=null,H$e=null,Y$e=null,q$e=null,K$e=null,W$e=null,Q$e=null,z$e=null,X$e=null,J$e=null,Z$e=null,eVe=null,tVe=null,rVe=null,nVe=null,iVe=null,aVe=pl([$ce,Vce,Gce,Bce,kce,jce,Hce,Yce,qce,Kce,Wce,Qce,zce,Xce,Jce,Zce,ele]),tle="ec2",rle="fargate",oVe=null,sVe=null,uVe=pl([tle,rle]),nle="amd64",ile="arm32",ale="arm64",ole="ia64",sle="ppc32",ule="ppc64",cle="x86",cVe=null,lVe=null,fVe=null,_Ve=null,dVe=null,pVe=null,hVe=null,SVe=pl([nle,ile,ale,ole,sle,ule,cle]),lle="windows",fle="linux",_le="darwin",dle="freebsd",ple="netbsd",hle="openbsd",Sle="dragonflybsd",Ele="hpux",vle="aix",mle="solaris",Tle="z_os",EVe=null,vVe=null,mVe=null,TVe=null,AVe=null,gVe=null,yVe=null,RVe=null,OVe=null,bVe=null,CVe=null,PVe=pl([lle,fle,_le,dle,ple,hle,Sle,Ele,vle,mle,Tle]),Ale="cpp",gle="dotnet",yle="erlang",Rle="go",Ole="java",ble="nodejs",Cle="php",Ple="python",Mle="ruby",Ile="webjs",MVe=null,IVe=null,NVe=null,LVe=null,DVe=null,wVe=null,UVe=null,xVe=null,FVe=null,$Ve=null,VVe=pl([Ale,gle,yle,Rle,Ole,ble,Cle,Ple,Mle,Ile]),Nle="1.25.1";function hl(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Lle="cloud.provider",Dle="cloud.account.id",wle="cloud.region",Ule="cloud.availability_zone",xle="cloud.platform",Fle="aws.ecs.container.arn",$le="aws.ecs.cluster.arn",Vle="aws.ecs.launchtype",Gle="aws.ecs.task.arn",Ble="aws.ecs.task.family",kle="aws.ecs.task.revision",jle="aws.eks.cluster.arn",Hle="aws.log.group.names",Yle="aws.log.group.arns",qle="aws.log.stream.names",Kle="aws.log.stream.arns",Wle="container.name",Qle="container.id",zle="container.runtime",Xle="container.image.name",Jle="container.image.tag",Zle="deployment.environment",efe="device.id",tfe="device.model.identifier",rfe="device.model.name",nfe="faas.name",ife="faas.id",afe="faas.version",ofe="faas.instance",sfe="faas.max_memory",ufe="host.id",cfe="host.name",lfe="host.type",ffe="host.arch",_fe="host.image.name",dfe="host.image.id",pfe="host.image.version",hfe="k8s.cluster.name",Sfe="k8s.node.name",Efe="k8s.node.uid",vfe="k8s.namespace.name",mfe="k8s.pod.uid",Tfe="k8s.pod.name",Afe="k8s.container.name",gfe="k8s.replicaset.uid",yfe="k8s.replicaset.name",Rfe="k8s.deployment.uid",Ofe="k8s.deployment.name",bfe="k8s.statefulset.uid",Cfe="k8s.statefulset.name",Pfe="k8s.daemonset.uid",Mfe="k8s.daemonset.name",Ife="k8s.job.uid",Nfe="k8s.job.name",Lfe="k8s.cronjob.uid",Dfe="k8s.cronjob.name",wfe="os.type",Ufe="os.description",xfe="os.name",Ffe="os.version",$fe="process.pid",Vfe="process.executable.name",Gfe="process.executable.path",Bfe="process.command",kfe="process.command_line",jfe="process.command_args",Hfe="process.owner",HB="process.runtime.name",Yfe="process.runtime.version",qfe="process.runtime.description",Kfe="service.name",Wfe="service.namespace",Qfe="service.instance.id",zfe="service.version",YB="telemetry.sdk.name",qB="telemetry.sdk.language",KB="telemetry.sdk.version",Xfe="telemetry.auto.version",Jfe="webengine.name",Zfe="webengine.version",e_e="webengine.description",GVe=null,BVe=null,kVe=null,jVe=null,HVe=null,YVe=null,qVe=null,KVe=null,WVe=null,QVe=null,zVe=null,XVe=null,JVe=null,ZVe=null,eGe=null,tGe=null,rGe=null,nGe=null,iGe=null,aGe=null,oGe=null,sGe=null,uGe=null,cGe=null,lGe=null,fGe=null,_Ge=null,dGe=null,pGe=null,hGe=null,SGe=null,EGe=null,vGe=null,mGe=null,TGe=null,AGe=null,gGe=null,yGe=null,RGe=null,OGe=null,bGe=null,CGe=null,PGe=null,MGe=null,IGe=null,NGe=null,LGe=null,DGe=null,wGe=null,UGe=null,xGe=null,FGe=null,$Ge=null,VGe=null,GGe=null,BGe=null,kGe=null,jGe=null,HGe=null,YGe=null,qGe=null,KGe=null,WGe=null,QGe=null,zGe=null,XGe=null,JGe=null,t_e=HB,ZGe=null,eBe=null,tBe=null,rBe=null,nBe=null,iBe=null,r_e=YB,n_e=qB,i_e=KB,aBe=null,oBe=null,sBe=null,uBe=null,cBe=hl([Lle,Dle,wle,Ule,xle,Fle,$le,Vle,Gle,Ble,kle,jle,Hle,Yle,qle,Kle,Wle,Qle,zle,Xle,Jle,Zle,efe,tfe,rfe,nfe,ife,afe,ofe,sfe,ufe,cfe,lfe,ffe,_fe,dfe,pfe,hfe,Sfe,Efe,vfe,mfe,Tfe,Afe,gfe,yfe,Rfe,Ofe,bfe,Cfe,Pfe,Mfe,Ife,Nfe,Lfe,Dfe,wfe,Ufe,xfe,Ffe,$fe,Vfe,Gfe,Bfe,kfe,jfe,Hfe,HB,Yfe,qfe,Kfe,Wfe,Qfe,zfe,YB,qB,KB,Xfe,Jfe,Zfe,e_e]),a_e="alibaba_cloud",o_e="aws",s_e="azure",u_e="gcp",lBe=null,fBe=null,_Be=null,dBe=null,pBe=hl([a_e,o_e,s_e,u_e]),c_e="alibaba_cloud_ecs",l_e="alibaba_cloud_fc",f_e="aws_ec2",__e="aws_ecs",d_e="aws_eks",p_e="aws_lambda",h_e="aws_elastic_beanstalk",S_e="azure_vm",E_e="azure_container_instances",v_e="azure_aks",m_e="azure_functions",T_e="azure_app_service",A_e="gcp_compute_engine",g_e="gcp_cloud_run",y_e="gcp_kubernetes_engine",R_e="gcp_cloud_functions",O_e="gcp_app_engine",hBe=null,SBe=null,EBe=null,vBe=null,mBe=null,TBe=null,ABe=null,gBe=null,yBe=null,RBe=null,OBe=null,bBe=null,CBe=null,PBe=null,MBe=null,IBe=null,NBe=null,LBe=hl([c_e,l_e,f_e,__e,d_e,p_e,h_e,S_e,E_e,v_e,m_e,T_e,A_e,g_e,y_e,R_e,O_e]),b_e="ec2",C_e="fargate",DBe=null,wBe=null,UBe=hl([b_e,C_e]),P_e="amd64",M_e="arm32",I_e="arm64",N_e="ia64",L_e="ppc32",D_e="ppc64",w_e="x86",xBe=null,FBe=null,$Be=null,VBe=null,GBe=null,BBe=null,kBe=null,jBe=hl([P_e,M_e,I_e,N_e,L_e,D_e,w_e]),U_e="windows",x_e="linux",F_e="darwin",$_e="freebsd",V_e="netbsd",G_e="openbsd",B_e="dragonflybsd",k_e="hpux",j_e="aix",H_e="solaris",Y_e="z_os",HBe=null,YBe=null,qBe=null,KBe=null,WBe=null,QBe=null,zBe=null,XBe=null,JBe=null,ZBe=null,eke=null,tke=hl([U_e,x_e,F_e,$_e,V_e,G_e,B_e,k_e,j_e,H_e,Y_e]),q_e="cpp",K_e="dotnet",W_e="erlang",Q_e="go",z_e="java",X_e="nodejs",J_e="php",Z_e="python",ede="ruby",WB="webjs",rke=null,nke=null,ike=null,ake=null,oke=null,ske=null,uke=null,cke=null,lke=null,tde=WB,fke=hl([q_e,K_e,W_e,Q_e,z_e,X_e,J_e,Z_e,ede,WB]),y_,mM=(y_={},y_[r_e]="opentelemetry",y_[t_e]="browser",y_[n_e]=tde,y_[i_e]=Nle,y_);function rde(){return"unknown_service"}var zu=function(){return zu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},zu.apply(this,arguments)},nde=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},ide=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},ade=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},QB=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r?.then(function(a){return n._attributes=Object.assign({},n._attributes,a),n.asyncAttributesPending=!1,a},function(a){return _r.debug("a resource's async attributes promise rejected: %s",a),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[Dce]=rde(),t[kB]=mM[kB],t[BB]=mM[BB],t[jB]=mM[jB],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&_r.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return nde(this,void 0,void 0,function(){return ide(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=zu(zu({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(u){var c,v=ade(u,2),_=v[0],h=v[1];return zu(zu(zu(zu({},r._syncAttributes),_),(c=t._syncAttributes)!==null&&c!==void 0?c:t.attributes),h)});return new e(i,a)},e.EMPTY=new e({}),e}(),ode="[object Object]",sde="[object Null]",ude="[object Undefined]",cde=Function.prototype,zB=cde.toString,lde=zB.call(Object),fde=_de(Object.getPrototypeOf,Object),XB=Object.prototype,JB=XB.hasOwnProperty,Sl=Symbol?Symbol.toStringTag:void 0,ZB=XB.toString;function _de(e,t){return function(r){return e(t(r))}}function ek(e){if(!dde(e)||pde(e)!==ode)return!1;var t=fde(e);if(t===null)return!0;var r=JB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&zB.call(r)===lde}function dde(e){return e!=null&&typeof e=="object"}function pde(e){return e==null?e===void 0?ude:sde:Sl&&Sl in Object(e)?hde(e):Sde(e)}function hde(e){var t=JB.call(e,Sl),r=e[Sl],n=!1;try{e[Sl]=void 0,n=!0}catch{}var i=ZB.call(e);return n&&(t?e[Sl]=r:delete e[Sl]),i}function Sde(e){return ZB.call(e)}var Ede=20;function vde(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=tk(r,e.shift(),0,n);return r}function TM(e){return ET(e)?e.slice():e}function tk(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>Ede)){if(r++,vT(e)||vT(t)||nk(t))i=TM(t);else if(ET(e)){if(i=e.slice(),ET(t))for(var a=0,u=t.length;a<u;a++)i.push(TM(t[a]));else if(gh(t))for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a];i[v]=TM(t[v])}}else if(gh(e))if(gh(t)){if(!mde(e,t))return t;i=Object.assign({},e);for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a],_=t[v];if(vT(_))typeof _>"u"?delete i[v]:i[v]=_;else{var h=i[v],L=_;if(rk(e,v,n)||rk(t,v,n))delete i[v];else{if(gh(h)&&gh(L)){var W=n.get(h)||[],Te=n.get(L)||[];W.push({obj:e,key:v}),Te.push({obj:t,key:v}),n.set(h,W),n.set(L,Te)}i[v]=tk(i[v],_,r,n)}}}}else i=t;return i}}function rk(e,t,r){for(var n=r.get(e[t])||[],i=0,a=n.length;i<a;i++){var u=n[i];if(u.key===t&&u.obj===e)return!0}return!1}function ET(e){return Array.isArray(e)}function nk(e){return typeof e=="function"}function gh(e){return!vT(e)&&!ET(e)&&!nk(e)&&typeof e=="object"}function vT(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function mde(e,t){return!(!ek(e)||!ek(t))}var Tde=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),Ade=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},gde=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ik=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new Tde}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,gde([this._that],Ade(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),_a=cT.getInstance(),yh=performance,ak=9,yde=6,Rde=Math.pow(10,yde),mT=Math.pow(10,ak);function TT(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Rde);return[r,n]}function ok(){var e=yh.timeOrigin;if(typeof e!="number"){var t=yh;e=t.timing&&t.timing.fetchStart}return e}function AM(e){var t=TT(ok()),r=TT(typeof e=="number"?e:yh.now());return Ode(t,r)}function El(e){if(sk(e))return e;if(typeof e=="number")return e<ok()?AM(e):TT(e);if(e instanceof Date)return TT(e.getTime());throw TypeError("Invalid input type")}function _ke(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=mT),[r,n]}function dke(e){var t=ak,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function Xu(e){return e[0]*mT+e[1]}function pke(e){return e[0]*1e3+e[1]/1e6}function hke(e){return e[0]*1e6+e[1]/1e3}function sk(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function Ske(e){return sk(e)||typeof e=="number"||e instanceof Date}function Ode(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=mT&&(r[1]-=mT,r[0]+=1),r}var uk=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bde=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function Eke(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=uk(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=bde(a.value,2),c=u[0],v=u[1];if(!Cde(c)){diag.warn("Invalid attribute key: "+c);continue}if(!gM(v)){diag.warn("Invalid attribute value set for key: "+c);continue}Array.isArray(v)?n[c]=v.slice():n[c]=v}}catch(_){t={error:_}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function Cde(e){return typeof e=="string"&&e.length>0}function gM(e){return e==null?!0:Array.isArray(e)?Pde(e):ck(e)}function Pde(e){var t,r,n;try{for(var i=uk(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u!=null){if(!n){if(ck(u)){n=typeof u;continue}return!1}if(typeof u!==n)return!1}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function ck(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var Mde=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ide=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Nde=function(){function e(t,r,n){this.attributes={},this.totalAttributesCount=0,this._isReadonly=!1;var i=n.timestamp,a=n.observedTimestamp,u=n.severityNumber,c=n.severityText,v=n.body,_=n.attributes,h=_===void 0?{}:_,L=n.context,W=Date.now();if(this.hrTime=El(i??W),this.hrTimeObserved=El(a??W),L){var Te=ta.getSpanContext(L);Te&&m_(Te)&&(this.spanContext=Te)}this.severityNumber=u,this.severityText=c,this.body=v,this.resource=t.resource,this.instrumentationScope=r,this._logRecordLimits=t.logRecordLimits,this.setAttributes(h)}return Object.defineProperty(e.prototype,"severityText",{get:function(){return this._severityText},set:function(t){this._isLogRecordReadonly()||(this._severityText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"severityNumber",{get:function(){return this._severityNumber},set:function(t){this._isLogRecordReadonly()||(this._severityNumber=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},set:function(t){this._isLogRecordReadonly()||(this._body=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this.totalAttributesCount-Object.keys(this.attributes).length},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,r){return this._isLogRecordReadonly()?this:r===null?this:t.length===0?(_r.warn("Invalid attribute key: "+t),this):!gM(r)&&!(typeof r=="object"&&!Array.isArray(r)&&Object.keys(r).length>0)?(_r.warn("Invalid attribute value set for key: "+t),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&_r.warn("Dropping extra attributes."),this):(gM(r)?this.attributes[t]=this._truncateToSize(r):this.attributes[t]=r,this))},e.prototype.setAttributes=function(t){var r,n;try{for(var i=Mde(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=Ide(a.value,2),c=u[0],v=u[1];this.setAttribute(c,v)}}catch(_){r={error:_}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.setBody=function(t){return this.body=t,this},e.prototype.setSeverityNumber=function(t){return this.severityNumber=t,this},e.prototype.setSeverityText=function(t){return this.severityText=t,this},e.prototype._makeReadonly=function(){this._isReadonly=!0},e.prototype._truncateToSize=function(t){var r=this,n=this._logRecordLimits.attributeValueLengthLimit;return n<=0?(_r.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substring(0,r)},e.prototype._isLogRecordReadonly=function(){return this._isReadonly&&_r.warn("Can not execute the operation on emitted log record"),this._isReadonly},e}(),yM=function(){return yM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},yM.apply(this,arguments)},Lde=function(){function e(t,r){this.instrumentationScope=t,this._sharedState=r}return e.prototype.emit=function(t){var r=t.context||_a.active(),n=new Nde(this._sharedState,this.instrumentationScope,yM({context:r},t));this._sharedState.activeProcessor.onEmit(n,r),n._makeReadonly()},e}(),RM;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(RM||(RM={}));var Dde=",",wde=["OTEL_SDK_DISABLED"];function Ude(e){return wde.indexOf(e)>-1}var xde=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Fde(e){return xde.indexOf(e)>-1}var $de=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Vde(e){return $de.indexOf(e)>-1}var AT=1/0,gT=128,Gde=128,Bde=128,lk={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:vn.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:AT,OTEL_ATTRIBUTE_COUNT_LIMIT:gT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:AT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:gT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:AT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:gT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Gde,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Bde,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:RM.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function kde(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function jde(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function Hde(e,t,r,n){n===void 0&&(n=Dde);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var Yde={ALL:vn.ALL,VERBOSE:vn.VERBOSE,DEBUG:vn.DEBUG,INFO:vn.INFO,WARN:vn.WARN,ERROR:vn.ERROR,NONE:vn.NONE};function qde(e,t,r){var n=r[e];if(typeof n=="string"){var i=Yde[n.toUpperCase()];i!=null&&(t[e]=i)}}function fk(e){var t={};for(var r in lk){var n=r;switch(n){case"OTEL_LOG_LEVEL":qde(n,t,e);break;default:if(Ude(n))kde(n,t,e);else if(Fde(n))jde(n,t,e);else if(Vde(n))Hde(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var _k=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{};function OM(){var e=fk(_k);return Object.assign({},lk,e)}function Kde(){return fk(_k)}function Wde(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:OM().OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:OM().OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT},includeTraceContext:!0}}function Qde(e){var t,r,n,i,a,u,c=Kde();return{attributeCountLimit:(n=(r=(t=e.attributeCountLimit)!==null&&t!==void 0?t:c.OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT)!==null&&r!==void 0?r:c.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&n!==void 0?n:gT,attributeValueLengthLimit:(u=(a=(i=e.attributeValueLengthLimit)!==null&&i!==void 0?i:c.OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&a!==void 0?a:c.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&u!==void 0?u:AT}}var zde=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Xde=function(e){zde(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t}(Error);function dk(e,t){var r,n=new Promise(function(a,u){r=setTimeout(function(){u(new Xde("Operation timed out."))},t)});return Promise.race([e,n]).then(function(i){return clearTimeout(r),i},function(i){throw clearTimeout(r),i})}var pk=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},hk=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},Jde=function(){function e(t,r){this.processors=t,this.forceFlushTimeoutMillis=r}return e.prototype.forceFlush=function(){return pk(this,void 0,void 0,function(){var t;return hk(this,function(r){switch(r.label){case 0:return t=this.forceFlushTimeoutMillis,[4,Promise.all(this.processors.map(function(n){return dk(n.forceFlush(),t)}))];case 1:return r.sent(),[2]}})})},e.prototype.onEmit=function(t,r){this.processors.forEach(function(n){return n.onEmit(t,r)})},e.prototype.shutdown=function(){return pk(this,void 0,void 0,function(){return hk(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.processors.map(function(r){return r.shutdown()}))];case 1:return t.sent(),[2]}})})},e}(),Zde=function(){function e(){}return e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype.onEmit=function(t,r){},e.prototype.shutdown=function(){return Promise.resolve()},e}(),epe=function(){function e(t,r,n){this.resource=t,this.forceFlushTimeoutMillis=r,this.logRecordLimits=n,this.loggers=new Map,this.registeredLogRecordProcessors=[],this.activeProcessor=new Zde}return e}(),tpe="unknown",rpe=function(){function e(t){t===void 0&&(t={});var r,n=vde({},Wde(),t),i=QB.default().merge((r=n.resource)!==null&&r!==void 0?r:QB.empty());this._sharedState=new epe(i,n.forceFlushTimeoutMillis,Qde(n.logRecordLimits)),this._shutdownOnce=new ik(this._shutdown,this)}return e.prototype.getLogger=function(t,r,n){if(this._shutdownOnce.isCalled)return _r.warn("A shutdown LoggerProvider cannot provide a Logger"),cue;t||_r.warn("Logger requested without instrumentation scope name.");var i=t||tpe,a=i+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._sharedState.loggers.has(a)||this._sharedState.loggers.set(a,new Lde({name:i,version:r,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(a)},e.prototype.addLogRecordProcessor=function(t){this._sharedState.registeredLogRecordProcessors.length===0&&this._sharedState.activeProcessor.shutdown().catch(function(r){return _r.error("Error while trying to shutdown current log record processor",r)}),this._sharedState.registeredLogRecordProcessors.push(t),this._sharedState.activeProcessor=new Jde(this._sharedState.registeredLogRecordProcessors,this._sharedState.forceFlushTimeoutMillis)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?(_r.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()},e.prototype.shutdown=function(){return this._shutdownOnce.isCalled?(_r.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()},e.prototype._shutdown=function(){return this._sharedState.activeProcessor.shutdown()},e}();function npe(){return function(e){_r.error(ipe(e))}}function ipe(e){return typeof e=="string"?e:JSON.stringify(ape(e))}function ape(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i))}}),r=Object.getPrototypeOf(r);return t}var Sk=npe();function vke(e){Sk=e}function yT(e){try{Sk(e)}catch{}}function mke(e){}function ope(e,t){return new Promise(function(r){_a.with(Ine(_a.active()),function(){e.export(t,function(n){r(n)})})})}var spe={_export:ope},bM;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(bM||(bM={}));var upe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},cpe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},lpe=function(){function e(t,r){var n,i,a,u;this._exporter=t,this._finishedLogRecords=[];var c=OM();this._maxExportBatchSize=(n=r?.maxExportBatchSize)!==null&&n!==void 0?n:c.OTEL_BLRP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=(i=r?.maxQueueSize)!==null&&i!==void 0?i:c.OTEL_BLRP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=(a=r?.scheduledDelayMillis)!==null&&a!==void 0?a:c.OTEL_BLRP_SCHEDULE_DELAY,this._exportTimeoutMillis=(u=r?.exportTimeoutMillis)!==null&&u!==void 0?u:c.OTEL_BLRP_EXPORT_TIMEOUT,this._shutdownOnce=new ik(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_r.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.onEmit=function(t){this._shutdownOnce.isCalled||this._addToBuffer(t)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){return upe(this,void 0,void 0,function(){return cpe(this,function(t){switch(t.label){case 0:return this.onShutdown(),[4,this._flushAll()];case 1:return t.sent(),[4,this._exporter.shutdown()];case 2:return t.sent(),[2]}})})},e.prototype._addToBuffer=function(t){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(t),this._maybeStartTimer())},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],a=Math.ceil(t._finishedLogRecords.length/t._maxExportBatchSize),u=0;u<a;u++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedLogRecords.length===0?Promise.resolve():new Promise(function(r,n){dk(t._export(t._finishedLogRecords.splice(0,t._maxExportBatchSize)),t._exportTimeoutMillis).then(function(){return r()}).catch(n)})},e.prototype._maybeStartTimer=function(){var t=this;this._timer===void 0&&(this._timer=setTimeout(function(){t._flushOneBatch().then(function(){t._finishedLogRecords.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(r){yT(r)})},this._scheduledDelayMillis),this._timer,void 0)},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e.prototype._export=function(t){var r=this,n=function(){return spe._export(r._exporter,t).then(function(a){var u;a.code!==bM.SUCCESS&&yT((u=a.error)!==null&&u!==void 0?u:new Error("BatchLogRecordProcessor: log record export failed (status "+a+")"))}).catch(yT)},i=t.map(function(a){return a.resource}).filter(function(a){return a.asyncAttributesPending});return i.length===0?n():Promise.all(i.map(function(a){var u;return(u=a.waitForAsyncAttributes)===null||u===void 0?void 0:u.call(a)})).then(n,yT)},e}(),fpe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),_pe=function(e){fpe(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._onInit(n),i}return t.prototype.onShutdown=function(){typeof document>"u"||(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t.prototype._onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide===!0||typeof document>"u"||(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t}(lpe),dpe=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),ppe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},hpe={set:function(e,t,r){e!=null&&(e[t]=r)}},CM=uT("OpenTelemetry Baggage Key");function Ek(e){return e.getValue(CM)||void 0}function Spe(){return Ek(cT.getInstance().active())}function Epe(e,t){return e.setValue(CM,t)}function vpe(e){return e.deleteValue(CM)}var mpe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},Tpe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ape=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(!!r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=mpe(t,2),n=r[0],i=r[1];return[n,i]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=new e(this._entries);try{for(var u=Tpe(n),c=u.next();!c.done;c=u.next()){var v=c.value;a._entries.delete(v)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),gpe=Symbol("BaggageEntryMetadata"),ype=ys.instance();function Rpe(e){return e===void 0&&(e={}),new Ape(new Map(Object.entries(e)))}function Ope(e){return typeof e!="string"&&(ype.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:gpe,toString:function(){return e}}}var PM="propagation",bpe=new dpe,Cpe=function(){function e(){this.createBaggage=Rpe,this.getBaggage=Ek,this.getActiveBaggage=Spe,this.setBaggage=Epe,this.deleteBaggage=vpe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return dh(PM,t,ys.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=hpe),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=ppe),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){ph(PM,ys.instance())},e.prototype._getGlobalPropagator=function(){return ll(PM)||bpe},e}(),R_=Cpe.getInstance(),Ppe="[object Object]",Mpe="[object Null]",Ipe="[object Undefined]",Npe=Function.prototype,vk=Npe.toString,Lpe=vk.call(Object),Dpe=wpe(Object.getPrototypeOf,Object),mk=Object.prototype,Tk=mk.hasOwnProperty,vl=Symbol?Symbol.toStringTag:void 0,Ak=mk.toString;function wpe(e,t){return function(r){return e(t(r))}}function gk(e){if(!Upe(e)||xpe(e)!==Ppe)return!1;var t=Dpe(e);if(t===null)return!0;var r=Tk.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&vk.call(r)===Lpe}function Upe(e){return e!=null&&typeof e=="object"}function xpe(e){return e==null?e===void 0?Ipe:Mpe:vl&&vl in Object(e)?Fpe(e):$pe(e)}function Fpe(e){var t=Tk.call(e,vl),r=e[vl],n=!1;try{e[vl]=void 0,n=!0}catch{}var i=Ak.call(e);return n&&(t?e[vl]=r:delete e[vl]),i}function $pe(e){return Ak.call(e)}var Vpe=20;function Gpe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=yk(r,e.shift(),0,n);return r}function MM(e){return RT(e)?e.slice():e}function yk(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>Vpe)){if(r++,OT(e)||OT(t)||Ok(t))i=MM(t);else if(RT(e)){if(i=e.slice(),RT(t))for(var a=0,u=t.length;a<u;a++)i.push(MM(t[a]));else if(Rh(t))for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a];i[v]=MM(t[v])}}else if(Rh(e))if(Rh(t)){if(!Bpe(e,t))return t;i=Object.assign({},e);for(var c=Object.keys(t),a=0,u=c.length;a<u;a++){var v=c[a],_=t[v];if(OT(_))typeof _>"u"?delete i[v]:i[v]=_;else{var h=i[v],L=_;if(Rk(e,v,n)||Rk(t,v,n))delete i[v];else{if(Rh(h)&&Rh(L)){var W=n.get(h)||[],Te=n.get(L)||[];W.push({obj:e,key:v}),Te.push({obj:t,key:v}),n.set(h,W),n.set(L,Te)}i[v]=yk(i[v],_,r,n)}}}}else i=t;return i}}function Rk(e,t,r){for(var n=r.get(e[t])||[],i=0,a=n.length;i<a;i++){var u=n[i];if(u.key===t&&u.obj===e)return!0}return!1}function RT(e){return Array.isArray(e)}function Ok(e){return typeof e=="function"}function Rh(e){return!OT(e)&&!RT(e)&&!Ok(e)&&typeof e=="object"}function OT(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Bpe(e,t){return!(!gk(e)||!gk(t))}var Os;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Os||(Os={}));var kpe=",",jpe=["OTEL_SDK_DISABLED"];function Hpe(e){return jpe.indexOf(e)>-1}var Ype=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function qpe(e){return Ype.indexOf(e)>-1}var Kpe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function Wpe(e){return Kpe.indexOf(e)>-1}var bT=1/0,CT=128,Qpe=128,zpe=128,bk={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:vn.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:bT,OTEL_ATTRIBUTE_COUNT_LIMIT:CT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:bT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:CT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:bT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:CT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Qpe,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:zpe,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Os.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Xpe(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true"}}function Jpe(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var a=Number(r[e]);isNaN(a)||(a<n?t[e]=n:a>i?t[e]=i:t[e]=a)}}function Zpe(e,t,r,n){n===void 0&&(n=kpe);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(a){return a.trim()}))}var ehe={ALL:vn.ALL,VERBOSE:vn.VERBOSE,DEBUG:vn.DEBUG,INFO:vn.INFO,WARN:vn.WARN,ERROR:vn.ERROR,NONE:vn.NONE};function the(e,t,r){var n=r[e];if(typeof n=="string"){var i=ehe[n.toUpperCase()];i!=null&&(t[e]=i)}}function Ck(e){var t={};for(var r in bk){var n=r;switch(n){case"OTEL_LOG_LEVEL":the(n,t,e);break;default:if(Hpe(n))Xpe(n,t,e);else if(qpe(n))Jpe(n,t,e);else if(Wpe(n))Zpe(n,t,e);else{var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i))}}}return t}var Pk=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{};function Oh(){var e=Ck(Pk);return Object.assign({},bk,e)}function rhe(){return Ck(Pk)}var nhe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ihe=function(){function e(t){t===void 0&&(t={});var r;this._propagators=(r=t.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(function(n){return typeof n.fields=="function"?n.fields():[]}).reduce(function(n,i){return n.concat(i)},[])))}return e.prototype.inject=function(t,r,n){var i,a;try{for(var u=nhe(this._propagators),c=u.next();!c.done;c=u.next()){var v=c.value;try{v.inject(t,r,n)}catch(_){_r.warn("Failed to inject with "+v.constructor.name+". Err: "+_.message)}}}catch(_){i={error:_}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},e.prototype.extract=function(t,r,n){return this._propagators.reduce(function(i,a){try{return a.extract(i,r,n)}catch(u){_r.warn("Failed to extract with "+a.constructor.name+". Err: "+u.message)}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e}(),IM=uT("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function ahe(e){return e.setValue(IM,!0)}function Tke(e){return e.deleteValue(IM)}function NM(e){return e.getValue(IM)===!0}var LM="[_0-9a-z-*/]",ohe="[a-z]"+LM+"{0,255}",she="[a-z0-9]"+LM+"{0,240}@[a-z]"+LM+"{0,13}",uhe=new RegExp("^(?:"+ohe+"|"+she+")$"),che=/^[ -~]{0,255}[!-~]$/,lhe=/,|=/;function fhe(e){return uhe.test(e)}function _he(e){return che.test(e)&&!lhe.test(e)}var Mk=32,dhe=512,Ik=",",Nk="=",phe=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+Nk+t.get(n)),r},[]).join(Ik)},e.prototype._parse=function(t){t.length>dhe||(this._internalState=t.split(Ik).reverse().reduce(function(r,n){var i=n.trim(),a=i.indexOf(Nk);if(a!==-1){var u=i.slice(0,a),c=i.slice(a+1,n.length);fhe(u)&&_he(c)&&r.set(u,c)}return r},new Map),this._internalState.size>Mk&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Mk))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),DM="traceparent",wM="tracestate",hhe="00",She="(?!ff)[\\da-f]{2}",Ehe="(?![0]{32})[\\da-f]{32}",vhe="(?![0]{16})[\\da-f]{16}",mhe="[\\da-f]{2}",The=new RegExp("^\\s?("+She+")-("+Ehe+")-("+vhe+")-("+mhe+")(-.*)?\\s?$");function Ahe(e){var t=The.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var ghe=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=ta.getSpanContext(t);if(!(!i||NM(t)||!m_(i))){var a=hhe+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Rs.NONE).toString(16);n.set(r,DM,a),i.traceState&&n.set(r,wM,i.traceState.serialize())}},e.prototype.extract=function(t,r,n){var i=n.get(r,DM);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var u=Ahe(a);if(!u)return t;u.isRemote=!0;var c=n.get(r,wM);if(c){var v=Array.isArray(c)?c.join(","):c;u.traceState=new phe(typeof v=="string"?v:void 0)}return ta.setSpanContext(t,u)},e.prototype.fields=function(){return[DM,wM]},e}(),yhe="=",UM=";",xM=",",FM="baggage",Rhe=180,Ohe=4096,bhe=8192,Che=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function Phe(e){return e.reduce(function(t,r){var n=""+t+(t!==""?xM:"")+r;return n.length>bhe?t:n},"")}function Mhe(e){return e.getAllEntries().map(function(t){var r=Che(t,2),n=r[0],i=r[1],a=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=UM+i.metadata.toString()),a})}function Lk(e){var t=e.split(UM);if(!(t.length<=0)){var r=t.shift();if(!!r){var n=r.indexOf(yhe);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim()),u;return t.length>0&&(u=Ope(t.join(UM))),{key:i,value:a,metadata:u}}}}}function Ake(e){return typeof e!="string"||e.length===0?{}:e.split(BAGGAGE_ITEMS_SEPARATOR).map(function(t){return Lk(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var Ihe=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=R_.getBaggage(t);if(!(!i||NM(t))){var a=Mhe(i).filter(function(c){return c.length<=Ohe}).slice(0,Rhe),u=Phe(a);u.length>0&&n.set(r,FM,u)}},e.prototype.extract=function(t,r,n){var i=n.get(r,FM),a=Array.isArray(i)?i.join(xM):i;if(!a)return t;var u={};if(a.length===0)return t;var c=a.split(xM);return c.forEach(function(v){var _=Lk(v);if(_){var h={value:_.value};_.metadata&&(h.metadata=_.metadata),u[_.key]=h}}),Object.entries(u).length===0?t:R_.setBaggage(t,R_.createBaggage(u))},e.prototype.fields=function(){return[FM]},e}(),PT;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(PT||(PT={}));var MT;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(MT||(MT={}));var Dk=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Nhe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a};function IT(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=Dk(Object.entries(e)),a=i.next();!a.done;a=i.next()){var u=Nhe(a.value,2),c=u[0],v=u[1];if(!Lhe(c)){_r.warn("Invalid attribute key: "+c);continue}if(!wk(v)){_r.warn("Invalid attribute value set for key: "+c);continue}Array.isArray(v)?n[c]=v.slice():n[c]=v}}catch(_){t={error:_}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function Lhe(e){return typeof e=="string"&&e.length>0}function wk(e){return e==null?!0:Array.isArray(e)?Dhe(e):Uk(e)}function Dhe(e){var t,r,n;try{for(var i=Dk(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u!=null){if(!n){if(Uk(u)){n=typeof u;continue}return!1}if(typeof u!==n)return!1}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function Uk(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var $M;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})($M||($M={}));var O_=performance,xk=9,whe=6,Uhe=Math.pow(10,whe),NT=Math.pow(10,xk);function Ju(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Uhe);return[r,n]}function VM(){var e=O_.timeOrigin;if(typeof e!="number"){var t=O_;e=t.timing&&t.timing.fetchStart}return e}function Fk(e){var t=Ju(VM()),r=Ju(typeof e=="number"?e:O_.now());return Vk(t,r)}function gke(e){if(GM(e))return e;if(typeof e=="number")return e<VM()?Fk(e):Ju(e);if(e instanceof Date)return Ju(e.getTime());throw TypeError("Invalid input type")}function xhe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=NT),[r,n]}function yke(e){var t=xk,r=""+"0".repeat(t)+e[1]+"Z",n=r.substring(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function Rke(e){return e[0]*NT+e[1]}function Oke(e){return e[0]*1e3+e[1]/1e6}function bke(e){return e[0]*1e6+e[1]/1e3}function GM(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function $k(e){return GM(e)||typeof e=="number"||e instanceof Date}function Vk(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=NT&&(r[1]-=NT,r[0]+=1),r}function co(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Fhe="aws.lambda.invoked_arn",$he="db.system",Vhe="db.connection_string",Ghe="db.user",Bhe="db.jdbc.driver_classname",khe="db.name",jhe="db.statement",Hhe="db.operation",Yhe="db.mssql.instance_name",qhe="db.cassandra.keyspace",Khe="db.cassandra.page_size",Whe="db.cassandra.consistency_level",Qhe="db.cassandra.table",zhe="db.cassandra.idempotence",Xhe="db.cassandra.speculative_execution_count",Jhe="db.cassandra.coordinator.id",Zhe="db.cassandra.coordinator.dc",eSe="db.hbase.namespace",tSe="db.redis.database_index",rSe="db.mongodb.collection",nSe="db.sql.table",Gk="exception.type",Bk="exception.message",kk="exception.stacktrace",iSe="exception.escaped",aSe="faas.trigger",oSe="faas.execution",sSe="faas.document.collection",uSe="faas.document.operation",cSe="faas.document.time",lSe="faas.document.name",fSe="faas.time",_Se="faas.cron",dSe="faas.coldstart",pSe="faas.invoked_name",hSe="faas.invoked_provider",SSe="faas.invoked_region",ESe="net.transport",vSe="net.peer.ip",mSe="net.peer.port",TSe="net.peer.name",ASe="net.host.ip",gSe="net.host.port",ySe="net.host.name",RSe="net.host.connection.type",OSe="net.host.connection.subtype",bSe="net.host.carrier.name",CSe="net.host.carrier.mcc",PSe="net.host.carrier.mnc",MSe="net.host.carrier.icc",ISe="peer.service",NSe="enduser.id",LSe="enduser.role",DSe="enduser.scope",wSe="thread.id",USe="thread.name",xSe="code.function",FSe="code.namespace",$Se="code.filepath",VSe="code.lineno",GSe="http.method",BSe="http.url",kSe="http.target",jSe="http.host",HSe="http.scheme",YSe="http.status_code",qSe="http.flavor",KSe="http.user_agent",WSe="http.request_content_length",QSe="http.request_content_length_uncompressed",zSe="http.response_content_length",XSe="http.response_content_length_uncompressed",JSe="http.server_name",ZSe="http.route",eEe="http.client_ip",tEe="aws.dynamodb.table_names",rEe="aws.dynamodb.consumed_capacity",nEe="aws.dynamodb.item_collection_metrics",iEe="aws.dynamodb.provisioned_read_capacity",aEe="aws.dynamodb.provisioned_write_capacity",oEe="aws.dynamodb.consistent_read",sEe="aws.dynamodb.projection",uEe="aws.dynamodb.limit",cEe="aws.dynamodb.attributes_to_get",lEe="aws.dynamodb.index_name",fEe="aws.dynamodb.select",_Ee="aws.dynamodb.global_secondary_indexes",dEe="aws.dynamodb.local_secondary_indexes",pEe="aws.dynamodb.exclusive_start_table",hEe="aws.dynamodb.table_count",SEe="aws.dynamodb.scan_forward",EEe="aws.dynamodb.segment",vEe="aws.dynamodb.total_segments",mEe="aws.dynamodb.count",TEe="aws.dynamodb.scanned_count",AEe="aws.dynamodb.attribute_definitions",gEe="aws.dynamodb.global_secondary_index_updates",yEe="messaging.system",REe="messaging.destination",OEe="messaging.destination_kind",bEe="messaging.temp_destination",CEe="messaging.protocol",PEe="messaging.protocol_version",MEe="messaging.url",IEe="messaging.message_id",NEe="messaging.conversation_id",LEe="messaging.message_payload_size_bytes",DEe="messaging.message_payload_compressed_size_bytes",wEe="messaging.operation",UEe="messaging.consumer_id",xEe="messaging.rabbitmq.routing_key",FEe="messaging.kafka.message_key",$Ee="messaging.kafka.consumer_group",VEe="messaging.kafka.client_id",GEe="messaging.kafka.partition",BEe="messaging.kafka.tombstone",kEe="rpc.system",jEe="rpc.service",HEe="rpc.method",YEe="rpc.grpc.status_code",qEe="rpc.jsonrpc.version",KEe="rpc.jsonrpc.request_id",WEe="rpc.jsonrpc.error_code",QEe="rpc.jsonrpc.error_message",zEe="message.type",XEe="message.id",JEe="message.compressed_size",ZEe="message.uncompressed_size",Cke=null,Pke=null,Mke=null,Ike=null,Nke=null,Lke=null,Dke=null,wke=null,Uke=null,xke=null,Fke=null,$ke=null,Vke=null,Gke=null,Bke=null,kke=null,jke=null,Hke=null,Yke=null,qke=null,Kke=null,BM=Gk,kM=Bk,eve=kk,Wke=null,Qke=null,zke=null,Xke=null,Jke=null,Zke=null,eje=null,tje=null,rje=null,nje=null,ije=null,aje=null,oje=null,sje=null,uje=null,cje=null,lje=null,fje=null,_je=null,dje=null,pje=null,hje=null,Sje=null,Eje=null,vje=null,mje=null,Tje=null,Aje=null,gje=null,yje=null,Rje=null,Oje=null,bje=null,Cje=null,Pje=null,Mje=null,Ije=null,Nje=null,Lje=null,Dje=null,wje=null,Uje=null,xje=null,Fje=null,$je=null,Vje=null,Gje=null,Bje=null,kje=null,jje=null,Hje=null,Yje=null,qje=null,Kje=null,Wje=null,Qje=null,zje=null,Xje=null,Jje=null,Zje=null,eHe=null,tHe=null,rHe=null,nHe=null,iHe=null,aHe=null,oHe=null,sHe=null,uHe=null,cHe=null,lHe=null,fHe=null,_He=null,dHe=null,pHe=null,hHe=null,SHe=null,EHe=null,vHe=null,mHe=null,THe=null,AHe=null,gHe=null,yHe=null,RHe=null,OHe=null,bHe=null,CHe=null,PHe=null,MHe=null,IHe=null,NHe=null,LHe=null,DHe=null,wHe=null,UHe=null,xHe=null,FHe=null,$He=null,VHe=null,GHe=null,BHe=null,kHe=null,jHe=null,HHe=co([Fhe,$he,Vhe,Ghe,Bhe,khe,jhe,Hhe,Yhe,qhe,Khe,Whe,Qhe,zhe,Xhe,Jhe,Zhe,eSe,tSe,rSe,nSe,Gk,Bk,kk,iSe,aSe,oSe,sSe,uSe,cSe,lSe,fSe,_Se,dSe,pSe,hSe,SSe,ESe,vSe,mSe,TSe,ASe,gSe,ySe,RSe,OSe,bSe,CSe,PSe,MSe,ISe,NSe,LSe,DSe,wSe,USe,xSe,FSe,$Se,VSe,GSe,BSe,kSe,jSe,HSe,YSe,qSe,KSe,WSe,QSe,zSe,XSe,JSe,ZSe,eEe,tEe,rEe,nEe,iEe,aEe,oEe,sEe,uEe,cEe,lEe,fEe,_Ee,dEe,pEe,hEe,SEe,EEe,vEe,mEe,TEe,AEe,gEe,yEe,REe,OEe,bEe,CEe,PEe,MEe,IEe,NEe,LEe,DEe,wEe,UEe,xEe,FEe,$Ee,VEe,GEe,BEe,kEe,jEe,HEe,YEe,qEe,KEe,WEe,QEe,zEe,XEe,JEe,ZEe]),tve="other_sql",rve="mssql",nve="mysql",ive="oracle",ave="db2",ove="postgresql",sve="redshift",uve="hive",cve="cloudscape",lve="hsqldb",fve="progress",_ve="maxdb",dve="hanadb",pve="ingres",hve="firstsql",Sve="edb",Eve="cache",vve="adabas",mve="firebird",Tve="derby",Ave="filemaker",gve="informix",yve="instantdb",Rve="interbase",Ove="mariadb",bve="netezza",Cve="pervasive",Pve="pointbase",Mve="sqlite",Ive="sybase",Nve="teradata",Lve="vertica",Dve="h2",wve="coldfusion",Uve="cassandra",xve="hbase",Fve="mongodb",$ve="redis",Vve="couchbase",Gve="couchdb",Bve="cosmosdb",kve="dynamodb",jve="neo4j",Hve="geode",Yve="elasticsearch",qve="memcached",Kve="cockroachdb",YHe=null,qHe=null,KHe=null,WHe=null,QHe=null,zHe=null,XHe=null,JHe=null,ZHe=null,eYe=null,tYe=null,rYe=null,nYe=null,iYe=null,aYe=null,oYe=null,sYe=null,uYe=null,cYe=null,lYe=null,fYe=null,_Ye=null,dYe=null,pYe=null,hYe=null,SYe=null,EYe=null,vYe=null,mYe=null,TYe=null,AYe=null,gYe=null,yYe=null,RYe=null,OYe=null,bYe=null,CYe=null,PYe=null,MYe=null,IYe=null,NYe=null,LYe=null,DYe=null,wYe=null,UYe=null,xYe=null,FYe=null,$Ye=co([tve,rve,nve,ive,ave,ove,sve,uve,cve,lve,fve,_ve,dve,pve,hve,Sve,Eve,vve,mve,Tve,Ave,gve,yve,Rve,Ove,bve,Cve,Pve,Mve,Ive,Nve,Lve,Dve,wve,Uve,xve,Fve,$ve,Vve,Gve,Bve,kve,jve,Hve,Yve,qve,Kve]),Wve="all",Qve="each_quorum",zve="quorum",Xve="local_quorum",Jve="one",Zve="two",eme="three",tme="local_one",rme="any",nme="serial",ime="local_serial",VYe=null,GYe=null,BYe=null,kYe=null,jYe=null,HYe=null,YYe=null,qYe=null,KYe=null,WYe=null,QYe=null,zYe=co([Wve,Qve,zve,Xve,Jve,Zve,eme,tme,rme,nme,ime]),ame="datasource",ome="http",sme="pubsub",ume="timer",cme="other",XYe=null,JYe=null,ZYe=null,e8e=null,t8e=null,r8e=co([ame,ome,sme,ume,cme]),lme="insert",fme="edit",_me="delete",n8e=null,i8e=null,a8e=null,o8e=co([lme,fme,_me]),dme="alibaba_cloud",pme="aws",hme="azure",Sme="gcp",s8e=null,u8e=null,c8e=null,l8e=null,f8e=co([dme,pme,hme,Sme]),Eme="ip_tcp",vme="ip_udp",mme="ip",Tme="unix",Ame="pipe",gme="inproc",yme="other",_8e=null,d8e=null,p8e=null,h8e=null,S8e=null,E8e=null,v8e=null,m8e=co([Eme,vme,mme,Tme,Ame,gme,yme]),Rme="wifi",Ome="wired",bme="cell",Cme="unavailable",Pme="unknown",T8e=null,A8e=null,g8e=null,y8e=null,R8e=null,O8e=co([Rme,Ome,bme,Cme,Pme]),Mme="gprs",Ime="edge",Nme="umts",Lme="cdma",Dme="evdo_0",wme="evdo_a",Ume="cdma2000_1xrtt",xme="hsdpa",Fme="hsupa",$me="hspa",Vme="iden",Gme="evdo_b",Bme="lte",kme="ehrpd",jme="hspap",Hme="gsm",Yme="td_scdma",qme="iwlan",Kme="nr",Wme="nrnsa",Qme="lte_ca",b8e=null,C8e=null,P8e=null,M8e=null,I8e=null,N8e=null,L8e=null,D8e=null,w8e=null,U8e=null,x8e=null,F8e=null,$8e=null,V8e=null,G8e=null,B8e=null,k8e=null,j8e=null,H8e=null,Y8e=null,q8e=null,K8e=co([Mme,Ime,Nme,Lme,Dme,wme,Ume,xme,Fme,$me,Vme,Gme,Bme,kme,jme,Hme,Yme,qme,Kme,Wme,Qme]),zme="1.0",Xme="1.1",Jme="2.0",Zme="SPDY",eTe="QUIC",W8e=null,Q8e=null,z8e=null,X8e=null,J8e=null,Z8e={HTTP_1_0:zme,HTTP_1_1:Xme,HTTP_2_0:Jme,SPDY:Zme,QUIC:eTe},tTe="queue",rTe="topic",eqe=null,tqe=null,rqe=co([tTe,rTe]),nTe="receive",iTe="process",nqe=null,iqe=null,aqe=co([nTe,iTe]),aTe=0,oTe=1,sTe=2,uTe=3,cTe=4,lTe=5,fTe=6,_Te=7,dTe=8,pTe=9,hTe=10,STe=11,ETe=12,vTe=13,mTe=14,TTe=15,ATe=16,oqe=null,sqe=null,uqe=null,cqe=null,lqe=null,fqe=null,_qe=null,dqe=null,pqe=null,hqe=null,Sqe=null,Eqe=null,vqe=null,mqe=null,Tqe=null,Aqe=null,gqe=null,yqe={OK:aTe,CANCELLED:oTe,UNKNOWN:sTe,INVALID_ARGUMENT:uTe,DEADLINE_EXCEEDED:cTe,NOT_FOUND:lTe,ALREADY_EXISTS:fTe,PERMISSION_DENIED:_Te,RESOURCE_EXHAUSTED:dTe,FAILED_PRECONDITION:pTe,ABORTED:hTe,OUT_OF_RANGE:STe,UNIMPLEMENTED:ETe,INTERNAL:vTe,UNAVAILABLE:mTe,DATA_LOSS:TTe,UNAUTHENTICATED:ATe},gTe="SENT",yTe="RECEIVED",Rqe=null,Oqe=null,bqe=co([gTe,yTe]),RTe="exception",jM=function(){return jM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},jM.apply(this,arguments)},OTe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jk=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},bTe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},CTe=function(){function e(t,r,n,i,a,u,c,v,_,h){c===void 0&&(c=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:$M.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=i,this.parentSpanId=u,this.kind=a,this.links=c;var L=Date.now();this._performanceStartTime=O_.now(),this._performanceOffset=L-(this._performanceStartTime+VM()),this._startTimeProvided=v!=null,this.startTime=this._getTime(v??L),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,h!=null&&this.setAttributes(h),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return r==null||this._isSpanEnded()?this:t.length===0?(_r.warn("Invalid attribute key: "+t),this):wk(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(_r.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var r,n;try{for(var i=OTe(Object.entries(t)),a=i.next();!a.done;a=i.next()){var u=jk(a.value,2),c=u[0],v=u[1];this.setAttribute(c,v)}}catch(_){r={error:_}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this},e.prototype.addEvent=function(t,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return _r.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&_r.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),$k(r)&&($k(n)||(n=r),r=void 0);var i=IT(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var r;return(r=this.links).push.apply(r,bTe([],jk(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=jM({},t),this.status.message!=null&&typeof t.message!="string"&&(_r.warn("Dropping invalid status.message of type '"+typeof t.message+"', expected 'string'"),delete this.status.message),this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){_r.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(t),this._duration=xhe(this.startTime,this.endTime),this._duration[0]<0&&(_r.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&_r.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<=O_.now())return Fk(t+this._performanceOffset);if(typeof t=="number")return Ju(t);if(t instanceof Date)return Ju(t.getTime());if(GM(t))return t;if(this._startTimeProvided)return Ju(Date.now());var r=O_.now()-this._performanceStartTime;return Vk(this.startTime,Ju(r))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,r){var n={};typeof t=="string"?n[kM]=t:t&&(t.code?n[BM]=t.code.toString():t.name&&(n[BM]=t.name),t.message&&(n[kM]=t.message),t.stack&&(n[eve]=t.stack)),n[BM]||n[kM]?this.addEvent(RTe,n,r):_r.warn("Failed to record an exception "+t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&_r.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substring(0,r)},e.prototype._truncateToSize=function(t){var r=this,n=this._attributeValueLengthLimit;return n<=0?(_r.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e}(),b_;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(b_||(b_={}));var LT=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:b_.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),C_=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:b_.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}();function PTe(){return function(e){_r.error(MTe(e))}}function MTe(e){return typeof e=="string"?e:JSON.stringify(ITe(e))}function ITe(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i))}}),r=Object.getPrototypeOf(r);return t}var Hk=PTe();function Cqe(e){Hk=e}function P_(e){try{Hk(e)}catch{}}var HM=function(){function e(t){var r,n,i,a;this._root=t.root,this._root||(P_(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new C_),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new C_,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new LT,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new C_,this._localParentNotSampled=(a=t.localParentNotSampled)!==null&&a!==void 0?a:new LT}return e.prototype.shouldSample=function(t,r,n,i,a,u){var c=ta.getSpanContext(t);return!c||!m_(c)?this._root.shouldSample(t,r,n,i,a,u):c.isRemote?c.traceFlags&Rs.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,a,u):this._remoteParentNotSampled.shouldSample(t,r,n,i,a,u):c.traceFlags&Rs.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,a,u):this._localParentNotSampled.shouldSample(t,r,n,i,a,u)},e.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}(),Yk=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,r){return{decision:oB(r)&&this._accumulate(r)<this._upperBound?b_.RECORD_AND_SAMPLED:b_.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var i=n*8,a=parseInt(t.slice(i,i+8),16);r=(r^a)>>>0}return r},e}(),NTe=Os.AlwaysOn,M_=1;function qk(){var e=Oh();return{sampler:Kk(e),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function Kk(e){switch(e===void 0&&(e=Oh()),e.OTEL_TRACES_SAMPLER){case Os.AlwaysOn:return new C_;case Os.AlwaysOff:return new LT;case Os.ParentBasedAlwaysOn:return new HM({root:new C_});case Os.ParentBasedAlwaysOff:return new HM({root:new LT});case Os.TraceIdRatio:return new Yk(Wk(e));case Os.ParentBasedTraceIdRatio:return new HM({root:new Yk(Wk(e))});default:return _r.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+NTe+'".'),new C_}}function Wk(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return _r.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+M_+"."),M_;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(_r.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+M_+"."),M_):t<0||t>1?(_r.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+M_+"."),M_):t}function LTe(e){var t={sampler:Kk()},r=qk(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function DTe(e){var t,r,n,i,a,u,c,v,_,h,L,W,Te=Object.assign({},e.spanLimits),me=rhe();return Te.attributeCountLimit=(u=(a=(i=(r=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&r!==void 0?r:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&i!==void 0?i:me.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:me.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:CT,Te.attributeValueLengthLimit=(W=(L=(h=(v=(c=e.spanLimits)===null||c===void 0?void 0:c.attributeValueLengthLimit)!==null&&v!==void 0?v:(_=e.generalLimits)===null||_===void 0?void 0:_.attributeValueLengthLimit)!==null&&h!==void 0?h:me.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&L!==void 0?L:me.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&W!==void 0?W:bT,Object.assign({},e,{spanLimits:Te})}var wTe=8,UTe=16,xTe=function(){function e(){this.generateTraceId=Qk(UTe),this.generateSpanId=Qk(wTe)}return e}(),DT=Array(32);function Qk(e){return function(){for(var r=0;r<e*2;r++)DT[r]=Math.floor(Math.random()*16)+48,DT[r]>=58&&(DT[r]+=39);return String.fromCharCode.apply(null,DT.slice(0,e*2))}}var FTe=function(){function e(t,r,n){this._tracerProvider=n;var i=LTe(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new xTe,this.resource=n.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,r,n){var i,a,u;r===void 0&&(r={}),n===void 0&&(n=_a.active()),r.root&&(n=ta.deleteSpan(n));var c=ta.getSpan(n);if(NM(n)){_r.debug("Instrumentation suppressed, returning Noop Span");var v=ta.wrapSpanContext(iB);return v}var _=c?.spanContext(),h=this._idGenerator.generateSpanId(),L,W,Te;!_||!ta.isSpanContextValid(_)?L=this._idGenerator.generateTraceId():(L=_.traceId,W=_.traceState,Te=_.spanId);var me=(i=r.kind)!==null&&i!==void 0?i:PT.INTERNAL,Oe=((a=r.links)!==null&&a!==void 0?a:[]).map(function(dr){return{context:dr.context,attributes:IT(dr.attributes)}}),He=IT(r.attributes),qe=this._sampler.shouldSample(n,L,t,me,He,Oe);W=(u=qe.traceState)!==null&&u!==void 0?u:W;var We=qe.decision===MT.RECORD_AND_SAMPLED?Rs.SAMPLED:Rs.NONE,ct={traceId:L,spanId:h,traceFlags:We,traceState:W};if(qe.decision===MT.NOT_RECORD){_r.debug("Recording is off, propagating context in a non-recording span");var v=ta.wrapSpanContext(ct);return v}var yt=IT(Object.assign(He,qe.attributes)),jt=new CTe(this,n,t,ct,me,Te,Oe,r.startTime,void 0,yt);return jt},e.prototype.startActiveSpan=function(t,r,n,i){var a,u,c;if(!(arguments.length<2)){arguments.length===2?c=r:arguments.length===3?(a=r,c=n):(a=r,u=n,c=i);var v=u??_a.active(),_=this.startSpan(t,a,v),h=ta.setSpan(v,_);return _a.with(h,c,void 0,_)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),wT=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},zk=function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,r,n=[];try{for(var i=wT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;n.push(u.forceFlush())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(c){Promise.all(n).then(function(){c()}).catch(function(v){P_(v||new Error("MultiSpanProcessor: forceFlush failed")),c()})})},e.prototype.onStart=function(t,r){var n,i;try{for(var a=wT(this._spanProcessors),u=a.next();!u.done;u=a.next()){var c=u.value;c.onStart(t,r)}}catch(v){n={error:v}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(t){var r,n;try{for(var i=wT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;u.onEnd(t)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.shutdown=function(){var t,r,n=[];try{for(var i=wT(this._spanProcessors),a=i.next();!a.done;a=i.next()){var u=a.value;n.push(u.shutdown())}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return new Promise(function(c,v){Promise.all(n).then(function(){c()},v)})},e}(),$Te=function(){function e(){}return e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),VTe=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),GTe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},BTe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},kTe=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new VTe}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,BTe([this._that],GTe(n),!1))).then(function(a){return r._deferred.resolve(a)},function(a){return r._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),YM;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(YM||(YM={}));function Pqe(e){}var jTe=function(){function e(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=Oh();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new kTe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_r.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Rs.SAMPLED)!==0&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&_r.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(_r.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],a=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),u=0,c=a;u<c;u++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(r,n){var i=setTimeout(function(){n(new Error("Timeout"))},t._exportTimeoutMillis);_a.with(ahe(_a.active()),function(){var a;t._finishedSpans.length<=t._maxExportBatchSize?(a=t._finishedSpans,t._finishedSpans=[]):a=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var u=function(){return t._exporter.export(a,function(L){var W;clearTimeout(i),L.code===YM.SUCCESS?r():n((W=L.error)!==null&&W!==void 0?W:new Error("BatchSpanProcessor: span export failed"))})},c=null,v=0,_=a.length;v<_;v++){var h=a[v];h.resource.asyncAttributesPending&&h.resource.waitForAsyncAttributes&&(c??(c=[]),c.push(h.resource.waitForAsyncAttributes()))}c===null?u():Promise.all(c).then(u,function(L){P_(L),n(L)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var r=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(n){t._isExporting=!1,P_(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis),this._timer,void 0)}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}(),HTe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),YTe=function(e){HTe(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.onInit(n),i}return t.prototype.onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush().catch(function(i){P_(i)})},this._pageHideListener=function(){n.forceFlush().catch(function(i){P_(i)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(jTe),qTe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},KTe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},ml;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(ml||(ml={}));var WTe=function(){function e(t){t===void 0&&(t={});var r,n;this._registeredSpanProcessors=[],this._tracers=new Map;var i=Gpe({},qk(),DTe(t));if(this.resource=(r=i.resource)!==null&&r!==void 0?r:ST.empty(),i.mergeResourceWithDefaults&&(this.resource=ST.default().merge(this.resource)),this._config=Object.assign({},i,{resource:this.resource}),!((n=t.spanProcessors)===null||n===void 0)&&n.length)this._registeredSpanProcessors=KTe([],qTe(t.spanProcessors),!1),this.activeSpanProcessor=new zk(this._registeredSpanProcessors);else{var a=this._buildExporterFromEnv();if(a!==void 0){var u=new YTe(a);this.activeSpanProcessor=u}else this.activeSpanProcessor=new $Te}}return e.prototype.getTracer=function(t,r,n){var i=t+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._tracers.has(i)||this._tracers.set(i,new FTe({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(r){return _r.error("Error while trying to shutdown current span processor",r)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new zk(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),ta.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&_a.setGlobalContextManager(t.contextManager),t.propagator&&R_.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(n){return new Promise(function(i){var a,u=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),a=ml.timeout},t);n.forceFlush().then(function(){clearTimeout(u),a!==ml.timeout&&(a=ml.resolved,i(a))}).catch(function(c){clearTimeout(u),a=ml.error,i(c)})})});return new Promise(function(n,i){Promise.all(r).then(function(a){var u=a.filter(function(c){return c!==ml.resolved});u.length>0?i(u):n()}).catch(function(a){return i([a])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return(r=this.constructor._registeredPropagators.get(t))===null||r===void 0?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return(r=this.constructor._registeredExporters.get(t))===null||r===void 0?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set(Oh().OTEL_PROPAGATORS)),n=r.map(function(a){var u=t._getPropagator(a);return u||_r.warn('Propagator "'+a+'" requested through environment variable is unavailable.'),u}),i=n.reduce(function(a,u){return u&&a.push(u),a},[]);if(i.length!==0)return r.length===1?i[0]:new ihe({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=Oh().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var r=this._getSpanExporter(t);return r||_r.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},e._registeredPropagators=new Map([["tracecontext",function(){return new ghe}],["baggage",function(){return new Ihe}]]),e._registeredExporters=new Map,e}(),QTe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],u;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(c){u={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return a},zTe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},XTe=function(){function e(){this._enabled=!1,this._currentContext=v_}return e.prototype._bindFunction=function(t,r){t===void 0&&(t=v_);var n=this,i=function(){for(var a=this,u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return n.with(t,function(){return r.apply(a,u)})};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r},e.prototype.disable=function(){return this._currentContext=v_,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=v_,this)},e.prototype.with=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var u=this._currentContext;this._currentContext=t||v_;try{return r.call.apply(r,zTe([n],QTe(i),!1))}finally{this._currentContext=u}},e}(),JTe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ZTe=function(e){JTe(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,r)||this;if(r.contextManager)throw"contextManager should be defined in register method not in constructor";if(r.propagator)throw"propagator should be defined in register method not in constructor";return n}return t.prototype.register=function(r){r===void 0&&(r={}),r.contextManager===void 0&&(r.contextManager=new XTe),r.contextManager&&r.contextManager.enable(),e.prototype.register.call(this,r)},t}(WTe);function Tl(e){let t={};const r=e.length;for(let n=0;n<r;n++){const i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}const eAe="cloud.provider",tAe="cloud.account.id",rAe="cloud.region",nAe="cloud.availability_zone",iAe="cloud.platform",aAe="aws.ecs.container.arn",oAe="aws.ecs.cluster.arn",sAe="aws.ecs.launchtype",uAe="aws.ecs.task.arn",cAe="aws.ecs.task.family",lAe="aws.ecs.task.revision",fAe="aws.eks.cluster.arn",_Ae="aws.log.group.names",dAe="aws.log.group.arns",pAe="aws.log.stream.names",hAe="aws.log.stream.arns",SAe="container.name",EAe="container.id",vAe="container.runtime",mAe="container.image.name",TAe="container.image.tag",Xk="deployment.environment",AAe="device.id",gAe="device.model.identifier",yAe="device.model.name",RAe="faas.name",OAe="faas.id",bAe="faas.version",CAe="faas.instance",PAe="faas.max_memory",MAe="host.id",IAe="host.name",NAe="host.type",LAe="host.arch",DAe="host.image.name",wAe="host.image.id",UAe="host.image.version",xAe="k8s.cluster.name",FAe="k8s.node.name",$Ae="k8s.node.uid",VAe="k8s.namespace.name",GAe="k8s.pod.uid",BAe="k8s.pod.name",kAe="k8s.container.name",jAe="k8s.replicaset.uid",HAe="k8s.replicaset.name",YAe="k8s.deployment.uid",qAe="k8s.deployment.name",KAe="k8s.statefulset.uid",WAe="k8s.statefulset.name",QAe="k8s.daemonset.uid",zAe="k8s.daemonset.name",XAe="k8s.job.uid",JAe="k8s.job.name",ZAe="k8s.cronjob.uid",ege="k8s.cronjob.name",tge="os.type",rge="os.description",nge="os.name",ige="os.version",age="process.pid",oge="process.executable.name",sge="process.executable.path",uge="process.command",cge="process.command_line",lge="process.command_args",fge="process.owner",_ge="process.runtime.name",dge="process.runtime.version",pge="process.runtime.description",Jk="service.name",Zk="service.namespace",hge="service.instance.id",ej="service.version",Sge="telemetry.sdk.name",tj="telemetry.sdk.language",Ege="telemetry.sdk.version",vge="telemetry.auto.version",mge="webengine.name",Tge="webengine.version",Age="webengine.description",Mqe=null,Iqe=null,Nqe=null,Lqe=null,Dqe=null,wqe=null,Uqe=null,xqe=null,Fqe=null,$qe=null,Vqe=null,Gqe=null,Bqe=null,kqe=null,jqe=null,Hqe=null,Yqe=null,qqe=null,Kqe=null,Wqe=null,Qqe=null,gge=Xk,zqe=null,Xqe=null,Jqe=null,Zqe=null,e2e=null,t2e=null,r2e=null,n2e=null,i2e=null,a2e=null,o2e=null,s2e=null,u2e=null,c2e=null,l2e=null,f2e=null,_2e=null,d2e=null,p2e=null,h2e=null,S2e=null,E2e=null,v2e=null,m2e=null,T2e=null,A2e=null,g2e=null,y2e=null,R2e=null,O2e=null,b2e=null,C2e=null,P2e=null,M2e=null,I2e=null,N2e=null,L2e=null,D2e=null,w2e=null,U2e=null,x2e=null,F2e=null,$2e=null,V2e=null,G2e=null,B2e=null,k2e=null,j2e=null,yge=Jk,Rge=Zk,H2e=null,Oge=ej,Y2e=null,bge=tj,q2e=null,K2e=null,W2e=null,Q2e=null,z2e=null,X2e=Tl([eAe,tAe,rAe,nAe,iAe,aAe,oAe,sAe,uAe,cAe,lAe,fAe,_Ae,dAe,pAe,hAe,SAe,EAe,vAe,mAe,TAe,Xk,AAe,gAe,yAe,RAe,OAe,bAe,CAe,PAe,MAe,IAe,NAe,LAe,DAe,wAe,UAe,xAe,FAe,$Ae,VAe,GAe,BAe,kAe,jAe,HAe,YAe,qAe,KAe,WAe,QAe,zAe,XAe,JAe,ZAe,ege,tge,rge,nge,ige,age,oge,sge,uge,cge,lge,fge,_ge,dge,pge,Jk,Zk,hge,ej,Sge,tj,Ege,vge,mge,Tge,Age]),Cge="alibaba_cloud",Pge="aws",Mge="azure",Ige="gcp",J2e=null,Z2e=null,eKe=null,tKe=null,rKe=Tl([Cge,Pge,Mge,Ige]),Nge="alibaba_cloud_ecs",Lge="alibaba_cloud_fc",Dge="aws_ec2",wge="aws_ecs",Uge="aws_eks",xge="aws_lambda",Fge="aws_elastic_beanstalk",$ge="azure_vm",Vge="azure_container_instances",Gge="azure_aks",Bge="azure_functions",kge="azure_app_service",jge="gcp_compute_engine",Hge="gcp_cloud_run",Yge="gcp_kubernetes_engine",qge="gcp_cloud_functions",Kge="gcp_app_engine",nKe=null,iKe=null,aKe=null,oKe=null,sKe=null,uKe=null,cKe=null,lKe=null,fKe=null,_Ke=null,dKe=null,pKe=null,hKe=null,SKe=null,EKe=null,vKe=null,mKe=null,TKe=Tl([Nge,Lge,Dge,wge,Uge,xge,Fge,$ge,Vge,Gge,Bge,kge,jge,Hge,Yge,qge,Kge]),Wge="ec2",Qge="fargate",AKe=null,gKe=null,yKe=Tl([Wge,Qge]),zge="amd64",Xge="arm32",Jge="arm64",Zge="ia64",eye="ppc32",tye="ppc64",rye="x86",RKe=null,OKe=null,bKe=null,CKe=null,PKe=null,MKe=null,IKe=null,NKe=Tl([zge,Xge,Jge,Zge,eye,tye,rye]),nye="windows",iye="linux",aye="darwin",oye="freebsd",sye="netbsd",uye="openbsd",cye="dragonflybsd",lye="hpux",fye="aix",_ye="solaris",dye="z_os",LKe=null,DKe=null,wKe=null,UKe=null,xKe=null,FKe=null,$Ke=null,VKe=null,GKe=null,BKe=null,kKe=null,jKe=Tl([nye,iye,aye,oye,sye,uye,cye,lye,fye,_ye,dye]),pye="cpp",hye="dotnet",Sye="erlang",Eye="go",vye="java",mye="nodejs",Tye="php",Aye="python",gye="ruby",yye="webjs",HKe=null,YKe=null,qKe=null,KKe=null,WKe=null,QKe=null,zKe=null,XKe=null,JKe=null,ZKe=null,eWe=Tl([pye,hye,Sye,Eye,vye,mye,Tye,Aye,gye,yye]);var Rye=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Oye=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(_){return function(h){return v([_,h])}}function v(_){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=_[0]&2?i.return:_[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,_[1])).done)return a;switch(i=0,a&&(_=[_[0]&2,a.value]),_[0]){case 0:case 1:a=_;break;case 4:return r.label++,{value:_[1],done:!1};case 5:r.label++,i=_[1],_=[0];continue;case 7:_=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(_[0]===6||_[0]===2)){r=0;continue}if(_[0]===3&&(!a||_[1]>a[0]&&_[1]<a[3])){r.label=_[1];break}if(_[0]===6&&r.label<a[1]){r.label=a[1],a=_;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(_);break}a[2]&&r.ops.pop(),r.trys.pop();continue}_=t.call(e,r)}catch(h){_=[6,h],i=0}finally{n=a=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};function bye(e,t,r){var n,i;try{i=e()}catch(a){n=a}finally{if(t(n,i),n&&!r)throw n;return i}}function tWe(e,t,r){return Rye(this,void 0,void 0,function(){var n,i,a;return Oye(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,3,4]),[4,e()];case 1:return i=u.sent(),[3,4];case 2:return a=u.sent(),n=a,[3,4];case 3:if(t(n,i),n&&!r)throw n;return[2,i];case 4:return[2]}})})}function rj(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Al=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cye=function(){function e(){}return e.prototype.createGauge=function(t,r){return xye},e.prototype.createHistogram=function(t,r){return Fye},e.prototype.createCounter=function(t,r){return Uye},e.prototype.createUpDownCounter=function(t,r){return $ye},e.prototype.createObservableGauge=function(t,r){return Gye},e.prototype.createObservableCounter=function(t,r){return Vye},e.prototype.createObservableUpDownCounter=function(t,r){return Bye},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),UT=function(){function e(){}return e}(),Pye=function(e){Al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(UT),Mye=function(e){Al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(UT),Iye=function(e){Al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(UT),Nye=function(e){Al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(UT),qM=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),Lye=function(e){Al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qM),Dye=function(e){Al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qM),wye=function(e){Al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qM),nj=new Cye,Uye=new Pye,xye=new Iye,Fye=new Nye,$ye=new Mye,Vye=new Lye,Gye=new Dye,Bye=new wye;function rWe(){return nj}var kye=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return nj},e}(),jye=new kye,KM="metrics",Hye=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return dh(KM,t,ys.instance())},e.prototype.getMeterProvider=function(){return ll(KM)||jye},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){ph(KM,ys.instance())},e}(),Yye=Hye.getInstance(),qye=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof p.g=="object"?p.g:{},xT=Symbol.for("io.opentelemetry.js.api.logs"),bh=qye;function Kye(e,t,r){return function(n){return n===e?t:r}}var ij=1,Wye=function(){function e(){}return e.prototype.getLogger=function(t,r,n){return new xB},e}(),aj=new Wye,Qye=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return bh[xT]?this.getLoggerProvider():(bh[xT]=Kye(ij,t,aj),t)},e.prototype.getLoggerProvider=function(){var t,r;return(r=(t=bh[xT])===null||t===void 0?void 0:t.call(bh,ij))!==null&&r!==void 0?r:aj},e.prototype.getLogger=function(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)},e.prototype.disable=function(){delete bh[xT]},e}(),zye=Qye.getInstance(),FT=p(8821),$T=function(){return $T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$T.apply(this,arguments)},Xye=function(){function e(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this._wrap=FT.wrap,this._unwrap=FT.unwrap,this._massWrap=FT.massWrap,this._massUnwrap=FT.massUnwrap,this._config=$T({enabled:!0},n),this._diag=_r.createComponentLogger({namespace:t}),this._tracer=ta.getTracer(t,r),this._meter=Yye.getMeter(t,r),this._logger=zye.getLogger(t,r),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var t,r=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(r)?r:[r]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){this._config=$T({},t)},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(t,r,n,i){if(!!t)try{t(n,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}},e}(),Jye=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zye=function(e){Jye(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a._config.enabled&&a.enable(),a}return t}(Xye),eRe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function oj(e,t){return typeof t=="string"?e===t:!!e.match(t)}function tRe(e,t){var r,n;if(!t)return!1;try{for(var i=eRe(t),a=i.next();!a.done;a=i.next()){var u=a.value;if(oj(e,u))return!0}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1}function lo(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var rRe="aws.lambda.invoked_arn",nRe="db.system",iRe="db.connection_string",aRe="db.user",oRe="db.jdbc.driver_classname",sRe="db.name",uRe="db.statement",cRe="db.operation",lRe="db.mssql.instance_name",fRe="db.cassandra.keyspace",_Re="db.cassandra.page_size",dRe="db.cassandra.consistency_level",pRe="db.cassandra.table",hRe="db.cassandra.idempotence",SRe="db.cassandra.speculative_execution_count",ERe="db.cassandra.coordinator.id",vRe="db.cassandra.coordinator.dc",mRe="db.hbase.namespace",TRe="db.redis.database_index",ARe="db.mongodb.collection",gRe="db.sql.table",yRe="exception.type",RRe="exception.message",ORe="exception.stacktrace",bRe="exception.escaped",CRe="faas.trigger",PRe="faas.execution",MRe="faas.document.collection",IRe="faas.document.operation",NRe="faas.document.time",LRe="faas.document.name",DRe="faas.time",wRe="faas.cron",URe="faas.coldstart",xRe="faas.invoked_name",FRe="faas.invoked_provider",$Re="faas.invoked_region",VRe="net.transport",GRe="net.peer.ip",BRe="net.peer.port",kRe="net.peer.name",jRe="net.host.ip",HRe="net.host.port",YRe="net.host.name",qRe="net.host.connection.type",KRe="net.host.connection.subtype",WRe="net.host.carrier.name",QRe="net.host.carrier.mcc",zRe="net.host.carrier.mnc",XRe="net.host.carrier.icc",JRe="peer.service",ZRe="enduser.id",eOe="enduser.role",tOe="enduser.scope",rOe="thread.id",nOe="thread.name",iOe="code.function",aOe="code.namespace",oOe="code.filepath",sOe="code.lineno",sj="http.method",uj="http.url",uOe="http.target",cj="http.host",lj="http.scheme",fj="http.status_code",cOe="http.flavor",_j="http.user_agent",lOe="http.request_content_length",fOe="http.request_content_length_uncompressed",dj="http.response_content_length",pj="http.response_content_length_uncompressed",_Oe="http.server_name",dOe="http.route",pOe="http.client_ip",hOe="aws.dynamodb.table_names",SOe="aws.dynamodb.consumed_capacity",EOe="aws.dynamodb.item_collection_metrics",vOe="aws.dynamodb.provisioned_read_capacity",mOe="aws.dynamodb.provisioned_write_capacity",TOe="aws.dynamodb.consistent_read",AOe="aws.dynamodb.projection",gOe="aws.dynamodb.limit",yOe="aws.dynamodb.attributes_to_get",ROe="aws.dynamodb.index_name",OOe="aws.dynamodb.select",bOe="aws.dynamodb.global_secondary_indexes",COe="aws.dynamodb.local_secondary_indexes",POe="aws.dynamodb.exclusive_start_table",MOe="aws.dynamodb.table_count",IOe="aws.dynamodb.scan_forward",NOe="aws.dynamodb.segment",LOe="aws.dynamodb.total_segments",DOe="aws.dynamodb.count",wOe="aws.dynamodb.scanned_count",UOe="aws.dynamodb.attribute_definitions",xOe="aws.dynamodb.global_secondary_index_updates",FOe="messaging.system",$Oe="messaging.destination",VOe="messaging.destination_kind",GOe="messaging.temp_destination",BOe="messaging.protocol",kOe="messaging.protocol_version",jOe="messaging.url",HOe="messaging.message_id",YOe="messaging.conversation_id",qOe="messaging.message_payload_size_bytes",KOe="messaging.message_payload_compressed_size_bytes",WOe="messaging.operation",QOe="messaging.consumer_id",zOe="messaging.rabbitmq.routing_key",XOe="messaging.kafka.message_key",JOe="messaging.kafka.consumer_group",ZOe="messaging.kafka.client_id",ebe="messaging.kafka.partition",tbe="messaging.kafka.tombstone",rbe="rpc.system",nbe="rpc.service",ibe="rpc.method",abe="rpc.grpc.status_code",obe="rpc.jsonrpc.version",sbe="rpc.jsonrpc.request_id",ube="rpc.jsonrpc.error_code",cbe="rpc.jsonrpc.error_message",lbe="message.type",fbe="message.id",_be="message.compressed_size",dbe="message.uncompressed_size",nWe=null,iWe=null,aWe=null,oWe=null,sWe=null,uWe=null,cWe=null,lWe=null,fWe=null,_We=null,dWe=null,pWe=null,hWe=null,SWe=null,EWe=null,vWe=null,mWe=null,TWe=null,AWe=null,gWe=null,yWe=null,RWe=null,OWe=null,bWe=null,CWe=null,PWe=null,MWe=null,IWe=null,NWe=null,LWe=null,DWe=null,wWe=null,UWe=null,xWe=null,FWe=null,$We=null,VWe=null,GWe=null,BWe=null,kWe=null,jWe=null,HWe=null,YWe=null,qWe=null,KWe=null,WWe=null,QWe=null,zWe=null,XWe=null,JWe=null,ZWe=null,eQe=null,tQe=null,rQe=null,nQe=null,iQe=null,aQe=null,oQe=null,sQe=null,uQe=null,pbe=sj,hbe=uj,cQe=null,Sbe=cj,Ebe=lj,vbe=fj,lQe=null,mbe=_j,fQe=null,_Qe=null,Tbe=dj,Abe=pj,dQe=null,pQe=null,hQe=null,SQe=null,EQe=null,vQe=null,mQe=null,TQe=null,AQe=null,gQe=null,yQe=null,RQe=null,OQe=null,bQe=null,CQe=null,PQe=null,MQe=null,IQe=null,NQe=null,LQe=null,DQe=null,wQe=null,UQe=null,xQe=null,FQe=null,$Qe=null,VQe=null,GQe=null,BQe=null,kQe=null,jQe=null,HQe=null,YQe=null,qQe=null,KQe=null,WQe=null,QQe=null,zQe=null,XQe=null,JQe=null,ZQe=null,e3e=null,t3e=null,r3e=null,n3e=null,i3e=null,a3e=null,o3e=null,s3e=null,u3e=null,c3e=null,l3e=null,f3e=null,_3e=null,d3e=null,p3e=null,h3e=lo([rRe,nRe,iRe,aRe,oRe,sRe,uRe,cRe,lRe,fRe,_Re,dRe,pRe,hRe,SRe,ERe,vRe,mRe,TRe,ARe,gRe,yRe,RRe,ORe,bRe,CRe,PRe,MRe,IRe,NRe,LRe,DRe,wRe,URe,xRe,FRe,$Re,VRe,GRe,BRe,kRe,jRe,HRe,YRe,qRe,KRe,WRe,QRe,zRe,XRe,JRe,ZRe,eOe,tOe,rOe,nOe,iOe,aOe,oOe,sOe,sj,uj,uOe,cj,lj,fj,cOe,_j,lOe,fOe,dj,pj,_Oe,dOe,pOe,hOe,SOe,EOe,vOe,mOe,TOe,AOe,gOe,yOe,ROe,OOe,bOe,COe,POe,MOe,IOe,NOe,LOe,DOe,wOe,UOe,xOe,FOe,$Oe,VOe,GOe,BOe,kOe,jOe,HOe,YOe,qOe,KOe,WOe,QOe,zOe,XOe,JOe,ZOe,ebe,tbe,rbe,nbe,ibe,abe,obe,sbe,ube,cbe,lbe,fbe,_be,dbe]),gbe="other_sql",ybe="mssql",Rbe="mysql",Obe="oracle",bbe="db2",Cbe="postgresql",Pbe="redshift",Mbe="hive",Ibe="cloudscape",Nbe="hsqldb",Lbe="progress",Dbe="maxdb",wbe="hanadb",Ube="ingres",xbe="firstsql",Fbe="edb",$be="cache",Vbe="adabas",Gbe="firebird",Bbe="derby",kbe="filemaker",jbe="informix",Hbe="instantdb",Ybe="interbase",qbe="mariadb",Kbe="netezza",Wbe="pervasive",Qbe="pointbase",zbe="sqlite",Xbe="sybase",Jbe="teradata",Zbe="vertica",eCe="h2",tCe="coldfusion",rCe="cassandra",nCe="hbase",iCe="mongodb",aCe="redis",oCe="couchbase",sCe="couchdb",uCe="cosmosdb",cCe="dynamodb",lCe="neo4j",fCe="geode",_Ce="elasticsearch",dCe="memcached",pCe="cockroachdb",S3e=null,E3e=null,v3e=null,m3e=null,T3e=null,A3e=null,g3e=null,y3e=null,R3e=null,O3e=null,b3e=null,C3e=null,P3e=null,M3e=null,I3e=null,N3e=null,L3e=null,D3e=null,w3e=null,U3e=null,x3e=null,F3e=null,$3e=null,V3e=null,G3e=null,B3e=null,k3e=null,j3e=null,H3e=null,Y3e=null,q3e=null,K3e=null,W3e=null,Q3e=null,z3e=null,X3e=null,J3e=null,Z3e=null,eze=null,tze=null,rze=null,nze=null,ize=null,aze=null,oze=null,sze=null,uze=null,cze=lo([gbe,ybe,Rbe,Obe,bbe,Cbe,Pbe,Mbe,Ibe,Nbe,Lbe,Dbe,wbe,Ube,xbe,Fbe,$be,Vbe,Gbe,Bbe,kbe,jbe,Hbe,Ybe,qbe,Kbe,Wbe,Qbe,zbe,Xbe,Jbe,Zbe,eCe,tCe,rCe,nCe,iCe,aCe,oCe,sCe,uCe,cCe,lCe,fCe,_Ce,dCe,pCe]),hCe="all",SCe="each_quorum",ECe="quorum",vCe="local_quorum",mCe="one",TCe="two",ACe="three",gCe="local_one",yCe="any",RCe="serial",OCe="local_serial",lze=null,fze=null,_ze=null,dze=null,pze=null,hze=null,Sze=null,Eze=null,vze=null,mze=null,Tze=null,Aze=lo([hCe,SCe,ECe,vCe,mCe,TCe,ACe,gCe,yCe,RCe,OCe]),bCe="datasource",CCe="http",PCe="pubsub",MCe="timer",ICe="other",gze=null,yze=null,Rze=null,Oze=null,bze=null,Cze=lo([bCe,CCe,PCe,MCe,ICe]),NCe="insert",LCe="edit",DCe="delete",Pze=null,Mze=null,Ize=null,Nze=lo([NCe,LCe,DCe]),wCe="alibaba_cloud",UCe="aws",xCe="azure",FCe="gcp",Lze=null,Dze=null,wze=null,Uze=null,xze=lo([wCe,UCe,xCe,FCe]),$Ce="ip_tcp",VCe="ip_udp",GCe="ip",BCe="unix",kCe="pipe",jCe="inproc",HCe="other",Fze=null,$ze=null,Vze=null,Gze=null,Bze=null,kze=null,jze=null,Hze=lo([$Ce,VCe,GCe,BCe,kCe,jCe,HCe]),YCe="wifi",qCe="wired",KCe="cell",WCe="unavailable",QCe="unknown",Yze=null,qze=null,Kze=null,Wze=null,Qze=null,zze=lo([YCe,qCe,KCe,WCe,QCe]),zCe="gprs",XCe="edge",JCe="umts",ZCe="cdma",ePe="evdo_0",tPe="evdo_a",rPe="cdma2000_1xrtt",nPe="hsdpa",iPe="hsupa",aPe="hspa",oPe="iden",sPe="evdo_b",uPe="lte",cPe="ehrpd",lPe="hspap",fPe="gsm",_Pe="td_scdma",dPe="iwlan",pPe="nr",hPe="nrnsa",SPe="lte_ca",Xze=null,Jze=null,Zze=null,e4e=null,t4e=null,r4e=null,n4e=null,i4e=null,a4e=null,o4e=null,s4e=null,u4e=null,c4e=null,l4e=null,f4e=null,_4e=null,d4e=null,p4e=null,h4e=null,S4e=null,E4e=null,v4e=lo([zCe,XCe,JCe,ZCe,ePe,tPe,rPe,nPe,iPe,aPe,oPe,sPe,uPe,cPe,lPe,fPe,_Pe,dPe,pPe,hPe,SPe]),EPe="1.0",vPe="1.1",mPe="2.0",TPe="SPDY",APe="QUIC",m4e=null,T4e=null,A4e=null,g4e=null,y4e=null,R4e={HTTP_1_0:EPe,HTTP_1_1:vPe,HTTP_2_0:mPe,SPDY:TPe,QUIC:APe},gPe="queue",yPe="topic",O4e=null,b4e=null,C4e=lo([gPe,yPe]),RPe="receive",OPe="process",P4e=null,M4e=null,I4e=lo([RPe,OPe]),bPe=0,CPe=1,PPe=2,MPe=3,IPe=4,NPe=5,LPe=6,DPe=7,wPe=8,UPe=9,xPe=10,FPe=11,$Pe=12,VPe=13,GPe=14,BPe=15,kPe=16,N4e=null,L4e=null,D4e=null,w4e=null,U4e=null,x4e=null,F4e=null,$4e=null,V4e=null,G4e=null,B4e=null,k4e=null,j4e=null,H4e=null,Y4e=null,q4e=null,K4e=null,W4e={OK:bPe,CANCELLED:CPe,UNKNOWN:PPe,INVALID_ARGUMENT:MPe,DEADLINE_EXCEEDED:IPe,NOT_FOUND:NPe,ALREADY_EXISTS:LPe,PERMISSION_DENIED:DPe,RESOURCE_EXHAUSTED:wPe,FAILED_PRECONDITION:UPe,ABORTED:xPe,OUT_OF_RANGE:FPe,UNIMPLEMENTED:$Pe,INTERNAL:VPe,UNAVAILABLE:GPe,DATA_LOSS:BPe,UNAUTHENTICATED:kPe},jPe="SENT",HPe="RECEIVED",Q4e=null,z4e=null,X4e=lo([jPe,HPe]),$n;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})($n||($n={}));var WM;function YPe(){return WM||(WM=document.createElement("a")),WM}function QM(e,t){return t in e}function tu(e,t,r,n){var i=void 0,a=void 0;QM(r,t)&&typeof r[t]=="number"&&(i=r[t]);var u=n||$n.FETCH_START;if(QM(r,u)&&typeof r[u]=="number"&&(a=r[u]),i!==void 0&&a!==void 0&&i>=a)return e.addEvent(t,i),e}function hj(e,t){tu(e,$n.FETCH_START,t),tu(e,$n.DOMAIN_LOOKUP_START,t),tu(e,$n.DOMAIN_LOOKUP_END,t),tu(e,$n.CONNECT_START,t),QM(t,"name")&&t.name.startsWith("https:")&&tu(e,$n.SECURE_CONNECTION_START,t),tu(e,$n.CONNECT_END,t),tu(e,$n.REQUEST_START,t),tu(e,$n.RESPONSE_START,t),tu(e,$n.RESPONSE_END,t);var r=t[$n.ENCODED_BODY_SIZE];r!==void 0&&e.setAttribute(Tbe,r);var n=t[$n.DECODED_BODY_SIZE];n!==void 0&&r!==n&&e.setAttribute(Abe,n)}function qPe(e){return e.slice().sort(function(t,r){var n=t[$n.FETCH_START],i=r[$n.FETCH_START];return n>i?1:n<i?-1:0})}function Sj(){return typeof location<"u"?location.origin:void 0}function KPe(e,t,r,n,i,a){i===void 0&&(i=new WeakSet);var u=Zu(e);e=u.toString();var c=QPe(e,t,r,n,i,a);if(c.length===0)return{mainRequest:void 0};if(c.length===1)return{mainRequest:c[0]};var v=qPe(c);if(u.origin!==Sj()&&v.length>1){var _=v[0],h=WPe(v,_[$n.RESPONSE_END],r),L=_[$n.RESPONSE_END],W=h[$n.FETCH_START];return W<L&&(h=_,_=void 0),{corsPreFlightRequest:_,mainRequest:h}}else return{mainRequest:c[0]}}function WPe(e,t,r){for(var n=Xu(r),i=Xu(El(t)),a=e[1],u,c=e.length,v=1;v<c;v++){var _=e[v],h=Xu(El(_[$n.FETCH_START])),L=Xu(El(_[$n.RESPONSE_END])),W=n-L;h>=i&&(!u||W<u)&&(u=W,a=_)}return a}function QPe(e,t,r,n,i,a){var u=Xu(t),c=Xu(r),v=n.filter(function(_){var h=Xu(El(_[$n.FETCH_START])),L=Xu(El(_[$n.RESPONSE_END]));return _.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&_.name===e&&h>=u&&L<=c});return v.length>0&&(v=v.filter(function(_){return!i.has(_)})),v}function Zu(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var t=YPe();return t.href=e,t}function J4e(e){var t=Zu(e);return t.href}function zPe(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var r=JPe(e,t);if(t&&r.indexOf("@id")>0)return r;var n="";return e.parentNode&&(n+=zPe(e.parentNode,!1)),n+=r,n}function XPe(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var r=Array.from(e.parentNode.childNodes);return r=r.filter(function(n){var i=n.localName;return t.indexOf(n.nodeType)>=0&&i===e.localName}),r.length>=1?r.indexOf(e)+1:0}function JPe(e,t){var r=e.nodeType,n=XPe(e),i="";if(r===Node.ELEMENT_NODE){var a=e.getAttribute("id");if(t&&a)return'//*[@id="'+a+'"]';i=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)i="text()";else if(r===Node.COMMENT_NODE)i="comment()";else return"";return i&&n>1?"/"+i+"["+n+"]":"/"+i}function ZPe(e,t){var r=t||[];(typeof r=="string"||r instanceof RegExp)&&(r=[r]);var n=Zu(e);return n.origin===Sj()?!0:r.some(function(i){return oj(e,i)})}var ru;(function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"})(ru||(ru={}));var Ej="0.52.1",zM;(function(e){e.HTTP_STATUS_TEXT="http.status_text"})(zM||(zM={}));var eMe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),tMe=300,rMe=function(e){eMe(t,e);function t(r){r===void 0&&(r={});var n=e.call(this,"@opentelemetry/instrumentation-xml-http-request",Ej,r)||this;return n.component="xml-http-request",n.version=Ej,n.moduleName=n.component,n._tasksCount=0,n._xhrMem=new WeakMap,n._usedResources=new WeakSet,n}return t.prototype.init=function(){},t.prototype._addHeaders=function(r,n){var i=Zu(n).href;if(!ZPe(i,this.getConfig().propagateTraceHeaderCorsUrls)){var a={};R_.inject(_a.active(),a),Object.keys(a).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}var u={};R_.inject(_a.active(),u),Object.keys(u).forEach(function(c){r.setRequestHeader(c,String(u[c]))})},t.prototype._addChildSpan=function(r,n){var i=this;_a.with(ta.setSpan(_a.active(),r),function(){var a=i.tracer.startSpan("CORS Preflight",{startTime:n[$n.FETCH_START]});i.getConfig().ignoreNetworkEvents||hj(a,n),a.end(n[$n.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(r,n,i){if(typeof i=="string"){var a=Zu(i);n.status!==void 0&&r.setAttribute(vbe,n.status),n.statusText!==void 0&&r.setAttribute(zM.HTTP_STATUS_TEXT,n.statusText),r.setAttribute(Sbe,a.host),r.setAttribute(Ebe,a.protocol.replace(":","")),r.setAttribute(mbe,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(r,n){var i=this,a=this.getConfig().applyCustomAttributesOnSpan;typeof a=="function"&&bye(function(){return a(r,n)},function(u){!u||i._diag.error("applyCustomAttributesOnSpan",u)},!0)},t.prototype._addResourceObserver=function(r,n){var i=this._xhrMem.get(r);!i||typeof PerformanceObserver!="function"||typeof PerformanceResourceTiming!="function"||(i.createdResources={observer:new PerformanceObserver(function(a){var u=a.getEntries(),c=Zu(n);u.forEach(function(v){v.initiatorType==="xmlhttprequest"&&v.name===c.href&&i.createdResources&&i.createdResources.entries.push(v)})}),entries:[]},i.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(yh.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(r,n,i,a,u){if(!(!i||!a||!u||!r.createdResources)){var c=r.createdResources.entries;(!c||!c.length)&&(c=yh.getEntriesByType("resource"));var v=KPe(Zu(i).href,a,u,c,this._usedResources);if(v.mainRequest){var _=v.mainRequest;this._markResourceAsUsed(_);var h=v.corsPreFlightRequest;h&&(this._addChildSpan(n,h),this._markResourceAsUsed(h)),this.getConfig().ignoreNetworkEvents||hj(n,_)}}},t.prototype._cleanPreviousSpanInformation=function(r){var n=this._xhrMem.get(r);if(n){var i=n.callbackToRemoveEvents;i&&i(),this._xhrMem.delete(r)}},t.prototype._createSpan=function(r,n,i){var a;if(tRe(n,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var u=i.toUpperCase(),c=this.tracer.startSpan(u,{kind:PT.CLIENT,attributes:(a={},a[pbe]=i,a[hbe]=Zu(n).toString(),a)});return c.addEvent(ru.METHOD_OPEN),this._cleanPreviousSpanInformation(r),this._xhrMem.set(r,{span:c,spanUrl:n}),c},t.prototype._markResourceAsUsed=function(r){this._usedResources.add(r)},t.prototype._patchOpen=function(){var r=this;return function(n){var i=r;return function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var v=u[0],_=u[1];return i._createSpan(this,_,v),n.apply(this,u)}}},t.prototype._patchSend=function(){var r=this;function n(h,L,W,Te){var me=L.callbackToRemoveEvents;typeof me=="function"&&me();var Oe=L.span,He=L.spanUrl,qe=L.sendStartTime;Oe&&(r._findResourceAndAddNetworkEvents(L,Oe,He,qe,W),Oe.addEvent(h,Te),r._addFinalSpanAttributes(Oe,L,He),Oe.end(Te),r._tasksCount--),r._clearResources()}function i(h,L){var W=r._xhrMem.get(L);if(!!W){W.status=L.status,W.statusText=L.statusText,r._xhrMem.delete(L),W.span&&r._applyAttributesAfterXHR(W.span,L);var Te=AM(),me=Date.now();setTimeout(function(){n(h,W,Te,me)},tMe)}}function a(){i(ru.EVENT_ERROR,this)}function u(){i(ru.EVENT_ABORT,this)}function c(){i(ru.EVENT_TIMEOUT,this)}function v(){this.status<299?i(ru.EVENT_LOAD,this):i(ru.EVENT_ERROR,this)}function _(h){h.removeEventListener("abort",u),h.removeEventListener("error",a),h.removeEventListener("load",v),h.removeEventListener("timeout",c);var L=r._xhrMem.get(h);L&&(L.callbackToRemoveEvents=void 0)}return function(h){return function(){for(var W=this,Te=[],me=0;me<arguments.length;me++)Te[me]=arguments[me];var Oe=r._xhrMem.get(this);if(!Oe)return h.apply(this,Te);var He=Oe.span,qe=Oe.spanUrl;return He&&qe&&_a.with(ta.setSpan(_a.active(),He),function(){r._tasksCount++,Oe.sendStartTime=AM(),He.addEvent(ru.METHOD_SEND),W.addEventListener("abort",u),W.addEventListener("error",a),W.addEventListener("load",v),W.addEventListener("timeout",c),Oe.callbackToRemoveEvents=function(){_(W),Oe.createdResources&&Oe.createdResources.observer.disconnect()},r._addHeaders(W,qe),r._addResourceObserver(W,qe)}),h.apply(this,Te)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),rj(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),rj(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t}(Zye);const nMe="https?://api-gateway.[a-zA-Z]+.icanbwell.com",vj=new RegExp(`^(?!${nMe})`);function Z4e(e){return vj.test(e)}function iMe(e){return I9({node:()=>null,browser:()=>new rMe({ignoreUrls:[vj],propagateTraceHeaderCorsUrls:[e.graphQL.apiUrl,e.graphQL.unauthApiUrl]})})}var bs=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},XM=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},I_,N_,Ch,VT,mj,Tj,Aj,gj;class aMe{constructor(t){I_.add(this),N_.set(this,void 0),Ch.set(this,void 0),VT.set(this,void 0),XM(this,N_,bs(this,I_,"m",mj).call(this,t),"f"),XM(this,Ch,bs(this,I_,"m",Tj).call(this),"f"),XM(this,VT,bs(this,I_,"m",Aj).call(this,t),"f"),this.fetchInstrumentation=bs(this,I_,"m",gj).call(this,t)}loggerProvider(){return bs(this,VT,"f")}resource(){return bs(this,N_,"f")}tracerProvider(){return bs(this,Ch,"f")}}N_=new WeakMap,Ch=new WeakMap,VT=new WeakMap,I_=new WeakSet,mj=function(t){var r,n,i,a;return ST.default().merge(new ST({[yge]:"bwell-sdk-typescript",[Oge]:$9(),[bge]:"typescript",[Rge]:"com.bwell",[gge]:t.context.env,"client.key":t.context.clientKey,"user.id":(n=(r=t.context.user)===null||r===void 0?void 0:r.clientFhirPersonId)!==null&&n!==void 0?n:"","user.bwell-person-id":(a=(i=t.context.user)===null||i===void 0?void 0:i.bwellFhirPersonId)!==null&&a!==void 0?a:""}))},Tj=function(){const t=new ZTe({resource:bs(this,N_,"f")});return t.register({propagator:new Wne}),t},Aj=function(t){const r=new rpe({resource:bs(this,N_,"f")}),n=new xae({url:`${t.telemetry.collectorUrl}/otlp-http/v1/logs`}),i=new _pe(n);return r.addLogRecordProcessor(i),r},gj=function(t){const r=iMe(t);return r===null?null:(r.setTracerProvider(bs(this,Ch,"f")),r)};var gl=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},JM=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},qi=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},L_,ec,GT,Ph,jo,ZM,yj,Rj,eI;class Oj{constructor(t,r,n,i){L_.add(this),GT.set(this,void 0),Ph.set(this,void 0),jo.set(this,void 0),JM(this,GT,r,"f"),JM(this,Ph,n.getLogger("TokenManager"),"f"),JM(this,jo,i,"f")}static initialize(t,r){return gl(this,arguments,void 0,function*(n,i,a=new ji,u=new eG){const c=qi(ec,ec,"m",ZM).call(ec,n.accessToken);if(c.failure())return c.intoFailure();const v=new ec(Object.assign(Object.assign({},n),{expiration:c.data()}),i,a,u);try{yield Promise.all([u.set("idToken",n.idToken),u.set("clientKey",n.clientKey),u.set("accessToken",n.accessToken),u.set("refreshToken",n.refreshToken),u.set("expiration",c.data().toISOString())])}catch{return Kt.failure(new e_("Failed to set tokens in token storage"))}return Kt.success(v)})}getAccessToken(){return gl(this,void 0,void 0,function*(){if(yield qi(this,L_,"m",Rj).call(this)){const n=yield qi(this,L_,"m",eI).call(this);if(n.failure())return n.intoFailure()}const r=yield qi(this,jo,"f").get("accessToken");return ka(r)?Kt.failure(new e_("accessToken not found in token storage")):Kt.success(r)})}getIdToken(){return gl(this,void 0,void 0,function*(){return yield qi(this,jo,"f").get("idToken")})}refreshAccessToken(){return gl(this,void 0,void 0,function*(){return qi(this,L_,"m",eI).call(this)})}}ec=Oj,GT=new WeakMap,Ph=new WeakMap,jo=new WeakMap,L_=new WeakSet,ZM=function(t){try{const r=D9(t);return Kt.success(new Date(r))}catch(r){if(!Bi.isBwellError(r))throw r;return Kt.failure(r)}},yj=function(){return gl(this,void 0,void 0,function*(){const t=yield qi(this,jo,"f").get("expiration");if(ka(t))throw new Error("expiration not found in token storage");return new Date(t)})},Rj=function(){return gl(this,void 0,void 0,function*(){const r=(yield qi(this,L_,"m",yj).call(this)).getTime(),n=Date.now();return r<n})},eI=function(){return gl(this,void 0,void 0,function*(){qi(this,Ph,"f").verbose("refreshing access token...");const[t,r]=yield Promise.all([qi(this,jo,"f").get("refreshToken"),qi(this,jo,"f").get("clientKey")]);if(ka(t)||ka(r))return Kt.failure(new e_("refreshToken or clientKey not found in token storage"));const n=yield qi(this,GT,"f").refreshAccessToken({refreshToken:t,clientKey:r});if(qi(this,Ph,"f").verbose("refreshing access token complete"),n.failure())return n.intoFailure();const i=n.data();yield qi(this,jo,"f").set("accessToken",i.accessToken),yield qi(this,jo,"f").set("idToken",i.idToken);const a=qi(ec,ec,"m",ZM).call(ec,i.accessToken);return a.failure()?a.intoFailure():(yield qi(this,jo,"f").set("expiration",a.data().toISOString()),Kt.success(null))})};var Mh=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function c(h){try{_(n.next(h))}catch(L){u(L)}}function v(h){try{_(n.throw(h))}catch(L){u(L)}}function _(h){h.done?a(h.value):i(h.value).then(c,v)}_((n=n.apply(e,t||[])).next())})},Ha=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},qt=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},li,D_,Ya,Ih,tI,rI,nI,iI,Cs,Nh,yl,Rl,BT,w_,aI,Ho,oI,sI,uI,bj;class oMe{constructor(t){li.add(this),D_.set(this,void 0),Ya.set(this,void 0),Ih.set(this,void 0),tI.set(this,new JZ),rI.set(this,new jre),nI.set(this,new Yre),iI.set(this,new Jre),Cs.set(this,void 0),Nh.set(this,void 0),yl.set(this,void 0),Rl.set(this,void 0),BT.set(this,void 0),w_.set(this,void 0),Ha(this,D_,t,"f"),Ha(this,Ya,Gm.initialize(qt(this,D_,"f")).data(),"f"),Ha(this,Ih,qt(this,li,"m",uI).call(this),"f"),Ha(this,Cs,qt(this,li,"m",sI).call(this),"f"),Ha(this,yl,qt(this,Cs,"f").getLogger("BWellSDK"),"f"),Ha(this,Rl,qt(this,nI,"f").createIdentityManager(qt(this,Ya,"f"),qt(this,Cs,"f")),"f"),Ha(this,BT,new eee(qt(this,Rl,"f")),"f")}initialize(){return Mh(this,void 0,void 0,function*(){qt(this,yl,"f").verbose("initializing SDKConfig...");const t=yield qt(this,BT,"f").initialize(qt(this,D_,"f"));return t.failure()?t.intoFailure():(qt(this,yl,"f").verbose("SDK Config initialized successfully"),Ha(this,Ya,t.data(),"f"),qt(this,li,"m",oI).call(this),Kt.success(null))})}authenticate(t){return Mh(this,void 0,void 0,function*(){const n=yield qt(this,iI,"f").createAuthStrategy(qt(this,Ya,"f"),qt(this,Rl,"f"),t,qt(this,Cs,"f")).authenticate(t);if(n.failure())return n.intoFailure();const i=n.data();return qt(this,li,"m",aI).call(this,i)})}setAuthTokens(t){return Mh(this,void 0,void 0,function*(){const r=yield qt(this,li,"m",aI).call(this,t);if(r.failure())return r.intoFailure();if(qt(this,w_,"f")===void 0)throw new Error("TokenManager not set");const n=yield qt(this,w_,"f").refreshAccessToken();return n.failure()?n.intoFailure():Kt.success(null)})}createGuestAccessToken(){return Mh(this,void 0,void 0,function*(){return qt(this,Rl,"f").createGuestAccessToken({clientKey:qt(this,Ya,"f").context.clientKey})})}get health(){return qt(this,li,"m",Ho).call(this).health}get healthSpace(){return qt(this,li,"m",Ho).call(this).healthSpace}get user(){return qt(this,li,"m",Ho).call(this).user}get connection(){return qt(this,li,"m",Ho).call(this).connection}get activity(){return qt(this,li,"m",Ho).call(this).activity}get device(){return qt(this,li,"m",Ho).call(this).device}get event(){return qt(this,li,"m",Ho).call(this).event}get search(){return qt(this,li,"m",Ho).call(this).search}get language(){return qt(this,li,"m",Ho).call(this).language}get questionnaire(){return qt(this,li,"m",Ho).call(this).questionnaire}}D_=new WeakMap,Ya=new WeakMap,Ih=new WeakMap,tI=new WeakMap,rI=new WeakMap,nI=new WeakMap,iI=new WeakMap,Cs=new WeakMap,Nh=new WeakMap,yl=new WeakMap,Rl=new WeakMap,BT=new WeakMap,w_=new WeakMap,li=new WeakSet,aI=function(t){return Mh(this,void 0,void 0,function*(){try{const i=x9(t.idToken);Fn(i)&&qt(this,Ya,"f").setContextUser(i)}catch(i){if(Bi.isBwellError(i))return Kt.failure(i);throw i}const r=Object.assign(Object.assign({},t),{clientKey:qt(this,Ya,"f").context.clientKey}),n=yield Oj.initialize(r,qt(this,Rl,"f"),qt(this,Cs,"f"),qt(this,D_,"f").tokenStorage);return n.failure()?n.intoFailure():(Ha(this,w_,n.data(),"f"),qt(this,li,"m",oI).call(this),Ha(this,Nh,qt(this,li,"m",bj).call(this,qt(this,w_,"f")),"f"),Kt.success(null))})},Ho=function(){if(qt(this,Nh,"f")===void 0)throw new Error("Unintialized");return qt(this,Nh,"f")},oI=function(){qt(this,yl,"f").verbose("reinitializing SDK dependencies"),Ha(this,Ih,qt(this,li,"m",uI).call(this),"f"),Ha(this,Cs,qt(this,li,"m",sI).call(this),"f"),Ha(this,yl,qt(this,Cs,"f").getLogger("BwellSDK"),"f")},sI=function(){return qt(this,tI,"f").createLogProvider(qt(this,Ya,"f"),qt(this,Ih,"f"))},uI=function(){if(!!qt(this,Ya,"f").telemetry.enabled)return new aMe(qt(this,Ya,"f"))},bj=function(t){return qt(this,rI,"f").createApiProvider(qt(this,Ya,"f"),t,qt(this,Cs,"f"))};const Cj="orchestrator:bwell-sdk";var kT;(function(e){e.one="1.0.0"})(kT||(kT={}));const sMe={id:Cj,dependencies:{featureServices:{[Wn]:vi.one,[Am]:Kp.one,[js]:Mu.one}},create:({featureServices:e})=>{const t=e[Wn],r=e[Am],n=e[js],{key:i}=t.getClientContext(),a=new oMe({clientKey:i});return t.getStore().subscribe(()=>{var u;if((u=t.getUser().tokenData)===null||u===void 0?void 0:u.idToken)try{a.language.setLanguage(r.resolvedLanguage),r.onChangeLanguage(_=>{const h=a.language.getLanguage();_!==h&&a.language.setLanguage(_)})}catch(_){n.error(_,"embeddable-core: Error occurred when switching language in SDK")}}),{[kT.one]:()=>({featureService:a})}}},cI={apiClient:d,theme:H,analytics:V,auth:A,logging:y,state:T,navigation:m,featureFlags:D,translation:P,identityUtils:g,nativeBridge:$,globalEventEmitter:G,rebootController:x,bwellSdk:Z},e6e=Object.keys(cI).reduce((e,t)=>{const{id:r,version:n}=cI[t];return Object.assign(Object.assign({},e),{[t]:{id:r,version:n}})},{});var er=cI,uMe=p(8561),cMe=p(295),Pj=p.n(cMe),lMe=p(2424),Mj=p.n(lMe);class fMe{constructor(t){this.providedExternals=t;for(const[r,n]of Object.entries(t))if(!Mj()(n))throw new Error(`The provided version ${JSON.stringify(n)} for the external ${JSON.stringify(r)} is invalid.`)}validate(t){for(const[r,n]of Object.entries(t)){const i=this.providedExternals[r];if(!i)throw new Error(`The external dependency ${JSON.stringify(r)} is not provided.`);if(!Pj()(i,n))throw new Error(`The external dependency ${JSON.stringify(r)} in the required version range ${JSON.stringify(n)} is not satisfied. The provided version is ${JSON.stringify(i)}.`)}}}class _Me{constructor(t,r,n){this.promise=t,this.value=r,this.error=n,t.then(i=>this.value=i).catch(i=>this.error=i)}}function dMe(e,t,r){let n=`The Feature App module at the url ${JSON.stringify(e)} ${t?`with the module type ${JSON.stringify(t)}`:"with no specific module type"} is invalid. A Feature App module must have a Feature App definition as default export. A Feature App definition is an object with at least a \`create\` method.`;return r&&r.length>1&&!t&&(n+=" Hint: The provided module loader expects an optional second parameter `moduleType`. It might need to be provided for this Feature App."),n}function pMe(e){return typeof e!="object"||!e?!1:typeof e.create=="function"}function hMe(e){return typeof e!="object"||!e?!1:pMe(e.default)}class SMe{constructor(t,r={}){this.featureServiceRegistry=t,this.options=r,this.asyncFeatureAppDefinitions=new Map,this.featureAppDefinitionsWithRegisteredOwnFeatureServices=new WeakSet,this.featureAppRetainers=new Map,this.logger=r.logger||console}getAsyncFeatureAppDefinition(t,r){const n=`${t}${r}`;let i=this.asyncFeatureAppDefinitions.get(n);return i||(i=this.createAsyncFeatureAppDefinition(t,r),this.asyncFeatureAppDefinitions.set(n,i)),i}createFeatureAppScope(t,r,n={}){const i=this.getFeatureAppRetainer(t,r,n);let a=!1;return{featureApp:i.featureApp,release:()=>{a?this.logger.warn(`The Feature App with the ID ${JSON.stringify(t)} has already been released for this scope.`):(a=!0,i.release())}}}async preloadFeatureApp(t,r){await this.getAsyncFeatureAppDefinition(t,r).promise}createAsyncFeatureAppDefinition(t,r){const{moduleLoader:n}=this.options;if(!n)throw new Error("No module loader provided.");return new _Me(n(t,r).then(i=>{if(!hMe(i))throw new Error(dMe(t,r,this.options.moduleLoader));return this.logger.info(`The Feature App module at the url ${JSON.stringify(t)} has been successfully loaded.`),i.default}))}registerOwnFeatureServices(t,r){this.featureAppDefinitionsWithRegisteredOwnFeatureServices.has(r)||(r.ownFeatureServiceDefinitions&&this.featureServiceRegistry.registerFeatureServices(r.ownFeatureServiceDefinitions,t),this.featureAppDefinitionsWithRegisteredOwnFeatureServices.add(r))}getFeatureAppRetainer(t,r,n){let i=this.featureAppRetainers.get(t);return i?i.retain():(this.registerOwnFeatureServices(t,r),i=this.createFeatureAppRetainer(r,t,n)),i}createFeatureAppRetainer(t,r,n){var i,a;this.validateExternals(t);const{featureAppName:u,baseUrl:c,beforeCreate:v,config:_,done:h}=n,L=this.featureServiceRegistry.bindFeatureServices(t,r,u);try{(a=(i=this.options).onBind)===null||a===void 0||a.call(i,{featureAppDefinition:t,featureAppId:r,featureAppName:u})}catch(Te){this.logger.error("Failed to execute onBind callback.",Te)}const W={baseUrl:c,config:_,featureAppId:r,featureAppName:u,featureServices:L.featureServices,done:h};try{v?.(W);const Te=t.create(W);this.logger.info(`The Feature App with the ID ${JSON.stringify(r)} has been successfully created.`);let me=1;const Oe={featureApp:Te,retain:()=>{me+=1},release:()=>{me-=1,me===0&&(this.featureAppRetainers.delete(r),L.unbind())}};return this.featureAppRetainers.set(r,Oe),Oe}catch(Te){throw L.unbind(),Te}}validateExternals(t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=t;n&&n.externals&&r.validate(n.externals)}}var EMe=p(5725),vMe=p.n(EMe);function mMe(e,t,r,n,i){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in the unsupported version range ${JSON.stringify(n)} could not be bound to consumer ${JSON.stringify(r)}. The supported versions are ${JSON.stringify(i)}.`}function TMe(e,t,r){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it defines the invalid version ${JSON.stringify(r)}.`}function AMe(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} in an invalid version could not be bound to consumer ${JSON.stringify(r)}.`}function gMe(e,t,r){return`The ${e?"optional":"required"} Feature Service ${JSON.stringify(t)} is not registered and therefore could not be bound to consumer ${JSON.stringify(r)}.`}function yMe(e,t){return`The Feature Service ${JSON.stringify(e)} could not be registered by registrant ${JSON.stringify(t)} because it returned undefined.`}function RMe(e,t){return`The Feature Service ${JSON.stringify(e)} has been successfully registered by registrant ${JSON.stringify(t)}.`}function OMe(e,t){return`The already registered Feature Service ${JSON.stringify(e)} could not be re-registered by registrant ${JSON.stringify(t)}.`}function bMe(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully bound to consumer ${JSON.stringify(t)}.`}function CMe(e){return`All required Feature Services are already bound to consumer ${JSON.stringify(e)}.`}function PMe(e,t){return`The required Feature Service ${JSON.stringify(e)} could not be unbound from consumer ${JSON.stringify(t)}.`}function MMe(e,t){return`The required Feature Service ${JSON.stringify(e)} has been successfully unbound from consumer ${JSON.stringify(t)}.`}function IMe(e){return`All required Feature Services are already unbound from consumer ${JSON.stringify(e)}.`}var NMe=p(2702),LMe=p.n(NMe);function DMe(e){return t=>[e,t]}function wMe(e,t){return Object.keys(t).map(DMe(e))}function UMe(e){return Array.from(e.keys()).reduce((t,r)=>{const n=e.get(r);if(!n)return t;const i=wMe(r,n);return[...t,...i]},[])}function xMe(e){const t=Array.from(e.keys()),r=UMe(e),n=LMe()(r);return n.push(...t.filter(i=>e.has(i)&&n.indexOf(i)===-1)),n.reverse()}function Ij({dependencies:e,optionalDependencies:t}){return Object.assign(Object.assign({},e&&e.featureServices),t&&t.featureServices)}function FMe(e){const t=new Map;for(const r of e)t.set(r.id,Ij(r));return t}function $Me({optionalDependencies:e},t){return Boolean(e&&e.featureServices&&e.featureServices.hasOwnProperty(t))}function VMe(e){const t=new Map;for(const r of e)t.set(r.id,r);return t}class GMe{constructor(t={}){this.options=t,this.sharedFeatureServices=new Map,this.consumerIds=new Set,this.logger=t.logger||console}registerFeatureServices(t,r){const n=VMe(t),i=FMe(t);for(const a of xMe(i))this.registerFeatureService(n,a,r)}bindFeatureServices(t,r,n){if(this.consumerIds.has(r))throw new Error(CMe(r));const i=new Map,a=Object.create(null),u=Ij(t);for(const _ of Object.keys(u)){const h=$Me(t,_),L=u[_],W=this.bindFeatureService(_,r,n,L,{optional:h});!W||(this.logger.info(bMe(_,r)),i.set(_,W),a[_]=W.featureService)}this.consumerIds.add(r);let c=!1;return{featureServices:a,unbind:()=>{if(c)throw new Error(IMe(r));c=!0,this.consumerIds.delete(r);for(const[_,h]of i.entries())try{h.unbind&&h.unbind(),this.logger.info(MMe(_,r))}catch(L){this.logger.error(PMe(_,r),L)}}}}registerFeatureService(t,r,n){const i=t.get(r);if(!i)return;if(this.sharedFeatureServices.has(r)){this.logger.warn(OMe(r,n));return}this.validateExternals(i);const{featureServices:a}=this.bindFeatureServices(i,r),u=i.create({featureServices:a});u?(this.validateFeatureServiceVersions(u,r,n),this.sharedFeatureServices.set(r,u),this.logger.info(RMe(r,n))):this.logger.info(yMe(r,n))}bindFeatureService(t,r,n,i,{optional:a}){const u=i&&vMe()(i);if(!u){const W=AMe(a,t,r);if(a){this.logger.info(W);return}throw new Error(W)}const c=`^${u.version}`,v=this.sharedFeatureServices.get(t);if(!v){const W=gMe(a,t,r);if(a){this.logger.info(W);return}throw new Error(W)}const _=Object.keys(v),h=_.find(W=>Pj()(W,c)),L=h?v[h]:void 0;if(!L){const W=mMe(a,t,r,c,_);if(a){this.logger.info(W);return}throw new Error(W)}return L(r,n)}validateExternals(t){const{externalsValidator:r}=this.options;if(!r)return;const{dependencies:n}=t;n&&n.externals&&r.validate(n.externals)}validateFeatureServiceVersions(t,r,n){for(const i of Object.keys(t))if(!Mj()(i))throw new Error(TMe(r,n,i))}}function Nj(e,t={}){const{featureServiceDefinitions:r,featureServiceDependencies:n,providedExternals:i,moduleLoader:a,logger:u,onBind:c}=t;let v;i&&(v=new fMe(i));const _=new GMe({externalsValidator:v,logger:u}),h={dependencies:{featureServices:n}};r&&_.registerFeatureServices(r,e);const L=new SMe(_,{externalsValidator:v,moduleLoader:a,logger:u,onBind:c}),{featureServices:W}=_.bindFeatureServices(h,e);return{featureAppManager:L,featureServiceRegistry:_,featureServices:W}}/**
8534
8534
  * @license
8535
8535
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8536
8536
  * This code may only be used under the BSD style license found at
@@ -8554,7 +8554,7 @@ ${la}`,Qte=`
8554
8554
  * Code distributed by Google as part of the polymer project is also
8555
8555
  * subject to an additional IP rights grant found at
8556
8556
  * http://polymer.github.io/PATENTS.txt
8557
- */const nu=`{{lit-${String(Math.random()).slice(2)}}}`,Dj=`<!--${nu}-->`,wj=new RegExp(`${nu}|${Dj}`),Lh="$lit$";class Uj{constructor(t,r){this.parts=[],this.element=r;const n=[],i=[],a=document.createTreeWalker(r.content,133,null,!1);let u=0,c=-1,v=0;const{strings:_,values:{length:h}}=t;for(;v<h;){const L=a.nextNode();if(L===null){a.currentNode=i.pop();continue}if(c++,L.nodeType===1){if(L.hasAttributes()){const W=L.attributes,{length:Te}=W;let me=0;for(let Oe=0;Oe<Te;Oe++)xj(W[Oe].name,Lh)&&me++;for(;me-- >0;){const Oe=_[v],He=fI.exec(Oe)[2],qe=He.toLowerCase()+Lh,We=L.getAttribute(qe);L.removeAttribute(qe);const ct=We.split(wj);this.parts.push({type:"attribute",index:c,name:He,strings:ct}),v+=ct.length-1}}L.tagName==="TEMPLATE"&&(i.push(L),a.currentNode=L.content)}else if(L.nodeType===3){const W=L.data;if(W.indexOf(nu)>=0){const Te=L.parentNode,me=W.split(wj),Oe=me.length-1;for(let He=0;He<Oe;He++){let qe,We=me[He];if(We==="")qe=ec();else{const ct=fI.exec(We);ct!==null&&xj(ct[2],Lh)&&(We=We.slice(0,ct.index)+ct[1]+ct[2].slice(0,-Lh.length)+ct[3]),qe=document.createTextNode(We)}Te.insertBefore(qe,L),this.parts.push({type:"node",index:++c})}me[Oe]===""?(Te.insertBefore(ec(),L),n.push(L)):L.data=me[Oe],v+=Oe}}else if(L.nodeType===8)if(L.data===nu){const W=L.parentNode;(L.previousSibling===null||c===u)&&(c++,W.insertBefore(ec(),L)),u=c,this.parts.push({type:"node",index:c}),L.nextSibling===null?L.data="":(n.push(L),c--),v++}else{let W=-1;for(;(W=L.data.indexOf(nu,W+1))!==-1;)this.parts.push({type:"node",index:-1}),v++}}for(const L of n)L.parentNode.removeChild(L)}}const xj=(e,t)=>{const r=e.length-t.length;return r>=0&&e.slice(r)===t},Fj=e=>e.index!==-1,ec=()=>document.createComment(""),fI=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;/**
8557
+ */const nu=`{{lit-${String(Math.random()).slice(2)}}}`,Dj=`<!--${nu}-->`,wj=new RegExp(`${nu}|${Dj}`),Lh="$lit$";class Uj{constructor(t,r){this.parts=[],this.element=r;const n=[],i=[],a=document.createTreeWalker(r.content,133,null,!1);let u=0,c=-1,v=0;const{strings:_,values:{length:h}}=t;for(;v<h;){const L=a.nextNode();if(L===null){a.currentNode=i.pop();continue}if(c++,L.nodeType===1){if(L.hasAttributes()){const W=L.attributes,{length:Te}=W;let me=0;for(let Oe=0;Oe<Te;Oe++)xj(W[Oe].name,Lh)&&me++;for(;me-- >0;){const Oe=_[v],He=fI.exec(Oe)[2],qe=He.toLowerCase()+Lh,We=L.getAttribute(qe);L.removeAttribute(qe);const ct=We.split(wj);this.parts.push({type:"attribute",index:c,name:He,strings:ct}),v+=ct.length-1}}L.tagName==="TEMPLATE"&&(i.push(L),a.currentNode=L.content)}else if(L.nodeType===3){const W=L.data;if(W.indexOf(nu)>=0){const Te=L.parentNode,me=W.split(wj),Oe=me.length-1;for(let He=0;He<Oe;He++){let qe,We=me[He];if(We==="")qe=tc();else{const ct=fI.exec(We);ct!==null&&xj(ct[2],Lh)&&(We=We.slice(0,ct.index)+ct[1]+ct[2].slice(0,-Lh.length)+ct[3]),qe=document.createTextNode(We)}Te.insertBefore(qe,L),this.parts.push({type:"node",index:++c})}me[Oe]===""?(Te.insertBefore(tc(),L),n.push(L)):L.data=me[Oe],v+=Oe}}else if(L.nodeType===8)if(L.data===nu){const W=L.parentNode;(L.previousSibling===null||c===u)&&(c++,W.insertBefore(tc(),L)),u=c,this.parts.push({type:"node",index:c}),L.nextSibling===null?L.data="":(n.push(L),c--),v++}else{let W=-1;for(;(W=L.data.indexOf(nu,W+1))!==-1;)this.parts.push({type:"node",index:-1}),v++}}for(const L of n)L.parentNode.removeChild(L)}}const xj=(e,t)=>{const r=e.length-t.length;return r>=0&&e.slice(r)===t},Fj=e=>e.index!==-1,tc=()=>document.createComment(""),fI=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;/**
8558
8558
  * @license
8559
8559
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8560
8560
  * This code may only be used under the BSD style license found at
@@ -8626,7 +8626,7 @@ ${la}`,Qte=`
8626
8626
  * Code distributed by Google as part of the polymer project is also
8627
8627
  * subject to an additional IP rights grant found at
8628
8628
  * http://polymer.github.io/PATENTS.txt
8629
- */const jT=e=>e===null||!(typeof e=="object"||typeof e=="function"),pI=e=>Array.isArray(e)||!!(e&&e[Symbol.iterator]);class Hj{constructor(t,r,n){this.dirty=!0,this.element=t,this.name=r,this.strings=n,this.parts=[];for(let i=0;i<n.length-1;i++)this.parts[i]=this._createPart()}_createPart(){return new hI(this)}_getValue(){const t=this.strings,r=t.length-1,n=this.parts;if(r===1&&t[0]===""&&t[1]===""){const a=n[0].value;if(typeof a=="symbol")return String(a);if(typeof a=="string"||!pI(a))return a}let i="";for(let a=0;a<r;a++){i+=t[a];const u=n[a];if(u!==void 0){const c=u.value;if(jT(c)||!pI(c))i+=typeof c=="string"?c:String(c);else for(const v of c)i+=typeof v=="string"?v:String(v)}}return i+=t[r],i}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class hI{constructor(t){this.value=void 0,this.committer=t}setValue(t){t!==Yo&&(!jT(t)||t!==this.value)&&(this.value=t,wh(t)||(this.committer.dirty=!0))}commit(){for(;wh(this.value);){const t=this.value;this.value=Yo,t(this)}this.value!==Yo&&this.committer.commit()}}class HT{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(ec()),this.endNode=t.appendChild(ec())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=ec()),t.__insert(this.endNode=ec())}insertAfterPart(t){t.__insert(this.startNode=ec()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(this.startNode.parentNode===null)return;for(;wh(this.__pendingValue);){const r=this.__pendingValue;this.__pendingValue=Yo,r(this)}const t=this.__pendingValue;t!==Yo&&(jT(t)?t!==this.value&&this.__commitText(t):t instanceof jj?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):pI(t)?this.__commitIterable(t):t===Bj?(this.value=Bj,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const r=this.startNode.nextSibling;t=t??"";const n=typeof t=="string"?t:String(t);r===this.endNode.previousSibling&&r.nodeType===3?r.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){const r=this.options.templateFactory(t);if(this.value instanceof dI&&this.value.template===r)this.value.update(t.values);else{const n=new dI(r,t.processor,this.options),i=n._clone();n.update(t.values),this.__commitNode(i),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const r=this.value;let n=0,i;for(const a of t)i=r[n],i===void 0&&(i=new HT(this.options),r.push(i),n===0?i.appendIntoPart(this):i.insertAfterPart(r[n-1])),i.setValue(a),i.commit(),n++;n<r.length&&(r.length=n,this.clear(i&&i.endNode))}clear(t=this.startNode){lI(this.startNode.parentNode,t.nextSibling,this.endNode)}}class HMe{constructor(t,r,n){if(this.value=void 0,this.__pendingValue=void 0,n.length!==2||n[0]!==""||n[1]!=="")throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=r,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;wh(this.__pendingValue);){const r=this.__pendingValue;this.__pendingValue=Yo,r(this)}if(this.__pendingValue===Yo)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=Yo}}class YMe extends Hj{constructor(t,r,n){super(t,r,n),this.single=n.length===2&&n[0]===""&&n[1]===""}_createPart(){return new qMe(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class qMe extends hI{}let Yj=!1;(()=>{try{const e={get capture(){return Yj=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{}})();class KMe{constructor(t,r,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=r,this.eventContext=n,this.__boundHandleEvent=i=>this.handleEvent(i)}setValue(t){this.__pendingValue=t}commit(){for(;wh(this.__pendingValue);){const a=this.__pendingValue;this.__pendingValue=Yo,a(this)}if(this.__pendingValue===Yo)return;const t=this.__pendingValue,r=this.value,n=t==null||r!=null&&(t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive),i=t!=null&&(r==null||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=WMe(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=Yo}handleEvent(t){typeof this.value=="function"?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const WMe=e=>e&&(Yj?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);/**
8629
+ */const jT=e=>e===null||!(typeof e=="object"||typeof e=="function"),pI=e=>Array.isArray(e)||!!(e&&e[Symbol.iterator]);class Hj{constructor(t,r,n){this.dirty=!0,this.element=t,this.name=r,this.strings=n,this.parts=[];for(let i=0;i<n.length-1;i++)this.parts[i]=this._createPart()}_createPart(){return new hI(this)}_getValue(){const t=this.strings,r=t.length-1,n=this.parts;if(r===1&&t[0]===""&&t[1]===""){const a=n[0].value;if(typeof a=="symbol")return String(a);if(typeof a=="string"||!pI(a))return a}let i="";for(let a=0;a<r;a++){i+=t[a];const u=n[a];if(u!==void 0){const c=u.value;if(jT(c)||!pI(c))i+=typeof c=="string"?c:String(c);else for(const v of c)i+=typeof v=="string"?v:String(v)}}return i+=t[r],i}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class hI{constructor(t){this.value=void 0,this.committer=t}setValue(t){t!==Yo&&(!jT(t)||t!==this.value)&&(this.value=t,wh(t)||(this.committer.dirty=!0))}commit(){for(;wh(this.value);){const t=this.value;this.value=Yo,t(this)}this.value!==Yo&&this.committer.commit()}}class HT{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(tc()),this.endNode=t.appendChild(tc())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=tc()),t.__insert(this.endNode=tc())}insertAfterPart(t){t.__insert(this.startNode=tc()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(this.startNode.parentNode===null)return;for(;wh(this.__pendingValue);){const r=this.__pendingValue;this.__pendingValue=Yo,r(this)}const t=this.__pendingValue;t!==Yo&&(jT(t)?t!==this.value&&this.__commitText(t):t instanceof jj?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):pI(t)?this.__commitIterable(t):t===Bj?(this.value=Bj,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const r=this.startNode.nextSibling;t=t??"";const n=typeof t=="string"?t:String(t);r===this.endNode.previousSibling&&r.nodeType===3?r.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}__commitTemplateResult(t){const r=this.options.templateFactory(t);if(this.value instanceof dI&&this.value.template===r)this.value.update(t.values);else{const n=new dI(r,t.processor,this.options),i=n._clone();n.update(t.values),this.__commitNode(i),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const r=this.value;let n=0,i;for(const a of t)i=r[n],i===void 0&&(i=new HT(this.options),r.push(i),n===0?i.appendIntoPart(this):i.insertAfterPart(r[n-1])),i.setValue(a),i.commit(),n++;n<r.length&&(r.length=n,this.clear(i&&i.endNode))}clear(t=this.startNode){lI(this.startNode.parentNode,t.nextSibling,this.endNode)}}class HMe{constructor(t,r,n){if(this.value=void 0,this.__pendingValue=void 0,n.length!==2||n[0]!==""||n[1]!=="")throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=r,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;wh(this.__pendingValue);){const r=this.__pendingValue;this.__pendingValue=Yo,r(this)}if(this.__pendingValue===Yo)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=Yo}}class YMe extends Hj{constructor(t,r,n){super(t,r,n),this.single=n.length===2&&n[0]===""&&n[1]===""}_createPart(){return new qMe(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class qMe extends hI{}let Yj=!1;(()=>{try{const e={get capture(){return Yj=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{}})();class KMe{constructor(t,r,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=r,this.eventContext=n,this.__boundHandleEvent=i=>this.handleEvent(i)}setValue(t){this.__pendingValue=t}commit(){for(;wh(this.__pendingValue);){const a=this.__pendingValue;this.__pendingValue=Yo,a(this)}if(this.__pendingValue===Yo)return;const t=this.__pendingValue,r=this.value,n=t==null||r!=null&&(t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive),i=t!=null&&(r==null||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=WMe(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=Yo}handleEvent(t){typeof this.value=="function"?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const WMe=e=>e&&(Yj?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);/**
8630
8630
  * @license
8631
8631
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8632
8632
  * This code may only be used under the BSD style license found at
@@ -8650,7 +8650,7 @@ ${la}`,Qte=`
8650
8650
  * Code distributed by Google as part of the polymer project is also
8651
8651
  * subject to an additional IP rights grant found at
8652
8652
  * http://polymer.github.io/PATENTS.txt
8653
- */const w_=new WeakMap,zMe=(e,t,r)=>{let n=w_.get(t);n===void 0&&(lI(t,t.firstChild),w_.set(t,n=new HT(Object.assign({templateFactory:QMe},r))),n.appendInto(t)),n.setValue(e),n.commit()};/**
8653
+ */const U_=new WeakMap,zMe=(e,t,r)=>{let n=U_.get(t);n===void 0&&(lI(t,t.firstChild),U_.set(t,n=new HT(Object.assign({templateFactory:QMe},r))),n.appendInto(t)),n.setValue(e),n.commit()};/**
8654
8654
  * @license
8655
8655
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8656
8656
  * This code may only be used under the BSD style license found at
@@ -8674,7 +8674,7 @@ ${la}`,Qte=`
8674
8674
  * Code distributed by Google as part of the polymer project is also
8675
8675
  * subject to an additional IP rights grant found at
8676
8676
  * http://polymer.github.io/PATENTS.txt
8677
- */typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const U_=(e,...t)=>new jj(e,t,"html",JMe),n6e=(e,...t)=>new SVGTemplateResult(e,t,"svg",defaultTemplateProcessor);/**
8677
+ */typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const x_=(e,...t)=>new jj(e,t,"html",JMe),n6e=(e,...t)=>new SVGTemplateResult(e,t,"svg",defaultTemplateProcessor);/**
8678
8678
  * @license
8679
8679
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8680
8680
  * This code may only be used under the BSD style license found at
@@ -8686,7 +8686,7 @@ ${la}`,Qte=`
8686
8686
  * Code distributed by Google as part of the polymer project is also
8687
8687
  * subject to an additional IP rights grant found at
8688
8688
  * http://polymer.github.io/PATENTS.txt
8689
- */const qj=(e,t)=>`${e}--${t}`;let YT=!0;typeof window.ShadyCSS>"u"?YT=!1:typeof window.ShadyCSS.prepareTemplateDom>"u"&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),YT=!1);const ZMe=e=>t=>{const r=qj(t.type,e);let n=Uh.get(r);n===void 0&&(n={stringsArray:new WeakMap,keyString:new Map},Uh.set(r,n));let i=n.stringsArray.get(t.strings);if(i!==void 0)return i;const a=t.strings.join(nu);if(i=n.keyString.get(a),i===void 0){const u=t.getTemplateElement();YT&&window.ShadyCSS.prepareTemplateDom(u,e),i=new Uj(t,u),n.keyString.set(a,i)}return n.stringsArray.set(t.strings,i),i},eIe=["html","svg"],tIe=e=>{eIe.forEach(t=>{const r=Uh.get(qj(t,e));r!==void 0&&r.keyString.forEach(n=>{const{element:{content:i}}=n,a=new Set;Array.from(i.querySelectorAll("style")).forEach(u=>{a.add(u)}),$j(n,a)})})},Kj=new Set,rIe=(e,t,r)=>{Kj.add(e);const n=r?r.element:document.createElement("template"),i=t.querySelectorAll("style"),{length:a}=i;if(a===0){window.ShadyCSS.prepareTemplateStyles(n,e);return}const u=document.createElement("style");for(let _=0;_<a;_++){const h=i[_];h.parentNode.removeChild(h),u.textContent+=h.textContent}tIe(e);const c=n.content;r?kMe(r,u,c.firstChild):c.insertBefore(u,c.firstChild),window.ShadyCSS.prepareTemplateStyles(n,e);const v=c.querySelector("style");if(window.ShadyCSS.nativeShadow&&v!==null)t.insertBefore(v.cloneNode(!0),t.firstChild);else if(r){c.insertBefore(u,c.firstChild);const _=new Set;_.add(u),$j(r,_)}},nIe=(e,t,r)=>{if(!r||typeof r!="object"||!r.scopeName)throw new Error("The `scopeName` option is required.");const n=r.scopeName,i=w_.has(t),a=YT&&t.nodeType===11&&!!t.host,u=a&&!Kj.has(n),c=u?document.createDocumentFragment():t;if(zMe(e,c,Object.assign({templateFactory:ZMe(n)},r)),u){const v=w_.get(c);w_.delete(c);const _=v.value instanceof dI?v.value.template:void 0;rIe(n,c,_),lI(t,t.firstChild),t.appendChild(c),w_.set(t,v)}!i&&a&&window.ShadyCSS.styleElement(t.host)};/**
8689
+ */const qj=(e,t)=>`${e}--${t}`;let YT=!0;typeof window.ShadyCSS>"u"?YT=!1:typeof window.ShadyCSS.prepareTemplateDom>"u"&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),YT=!1);const ZMe=e=>t=>{const r=qj(t.type,e);let n=Uh.get(r);n===void 0&&(n={stringsArray:new WeakMap,keyString:new Map},Uh.set(r,n));let i=n.stringsArray.get(t.strings);if(i!==void 0)return i;const a=t.strings.join(nu);if(i=n.keyString.get(a),i===void 0){const u=t.getTemplateElement();YT&&window.ShadyCSS.prepareTemplateDom(u,e),i=new Uj(t,u),n.keyString.set(a,i)}return n.stringsArray.set(t.strings,i),i},eIe=["html","svg"],tIe=e=>{eIe.forEach(t=>{const r=Uh.get(qj(t,e));r!==void 0&&r.keyString.forEach(n=>{const{element:{content:i}}=n,a=new Set;Array.from(i.querySelectorAll("style")).forEach(u=>{a.add(u)}),$j(n,a)})})},Kj=new Set,rIe=(e,t,r)=>{Kj.add(e);const n=r?r.element:document.createElement("template"),i=t.querySelectorAll("style"),{length:a}=i;if(a===0){window.ShadyCSS.prepareTemplateStyles(n,e);return}const u=document.createElement("style");for(let _=0;_<a;_++){const h=i[_];h.parentNode.removeChild(h),u.textContent+=h.textContent}tIe(e);const c=n.content;r?kMe(r,u,c.firstChild):c.insertBefore(u,c.firstChild),window.ShadyCSS.prepareTemplateStyles(n,e);const v=c.querySelector("style");if(window.ShadyCSS.nativeShadow&&v!==null)t.insertBefore(v.cloneNode(!0),t.firstChild);else if(r){c.insertBefore(u,c.firstChild);const _=new Set;_.add(u),$j(r,_)}},nIe=(e,t,r)=>{if(!r||typeof r!="object"||!r.scopeName)throw new Error("The `scopeName` option is required.");const n=r.scopeName,i=U_.has(t),a=YT&&t.nodeType===11&&!!t.host,u=a&&!Kj.has(n),c=u?document.createDocumentFragment():t;if(zMe(e,c,Object.assign({templateFactory:ZMe(n)},r)),u){const v=U_.get(c);U_.delete(c);const _=v.value instanceof dI?v.value.template:void 0;rIe(n,c,_),lI(t,t.firstChild),t.appendChild(c),U_.set(t,v)}!i&&a&&window.ShadyCSS.styleElement(t.host)};/**
8690
8690
  * @license
8691
8691
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8692
8692
  * This code may only be used under the BSD style license found at
@@ -8756,9 +8756,9 @@ found at http://polymer.github.io/PATENTS.txt
8756
8756
  * Code distributed by Google as part of the polymer project is also
8757
8757
  * subject to an additional IP rights grant found at
8758
8758
  * http://polymer.github.io/PATENTS.txt
8759
- */const eH=new WeakMap,tH=2147483647,pIe=Gj((...e)=>t=>{let r=eH.get(t);r===void 0&&(r={lastRenderedIndex:tH,values:[]},eH.set(t,r));const n=r.values;let i=n.length;r.values=e;for(let a=0;a<e.length&&!(a>r.lastRenderedIndex);a++){const u=e[a];if(jT(u)||typeof u.then!="function"){t.setValue(u),r.lastRenderedIndex=a;break}a<i&&u===n[a]||(r.lastRenderedIndex=tH,i=0,Promise.resolve(u).then(c=>{const v=r.values.indexOf(u);v>-1&&v<r.lastRenderedIndex&&(r.lastRenderedIndex=v,t.setValue(c),t.commit())}))}});var x_=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(u=e[c])&&(a=(i<3?u(a):i>3?u(t,r,a):u(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const rH="feature-app-container";function hIe(e,t={}){if(customElements.get(rH))return;const{logger:r=console}=t;class n extends xh{constructor(){super(...arguments),this.appElement=document.createElement("div")}firstUpdated(){if(!!this.featureAppDefinition)try{this.featureAppScope=e.createFeatureAppScope(this.featureAppId,this.featureAppDefinition,{featureAppName:this.featureAppName,baseUrl:this.baseUrl,config:this.config}),this.featureAppScope.featureApp.attachTo(this.appElement)}catch(a){r.error(a),this.error=a}}render(){return this.error?U_` <slot name="error"></slot> `:U_` ${this.appElement} `}disconnectedCallback(){this.featureAppScope&&this.featureAppScope.release(),super.disconnectedCallback()}}x_([fo({type:String})],n.prototype,"featureAppId",void 0),x_([fo({type:String})],n.prototype,"featureAppName",void 0),x_([fo({type:String})],n.prototype,"baseUrl",void 0),x_([fo({type:Object})],n.prototype,"featureAppDefinition",void 0),x_([fo({type:Object})],n.prototype,"config",void 0),x_([fo({type:Object,reflect:!1})],n.prototype,"error",void 0),customElements.define(rH,n)}var SIe=p(1048),EIe=p.n(SIe);function vIe(e){return/^https?:\/\//.test(e)}function mIe(e,t){return!e||vIe(t)?t:EIe()(e,t)}var Fh=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(u=e[c])&&(a=(i<3?u(a):i>3?u(t,r,a):u(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const nH="feature-app-loader";function TIe(e,t={}){if(customElements.get(nH))return;const{logger:r=console}=t;hIe(e,t);class n extends xh{render(){return U_`
8760
- ${pIe(this.loadFeatureApp(),U_` <slot name="loading"></slot> `)}
8761
- `}async loadFeatureApp(){try{if(!this.src)throw new Error("No src provided.");const a=await e.getAsyncFeatureAppDefinition(mIe(this.baseUrl,this.src)).promise;return U_`
8759
+ */const eH=new WeakMap,tH=2147483647,pIe=Gj((...e)=>t=>{let r=eH.get(t);r===void 0&&(r={lastRenderedIndex:tH,values:[]},eH.set(t,r));const n=r.values;let i=n.length;r.values=e;for(let a=0;a<e.length&&!(a>r.lastRenderedIndex);a++){const u=e[a];if(jT(u)||typeof u.then!="function"){t.setValue(u),r.lastRenderedIndex=a;break}a<i&&u===n[a]||(r.lastRenderedIndex=tH,i=0,Promise.resolve(u).then(c=>{const v=r.values.indexOf(u);v>-1&&v<r.lastRenderedIndex&&(r.lastRenderedIndex=v,t.setValue(c),t.commit())}))}});var F_=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(u=e[c])&&(a=(i<3?u(a):i>3?u(t,r,a):u(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const rH="feature-app-container";function hIe(e,t={}){if(customElements.get(rH))return;const{logger:r=console}=t;class n extends xh{constructor(){super(...arguments),this.appElement=document.createElement("div")}firstUpdated(){if(!!this.featureAppDefinition)try{this.featureAppScope=e.createFeatureAppScope(this.featureAppId,this.featureAppDefinition,{featureAppName:this.featureAppName,baseUrl:this.baseUrl,config:this.config}),this.featureAppScope.featureApp.attachTo(this.appElement)}catch(a){r.error(a),this.error=a}}render(){return this.error?x_` <slot name="error"></slot> `:x_` ${this.appElement} `}disconnectedCallback(){this.featureAppScope&&this.featureAppScope.release(),super.disconnectedCallback()}}F_([fo({type:String})],n.prototype,"featureAppId",void 0),F_([fo({type:String})],n.prototype,"featureAppName",void 0),F_([fo({type:String})],n.prototype,"baseUrl",void 0),F_([fo({type:Object})],n.prototype,"featureAppDefinition",void 0),F_([fo({type:Object})],n.prototype,"config",void 0),F_([fo({type:Object,reflect:!1})],n.prototype,"error",void 0),customElements.define(rH,n)}var SIe=p(1048),EIe=p.n(SIe);function vIe(e){return/^https?:\/\//.test(e)}function mIe(e,t){return!e||vIe(t)?t:EIe()(e,t)}var Fh=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(u=e[c])&&(a=(i<3?u(a):i>3?u(t,r,a):u(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const nH="feature-app-loader";function TIe(e,t={}){if(customElements.get(nH))return;const{logger:r=console}=t;hIe(e,t);class n extends xh{render(){return x_`
8760
+ ${pIe(this.loadFeatureApp(),x_` <slot name="loading"></slot> `)}
8761
+ `}async loadFeatureApp(){try{if(!this.src)throw new Error("No src provided.");const a=await e.getAsyncFeatureAppDefinition(mIe(this.baseUrl,this.src)).promise;return x_`
8762
8762
  <feature-app-container
8763
8763
  featureAppId=${this.featureAppId}
8764
8764
  featureAppName=${Zj(this.featureAppName)}
@@ -8768,7 +8768,7 @@ found at http://polymer.github.io/PATENTS.txt
8768
8768
  >
8769
8769
  <slot name="error" slot="error"></slot>
8770
8770
  </feature-app-container>
8771
- `}catch(a){return r.error(a),U_` <slot name="error"></slot> `}}}Fh([fo({type:String})],n.prototype,"featureAppId",void 0),Fh([fo({type:String})],n.prototype,"featureAppName",void 0),Fh([fo({type:String})],n.prototype,"baseUrl",void 0),Fh([fo({type:String})],n.prototype,"src",void 0),Fh([fo({type:Object})],n.prototype,"config",void 0),customElements.define(nH,n)}var AIe=p(3081),gIe=p(9742),F_,$_;class yIe{constructor(){F_.set(this,void 0),$_.set(this,void 0)}onReboot(t){return(0,F.GG)(this,F_,t,"f"),()=>{(0,F.GG)(this,F_,void 0,"f")}}reboot(t,r){const{featureServices:n}=Nj((0,gIe.Ak)(),{featureServiceDefinitions:t,featureServiceDependencies:r});return(0,F.GG)(this,$_,n,"f"),(0,F.gn)(this,F_,"f")&&(0,F.gn)(this,F_,"f").call(this,(0,F.gn)(this,$_,"f")),(0,F.gn)(this,$_,"f")}getRebootedServices(){return(0,F.gn)(this,$_,"f")}}F_=new WeakMap,$_=new WeakMap;var WT,QT,zT,$h,CI;class RIe{constructor({initialState:t={},logger:r,globalEventEmitter:n}){WT.add(this),QT.set(this,void 0),zT.set(this,{[er.apiClient.id]:er.apiClient.version.one,[er.bwellSdk.id]:er.bwellSdk.version.one,[er.theme.id]:er.theme.version.one,[er.analytics.id]:er.theme.version.one,[er.auth.id]:er.auth.version.one,[er.logging.id]:er.logging.version.one,[er.state.id]:er.state.version.one,[er.navigation.id]:er.navigation.version.one,[er.translation.id]:er.translation.version.one,[er.featureFlags.id]:er.featureFlags.version.one,[er.identityUtils.id]:er.apiClient.version.one,[er.nativeBridge.id]:er.nativeBridge.version.one,[er.globalEventEmitter.id]:er.globalEventEmitter.version.one,[er.rebootController.id]:er.rebootController.version.one}),$h.set(this,void 0),(0,F.GG)(this,QT,n,"f"),(0,F.GG)(this,$h,new yIe,"f");const{featureAppManager:i,featureServices:a}=Nj("orchestrator:integrator",{featureServiceDependencies:(0,F.gn)(this,zT,"f"),featureServiceDefinitions:(0,F.gn)(this,WT,"m",CI).call(this,t),moduleLoader:AIe.h,logger:r});this.services=a,TIe(i)}reboot(t){this.services=(0,F.gn)(this,$h,"f").reboot((0,F.gn)(this,WT,"m",CI).call(this,t),(0,F.gn)(this,zT,"f"))}}QT=new WeakMap,zT=new WeakMap,$h=new WeakMap,WT=new WeakSet,CI=function(t){return[er.apiClient.definition,er.bwellSdk.definition,er.theme.definition,er.analytics.definition,er.auth.definition,er.logging.definition,er.state.define(t),er.navigation.definition,er.translation.definition,er.featureFlags.definition,er.identityUtils.definition,er.nativeBridge.definition,er.globalEventEmitter.define((0,F.gn)(this,QT,"f")),er.rebootController.define((0,F.gn)(this,$h,"f"))]};function OIe(e){try{return JSON.parse(atob(e))}catch{}}function bIe(e){var t,r,n;const i=OIe(e);if(!i?.env)return ie.C;const a={rest:{endpoints:{}}};for(const u in(t=ie.C===null||ie.C===void 0?void 0:ie.C.rest)===null||t===void 0?void 0:t.endpoints){const c=(r=ie.C===null||ie.C===void 0?void 0:ie.C.rest)===null||r===void 0?void 0:r.endpoints[u];typeof c=="string"&&((n=a?.rest)===null||n===void 0?void 0:n.endpoints)&&(a.rest.endpoints[u]=c.replace(".prod.",`.${i.env}.`))}return a}var V_,Vh,G_,PI,iu,Ma,Ri,Gh,Rl,Bh,iH,XT;const CIe=6e4;class PIe{constructor(t,r){V_.add(this),Vh.set(this,void 0),G_.set(this,void 0),PI.set(this,uMe.EventBus.getInstance(ie.mO).mainChannel()),iu.set(this,new G$),Ma.set(this,void 0),Ri.set(this,void 0),Gh.set(this,void 0),Rl.set(this,void 0),Bh.set(this,void 0),this.isInitialized=!1,(0,F.GG)(this,Vh,t.metadata.version,"f"),(0,F.GG)(this,Gh,r,"f"),(0,F.gn)(this,PI,"f").addListener(n=>{var{channel:i,topic:a}=n,u=n.payload,{name:c}=u,v=(0,F.Tt)(u,["name"]);(0,F.gn)(this,iu,"f").emit("embeddable",{id:i,name:c,type:a,payload:v})})}init(t){return(0,F.sH)(this,void 0,void 0,function*(){const{clientKey:r,initialUserToken:n,telemetry:i={},variant:a=te.DEFAULT}=typeof t=="string"?{clientKey:t,initialUserToken:void 0}:t;(0,F.GG)(this,Bh,typeof i=="boolean"?{logging:i,tracing:i,rum:i}:Object.assign({logging:!0,tracing:!0,rum:!0},i),"f"),(0,F.GG)(this,Ma,(0,NI.default)({telemetry:(0,F.gn)(this,Bh,"f"),appVersion:(0,F.gn)(this,Vh,"f")}),"f");try{yield(0,F.gn)(this,V_,"m",iH).call(this,r,a),n&&(yield this.setUserToken(n))}catch(u){throw(0,F.gn)(this,iu,"f").emit("error"),(0,F.gn)(this,Ma,"f").error(u,"initialization error"),u instanceof Lo.b&&u?.emitToNativeComponent()&&PC.b.events.emit("error",u.toJSON()),u}})}setUserToken(t){var r,n,i;return(0,F.sH)(this,void 0,void 0,function*(){if(!(!((r=(0,F.gn)(this,Ri,"f"))===null||r===void 0)&&r.services))throw new Lo.b('"setUserToken" method called before bwell initialized.',{errorCode:_s.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const a=(0,F.gn)(this,Ri,"f").services[er.apiClient.id],u=(0,F.gn)(this,Ri,"f").services[er.auth.id],c=(0,F.gn)(this,Ri,"f").services[er.state.id],{key:v}=c.getClientContext();try{(0,F.gn)(this,G_,"f")&&(0,F.gn)(this,G_,"f")!==t&&(a.clearAuth(),yield a.clearStore(),c.logoutUser());const _=yield u.getTokenData(t,v),{userPayload:h}=_,L=(0,F.Tt)(_,["userPayload"]);(0,F.GG)(this,G_,t,"f");const Te=yield(0,F.gn)(this,Ri,"f").services[er.bwellSdk.id].setAuthTokens({accessToken:L.accessToken.jwtToken,idToken:L.idToken.jwtToken,refreshToken:L.refreshToken.token});if(Te.success())(n=(0,F.gn)(this,Ma,"f"))===null||n===void 0||n.info({},"Succesfully authenticated in BWellSDK");else throw(i=(0,F.gn)(this,Ma,"f"))===null||i===void 0||i.error(Te.error(),"BWellSDK Authenication Failure"),Te.error();const{accessToken:{jwtToken:me},idToken:{jwtToken:Oe},refreshToken:{token:He}}=L,{apiMap:qe,key:We}=c.getClientContext();a.enableAuth({tokens:{accessToken:me,idToken:Oe},onRefresh:()=>(0,F.sH)(this,void 0,void 0,function*(){var ct;let yt;const jt=new Ab.Auth(new ce.ApiClient(qe));try{yt=yield jt.refreshTokens(He,We)}catch(dr){(ct=(0,F.gn)(this,Ma,"f"))===null||ct===void 0||ct.error(dr,"Error refreshing user token. Attempting fresh token exchange.");const{accessToken:{jwtToken:Sr},idToken:{jwtToken:an},refreshToken:{token:Ia}}=yield jt.getTokenData(t,v);yt={accessToken:Sr,idToken:an,refreshToken:Ia}}return c.updateTokens(yt),yt})}),c.setUser(Object.assign(Object.assign({},h),{tokenData:L})),PC.b.events.emit("onauthsuccess",{user:{id:this.getUserId()}})}catch(_){throw new Lo.b("There was an error during the token exchange process.",{errorCode:_s.ErrorCode.TOKEN_EXCHANGE,cause:_})}})}getUser(){return(0,F.gn)(this,V_,"m",XT).call(this,"getUser")}getToken(){const{idToken:{jwtToken:t},refreshToken:{token:r},accessToken:{jwtToken:n}}=(0,F.gn)(this,V_,"m",XT).call(this,"getUserTokenData");return{idToken:t,refreshToken:r,accessToken:n}}getUserId(){const{idToken:{payload:{"custom:clientFhirPatientId":t}}}=(0,F.gn)(this,V_,"m",XT).call(this,"getUserTokenData");if(!t)throw new Lo.b("bwell Global object must be authenticated with an actual user.",{errorCode:_s.ErrorCode.UNKNOWN});return t}on(t,r){(0,F.gn)(this,iu,"f").on(t,r)}once(t,r){(0,F.gn)(this,iu,"f").once(t,r)}off(t,r){(0,F.gn)(this,iu,"f").off(t,r)}_registerEmbeddableContent(t){(0,F.GG)(this,Rl,t,"f")}focusEmbeddableContent(){return(0,F.sH)(this,void 0,void 0,function*(){return new Promise((t,r)=>{if((0,F.gn)(this,Rl,"f"))(0,F.gn)(this,Rl,"f").focus(),t();else{let n=0;const i=setInterval(()=>{n+=1,(0,F.gn)(this,Rl,"f")?(clearInterval(i),(0,F.gn)(this,Rl,"f").focus(),t()):n===CIe/500&&(clearInterval(i),r(new Error("Embeddable content not found.")))},500)}})})}}Vh=new WeakMap,G_=new WeakMap,PI=new WeakMap,iu=new WeakMap,Ma=new WeakMap,Ri=new WeakMap,Gh=new WeakMap,Rl=new WeakMap,Bh=new WeakMap,V_=new WeakSet,iH=function(t,r){var n,i,a,u,c;return(0,F.sH)(this,void 0,void 0,function*(){const v=bIe(t),{identityGateway:_}=B7(new ce.ApiClient(v));let h;try{const qe=(yield _.getClientRecord({context:{headers:{ClientKey:t,variant:r}}})).clientRecord,{clientSlug:We}=qe,ct=(0,F.Tt)(qe,["clientSlug"]);h=Object.assign({key:t,slug:We,variant:r},ct)}catch(qe){throw new Lo.b("Invalid client key",{errorCode:_s.ErrorCode.CLIENT_UNKNOWN,cause:qe})}const L={client:h,telemetry:(0,F.gn)(this,Bh,"f"),metadata:{version:(0,F.gn)(this,Vh,"f")}};if(this.isInitialized){if(this.isInitialized&&(0,F.gn)(this,Ri,"f")){const qe=(0,F.gn)(this,Ri,"f").services[er.state.id];if(h.key!==qe.getClientContext().key||h.variant!==qe.getClientContext().variant)(0,F.GG)(this,G_,void 0,"f"),(0,F.gn)(this,Ri,"f").reboot(L);else return}}else{const qe={globalEventEmitter:(0,F.gn)(this,iu,"f"),initialState:L};(0,F.gn)(this,Gh,"f")?(0,F.GG)(this,Ri,(0,F.gn)(this,Gh,"f").create(qe),"f"):(0,F.GG)(this,Ri,new RIe(qe),"f")}if((0,F.gn)(this,Ri,"f")===void 0)throw(0,F.gn)(this,Ma,"f")&&(0,F.gn)(this,Ma,"f").fatal("`bwell.init` called when already initialized and no orchestrator found."),new Lo.b("Unexpected error",{errorCode:_s.ErrorCode.UNKNOWN});const W=(0,F.gn)(this,Ri,"f").services[er.identityUtils.id],Te=(0,F.gn)(this,Ri,"f").services[er.apiClient.id],me=(0,F.gn)(this,Ri,"f").services[er.bwellSdk.id];if(r===te.GUEST){const qe=(yield me.createGuestAccessToken()).data();W.storeTokens({accessToken:{jwtToken:qe.accessToken,payload:{}},idToken:{jwtToken:qe.identityToken,payload:{}},refreshToken:{token:qe.refreshToken}})}const Oe=W.getStoredTokens(),He=yield me.initialize();if(He.success())(n=(0,F.gn)(this,Ma,"f"))===null||n===void 0||n.info({},"Successfully initialized BWellSDK");else throw(i=(0,F.gn)(this,Ma,"f"))===null||i===void 0||i.error(He.error(),"Error initializing BWellSDK"),He.error();if(Oe){const qe=(0,F.gn)(this,Ri,"f").services[er.state.id],{refreshToken:We,accessToken:{jwtToken:ct},idToken:{jwtToken:yt}}=Oe;Te.enableAuth({tokens:{accessToken:ct,idToken:yt},onRefresh:()=>(0,F.sH)(this,void 0,void 0,function*(){const dr=new Ab.Auth(new ce.ApiClient(v));try{const Sr=yield dr.refreshTokens(We.token,t);return qe.updateTokens(Sr),Sr}catch{throw yield W.logout(),new Lo.b("Refresh token failed in credential auth strategy.",{errorCode:_s.ErrorCode.TOKEN_EXCHANGE})}})}),(a=(0,F.gn)(this,Ma,"f"))===null||a===void 0||a.debug("Setting auth tokens for SDK");const jt=yield me.setAuthTokens({accessToken:ct,idToken:yt,refreshToken:We.token});if(jt.failure())throw(u=(0,F.gn)(this,Ma,"f"))===null||u===void 0||u.error(jt.error(),"BWell SDK set auth tokens error"),new Lo.b(jt.error().message,{errorCode:_s.ErrorCode.TOKEN_EXCHANGE});(c=(0,F.gn)(this,Ma,"f"))===null||c===void 0||c.info("BWell SDK set auth tokens successful"),qe.setUser({tokenData:Oe})}(0,F.gn)(this,iu,"f").emit("initialized"),this.isInitialized=!0})},XT=function(t){var r;if(!(!((r=(0,F.gn)(this,Ri,"f"))===null||r===void 0)&&r.services))throw new Lo.b('"#getStateSafe" method called before bwell initialized.',{errorCode:_s.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const i=(0,F.gn)(this,Ri,"f").services[er.state.id][t]();if(!i)throw new Lo.b("User token must be set before data can be retrieved.",{errorCode:_s.ErrorCode.UNKNOWN});return i}},5888:(Ee,K,p)=>{"use strict";p.d(K,{L:()=>V});const{toString:T,hasOwnProperty:d}=Object.prototype,D=Function.prototype.toString,H=new Map;function V(x,Z){try{return y(x,Z)}finally{H.clear()}}var A=null;function y(x,Z){if(x===Z)return!0;const F=T.call(x),te=T.call(Z);if(F!==te)return!1;switch(F){case"[object Array]":if(x.length!==Z.length)return!1;case"[object Object]":{if(G(x,Z))return!0;const ie=m(x),ce=m(Z),j=ie.length;if(j!==ce.length)return!1;for(let O=0;O<j;++O)if(!d.call(Z,ie[O]))return!1;for(let O=0;O<j;++O){const ue=ie[O];if(!y(x[ue],Z[ue]))return!1}return!0}case"[object Error]":return x.name===Z.name&&x.message===Z.message;case"[object Number]":if(x!==x)return Z!==Z;case"[object Boolean]":case"[object Date]":return+x==+Z;case"[object RegExp]":case"[object String]":return x==`${Z}`;case"[object Map]":case"[object Set]":{if(x.size!==Z.size)return!1;if(G(x,Z))return!0;const ie=x.entries(),ce=F==="[object Map]";for(;;){const j=ie.next();if(j.done)break;const[O,ue]=j.value;if(!Z.has(O)||ce&&!y(ue,Z.get(O)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":x=new Uint8Array(x),Z=new Uint8Array(Z);case"[object DataView]":{let ie=x.byteLength;if(ie===Z.byteLength)for(;ie--&&x[ie]===Z[ie];);return ie===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const ie=D.call(x);return ie!==D.call(Z)?!1:!$(ie,g)}}return!1}function m(x){return Object.keys(x).filter(P,x)}function P(x){return this[x]!==void 0}const g="{ [native code] }";function $(x,Z){const F=x.length-Z.length;return F>=0&&x.indexOf(Z,F)===F}function G(x,Z){let F=H.get(x);if(F){if(F.has(Z))return!0}else H.set(x,F=new Set);return F.add(Z),!1}},3217:(Ee,K,p)=>{"use strict";p.d(K,{U:()=>T});function T(d,D){if(!Boolean(d))throw new Error(D)}},5198:(Ee,K,p)=>{"use strict";p.d(K,{N:()=>D});const T=10,d=2;function D(g){return H(g,[])}function H(g,$){switch(typeof g){case"string":return JSON.stringify(g);case"function":return g.name?`[function ${g.name}]`:"[function]";case"object":return V(g,$);default:return String(g)}}function V(g,$){if(g===null)return"null";if($.includes(g))return"[Circular]";const G=[...$,g];if(A(g)){const x=g.toJSON();if(x!==g)return typeof x=="string"?x:H(x,G)}else if(Array.isArray(g))return m(g,G);return y(g,G)}function A(g){return typeof g.toJSON=="function"}function y(g,$){const G=Object.entries(g);if(G.length===0)return"{}";if($.length>d)return"["+P(g)+"]";const x=G.map(([Z,F])=>Z+": "+H(F,$));return"{ "+x.join(", ")+" }"}function m(g,$){if(g.length===0)return"[]";if($.length>d)return"[Array]";const G=Math.min(T,g.length),x=g.length-G,Z=[];for(let F=0;F<G;++F)Z.push(H(g[F],$));return x===1?Z.push("... 1 more item"):x>1&&Z.push(`... ${x} more items`),"["+Z.join(", ")+"]"}function P(g){const $=Object.prototype.toString.call(g).replace(/^\[object /,"").replace(/]$/,"");if($==="Object"&&typeof g.constructor=="function"){const G=g.constructor.name;if(typeof G=="string"&&G!=="")return G}return $}},9762:(Ee,K,p)=>{"use strict";p.d(K,{Ll:()=>V,aD:()=>D,aZ:()=>T,cE:()=>A,ou:()=>d});class T{constructor(m,P,g){this.start=m.start,this.end=P.end,this.startToken=m,this.endToken=P,this.source=g}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class d{constructor(m,P,g,$,G,x){this.kind=m,this.start=P,this.end=g,this.line=$,this.column=G,this.value=x,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const D={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},H=new Set(Object.keys(D));function V(y){const m=y?.kind;return typeof m=="string"&&H.has(m)}var A;(function(y){y.QUERY="query",y.MUTATION="mutation",y.SUBSCRIPTION="subscription"})(A||(A={}))},7714:(Ee,K,p)=>{"use strict";p.d(K,{OC:()=>d,yo:()=>V});var T=p(5881);function d(A){var y;let m=Number.MAX_SAFE_INTEGER,P=null,g=-1;for(let G=0;G<A.length;++G){var $;const x=A[G],Z=D(x);Z!==x.length&&(P=($=P)!==null&&$!==void 0?$:G,g=G,G!==0&&Z<m&&(m=Z))}return A.map((G,x)=>x===0?G:G.slice(m)).slice((y=P)!==null&&y!==void 0?y:0,g+1)}function D(A){let y=0;for(;y<A.length&&(0,T.i0)(A.charCodeAt(y));)++y;return y}function H(A){if(A==="")return!0;let y=!0,m=!1,P=!0,g=!1;for(let $=0;$<A.length;++$)switch(A.codePointAt($)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(y&&!g)return!1;g=!0,y=!0,m=!1;break;case 9:case 32:m||(m=y);break;default:P&&(P=m),y=!1}return!(y||P&&g)}function V(A,y){const m=A.replace(/"""/g,'\\"""'),P=m.split(/\r\n|[\n\r]/g),g=P.length===1,$=P.length>1&&P.slice(1).every(j=>j.length===0||(0,T.i0)(j.charCodeAt(0))),G=m.endsWith('\\"""'),x=A.endsWith('"')&&!G,Z=A.endsWith("\\"),F=x||Z,te=!(y!=null&&y.minimize)&&(!g||A.length>70||F||$||G);let ie="";const ce=g&&(0,T.i0)(A.charCodeAt(0));return(te&&!ce||$)&&(ie+=`
8771
+ `}catch(a){return r.error(a),x_` <slot name="error"></slot> `}}}Fh([fo({type:String})],n.prototype,"featureAppId",void 0),Fh([fo({type:String})],n.prototype,"featureAppName",void 0),Fh([fo({type:String})],n.prototype,"baseUrl",void 0),Fh([fo({type:String})],n.prototype,"src",void 0),Fh([fo({type:Object})],n.prototype,"config",void 0),customElements.define(nH,n)}var AIe=p(3081),gIe=p(9742),$_,V_;class yIe{constructor(){$_.set(this,void 0),V_.set(this,void 0)}onReboot(t){return(0,F.GG)(this,$_,t,"f"),()=>{(0,F.GG)(this,$_,void 0,"f")}}reboot(t,r){const{featureServices:n}=Nj((0,gIe.Ak)(),{featureServiceDefinitions:t,featureServiceDependencies:r});return(0,F.GG)(this,V_,n,"f"),(0,F.gn)(this,$_,"f")&&(0,F.gn)(this,$_,"f").call(this,(0,F.gn)(this,V_,"f")),(0,F.gn)(this,V_,"f")}getRebootedServices(){return(0,F.gn)(this,V_,"f")}}$_=new WeakMap,V_=new WeakMap;var WT,QT,zT,$h,CI;class RIe{constructor({initialState:t={},logger:r,globalEventEmitter:n}){WT.add(this),QT.set(this,void 0),zT.set(this,{[er.apiClient.id]:er.apiClient.version.one,[er.bwellSdk.id]:er.bwellSdk.version.one,[er.theme.id]:er.theme.version.one,[er.analytics.id]:er.theme.version.one,[er.auth.id]:er.auth.version.one,[er.logging.id]:er.logging.version.one,[er.state.id]:er.state.version.one,[er.navigation.id]:er.navigation.version.one,[er.translation.id]:er.translation.version.one,[er.featureFlags.id]:er.featureFlags.version.one,[er.identityUtils.id]:er.apiClient.version.one,[er.nativeBridge.id]:er.nativeBridge.version.one,[er.globalEventEmitter.id]:er.globalEventEmitter.version.one,[er.rebootController.id]:er.rebootController.version.one}),$h.set(this,void 0),(0,F.GG)(this,QT,n,"f"),(0,F.GG)(this,$h,new yIe,"f");const{featureAppManager:i,featureServices:a}=Nj("orchestrator:integrator",{featureServiceDependencies:(0,F.gn)(this,zT,"f"),featureServiceDefinitions:(0,F.gn)(this,WT,"m",CI).call(this,t),moduleLoader:AIe.h,logger:r});this.services=a,TIe(i)}reboot(t){this.services=(0,F.gn)(this,$h,"f").reboot((0,F.gn)(this,WT,"m",CI).call(this,t),(0,F.gn)(this,zT,"f"))}}QT=new WeakMap,zT=new WeakMap,$h=new WeakMap,WT=new WeakSet,CI=function(t){return[er.apiClient.definition,er.bwellSdk.definition,er.theme.definition,er.analytics.definition,er.auth.definition,er.logging.definition,er.state.define(t),er.navigation.definition,er.translation.definition,er.featureFlags.definition,er.identityUtils.definition,er.nativeBridge.definition,er.globalEventEmitter.define((0,F.gn)(this,QT,"f")),er.rebootController.define((0,F.gn)(this,$h,"f"))]};function OIe(e){try{return JSON.parse(atob(e))}catch{}}function bIe(e){var t,r,n;const i=OIe(e);if(!i?.env)return ie.C;const a={rest:{endpoints:{}}};for(const u in(t=ie.C===null||ie.C===void 0?void 0:ie.C.rest)===null||t===void 0?void 0:t.endpoints){const c=(r=ie.C===null||ie.C===void 0?void 0:ie.C.rest)===null||r===void 0?void 0:r.endpoints[u];typeof c=="string"&&((n=a?.rest)===null||n===void 0?void 0:n.endpoints)&&(a.rest.endpoints[u]=c.replace(".prod.",`.${i.env}.`))}return a}var G_,Vh,B_,PI,iu,Ma,Ri,Gh,Ol,Bh,iH,XT;const CIe=6e4;class PIe{constructor(t,r){G_.add(this),Vh.set(this,void 0),B_.set(this,void 0),PI.set(this,uMe.EventBus.getInstance(ie.mO).mainChannel()),iu.set(this,new G$),Ma.set(this,void 0),Ri.set(this,void 0),Gh.set(this,void 0),Ol.set(this,void 0),Bh.set(this,void 0),this.isInitialized=!1,(0,F.GG)(this,Vh,t.metadata.version,"f"),(0,F.GG)(this,Gh,r,"f"),(0,F.gn)(this,PI,"f").addListener(n=>{var{channel:i,topic:a}=n,u=n.payload,{name:c}=u,v=(0,F.Tt)(u,["name"]);(0,F.gn)(this,iu,"f").emit("embeddable",{id:i,name:c,type:a,payload:v})})}init(t){return(0,F.sH)(this,void 0,void 0,function*(){const{clientKey:r,initialUserToken:n,telemetry:i={},variant:a=te.DEFAULT}=typeof t=="string"?{clientKey:t,initialUserToken:void 0}:t;(0,F.GG)(this,Bh,typeof i=="boolean"?{logging:i,tracing:i,rum:i}:Object.assign({logging:!0,tracing:!0,rum:!0},i),"f"),(0,F.GG)(this,Ma,(0,NI.default)({telemetry:(0,F.gn)(this,Bh,"f"),appVersion:(0,F.gn)(this,Vh,"f")}),"f");try{yield(0,F.gn)(this,G_,"m",iH).call(this,r,a),n&&(yield this.setUserToken(n))}catch(u){throw(0,F.gn)(this,iu,"f").emit("error"),(0,F.gn)(this,Ma,"f").error(u,"initialization error"),u instanceof Lo.b&&u?.emitToNativeComponent()&&PC.b.events.emit("error",u.toJSON()),u}})}setUserToken(t){var r,n,i;return(0,F.sH)(this,void 0,void 0,function*(){if(!(!((r=(0,F.gn)(this,Ri,"f"))===null||r===void 0)&&r.services))throw new Lo.b('"setUserToken" method called before bwell initialized.',{errorCode:_s.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const a=(0,F.gn)(this,Ri,"f").services[er.apiClient.id],u=(0,F.gn)(this,Ri,"f").services[er.auth.id],c=(0,F.gn)(this,Ri,"f").services[er.state.id],{key:v}=c.getClientContext();try{(0,F.gn)(this,B_,"f")&&(0,F.gn)(this,B_,"f")!==t&&(a.clearAuth(),yield a.clearStore(),c.logoutUser());const _=yield u.getTokenData(t,v),{userPayload:h}=_,L=(0,F.Tt)(_,["userPayload"]);(0,F.GG)(this,B_,t,"f");const Te=yield(0,F.gn)(this,Ri,"f").services[er.bwellSdk.id].setAuthTokens({accessToken:L.accessToken.jwtToken,idToken:L.idToken.jwtToken,refreshToken:L.refreshToken.token});if(Te.success())(n=(0,F.gn)(this,Ma,"f"))===null||n===void 0||n.info({},"Succesfully authenticated in BWellSDK");else throw(i=(0,F.gn)(this,Ma,"f"))===null||i===void 0||i.error(Te.error(),"BWellSDK Authenication Failure"),Te.error();const{accessToken:{jwtToken:me},idToken:{jwtToken:Oe},refreshToken:{token:He}}=L,{apiMap:qe,key:We}=c.getClientContext();a.enableAuth({tokens:{accessToken:me,idToken:Oe},onRefresh:()=>(0,F.sH)(this,void 0,void 0,function*(){var ct;let yt;const jt=new Ab.Auth(new ce.ApiClient(qe));try{yt=yield jt.refreshTokens(He,We)}catch(dr){(ct=(0,F.gn)(this,Ma,"f"))===null||ct===void 0||ct.error(dr,"Error refreshing user token. Attempting fresh token exchange.");const{accessToken:{jwtToken:Sr},idToken:{jwtToken:an},refreshToken:{token:Ia}}=yield jt.getTokenData(t,v);yt={accessToken:Sr,idToken:an,refreshToken:Ia}}return c.updateTokens(yt),yt})}),c.setUser(Object.assign(Object.assign({},h),{tokenData:L})),PC.b.events.emit("onauthsuccess",{user:{id:this.getUserId()}})}catch(_){throw new Lo.b("There was an error during the token exchange process.",{errorCode:_s.ErrorCode.TOKEN_EXCHANGE,cause:_})}})}getUser(){return(0,F.gn)(this,G_,"m",XT).call(this,"getUser")}getToken(){const{idToken:{jwtToken:t},refreshToken:{token:r},accessToken:{jwtToken:n}}=(0,F.gn)(this,G_,"m",XT).call(this,"getUserTokenData");return{idToken:t,refreshToken:r,accessToken:n}}getUserId(){const{idToken:{payload:{"custom:clientFhirPatientId":t}}}=(0,F.gn)(this,G_,"m",XT).call(this,"getUserTokenData");if(!t)throw new Lo.b("bwell Global object must be authenticated with an actual user.",{errorCode:_s.ErrorCode.UNKNOWN});return t}on(t,r){(0,F.gn)(this,iu,"f").on(t,r)}once(t,r){(0,F.gn)(this,iu,"f").once(t,r)}off(t,r){(0,F.gn)(this,iu,"f").off(t,r)}_registerEmbeddableContent(t){(0,F.GG)(this,Ol,t,"f")}focusEmbeddableContent(){return(0,F.sH)(this,void 0,void 0,function*(){return new Promise((t,r)=>{if((0,F.gn)(this,Ol,"f"))(0,F.gn)(this,Ol,"f").focus(),t();else{let n=0;const i=setInterval(()=>{n+=1,(0,F.gn)(this,Ol,"f")?(clearInterval(i),(0,F.gn)(this,Ol,"f").focus(),t()):n===CIe/500&&(clearInterval(i),r(new Error("Embeddable content not found.")))},500)}})})}}Vh=new WeakMap,B_=new WeakMap,PI=new WeakMap,iu=new WeakMap,Ma=new WeakMap,Ri=new WeakMap,Gh=new WeakMap,Ol=new WeakMap,Bh=new WeakMap,G_=new WeakSet,iH=function(t,r){var n,i,a,u,c;return(0,F.sH)(this,void 0,void 0,function*(){const v=bIe(t),{identityGateway:_}=B7(new ce.ApiClient(v));let h;try{const qe=(yield _.getClientRecord({context:{headers:{ClientKey:t,variant:r}}})).clientRecord,{clientSlug:We}=qe,ct=(0,F.Tt)(qe,["clientSlug"]);h=Object.assign({key:t,slug:We,variant:r},ct)}catch(qe){throw new Lo.b("Invalid client key",{errorCode:_s.ErrorCode.CLIENT_UNKNOWN,cause:qe})}const L={client:h,telemetry:(0,F.gn)(this,Bh,"f"),metadata:{version:(0,F.gn)(this,Vh,"f")}};if(this.isInitialized){if(this.isInitialized&&(0,F.gn)(this,Ri,"f")){const qe=(0,F.gn)(this,Ri,"f").services[er.state.id];if(h.key!==qe.getClientContext().key||h.variant!==qe.getClientContext().variant)(0,F.GG)(this,B_,void 0,"f"),(0,F.gn)(this,Ri,"f").reboot(L);else return}}else{const qe={globalEventEmitter:(0,F.gn)(this,iu,"f"),initialState:L};(0,F.gn)(this,Gh,"f")?(0,F.GG)(this,Ri,(0,F.gn)(this,Gh,"f").create(qe),"f"):(0,F.GG)(this,Ri,new RIe(qe),"f")}if((0,F.gn)(this,Ri,"f")===void 0)throw(0,F.gn)(this,Ma,"f")&&(0,F.gn)(this,Ma,"f").fatal("`bwell.init` called when already initialized and no orchestrator found."),new Lo.b("Unexpected error",{errorCode:_s.ErrorCode.UNKNOWN});const W=(0,F.gn)(this,Ri,"f").services[er.identityUtils.id],Te=(0,F.gn)(this,Ri,"f").services[er.apiClient.id],me=(0,F.gn)(this,Ri,"f").services[er.bwellSdk.id];if(r===te.GUEST){const qe=(yield me.createGuestAccessToken()).data();W.storeTokens({accessToken:{jwtToken:qe.accessToken,payload:{}},idToken:{jwtToken:qe.identityToken,payload:{}},refreshToken:{token:qe.refreshToken}})}const Oe=W.getStoredTokens(),He=yield me.initialize();if(He.success())(n=(0,F.gn)(this,Ma,"f"))===null||n===void 0||n.info({},"Successfully initialized BWellSDK");else throw(i=(0,F.gn)(this,Ma,"f"))===null||i===void 0||i.error(He.error(),"Error initializing BWellSDK"),He.error();if(Oe){const qe=(0,F.gn)(this,Ri,"f").services[er.state.id],{refreshToken:We,accessToken:{jwtToken:ct},idToken:{jwtToken:yt}}=Oe;Te.enableAuth({tokens:{accessToken:ct,idToken:yt},onRefresh:()=>(0,F.sH)(this,void 0,void 0,function*(){const dr=new Ab.Auth(new ce.ApiClient(v));try{const Sr=yield dr.refreshTokens(We.token,t);return qe.updateTokens(Sr),Sr}catch{throw yield W.logout(),new Lo.b("Refresh token failed in credential auth strategy.",{errorCode:_s.ErrorCode.TOKEN_EXCHANGE})}})}),(a=(0,F.gn)(this,Ma,"f"))===null||a===void 0||a.debug("Setting auth tokens for SDK");const jt=yield me.setAuthTokens({accessToken:ct,idToken:yt,refreshToken:We.token});if(jt.failure())throw(u=(0,F.gn)(this,Ma,"f"))===null||u===void 0||u.error(jt.error(),"BWell SDK set auth tokens error"),new Lo.b(jt.error().message,{errorCode:_s.ErrorCode.TOKEN_EXCHANGE});(c=(0,F.gn)(this,Ma,"f"))===null||c===void 0||c.info("BWell SDK set auth tokens successful"),qe.setUser({tokenData:Oe})}(0,F.gn)(this,iu,"f").emit("initialized"),this.isInitialized=!0})},XT=function(t){var r;if(!(!((r=(0,F.gn)(this,Ri,"f"))===null||r===void 0)&&r.services))throw new Lo.b('"#getStateSafe" method called before bwell initialized.',{errorCode:_s.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const i=(0,F.gn)(this,Ri,"f").services[er.state.id][t]();if(!i)throw new Lo.b("User token must be set before data can be retrieved.",{errorCode:_s.ErrorCode.UNKNOWN});return i}},5888:(Ee,K,p)=>{"use strict";p.d(K,{L:()=>V});const{toString:T,hasOwnProperty:d}=Object.prototype,D=Function.prototype.toString,H=new Map;function V(x,Z){try{return y(x,Z)}finally{H.clear()}}var A=null;function y(x,Z){if(x===Z)return!0;const F=T.call(x),te=T.call(Z);if(F!==te)return!1;switch(F){case"[object Array]":if(x.length!==Z.length)return!1;case"[object Object]":{if(G(x,Z))return!0;const ie=m(x),ce=m(Z),j=ie.length;if(j!==ce.length)return!1;for(let O=0;O<j;++O)if(!d.call(Z,ie[O]))return!1;for(let O=0;O<j;++O){const ue=ie[O];if(!y(x[ue],Z[ue]))return!1}return!0}case"[object Error]":return x.name===Z.name&&x.message===Z.message;case"[object Number]":if(x!==x)return Z!==Z;case"[object Boolean]":case"[object Date]":return+x==+Z;case"[object RegExp]":case"[object String]":return x==`${Z}`;case"[object Map]":case"[object Set]":{if(x.size!==Z.size)return!1;if(G(x,Z))return!0;const ie=x.entries(),ce=F==="[object Map]";for(;;){const j=ie.next();if(j.done)break;const[O,ue]=j.value;if(!Z.has(O)||ce&&!y(ue,Z.get(O)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":x=new Uint8Array(x),Z=new Uint8Array(Z);case"[object DataView]":{let ie=x.byteLength;if(ie===Z.byteLength)for(;ie--&&x[ie]===Z[ie];);return ie===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const ie=D.call(x);return ie!==D.call(Z)?!1:!$(ie,g)}}return!1}function m(x){return Object.keys(x).filter(P,x)}function P(x){return this[x]!==void 0}const g="{ [native code] }";function $(x,Z){const F=x.length-Z.length;return F>=0&&x.indexOf(Z,F)===F}function G(x,Z){let F=H.get(x);if(F){if(F.has(Z))return!0}else H.set(x,F=new Set);return F.add(Z),!1}},3217:(Ee,K,p)=>{"use strict";p.d(K,{U:()=>T});function T(d,D){if(!Boolean(d))throw new Error(D)}},5198:(Ee,K,p)=>{"use strict";p.d(K,{N:()=>D});const T=10,d=2;function D(g){return H(g,[])}function H(g,$){switch(typeof g){case"string":return JSON.stringify(g);case"function":return g.name?`[function ${g.name}]`:"[function]";case"object":return V(g,$);default:return String(g)}}function V(g,$){if(g===null)return"null";if($.includes(g))return"[Circular]";const G=[...$,g];if(A(g)){const x=g.toJSON();if(x!==g)return typeof x=="string"?x:H(x,G)}else if(Array.isArray(g))return m(g,G);return y(g,G)}function A(g){return typeof g.toJSON=="function"}function y(g,$){const G=Object.entries(g);if(G.length===0)return"{}";if($.length>d)return"["+P(g)+"]";const x=G.map(([Z,F])=>Z+": "+H(F,$));return"{ "+x.join(", ")+" }"}function m(g,$){if(g.length===0)return"[]";if($.length>d)return"[Array]";const G=Math.min(T,g.length),x=g.length-G,Z=[];for(let F=0;F<G;++F)Z.push(H(g[F],$));return x===1?Z.push("... 1 more item"):x>1&&Z.push(`... ${x} more items`),"["+Z.join(", ")+"]"}function P(g){const $=Object.prototype.toString.call(g).replace(/^\[object /,"").replace(/]$/,"");if($==="Object"&&typeof g.constructor=="function"){const G=g.constructor.name;if(typeof G=="string"&&G!=="")return G}return $}},9762:(Ee,K,p)=>{"use strict";p.d(K,{Ll:()=>V,aD:()=>D,aZ:()=>T,cE:()=>A,ou:()=>d});class T{constructor(m,P,g){this.start=m.start,this.end=P.end,this.startToken=m,this.endToken=P,this.source=g}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class d{constructor(m,P,g,$,G,x){this.kind=m,this.start=P,this.end=g,this.line=$,this.column=G,this.value=x,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const D={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},H=new Set(Object.keys(D));function V(y){const m=y?.kind;return typeof m=="string"&&H.has(m)}var A;(function(y){y.QUERY="query",y.MUTATION="mutation",y.SUBSCRIPTION="subscription"})(A||(A={}))},7714:(Ee,K,p)=>{"use strict";p.d(K,{OC:()=>d,yo:()=>V});var T=p(5881);function d(A){var y;let m=Number.MAX_SAFE_INTEGER,P=null,g=-1;for(let G=0;G<A.length;++G){var $;const x=A[G],Z=D(x);Z!==x.length&&(P=($=P)!==null&&$!==void 0?$:G,g=G,G!==0&&Z<m&&(m=Z))}return A.map((G,x)=>x===0?G:G.slice(m)).slice((y=P)!==null&&y!==void 0?y:0,g+1)}function D(A){let y=0;for(;y<A.length&&(0,T.i0)(A.charCodeAt(y));)++y;return y}function H(A){if(A==="")return!0;let y=!0,m=!1,P=!0,g=!1;for(let $=0;$<A.length;++$)switch(A.codePointAt($)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(y&&!g)return!1;g=!0,y=!0,m=!1;break;case 9:case 32:m||(m=y);break;default:P&&(P=m),y=!1}return!(y||P&&g)}function V(A,y){const m=A.replace(/"""/g,'\\"""'),P=m.split(/\r\n|[\n\r]/g),g=P.length===1,$=P.length>1&&P.slice(1).every(j=>j.length===0||(0,T.i0)(j.charCodeAt(0))),G=m.endsWith('\\"""'),x=A.endsWith('"')&&!G,Z=A.endsWith("\\"),F=x||Z,te=!(y!=null&&y.minimize)&&(!g||A.length>70||F||$||G);let ie="";const ce=g&&(0,T.i0)(A.charCodeAt(0));return(te&&!ce||$)&&(ie+=`
8772
8772
  `),ie+=m,(te||F)&&(ie+=`
8773
8773
  `),'"""'+ie+'"""'}},5881:(Ee,K,p)=>{"use strict";p.d(K,{i0:()=>T,un:()=>H,xr:()=>V,yp:()=>d});function T(A){return A===9||A===32}function d(A){return A>=48&&A<=57}function D(A){return A>=97&&A<=122||A>=65&&A<=90}function H(A){return D(A)||A===95}function V(A){return D(A)||d(A)||A===95}},2455:(Ee,K,p)=>{"use strict";p.d(K,{b:()=>T});var T;(function(d){d.NAME="Name",d.DOCUMENT="Document",d.OPERATION_DEFINITION="OperationDefinition",d.VARIABLE_DEFINITION="VariableDefinition",d.SELECTION_SET="SelectionSet",d.FIELD="Field",d.ARGUMENT="Argument",d.FRAGMENT_SPREAD="FragmentSpread",d.INLINE_FRAGMENT="InlineFragment",d.FRAGMENT_DEFINITION="FragmentDefinition",d.VARIABLE="Variable",d.INT="IntValue",d.FLOAT="FloatValue",d.STRING="StringValue",d.BOOLEAN="BooleanValue",d.NULL="NullValue",d.ENUM="EnumValue",d.LIST="ListValue",d.OBJECT="ObjectValue",d.OBJECT_FIELD="ObjectField",d.DIRECTIVE="Directive",d.NAMED_TYPE="NamedType",d.LIST_TYPE="ListType",d.NON_NULL_TYPE="NonNullType",d.SCHEMA_DEFINITION="SchemaDefinition",d.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",d.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",d.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",d.FIELD_DEFINITION="FieldDefinition",d.INPUT_VALUE_DEFINITION="InputValueDefinition",d.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",d.UNION_TYPE_DEFINITION="UnionTypeDefinition",d.ENUM_TYPE_DEFINITION="EnumTypeDefinition",d.ENUM_VALUE_DEFINITION="EnumValueDefinition",d.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",d.DIRECTIVE_DEFINITION="DirectiveDefinition",d.SCHEMA_EXTENSION="SchemaExtension",d.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",d.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",d.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",d.UNION_TYPE_EXTENSION="UnionTypeExtension",d.ENUM_TYPE_EXTENSION="EnumTypeExtension",d.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(T||(T={}))},5157:(Ee,K,p)=>{"use strict";p.d(K,{qg:()=>ye});function T(B){return typeof B=="object"&&B!==null}function d(B,Q){if(!Boolean(B))throw new Error(Q??"Unexpected invariant triggered.")}const D=/\r\n|[\n\r]/g;function H(B,Q){let J=0,le=1;for(const Se of B.body.matchAll(D)){if(typeof Se.index=="number"||d(!1),Se.index>=Q)break;J=Se.index+Se[0].length,le+=1}return{line:le,column:Q+1-J}}function V(B){return A(B.source,H(B.source,B.start))}function A(B,Q){const J=B.locationOffset.column-1,le="".padStart(J)+B.body,Se=Q.line-1,je=B.locationOffset.line-1,dt=Q.line+je,Xe=Q.line===1?J:0,pt=Q.column+Xe,ht=`${B.name}:${dt}:${pt}
8774
8774
  `,vt=le.split(/\r\n|[\n\r]/g),Qt=vt[Se];if(Qt.length>120){const tr=Math.floor(pt/80),Bt=pt%80,kt=[];for(let zt=0;zt<Qt.length;zt+=80)kt.push(Qt.slice(zt,zt+80));return ht+y([[`${dt} |`,kt[0]],...kt.slice(1,tr+1).map(zt=>["|",zt]),["|","^".padStart(Bt)],["|",kt[tr+1]]])}return ht+y([[`${dt-1} |`,vt[Se-1]],[`${dt} |`,Qt],["|","^".padStart(pt)],[`${dt+1} |`,vt[Se+1]]])}function y(B){const Q=B.filter(([le,Se])=>Se!==void 0),J=Math.max(...Q.map(([le])=>le.length));return Q.map(([le,Se])=>le.padStart(J)+(Se?" "+Se:"")).join(`