@apollosproject/canvas-embeds 2.1.522 → 2.1.524

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/widget/index.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apollosproject/canvas-embeds",
3
3
  "description": "Apollos React embed widgets",
4
- "version": "2.1.522",
4
+ "version": "2.1.524",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",
package/widget/index.js CHANGED
@@ -972,7 +972,7 @@ Valid keys: `+JSON.stringify(Object.keys(W),null," "));var y0=A0(K,Z0,$0,o0,R0+
972
972
  }
973
973
  `);function dW1(a={}){var r;const e=Ni(uW1,{fetchPolicy:"cache-and-network",errorPolicy:"all",...a});return{features:((r=e==null?void 0:e.data)==null?void 0:r.featureFeed)||{},...e}}const lA=a=>{const[e,r]=p.useState({});function n(c,m){r(u=>({...u,[c]:m}))}function l(c){typeof a=="function"&&a()}function o(){r({})}return{setFieldValue:n,handleSubmit:l,values:e,reset:o,setValues:r}};/*! @license DOMPurify 2.5.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.7/LICENSE */function co(a){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},co(a)}function uw(a,e){return uw=Object.setPrototypeOf||function(n,l){return n.__proto__=l,n},uw(a,e)}function pW1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oA(a,e,r){return pW1()?oA=Reflect.construct:oA=function(l,o,c){var m=[null];m.push.apply(m,o);var u=Function.bind.apply(l,m),h=new u;return c&&uw(h,c.prototype),h},oA.apply(null,arguments)}function $r(a){return hW1(a)||fW1(a)||vW1(a)||gW1()}function hW1(a){if(Array.isArray(a))return dw(a)}function fW1(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function vW1(a,e){if(a){if(typeof a=="string")return dw(a,e);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dw(a,e)}}function dw(a,e){(e==null||e>a.length)&&(e=a.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=a[r];return n}function gW1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
974
974
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var AW1=Object.hasOwnProperty,VG=Object.setPrototypeOf,ZW1=Object.isFrozen,yW1=Object.getPrototypeOf,bW1=Object.getOwnPropertyDescriptor,m6=Object.freeze,D4=Object.seal,HW1=Object.create,OG=typeof Reflect<"u"&&Reflect,iA=OG.apply,pw=OG.construct;iA||(iA=function(e,r,n){return e.apply(r,n)}),m6||(m6=function(e){return e}),D4||(D4=function(e){return e}),pw||(pw=function(e,r){return oA(e,$r(r))});var EW1=x4(Array.prototype.forEach),$G=x4(Array.prototype.pop),xu=x4(Array.prototype.push),cA=x4(String.prototype.toLowerCase),hw=x4(String.prototype.toString),wG=x4(String.prototype.match),wr=x4(String.prototype.replace),MW1=x4(String.prototype.indexOf),VW1=x4(String.prototype.trim),da=x4(RegExp.prototype.test),fw=OW1(TypeError);function x4(a){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];return iA(a,e,n)}}function OW1(a){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return pw(a,r)}}function Je(a,e,r){var n;r=(n=r)!==null&&n!==void 0?n:cA,VG&&VG(a,null);for(var l=e.length;l--;){var o=e[l];if(typeof o=="string"){var c=r(o);c!==o&&(ZW1(e)||(e[l]=c),o=c)}a[o]=!0}return a}function o5(a){var e=HW1(null),r;for(r in a)iA(AW1,a,[r])===!0&&(e[r]=a[r]);return e}function sA(a,e){for(;a!==null;){var r=bW1(a,e);if(r){if(r.get)return x4(r.get);if(typeof r.value=="function")return x4(r.value)}a=yW1(a)}function n(l){return console.warn("fallback value for",l),null}return n}var SG=m6(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vw=m6(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),gw=m6(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$W1=m6(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Aw=m6(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),wW1=m6(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),LG=m6(["#text"]),FG=m6(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Zw=m6(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),jG=m6(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mA=m6(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),SW1=D4(/\{\{[\w\W]*|[\w\W]*\}\}/gm),LW1=D4(/<%[\w\W]*|[\w\W]*%>/gm),FW1=D4(/\${[\w\W]*}/gm),jW1=D4(/^data-[\-\w.\u00B7-\uFFFF]/),PW1=D4(/^aria-[\-\w]+$/),kW1=D4(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_W1=D4(/^(?:\w+script|data):/i),CW1=D4(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),NW1=D4(/^html$/i),TW1=D4(/^[a-z][.\w]*(-[.\w]+)+$/i),IW1=function(){return typeof window>"u"?null:window},DW1=function(e,r){if(co(e)!=="object"||typeof e.createPolicy!="function")return null;var n=null,l="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(l)&&(n=r.currentScript.getAttribute(l));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(m){return m},createScriptURL:function(m){return m}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function PG(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:IW1(),e=function(m0){return PG(m0)};if(e.version="2.5.7",e.removed=[],!a||!a.document||a.document.nodeType!==9)return e.isSupported=!1,e;var r=a.document,n=a.document,l=a.DocumentFragment,o=a.HTMLTemplateElement,c=a.Node,m=a.Element,u=a.NodeFilter,h=a.NamedNodeMap,g=h===void 0?a.NamedNodeMap||a.MozNamedAttrMap:h,A=a.HTMLFormElement,y=a.DOMParser,E=a.trustedTypes,M=m.prototype,O=sA(M,"cloneNode"),S=sA(M,"nextSibling"),F=sA(M,"childNodes"),j=sA(M,"parentNode");if(typeof o=="function"){var k=n.createElement("template");k.content&&k.content.ownerDocument&&(n=k.content.ownerDocument)}var N=DW1(E,r),C=N?N.createHTML(""):"",I=n,z=I.implementation,q=I.createNodeIterator,e0=I.createDocumentFragment,G=I.getElementsByTagName,c0=r.importNode,t0={};try{t0=o5(n).documentMode?n.documentMode:{}}catch{}var n0={};e.isSupported=typeof j=="function"&&z&&z.createHTMLDocument!==void 0&&t0!==9;var l0=SW1,J=LW1,W0=FW1,v0=jW1,p0=PW1,w0=_W1,B=CW1,W=TW1,r0=kW1,d0=null,V0=Je({},[].concat($r(SG),$r(vw),$r(gw),$r(Aw),$r(LG))),$0=null,o0=Je({},[].concat($r(FG),$r(Zw),$r(jG),$r(mA))),R0=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,h0=null,g0=!0,Z0=!0,A0=!1,y0=!0,D0=!1,j0=!0,q0=!1,a1=!1,g1=!1,I1=!1,b1=!1,h1=!1,t1=!0,G0=!1,N0="user-content-",r1=!0,B0=!1,Q0={},u1=null,R1=Je({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ee=null,ye=Je({},["audio","video","img","source","image","track"]),c1=null,F1=Je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Pe="http://www.w3.org/1999/xhtml",Z2=Pe,f2=!1,i8=null,Ue=Je({},[de,je,Pe],hw),ke,Be=["application/xhtml+xml","text/html"],m2="text/html",v2,f8=null,Ft=n.createElement("form"),jt=function(m0){return m0 instanceof RegExp||m0 instanceof Function},v8=function(m0){f8&&f8===m0||((!m0||co(m0)!=="object")&&(m0={}),m0=o5(m0),ke=Be.indexOf(m0.PARSER_MEDIA_TYPE)===-1?ke=m2:ke=m0.PARSER_MEDIA_TYPE,v2=ke==="application/xhtml+xml"?hw:cA,d0="ALLOWED_TAGS"in m0?Je({},m0.ALLOWED_TAGS,v2):V0,$0="ALLOWED_ATTR"in m0?Je({},m0.ALLOWED_ATTR,v2):o0,i8="ALLOWED_NAMESPACES"in m0?Je({},m0.ALLOWED_NAMESPACES,hw):Ue,c1="ADD_URI_SAFE_ATTR"in m0?Je(o5(F1),m0.ADD_URI_SAFE_ATTR,v2):F1,Ee="ADD_DATA_URI_TAGS"in m0?Je(o5(ye),m0.ADD_DATA_URI_TAGS,v2):ye,u1="FORBID_CONTENTS"in m0?Je({},m0.FORBID_CONTENTS,v2):R1,K="FORBID_TAGS"in m0?Je({},m0.FORBID_TAGS,v2):{},h0="FORBID_ATTR"in m0?Je({},m0.FORBID_ATTR,v2):{},Q0="USE_PROFILES"in m0?m0.USE_PROFILES:!1,g0=m0.ALLOW_ARIA_ATTR!==!1,Z0=m0.ALLOW_DATA_ATTR!==!1,A0=m0.ALLOW_UNKNOWN_PROTOCOLS||!1,y0=m0.ALLOW_SELF_CLOSE_IN_ATTR!==!1,D0=m0.SAFE_FOR_TEMPLATES||!1,j0=m0.SAFE_FOR_XML!==!1,q0=m0.WHOLE_DOCUMENT||!1,I1=m0.RETURN_DOM||!1,b1=m0.RETURN_DOM_FRAGMENT||!1,h1=m0.RETURN_TRUSTED_TYPE||!1,g1=m0.FORCE_BODY||!1,t1=m0.SANITIZE_DOM!==!1,G0=m0.SANITIZE_NAMED_PROPS||!1,r1=m0.KEEP_CONTENT!==!1,B0=m0.IN_PLACE||!1,r0=m0.ALLOWED_URI_REGEXP||r0,Z2=m0.NAMESPACE||Pe,R0=m0.CUSTOM_ELEMENT_HANDLING||{},m0.CUSTOM_ELEMENT_HANDLING&&jt(m0.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(R0.tagNameCheck=m0.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m0.CUSTOM_ELEMENT_HANDLING&&jt(m0.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(R0.attributeNameCheck=m0.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m0.CUSTOM_ELEMENT_HANDLING&&typeof m0.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(R0.allowCustomizedBuiltInElements=m0.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),D0&&(Z0=!1),b1&&(I1=!0),Q0&&(d0=Je({},$r(LG)),$0=[],Q0.html===!0&&(Je(d0,SG),Je($0,FG)),Q0.svg===!0&&(Je(d0,vw),Je($0,Zw),Je($0,mA)),Q0.svgFilters===!0&&(Je(d0,gw),Je($0,Zw),Je($0,mA)),Q0.mathMl===!0&&(Je(d0,Aw),Je($0,jG),Je($0,mA))),m0.ADD_TAGS&&(d0===V0&&(d0=o5(d0)),Je(d0,m0.ADD_TAGS,v2)),m0.ADD_ATTR&&($0===o0&&($0=o5($0)),Je($0,m0.ADD_ATTR,v2)),m0.ADD_URI_SAFE_ATTR&&Je(c1,m0.ADD_URI_SAFE_ATTR,v2),m0.FORBID_CONTENTS&&(u1===R1&&(u1=o5(u1)),Je(u1,m0.FORBID_CONTENTS,v2)),r1&&(d0["#text"]=!0),q0&&Je(d0,["html","head","body"]),d0.table&&(Je(d0,["tbody"]),delete K.tbody),m6&&m6(m0),f8=m0)},Pt=Je({},["mi","mo","mn","ms","mtext"]),u0=Je({},["annotation-xml"]),O0=Je({},["title","style","font","a","script"]),_0=Je({},vw);Je(_0,gw),Je(_0,$W1);var n1=Je({},Aw);Je(n1,wW1);var $1=function(m0){var e1=j(m0);(!e1||!e1.tagName)&&(e1={namespaceURI:Z2,tagName:"template"});var f1=cA(m0.tagName),z1=cA(e1.tagName);return i8[m0.namespaceURI]?m0.namespaceURI===je?e1.namespaceURI===Pe?f1==="svg":e1.namespaceURI===de?f1==="svg"&&(z1==="annotation-xml"||Pt[z1]):!!_0[f1]:m0.namespaceURI===de?e1.namespaceURI===Pe?f1==="math":e1.namespaceURI===je?f1==="math"&&u0[z1]:!!n1[f1]:m0.namespaceURI===Pe?e1.namespaceURI===je&&!u0[z1]||e1.namespaceURI===de&&!Pt[z1]?!1:!n1[f1]&&(O0[f1]||!_0[f1]):!!(ke==="application/xhtml+xml"&&i8[m0.namespaceURI]):!1},O1=function(m0){xu(e.removed,{element:m0});try{m0.parentNode.removeChild(m0)}catch{try{m0.outerHTML=C}catch{m0.remove()}}},Q1=function(m0,e1){try{xu(e.removed,{attribute:e1.getAttributeNode(m0),from:e1})}catch{xu(e.removed,{attribute:null,from:e1})}if(e1.removeAttribute(m0),m0==="is"&&!$0[m0])if(I1||b1)try{O1(e1)}catch{}else try{e1.setAttribute(m0,"")}catch{}},j1=function(m0){var e1,f1;if(g1)m0="<remove></remove>"+m0;else{var z1=wG(m0,/^[\r\n\t ]+/);f1=z1&&z1[0]}ke==="application/xhtml+xml"&&Z2===Pe&&(m0='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m0+"</body></html>");var Qe=N?N.createHTML(m0):m0;if(Z2===Pe)try{e1=new y().parseFromString(Qe,ke)}catch{}if(!e1||!e1.documentElement){e1=z.createDocument(Z2,"template",null);try{e1.documentElement.innerHTML=f2?C:Qe}catch{}}var g2=e1.body||e1.documentElement;return m0&&f1&&g2.insertBefore(n.createTextNode(f1),g2.childNodes[0]||null),Z2===Pe?G.call(e1,q0?"html":"body")[0]:q0?e1.documentElement:g2},Q=function(m0){return q.call(m0.ownerDocument||m0,m0,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null,!1)},S0=function(m0){return m0 instanceof A&&(typeof m0.nodeName!="string"||typeof m0.textContent!="string"||typeof m0.removeChild!="function"||!(m0.attributes instanceof g)||typeof m0.removeAttribute!="function"||typeof m0.setAttribute!="function"||typeof m0.namespaceURI!="string"||typeof m0.insertBefore!="function"||typeof m0.hasChildNodes!="function")},C0=function(m0){return co(c)==="object"?m0 instanceof c:m0&&co(m0)==="object"&&typeof m0.nodeType=="number"&&typeof m0.nodeName=="string"},J0=function(m0,e1,f1){n0[m0]&&EW1(n0[m0],function(z1){z1.call(e,e1,f1,f8)})},v1=function(m0){var e1;if(J0("beforeSanitizeElements",m0,null),S0(m0)||da(/[\u0080-\uFFFF]/,m0.nodeName))return O1(m0),!0;var f1=v2(m0.nodeName);if(J0("uponSanitizeElement",m0,{tagName:f1,allowedTags:d0}),m0.hasChildNodes()&&!C0(m0.firstElementChild)&&(!C0(m0.content)||!C0(m0.content.firstElementChild))&&da(/<[/\w]/g,m0.innerHTML)&&da(/<[/\w]/g,m0.textContent)||f1==="select"&&da(/<template/i,m0.innerHTML)||m0.nodeType===7||j0&&m0.nodeType===8&&da(/<[/\w]/g,m0.data))return O1(m0),!0;if(!d0[f1]||K[f1]){if(!K[f1]&&k1(f1)&&(R0.tagNameCheck instanceof RegExp&&da(R0.tagNameCheck,f1)||R0.tagNameCheck instanceof Function&&R0.tagNameCheck(f1)))return!1;if(r1&&!u1[f1]){var z1=j(m0)||m0.parentNode,Qe=F(m0)||m0.childNodes;if(Qe&&z1)for(var g2=Qe.length,qe=g2-1;qe>=0;--qe){var ce=O(Qe[qe],!0);ce.__removalCount=(m0.__removalCount||0)+1,z1.insertBefore(ce,S(m0))}}return O1(m0),!0}return m0 instanceof m&&!$1(m0)||(f1==="noscript"||f1==="noembed"||f1==="noframes")&&da(/<\/no(script|embed|frames)/i,m0.innerHTML)?(O1(m0),!0):(D0&&m0.nodeType===3&&(e1=m0.textContent,e1=wr(e1,l0," "),e1=wr(e1,J," "),e1=wr(e1,W0," "),m0.textContent!==e1&&(xu(e.removed,{element:m0.cloneNode()}),m0.textContent=e1)),J0("afterSanitizeElements",m0,null),!1)},ae=function(m0,e1,f1){if(t1&&(e1==="id"||e1==="name")&&(f1 in n||f1 in Ft))return!1;if(!(Z0&&!h0[e1]&&da(v0,e1))){if(!(g0&&da(p0,e1))){if(!$0[e1]||h0[e1]){if(!(k1(m0)&&(R0.tagNameCheck instanceof RegExp&&da(R0.tagNameCheck,m0)||R0.tagNameCheck instanceof Function&&R0.tagNameCheck(m0))&&(R0.attributeNameCheck instanceof RegExp&&da(R0.attributeNameCheck,e1)||R0.attributeNameCheck instanceof Function&&R0.attributeNameCheck(e1))||e1==="is"&&R0.allowCustomizedBuiltInElements&&(R0.tagNameCheck instanceof RegExp&&da(R0.tagNameCheck,f1)||R0.tagNameCheck instanceof Function&&R0.tagNameCheck(f1))))return!1}else if(!c1[e1]){if(!da(r0,wr(f1,B,""))){if(!((e1==="src"||e1==="xlink:href"||e1==="href")&&m0!=="script"&&MW1(f1,"data:")===0&&Ee[m0])){if(!(A0&&!da(w0,wr(f1,B,"")))){if(f1)return!1}}}}}}return!0},k1=function(m0){return m0!=="annotation-xml"&&wG(m0,W)},H1=function(m0){var e1,f1,z1,Qe;J0("beforeSanitizeAttributes",m0,null);var g2=m0.attributes;if(g2){var qe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$0};for(Qe=g2.length;Qe--;){e1=g2[Qe];var ce=e1,K1=ce.name,Ke=ce.namespaceURI;if(f1=K1==="value"?e1.value:VW1(e1.value),z1=v2(K1),qe.attrName=z1,qe.attrValue=f1,qe.keepAttr=!0,qe.forceKeepAttr=void 0,J0("uponSanitizeAttribute",m0,qe),f1=qe.attrValue,!qe.forceKeepAttr&&(Q1(K1,m0),!!qe.keepAttr)){if(!y0&&da(/\/>/i,f1)){Q1(K1,m0);continue}D0&&(f1=wr(f1,l0," "),f1=wr(f1,J," "),f1=wr(f1,W0," "));var N8=v2(m0.nodeName);if(ae(N8,z1,f1)){if(G0&&(z1==="id"||z1==="name")&&(Q1(K1,m0),f1=N0+f1),j0&&da(/((--!?|])>)|<\/(style|title)/i,f1)){Q1(K1,m0);continue}if(N&&co(E)==="object"&&typeof E.getAttributeType=="function"&&!Ke)switch(E.getAttributeType(N8,z1)){case"TrustedHTML":{f1=N.createHTML(f1);break}case"TrustedScriptURL":{f1=N.createScriptURL(f1);break}}try{Ke?m0.setAttributeNS(Ke,K1,f1):m0.setAttribute(K1,f1),S0(m0)?O1(m0):$G(e.removed)}catch{}}}}J0("afterSanitizeAttributes",m0,null)}},$e=function E1(m0){var e1,f1=Q(m0);for(J0("beforeSanitizeShadowDOM",m0,null);e1=f1.nextNode();)J0("uponSanitizeShadowNode",e1,null),!v1(e1)&&(e1.content instanceof l&&E1(e1.content),H1(e1));J0("afterSanitizeShadowDOM",m0,null)};return e.sanitize=function(E1){var m0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e1,f1,z1,Qe,g2;if(f2=!E1,f2&&(E1="<!-->"),typeof E1!="string"&&!C0(E1))if(typeof E1.toString=="function"){if(E1=E1.toString(),typeof E1!="string")throw fw("dirty is not a string, aborting")}else throw fw("toString is not a function");if(!e.isSupported){if(co(a.toStaticHTML)==="object"||typeof a.toStaticHTML=="function"){if(typeof E1=="string")return a.toStaticHTML(E1);if(C0(E1))return a.toStaticHTML(E1.outerHTML)}return E1}if(a1||v8(m0),e.removed=[],typeof E1=="string"&&(B0=!1),B0){if(E1.nodeName){var qe=v2(E1.nodeName);if(!d0[qe]||K[qe])throw fw("root node is forbidden and cannot be sanitized in-place")}}else if(E1 instanceof c)e1=j1("<!---->"),f1=e1.ownerDocument.importNode(E1,!0),f1.nodeType===1&&f1.nodeName==="BODY"||f1.nodeName==="HTML"?e1=f1:e1.appendChild(f1);else{if(!I1&&!D0&&!q0&&E1.indexOf("<")===-1)return N&&h1?N.createHTML(E1):E1;if(e1=j1(E1),!e1)return I1?null:h1?C:""}e1&&g1&&O1(e1.firstChild);for(var ce=Q(B0?E1:e1);z1=ce.nextNode();)z1.nodeType===3&&z1===Qe||v1(z1)||(z1.content instanceof l&&$e(z1.content),H1(z1),Qe=z1);if(Qe=null,B0)return E1;if(I1){if(b1)for(g2=e0.call(e1.ownerDocument);e1.firstChild;)g2.appendChild(e1.firstChild);else g2=e1;return($0.shadowroot||$0.shadowrootmod)&&(g2=c0.call(r,g2,!0)),g2}var K1=q0?e1.outerHTML:e1.innerHTML;return q0&&d0["!doctype"]&&e1.ownerDocument&&e1.ownerDocument.doctype&&e1.ownerDocument.doctype.name&&da(NW1,e1.ownerDocument.doctype.name)&&(K1="<!DOCTYPE "+e1.ownerDocument.doctype.name+`>
975
- `+K1),D0&&(K1=wr(K1,l0," "),K1=wr(K1,J," "),K1=wr(K1,W0," ")),N&&h1?N.createHTML(K1):K1},e.setConfig=function(E1){v8(E1),a1=!0},e.clearConfig=function(){f8=null,a1=!1},e.isValidAttribute=function(E1,m0,e1){f8||v8({});var f1=v2(E1),z1=v2(m0);return ae(f1,z1,e1)},e.addHook=function(E1,m0){typeof m0=="function"&&(n0[E1]=n0[E1]||[],xu(n0[E1],m0))},e.removeHook=function(E1){if(n0[E1])return $G(n0[E1])},e.removeHooks=function(E1){n0[E1]&&(n0[E1]=[])},e.removeAllHooks=function(){n0={}},e}PG();function uA({id:a}){const{features:e}=dW1({variables:{id:a}});return w.jsx(D$,{featureFeed:e})}var xW1=" daum[ /]| deusu/| yadirectfetcher|(?:^| )site|(?:^|[^g])news|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bot(?:[^\\w]|_|$)|(?<! ya(?:yandex)?)search|(?<!(?:lib))http|(?<![hg]m)score|@[a-z]|\\(at\\)[a-z]|\\[at\\][a-z]|^12345|^<|^[\\w \\.\\-\\(?:\\):]+(?:/v?\\d+(\\.\\d+)?(?:\\.\\d{1,10})?)?(?:,|$)|^[^ ]{50,}$|^active|^ad muncher|^amaya|^anglesharp/|^avsdevicesdk/|^bidtellect/|^biglotron|^bot|^btwebclient/|^clamav[ /]|^client/|^cobweb/|^coccoc|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^facebook|^fdm[ /]\\d|^getright/|^gozilla/|^hatena|^hobbit|^hotzonu|^hwcdn/|^jeode/|^jetty/|^jigsaw|^linkdex|^metauri|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d \\(compatible;?\\)$|^mozilla/\\d\\.\\d \\w*$|^navermailapp|^netsurf|^nuclei|^offline explorer|^php|^postman|^postrank|^python|^rank|^read|^reed|^rest|^serf|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^tumblr/|^user-agent:|^valid|^venus/fedoraplanet|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|^{{.*}}$|adbeat\\.com|appinsights|archive|ask jeeves/teoma|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check|chrome-lighthouse|chromeframe|classifier|cloud|crawl|cryptoapi|dareboost|datanyze|dataprovider|dejaclick|dmbrowser|download|evc-batch/|feed|firephp|freesafeip|gomezagent|headless|httrack|hubspot marketing grader|hydra|ibisbrowser|images|inspect|iplabel|ips-agent|java(?!;)|library|mail\\.ru/|manager|monitor|neustar wpm|nutch|offbyone|optimize|pageburst|parser|perl|phantom|pingdom|powermarks|preview|proxy|ptst[ /]\\d|reader|reputation|resolver|retriever|rexx;|rigor|robot|rss|scan|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|stumbleupon\\.com|supercleaner|synapse|synthetic|torrent|trace|transcoder|twingly recon|url|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|wordpress|zgrab",RW1=/bot|spider|crawl|http|lighthouse/i,dA;function zW1(a){if(typeof dA>"u")try{dA=new RegExp(xW1,"i")}catch{dA=RW1}return!!a&&dA.test(a)}function yw(){return typeof window=="object"&&(window==null?void 0:window.document)!==void 0}var UW1=function(){var a;if(yw()){var e=window,r=Array;if(e.Prototype!==void 0&&((a=r.prototype)===null||a===void 0?void 0:a.toJSON)!==void 0)return delete r.prototype.toJSON,!0}return!1},kG={exports:{}};(function(a){(function(e){function r(C,I){var z=(C&65535)+(I&65535),q=(C>>16)+(I>>16)+(z>>16);return q<<16|z&65535}function n(C,I){return C<<I|C>>>32-I}function l(C,I,z,q,e0,G){return r(n(r(r(I,C),r(q,G)),e0),z)}function o(C,I,z,q,e0,G,c0){return l(I&z|~I&q,C,I,e0,G,c0)}function c(C,I,z,q,e0,G,c0){return l(I&q|z&~q,C,I,e0,G,c0)}function m(C,I,z,q,e0,G,c0){return l(I^z^q,C,I,e0,G,c0)}function u(C,I,z,q,e0,G,c0){return l(z^(I|~q),C,I,e0,G,c0)}function h(C,I){C[I>>5]|=128<<I%32,C[(I+64>>>9<<4)+14]=I;var z,q,e0,G,c0,t0=1732584193,n0=-271733879,l0=-1732584194,J=271733878;for(z=0;z<C.length;z+=16)q=t0,e0=n0,G=l0,c0=J,t0=o(t0,n0,l0,J,C[z],7,-680876936),J=o(J,t0,n0,l0,C[z+1],12,-389564586),l0=o(l0,J,t0,n0,C[z+2],17,606105819),n0=o(n0,l0,J,t0,C[z+3],22,-1044525330),t0=o(t0,n0,l0,J,C[z+4],7,-176418897),J=o(J,t0,n0,l0,C[z+5],12,1200080426),l0=o(l0,J,t0,n0,C[z+6],17,-1473231341),n0=o(n0,l0,J,t0,C[z+7],22,-45705983),t0=o(t0,n0,l0,J,C[z+8],7,1770035416),J=o(J,t0,n0,l0,C[z+9],12,-1958414417),l0=o(l0,J,t0,n0,C[z+10],17,-42063),n0=o(n0,l0,J,t0,C[z+11],22,-1990404162),t0=o(t0,n0,l0,J,C[z+12],7,1804603682),J=o(J,t0,n0,l0,C[z+13],12,-40341101),l0=o(l0,J,t0,n0,C[z+14],17,-1502002290),n0=o(n0,l0,J,t0,C[z+15],22,1236535329),t0=c(t0,n0,l0,J,C[z+1],5,-165796510),J=c(J,t0,n0,l0,C[z+6],9,-1069501632),l0=c(l0,J,t0,n0,C[z+11],14,643717713),n0=c(n0,l0,J,t0,C[z],20,-373897302),t0=c(t0,n0,l0,J,C[z+5],5,-701558691),J=c(J,t0,n0,l0,C[z+10],9,38016083),l0=c(l0,J,t0,n0,C[z+15],14,-660478335),n0=c(n0,l0,J,t0,C[z+4],20,-405537848),t0=c(t0,n0,l0,J,C[z+9],5,568446438),J=c(J,t0,n0,l0,C[z+14],9,-1019803690),l0=c(l0,J,t0,n0,C[z+3],14,-187363961),n0=c(n0,l0,J,t0,C[z+8],20,1163531501),t0=c(t0,n0,l0,J,C[z+13],5,-1444681467),J=c(J,t0,n0,l0,C[z+2],9,-51403784),l0=c(l0,J,t0,n0,C[z+7],14,1735328473),n0=c(n0,l0,J,t0,C[z+12],20,-1926607734),t0=m(t0,n0,l0,J,C[z+5],4,-378558),J=m(J,t0,n0,l0,C[z+8],11,-2022574463),l0=m(l0,J,t0,n0,C[z+11],16,1839030562),n0=m(n0,l0,J,t0,C[z+14],23,-35309556),t0=m(t0,n0,l0,J,C[z+1],4,-1530992060),J=m(J,t0,n0,l0,C[z+4],11,1272893353),l0=m(l0,J,t0,n0,C[z+7],16,-155497632),n0=m(n0,l0,J,t0,C[z+10],23,-1094730640),t0=m(t0,n0,l0,J,C[z+13],4,681279174),J=m(J,t0,n0,l0,C[z],11,-358537222),l0=m(l0,J,t0,n0,C[z+3],16,-722521979),n0=m(n0,l0,J,t0,C[z+6],23,76029189),t0=m(t0,n0,l0,J,C[z+9],4,-640364487),J=m(J,t0,n0,l0,C[z+12],11,-421815835),l0=m(l0,J,t0,n0,C[z+15],16,530742520),n0=m(n0,l0,J,t0,C[z+2],23,-995338651),t0=u(t0,n0,l0,J,C[z],6,-198630844),J=u(J,t0,n0,l0,C[z+7],10,1126891415),l0=u(l0,J,t0,n0,C[z+14],15,-1416354905),n0=u(n0,l0,J,t0,C[z+5],21,-57434055),t0=u(t0,n0,l0,J,C[z+12],6,1700485571),J=u(J,t0,n0,l0,C[z+3],10,-1894986606),l0=u(l0,J,t0,n0,C[z+10],15,-1051523),n0=u(n0,l0,J,t0,C[z+1],21,-2054922799),t0=u(t0,n0,l0,J,C[z+8],6,1873313359),J=u(J,t0,n0,l0,C[z+15],10,-30611744),l0=u(l0,J,t0,n0,C[z+6],15,-1560198380),n0=u(n0,l0,J,t0,C[z+13],21,1309151649),t0=u(t0,n0,l0,J,C[z+4],6,-145523070),J=u(J,t0,n0,l0,C[z+11],10,-1120210379),l0=u(l0,J,t0,n0,C[z+2],15,718787259),n0=u(n0,l0,J,t0,C[z+9],21,-343485551),t0=r(t0,q),n0=r(n0,e0),l0=r(l0,G),J=r(J,c0);return[t0,n0,l0,J]}function g(C){var I,z="",q=C.length*32;for(I=0;I<q;I+=8)z+=String.fromCharCode(C[I>>5]>>>I%32&255);return z}function A(C){var I,z=[];for(z[(C.length>>2)-1]=void 0,I=0;I<z.length;I+=1)z[I]=0;var q=C.length*8;for(I=0;I<q;I+=8)z[I>>5]|=(C.charCodeAt(I/8)&255)<<I%32;return z}function y(C){return g(h(A(C),C.length*8))}function E(C,I){var z,q=A(C),e0=[],G=[],c0;for(e0[15]=G[15]=void 0,q.length>16&&(q=h(q,C.length*8)),z=0;z<16;z+=1)e0[z]=q[z]^909522486,G[z]=q[z]^1549556828;return c0=h(e0.concat(A(I)),512+I.length*8),g(h(G.concat(c0),640))}function M(C){var I="0123456789abcdef",z="",q,e0;for(e0=0;e0<C.length;e0+=1)q=C.charCodeAt(e0),z+=I.charAt(q>>>4&15)+I.charAt(q&15);return z}function O(C){return unescape(encodeURIComponent(C))}function S(C){return y(O(C))}function F(C){return M(S(C))}function j(C,I){return E(O(C),O(I))}function k(C,I){return M(j(C,I))}function N(C,I,z){return I?z?j(I,C):k(I,C):z?S(C):F(C)}a.exports?a.exports=N:e.md5=N})(he)})(kG);var BW1=kG.exports;const qW1=$2(BW1),_G="%[a-f0-9]{2}",CG=new RegExp("("+_G+")|([^%]+?)","gi"),NG=new RegExp("("+_G+")+","gi");function bw(a,e){try{return[decodeURIComponent(a.join(""))]}catch{}if(a.length===1)return a;e=e||1;const r=a.slice(0,e),n=a.slice(e);return Array.prototype.concat.call([],bw(r),bw(n))}function WW1(a){try{return decodeURIComponent(a)}catch{let e=a.match(CG)||[];for(let r=1;r<e.length;r++)a=bw(e,r).join(""),e=a.match(CG)||[];return a}}function GW1(a){const e={"%FE%FF":"��","%FF%FE":"��"};let r=NG.exec(a);for(;r;){try{e[r[0]]=decodeURIComponent(r[0])}catch{const l=WW1(r[0]);l!==r[0]&&(e[r[0]]=l)}r=NG.exec(a)}e["%C2"]="�";const n=Object.keys(e);for(const l of n)a=a.replace(new RegExp(l,"g"),e[l]);return a}function YW1(a){if(typeof a!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof a+"`");try{return decodeURIComponent(a)}catch{return GW1(a)}}function TG(a,e){if(!(typeof a=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(a===""||e==="")return[];const r=a.indexOf(e);return r===-1?[]:[a.slice(0,r),a.slice(r+e.length)]}function QW1(a,e){const r={};if(Array.isArray(e))for(const n of e){const l=Object.getOwnPropertyDescriptor(a,n);l!=null&&l.enumerable&&Object.defineProperty(r,n,l)}else for(const n of Reflect.ownKeys(a)){const l=Object.getOwnPropertyDescriptor(a,n);if(l.enumerable){const o=a[n];e(n,o,a)&&Object.defineProperty(r,n,l)}}return r}const KW1=a=>a==null,XW1=a=>encodeURIComponent(a).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Hw=Symbol("encodeFragmentIdentifier");function JW1(a){switch(a.arrayFormat){case"index":return e=>(r,n)=>{const l=r.length;return n===void 0||a.skipNull&&n===null||a.skipEmptyString&&n===""?r:n===null?[...r,[ft(e,a),"[",l,"]"].join("")]:[...r,[ft(e,a),"[",ft(l,a),"]=",ft(n,a)].join("")]};case"bracket":return e=>(r,n)=>n===void 0||a.skipNull&&n===null||a.skipEmptyString&&n===""?r:n===null?[...r,[ft(e,a),"[]"].join("")]:[...r,[ft(e,a),"[]=",ft(n,a)].join("")];case"colon-list-separator":return e=>(r,n)=>n===void 0||a.skipNull&&n===null||a.skipEmptyString&&n===""?r:n===null?[...r,[ft(e,a),":list="].join("")]:[...r,[ft(e,a),":list=",ft(n,a)].join("")];case"comma":case"separator":case"bracket-separator":{const e=a.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,l)=>l===void 0||a.skipNull&&l===null||a.skipEmptyString&&l===""?n:(l=l===null?"":l,n.length===0?[[ft(r,a),e,ft(l,a)].join("")]:[[n,ft(l,a)].join(a.arrayFormatSeparator)])}default:return e=>(r,n)=>n===void 0||a.skipNull&&n===null||a.skipEmptyString&&n===""?r:n===null?[...r,ft(e,a)]:[...r,[ft(e,a),"=",ft(n,a)].join("")]}}function eG1(a){let e;switch(a.arrayFormat){case"index":return(r,n,l)=>{if(e=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),!e){l[r]=n;return}l[r]===void 0&&(l[r]={}),l[r][e[1]]=n};case"bracket":return(r,n,l)=>{if(e=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),!e){l[r]=n;return}if(l[r]===void 0){l[r]=[n];return}l[r]=[...l[r],n]};case"colon-list-separator":return(r,n,l)=>{if(e=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!e){l[r]=n;return}if(l[r]===void 0){l[r]=[n];return}l[r]=[...l[r],n]};case"comma":case"separator":return(r,n,l)=>{const o=typeof n=="string"&&n.includes(a.arrayFormatSeparator),c=typeof n=="string"&&!o&&_l(n,a).includes(a.arrayFormatSeparator);n=c?_l(n,a):n;const m=o||c?n.split(a.arrayFormatSeparator).map(u=>_l(u,a)):n===null?n:_l(n,a);l[r]=m};case"bracket-separator":return(r,n,l)=>{const o=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!o){l[r]=n&&_l(n,a);return}const c=n===null?[]:n.split(a.arrayFormatSeparator).map(m=>_l(m,a));if(l[r]===void 0){l[r]=c;return}l[r]=[...l[r],...c]};default:return(r,n,l)=>{if(l[r]===void 0){l[r]=n;return}l[r]=[...[l[r]].flat(),n]}}}function IG(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ft(a,e){return e.encode?e.strict?XW1(a):encodeURIComponent(a):a}function _l(a,e){return e.decode?YW1(a):a}function DG(a){return Array.isArray(a)?a.sort():typeof a=="object"?DG(Object.keys(a)).sort((e,r)=>Number(e)-Number(r)).map(e=>a[e]):a}function xG(a){const e=a.indexOf("#");return e!==-1&&(a=a.slice(0,e)),a}function tG1(a){let e="";const r=a.indexOf("#");return r!==-1&&(e=a.slice(r)),e}function RG(a,e){return e.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):e.parseBooleans&&a!==null&&(a.toLowerCase()==="true"||a.toLowerCase()==="false")&&(a=a.toLowerCase()==="true"),a}function Ew(a){a=xG(a);const e=a.indexOf("?");return e===-1?"":a.slice(e+1)}function Mw(a,e){e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...e},IG(e.arrayFormatSeparator);const r=eG1(e),n=Object.create(null);if(typeof a!="string"||(a=a.trim().replace(/^[?#&]/,""),!a))return n;for(const l of a.split("&")){if(l==="")continue;const o=e.decode?l.replace(/\+/g," "):l;let[c,m]=TG(o,"=");c===void 0&&(c=o),m=m===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?m:_l(m,e),r(_l(c,e),m,n)}for(const[l,o]of Object.entries(n))if(typeof o=="object"&&o!==null)for(const[c,m]of Object.entries(o))o[c]=RG(m,e);else n[l]=RG(o,e);return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((l,o)=>{const c=n[o];return c&&typeof c=="object"&&!Array.isArray(c)?l[o]=DG(c):l[o]=c,l},Object.create(null))}function zG(a,e){if(!a)return"";e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e},IG(e.arrayFormatSeparator);const r=c=>e.skipNull&&KW1(a[c])||e.skipEmptyString&&a[c]==="",n=JW1(e),l={};for(const[c,m]of Object.entries(a))r(c)||(l[c]=m);const o=Object.keys(l);return e.sort!==!1&&o.sort(e.sort),o.map(c=>{const m=a[c];return m===void 0?"":m===null?ft(c,e):Array.isArray(m)?m.length===0&&e.arrayFormat==="bracket-separator"?ft(c,e)+"[]":m.reduce(n(c),[]).join("&"):ft(c,e)+"="+ft(m,e)}).filter(c=>c.length>0).join("&")}function UG(a,e){var l;e={decode:!0,...e};let[r,n]=TG(a,"#");return r===void 0&&(r=a),{url:((l=r==null?void 0:r.split("?"))==null?void 0:l[0])??"",query:Mw(Ew(a),e),...e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:_l(n,e)}:{}}}function BG(a,e){e={encode:!0,strict:!0,[Hw]:!0,...e};const r=xG(a.url).split("?")[0]||"",n=Ew(a.url),l={...Mw(n,{sort:!1}),...a.query};let o=zG(l,e);o&&(o=`?${o}`);let c=tG1(a.url);if(a.fragmentIdentifier){const m=new URL(r);m.hash=a.fragmentIdentifier,c=e[Hw]?m.hash:`#${a.fragmentIdentifier}`}return`${r}${o}${c}`}function qG(a,e,r){r={parseFragmentIdentifier:!0,[Hw]:!1,...r};const{url:n,query:l,fragmentIdentifier:o}=UG(a,r);return BG({url:n,query:QW1(l,e),fragmentIdentifier:o},r)}function aG1(a,e,r){const n=Array.isArray(e)?l=>!e.includes(l):(l,o)=>!e(l,o);return qG(a,n,r)}const Vw=Object.freeze(Object.defineProperty({__proto__:null,exclude:aG1,extract:Ew,parse:Mw,parseUrl:UG,pick:qG,stringify:zG,stringifyUrl:BG},Symbol.toStringTag,{value:"Module"}));var Ow={exports:{}};(function(a,e){(function(r,n){var l="0.7.33",o="",c="?",m="function",u="undefined",h="object",g="string",A="major",y="model",E="name",M="type",O="vendor",S="version",F="architecture",j="console",k="mobile",N="tablet",C="smarttv",I="wearable",z="embedded",q=350,e0="Amazon",G="Apple",c0="ASUS",t0="BlackBerry",n0="Browser",l0="Chrome",J="Edge",W0="Firefox",v0="Google",p0="Huawei",w0="LG",B="Microsoft",W="Motorola",r0="Opera",d0="Samsung",V0="Sharp",$0="Sony",o0="Xiaomi",R0="Zebra",K="Facebook",h0=function(G0,N0){var r1={};for(var B0 in G0)N0[B0]&&N0[B0].length%2===0?r1[B0]=N0[B0].concat(G0[B0]):r1[B0]=G0[B0];return r1},g0=function(G0){for(var N0={},r1=0;r1<G0.length;r1++)N0[G0[r1].toUpperCase()]=G0[r1];return N0},Z0=function(G0,N0){return typeof G0===g?A0(N0).indexOf(A0(G0))!==-1:!1},A0=function(G0){return G0.toLowerCase()},y0=function(G0){return typeof G0===g?G0.replace(/[^\d\.]/g,o).split(".")[0]:n},D0=function(G0,N0){if(typeof G0===g)return G0=G0.replace(/^\s\s*/,o),typeof N0===u?G0:G0.substring(0,q)},j0=function(G0,N0){for(var r1=0,B0,Q0,u1,R1,Ee,ye;r1<N0.length&&!Ee;){var c1=N0[r1],F1=N0[r1+1];for(B0=Q0=0;B0<c1.length&&!Ee;)if(Ee=c1[B0++].exec(G0),Ee)for(u1=0;u1<F1.length;u1++)ye=Ee[++Q0],R1=F1[u1],typeof R1===h&&R1.length>0?R1.length===2?typeof R1[1]==m?this[R1[0]]=R1[1].call(this,ye):this[R1[0]]=R1[1]:R1.length===3?typeof R1[1]===m&&!(R1[1].exec&&R1[1].test)?this[R1[0]]=ye?R1[1].call(this,ye,R1[2]):n:this[R1[0]]=ye?ye.replace(R1[1],R1[2]):n:R1.length===4&&(this[R1[0]]=ye?R1[3].call(this,ye.replace(R1[1],R1[2])):n):this[R1]=ye||n;r1+=2}},q0=function(G0,N0){for(var r1 in N0)if(typeof N0[r1]===h&&N0[r1].length>0){for(var B0=0;B0<N0[r1].length;B0++)if(Z0(N0[r1][B0],G0))return r1===c?n:r1}else if(Z0(N0[r1],G0))return r1===c?n:r1;return G0},a1={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},g1={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},I1={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[S,[E,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[S,[E,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[E,S],[/opios[\/ ]+([\w\.]+)/i],[S,[E,r0+" Mini"]],[/\bopr\/([\w\.]+)/i],[S,[E,r0]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[E,S],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[S,[E,"UC"+n0]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[S,[E,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[S,[E,"WeChat"]],[/konqueror\/([\w\.]+)/i],[S,[E,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[S,[E,"IE"]],[/yabrowser\/([\w\.]+)/i],[S,[E,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[E,/(.+)/,"$1 Secure "+n0],S],[/\bfocus\/([\w\.]+)/i],[S,[E,W0+" Focus"]],[/\bopt\/([\w\.]+)/i],[S,[E,r0+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[S,[E,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[S,[E,"Dolphin"]],[/coast\/([\w\.]+)/i],[S,[E,r0+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[S,[E,"MIUI "+n0]],[/fxios\/([-\w\.]+)/i],[S,[E,W0]],[/\bqihu|(qi?ho?o?|360)browser/i],[[E,"360 "+n0]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[E,/(.+)/,"$1 "+n0],S],[/(comodo_dragon)\/([\w\.]+)/i],[[E,/_/g," "],S],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[E,S],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[E],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[E,K],S],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[E,S],[/\bgsa\/([\w\.]+) .*safari\//i],[S,[E,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[S,[E,l0+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[E,l0+" WebView"],S],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[S,[E,"Android "+n0]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[E,S],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[S,[E,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[S,E],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[E,[S,q0,a1]],[/(webkit|khtml)\/([\w\.]+)/i],[E,S],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[E,"Netscape"],S],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[S,[E,W0+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[E,S],[/(cobalt)\/([\w\.]+)/i],[E,[S,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[F,"amd64"]],[/(ia32(?=;))/i],[[F,A0]],[/((?:i[346]|x)86)[;\)]/i],[[F,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[F,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[F,"armhf"]],[/windows (ce|mobile); ppc;/i],[[F,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[F,/ower/,o,A0]],[/(sun4\w)[;\)]/i],[[F,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[F,A0]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[y,[O,d0],[M,N]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[y,[O,d0],[M,k]],[/((ipod|iphone)\d+,\d+)/i],[y,[O,G],[M,k]],[/(ipad\d+,\d+)/i],[y,[O,G],[M,N]],[/\((ip(?:hone|od)[\w ]*);/i],[y,[O,G],[M,k]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[y,[O,G],[M,N]],[/(macintosh);/i],[y,[O,G]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[y,[O,p0],[M,N]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[y,[O,p0],[M,k]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[y,/_/g," "],[O,o0],[M,k]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[y,/_/g," "],[O,o0],[M,N]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[y,[O,"OPPO"],[M,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[y,[O,"Vivo"],[M,k]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[y,[O,"Realme"],[M,k]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[y,[O,W],[M,k]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[y,[O,W],[M,N]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[y,[O,w0],[M,N]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[y,[O,w0],[M,k]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[y,[O,"Lenovo"],[M,N]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[y,/_/g," "],[O,"Nokia"],[M,k]],[/(pixel c)\b/i],[y,[O,v0],[M,N]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[y,[O,v0],[M,k]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[y,[O,$0],[M,k]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[y,"Xperia Tablet"],[O,$0],[M,N]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[y,[O,"OnePlus"],[M,k]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[y,[O,e0],[M,N]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[y,/(.+)/g,"Fire Phone $1"],[O,e0],[M,k]],[/(playbook);[-\w\),; ]+(rim)/i],[y,O,[M,N]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[y,[O,t0],[M,k]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[y,[O,c0],[M,N]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[y,[O,c0],[M,k]],[/(nexus 9)/i],[y,[O,"HTC"],[M,N]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[O,[y,/_/g," "],[M,k]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[y,[O,"Acer"],[M,N]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[y,[O,"Meizu"],[M,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[y,[O,V0],[M,k]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[O,y,[M,k]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[O,y,[M,N]],[/(surface duo)/i],[y,[O,B],[M,N]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[y,[O,"Fairphone"],[M,k]],[/(u304aa)/i],[y,[O,"AT&T"],[M,k]],[/\bsie-(\w*)/i],[y,[O,"Siemens"],[M,k]],[/\b(rct\w+) b/i],[y,[O,"RCA"],[M,N]],[/\b(venue[\d ]{2,7}) b/i],[y,[O,"Dell"],[M,N]],[/\b(q(?:mv|ta)\w+) b/i],[y,[O,"Verizon"],[M,N]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[y,[O,"Barnes & Noble"],[M,N]],[/\b(tm\d{3}\w+) b/i],[y,[O,"NuVision"],[M,N]],[/\b(k88) b/i],[y,[O,"ZTE"],[M,N]],[/\b(nx\d{3}j) b/i],[y,[O,"ZTE"],[M,k]],[/\b(gen\d{3}) b.+49h/i],[y,[O,"Swiss"],[M,k]],[/\b(zur\d{3}) b/i],[y,[O,"Swiss"],[M,N]],[/\b((zeki)?tb.*\b) b/i],[y,[O,"Zeki"],[M,N]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[O,"Dragon Touch"],y,[M,N]],[/\b(ns-?\w{0,9}) b/i],[y,[O,"Insignia"],[M,N]],[/\b((nxa|next)-?\w{0,9}) b/i],[y,[O,"NextBook"],[M,N]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[O,"Voice"],y,[M,k]],[/\b(lvtel\-)?(v1[12]) b/i],[[O,"LvTel"],y,[M,k]],[/\b(ph-1) /i],[y,[O,"Essential"],[M,k]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[y,[O,"Envizen"],[M,N]],[/\b(trio[-\w\. ]+) b/i],[y,[O,"MachSpeed"],[M,N]],[/\btu_(1491) b/i],[y,[O,"Rotor"],[M,N]],[/(shield[\w ]+) b/i],[y,[O,"Nvidia"],[M,N]],[/(sprint) (\w+)/i],[O,y,[M,k]],[/(kin\.[onetw]{3})/i],[[y,/\./g," "],[O,B],[M,k]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[y,[O,R0],[M,N]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[y,[O,R0],[M,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[O,y,[M,j]],[/droid.+; (shield) bui/i],[y,[O,"Nvidia"],[M,j]],[/(playstation [345portablevi]+)/i],[y,[O,$0],[M,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[y,[O,B],[M,j]],[/smart-tv.+(samsung)/i],[O,[M,C]],[/hbbtv.+maple;(\d+)/i],[[y,/^/,"SmartTV"],[O,d0],[M,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[O,w0],[M,C]],[/(apple) ?tv/i],[O,[y,G+" TV"],[M,C]],[/crkey/i],[[y,l0+"cast"],[O,v0],[M,C]],[/droid.+aft(\w)( bui|\))/i],[y,[O,e0],[M,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[y,[O,V0],[M,C]],[/(bravia[\w ]+)( bui|\))/i],[y,[O,$0],[M,C]],[/(mitv-\w{5}) bui/i],[y,[O,o0],[M,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[O,D0],[y,D0],[M,C]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[M,C]],[/((pebble))app/i],[O,y,[M,I]],[/droid.+; (glass) \d/i],[y,[O,v0],[M,I]],[/droid.+; (wt63?0{2,3})\)/i],[y,[O,R0],[M,I]],[/(quest( 2)?)/i],[y,[O,K],[M,I]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[O,[M,z]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[y,[M,k]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[y,[M,N]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[M,N]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[M,k]],[/(android[-\w\. ]{0,9});.+buil/i],[y,[O,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[S,[E,J+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[S,[E,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[E,S],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[S,E]],os:[[/microsoft (windows) (vista|xp)/i],[E,S],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[E,[S,q0,g1]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[E,"Windows"],[S,q0,g1]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[S,/_/g,"."],[E,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[E,"Mac OS"],[S,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[S,E],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[E,S],[/\(bb(10);/i],[S,[E,t0]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[S,[E,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[S,[E,W0+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[S,[E,"webOS"]],[/crkey\/([\d\.]+)/i],[S,[E,l0+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[E,"Chromium OS"],S],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[E,S],[/(sunos) ?([\w\.\d]*)/i],[[E,"Solaris"],S],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[E,S]]},b1=function(G0,N0){if(typeof G0===h&&(N0=G0,G0=n),!(this instanceof b1))return new b1(G0,N0).getResult();var r1=G0||(typeof r!==u&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:o),B0=N0?h0(I1,N0):I1;return this.getBrowser=function(){var Q0={};return Q0[E]=n,Q0[S]=n,j0.call(Q0,r1,B0.browser),Q0.major=y0(Q0.version),Q0},this.getCPU=function(){var Q0={};return Q0[F]=n,j0.call(Q0,r1,B0.cpu),Q0},this.getDevice=function(){var Q0={};return Q0[O]=n,Q0[y]=n,Q0[M]=n,j0.call(Q0,r1,B0.device),Q0},this.getEngine=function(){var Q0={};return Q0[E]=n,Q0[S]=n,j0.call(Q0,r1,B0.engine),Q0},this.getOS=function(){var Q0={};return Q0[E]=n,Q0[S]=n,j0.call(Q0,r1,B0.os),Q0},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r1},this.setUA=function(Q0){return r1=typeof Q0===g&&Q0.length>q?D0(Q0,q):Q0,this},this.setUA(r1),this};b1.VERSION=l,b1.BROWSER=g0([E,S,A]),b1.CPU=g0([F]),b1.DEVICE=g0([y,O,M,j,k,C,N,I,z]),b1.ENGINE=b1.OS=g0([E,S]),a.exports&&(e=a.exports=b1),e.UAParser=b1;var h1=typeof r!==u&&(r.jQuery||r.Zepto);if(h1&&!h1.ua){var t1=new b1;h1.ua=t1.getResult(),h1.ua.get=function(){return t1.getUA()},h1.ua.set=function(G0){t1.setUA(G0);var N0=t1.getResult();for(var r1 in N0)h1.ua[r1]=N0[r1]}}})(typeof window=="object"?window:he)})(Ow,Ow.exports);var rG1=Ow.exports;const nG1=$2(rG1);var lG1=function(){function a(){}return a.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:oG1(),platform:"Web",os:void 0,deviceModel:void 0}},a}(),oG1=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},iG1=function(){function a(){this.queue=[]}return a.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},a.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(r){e(r)}),this.queue=[])},a}(),so=function(){return so=Object.assign||function(e){for(var r,n=1,l=arguments.length;n<l;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},so.apply(this,arguments)},pA=function(a,e){var r=["string","number","boolean","undefined"],n=typeof a,l=typeof e;if(n!==l)return!1;for(var o=0,c=r;o<c.length;o++){var m=c[o];if(m===n)return a===e}if(a==null&&e==null)return!0;if(a==null||e==null||a.length!==e.length)return!1;var u=Array.isArray(a),h=Array.isArray(e);if(u!==h)return!1;if(u&&h){for(var g=0;g<a.length;g++)if(!pA(a[g],e[g]))return!1}else{var A=Object.keys(a).sort(),y=Object.keys(e).sort();if(!pA(A,y))return!1;var E=!0;return Object.keys(a).forEach(function(M){pA(a[M],e[M])||(E=!1)}),E}return!0},cG1="$set",sG1="$unset",mG1="$clearAll";Object.entries||(Object.entries=function(a){for(var e=Object.keys(a),r=e.length,n=new Array(r);r--;)n[r]=[e[r],a[e[r]]];return n});var uG1=function(){function a(){this.identity={userProperties:{}},this.listeners=new Set}return a.prototype.editIdentity=function(){var e=this,r=so({},this.identity.userProperties),n=so(so({},this.identity),{userProperties:r});return{setUserId:function(l){return n.userId=l,this},setDeviceId:function(l){return n.deviceId=l,this},setUserProperties:function(l){return n.userProperties=l,this},setOptOut:function(l){return n.optOut=l,this},updateUserProperties:function(l){for(var o=n.userProperties||{},c=0,m=Object.entries(l);c<m.length;c++){var u=m[c],h=u[0],g=u[1];switch(h){case cG1:for(var A=0,y=Object.entries(g);A<y.length;A++){var E=y[A],M=E[0],O=E[1];o[M]=O}break;case sG1:for(var S=0,F=Object.keys(g);S<F.length;S++){var M=F[S];delete o[M]}break;case mG1:o={};break}}return n.userProperties=o,this},commit:function(){return e.setIdentity(n),this}}},a.prototype.getIdentity=function(){return so({},this.identity)},a.prototype.setIdentity=function(e){var r=so({},this.identity);this.identity=so({},e),pA(r,this.identity)||this.listeners.forEach(function(n){n(e)})},a.prototype.addIdentityListener=function(e){this.listeners.add(e)},a.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},a}(),Ru=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,dG1=function(){function a(){this.identityStore=new uG1,this.eventBridge=new iG1,this.applicationContextProvider=new lG1}return a.getInstance=function(e){return Ru.analyticsConnectorInstances||(Ru.analyticsConnectorInstances={}),Ru.analyticsConnectorInstances[e]||(Ru.analyticsConnectorInstances[e]=new a),Ru.analyticsConnectorInstances[e]},a}();function WG(a,e){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),r.push.apply(r,n)}return r}function pa(a){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?WG(Object(r),!0).forEach(function(n){Rc(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):WG(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function $w(a){"@babel/helpers - typeof";return $w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$w(a)}function ww(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function pG1(a,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,YG(n.key),n)}}function Sw(a,e,r){return e&&pG1(a.prototype,e),Object.defineProperty(a,"prototype",{writable:!1}),a}function Rc(a,e,r){return e=YG(e),e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}function hG1(a){return fG1(a)||vG1(a)||GG(a)||gG1()}function fG1(a){if(Array.isArray(a))return Lw(a)}function vG1(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function GG(a,e){if(a){if(typeof a=="string")return Lw(a,e);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lw(a,e)}}function Lw(a,e){(e==null||e>a.length)&&(e=a.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=a[r];return n}function gG1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
975
+ `+K1),D0&&(K1=wr(K1,l0," "),K1=wr(K1,J," "),K1=wr(K1,W0," ")),N&&h1?N.createHTML(K1):K1},e.setConfig=function(E1){v8(E1),a1=!0},e.clearConfig=function(){f8=null,a1=!1},e.isValidAttribute=function(E1,m0,e1){f8||v8({});var f1=v2(E1),z1=v2(m0);return ae(f1,z1,e1)},e.addHook=function(E1,m0){typeof m0=="function"&&(n0[E1]=n0[E1]||[],xu(n0[E1],m0))},e.removeHook=function(E1){if(n0[E1])return $G(n0[E1])},e.removeHooks=function(E1){n0[E1]&&(n0[E1]=[])},e.removeAllHooks=function(){n0={}},e}PG();function uA({id:a}){const{features:e}=dW1({variables:{id:a}});return w.jsx(D$,{features:(e==null?void 0:e.features)??[]})}var xW1=" daum[ /]| deusu/| yadirectfetcher|(?:^| )site|(?:^|[^g])news|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bot(?:[^\\w]|_|$)|(?<! ya(?:yandex)?)search|(?<!(?:lib))http|(?<![hg]m)score|@[a-z]|\\(at\\)[a-z]|\\[at\\][a-z]|^12345|^<|^[\\w \\.\\-\\(?:\\):]+(?:/v?\\d+(\\.\\d+)?(?:\\.\\d{1,10})?)?(?:,|$)|^[^ ]{50,}$|^active|^ad muncher|^amaya|^anglesharp/|^avsdevicesdk/|^bidtellect/|^biglotron|^bot|^btwebclient/|^clamav[ /]|^client/|^cobweb/|^coccoc|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^facebook|^fdm[ /]\\d|^getright/|^gozilla/|^hatena|^hobbit|^hotzonu|^hwcdn/|^jeode/|^jetty/|^jigsaw|^linkdex|^metauri|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d \\(compatible;?\\)$|^mozilla/\\d\\.\\d \\w*$|^navermailapp|^netsurf|^nuclei|^offline explorer|^php|^postman|^postrank|^python|^rank|^read|^reed|^rest|^serf|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^tumblr/|^user-agent:|^valid|^venus/fedoraplanet|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|^{{.*}}$|adbeat\\.com|appinsights|archive|ask jeeves/teoma|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check|chrome-lighthouse|chromeframe|classifier|cloud|crawl|cryptoapi|dareboost|datanyze|dataprovider|dejaclick|dmbrowser|download|evc-batch/|feed|firephp|freesafeip|gomezagent|headless|httrack|hubspot marketing grader|hydra|ibisbrowser|images|inspect|iplabel|ips-agent|java(?!;)|library|mail\\.ru/|manager|monitor|neustar wpm|nutch|offbyone|optimize|pageburst|parser|perl|phantom|pingdom|powermarks|preview|proxy|ptst[ /]\\d|reader|reputation|resolver|retriever|rexx;|rigor|robot|rss|scan|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|stumbleupon\\.com|supercleaner|synapse|synthetic|torrent|trace|transcoder|twingly recon|url|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|wordpress|zgrab",RW1=/bot|spider|crawl|http|lighthouse/i,dA;function zW1(a){if(typeof dA>"u")try{dA=new RegExp(xW1,"i")}catch{dA=RW1}return!!a&&dA.test(a)}function yw(){return typeof window=="object"&&(window==null?void 0:window.document)!==void 0}var UW1=function(){var a;if(yw()){var e=window,r=Array;if(e.Prototype!==void 0&&((a=r.prototype)===null||a===void 0?void 0:a.toJSON)!==void 0)return delete r.prototype.toJSON,!0}return!1},kG={exports:{}};(function(a){(function(e){function r(C,I){var z=(C&65535)+(I&65535),q=(C>>16)+(I>>16)+(z>>16);return q<<16|z&65535}function n(C,I){return C<<I|C>>>32-I}function l(C,I,z,q,e0,G){return r(n(r(r(I,C),r(q,G)),e0),z)}function o(C,I,z,q,e0,G,c0){return l(I&z|~I&q,C,I,e0,G,c0)}function c(C,I,z,q,e0,G,c0){return l(I&q|z&~q,C,I,e0,G,c0)}function m(C,I,z,q,e0,G,c0){return l(I^z^q,C,I,e0,G,c0)}function u(C,I,z,q,e0,G,c0){return l(z^(I|~q),C,I,e0,G,c0)}function h(C,I){C[I>>5]|=128<<I%32,C[(I+64>>>9<<4)+14]=I;var z,q,e0,G,c0,t0=1732584193,n0=-271733879,l0=-1732584194,J=271733878;for(z=0;z<C.length;z+=16)q=t0,e0=n0,G=l0,c0=J,t0=o(t0,n0,l0,J,C[z],7,-680876936),J=o(J,t0,n0,l0,C[z+1],12,-389564586),l0=o(l0,J,t0,n0,C[z+2],17,606105819),n0=o(n0,l0,J,t0,C[z+3],22,-1044525330),t0=o(t0,n0,l0,J,C[z+4],7,-176418897),J=o(J,t0,n0,l0,C[z+5],12,1200080426),l0=o(l0,J,t0,n0,C[z+6],17,-1473231341),n0=o(n0,l0,J,t0,C[z+7],22,-45705983),t0=o(t0,n0,l0,J,C[z+8],7,1770035416),J=o(J,t0,n0,l0,C[z+9],12,-1958414417),l0=o(l0,J,t0,n0,C[z+10],17,-42063),n0=o(n0,l0,J,t0,C[z+11],22,-1990404162),t0=o(t0,n0,l0,J,C[z+12],7,1804603682),J=o(J,t0,n0,l0,C[z+13],12,-40341101),l0=o(l0,J,t0,n0,C[z+14],17,-1502002290),n0=o(n0,l0,J,t0,C[z+15],22,1236535329),t0=c(t0,n0,l0,J,C[z+1],5,-165796510),J=c(J,t0,n0,l0,C[z+6],9,-1069501632),l0=c(l0,J,t0,n0,C[z+11],14,643717713),n0=c(n0,l0,J,t0,C[z],20,-373897302),t0=c(t0,n0,l0,J,C[z+5],5,-701558691),J=c(J,t0,n0,l0,C[z+10],9,38016083),l0=c(l0,J,t0,n0,C[z+15],14,-660478335),n0=c(n0,l0,J,t0,C[z+4],20,-405537848),t0=c(t0,n0,l0,J,C[z+9],5,568446438),J=c(J,t0,n0,l0,C[z+14],9,-1019803690),l0=c(l0,J,t0,n0,C[z+3],14,-187363961),n0=c(n0,l0,J,t0,C[z+8],20,1163531501),t0=c(t0,n0,l0,J,C[z+13],5,-1444681467),J=c(J,t0,n0,l0,C[z+2],9,-51403784),l0=c(l0,J,t0,n0,C[z+7],14,1735328473),n0=c(n0,l0,J,t0,C[z+12],20,-1926607734),t0=m(t0,n0,l0,J,C[z+5],4,-378558),J=m(J,t0,n0,l0,C[z+8],11,-2022574463),l0=m(l0,J,t0,n0,C[z+11],16,1839030562),n0=m(n0,l0,J,t0,C[z+14],23,-35309556),t0=m(t0,n0,l0,J,C[z+1],4,-1530992060),J=m(J,t0,n0,l0,C[z+4],11,1272893353),l0=m(l0,J,t0,n0,C[z+7],16,-155497632),n0=m(n0,l0,J,t0,C[z+10],23,-1094730640),t0=m(t0,n0,l0,J,C[z+13],4,681279174),J=m(J,t0,n0,l0,C[z],11,-358537222),l0=m(l0,J,t0,n0,C[z+3],16,-722521979),n0=m(n0,l0,J,t0,C[z+6],23,76029189),t0=m(t0,n0,l0,J,C[z+9],4,-640364487),J=m(J,t0,n0,l0,C[z+12],11,-421815835),l0=m(l0,J,t0,n0,C[z+15],16,530742520),n0=m(n0,l0,J,t0,C[z+2],23,-995338651),t0=u(t0,n0,l0,J,C[z],6,-198630844),J=u(J,t0,n0,l0,C[z+7],10,1126891415),l0=u(l0,J,t0,n0,C[z+14],15,-1416354905),n0=u(n0,l0,J,t0,C[z+5],21,-57434055),t0=u(t0,n0,l0,J,C[z+12],6,1700485571),J=u(J,t0,n0,l0,C[z+3],10,-1894986606),l0=u(l0,J,t0,n0,C[z+10],15,-1051523),n0=u(n0,l0,J,t0,C[z+1],21,-2054922799),t0=u(t0,n0,l0,J,C[z+8],6,1873313359),J=u(J,t0,n0,l0,C[z+15],10,-30611744),l0=u(l0,J,t0,n0,C[z+6],15,-1560198380),n0=u(n0,l0,J,t0,C[z+13],21,1309151649),t0=u(t0,n0,l0,J,C[z+4],6,-145523070),J=u(J,t0,n0,l0,C[z+11],10,-1120210379),l0=u(l0,J,t0,n0,C[z+2],15,718787259),n0=u(n0,l0,J,t0,C[z+9],21,-343485551),t0=r(t0,q),n0=r(n0,e0),l0=r(l0,G),J=r(J,c0);return[t0,n0,l0,J]}function g(C){var I,z="",q=C.length*32;for(I=0;I<q;I+=8)z+=String.fromCharCode(C[I>>5]>>>I%32&255);return z}function A(C){var I,z=[];for(z[(C.length>>2)-1]=void 0,I=0;I<z.length;I+=1)z[I]=0;var q=C.length*8;for(I=0;I<q;I+=8)z[I>>5]|=(C.charCodeAt(I/8)&255)<<I%32;return z}function y(C){return g(h(A(C),C.length*8))}function E(C,I){var z,q=A(C),e0=[],G=[],c0;for(e0[15]=G[15]=void 0,q.length>16&&(q=h(q,C.length*8)),z=0;z<16;z+=1)e0[z]=q[z]^909522486,G[z]=q[z]^1549556828;return c0=h(e0.concat(A(I)),512+I.length*8),g(h(G.concat(c0),640))}function M(C){var I="0123456789abcdef",z="",q,e0;for(e0=0;e0<C.length;e0+=1)q=C.charCodeAt(e0),z+=I.charAt(q>>>4&15)+I.charAt(q&15);return z}function O(C){return unescape(encodeURIComponent(C))}function S(C){return y(O(C))}function F(C){return M(S(C))}function j(C,I){return E(O(C),O(I))}function k(C,I){return M(j(C,I))}function N(C,I,z){return I?z?j(I,C):k(I,C):z?S(C):F(C)}a.exports?a.exports=N:e.md5=N})(he)})(kG);var BW1=kG.exports;const qW1=$2(BW1),_G="%[a-f0-9]{2}",CG=new RegExp("("+_G+")|([^%]+?)","gi"),NG=new RegExp("("+_G+")+","gi");function bw(a,e){try{return[decodeURIComponent(a.join(""))]}catch{}if(a.length===1)return a;e=e||1;const r=a.slice(0,e),n=a.slice(e);return Array.prototype.concat.call([],bw(r),bw(n))}function WW1(a){try{return decodeURIComponent(a)}catch{let e=a.match(CG)||[];for(let r=1;r<e.length;r++)a=bw(e,r).join(""),e=a.match(CG)||[];return a}}function GW1(a){const e={"%FE%FF":"��","%FF%FE":"��"};let r=NG.exec(a);for(;r;){try{e[r[0]]=decodeURIComponent(r[0])}catch{const l=WW1(r[0]);l!==r[0]&&(e[r[0]]=l)}r=NG.exec(a)}e["%C2"]="�";const n=Object.keys(e);for(const l of n)a=a.replace(new RegExp(l,"g"),e[l]);return a}function YW1(a){if(typeof a!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof a+"`");try{return decodeURIComponent(a)}catch{return GW1(a)}}function TG(a,e){if(!(typeof a=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(a===""||e==="")return[];const r=a.indexOf(e);return r===-1?[]:[a.slice(0,r),a.slice(r+e.length)]}function QW1(a,e){const r={};if(Array.isArray(e))for(const n of e){const l=Object.getOwnPropertyDescriptor(a,n);l!=null&&l.enumerable&&Object.defineProperty(r,n,l)}else for(const n of Reflect.ownKeys(a)){const l=Object.getOwnPropertyDescriptor(a,n);if(l.enumerable){const o=a[n];e(n,o,a)&&Object.defineProperty(r,n,l)}}return r}const KW1=a=>a==null,XW1=a=>encodeURIComponent(a).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Hw=Symbol("encodeFragmentIdentifier");function JW1(a){switch(a.arrayFormat){case"index":return e=>(r,n)=>{const l=r.length;return n===void 0||a.skipNull&&n===null||a.skipEmptyString&&n===""?r:n===null?[...r,[ft(e,a),"[",l,"]"].join("")]:[...r,[ft(e,a),"[",ft(l,a),"]=",ft(n,a)].join("")]};case"bracket":return e=>(r,n)=>n===void 0||a.skipNull&&n===null||a.skipEmptyString&&n===""?r:n===null?[...r,[ft(e,a),"[]"].join("")]:[...r,[ft(e,a),"[]=",ft(n,a)].join("")];case"colon-list-separator":return e=>(r,n)=>n===void 0||a.skipNull&&n===null||a.skipEmptyString&&n===""?r:n===null?[...r,[ft(e,a),":list="].join("")]:[...r,[ft(e,a),":list=",ft(n,a)].join("")];case"comma":case"separator":case"bracket-separator":{const e=a.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,l)=>l===void 0||a.skipNull&&l===null||a.skipEmptyString&&l===""?n:(l=l===null?"":l,n.length===0?[[ft(r,a),e,ft(l,a)].join("")]:[[n,ft(l,a)].join(a.arrayFormatSeparator)])}default:return e=>(r,n)=>n===void 0||a.skipNull&&n===null||a.skipEmptyString&&n===""?r:n===null?[...r,ft(e,a)]:[...r,[ft(e,a),"=",ft(n,a)].join("")]}}function eG1(a){let e;switch(a.arrayFormat){case"index":return(r,n,l)=>{if(e=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),!e){l[r]=n;return}l[r]===void 0&&(l[r]={}),l[r][e[1]]=n};case"bracket":return(r,n,l)=>{if(e=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),!e){l[r]=n;return}if(l[r]===void 0){l[r]=[n];return}l[r]=[...l[r],n]};case"colon-list-separator":return(r,n,l)=>{if(e=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!e){l[r]=n;return}if(l[r]===void 0){l[r]=[n];return}l[r]=[...l[r],n]};case"comma":case"separator":return(r,n,l)=>{const o=typeof n=="string"&&n.includes(a.arrayFormatSeparator),c=typeof n=="string"&&!o&&_l(n,a).includes(a.arrayFormatSeparator);n=c?_l(n,a):n;const m=o||c?n.split(a.arrayFormatSeparator).map(u=>_l(u,a)):n===null?n:_l(n,a);l[r]=m};case"bracket-separator":return(r,n,l)=>{const o=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!o){l[r]=n&&_l(n,a);return}const c=n===null?[]:n.split(a.arrayFormatSeparator).map(m=>_l(m,a));if(l[r]===void 0){l[r]=c;return}l[r]=[...l[r],...c]};default:return(r,n,l)=>{if(l[r]===void 0){l[r]=n;return}l[r]=[...[l[r]].flat(),n]}}}function IG(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ft(a,e){return e.encode?e.strict?XW1(a):encodeURIComponent(a):a}function _l(a,e){return e.decode?YW1(a):a}function DG(a){return Array.isArray(a)?a.sort():typeof a=="object"?DG(Object.keys(a)).sort((e,r)=>Number(e)-Number(r)).map(e=>a[e]):a}function xG(a){const e=a.indexOf("#");return e!==-1&&(a=a.slice(0,e)),a}function tG1(a){let e="";const r=a.indexOf("#");return r!==-1&&(e=a.slice(r)),e}function RG(a,e){return e.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):e.parseBooleans&&a!==null&&(a.toLowerCase()==="true"||a.toLowerCase()==="false")&&(a=a.toLowerCase()==="true"),a}function Ew(a){a=xG(a);const e=a.indexOf("?");return e===-1?"":a.slice(e+1)}function Mw(a,e){e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...e},IG(e.arrayFormatSeparator);const r=eG1(e),n=Object.create(null);if(typeof a!="string"||(a=a.trim().replace(/^[?#&]/,""),!a))return n;for(const l of a.split("&")){if(l==="")continue;const o=e.decode?l.replace(/\+/g," "):l;let[c,m]=TG(o,"=");c===void 0&&(c=o),m=m===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?m:_l(m,e),r(_l(c,e),m,n)}for(const[l,o]of Object.entries(n))if(typeof o=="object"&&o!==null)for(const[c,m]of Object.entries(o))o[c]=RG(m,e);else n[l]=RG(o,e);return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((l,o)=>{const c=n[o];return c&&typeof c=="object"&&!Array.isArray(c)?l[o]=DG(c):l[o]=c,l},Object.create(null))}function zG(a,e){if(!a)return"";e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e},IG(e.arrayFormatSeparator);const r=c=>e.skipNull&&KW1(a[c])||e.skipEmptyString&&a[c]==="",n=JW1(e),l={};for(const[c,m]of Object.entries(a))r(c)||(l[c]=m);const o=Object.keys(l);return e.sort!==!1&&o.sort(e.sort),o.map(c=>{const m=a[c];return m===void 0?"":m===null?ft(c,e):Array.isArray(m)?m.length===0&&e.arrayFormat==="bracket-separator"?ft(c,e)+"[]":m.reduce(n(c),[]).join("&"):ft(c,e)+"="+ft(m,e)}).filter(c=>c.length>0).join("&")}function UG(a,e){var l;e={decode:!0,...e};let[r,n]=TG(a,"#");return r===void 0&&(r=a),{url:((l=r==null?void 0:r.split("?"))==null?void 0:l[0])??"",query:Mw(Ew(a),e),...e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:_l(n,e)}:{}}}function BG(a,e){e={encode:!0,strict:!0,[Hw]:!0,...e};const r=xG(a.url).split("?")[0]||"",n=Ew(a.url),l={...Mw(n,{sort:!1}),...a.query};let o=zG(l,e);o&&(o=`?${o}`);let c=tG1(a.url);if(a.fragmentIdentifier){const m=new URL(r);m.hash=a.fragmentIdentifier,c=e[Hw]?m.hash:`#${a.fragmentIdentifier}`}return`${r}${o}${c}`}function qG(a,e,r){r={parseFragmentIdentifier:!0,[Hw]:!1,...r};const{url:n,query:l,fragmentIdentifier:o}=UG(a,r);return BG({url:n,query:QW1(l,e),fragmentIdentifier:o},r)}function aG1(a,e,r){const n=Array.isArray(e)?l=>!e.includes(l):(l,o)=>!e(l,o);return qG(a,n,r)}const Vw=Object.freeze(Object.defineProperty({__proto__:null,exclude:aG1,extract:Ew,parse:Mw,parseUrl:UG,pick:qG,stringify:zG,stringifyUrl:BG},Symbol.toStringTag,{value:"Module"}));var Ow={exports:{}};(function(a,e){(function(r,n){var l="0.7.33",o="",c="?",m="function",u="undefined",h="object",g="string",A="major",y="model",E="name",M="type",O="vendor",S="version",F="architecture",j="console",k="mobile",N="tablet",C="smarttv",I="wearable",z="embedded",q=350,e0="Amazon",G="Apple",c0="ASUS",t0="BlackBerry",n0="Browser",l0="Chrome",J="Edge",W0="Firefox",v0="Google",p0="Huawei",w0="LG",B="Microsoft",W="Motorola",r0="Opera",d0="Samsung",V0="Sharp",$0="Sony",o0="Xiaomi",R0="Zebra",K="Facebook",h0=function(G0,N0){var r1={};for(var B0 in G0)N0[B0]&&N0[B0].length%2===0?r1[B0]=N0[B0].concat(G0[B0]):r1[B0]=G0[B0];return r1},g0=function(G0){for(var N0={},r1=0;r1<G0.length;r1++)N0[G0[r1].toUpperCase()]=G0[r1];return N0},Z0=function(G0,N0){return typeof G0===g?A0(N0).indexOf(A0(G0))!==-1:!1},A0=function(G0){return G0.toLowerCase()},y0=function(G0){return typeof G0===g?G0.replace(/[^\d\.]/g,o).split(".")[0]:n},D0=function(G0,N0){if(typeof G0===g)return G0=G0.replace(/^\s\s*/,o),typeof N0===u?G0:G0.substring(0,q)},j0=function(G0,N0){for(var r1=0,B0,Q0,u1,R1,Ee,ye;r1<N0.length&&!Ee;){var c1=N0[r1],F1=N0[r1+1];for(B0=Q0=0;B0<c1.length&&!Ee;)if(Ee=c1[B0++].exec(G0),Ee)for(u1=0;u1<F1.length;u1++)ye=Ee[++Q0],R1=F1[u1],typeof R1===h&&R1.length>0?R1.length===2?typeof R1[1]==m?this[R1[0]]=R1[1].call(this,ye):this[R1[0]]=R1[1]:R1.length===3?typeof R1[1]===m&&!(R1[1].exec&&R1[1].test)?this[R1[0]]=ye?R1[1].call(this,ye,R1[2]):n:this[R1[0]]=ye?ye.replace(R1[1],R1[2]):n:R1.length===4&&(this[R1[0]]=ye?R1[3].call(this,ye.replace(R1[1],R1[2])):n):this[R1]=ye||n;r1+=2}},q0=function(G0,N0){for(var r1 in N0)if(typeof N0[r1]===h&&N0[r1].length>0){for(var B0=0;B0<N0[r1].length;B0++)if(Z0(N0[r1][B0],G0))return r1===c?n:r1}else if(Z0(N0[r1],G0))return r1===c?n:r1;return G0},a1={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},g1={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},I1={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[S,[E,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[S,[E,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[E,S],[/opios[\/ ]+([\w\.]+)/i],[S,[E,r0+" Mini"]],[/\bopr\/([\w\.]+)/i],[S,[E,r0]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[E,S],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[S,[E,"UC"+n0]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[S,[E,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[S,[E,"WeChat"]],[/konqueror\/([\w\.]+)/i],[S,[E,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[S,[E,"IE"]],[/yabrowser\/([\w\.]+)/i],[S,[E,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[E,/(.+)/,"$1 Secure "+n0],S],[/\bfocus\/([\w\.]+)/i],[S,[E,W0+" Focus"]],[/\bopt\/([\w\.]+)/i],[S,[E,r0+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[S,[E,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[S,[E,"Dolphin"]],[/coast\/([\w\.]+)/i],[S,[E,r0+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[S,[E,"MIUI "+n0]],[/fxios\/([-\w\.]+)/i],[S,[E,W0]],[/\bqihu|(qi?ho?o?|360)browser/i],[[E,"360 "+n0]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[E,/(.+)/,"$1 "+n0],S],[/(comodo_dragon)\/([\w\.]+)/i],[[E,/_/g," "],S],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[E,S],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[E],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[E,K],S],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[E,S],[/\bgsa\/([\w\.]+) .*safari\//i],[S,[E,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[S,[E,l0+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[E,l0+" WebView"],S],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[S,[E,"Android "+n0]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[E,S],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[S,[E,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[S,E],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[E,[S,q0,a1]],[/(webkit|khtml)\/([\w\.]+)/i],[E,S],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[E,"Netscape"],S],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[S,[E,W0+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[E,S],[/(cobalt)\/([\w\.]+)/i],[E,[S,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[F,"amd64"]],[/(ia32(?=;))/i],[[F,A0]],[/((?:i[346]|x)86)[;\)]/i],[[F,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[F,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[F,"armhf"]],[/windows (ce|mobile); ppc;/i],[[F,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[F,/ower/,o,A0]],[/(sun4\w)[;\)]/i],[[F,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[F,A0]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[y,[O,d0],[M,N]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[y,[O,d0],[M,k]],[/((ipod|iphone)\d+,\d+)/i],[y,[O,G],[M,k]],[/(ipad\d+,\d+)/i],[y,[O,G],[M,N]],[/\((ip(?:hone|od)[\w ]*);/i],[y,[O,G],[M,k]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[y,[O,G],[M,N]],[/(macintosh);/i],[y,[O,G]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[y,[O,p0],[M,N]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[y,[O,p0],[M,k]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[y,/_/g," "],[O,o0],[M,k]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[y,/_/g," "],[O,o0],[M,N]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[y,[O,"OPPO"],[M,k]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[y,[O,"Vivo"],[M,k]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[y,[O,"Realme"],[M,k]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[y,[O,W],[M,k]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[y,[O,W],[M,N]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[y,[O,w0],[M,N]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[y,[O,w0],[M,k]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[y,[O,"Lenovo"],[M,N]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[y,/_/g," "],[O,"Nokia"],[M,k]],[/(pixel c)\b/i],[y,[O,v0],[M,N]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[y,[O,v0],[M,k]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[y,[O,$0],[M,k]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[y,"Xperia Tablet"],[O,$0],[M,N]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[y,[O,"OnePlus"],[M,k]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[y,[O,e0],[M,N]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[y,/(.+)/g,"Fire Phone $1"],[O,e0],[M,k]],[/(playbook);[-\w\),; ]+(rim)/i],[y,O,[M,N]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[y,[O,t0],[M,k]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[y,[O,c0],[M,N]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[y,[O,c0],[M,k]],[/(nexus 9)/i],[y,[O,"HTC"],[M,N]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[O,[y,/_/g," "],[M,k]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[y,[O,"Acer"],[M,N]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[y,[O,"Meizu"],[M,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[y,[O,V0],[M,k]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[O,y,[M,k]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[O,y,[M,N]],[/(surface duo)/i],[y,[O,B],[M,N]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[y,[O,"Fairphone"],[M,k]],[/(u304aa)/i],[y,[O,"AT&T"],[M,k]],[/\bsie-(\w*)/i],[y,[O,"Siemens"],[M,k]],[/\b(rct\w+) b/i],[y,[O,"RCA"],[M,N]],[/\b(venue[\d ]{2,7}) b/i],[y,[O,"Dell"],[M,N]],[/\b(q(?:mv|ta)\w+) b/i],[y,[O,"Verizon"],[M,N]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[y,[O,"Barnes & Noble"],[M,N]],[/\b(tm\d{3}\w+) b/i],[y,[O,"NuVision"],[M,N]],[/\b(k88) b/i],[y,[O,"ZTE"],[M,N]],[/\b(nx\d{3}j) b/i],[y,[O,"ZTE"],[M,k]],[/\b(gen\d{3}) b.+49h/i],[y,[O,"Swiss"],[M,k]],[/\b(zur\d{3}) b/i],[y,[O,"Swiss"],[M,N]],[/\b((zeki)?tb.*\b) b/i],[y,[O,"Zeki"],[M,N]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[O,"Dragon Touch"],y,[M,N]],[/\b(ns-?\w{0,9}) b/i],[y,[O,"Insignia"],[M,N]],[/\b((nxa|next)-?\w{0,9}) b/i],[y,[O,"NextBook"],[M,N]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[O,"Voice"],y,[M,k]],[/\b(lvtel\-)?(v1[12]) b/i],[[O,"LvTel"],y,[M,k]],[/\b(ph-1) /i],[y,[O,"Essential"],[M,k]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[y,[O,"Envizen"],[M,N]],[/\b(trio[-\w\. ]+) b/i],[y,[O,"MachSpeed"],[M,N]],[/\btu_(1491) b/i],[y,[O,"Rotor"],[M,N]],[/(shield[\w ]+) b/i],[y,[O,"Nvidia"],[M,N]],[/(sprint) (\w+)/i],[O,y,[M,k]],[/(kin\.[onetw]{3})/i],[[y,/\./g," "],[O,B],[M,k]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[y,[O,R0],[M,N]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[y,[O,R0],[M,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[O,y,[M,j]],[/droid.+; (shield) bui/i],[y,[O,"Nvidia"],[M,j]],[/(playstation [345portablevi]+)/i],[y,[O,$0],[M,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[y,[O,B],[M,j]],[/smart-tv.+(samsung)/i],[O,[M,C]],[/hbbtv.+maple;(\d+)/i],[[y,/^/,"SmartTV"],[O,d0],[M,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[O,w0],[M,C]],[/(apple) ?tv/i],[O,[y,G+" TV"],[M,C]],[/crkey/i],[[y,l0+"cast"],[O,v0],[M,C]],[/droid.+aft(\w)( bui|\))/i],[y,[O,e0],[M,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[y,[O,V0],[M,C]],[/(bravia[\w ]+)( bui|\))/i],[y,[O,$0],[M,C]],[/(mitv-\w{5}) bui/i],[y,[O,o0],[M,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[O,D0],[y,D0],[M,C]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[M,C]],[/((pebble))app/i],[O,y,[M,I]],[/droid.+; (glass) \d/i],[y,[O,v0],[M,I]],[/droid.+; (wt63?0{2,3})\)/i],[y,[O,R0],[M,I]],[/(quest( 2)?)/i],[y,[O,K],[M,I]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[O,[M,z]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[y,[M,k]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[y,[M,N]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[M,N]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[M,k]],[/(android[-\w\. ]{0,9});.+buil/i],[y,[O,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[S,[E,J+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[S,[E,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[E,S],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[S,E]],os:[[/microsoft (windows) (vista|xp)/i],[E,S],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[E,[S,q0,g1]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[E,"Windows"],[S,q0,g1]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[S,/_/g,"."],[E,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[E,"Mac OS"],[S,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[S,E],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[E,S],[/\(bb(10);/i],[S,[E,t0]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[S,[E,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[S,[E,W0+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[S,[E,"webOS"]],[/crkey\/([\d\.]+)/i],[S,[E,l0+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[E,"Chromium OS"],S],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[E,S],[/(sunos) ?([\w\.\d]*)/i],[[E,"Solaris"],S],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[E,S]]},b1=function(G0,N0){if(typeof G0===h&&(N0=G0,G0=n),!(this instanceof b1))return new b1(G0,N0).getResult();var r1=G0||(typeof r!==u&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:o),B0=N0?h0(I1,N0):I1;return this.getBrowser=function(){var Q0={};return Q0[E]=n,Q0[S]=n,j0.call(Q0,r1,B0.browser),Q0.major=y0(Q0.version),Q0},this.getCPU=function(){var Q0={};return Q0[F]=n,j0.call(Q0,r1,B0.cpu),Q0},this.getDevice=function(){var Q0={};return Q0[O]=n,Q0[y]=n,Q0[M]=n,j0.call(Q0,r1,B0.device),Q0},this.getEngine=function(){var Q0={};return Q0[E]=n,Q0[S]=n,j0.call(Q0,r1,B0.engine),Q0},this.getOS=function(){var Q0={};return Q0[E]=n,Q0[S]=n,j0.call(Q0,r1,B0.os),Q0},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r1},this.setUA=function(Q0){return r1=typeof Q0===g&&Q0.length>q?D0(Q0,q):Q0,this},this.setUA(r1),this};b1.VERSION=l,b1.BROWSER=g0([E,S,A]),b1.CPU=g0([F]),b1.DEVICE=g0([y,O,M,j,k,C,N,I,z]),b1.ENGINE=b1.OS=g0([E,S]),a.exports&&(e=a.exports=b1),e.UAParser=b1;var h1=typeof r!==u&&(r.jQuery||r.Zepto);if(h1&&!h1.ua){var t1=new b1;h1.ua=t1.getResult(),h1.ua.get=function(){return t1.getUA()},h1.ua.set=function(G0){t1.setUA(G0);var N0=t1.getResult();for(var r1 in N0)h1.ua[r1]=N0[r1]}}})(typeof window=="object"?window:he)})(Ow,Ow.exports);var rG1=Ow.exports;const nG1=$2(rG1);var lG1=function(){function a(){}return a.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:oG1(),platform:"Web",os:void 0,deviceModel:void 0}},a}(),oG1=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},iG1=function(){function a(){this.queue=[]}return a.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},a.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(r){e(r)}),this.queue=[])},a}(),so=function(){return so=Object.assign||function(e){for(var r,n=1,l=arguments.length;n<l;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},so.apply(this,arguments)},pA=function(a,e){var r=["string","number","boolean","undefined"],n=typeof a,l=typeof e;if(n!==l)return!1;for(var o=0,c=r;o<c.length;o++){var m=c[o];if(m===n)return a===e}if(a==null&&e==null)return!0;if(a==null||e==null||a.length!==e.length)return!1;var u=Array.isArray(a),h=Array.isArray(e);if(u!==h)return!1;if(u&&h){for(var g=0;g<a.length;g++)if(!pA(a[g],e[g]))return!1}else{var A=Object.keys(a).sort(),y=Object.keys(e).sort();if(!pA(A,y))return!1;var E=!0;return Object.keys(a).forEach(function(M){pA(a[M],e[M])||(E=!1)}),E}return!0},cG1="$set",sG1="$unset",mG1="$clearAll";Object.entries||(Object.entries=function(a){for(var e=Object.keys(a),r=e.length,n=new Array(r);r--;)n[r]=[e[r],a[e[r]]];return n});var uG1=function(){function a(){this.identity={userProperties:{}},this.listeners=new Set}return a.prototype.editIdentity=function(){var e=this,r=so({},this.identity.userProperties),n=so(so({},this.identity),{userProperties:r});return{setUserId:function(l){return n.userId=l,this},setDeviceId:function(l){return n.deviceId=l,this},setUserProperties:function(l){return n.userProperties=l,this},setOptOut:function(l){return n.optOut=l,this},updateUserProperties:function(l){for(var o=n.userProperties||{},c=0,m=Object.entries(l);c<m.length;c++){var u=m[c],h=u[0],g=u[1];switch(h){case cG1:for(var A=0,y=Object.entries(g);A<y.length;A++){var E=y[A],M=E[0],O=E[1];o[M]=O}break;case sG1:for(var S=0,F=Object.keys(g);S<F.length;S++){var M=F[S];delete o[M]}break;case mG1:o={};break}}return n.userProperties=o,this},commit:function(){return e.setIdentity(n),this}}},a.prototype.getIdentity=function(){return so({},this.identity)},a.prototype.setIdentity=function(e){var r=so({},this.identity);this.identity=so({},e),pA(r,this.identity)||this.listeners.forEach(function(n){n(e)})},a.prototype.addIdentityListener=function(e){this.listeners.add(e)},a.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},a}(),Ru=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,dG1=function(){function a(){this.identityStore=new uG1,this.eventBridge=new iG1,this.applicationContextProvider=new lG1}return a.getInstance=function(e){return Ru.analyticsConnectorInstances||(Ru.analyticsConnectorInstances={}),Ru.analyticsConnectorInstances[e]||(Ru.analyticsConnectorInstances[e]=new a),Ru.analyticsConnectorInstances[e]},a}();function WG(a,e){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),r.push.apply(r,n)}return r}function pa(a){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?WG(Object(r),!0).forEach(function(n){Rc(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):WG(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function $w(a){"@babel/helpers - typeof";return $w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$w(a)}function ww(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function pG1(a,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,YG(n.key),n)}}function Sw(a,e,r){return e&&pG1(a.prototype,e),Object.defineProperty(a,"prototype",{writable:!1}),a}function Rc(a,e,r){return e=YG(e),e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}function hG1(a){return fG1(a)||vG1(a)||GG(a)||gG1()}function fG1(a){if(Array.isArray(a))return Lw(a)}function vG1(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function GG(a,e){if(a){if(typeof a=="string")return Lw(a,e);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lw(a,e)}}function Lw(a,e){(e==null||e>a.length)&&(e=a.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=a[r];return n}function gG1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
976
976
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AG1(a,e){var r=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!r){if(Array.isArray(a)||(r=GG(a))||e){r&&(a=r);var n=0,l=function(){};return{s:l,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
977
977
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,c=!1,m;return{s:function(){r=r.call(a)},n:function(){var u=r.next();return o=u.done,u},e:function(u){c=!0,m=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(c)throw m}}}}function ZG1(a,e){if(typeof a!="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var n=r.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function YG(a){var e=ZG1(a,"string");return typeof e=="symbol"?e:String(e)}var w1={DEFAULT_INSTANCE:"$default_instance",API_VERSION:2,MAX_STRING_LENGTH:4096,MAX_PROPERTY_KEYS:1e3,IDENTIFY_EVENT:"$identify",GROUP_IDENTIFY_EVENT:"$groupidentify",EVENT_LOG_URL:"api.amplitude.com",EVENT_LOG_EU_URL:"api.eu.amplitude.com",DYNAMIC_CONFIG_URL:"regionconfig.amplitude.com",DYNAMIC_CONFIG_EU_URL:"regionconfig.eu.amplitude.com",LAST_EVENT_ID:"amplitude_lastEventId",LAST_EVENT_TIME:"amplitude_lastEventTime",LAST_IDENTIFY_ID:"amplitude_lastIdentifyId",LAST_SEQUENCE_NUMBER:"amplitude_lastSequenceNumber",SESSION_ID:"amplitude_sessionId",DEVICE_ID:"amplitude_deviceId",OPT_OUT:"amplitude_optOut",USER_ID:"amplitude_userId",DEVICE_ID_INDEX:0,USER_ID_INDEX:1,OPT_OUT_INDEX:2,SESSION_ID_INDEX:3,LAST_EVENT_TIME_INDEX:4,EVENT_ID_INDEX:5,IDENTIFY_ID_INDEX:6,SEQUENCE_NUMBER_INDEX:7,COOKIE_TEST_PREFIX:"amp_cookie_test",COOKIE_PREFIX:"amp",STORAGE_DEFAULT:"",STORAGE_COOKIES:"cookies",STORAGE_NONE:"none",STORAGE_LOCAL:"localStorage",STORAGE_SESSION:"sessionStorage",REVENUE_EVENT:"revenue_amount",REVENUE_PRODUCT_ID:"$productId",REVENUE_QUANTITY:"$quantity",REVENUE_PRICE:"$price",REVENUE_REVENUE_TYPE:"$revenueType",AMP_DEVICE_ID_PARAM:"amp_device_id",AMP_REFERRER_PARAM:"amp_referrer",REFERRER:"referrer",REFERRING_DOMAIN:"referring_domain",UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_CAMPAIGN:"utm_campaign",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content",ATTRIBUTION_EVENT:"[Amplitude] Attribution Captured",TRANSPORT_HTTP:"http",TRANSPORT_BEACON:"beacon"},QG={encode:function(e){for(var r="",n=0;n<e.length;n++){var l=e.charCodeAt(n);l<128?r+=String.fromCharCode(l):l>127&&l<2048?(r+=String.fromCharCode(l>>6|192),r+=String.fromCharCode(l&63|128)):(r+=String.fromCharCode(l>>12|224),r+=String.fromCharCode(l>>6&63|128),r+=String.fromCharCode(l&63|128))}return r},decode:function(e){for(var r="",n=0,l=0,o=0,c=0;n<e.length;)l=e.charCodeAt(n),l<128?(r+=String.fromCharCode(l),n++):l>191&&l<224?(o=e.charCodeAt(n+1),r+=String.fromCharCode((l&31)<<6|o&63),n+=2):(o=e.charCodeAt(n+1),c=e.charCodeAt(n+2),r+=String.fromCharCode((l&15)<<12|(o&63)<<6|c&63),n+=3);return r}},e2=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global}(),z6={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if(e2.btoa&&e2.atob)return e2.btoa(unescape(encodeURIComponent(e)))}catch{}return z6._encode(e)},_encode:function(e){var r="",n,l,o,c,m,u,h,g=0;for(e=QG.encode(e);g<e.length;)n=e.charCodeAt(g++),l=e.charCodeAt(g++),o=e.charCodeAt(g++),c=n>>2,m=(n&3)<<4|l>>4,u=(l&15)<<2|o>>6,h=o&63,isNaN(l)?u=h=64:isNaN(o)&&(h=64),r=r+z6._keyStr.charAt(c)+z6._keyStr.charAt(m)+z6._keyStr.charAt(u)+z6._keyStr.charAt(h);return r},decode:function(e){try{if(e2.btoa&&e2.atob)return decodeURIComponent(escape(e2.atob(e)))}catch{}return z6._decode(e)},_decode:function(e){var r="",n,l,o,c,m,u,h,g=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");g<e.length;)c=z6._keyStr.indexOf(e.charAt(g++)),m=z6._keyStr.indexOf(e.charAt(g++)),u=z6._keyStr.indexOf(e.charAt(g++)),h=z6._keyStr.indexOf(e.charAt(g++)),n=c<<2|m>>4,l=(m&15)<<4|u>>2,o=(u&3)<<6|h,r=r+String.fromCharCode(n),u!==64&&(r=r+String.fromCharCode(l)),h!==64&&(r=r+String.fromCharCode(o));return r=QG.decode(r),r}},yG1=Object.prototype.toString;function Ae(a){switch(yG1.call(a)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return a===null?"null":a===void 0?"undefined":a!==a?"nan":a&&a.nodeType===1?"element":typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(a)?"buffer":(a=a.valueOf?a.valueOf():Object.prototype.valueOf.apply(a),$w(a))}var i5={DISABLE:0,ERROR:1,WARN:2,INFO:3},zu=i5.WARN,bG1=function(e){Object.prototype.hasOwnProperty.call(i5,e)&&(zu=i5[e])},HG1=function(){return zu},Jt={error:function(e){zu>=i5.ERROR&&Fw(e)},warn:function(e){zu>=i5.WARN&&Fw(e)},info:function(e){zu>=i5.INFO&&Fw(e)}},Fw=function(e){try{console.log("[Amplitude] "+e)}catch{}},EG1=function(e){return!e||e.length===0},MG1=function(){try{if(e2.sessionStorage)return!0}catch{}return!1},VG1=function a(e){if(Ae(e)==="array")for(var r=0;r<e.length;r++)e[r]=a(e[r]);else if(Ae(e)==="object")for(var n in e)n in e&&(e[n]=a(e[n]));else e=OG1(e);return e},OG1=function(e){return Ae(e)==="string"&&e.length>w1.MAX_STRING_LENGTH?e.substring(0,w1.MAX_STRING_LENGTH):e},hA=function(e,r,n){return Ae(e)!==n?(Jt.error("Invalid "+r+" input type. Expected "+n+" but received "+Ae(e)),!1):!0},$G1=function(e){return hA(e,"deviceId","string")?e.indexOf(".")>=0?(Jt.error(`Device IDs may not contain '.' characters. Value will be ignored: "`.concat(e,'"')),!1):!0:!1},wG1=function(e){return hA(e,"transport","string")?e!==w1.TRANSPORT_HTTP&&e!==w1.TRANSPORT_BEACON?(Jt.error("transport value must be one of '".concat(w1.TRANSPORT_BEACON,"' or '").concat(w1.TRANSPORT_HTTP,"'")),!1):e!==w1.TRANSPORT_HTTP&&typeof navigator<"u"&&!navigator.sendBeacon?(Jt.error("browser does not support sendBeacon, so transport must be HTTP"),!1):!0:!1},jw=function(e){var r=Ae(e);if(r!=="object")return Jt.error("Error: invalid properties format. Expecting Javascript object, received "+r+", ignoring"),{};if(Object.keys(e).length>w1.MAX_PROPERTY_KEYS)return Jt.error("Error: too many properties (more than 1000), ignoring"),{};var n={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var o=l,c=Ae(o);c!=="string"&&(o=String(o),Jt.warn("WARNING: Non-string property key, received type "+c+', coercing to string "'+o+'"'));var m=LG1(o,e[l]);m!==null&&(n[o]=m)}return n},SG1=["nan","function","arguments","regexp","element"],LG1=function a(e,r){var n=Ae(r);if(SG1.indexOf(n)!==-1)Jt.warn('WARNING: Property key "'+e+'" with invalid value type '+n+", ignoring"),r=null;else if(n==="undefined")r=null;else if(n==="error")r=String(r),Jt.warn('WARNING: Property key "'+e+'" with value type error, coercing to '+r);else if(n==="array"){for(var l=[],o=0;o<r.length;o++){var c=r[o],m=Ae(c);if(m==="array"){Jt.warn("WARNING: Cannot have "+m+" nested in an array property value, skipping");continue}else m==="object"?l.push(jw(c)):l.push(a(e,c))}r=l}else n==="object"&&(r=jw(r));return r},FG1=function(e){var r=Ae(e);if(r!=="object")return Jt.error("Error: invalid groups format. Expecting Javascript object, received "+r+", ignoring"),{};var n={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var o=l,c=Ae(o);c!=="string"&&(o=String(o),Jt.warn("WARNING: Non-string groupType, received type "+c+', coercing to string "'+o+'"'));var m=jG1(o,e[l]);m!==null&&(n[o]=m)}return n},jG1=function(e,r){var n=Ae(r);if(n==="string")return r;if(n==="date"||n==="number"||n==="boolean")return r=String(r),Jt.warn("WARNING: Non-string groupName, received type "+n+', coercing to string "'+r+'"'),r;if(n==="array"){for(var l=[],o=0;o<r.length;o++){var c=r[o],m=Ae(c);if(m==="array"||m==="object"){Jt.warn("WARNING: Skipping nested "+m+" in array groupName");continue}else m==="string"?l.push(c):(m==="date"||m==="number"||m==="boolean")&&(c=String(c),Jt.warn("WARNING: Non-string groupName, received type "+m+', coercing to string "'+c+'"'),l.push(c))}return l}Jt.warn("WARNING: Non-string groupName, received type "+n+". Please use strings or array of strings for groupName")},PG1=function(e,r){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)"),l=n.exec(r);return l===null?void 0:decodeURIComponent(l[1].replace(/\+/g," "))},kG1=function(){return typeof WorkerGlobalScope<"u"},_G1=function(e){return hA(e,"sessionId","number")&&new Date(e).getTime()>0?!0:(Jt.error("sessionId value must in milliseconds since epoch (Unix Timestamp)"),!1)},CG1=function(){return e2.location},NG1=function(e){var r=e2.location?e2.location.hostname:"";if(e){if(typeof document<"u"){var n=document.createElement("a");return n.href=e,n.hostname||r}if(typeof URL=="function"){var l=new URL(e);return l.hostname||r}}return r},o1={setLogLevel:bG1,getLogLevel:HG1,logLevels:i5,log:Jt,isEmptyString:EG1,isWebWorkerEnvironment:kG1,getQueryParam:PG1,sessionStorageEnabled:MG1,truncate:VG1,validateGroups:FG1,validateInput:hA,validateProperties:jw,validateDeviceId:$G1,validateTransport:wG1,validateSessionId:_G1,getLocation:CG1,getHost:NG1},KG=function(e){try{for(var r=document.cookie.split(";"),n=null,l=0;l<r.length;l++){for(var o=r[l];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(e)===0){n=o.substring(e.length,o.length);break}}return n}catch{return null}},TG1=function(e){try{var r=document.cookie.split(";").map(function(m){return m.trimStart()}),n=[],l=AG1(r),o;try{for(l.s();!(o=l.n()).done;){for(var c=o.value;c.charAt(0)===" ";)c=c.substring(1);c.indexOf(e)===0&&n.push(c.substring(e.length))}}catch(m){l.e(m)}finally{l.f()}return n}catch{return[]}},Pw=function(e,r,n){var l=r!==null?n.expirationDays:-1;if(l){var o=new Date;o.setTime(o.getTime()+l*24*60*60*1e3),l=o}var c=e+"="+r;l&&(c+="; expires="+l.toUTCString()),c+="; path=/",n.domain&&(c+="; domain="+n.domain),n.secure&&(c+="; Secure"),n.sameSite&&(c+="; SameSite="+n.sameSite),document.cookie=c},kw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(".")[w1.LAST_EVENT_TIME_INDEX],n;return r&&(n=parseInt(r,32)),n||(o1.log.warn("unable to parse malformed cookie: ".concat(e)),0)},IG1=function(e){return hG1(e).sort(function(r,n){var l=kw(r),o=kw(n);return o-l})},DG1=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=w1.COOKIE_TEST_PREFIX;if(typeof document>"u")return!1;var n=!1;try{var l=String(Date.now());Pw(r,l,e),o1.log.info("Testing if cookies available"),n=KG(r+"=")===l}catch(o){o1.log.warn('Error thrown when checking for cookies. Reason: "'.concat(o,'"'))}finally{o1.log.info("Cleaning up cookies availability test"),Pw(r,null,e)}return n},St={set:Pw,get:KG,getAll:TG1,getLastEventTime:kw,sortByEventTime:IG1,areCookiesEnabled:DG1},xG1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",_w=function(){for(var e="",r=0;r<22;++r)e+=xG1.charAt(Math.floor(Math.random()*64));return e},XG=function(e){var r=o1.getHost(e),n=r.split("."),l=[],o="_tldtest_"+_w();if(o1.isWebWorkerEnvironment())return"";for(var c=n.length-2;c>=0;--c)l.push(n.slice(c).join("."));for(var m=0;m<l.length;++m){var u=l[m],h={domain:"."+u};if(St.set(o,1,h),St.get(o))return St.set(o,null,h),u}return""},u6={expirationDays:void 0,domain:void 0},RG1=function(){u6={expirationDays:void 0,domain:void 0}},zG1=function(e){if(arguments.length===0)return u6;e=e||{},u6.expirationDays=e.expirationDays,u6.secure=e.secure,u6.sameSite=e.sameSite;var r=o1.isEmptyString(e.domain)?"."+XG(o1.getLocation().href):e.domain,n=Math.random();u6.domain=r,eY("amplitude_test",n);var l=JG("amplitude_test");return(!l||l!==n)&&(r=null),tY("amplitude_test"),u6.domain=r,u6},Uu=function(e){var r="";return u6.domain&&(r=u6.domain.charAt(0)==="."?u6.domain.substring(1):u6.domain),e+r},JG=function(e){var r=Uu(e)+"=",n=St.get(r);try{if(n)return JSON.parse(z6.decode(n))}catch{return null}return null},eY=function(e,r){try{return St.set(Uu(e),z6.encode(JSON.stringify(r)),u6),!0}catch{return!1}},UG1=function(e,r){try{return St.set(Uu(e),r,u6),!0}catch{return!1}},BG1=function(e){var r=Uu(e)+"=";return St.get(r)},tY=function(e){try{return St.set(Uu(e),null,u6),!0}catch{return!1}},qG1={reset:RG1,options:zG1,get:JG,set:eY,remove:tY,setRaw:UG1,getRaw:BG1},WG1=function(){function a(){ww(this,a),this.map=new Map,this.length=0}return Sw(a,[{key:"key",value:function(r){var n=Array.from(this.map.keys()),l=n[r];return this.map.get(l)}},{key:"getItem",value:function(r){return this.map.get(r)}},{key:"setItem",value:function(r,n){this.map.has(r)||(this.length+=1),this.map.set(r,n)}},{key:"removeItem",value:function(r){this.map.has(r)&&(this.length-=1,this.map.delete(r))}},{key:"clear",value:function(){this.map.clear(),this.length=0}}]),a}(),mo;{var GG1=function(){var e=new Date,r;try{return e2.localStorage.setItem(e,e),r=e2.localStorage.getItem(e)===String(e),e2.localStorage.removeItem(e),r}catch{}return!1};if(GG1())mo=e2.localStorage;else if(typeof e2<"u"&&e2.globalStorage)try{mo=e2.globalStorage[e2.location.hostname]}catch{}else if(typeof document<"u"){var W8=document.createElement("div"),Cl="localStorage";W8.style.display="none",document.getElementsByTagName("head")[0].appendChild(W8),W8.addBehavior&&(W8.addBehavior("#default#userdata"),mo={length:0,setItem:function(e,r){W8.load(Cl),W8.getAttribute(e)||this.length++,W8.setAttribute(e,r),W8.save(Cl)},getItem:function(e){return W8.load(Cl),W8.getAttribute(e)},removeItem:function(e){W8.load(Cl),W8.getAttribute(e)&&this.length--,W8.removeAttribute(e),W8.save(Cl)},clear:function(){W8.load(Cl);for(var e=0,r;r=W8.XMLDocument.documentElement.attributes[e++];)W8.removeAttribute(r.name);W8.save(Cl),this.length=0},key:function(e){return W8.load(Cl),W8.XMLDocument.documentElement.attributes[e]}},W8.load(Cl),mo.length=W8.XMLDocument.documentElement.attributes.length)}else o1.isWebWorkerEnvironment()&&(mo=new WG1);mo||(mo={length:0,setItem:function(e,r){},getItem:function(e){},removeItem:function(e){},clear:function(){},key:function(e){}})}var Sr=mo,aY=function(){this.storage=null};aY.prototype.getStorage=function(a){if(this.storage!==null)return this.storage;if(!a&&St.areCookiesEnabled())this.storage=qG1;else{var e="amp_cookiestore_";this.storage={_options:{expirationDays:void 0,domain:void 0,secure:!1},reset:function(){this._options={expirationDays:void 0,domain:void 0,secure:!1}},options:function(n){return arguments.length===0?this._options:(n=n||{},this._options.expirationDays=n.expirationDays||this._options.expirationDays,this._options.domain=n.domain||this._options.domain||e2&&e2.location&&e2.location.hostname,this._options.secure=n.secure||!1)},get:function(n){try{return JSON.parse(Sr.getItem(e+n))}catch{}return null},set:function(n,l){try{return Sr.setItem(e+n,JSON.stringify(l)),!0}catch{}return!1},remove:function(n){try{Sr.removeItem(e+n)}catch{return!1}}}}return this.storage};var zc,YG1=(zc={},Rc(zc,w1.STORAGE_COOKIES,!0),Rc(zc,w1.STORAGE_NONE,!0),Rc(zc,w1.STORAGE_LOCAL,!0),Rc(zc,w1.STORAGE_SESSION,!0),zc),QG1=function(){function a(e){var r=e.storageKey,n=e.disableCookies,l=e.domain,o=e.secure,c=e.sameSite,m=e.expirationDays,u=e.storage;ww(this,a),this.storageKey=r,this.domain=l,this.secure=o,this.sameSite=c,this.expirationDays=m,this.cookieDomain="";var h=o1.getLocation()?o1.getLocation().href:void 0,g=n?"":XG(h);if(this.cookieDomain=l||(g?"."+g:null),YG1[u])this.storage=u;else{var A=n||!St.areCookiesEnabled({domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays});A?this.storage=w1.STORAGE_LOCAL:this.storage=w1.STORAGE_COOKIES}}return Sw(a,[{key:"getCookieStorageKey",value:function(){if(!this.domain)return this.storageKey;var r=this.domain.charAt(0)==="."?this.domain.substring(1):this.domain;return"".concat(this.storageKey).concat(r?"_".concat(r):"")}},{key:"save",value:function(r){var n=r.deviceId,l=r.userId,o=r.optOut,c=r.sessionId,m=r.lastEventTime,u=r.eventId,h=r.identifyId,g=r.sequenceNumber;if(this.storage!==w1.STORAGE_NONE){var A=[n,z6.encode(l||""),o?"1":"",c?c.toString(32):"0",m?m.toString(32):"0",u?u.toString(32):"0",h?h.toString(32):"0",g?g.toString(32):"0"].join(".");switch(this.storage){case w1.STORAGE_SESSION:e2.sessionStorage&&e2.sessionStorage.setItem(this.storageKey,A);break;case w1.STORAGE_LOCAL:Sr.setItem(this.storageKey,A);break;case w1.STORAGE_COOKIES:this.saveCookie(A);break}}}},{key:"saveCookie",value:function(r){St.set(this.getCookieStorageKey(),r,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays})}},{key:"load",value:function(){var r=this,n;if(this.storage===w1.STORAGE_COOKIES){var l=this.getCookieStorageKey()+"=",o=St.getAll(l);if(o.length===0||o.length===1)n=o[0];else{var c=St.sortByEventTime(o)[0];o.forEach(function(){return St.set(r.getCookieStorageKey(),null,{})}),this.saveCookie(c),n=St.get(l)}}if(n||(n=Sr.getItem(this.storageKey)),!n)try{n=e2.sessionStorage&&e2.sessionStorage.getItem(this.storageKey)}catch(h){o1.log.info('window.sessionStorage unavailable. Reason: "'.concat(h,'"'))}if(!n)return null;var m=n.split("."),u=null;if(m[w1.USER_ID_INDEX])try{u=z6.decode(m[w1.USER_ID_INDEX])}catch{u=null}return{deviceId:m[w1.DEVICE_ID_INDEX],userId:u,optOut:m[w1.OPT_OUT_INDEX]==="1",sessionId:parseInt(m[w1.SESSION_ID_INDEX],32),lastEventTime:parseInt(m[w1.LAST_EVENT_TIME_INDEX],32),eventId:parseInt(m[w1.EVENT_ID_INDEX],32),identifyId:parseInt(m[w1.IDENTIFY_ID_INDEX],32),sequenceNumber:parseInt(m[w1.SEQUENCE_NUMBER_INDEX],32)}}},{key:"clear",value:function(){var r;if(this.storage===w1.STORAGE_COOKIES&&(r=St.get(this.getCookieStorageKey()+"="),St.set(this.getCookieStorageKey(),null,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:0})),r||(r=Sr.getItem(this.storageKey),Sr.clear()),!r)try{r=e2.sessionStorage&&e2.sessionStorage.getItem(this.storageKey),e2.sessionStorage.clear()}catch(n){o1.log.info('window.sessionStorage unavailable. Reason: "'.concat(n,'"'))}return!!r}}]),a}(),KG1=function(e,r){var n=e?"?"+e.split(".").slice(-1)[0].replace(/\|/g,"&"):"",l=function(E,M,O,S){return o1.getQueryParam(E,M)||o1.getQueryParam(O,S)},o=l(w1.UTM_SOURCE,r,"utmcsr",n),c=l(w1.UTM_MEDIUM,r,"utmcmd",n),m=l(w1.UTM_CAMPAIGN,r,"utmccn",n),u=l(w1.UTM_TERM,r,"utmctr",n),h=l(w1.UTM_CONTENT,r,"utmcct",n),g={},A=function(E,M){o1.isEmptyString(M)||(g[E]=M)};return A(w1.UTM_SOURCE,o),A(w1.UTM_MEDIUM,c),A(w1.UTM_CAMPAIGN,m),A(w1.UTM_TERM,u),A(w1.UTM_CONTENT,h),g},XG1="$add",JG1="$append",Cw="$clearAll",eY1="$prepend",tY1="$set",aY1="$setOnce",rY1="$unset",nY1="$preInsert",lY1="$postInsert",oY1="$remove",G8=function(){this.userPropertiesOperations={},this.properties=[]};G8.prototype.add=function(a,e){return Ae(e)==="number"||Ae(e)==="string"?this._addOperation(XG1,a,e):o1.log.error("Unsupported type for value: "+Ae(e)+", expecting number or string"),this},G8.prototype.append=function(a,e){return this._addOperation(JG1,a,e),this},G8.prototype.clearAll=function(){return Object.keys(this.userPropertiesOperations).length>0?(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,Cw)||o1.log.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"),this):(this.userPropertiesOperations[Cw]="-",this)},G8.prototype.prepend=function(a,e){return this._addOperation(eY1,a,e),this},G8.prototype.set=function(a,e){return this._addOperation(tY1,a,e),this},G8.prototype.setOnce=function(a,e){return this._addOperation(aY1,a,e),this},G8.prototype.unset=function(a){return this._addOperation(rY1,a,"-"),this},G8.prototype.preInsert=function(a,e){return this._addOperation(nY1,a,e),this},G8.prototype.postInsert=function(a,e){return this._addOperation(lY1,a,e),this},G8.prototype.remove=function(a,e){return this._addOperation(oY1,a,e),this},G8.prototype._addOperation=function(a,e,r){if(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,Cw)){o1.log.error("This identify already contains a $clearAll operation, skipping operation "+a);return}if(this.properties.indexOf(e)!==-1){o1.log.error('User property "'+e+'" already used in this identify, skipping operation '+a);return}Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,a)||(this.userPropertiesOperations[a]={}),this.userPropertiesOperations[a][e]=r,this.properties.push(e)};var rY=function(e,r,n){this.url=e,this.data=r||{},this.headers=n},iY1="Cross-Origin-Resource-Policy";function cY1(a,e){for(var r in e)r===iY1&&!e[r]||a.setRequestHeader(r,e[r])}rY.prototype.send=function(a){var e=!!e2.XDomainRequest;if(e){var r=new e2.XDomainRequest;r.open("POST",this.url,!0),r.onload=function(){a(200,r.responseText)},r.onerror=function(){r.responseText==="Request Entity Too Large"?a(413,r.responseText):a(500,r.responseText)},r.ontimeout=function(){},r.onprogress=function(){},r.send(Vw.stringify(this.data))}else if(typeof XMLHttpRequest<"u"){var n=new XMLHttpRequest;n.open("POST",this.url,!0),n.onreadystatechange=function(){n.readyState===4&&a(n.status,n.responseText)},cY1(n,this.headers),n.send(Vw.stringify(this.data))}else{var l=void 0;fetch(this.url,{method:"POST",headers:this.headers,body:Vw.stringify(this.data)}).then(function(o){return l=o.status,o.text()}).then(function(o){a(l,o)})}};var Lr=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};Lr.prototype.setProductId=function(e){return Ae(e)!=="string"?o1.log.error("Unsupported type for productId: "+Ae(e)+", expecting string"):o1.isEmptyString(e)?o1.log.error("Invalid empty productId"):this._productId=e,this},Lr.prototype.setQuantity=function(e){return Ae(e)!=="number"?o1.log.error("Unsupported type for quantity: "+Ae(e)+", expecting number"):this._quantity=parseInt(e),this},Lr.prototype.setPrice=function(e){return Ae(e)!=="number"?o1.log.error("Unsupported type for price: "+Ae(e)+", expecting number"):this._price=e,this},Lr.prototype.setRevenueType=function(e){return Ae(e)!=="string"?o1.log.error("Unsupported type for revenueType: "+Ae(e)+", expecting string"):this._revenueType=e,this},Lr.prototype.setEventProperties=function(e){return Ae(e)!=="object"?o1.log.error("Unsupported type for eventProperties: "+Ae(e)+", expecting object"):this._properties=o1.validateProperties(e),this},Lr.prototype._isValidRevenue=function(){return Ae(this._price)!=="number"?(o1.log.error("Invalid revenue, need to set price field"),!1):!0},Lr.prototype._toJSONObject=function(){var e=Ae(this._properties)==="object"?this._properties:{};return this._productId!==null&&(e[w1.REVENUE_PRODUCT_ID]=this._productId),this._quantity!==null&&(e[w1.REVENUE_QUANTITY]=this._quantity),this._price!==null&&(e[w1.REVENUE_PRICE]=this._price),this._revenueType!==null&&(e[w1.REVENUE_REVENUE_TYPE]=this._revenueType),e};var sY1=function a(e){return e?(e^Math.random()*16>>e/4).toString(16):("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,a)},mY1=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||""},uY1={getLanguage:mY1},c5={US:"US",EU:"EU"},nY=function(e){var r=w1.EVENT_LOG_URL;switch(e){case c5.EU:r=w1.EVENT_LOG_EU_URL;break;case c5.US:r=w1.EVENT_LOG_URL;break}return r},dY1=function(e){var r=w1.DYNAMIC_CONFIG_URL;switch(e){case c5.EU:r=w1.DYNAMIC_CONFIG_EU_URL;break;case c5.US:r=w1.DYNAMIC_CONFIG_URL;break}return r},lY="8.21.9",uo={apiEndpoint:w1.EVENT_LOG_URL,batchEvents:!1,cookieExpiration:365,cookieName:"amplitude_id",sameSiteCookie:"Lax",cookieForceUpgrade:!1,deferInitialization:!1,disableCookies:!1,deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:30*1e3,eventUploadThreshold:30,forceHttps:!0,includeFbclid:!1,includeGclid:!1,includeReferrer:!1,includeUtm:!1,ingestionMetadata:{sourceName:"",sourceVersion:""},language:uY1.getLanguage(),library:{name:"amplitude-js",version:lY},logLevel:"WARN",logAttributionCapturedEvent:!1,optOut:!1,onError:function(){},onExitPage:function(){},onNewSessionStart:function(){},plan:{branch:"",source:"",version:"",versionId:""},platform:"Web",savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:30*60*1e3,storage:w1.STORAGE_DEFAULT,trackingOptions:{city:!0,country:!0,carrier:!0,device_manufacturer:!0,device_model:!0,dma:!0,ip_address:!0,language:!0,os_name:!0,os_version:!0,platform:!0,region:!0,version_name:!0},transport:w1.TRANSPORT_HTTP,unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Cross-Origin-Resource-Policy":"cross-origin"},serverZone:c5.US,useDynamicConfig:!1,serverZoneBasedApi:!1,sessionId:null,partnerId:""},pY1=function(){function a(){return ww(this,a),a.instance||(this.ingestionEndpoint=w1.EVENT_LOG_URL,a.instance=this),a.instance}return Sw(a,[{key:"refresh",value:function(r,n,l){var o="https";!n&&e2.location.protocol!=="https:"&&(o="http");var c=o+"://"+dY1(r),m=this,u=!!e2.XDomainRequest;if(u){var h=new e2.XDomainRequest;h.open("GET",c,!0),h.onload=function(){var A=JSON.parse(h.responseText);m.ingestionEndpoint=A.ingestionEndpoint,l&&l()},h.onerror=function(){},h.ontimeout=function(){},h.onprogress=function(){},h.send()}else{var g=new XMLHttpRequest;g.open("GET",c,!0),g.onreadystatechange=function(){if(g.readyState===4&&g.status===200){var A=JSON.parse(g.responseText);m.ingestionEndpoint=A.ingestionEndpoint,l&&l()}},g.send()}}}]),a}(),oY=new pY1,T1=function(e){!yw()&&!o1.isWebWorkerEnvironment()&&o1.log.warn("amplitude-js will not work in a non-browser environment. If you are planning to add Amplitude to a node environment, please use @amplitude/node"),this._instanceName=o1.isEmptyString(e)?w1.DEFAULT_INSTANCE:e.toLowerCase(),this._unsentEvents=[],this._unsentIdentifys=[],this.options=pa(pa({},uo),{},{headers:pa({},uo.headers),ingestionMetadata:pa({},uo.ingestionMetadata),library:pa({},uo.library),plan:pa({},uo.plan),trackingOptions:pa({},uo.trackingOptions)}),this._q=[],this._sending=!1,this._updateScheduled=!1,this._onInitCallbacks=[],this._onNewSessionStartCallbacks=[],this._eventId=0,this._identifyId=0,this._lastEventTime=null,this._newSession=!1,this._sequenceNumber=0,this._sessionId=null,this._isInitialized=!1,this._connector=null,this._userAgent=typeof navigator<"u"&&navigator&&navigator.userAgent||null,this._ua=new nG1(this._userAgent).getResult()};T1.prototype.Identify=G8,T1.prototype.Revenue=Lr,T1.prototype.init=function(e,r,n,l){var o=this;if(Ae(e)!=="string"||o1.isEmptyString(e)){o1.log.error("Invalid apiKey. Please re-initialize with a valid apiKey");return}try{this._connector=dG1.getInstance(this._instanceName),hY1(this.options,n),(yw()||o1.isWebWorkerEnvironment())&&e2.Prototype!==void 0&&Array.prototype.toJSON&&(UW1(),o1.log.warn("Prototype.js injected Array.prototype.toJSON. Deleting Array.prototype.toJSON to prevent double-stringify")),this.options.cookieName!==uo.cookieName&&o1.log.warn("The cookieName option is deprecated. We will be ignoring it for newer cookies"),this.options.serverZoneBasedApi&&(this.options.apiEndpoint=nY(this.options.serverZone)),this._refreshDynamicConfig(),this.options.apiKey=e,this._storageSuffix="_"+e+(this._instanceName===w1.DEFAULT_INSTANCE?"":"_"+this._instanceName),this._storageSuffixV5=e.slice(0,6),this._oldCookiename=this.options.cookieName+this._storageSuffix,this._unsentKey=this.options.unsentKey+this._storageSuffix,this._unsentIdentifyKey=this.options.unsentIdentifyKey+this._storageSuffix,this._cookieName=w1.COOKIE_PREFIX+"_"+this._storageSuffixV5,this.cookieStorage=new aY().getStorage(this.options.disableCookies),this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie}),this._metadataStorage=new QG1({storageKey:this._cookieName,disableCookies:this.options.disableCookies,expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie,storage:this.options.storage});var c=!!this.cookieStorage.get(this._oldCookiename),m=!!this._metadataStorage.load();this._useOldCookie=!m&&c&&!this.options.cookieForceUpgrade;var u=m||c;if(this.options.deferInitialization&&!u){this._deferInitialization(e,r,n,l);return}this.options.domain=this.cookieStorage.options().domain,Ae(this.options.logLevel)==="string"&&o1.setLogLevel(this.options.logLevel);var h=AY1(this);this._apiPropertiesTrackingOptions=Object.keys(h).length>0?{tracking_options:h}:{},this.options.cookieForceUpgrade&&c&&(m||fY1(this),this.cookieStorage.remove(this._oldCookiename)),Nw(this),this._pendingReadStorage=!0;var g=function(O){n&&n.deviceId&&!o1.validateDeviceId(n.deviceId)&&(o1.log.error('Invalid device ID rejected. Randomly generated UUID will be used instead of "'.concat(n.deviceId,'"')),delete n.deviceId),o.options.deviceId=o._getInitialDeviceId(n&&n.deviceId,O),o.options.userId=Ae(r)==="string"&&!o1.isEmptyString(r)&&r||Ae(r)==="number"&&r.toString()||o.options.userId||null;var S=new Date().getTime(),F=!o._sessionId||!o._lastEventTime||S-o._lastEventTime>o.options.sessionTimeout||o.options.sessionId;F&&(o.options.unsetParamsReferrerOnNewSession&&o._unsetUTMParams(),o._newSession=!0,o._sessionId=o.options.sessionId||S,o.options.sessionId=void 0,o.options.saveParamsReferrerOncePerSession&&o._trackParamsAndReferrer()),o.options.saveParamsReferrerOncePerSession||o._trackParamsAndReferrer(),o.options.saveEvents&&(iY(o._unsentEvents),iY(o._unsentIdentifys)),o._lastEventTime=S,Nl(o),o._pendingReadStorage=!1,o._sendEventsIfReady();for(var j=0;j<o._onInitCallbacks.length;j++)o._onInitCallbacks[j](o);o._onInitCallbacks=[],o._isInitialized=!0,F&&o._runNewSessionStartCallbacks()};this.options.saveEvents&&(this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey).map(function(M){return{event:M}}).concat(this._unsentEvents),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey).map(function(M){return{event:M}}).concat(this._unsentIdentifys)),n&&n.onNewSessionStart&&this.onNewSessionStart(this.options.onNewSessionStart),g(),this.runQueuedFunctions(),Ae(l)==="function"&&l(this);var A=this.options.onExitPage;if(Ae(A)==="function"&&e2.addEventListener&&!this.pageHandlersAdded){this.pageHandlersAdded=!0;var y=function(){var O=o.options.transport;o.setTransport(w1.TRANSPORT_BEACON),A(),o.setTransport(O)};e2.addEventListener("pagehide",function(){y()},!1)}this._connector.eventBridge.setEventReceiver(function(M){o._logEvent(M.eventType,M.eventProperties,M.userProperties)});var E=this._connector.identityStore.editIdentity();this.options.deviceId&&E.setDeviceId(this.options.deviceId),this.options.userId&&E.setUserId(this.options.userId),E.commit()}catch(M){o1.log.error(M),n&&Ae(n.onError)==="function"&&n.onError(M)}},T1.prototype._runNewSessionStartCallbacks=function(){for(var a=0;a<this._onNewSessionStartCallbacks.length;a++)this._onNewSessionStartCallbacks[a](this)},T1.prototype.deleteLowerLevelDomainCookies=function(){var a=o1.getHost(),e=this.options.domain&&this.options.domain[0]==="."?this.options.domain.slice(1):this.options.domain;if(!(!e||!o1.isWebWorkerEnvironment())&&a!==e&&new RegExp(e+"$").test(a)){for(var r=a.split("."),n=e.split("."),l=r.length;l>n.length;--l){var o=r.slice(r.length-l).join(".");St.set(this._cookieName,null,{domain:"."+o})}St.set(this._cookieName,null,{})}},T1.prototype._getInitialDeviceId=function(a,e){if(a)return a;if(this.options.deviceIdFromUrlParam){var r=this._getDeviceIdFromUrlParam(this._getUrlParams());if(r)return r}return this.options.deviceId?this.options.deviceId:e||_w()};var iY=function(e){for(var r=0;r<e.length;r++){var n=e[r].event.user_properties,l=e[r].event.event_properties,o=e[r].event.groups;e[r].event.user_properties=o1.validateProperties(n),e[r].event.event_properties=o1.validateProperties(l),e[r].event.groups=o1.validateGroups(o)}};T1.prototype._trackParamsAndReferrer=function(){var e,r,n,l;if(this.options.includeUtm&&(e=this._initUtmData()),this.options.includeReferrer&&(r=this._saveReferrer(this._getReferrer())),this.options.includeGclid&&(n=this._saveGclid(this._getUrlParams())),this.options.includeFbclid&&(l=this._saveFbclid(this._getUrlParams())),this.options.logAttributionCapturedEvent){var o=pa(pa(pa(pa({},e),r),n),l);Object.keys(o).length>0&&this.logEvent(w1.ATTRIBUTION_EVENT,o)}};var hY1=function a(e,r){if(Ae(r)==="object"){var n=new Set(["headers"]),l=new Set(["eventUploadPeriodMillis"]),o=function(u){if(Object.prototype.hasOwnProperty.call(e,u)){var h=r[u],g=Ae(e[u]);if(!(u==="transport"&&!o1.validateTransport(h))){if(u==="sessionId"&&h!==null){e[u]=o1.validateSessionId(h)?h:null;return}else if(!o1.validateInput(h,u+" option",g))return;g==="boolean"?e[u]=!!h:g==="string"&&!o1.isEmptyString(h)||g==="number"&&(h>0||h===0&&l.has(u))||g==="function"?e[u]=h:g==="object"&&a(e[u],h)}}};for(var c in r)n.has(c)?e[c]=pa(pa({},e[c]),r[c]):Object.prototype.hasOwnProperty.call(r,c)&&o(c)}};T1.prototype.runQueuedFunctions=function(){var a=this._q;this._q=[];for(var e=0;e<a.length;e++){var r=this[a[e][0]];Ae(r)==="function"&&r.apply(this,a[e].slice(1))}},T1.prototype._apiKeySet=function(e){return o1.isEmptyString(this.options.apiKey)?(o1.log.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+e),!1):!0},T1.prototype._loadSavedUnsentEvents=function(e){var r=this._getFromStorage(Sr,e),n=this._parseSavedUnsentEventsString(r,e);return this._setInStorage(Sr,e,JSON.stringify(n)),n},T1.prototype._parseSavedUnsentEventsString=function(e,r){if(o1.isEmptyString(e))return[];if(Ae(e)==="string")try{var n=JSON.parse(e);if(Ae(n)==="array")return n}catch{}return o1.log.error("Unable to load "+r+" events. Restart with a new empty queue."),[]},T1.prototype.isNewSession=function(){return this._newSession},T1.prototype.onInit=function(e){this._isInitialized?e(this):this._onInitCallbacks.push(e)},T1.prototype.onNewSessionStart=function(e){this._onNewSessionStartCallbacks.push(e)},T1.prototype.getSessionId=function(){return this._sessionId},T1.prototype.nextEventId=function(){return this._eventId++,this._eventId},T1.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},T1.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},T1.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},T1.prototype._sendEventsIfReady=function(){return this._unsentCount()===0?!1:this.options.batchEvents?this._unsentCount()>=this.options.eventUploadThreshold?(this.sendEvents(),!0):this.options.transport===w1.TRANSPORT_BEACON?(this.sendEvents(),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout((function(){this._updateScheduled=!1,this.sendEvents()}).bind(this),this.options.eventUploadPeriodMillis)),!1):(this.sendEvents(),!0)},T1.prototype.clearStorage=function(){return this._metadataStorage.clear()},T1.prototype._getFromStorage=function(e,r){return e.getItem(r+this._storageSuffix)},T1.prototype._setInStorage=function(e,r,n){e.setItem(r+this._storageSuffix,n)};var Nw=function(e){if(!e._useOldCookie){var r=e._metadataStorage.load();Ae(r)==="object"&&Tw(e,r);return}var n=e.cookieStorage.get(e._oldCookiename);if(Ae(n)==="object"){Tw(e,n);return}},fY1=function(e){var r=e.cookieStorage.get(e._oldCookiename);Ae(r)==="object"&&(Tw(e,r),Nl(e))},Tw=function(e,r){r.deviceId&&(e.options.deviceId=r.deviceId),r.userId&&(e.options.userId=r.userId),r.optOut!==null&&r.optOut!==void 0&&r.optOut!==!1&&(e.options.optOut=r.optOut),r.sessionId&&(e._sessionId=parseInt(r.sessionId,10)),r.lastEventTime&&(e._lastEventTime=parseInt(r.lastEventTime,10)),r.eventId&&(e._eventId=parseInt(r.eventId,10)),r.identifyId&&(e._identifyId=parseInt(r.identifyId,10)),r.sequenceNumber&&(e._sequenceNumber=parseInt(r.sequenceNumber,10))},Nl=function(e){var r={deviceId:e.options.deviceId,userId:e.options.userId,optOut:e.options.optOut,sessionId:e._sessionId,lastEventTime:e._lastEventTime,eventId:e._eventId,identifyId:e._identifyId,sequenceNumber:e._sequenceNumber};e._useOldCookie?e.cookieStorage.set(e.options.cookieName+e._storageSuffix,r):e._metadataStorage.save(r)};T1.prototype._initUtmData=function(e,r){e=e||this._getUrlParams(),r=r||this.cookieStorage.get("__utmz");var n=KG1(r,e);return fA(this,n),n},T1.prototype._unsetUTMParams=function(){var e=new G8;e.unset(w1.REFERRER),e.unset(w1.REFERRING_DOMAIN),e.unset(w1.UTM_SOURCE),e.unset(w1.UTM_MEDIUM),e.unset(w1.UTM_CAMPAIGN),e.unset(w1.UTM_TERM),e.unset(w1.UTM_CONTENT),this.identify(e)};var fA=function(e,r){if(!(Ae(r)!=="object"||Object.keys(r).length===0)){var n=new G8;for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(n.setOnce("initial_"+l,r[l]),n.set(l,r[l]));e.identify(n)}};T1.prototype._getReferrer=function(){var e=this._getReferrerFromUrlParam(this._getUrlParams());return e||(typeof document<"u"?document.referrer:"")},T1.prototype._getUrlParams=function(){return e2.location.search},T1.prototype._saveGclid=function(e){var r=o1.getQueryParam("gclid",e);if(!o1.isEmptyString(r)){var n={gclid:r};return fA(this,n),n}},T1.prototype._saveFbclid=function(e){var r=o1.getQueryParam("fbclid",e);if(!o1.isEmptyString(r)){var n={fbclid:r};return fA(this,n),n}},T1.prototype._getDeviceIdFromUrlParam=function(e){return o1.getQueryParam(w1.AMP_DEVICE_ID_PARAM,e)},T1.prototype._getReferrerFromUrlParam=function(e){return o1.getQueryParam(w1.AMP_REFERRER_PARAM,e)},T1.prototype._getReferringDomain=function(e){if(o1.isEmptyString(e))return null;var r=e.split("/");return r.length>=3?r[2]:null},T1.prototype._saveReferrer=function(e){if(!o1.isEmptyString(e)){var r={referrer:e,referring_domain:this._getReferringDomain(e)};return fA(this,r),r}},T1.prototype.saveEvents=function(){try{var e=JSON.stringify(this._unsentEvents.map(function(n){var l=n.event;return l}));this._setInStorage(Sr,this.options.unsentKey,e)}catch{}try{var r=JSON.stringify(this._unsentIdentifys.map(function(n){return n.event}));this._setInStorage(Sr,this.options.unsentIdentifyKey,r)}catch{}},T1.prototype.setDomain=function(e){if(this._shouldDeferCall())return this._q.push(["setDomain"].concat(Array.prototype.slice.call(arguments,0)));if(o1.validateInput(e,"domain","string"))try{this.cookieStorage.options({expirationDays:this.options.cookieExpiration,secure:this.options.secureCookie,domain:e,sameSite:this.options.sameSiteCookie}),this.options.domain=this.cookieStorage.options().domain,Nw(this),Nl(this)}catch(r){o1.log.error(r)}},T1.prototype.setUserId=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o1.validateInput(r,"startNewSession","boolean")){if(this._shouldDeferCall())return this._q.push(["setUserId"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.userId=e!=null&&""+e||null,r&&(this.options.unsetParamsReferrerOnNewSession&&this._unsetUTMParams(),this._newSession=!0,this._sessionId=new Date().getTime(),this._runNewSessionStartCallbacks(),this.options.saveParamsReferrerOncePerSession&&this._trackParamsAndReferrer()),Nl(this),this._connector&&this._connector.identityStore.editIdentity().setUserId(this.options.userId).commit()}catch(n){o1.log.error(n)}}},T1.prototype.setGroup=function(a,e){if(this._shouldDeferCall())return this._q.push(["setGroup"].concat(Array.prototype.slice.call(arguments,0)));if(!(!this._apiKeySet("setGroup()")||!o1.validateInput(a,"groupType","string")||o1.isEmptyString(a))){var r={};r[a]=e;var n=new G8().set(a,e);this._logEvent(w1.IDENTIFY_EVENT,null,null,n.userPropertiesOperations,r,null,null,null)}},T1.prototype.setOptOut=function(e){if(this._shouldDeferCall())return this._q.push(["setOptOut"].concat(Array.prototype.slice.call(arguments,0)));if(o1.validateInput(e,"enable","boolean"))try{this.options.optOut=e,Nl(this)}catch(r){o1.log.error(r)}},T1.prototype.setSessionId=function(e){if(o1.validateInput(e,"sessionId","number"))try{this._sessionId=e,Nl(this)}catch(r){o1.log.error(r)}},T1.prototype.resetSessionId=function(){this.setSessionId(new Date().getTime())},T1.prototype.regenerateDeviceId=function(){if(this._shouldDeferCall())return this._q.push(["regenerateDeviceId"].concat(Array.prototype.slice.call(arguments,0)));this.setDeviceId(_w())},T1.prototype.setDeviceId=function(e){if(this._shouldDeferCall())return this._q.push(["setDeviceId"].concat(Array.prototype.slice.call(arguments,0)));if(o1.validateDeviceId(e))try{o1.isEmptyString(e)||(this.options.deviceId=""+e,Nl(this),this._connector&&this._connector.identityStore.editIdentity().setDeviceId(this.options.deviceId).commit())}catch(r){o1.log.error(r)}},T1.prototype.setTransport=function(e){if(this._shouldDeferCall())return this._q.push(["setTransport"].concat(Array.prototype.slice.call(arguments,0)));o1.validateTransport(e)&&(this.options.transport=e)},T1.prototype.setUserProperties=function(e){if(this._shouldDeferCall())return this._q.push(["setUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(!(!this._apiKeySet("setUserProperties()")||!o1.validateInput(e,"userProperties","object"))){var r=o1.truncate(o1.validateProperties(e));if(Object.keys(r).length!==0){var n=new G8;for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&n.set(l,r[l]);this.identify(n)}}},T1.prototype.clearUserProperties=function(){if(this._shouldDeferCall())return this._q.push(["clearUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("clearUserProperties()")){var e=new G8;e.clearAll(),this.identify(e)}};var Iw=function(e,r){for(var n=0;n<r._q.length;n++){var l=e[r._q[n][0]];Ae(l)==="function"&&l.apply(e,r._q[n].slice(1))}return e};T1.prototype.identify=function(a,e,r,n){if(this._shouldDeferCall())return this._q.push(["identify"].concat(Array.prototype.slice.call(arguments,0)));if(!this._apiKeySet("identify()")){ea(e,r,0,"No request sent",{reason:"API key is not set"});return}if(Ae(a)==="object"&&Object.prototype.hasOwnProperty.call(a,"_q")&&(a=Iw(new G8,a)),a instanceof G8){if(Object.keys(a.userPropertiesOperations).length>0)return this._logEvent(w1.IDENTIFY_EVENT,null,null,a.userPropertiesOperations,null,null,null,e,r,n);ea(e,r,0,"No request sent",{reason:"No user property operations"})}else o1.log.error("Invalid identify input type. Expected Identify object but saw "+Ae(a)),ea(e,r,0,"No request sent",{reason:"Invalid identify input type"})},T1.prototype.groupIdentify=function(a,e,r,n,l,o){if(this._shouldDeferCall())return this._q.push(["groupIdentify"].concat(Array.prototype.slice.call(arguments,0)));if(!this._apiKeySet("groupIdentify()")){ea(n,l,0,"No request sent",{reason:"API key is not set"});return}if(!o1.validateInput(a,"group_type","string")||o1.isEmptyString(a)){ea(n,l,0,"No request sent",{reason:"Invalid group type"});return}if(e==null){ea(n,l,0,"No request sent",{reason:"Invalid group name"});return}if(Ae(r)==="object"&&Object.prototype.hasOwnProperty.call(r,"_q")&&(r=Iw(new G8,r)),r instanceof G8){if(Object.keys(r.userPropertiesOperations).length>0)return this._logEvent(w1.GROUP_IDENTIFY_EVENT,null,null,null,Rc({},a,e),r.userPropertiesOperations,null,n,l,o);ea(n,l,0,"No request sent",{reason:"No group property operations"})}else o1.log.error("Invalid identify input type. Expected Identify object but saw "+Ae(r)),ea(n,l,0,"No request sent",{reason:"Invalid identify input type"})},T1.prototype.setVersionName=function(e){if(this._shouldDeferCall())return this._q.push(["setVersionName"].concat(Array.prototype.slice.call(arguments,0)));o1.validateInput(e,"versionName","string")&&(this.options.versionName=e)},T1.prototype._logEvent=function(e,r,n,l,o,c,m,u,h,g){if(Nw(this),!e){ea(u,h,0,"No request sent",{reason:"Missing eventType"});return}if(this.options.optOut){ea(u,h,0,"No request sent",{reason:"optOut is set to true"});return}try{var A;e===w1.IDENTIFY_EVENT||e===w1.GROUP_IDENTIFY_EVENT?A=this.nextIdentifyId():A=this.nextEventId();var y=this.nextSequenceNumber(),E=Ae(m)==="number"?m:new Date().getTime();g?this._sessionId=-1:(!this._sessionId||!this._lastEventTime||E-this._lastEventTime>this.options.sessionTimeout)&&(this._sessionId=E,this._runNewSessionStartCallbacks()),this._lastEventTime=E,Nl(this);var M=this._ua.browser.name,O=this._ua.browser.major,S=this._ua.device.model||this._ua.os.name,F=this._ua.device.vendor;l=l||{};var j=pa({},this._apiPropertiesTrackingOptions);n=pa(pa({},n||{}),j),r=r||{},o=o||{},c=c||{};var k={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:E,event_id:A,session_id:this._sessionId||-1,event_type:e,version_name:this.options.versionName||null,platform:s5(this,"platform")?this.options.platform:null,os_name:s5(this,"os_name")&&M||null,os_version:s5(this,"os_version")&&O||null,device_model:s5(this,"device_model")&&S||null,device_manufacturer:s5(this,"device_manufacturer")&&F||null,language:s5(this,"language")?this.options.language:null,api_properties:n,event_properties:o1.truncate(o1.validateProperties(r)),user_properties:o1.truncate(o1.validateProperties(l)),uuid:sY1(),library:this.options.library,sequence_number:y,groups:o1.truncate(o1.validateGroups(o)),group_properties:o1.truncate(o1.validateProperties(c)),user_agent:this._userAgent,partner_id:this.options.partnerId||null};return vY1(this)&&(k.plan={branch:this.options.plan.branch||void 0,source:this.options.plan.source||void 0,version:this.options.plan.version||void 0,versionId:this.options.plan.versionId||void 0}),gY1(this)&&(k.ingestion_metadata={source_name:this.options.ingestionMetadata.sourceName||void 0,source_version:this.options.ingestionMetadata.sourceVersion||void 0}),e===w1.IDENTIFY_EVENT||e===w1.GROUP_IDENTIFY_EVENT?(this._unsentIdentifys.push({event:k,callback:u,errorCallback:h}),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push({event:k,callback:u,errorCallback:h}),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(),e===w1.IDENTIFY_EVENT&&this._connector&&this._connector.identityStore.editIdentity().updateUserProperties(o1.truncate(o1.validateProperties(l))).commit(),A}catch(N){o1.log.error(N)}};var vY1=function(e){return e.options.plan&&(e.options.plan.source||e.options.plan.branch||e.options.plan.version||e.options.plan.versionId)},gY1=function(e){return e.options.ingestionMetadata&&(e.options.ingestionMetadata.sourceName||e.options.ingestionMetadata.sourceVersion)},s5=function(e,r){return!!e.options.trackingOptions[r]},AY1=function(e){for(var r=["city","country","dma","ip_address","region"],n={},l=0;l<r.length;l++){var o=r[l];s5(e,o)||(n[o]=!1)}return n};T1.prototype._limitEventsQueued=function(e){if(e.length>this.options.savedMaxCount){var r=e.splice(0,e.length-this.options.savedMaxCount);r.forEach(function(n){ea(n.callback,n.errorCallback,0,"No request sent",{reason:"Event dropped because options.savedMaxCount exceeded. User may be offline or have a content blocker"})})}},T1.prototype.logEvent=function(e,r,n,l){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;return this._shouldDeferCall()?this._q.push(["logEvent"].concat(Array.prototype.slice.call(arguments,0))):this.logEventWithTimestamp(e,r,null,n,l,o)},T1.prototype.logEventWithTimestamp=function(e,r,n,l,o){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;return this._shouldDeferCall()?this._q.push(["logEventWithTimestamp"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEvent()")?o1.validateInput(e,"eventType","string")?o1.isEmptyString(e)?(ea(l,o,0,"No request sent",{reason:"Missing eventType"}),-1):(o1.validateInput(c,"outOfSession","boolean")||ea(l,o,0,"No request sent",{reason:"Invalid outOfSession value"}),this._logEvent(e,r,null,null,null,null,n,l,o,c)):(ea(l,o,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(ea(l,o,0,"No request sent",{reason:"API key not set"}),-1)},T1.prototype.logEventWithGroups=function(a,e,r,n,l){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;return this._shouldDeferCall()?this._q.push(["logEventWithGroups"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEventWithGroups()")?o1.validateInput(a,"eventType","string")?(o1.validateInput(o,"outOfSession","boolean")||ea(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid outOfSession value"}),this._logEvent(a,e,null,null,r,null,null,n,l,o)):(ea(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(ea(event.callback,event.errorCallback,0,"No request sent",{reason:"API key not set"}),-1)};var cY=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ea=function(e,r,n,l,o){Ae(e)==="function"&&e(n,l,o),Ae(r)==="function"&&r(n,l,o)};T1.prototype.logRevenueV2=function(e){if(this._shouldDeferCall())return this._q.push(["logRevenueV2"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("logRevenueV2()"))if(Ae(e)==="object"&&Object.prototype.hasOwnProperty.call(e,"_q")&&(e=Iw(new Lr,e)),e instanceof Lr){if(e&&e._isValidRevenue())return this.logEvent(w1.REVENUE_EVENT,e._toJSONObject())}else o1.log.error("Invalid revenue input type. Expected Revenue object but saw "+Ae(e))},T1.prototype.logRevenue=function(e,r,n){return this._shouldDeferCall()?this._q.push(["logRevenue"].concat(Array.prototype.slice.call(arguments,0))):!this._apiKeySet("logRevenue()")||!cY(e)||r!==void 0&&!cY(r)?-1:this._logEvent(w1.REVENUE_EVENT,{},{productId:n,special:"revenue_amount",quantity:r||1,price:e},null,null,null,null,null)},T1.prototype._logErrorsOnEvents=function(e,r,n,l){for(var o=["_unsentEvents","_unsentIdentifys"],c=0;c<o.length;c++)for(var m=o[c],u=m==="_unsentEvents"?e:r,h=0;h<this[m].length;h++){var g=this[m][h];g.event.event_id<=u&&g.errorCallback&&g.errorCallback(n,l)}},T1.prototype.removeEvents=function(e,r,n,l){sY(this,"_unsentEvents",e,n,l),sY(this,"_unsentIdentifys",r,n,l)};var sY=function(e,r,n,l,o){if(!(n<0)){for(var c=[],m=0;m<e[r].length;m++){var u=e[r][m];u.event.event_id>n?c.push(u):u.callback&&u.callback(l,o)}e[r]=c}};T1.prototype.sendEvents=function(){if(!this._apiKeySet("sendEvents()")){this.removeEvents(1/0,1/0,0,"No request sent",{reason:"API key not set"});return}if(this.options.optOut){this.removeEvents(1/0,1/0,0,"No request sent",{reason:"Opt out is set to true"});return}if(this._unsentCount()!==0){if(this.options.transport!==w1.TRANSPORT_BEACON){if(this._sending)return;this._sending=!0}var e=this.options.forceHttps||e2.location.protocol==="https:"?"https":"http",r=e+"://"+this.options.apiEndpoint,n=Math.min(this._unsentCount(),this.options.uploadBatchSize),l=this._mergeEventsAndIdentifys(n),o=l.maxEventId,c=l.maxIdentifyId,m=JSON.stringify(l.eventsToSend.map(function(M){var O=M.event;return O})),u=new Date().getTime(),h={client:this.options.apiKey,e:m,v:w1.API_VERSION,upload_time:u,checksum:qW1(w1.API_VERSION+this.options.apiKey+m+u)};if(this.options.transport===w1.TRANSPORT_BEACON&&typeof navigator<"u"){var g=navigator.sendBeacon(r,new URLSearchParams(h));g?(this.removeEvents(o,c,200,"success"),this.options.saveEvents&&this.saveEvents()):this._logErrorsOnEvents(o,c,0,"");return}var A=this;try{new rY(r,h,this.options.headers).send(function(M,O){A._sending=!1;try{M===200?(A.removeEvents(o,c,M,O),A.options.saveEvents&&A.saveEvents(),A._sendEventsIfReady()):(A._logErrorsOnEvents(o,c,M,O),M===413&&(A.options.uploadBatchSize===1&&A.removeEvents(o,c,M,O),A.options.uploadBatchSize=Math.ceil(n/2),A.sendEvents()))}catch{}})}catch(M){var y=0,E="Request failed to send";o1.log.error(E),A._logErrorsOnEvents(o,c,y,E),A.removeEvents(o,c,y,E,{reason:M.message})}}},T1.prototype._mergeEventsAndIdentifys=function(e){for(var r=[],n=0,l=-1,o=0,c=-1;r.length<e;){var m=void 0,u=o>=this._unsentIdentifys.length,h=n>=this._unsentEvents.length;if(h&&u){o1.log.error("Merging Events and Identifys, less events and identifys than expected");break}else u?(m=this._unsentEvents[n++],l=m.event.event_id):h?(m=this._unsentIdentifys[o++],c=m.event.event_id):!("sequence_number"in this._unsentEvents[n].event)||this._unsentEvents[n].event.sequence_number<this._unsentIdentifys[o].event.sequence_number?(m=this._unsentEvents[n++],l=m.event.event_id):(m=this._unsentIdentifys[o++],c=m.event.event_id);r.push(m)}return{eventsToSend:r,maxEventId:l,maxIdentifyId:c}},T1.prototype.setGlobalUserProperties=function(e){this.setUserProperties(e)},T1.prototype.__VERSION__=function(){return this.options.library.version},T1.prototype.setLibrary=function(e,r){e!==null&&typeof e<"u"&&(this.options.library.name=e),r!==null&&typeof r<"u"&&(this.options.library.version=r)},T1.prototype._shouldDeferCall=function(){return this._pendingReadStorage||this._initializationDeferred},T1.prototype._deferInitialization=function(){this._initializationDeferred=!0,this._q.push(["init"].concat(Array.prototype.slice.call(arguments,0)))},T1.prototype.enableTracking=function(){this._initializationDeferred=!1,Nl(this),this.runQueuedFunctions()},T1.prototype._refreshDynamicConfig=function(){this.options.useDynamicConfig&&oY.refresh(this.options.serverZone,this.options.forceHttps,(function(){this.options.apiEndpoint=oY.ingestionEndpoint}).bind(this))},T1.prototype.getDeviceId=function(){return this.options.deviceId},T1.prototype.getUserId=function(){return this.options.userId},T1.prototype.setMinTimeBetweenSessionsMillis=function(e){if(o1.validateInput(e,"timeInMillis","number")){if(this._shouldDeferCall())return this._q.push(["setMinTimeBetweenSessionsMillis"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.sessionTimeout=e}catch(r){o1.log.error(r)}}},T1.prototype.setEventUploadThreshold=function(e){if(o1.validateInput(e,"eventUploadThreshold","number")){if(this._shouldDeferCall())return this._q.push(["setEventUploadThreshold"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.eventUploadThreshold=e}catch(r){o1.log.error(r)}}},T1.prototype.setUseDynamicConfig=function(e){if(o1.validateInput(e,"useDynamicConfig","boolean")){if(this._shouldDeferCall())return this._q.push(["setUseDynamicConfig"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.useDynamicConfig=e,this._refreshDynamicConfig()}catch(r){o1.log.error(r)}}},T1.prototype.setServerZone=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(e!==c5.EU&&e!==c5.US||!o1.validateInput(r,"serverZoneBasedApi","boolean"))){if(this._shouldDeferCall())return this._q.push(["setServerZone"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.serverZone=e,this.options.serverZoneBasedApi=r,r&&(this.options.apiEndpoint=nY(this.options.serverZone))}catch(n){o1.log.error(n)}}},T1.prototype.setServerUrl=function(e){if(o1.validateInput(e,"serverUrl","string")){if(this._shouldDeferCall())return this._q.push(["setServerUrl"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.apiEndpoint=e}catch(r){o1.log.error(r)}}};var G2=function(){this.options=pa({},uo),this._q=[],this._instances={}};G2.prototype.Identify=G8,G2.prototype.Revenue=Lr,G2.prototype.getInstance=function(e){e=o1.isEmptyString(e)?w1.DEFAULT_INSTANCE:e.toLowerCase();var r=this._instances[e];return r===void 0&&(r=new T1(e),this._instances[e]=r),r},G2.prototype.init=function(e,r,n,l){this.getInstance().init(e,r,n,(function(o){this.options=o.options,Ae(l)==="function"&&l(o)}).bind(this))},G2.prototype.isNewSession=function(){return this.getInstance().isNewSession()},G2.prototype.getSessionId=function(){return this.getInstance().getSessionId()},G2.prototype.nextEventId=function(){return this.getInstance().nextEventId()},G2.prototype.nextIdentifyId=function(){return this.getInstance().nextIdentifyId()},G2.prototype.nextSequenceNumber=function(){return this.getInstance().nextSequenceNumber()},G2.prototype.saveEvents=function(){this.getInstance().saveEvents()},G2.prototype.setDomain=function(e){this.getInstance().setDomain(e)},G2.prototype.setUserId=function(e){this.getInstance().setUserId(e)},G2.prototype.setGroup=function(a,e){this.getInstance().setGroup(a,e)},G2.prototype.setOptOut=function(e){this.getInstance().setOptOut(e)},G2.prototype.regenerateDeviceId=function(){this.getInstance().regenerateDeviceId()},G2.prototype.setDeviceId=function(e){this.getInstance().setDeviceId(e)},G2.prototype.setUserProperties=function(e){this.getInstance().setUserProperties(e)},G2.prototype.clearUserProperties=function(){this.getInstance().clearUserProperties()},G2.prototype.identify=function(a,e){this.getInstance().identify(a,e)},G2.prototype.setVersionName=function(e){this.getInstance().setVersionName(e)},G2.prototype.logEvent=function(e,r,n){return this.getInstance().logEvent(e,r,n)},G2.prototype.logEventWithGroups=function(a,e,r,n){return this.getInstance().logEventWithGroups(a,e,r,n)},G2.prototype.logRevenueV2=function(e){return this.getInstance().logRevenueV2(e)},G2.prototype.logRevenue=function(e,r,n){return this.getInstance().logRevenue(e,r,n)},G2.prototype.removeEvents=function(e,r){this.getInstance().removeEvents(e,r)},G2.prototype.sendEvents=function(e){this.getInstance().sendEvents(e)},G2.prototype.setGlobalUserProperties=function(e){this.getInstance().setUserProperties(e)},G2.prototype.__VERSION__=lY;var vA=typeof e2<"u"&&e2.amplitude||{},Uc=new G2;Uc._q=vA._q||[];for(var Dw in vA._iq)Object.prototype.hasOwnProperty.call(vA._iq,Dw)&&(Uc.getInstance(Dw)._q=vA._iq[Dw]._q||[]);const ZY1=(a,e=null)=>{Uc.getInstance().logEvent(a,e)},mY=(a,e=!1)=>{var n,l,o,c,m;const r=Uc.getInstance();if(a&&(r.init(a),e)){const u={email:(n=e==null?void 0:e.profile)==null?void 0:n.email,firstName:(l=e==null?void 0:e.profile)==null?void 0:l.firstName,lastName:(o=e==null?void 0:e.profile)==null?void 0:o.lastName,userId:(c=e==null?void 0:e.profile)==null?void 0:c.id};Uc.getInstance().setUserId((m=e==null?void 0:e.profile)==null?void 0:m.id),Uc.getInstance().setUserProperties(u)}return null};function xw(a,e,r){e.split&&(e=e.split("."));for(var n=0,l=e.length,o=a,c,m;n<l&&(m=""+e[n++],!(m==="__proto__"||m==="constructor"||m==="prototype"));)o=o[m]=n===l?r:typeof(c=o[m])==typeof e?c:e[n]*0!==0||~(""+e[n]).indexOf(".")?{}:[]}var yY1=function(a,e){return Object.keys(a).filter(function(r){return e(r,a[r])}).reduce(function(r,n){return r[n]=a[n],r},{})},m5=function(a){Z8(e,a);function e(r,n){var l=a.call(this,"".concat(r," ").concat(n))||this;return l.field=r,l}return e}(Error);function u5(a){return typeof a=="string"}function Rw(a){return typeof a=="number"}function Bc(a){return typeof a=="function"}function bY1(a){return a!=null}function U6(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()==="object"}var zw="is not a string",Uw="is not an object",HY1="is nil";function EY1(a){if(!bY1(a))throw new m5("Event",HY1);if(typeof a!="object")throw new m5("Event",Uw)}function MY1(a){if(!u5(a.type))throw new m5(".type",zw)}function VY1(a){if(!u5(a.event))throw new m5(".event",zw)}function OY1(a){if(!U6(a.properties))throw new m5(".properties",Uw)}function $Y1(a){if(!U6(a.traits))throw new m5(".traits",Uw)}function wY1(a){if(!u5(a.messageId))throw new m5(".messageId",zw)}function SY1(a){EY1(a),MY1(a),wY1(a),a.type==="track"&&(VY1(a),OY1(a)),["group","identify"].includes(a.type)&&$Y1(a)}var LY1=function(){function a(e){var r,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=(r=e.onEventMethodCall)!==null&&r!==void 0?r:function(){},this.onFinishedEvent=(n=e.onFinishedEvent)!==null&&n!==void 0?n:function(){}}return a}(),FY1=function(){function a(e){this.settings=new LY1(e)}return a.prototype.track=function(e,r,n,l){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize(a0(a0({},this.baseEvent()),{event:e,type:"track",properties:r??{},options:a0({},n),integrations:a0({},l)}))},a.prototype.page=function(e,r,n,l,o){var c;this.settings.onEventMethodCall({type:"page",options:l});var m={type:"page",properties:a0({},n),options:a0({},l),integrations:a0({},o)};return e!==null&&(m.category=e,m.properties=(c=m.properties)!==null&&c!==void 0?c:{},m.properties.category=e),r!==null&&(m.name=r),this.normalize(a0(a0({},this.baseEvent()),m))},a.prototype.screen=function(e,r,n,l,o){this.settings.onEventMethodCall({type:"screen",options:l});var c={type:"screen",properties:a0({},n),options:a0({},l),integrations:a0({},o)};return e!==null&&(c.category=e),r!==null&&(c.name=r),this.normalize(a0(a0({},this.baseEvent()),c))},a.prototype.identify=function(e,r,n,l){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize(a0(a0({},this.baseEvent()),{type:"identify",userId:e,traits:r??{},options:a0({},n),integrations:l}))},a.prototype.group=function(e,r,n,l){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize(a0(a0({},this.baseEvent()),{type:"group",traits:r??{},options:a0({},n),integrations:a0({},l),groupId:e}))},a.prototype.alias=function(e,r,n,l){this.settings.onEventMethodCall({type:"alias",options:n});var o={userId:e,type:"alias",options:a0({},n),integrations:a0({},l)};return r!==null&&(o.previousId=r),e===void 0?this.normalize(a0(a0({},o),this.baseEvent())):this.normalize(a0(a0({},this.baseEvent()),o))},a.prototype.baseEvent=function(){return{integrations:{},options:{}}},a.prototype.context=function(e){var r,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var l=Object.keys(e),o=(r=e.context)!==null&&r!==void 0?r:{},c={};return l.forEach(function(m){m!=="context"&&(n.includes(m)?xw(c,m,e[m]):xw(o,m,e[m]))}),[o,c]},a.prototype.normalize=function(e){var r,n,l=Object.keys((r=e.integrations)!==null&&r!==void 0?r:{}).reduce(function(y,E){var M,O;return a0(a0({},y),(M={},M[E]=!!(!((O=e.integrations)===null||O===void 0)&&O[E]),M))},{});e.options=yY1(e.options||{},function(y,E){return E!==void 0});var o=a0(a0({},l),(n=e.options)===null||n===void 0?void 0:n.integrations),c=e.options?this.context(e.options):[],m=c[0],u=c[1],h=e.options,g=T6(e,["options"]),A=a0(a0(a0(a0({timestamp:new Date},g),{context:m,integrations:o}),u),{messageId:h.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(A),SY1(A),A},a}();function Bw(a,e){return new Promise(function(r,n){var l=setTimeout(function(){n(Error("Promise timed out"))},e);a.then(function(o){return clearTimeout(l),r(o)}).catch(n)})}function jY1(a){return new Promise(function(e){return setTimeout(e,a)})}function PY1(a,e,r){var n=function(){try{return Promise.resolve(e(a))}catch(l){return Promise.reject(l)}};return jY1(r).then(function(){return Bw(n(),1e3)}).catch(function(l){a==null||a.log("warn","Callback Error",{error:l}),a==null||a.stats.increment("callback_error")}).then(function(){return a})}var qw=function(){var a,e,r=!1,n=new Promise(function(l,o){a=function(){for(var c=[],m=0;m<arguments.length;m++)c[m]=arguments[m];r=!0,l.apply(void 0,c)},e=function(){for(var c=[],m=0;m<arguments.length;m++)c[m]=arguments[m];r=!0,o.apply(void 0,c)}});return{resolve:a,reject:e,promise:n,isSettled:function(){return r}}},Ww=function(){function a(e){var r;this.callbacks={},this.warned=!1,this.maxListeners=(r=e==null?void 0:e.maxListeners)!==null&&r!==void 0?r:10}return a.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},a.prototype.on=function(e,r){return this.callbacks[e]?(this.callbacks[e].push(r),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[r],this},a.prototype.once=function(e,r){var n=this,l=function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];n.off(e,l),r.apply(n,o)};return this.on(e,l),this},a.prototype.off=function(e,r){var n,l=(n=this.callbacks[e])!==null&&n!==void 0?n:[],o=l.filter(function(c){return c!==r});return this.callbacks[e]=o,this},a.prototype.emit=function(e){for(var r=this,n,l=[],o=1;o<arguments.length;o++)l[o-1]=arguments[o];var c=(n=this.callbacks[e])!==null&&n!==void 0?n:[];return c.forEach(function(m){m.apply(r,l)}),this},a}();function kY1(a){var e=Math.random()+1,r=a.minTimeout,n=r===void 0?500:r,l=a.factor,o=l===void 0?2:l,c=a.attempt,m=a.maxTimeout,u=m===void 0?1/0:m;return Math.min(e*n*Math.pow(o,c),u)}for(var uY="onRemoveFromFuture",gA=function(a){Z8(e,a);function e(r,n,l){var o=a.call(this)||this;return o.future=[],o.maxAttempts=r,o.queue=n,o.seen=l??{},o}return e.prototype.push=function(){for(var r=this,n=[],l=0;l<arguments.length;l++)n[l]=arguments[l];var o=n.map(function(c){var m=r.updateAttempts(c);return m>r.maxAttempts||r.includes(c)?!1:(r.queue.push(c),!0)});return this.queue=this.queue.sort(function(c,m){return r.getAttempts(c)-r.getAttempts(m)}),o},e.prototype.pushWithBackoff=function(r,n){var l=this;if(n===void 0&&(n=0),n==0&&this.getAttempts(r)===0)return this.push(r)[0];var o=this.updateAttempts(r);if(o>this.maxAttempts||this.includes(r))return!1;var c=kY1({attempt:o-1});return n>0&&c<n&&(c=n),setTimeout(function(){l.queue.push(r),l.future=l.future.filter(function(m){return m.id!==r.id}),l.emit(uY)},c),this.future.push(r),!0},e.prototype.getAttempts=function(r){var n;return(n=this.seen[r.id])!==null&&n!==void 0?n:0},e.prototype.updateAttempts=function(r){return this.seen[r.id]=this.getAttempts(r)+1,this.getAttempts(r)},e.prototype.includes=function(r){return this.queue.includes(r)||this.future.includes(r)||!!this.queue.find(function(n){return n.id===r.id})||!!this.future.find(function(n){return n.id===r.id})},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(Ww),d5=256,AA=[],ZA;d5--;)AA[d5]=(d5+256).toString(16).substring(1);function Gw(){var a=0,e,r="";if(!ZA||d5+16>256){for(ZA=Array(a=256);a--;)ZA[a]=256*Math.random()|0;a=d5=0}for(;a<16;a++)e=ZA[d5+a],a==6?r+=AA[e&15|64]:a==8?r+=AA[e&63|128]:r+=AA[e],a&1&&a>1&&a<11&&(r+="-");return d5++,r}var _Y1=function(){function a(){this._logs=[]}return a.prototype.log=function(e,r,n){var l=new Date;this._logs.push({level:e,message:r,time:l,extras:n})},Object.defineProperty(a.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),a.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(r,n){var l,o,c,m=a0(a0({},n),{json:JSON.stringify(n.extras,null," "),extras:n.extras});delete m.time;var u=(c=(o=n.time)===null||o===void 0?void 0:o.toISOString())!==null&&c!==void 0?c:"";return r[u]&&(u="".concat(u,"-").concat(Math.random())),a0(a0({},r),(l={},l[u]=m,l))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(r){var n=r.level,l=r.message,o=r.extras;n==="info"||n==="debug"?console.log(l,o??""):console[n](l,o??"")});this._logs=[]},a}(),CY1=function(a){var e={gauge:"g",counter:"c"};return e[a]},dY=function(){function a(){this.metrics=[]}return a.prototype.increment=function(e,r,n){r===void 0&&(r=1),this.metrics.push({metric:e,value:r,tags:n??[],type:"counter",timestamp:Date.now()})},a.prototype.gauge=function(e,r,n){this.metrics.push({metric:e,value:r,tags:n??[],type:"gauge",timestamp:Date.now()})},a.prototype.flush=function(){var e=this.metrics.map(function(r){return a0(a0({},r),{tags:r.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},a.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:CY1(e.type),e:e.timestamp}})},a}(),NY1=function(a){Z8(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.gauge=function(){},e.prototype.increment=function(){},e.prototype.flush=function(){},e.prototype.serialize=function(){return[]},e}(dY),po=function(){function a(e){var r,n,l;this.retry=(r=e.retry)!==null&&r!==void 0?r:!0,this.type=(n=e.type)!==null&&n!==void 0?n:"plugin Error",this.reason=(l=e.reason)!==null&&l!==void 0?l:""}return a}(),yA=function(){function a(e,r,n,l){r===void 0&&(r=Gw()),n===void 0&&(n=new NY1),l===void 0&&(l=new _Y1),this.attempts=0,this.event=e,this._id=r,this.logger=l,this.stats=n}return a.system=function(){},a.prototype.isSame=function(e){return e.id===this.id},a.prototype.cancel=function(e){throw e||new po({reason:"Context Cancel"})},a.prototype.log=function(e,r,n){this.logger.log(e,r,n)},Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),a.prototype.updateEvent=function(e,r){var n;if(e.split(".")[0]==="integrations"){var l=e.split(".")[1];if(((n=this.event.integrations)===null||n===void 0?void 0:n[l])===!1)return this.event}return xw(this.event,e,r),this.event},a.prototype.failedDelivery=function(){return this._failedDelivery},a.prototype.setFailedDelivery=function(e){this._failedDelivery=e},a.prototype.logs=function(){return this.logger.logs},a.prototype.flush=function(){this.logger.flush(),this.stats.flush()},a.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},a}();function TY1(a,e){var r={};return a.forEach(function(n){var l,o=void 0;{var c=n[e];o=typeof c!="string"?JSON.stringify(c):c}o!==void 0&&(r[o]=c2(c2([],(l=r[o])!==null&&l!==void 0?l:[],!0),[n],!1))}),r}var IY1=function(a){return typeof a=="object"&&a!==null&&"then"in a&&typeof a.then=="function"},DY1=function(){var a,e,r=0;return{done:function(){return a},run:function(n){var l=n();return IY1(l)&&(++r===1&&(a=new Promise(function(o){return e=o})),l.finally(function(){return--r===0&&e()})),l}}};function xY1(a){return S1(this,void 0,void 0,function(){var e;return L1(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,a()];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,Promise.reject(e)];case 3:return[2]}})})}function qc(a,e){a.log("debug","plugin",{plugin:e.name});var r=new Date().getTime(),n=e[a.event.type];if(n===void 0)return Promise.resolve(a);var l=xY1(function(){return n.apply(e,[a])}).then(function(o){var c=new Date().getTime()-r;return o.stats.gauge("plugin_time",c,["plugin:".concat(e.name)]),o}).catch(function(o){if(o instanceof po&&o.type==="middleware_cancellation")throw o;return o instanceof po?(a.log("warn",o.type,{plugin:e.name,error:o}),o):(a.log("error","plugin Error",{plugin:e.name,error:o}),a.stats.increment("plugin_error",1,["plugin:".concat(e.name)]),o)});return l}function RY1(a,e){return qc(a,e).then(function(r){if(r instanceof yA)return r;a.log("debug","Context canceled"),a.stats.increment("context_canceled"),a.cancel(r)})}var zY1=function(a){Z8(e,a);function e(r){var n=a.call(this)||this;return n.criticalTasks=DY1(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=r,n.queue.on(uY,function(){n.scheduleFlush(0)}),n}return e.prototype.register=function(r,n,l){return S1(this,void 0,void 0,function(){var o,c,m=this;return L1(this,function(u){switch(u.label){case 0:return this.plugins.push(n),o=function(h){m.failedInitializations.push(n.name),m.emit("initialization_failure",n),console.warn(n.name,h),r.log("warn","Failed to load destination",{plugin:n.name,error:h}),m.plugins=m.plugins.filter(function(g){return g!==n})},n.type==="destination"&&n.name!=="Segment.io"?(n.load(r,l).catch(o),[3,4]):[3,1];case 1:return u.trys.push([1,3,,4]),[4,n.load(r,l)];case 2:return u.sent(),[3,4];case 3:return c=u.sent(),o(c),[3,4];case 4:return[2]}})})},e.prototype.deregister=function(r,n,l){return S1(this,void 0,void 0,function(){var o;return L1(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),n.unload?[4,Promise.resolve(n.unload(r,l))]:[3,2];case 1:c.sent(),c.label=2;case 2:return this.plugins=this.plugins.filter(function(m){return m.name!==n.name}),[3,4];case 3:return o=c.sent(),r.log("warn","Failed to unload destination",{plugin:n.name,error:o}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(r){return S1(this,void 0,void 0,function(){var n;return L1(this,function(l){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.push(r),n=this.subscribeToDelivery(r),this.scheduleFlush(0),[2,n]})})},e.prototype.subscribeToDelivery=function(r){return S1(this,void 0,void 0,function(){var n=this;return L1(this,function(l){return[2,new Promise(function(o){var c=function(m,u){m.isSame(r)&&(n.off("flush",c),o(m))};n.on("flush",c)})]})})},e.prototype.dispatchSingle=function(r){return S1(this,void 0,void 0,function(){var n=this;return L1(this,function(l){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.updateAttempts(r),r.attempts=1,[2,this.deliver(r).catch(function(o){var c=n.enqueuRetry(o,r);return c?n.subscribeToDelivery(r):(r.setFailedDelivery({reason:o}),r)})]})})},e.prototype.isEmpty=function(){return this.queue.length===0},e.prototype.scheduleFlush=function(r){var n=this;r===void 0&&(r=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){n.flush().then(function(){setTimeout(function(){n.flushing=!1,n.queue.length&&n.scheduleFlush(0)},0)})},r))},e.prototype.deliver=function(r){return S1(this,void 0,void 0,function(){var n,l,o,c;return L1(this,function(m){switch(m.label){case 0:return[4,this.criticalTasks.done()];case 1:m.sent(),n=Date.now(),m.label=2;case 2:return m.trys.push([2,4,,5]),[4,this.flushOne(r)];case 3:return r=m.sent(),l=Date.now()-n,this.emit("delivery_success",r),r.stats.gauge("delivered",l),r.log("debug","Delivered",r.event),[2,r];case 4:throw o=m.sent(),c=o,r.log("error","Failed to deliver",c),this.emit("delivery_failure",r,c),r.stats.increment("delivery_failed"),o;case 5:return[2]}})})},e.prototype.enqueuRetry=function(r,n){var l=!(r instanceof po)||r.retry;return l?this.queue.pushWithBackoff(n):!1},e.prototype.flush=function(){return S1(this,void 0,void 0,function(){var r,n,l;return L1(this,function(o){switch(o.label){case 0:if(this.queue.length===0)return[2,[]];if(r=this.queue.pop(),!r)return[2,[]];r.attempts=this.queue.getAttempts(r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.deliver(r)];case 2:return r=o.sent(),this.emit("flush",r,!0),[3,4];case 3:return n=o.sent(),l=this.enqueuRetry(n,r),l||(r.setFailedDelivery({reason:n}),this.emit("flush",r,!1)),[2,[]];case 4:return[2,[r]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(r){var n=this.plugins.filter(function(E){var M,O,S;if(E.type!=="destination"&&E.name!=="Segment.io")return!0;var F=void 0;return(M=E.alternativeNames)===null||M===void 0||M.forEach(function(j){r[j]!==void 0&&(F=r[j])}),(S=(O=r[E.name])!==null&&O!==void 0?O:F)!==null&&S!==void 0?S:(E.name==="Segment.io"?!0:r.All)!==!1}),l=TY1(n,"type"),o=l.before,c=o===void 0?[]:o,m=l.enrichment,u=m===void 0?[]:m,h=l.destination,g=h===void 0?[]:h,A=l.after,y=A===void 0?[]:A;return{before:c,enrichment:u,destinations:g,after:y}},e.prototype.flushOne=function(r){var n,l;return S1(this,void 0,void 0,function(){var o,c,m,u,h,g,M,A,y,E,M,O,S,F,j;return L1(this,function(k){switch(k.label){case 0:if(!this.isReady())throw new Error("Not ready");r.attempts>1&&this.emit("delivery_retry",r),o=this.availableExtensions((n=r.event.integrations)!==null&&n!==void 0?n:{}),c=o.before,m=o.enrichment,u=0,h=c,k.label=1;case 1:return u<h.length?(g=h[u],[4,RY1(r,g)]):[3,4];case 2:M=k.sent(),M instanceof yA&&(r=M),this.emit("message_enriched",r,g),k.label=3;case 3:return u++,[3,1];case 4:A=0,y=m,k.label=5;case 5:return A<y.length?(E=y[A],[4,qc(r,E)]):[3,8];case 6:M=k.sent(),M instanceof yA&&(r=M),this.emit("message_enriched",r,E),k.label=7;case 7:return A++,[3,5];case 8:return O=this.availableExtensions((l=r.event.integrations)!==null&&l!==void 0?l:{}),S=O.destinations,F=O.after,[4,new Promise(function(N,C){setTimeout(function(){var I=S.map(function(z){return qc(r,z)});Promise.all(I).then(N).catch(C)},0)})];case 9:return k.sent(),r.stats.increment("message_delivered"),this.emit("message_delivered",r),j=F.map(function(N){return qc(r,N)}),[4,Promise.all(j)];case 10:return k.sent(),[2,r]}})})},e}(Ww),UY1=function(a,e){var r=Date.now()-a;return Math.max((e??300)-r,0)};function BY1(a,e,r,n){return S1(this,void 0,void 0,function(){var l,o;return L1(this,function(c){switch(c.label){case 0:return r.emit("dispatch_start",a),l=Date.now(),e.isEmpty()?[4,e.dispatchSingle(a)]:[3,2];case 1:return o=c.sent(),[3,4];case 2:return[4,e.dispatch(a)];case 3:o=c.sent(),c.label=4;case 4:return n!=null&&n.callback?[4,PY1(o,n.callback,UY1(l,n.timeout))]:[3,6];case 5:o=c.sent(),c.label=6;case 6:return n!=null&&n.debug&&o.flush(),[2,o]}})})}function qY1(a,e,r,n){var l,o=[a,e,r,n],c=U6(a)?a.event:a;if(!c||!u5(c))throw new Error("Event missing");var m=U6(a)?(l=a.properties)!==null&&l!==void 0?l:{}:U6(e)?e:{},u={};Bc(r)||(u=r??{}),U6(a)&&!Bc(e)&&(u=e??{});var h=o.find(Bc);return[c,m,u,h]}function pY(a,e,r,n,l){var o,c,m=null,u=null,h=[a,e,r,n,l],g=h.filter(u5);g[0]!==void 0&&g[1]!==void 0&&(m=g[0],u=g[1]),g.length===1&&(m=null,u=g[0]);var A=h.find(Bc),y=h.filter(function(O){return u===null?U6(O):U6(O)||O===null}),E=(o=y[0])!==null&&o!==void 0?o:{},M=(c=y[1])!==null&&c!==void 0?c:{};return[m,u,E,M,A]}var hY=function(a){return function(){for(var e,r,n,l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];for(var c={},m=["callback","options","traits","id"],u=0,h=l;u<h.length;u++){var g=h[u],A=m.pop();if(A==="id"){if(u5(g)||Rw(g)){c.id=g.toString();continue}if(g==null)continue;A=m.pop()}if((A==="traits"||A==="options")&&(g==null||U6(g))&&(c[A]=g),Bc(g)){c.callback=g;break}}return[(e=c.id)!==null&&e!==void 0?e:a.id(),(r=c.traits)!==null&&r!==void 0?r:{},(n=c.options)!==null&&n!==void 0?n:{},c.callback]}};function WY1(a,e,r,n){Rw(a)&&(a=a.toString()),Rw(e)&&(e=e.toString());var l=[a,e,r,n],o=l.filter(u5),c=o[0],m=c===void 0?a:c,u=o[1],h=u===void 0?null:u,g=l.filter(U6)[0],A=g===void 0?{}:g,y=l.find(Bc);return[m,h,A,y]}function Yw(){return typeof window<"u"}function fY(){return!Yw()}function vY(){return Yw()?window.navigator.onLine:!0}function ho(){return!vY()}function GY1(a,e){return e=e||{},new Promise(function(r,n){var l=new XMLHttpRequest,o=[],c=[],m={},u=function(){return{ok:(l.status/100|0)==2,statusText:l.statusText,status:l.status,url:l.responseURL,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return c},get:function(g){return m[g.toLowerCase()]},has:function(g){return g.toLowerCase()in m}}}};for(var h in l.open(e.method||"get",a,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(g,A,y){o.push(A=A.toLowerCase()),c.push([A,y]),m[A]=m[A]?m[A]+","+y:y}),r(u())},l.onerror=n,l.withCredentials=e.credentials=="include",e.headers)l.setRequestHeader(h,e.headers[h]);l.send(e.body||null)})}var Qw=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:null},bA=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];var r=Qw();return(r&&r.fetch||GY1).apply(void 0,a)},HA="1.75.0",gY="api.segment.io/v1",YY1=function(a,e,r){var n=e.reduce(function(l,o){var c=o.split(":"),m=c[0],u=c[1];return l[m]=u,l},{});return{type:"Counter",metric:a,value:1,tags:a0(a0({},n),{library:"analytics.js",library_version:"npm:next-".concat(HA)})}};function Kw(a){console.error("Error sending segment performance metrics",a)}var QY1=function(){function a(e){var r=this,n,l,o,c,m;if(this.host=(n=e==null?void 0:e.host)!==null&&n!==void 0?n:gY,this.sampleRate=(l=e==null?void 0:e.sampleRate)!==null&&l!==void 0?l:1,this.flushTimer=(o=e==null?void 0:e.flushTimer)!==null&&o!==void 0?o:30*1e3,this.maxQueueSize=(c=e==null?void 0:e.maxQueueSize)!==null&&c!==void 0?c:20,this.protocol=(m=e==null?void 0:e.protocol)!==null&&m!==void 0?m:"https",this.queue=[],this.sampleRate>0){var u=!1,h=function(){u||(u=!0,r.flush().catch(Kw),u=!1,setTimeout(h,r.flushTimer))};h()}}return a.prototype.increment=function(e,r){if(e.includes("analytics_js.")&&r.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=YY1(e,r);this.queue.push(n),e.includes("error")&&this.flush().catch(Kw)}},a.prototype.flush=function(){return S1(this,void 0,void 0,function(){var e=this;return L1(this,function(r){switch(r.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(n){Kw(n),e.sampleRate=0})];case 1:return r.sent(),[2]}})})},a.prototype.send=function(){return S1(this,void 0,void 0,function(){var e,r,n;return L1(this,function(l){return e={series:this.queue},this.queue=[],r={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,bA(n,{headers:r,body:JSON.stringify(e),method:"POST"})]})})},a}(),EA,AY=function(a){Z8(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.initRemoteMetrics=function(r){EA=new QY1(r)},e.prototype.increment=function(r,n,l){a.prototype.increment.call(this,r,n,l),EA==null||EA.increment(r,l??[])},e}(dY),$n=function(a){Z8(e,a);function e(r,n){return a.call(this,r,n,new AY)||this}return e.system=function(){return new this({type:"track",event:"system"})},e}(yA),ZY="bpc",yY=function(a,e,r,n,l,o){return{__t:ZY,c:e,p:n,u:a,s:r,t:l,r:o}},KY1=Object.keys(yY("","","","","",""));function XY1(a){if(!U6(a)||a.__t!==ZY)return!1;for(var e in a)if(!KY1.includes(e))return!1;return!0}var JY1=function(a,e){return a.indexOf("?")>-1?a:a+e},eQ1=function(a){var e=a.indexOf("#");return e===-1?a:a.slice(0,e)},tQ1=function(a){try{return new URL(a).pathname}catch{return a[0]==="/"?a:"/"+a}},bY=function(a){var e=a.c,r=a.p,n=a.s,l=a.u,o=a.r,c=a.t,m=e?tQ1(e):r,u=e?JY1(e,n):eQ1(l);return{path:m,referrer:o,search:n,title:c,url:u}},HY=function(){var a=document.querySelector("link[rel='canonical']");return yY(location.href,a&&a.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},aQ1=function(){return bY(HY())};function rQ1(a,e){return Object.assign.apply(Object,c2([{}],e.map(function(r){var n;if(a&&Object.prototype.hasOwnProperty.call(a,r))return n={},n[r]=a[r],n}),!1))}var Wc=function(a,e){e===void 0&&(e=aQ1());var r=a.context,n;a.type==="page"&&(n=a.properties&&rQ1(a.properties,Object.keys(e)),a.properties=a0(a0(a0({},e),a.properties),a.name?{name:a.name}:{})),r.page=a0(a0(a0({},e),n),r.page)},nQ1=function(a){Z8(e,a);function e(r){var n=a.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat(Gw())},onEventMethodCall:function(l){var o=l.options;n.maybeUpdateAnonId(o)},onFinishedEvent:function(l){return n.addIdentity(l),l}})||this;return n.user=r,n}return e.prototype.maybeUpdateAnonId=function(r){r!=null&&r.anonymousId&&this.user.anonymousId(r.anonymousId)},e.prototype.addIdentity=function(r){this.user.id()&&(r.userId=this.user.id()),this.user.anonymousId()&&(r.anonymousId=this.user.anonymousId())},e.prototype.track=function(r,n,l,o,c){var m=a.prototype.track.call(this,r,n,l,o);return Wc(m,c),m},e.prototype.page=function(r,n,l,o,c,m){var u=a.prototype.page.call(this,r,n,l,o,c);return Wc(u,m),u},e.prototype.screen=function(r,n,l,o,c,m){var u=a.prototype.screen.call(this,r,n,l,o,c);return Wc(u,m),u},e.prototype.identify=function(r,n,l,o,c){var m=a.prototype.identify.call(this,r,n,l,o);return Wc(m,c),m},e.prototype.group=function(r,n,l,o,c){var m=a.prototype.group.call(this,r,n,l,o);return Wc(m,c),m},e.prototype.alias=function(r,n,l,o,c){var m=a.prototype.alias.call(this,r,n,l,o);return Wc(m,c),m},e}(FY1),lQ1=function(a){return"addMiddleware"in a&&a.type==="destination"},wn={getItem:function(){},setItem:function(){},removeItem:function(){}};try{wn=Yw()&&window.localStorage?window.localStorage:wn}catch(a){console.warn("Unable to access localStorage",a)}function EY(a){var e=wn.getItem(a);return(e?JSON.parse(e):[]).map(function(r){return new $n(r.event,r.id)})}function oQ1(a,e){var r=EY(a),n=c2(c2([],e,!0),r,!0),l=n.reduce(function(o,c){var m;return a0(a0({},o),(m={},m[c.id]=c,m))},{});wn.setItem(a,JSON.stringify(Object.values(l)))}function MY(a){var e=wn.getItem(a);return e?JSON.parse(e):{}}function iQ1(a,e){var r=MY(a);wn.setItem(a,JSON.stringify(a0(a0({},r),e)))}function VY(a){wn.removeItem(a)}var cQ1=function(){return new Date().getTime()};function Xw(a,e,r){r===void 0&&(r=0);var n=50,l="persisted-queue:v1:".concat(a,":lock"),o=function(h){return new Date().getTime()>h},c=wn.getItem(l),m=c?JSON.parse(c):null,u=m===null||o(m);if(u){wn.setItem(l,JSON.stringify(cQ1()+n)),e(),wn.removeItem(l);return}!u&&r<3?setTimeout(function(){Xw(a,e,r+1)},n):console.error("Unable to retrieve lock")}var MA=function(a){Z8(e,a);function e(r,n){var l=a.call(this,r,[])||this,o="persisted-queue:v1:".concat(n,":items"),c="persisted-queue:v1:".concat(n,":seen"),m=[],u={};return Xw(n,function(){try{m=EY(o),u=MY(c),VY(o),VY(c),l.queue=c2(c2([],m,!0),l.queue,!0),l.seen=a0(a0({},u),l.seen)}catch(h){console.error(h)}}),window.addEventListener("pagehide",function(){if(l.todo>0){var h=c2(c2([],l.queue,!0),l.future,!0);try{Xw(n,function(){oQ1(o,h),iQ1(c,l.seen)})}catch(g){console.error(g)}}}),l}return e}(gA),sQ1=function(a){Z8(e,a);function e(r){return a.call(this,typeof r=="string"?new MA(4,r):r)||this}return e.prototype.flush=function(){return S1(this,void 0,void 0,function(){return L1(this,function(r){return ho()?[2,[]]:[2,a.prototype.flush.call(this)]})})},e}(zY1);function Jw(a){for(var e=a.constructor.prototype,r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++){var l=n[r];if(l!=="constructor"){var o=Object.getOwnPropertyDescriptor(a.constructor.prototype,l);o&&typeof o.value=="function"&&(a[l]=a[l].bind(a))}}return a}/*! js-cookie v3.0.1 | MIT */function VA(a){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)a[n]=r[n]}return a}var mQ1={read:function(a){return a[0]==='"'&&(a=a.slice(1,-1)),a.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(a){return encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function eS(a,e){function r(l,o,c){if(!(typeof document>"u")){c=VA({},e,c),typeof c.expires=="number"&&(c.expires=new Date(Date.now()+c.expires*864e5)),c.expires&&(c.expires=c.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var u in c)c[u]&&(m+="; "+u,c[u]!==!0&&(m+="="+c[u].split(";")[0]));return document.cookie=l+"="+a.write(o,l)+m}}function n(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var o=document.cookie?document.cookie.split("; "):[],c={},m=0;m<o.length;m++){var u=o[m].split("="),h=u.slice(1).join("=");try{var g=decodeURIComponent(u[0]);if(c[g]=a.read(h,g),l===g)break}catch{}}return l?c[l]:c}}return Object.create({set:r,get:n,remove:function(l,o){r(l,"",VA({},o,{expires:-1}))},withAttributes:function(l){return eS(this.converter,VA({},this.attributes,l))},withConverter:function(l){return eS(VA({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(a)}})}var Tl=eS(mQ1,{path:"/"});function uQ1(a){var e=a.hostname,r=e.split("."),n=r[r.length-1],l=[];if(r.length===4&&parseInt(n,10)>0||r.length<=1)return l;for(var o=r.length-2;o>=0;--o)l.push(r.slice(o).join("."));return l}function dQ1(a){try{return new URL(a)}catch{return}}function OY(a){var e=dQ1(a);if(e)for(var r=uQ1(e),n=0;n<r.length;++n){var l="__tld__",o=r[n],c={domain:"."+o};try{if(Tl.set(l,"1",c),Tl.get(l))return Tl.remove(l,c),o}catch{return}}}var pQ1=365,$Y=function(){function a(e){e===void 0&&(e=a.defaults),this.options=a0(a0({},a.defaults),e)}return Object.defineProperty(a,"defaults",{get:function(){return{maxage:pQ1,domain:OY(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),a.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},a.prototype.get=function(e){var r;try{var n=Tl.get(e);if(n==null)return null;try{return(r=JSON.parse(n))!==null&&r!==void 0?r:null}catch{return n??null}}catch{return null}},a.prototype.set=function(e,r){typeof r=="string"?Tl.set(e,r,this.opts()):r===null?Tl.remove(e,this.opts()):Tl.set(e,JSON.stringify(r),this.opts())},a.prototype.remove=function(e){return Tl.remove(e,this.opts())},a}(),hQ1=function(){function a(){}return a.prototype.localStorageWarning=function(e,r){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(r))},a.prototype.get=function(e){var r;try{var n=localStorage.getItem(e);if(n===null)return null;try{return(r=JSON.parse(n))!==null&&r!==void 0?r:null}catch{return n??null}}catch{return this.localStorageWarning(e,"unavailable"),null}},a.prototype.set=function(e,r){try{localStorage.setItem(e,JSON.stringify(r))}catch{this.localStorageWarning(e,"full")}},a.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch{this.localStorageWarning(e,"unavailable")}},a}(),tS=function(){function a(){this.cache={}}return a.prototype.get=function(e){var r;return(r=this.cache[e])!==null&&r!==void 0?r:null},a.prototype.set=function(e,r){this.cache[e]=r},a.prototype.remove=function(e){delete this.cache[e]},a}(),B6={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"};function wY(a){return a&&a.stores&&Array.isArray(a.stores)&&a.stores.every(function(e){return Object.values(B6).includes(e)})}function fQ1(a){return typeof a=="object"&&a.name!==void 0}var aS=function(a,e,r,n){console.warn("".concat(a.constructor.name,": Can't ").concat(e,' key "').concat(r,'" | Err: ').concat(n))},p5=function(){function a(e){this.stores=e}return a.prototype.get=function(e){for(var r=null,n=0,l=this.stores;n<l.length;n++){var o=l[n];try{if(r=o.get(e),r!=null)return r}catch(c){aS(o,"get",e,c)}}return null},a.prototype.set=function(e,r){this.stores.forEach(function(n){try{n.set(e,r)}catch(l){aS(n,"set",e,l)}})},a.prototype.clear=function(e){this.stores.forEach(function(r){try{r.remove(e)}catch(n){aS(r,"remove",e,n)}})},a.prototype.getAndSync=function(e){var r=this.get(e),n=typeof r=="number"?r.toString():r;return this.set(e,n),n},a}();function rS(a){var e=a.map(function(r){var n,l;switch(fQ1(r)?(n=r.name,l=r.settings):n=r,n){case B6.Cookie:return new $Y(l);case B6.LocalStorage:return new hQ1;case B6.Memory:return new tS;default:throw new Error("Unknown Store Type: ".concat(r))}});return e}function SY(a,e){return a.map(function(r){return e&&r===B6.Cookie?{name:r,settings:e}:r})}var h5={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},LY=function(){function a(e,r){e===void 0&&(e=h5);var n=this,l,o,c,m;this.options={},this.id=function(h){if(n.options.disable)return null;var g=n.identityStore.getAndSync(n.idKey);if(h!==void 0){n.identityStore.set(n.idKey,h);var A=h!==g&&g!==null&&h!==null;A&&n.anonymousId(null)}var y=n.identityStore.getAndSync(n.idKey);if(y)return y;var E=n.legacyUserStore.get(h5.cookie.oldKey);return E?typeof E=="object"?E.id:E:null},this.anonymousId=function(h){var g,A;if(n.options.disable)return null;if(h===void 0){var y=(g=n.identityStore.getAndSync(n.anonKey))!==null&&g!==void 0?g:(A=n.legacySIO())===null||A===void 0?void 0:A[0];if(y)return y}return h===null?(n.identityStore.set(n.anonKey,null),n.identityStore.getAndSync(n.anonKey)):(n.identityStore.set(n.anonKey,h??Gw()),n.identityStore.getAndSync(n.anonKey))},this.traits=function(h){var g;if(!n.options.disable)return h===null&&(h={}),h&&n.traitsStore.set(n.traitsKey,h??{}),(g=n.traitsStore.get(n.traitsKey))!==null&&g!==void 0?g:{}},this.options=a0(a0({},h5),e),this.cookieOptions=r,this.idKey=(o=(l=e.cookie)===null||l===void 0?void 0:l.key)!==null&&o!==void 0?o:h5.cookie.key,this.traitsKey=(m=(c=e.localStorage)===null||c===void 0?void 0:c.key)!==null&&m!==void 0?m:h5.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,r),this.legacyUserStore=this.createStorage(this.options,r,function(h){return h===B6.Cookie}),this.traitsStore=this.createStorage(this.options,r,function(h){return h!==B6.Cookie});var u=this.legacyUserStore.get(h5.cookie.oldKey);u&&typeof u=="object"&&(u.id&&this.id(u.id),u.traits&&this.traits(u.traits)),Jw(this)}return a.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var r=e.split("----"),n=r[0],l=r[1];return[n,l]},a.prototype.identify=function(e,r){if(!this.options.disable){r=r??{};var n=this.id();(n===null||n===e)&&(r=a0(a0({},this.traits()),r)),e&&this.id(e),this.traits(r)}},a.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},a.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},a.prototype.load=function(){return new a(this.options,this.cookieOptions)},a.prototype.save=function(){return!0},a.prototype.createStorage=function(e,r,n){var l=[B6.LocalStorage,B6.Cookie,B6.Memory];return e.disable?new p5([]):e.persist?(e.storage!==void 0&&e.storage!==null&&wY(e.storage)&&(l=e.storage.stores),e.localStorageFallbackDisabled&&(l=l.filter(function(o){return o!==B6.LocalStorage})),n&&(l=l.filter(n)),new p5(rS(SY(l,r)))):new p5([new tS])},a.defaults=h5,a}(),FY={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},vQ1=function(a){Z8(e,a);function e(r,n){r===void 0&&(r=FY);var l=a.call(this,a0(a0({},FY),r),n)||this;return l.anonymousId=function(o){},Jw(l),l}return e}(LY),nS="analytics";function jY(){return window[nS]}function gQ1(a){nS=a}function AQ1(a){window[nS]=a}var ZQ1=function(a){return typeof a=="object"&&a!==null&&"then"in a&&typeof a.then=="function"},PY=function(a,e,r){r.getAndRemove(a).forEach(function(n){OA(e,n).catch(console.error)})},yQ1=function(a,e){return S1(void 0,void 0,void 0,function(){var r,n,l;return L1(this,function(o){switch(o.label){case 0:r=0,n=e.getAndRemove("addSourceMiddleware"),o.label=1;case 1:return r<n.length?(l=n[r],[4,OA(a,l).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},bQ1=function(a,e){return S1(void 0,void 0,void 0,function(){var r,n,l;return L1(this,function(o){switch(o.label){case 0:r=0,n=e.getAndRemove("register"),o.label=1;case 1:return r<n.length?(l=n[r],[4,OA(a,l).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},HQ1=PY.bind(void 0,"on"),EQ1=PY.bind(void 0,"setAnonymousId"),MQ1=function(a,e){Object.keys(e.calls).forEach(function(r){e.getAndRemove(r).forEach(function(n){setTimeout(function(){OA(a,n).catch(console.error)},0)})})},Gc=function(a){if(kY(a)){var e=a.pop();return bY(e)}},kY=function(a){var e=a[a.length-1];return XY1(e)},lS=function(){function a(e,r,n,l){n===void 0&&(n=function(){}),l===void 0&&(l=console.error),this.method=e,this.resolve=n,this.reject=l,this.called=!1,this.args=r}return a}(),VQ1=function(){function a(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(a.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e},enumerable:!1,configurable:!0}),a.prototype.get=function(e){var r;return(r=this.calls[e])!==null&&r!==void 0?r:[]},a.prototype.getAndRemove=function(e){var r=this.get(e);return this.calls[e]=[],r},a.prototype.add=function(){for(var e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];r.forEach(function(l){var o=["track","screen","alias","group","page","identify"];o.includes(l.method)&&!kY(l.args)&&(l.args=c2(c2([],l.args,!0),[HY()],!1)),e.calls[l.method]?e.calls[l.method].push(l):e.calls[l.method]=[l]})},a.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},a.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},a.prototype._pushSnippetWindowBuffer=function(){},a}();function OA(a,e){return S1(this,void 0,void 0,function(){var r,n;return L1(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),e.called?[2,void 0]:(e.called=!0,r=a[e.method].apply(a,e.args),ZQ1(r)?[4,r]:[3,2]);case 1:l.sent(),l.label=2;case 2:return e.resolve(r),[3,4];case 3:return n=l.sent(),e.reject(n),[3,4];case 4:return[2]}})})}var OQ1=function(){function a(e){var r=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=HA,this._preInitBuffer=new VQ1,this._promise=e(this._preInitBuffer),this._promise.then(function(n){var l=n[0],o=n[1];r.instance=l,r.ctx=o}).catch(function(){})}return a.prototype.then=function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(e=this._promise).then.apply(e,r)},a.prototype.catch=function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(e=this._promise).catch.apply(e,r)},a.prototype.finally=function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(e=this._promise).finally.apply(e,r)},a.prototype._createMethod=function(e){var r=this;return function(){for(var n,l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];if(r.instance){var c=(n=r.instance)[e].apply(n,l);return Promise.resolve(c)}return new Promise(function(m,u){r._preInitBuffer.add(new lS(e,l,m,u))})}},a.prototype._createChainableMethod=function(e){var r=this;return function(){for(var n,l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];return r.instance?((n=r.instance)[e].apply(n,l),r):(r._preInitBuffer.add(new lS(e,l)),r)}},a}(),g4={},Sn={},oS={},_Y={exports:{}};(function(a){a.exports=e(r),a.exports.find=a.exports,a.exports.replace=function(m,u,h,g){return e(l).call(this,m,u,h,g),m},a.exports.del=function(m,u,h){return e(n).call(this,m,u,null,h),m};function e(m){return function(u,h,g,A){var y=A&&c(A.normalizer)?A.normalizer:o;h=y(h);for(var E,M=!1;!M;)O();function O(){for(E in u){var S=y(E);if(h.indexOf(S)===0){var F=h.substr(S.length);if(F.charAt(0)==="."||F.length===0){h=F.substr(1);var j=u[E];if(j==null){M=!0;return}if(!h.length){M=!0;return}u=j;return}}}E=void 0,M=!0}if(E)return u==null?u:m(u,E,g)}}function r(m,u){if(m.hasOwnProperty(u))return m[u]}function n(m,u){return m.hasOwnProperty(u)&&delete m[u],m}function l(m,u,h){return m.hasOwnProperty(u)&&(m[u]=h),m}function o(m){return m.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function c(m){return typeof m=="function"}})(_Y);var $A=_Y.exports,$Q1=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(oS,"__esModule",{value:!0});var fo=$Q1($A);function Yc(a,e){return function(){var r=this.traits(),n=this.properties?this.properties():{};return fo.default(r,"address."+a)||fo.default(r,a)||(e?fo.default(r,"address."+e):null)||(e?fo.default(r,e):null)||fo.default(n,"address."+a)||fo.default(n,a)||(e?fo.default(n,"address."+e):null)||(e?fo.default(n,e):null)}}function wQ1(a){a.zip=Yc("postalCode","zip"),a.country=Yc("country"),a.street=Yc("street"),a.state=Yc("state"),a.city=Yc("city"),a.region=Yc("region")}oS.default=wQ1;var wA={};Object.defineProperty(wA,"__esModule",{value:!0}),wA.clone=void 0;function iS(a){if(typeof a!="object")return a;if(Object.prototype.toString.call(a)==="[object Object]"){var e={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=iS(a[r]));return e}else return Array.isArray(a)?a.map(iS):a}wA.clone=iS;var cS={};Object.defineProperty(cS,"__esModule",{value:!0});var SQ1={Salesforce:!0};function LQ1(a){return!SQ1[a]}cS.default=LQ1;var SA={},CY=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;SA.parse=function(a){var e=[1,5,6,7,11,12],r=CY.exec(a),n=0;if(!r)return new Date(a);for(var l=0,o;o=e[l];l++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0,r[4]===" "?n=new Date().getTimezoneOffset():r[9]!=="Z"&&r[10]&&(n=r[11]*60+r[12],r[10]==="+"&&(n=0-n));var c=Date.UTC(r[1],r[2],r[3],r[5],r[6]+n,r[7],r[8]);return new Date(c)},SA.is=function(a,e){return typeof a!="string"||e&&/^\d{4}-\d{2}-\d{2}/.test(a)===!1?!1:CY.test(a)};var sS={},FQ1=/\d{13}/;sS.is=function(a){return FQ1.test(a)},sS.parse=function(a){return a=parseInt(a,10),new Date(a)};var mS={},jQ1=/\d{10}/;mS.is=function(a){return jQ1.test(a)},mS.parse=function(a){var e=parseInt(a,10)*1e3;return new Date(e)};var NY=SA,TY=sS,IY=mS,PQ1=Object.prototype,DY=PQ1.toString;function kQ1(a){return DY.call(a)==="[object Date]"}function _Q1(a){return DY.call(a)==="[object Number]"}var uS=function(e){return kQ1(e)?e:_Q1(e)?new Date(CQ1(e)):NY.is(e)?NY.parse(e):TY.is(e)?TY.parse(e):IY.is(e)?IY.parse(e):new Date(e)};function CQ1(a){return a<315576e5?a*1e3:a}var xY=SA,NQ1=dS;function dS(a,e){return e===void 0&&(e=!0),a&&typeof a=="object"?TQ1(a,e):Array.isArray(a)?IQ1(a,e):xY.is(a,e)?xY.parse(a):a}function TQ1(a,e){return Object.keys(a).forEach(function(r){a[r]=dS(a[r],e)}),a}function IQ1(a,e){return a.forEach(function(r,n){a[n]=dS(r,e)}),a}var Bu=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.Facade=void 0;var DQ1=Bu(oS),Qc=wA,xQ1=Bu(cS),RQ1=Bu(uS),pS=Bu($A),zQ1=Bu(NQ1);function A4(a,e){e=e||{},this.raw=Qc.clone(a),"clone"in e||(e.clone=!0),e.clone&&(a=Qc.clone(a)),"traverse"in e||(e.traverse=!0),"timestamp"in a?a.timestamp=RQ1.default(a.timestamp):a.timestamp=new Date,e.traverse&&zQ1.default(a),this.opts=e,this.obj=a}Sn.Facade=A4;var $8=A4.prototype;$8.proxy=function(a){var e=a.split(".");a=e.shift();var r=this[a]||this.obj[a];return r&&(typeof r=="function"&&(r=r.call(this)||{}),e.length===0?this.opts.clone?hS(r):r:(r=pS.default(r,e.join(".")),this.opts.clone?hS(r):r))},$8.field=function(a){var e=this.obj[a];return this.opts.clone?hS(e):e},A4.proxy=function(a){return function(){return this.proxy(a)}},A4.field=function(a){return function(){return this.field(a)}},A4.multi=function(a){return function(){var e=this.proxy(a+"s");if(Array.isArray(e))return e;var r=this.proxy(a);return r&&(r=[this.opts.clone?Qc.clone(r):r]),r||[]}},A4.one=function(a){return function(){var e=this.proxy(a);if(e)return e;var r=this.proxy(a+"s");if(Array.isArray(r))return r[0]}},$8.json=function(){var a=this.opts.clone?Qc.clone(this.obj):this.obj;return this.type&&(a.type=this.type()),a},$8.rawEvent=function(){return this.raw},$8.options=function(a){var e=this.obj.options||this.obj.context||{},r=this.opts.clone?Qc.clone(e):e;if(!a)return r;if(this.enabled(a)){var n=this.integrations(),l=n[a]||pS.default(n,a);return typeof l!="object"&&(l=pS.default(this.options(),a)),typeof l=="object"?l:{}}},$8.context=$8.options,$8.enabled=function(a){var e=this.proxy("options.providers.all");typeof e!="boolean"&&(e=this.proxy("options.all")),typeof e!="boolean"&&(e=this.proxy("integrations.all")),typeof e!="boolean"&&(e=!0);var r=e&&xQ1.default(a),n=this.integrations();if(n.providers&&n.providers.hasOwnProperty(a)&&(r=n.providers[a]),n.hasOwnProperty(a)){var l=n[a];typeof l=="boolean"?r=l:r=!0}return!!r},$8.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},$8.active=function(){var a=this.proxy("options.active");return a==null&&(a=!0),a},$8.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},$8.sessionId=$8.anonymousId,$8.groupId=A4.proxy("options.groupId"),$8.traits=function(a){var e=this.proxy("options.traits")||{},r=this.userId();a=a||{},r&&(e.id=r);for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){var l=this[n]==null?this.proxy("options.traits."+n):this[n]();if(l==null)continue;e[a[n]]=l,delete e[n]}return e},$8.library=function(){var a=this.proxy("options.library");return a?typeof a=="string"?{name:a,version:null}:a:{name:"unknown",version:null}},$8.device=function(){var a=this.proxy("context.device");(typeof a!="object"||a===null)&&(a={});var e=this.library().name;return a.type||(e.indexOf("ios")>-1&&(a.type="ios"),e.indexOf("android")>-1&&(a.type="android")),a},$8.userAgent=A4.proxy("context.userAgent"),$8.timezone=A4.proxy("context.timezone"),$8.timestamp=A4.field("timestamp"),$8.channel=A4.field("channel"),$8.ip=A4.proxy("context.ip"),$8.userId=A4.field("userId"),DQ1.default($8);function hS(a){return Qc.clone(a)}var LA={},fS={exports:{}};typeof Object.create=="function"?fS.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:fS.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var f5=fS.exports,UQ1=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(LA,"__esModule",{value:!0}),LA.Alias=void 0;var BQ1=UQ1(f5),RY=Sn;function Fr(a,e){RY.Facade.call(this,a,e)}LA.Alias=Fr,BQ1.default(Fr,RY.Facade),Fr.prototype.action=function(){return"alias"},Fr.prototype.type=Fr.prototype.action,Fr.prototype.previousId=function(){return this.field("previousId")||this.field("from")},Fr.prototype.from=Fr.prototype.previousId,Fr.prototype.userId=function(){return this.field("userId")||this.field("to")},Fr.prototype.to=Fr.prototype.userId;var FA={},Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});var qQ1=/.+\@.+\..+/;function WQ1(a){return qQ1.test(a)}Kc.default=WQ1;var vS=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(FA,"__esModule",{value:!0}),FA.Group=void 0;var GQ1=vS(f5),YQ1=vS(Kc),QQ1=vS(uS),Xc=Sn;function gS(a,e){Xc.Facade.call(this,a,e)}FA.Group=gS,GQ1.default(gS,Xc.Facade);var jr=gS.prototype;jr.action=function(){return"group"},jr.type=jr.action,jr.groupId=Xc.Facade.field("groupId"),jr.created=function(){var a=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(a)return QQ1.default(a)},jr.email=function(){var a=this.proxy("traits.email");if(a)return a;var e=this.groupId();if(YQ1.default(e))return e},jr.traits=function(a){var e=this.properties(),r=this.groupId();a=a||{},r&&(e.id=r);for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){var l=this[n]==null?this.proxy("traits."+n):this[n]();if(l==null)continue;e[a[n]]=l,delete e[n]}return e},jr.name=Xc.Facade.proxy("traits.name"),jr.industry=Xc.Facade.proxy("traits.industry"),jr.employees=Xc.Facade.proxy("traits.employees"),jr.properties=function(){return this.field("traits")||this.field("properties")||{}};var qu={},jA=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(qu,"__esModule",{value:!0}),qu.Identify=void 0;var Ln=Sn,Jc=jA($A),KQ1=jA(f5),XQ1=jA(Kc),zY=jA(uS),v5=function(a){return a.trim()};function AS(a,e){Ln.Facade.call(this,a,e)}qu.Identify=AS,KQ1.default(AS,Ln.Facade);var w8=AS.prototype;w8.action=function(){return"identify"},w8.type=w8.action,w8.traits=function(a){var e=this.field("traits")||{},r=this.userId();a=a||{},r&&(e.id=r);for(var n in a){var l=this[n]==null?this.proxy("traits."+n):this[n]();l!=null&&(e[a[n]]=l,n!==a[n]&&delete e[n])}return e},w8.email=function(){var a=this.proxy("traits.email");if(a)return a;var e=this.userId();if(XQ1.default(e))return e},w8.created=function(){var a=this.proxy("traits.created")||this.proxy("traits.createdAt");if(a)return zY.default(a)},w8.companyCreated=function(){var a=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(a)return zY.default(a)},w8.companyName=function(){return this.proxy("traits.company.name")},w8.name=function(){var a=this.proxy("traits.name");if(typeof a=="string")return v5(a);var e=this.firstName(),r=this.lastName();if(e&&r)return v5(e+" "+r)},w8.firstName=function(){var a=this.proxy("traits.firstName");if(typeof a=="string")return v5(a);var e=this.proxy("traits.name");if(typeof e=="string")return v5(e).split(" ")[0]},w8.lastName=function(){var a=this.proxy("traits.lastName");if(typeof a=="string")return v5(a);var e=this.proxy("traits.name");if(typeof e=="string"){var r=v5(e).indexOf(" ");if(r!==-1)return v5(e.substr(r+1))}},w8.uid=function(){return this.userId()||this.username()||this.email()},w8.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},w8.age=function(){var a=this.birthday(),e=Jc.default(this.traits(),"age");if(e!=null)return e;if(a instanceof Date){var r=new Date;return r.getFullYear()-a.getFullYear()}},w8.avatar=function(){var a=this.traits();return Jc.default(a,"avatar")||Jc.default(a,"photoUrl")||Jc.default(a,"avatarUrl")},w8.position=function(){var a=this.traits();return Jc.default(a,"position")||Jc.default(a,"jobTitle")},w8.username=Ln.Facade.proxy("traits.username"),w8.website=Ln.Facade.one("traits.website"),w8.websites=Ln.Facade.multi("traits.website"),w8.phone=Ln.Facade.one("traits.phone"),w8.phones=Ln.Facade.multi("traits.phone"),w8.address=Ln.Facade.proxy("traits.address"),w8.gender=Ln.Facade.proxy("traits.gender"),w8.birthday=Ln.Facade.proxy("traits.birthday");var e9={},ZS=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e9,"__esModule",{value:!0}),e9.Track=void 0;var JQ1=ZS(f5),ta=Sn,eK1=qu,tK1=ZS(Kc),UY=ZS($A);function yS(a,e){ta.Facade.call(this,a,e)}e9.Track=yS,JQ1.default(yS,ta.Facade);var Ge=yS.prototype;Ge.action=function(){return"track"},Ge.type=Ge.action,Ge.event=ta.Facade.field("event"),Ge.value=ta.Facade.proxy("properties.value"),Ge.category=ta.Facade.proxy("properties.category"),Ge.id=ta.Facade.proxy("properties.id"),Ge.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},Ge.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},Ge.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},Ge.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},Ge.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},Ge.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},Ge.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},Ge.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},Ge.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},Ge.sku=ta.Facade.proxy("properties.sku"),Ge.tax=ta.Facade.proxy("properties.tax"),Ge.name=ta.Facade.proxy("properties.name"),Ge.price=ta.Facade.proxy("properties.price"),Ge.total=ta.Facade.proxy("properties.total"),Ge.repeat=ta.Facade.proxy("properties.repeat"),Ge.coupon=ta.Facade.proxy("properties.coupon"),Ge.shipping=ta.Facade.proxy("properties.shipping"),Ge.discount=ta.Facade.proxy("properties.discount"),Ge.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},Ge.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},Ge.description=ta.Facade.proxy("properties.description"),Ge.plan=ta.Facade.proxy("properties.plan"),Ge.subtotal=function(){var a=UY.default(this.properties(),"subtotal"),e=this.total()||this.revenue();if(a)return a;if(!e)return 0;if(this.total()){var r=this.tax();r&&(e-=r),r=this.shipping(),r&&(e-=r),r=this.discount(),r&&(e+=r)}return e},Ge.products=function(){var a=this.properties(),e=UY.default(a,"products");return Array.isArray(e)?e.filter(function(r){return r!==null}):[]},Ge.quantity=function(){var a=this.obj.properties||{};return a.quantity||1},Ge.currency=function(){var a=this.obj.properties||{};return a.currency||"USD"},Ge.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},Ge.query=ta.Facade.proxy("options.query"),Ge.properties=function(a){var e=this.field("properties")||{};a=a||{};for(var r in a)if(Object.prototype.hasOwnProperty.call(a,r)){var n=this[r]==null?this.proxy("properties."+r):this[r]();if(n==null)continue;e[a[r]]=n,delete e[r]}return e},Ge.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},Ge.email=function(){var a=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(a)return a;var e=this.userId();if(tK1.default(e))return e},Ge.revenue=function(){var a=this.proxy("properties.revenue"),e=this.event(),r=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!a&&e&&e.match(r)&&(a=this.proxy("properties.total")),aK1(a)},Ge.cents=function(){var a=this.revenue();return typeof a!="number"?this.value()||0:a*100},Ge.identify=function(){var a=this.json();return a.traits=this.traits(),new eK1.Identify(a,this.opts)};function aK1(a){if(a){if(typeof a=="number")return a;if(typeof a=="string"&&(a=a.replace(/\$/g,""),a=parseFloat(a),!isNaN(a)))return a}}var Wu={},BY=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.Page=void 0;var rK1=BY(f5),g5=Sn,nK1=e9,lK1=BY(Kc);function bS(a,e){g5.Facade.call(this,a,e)}Wu.Page=bS,rK1.default(bS,g5.Facade);var q6=bS.prototype;q6.action=function(){return"page"},q6.type=q6.action,q6.category=g5.Facade.field("category"),q6.name=g5.Facade.field("name"),q6.title=g5.Facade.proxy("properties.title"),q6.path=g5.Facade.proxy("properties.path"),q6.url=g5.Facade.proxy("properties.url"),q6.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},q6.properties=function(a){var e=this.field("properties")||{},r=this.category(),n=this.name();a=a||{},r&&(e.category=r),n&&(e.name=n);for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var o=this[l]==null?this.proxy("properties."+l):this[l]();if(o==null)continue;e[a[l]]=o,l!==a[l]&&delete e[l]}return e},q6.email=function(){var a=this.proxy("context.traits.email")||this.proxy("properties.email");if(a)return a;var e=this.userId();if(lK1.default(e))return e},q6.fullName=function(){var a=this.category(),e=this.name();return e&&a?a+" "+e:e},q6.event=function(a){return a?"Viewed "+a+" Page":"Loaded a Page"},q6.track=function(a){var e=this.json();return e.event=this.event(a),e.timestamp=this.timestamp(),e.properties=this.properties(),new nK1.Track(e,this.opts)};var PA={},oK1=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(PA,"__esModule",{value:!0}),PA.Screen=void 0;var iK1=oK1(f5),qY=Wu,cK1=e9;function A5(a,e){qY.Page.call(this,a,e)}PA.Screen=A5,iK1.default(A5,qY.Page),A5.prototype.action=function(){return"screen"},A5.prototype.type=A5.prototype.action,A5.prototype.event=function(a){return a?"Viewed "+a+" Screen":"Loaded a Screen"},A5.prototype.track=function(a){var e=this.json();return e.event=this.event(a),e.timestamp=this.timestamp(),e.properties=this.properties(),new cK1.Track(e,this.opts)};var kA={},sK1=he&&he.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(kA,"__esModule",{value:!0}),kA.Delete=void 0;var mK1=sK1(f5),WY=Sn;function HS(a,e){WY.Facade.call(this,a,e)}kA.Delete=HS,mK1.default(HS,WY.Facade),HS.prototype.type=function(){return"delete"},function(a){var e=he&&he.__assign||function(){return e=Object.assign||function(g){for(var A,y=1,E=arguments.length;y<E;y++){A=arguments[y];for(var M in A)Object.prototype.hasOwnProperty.call(A,M)&&(g[M]=A[M])}return g},e.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.Delete=a.Screen=a.Page=a.Track=a.Identify=a.Group=a.Alias=a.Facade=void 0;var r=Sn;Object.defineProperty(a,"Facade",{enumerable:!0,get:function(){return r.Facade}});var n=LA;Object.defineProperty(a,"Alias",{enumerable:!0,get:function(){return n.Alias}});var l=FA;Object.defineProperty(a,"Group",{enumerable:!0,get:function(){return l.Group}});var o=qu;Object.defineProperty(a,"Identify",{enumerable:!0,get:function(){return o.Identify}});var c=e9;Object.defineProperty(a,"Track",{enumerable:!0,get:function(){return c.Track}});var m=Wu;Object.defineProperty(a,"Page",{enumerable:!0,get:function(){return m.Page}});var u=PA;Object.defineProperty(a,"Screen",{enumerable:!0,get:function(){return u.Screen}});var h=kA;Object.defineProperty(a,"Delete",{enumerable:!0,get:function(){return h.Delete}}),a.default=e(e({},r.Facade),{Alias:n.Alias,Group:l.Group,Identify:o.Identify,Track:c.Track,Page:m.Page,Screen:u.Screen,Delete:h.Delete})}(g4);function _A(a,e){var r=new g4.Facade(a,e);return a.type==="track"&&(r=new g4.Track(a,e)),a.type==="identify"&&(r=new g4.Identify(a,e)),a.type==="page"&&(r=new g4.Page(a,e)),a.type==="alias"&&(r=new g4.Alias(a,e)),a.type==="group"&&(r=new g4.Group(a,e)),a.type==="screen"&&(r=new g4.Screen(a,e)),Object.defineProperty(r,"obj",{value:a,writable:!0}),r}var uK1=function(a){var e=!1;window.addEventListener("pagehide",function(){e||(e=!0,a(e))}),document.addEventListener("visibilitychange",function(){if(document.visibilityState=="hidden"){if(e)return;e=!0}else e=!1;a(e)})},GY=function(a){Z8(e,a);function e(r,n){var l=a.call(this,r)||this;return l.retryTimeout=n,l.name="RateLimitError",l}return e}(Error),dK1=500,pK1=64;function ES(a){var e=encodeURI(JSON.stringify(a)).split(/%..|./).length-1;return e/1024}function hK1(a){return ES(a)>=dK1-50}function fK1(a){return ES(a)>=pK1-10}function vK1(a){var e=[],r=0;return a.forEach(function(n){var l=ES(e[r]);l>=64&&r++,e[r]?e[r].push(n):e[r]=[n]}),e}function gK1(a,e){var r,n,l=[],o=!1,c=(r=e==null?void 0:e.size)!==null&&r!==void 0?r:10,m=(n=e==null?void 0:e.timeout)!==null&&n!==void 0?n:5e3,u=0;function h(M){var O;if(M.length!==0){var S=(O=M[0])===null||O===void 0?void 0:O.writeKey,F=M.map(function(j){var k=j;k.sentAt;var N=T6(k,["sentAt"]);return N});return bA("https://".concat(a,"/b"),{keepalive:(e==null?void 0:e.keepalive)||o,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:S,batch:F,sentAt:new Date().toISOString()})}).then(function(j){var k;if(j.status>=500)throw new Error("Bad response from server: ".concat(j.status));if(j.status===429){var N=(k=j.headers)===null||k===void 0?void 0:k.get("x-ratelimit-reset"),C=typeof N=="string"?parseInt(N)*1e3:m;throw new GY("Rate limit exceeded: ".concat(j.status),C)}})}}function g(M){var O;return M===void 0&&(M=1),S1(this,void 0,void 0,function(){var S;return L1(this,function(F){return l.length?(S=l,l=[],[2,(O=h(S))===null||O===void 0?void 0:O.catch(function(j){var k,N=$n.system();N.log("error","Error sending batch",j),M<=((k=e==null?void 0:e.maxRetries)!==null&&k!==void 0?k:10)&&(j.name==="RateLimitError"&&(u=j.retryTimeout),l.push.apply(l,S),l.map(function(C){if("_metadata"in C){var I=C;I._metadata=a0(a0({},I._metadata),{retryCount:M})}}),y(M+1))})]):[2]})})}var A;function y(M){M===void 0&&(M=1),!A&&(A=setTimeout(function(){A=void 0,g(M).catch(console.error)},u||m),u=0)}uK1(function(M){if(o=M,o&&l.length){var O=vK1(l).map(h);Promise.all(O).catch(console.error)}});function E(M,O){return S1(this,void 0,void 0,function(){var S;return L1(this,function(F){return l.push(O),S=l.length>=c||hK1(l)||(e==null?void 0:e.keepalive)&&fK1(l),[2,S||o?g():y()]})})}return{dispatch:E}}function AK1(a){function e(r,n){return bA(r,{keepalive:a==null?void 0:a.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(n)}).then(function(l){var o;if(l.status>=500)throw new Error("Bad response from server: ".concat(l.status));if(l.status===429){var c=(o=l.headers)===null||o===void 0?void 0:o.get("x-ratelimit-reset"),m=c?parseInt(c)*1e3:5e3;throw new GY("Rate limit exceeded: ".concat(l.status),m)}})}return{dispatch:e}}function ZK1(a,e,r,n,l){var o,c=a.user();delete e.options,e.writeKey=r==null?void 0:r.apiKey,e.userId=e.userId||c.id(),e.anonymousId=e.anonymousId||c.anonymousId(),e.sentAt=new Date;var m=a.queue.failedInitializations||[];m.length>0&&(e._metadata={failedInitializations:m}),l!=null&&(l.attempts>1&&(e._metadata=a0(a0({},e._metadata),{retryCount:l.attempts})),l.attempts++);var u=[],h=[];for(var g in n){var A=n[g];g==="Segment.io"&&u.push(g),A.bundlingStatus==="bundled"&&u.push(g),A.bundlingStatus==="unbundled"&&h.push(g)}for(var y=0,E=(r==null?void 0:r.unbundledIntegrations)||[];y<E.length;y++){var M=E[y];h.includes(M)||h.push(M)}var O=(o=r==null?void 0:r.maybeBundledConfigIds)!==null&&o!==void 0?o:{},S=[];return u.sort().forEach(function(F){var j;((j=O[F])!==null&&j!==void 0?j:[]).forEach(function(k){S.push(k)})}),(r==null?void 0:r.addBundledMetadata)!==!1&&(e._metadata=a0(a0({},e._metadata),{bundled:u.sort(),unbundled:h.sort(),bundledIds:S})),e}var YY=function(a,e){return S1(void 0,void 0,void 0,function(){var r;return L1(this,function(n){return r=function(l){return S1(void 0,void 0,void 0,function(){var o;return L1(this,function(c){switch(c.label){case 0:return a(l)?(o=r,[4,e()]):[3,2];case 1:return[2,o.apply(void 0,[c.sent()])];case 2:return[2]}})})},[2,r(void 0)]})})};function yK1(a,e){return S1(this,void 0,void 0,function(){var r,n=this;return L1(this,function(l){switch(l.label){case 0:return r=[],ho()?[2,e]:[4,YY(function(){return e.length>0&&!ho()},function(){return S1(n,void 0,void 0,function(){var o,c,m;return L1(this,function(u){switch(u.label){case 0:return o=e.pop(),o?[4,qc(o,a)]:[2];case 1:return c=u.sent(),m=c instanceof $n,m||r.push(o),[2]}})})})];case 1:return l.sent(),r.map(function(o){return e.pushWithBackoff(o)}),[2,e]}})})}function t9(a,e,r,n){var l=this;a||setTimeout(function(){return S1(l,void 0,void 0,function(){var o,c;return L1(this,function(m){switch(m.label){case 0:return o=!0,[4,yK1(r,e)];case 1:return c=m.sent(),o=!1,e.todo>0&&n(o,c,r,n),[2]}})})},Math.random()*5e3)}function bK1(a,e){var r,n,l,o,c=a.user();return e.previousId=(l=(n=(r=e.previousId)!==null&&r!==void 0?r:e.from)!==null&&n!==void 0?n:c.id())!==null&&l!==void 0?l:c.anonymousId(),e.userId=(o=e.userId)!==null&&o!==void 0?o:e.to,delete e.from,delete e.to,e}var HK1=function(a){return a.name==="Segment.io"};function EK1(a,e,r){var n,l,o;window.addEventListener("pagehide",function(){m.push.apply(m,Array.from(u)),u.clear()});var c=(n=e==null?void 0:e.apiKey)!==null&&n!==void 0?n:"",m=a.options.disableClientPersistence?new gA(a.queue.queue.maxAttempts,[]):new MA(a.queue.queue.maxAttempts,"".concat(c,":dest-Segment.io")),u=new Set,h=!1,g=(l=e==null?void 0:e.apiHost)!==null&&l!==void 0?l:gY,A=(o=e==null?void 0:e.protocol)!==null&&o!==void 0?o:"https",y="".concat(A,"://").concat(g),E=e==null?void 0:e.deliveryStrategy,M=(E==null?void 0:E.strategy)==="batching"?gK1(g,E.config):AK1(E==null?void 0:E.config);function O(F){return S1(this,void 0,void 0,function(){var j,k;return L1(this,function(N){return ho()?(m.push(F),t9(h,m,S,t9),[2,F]):(u.add(F),j=F.event.type.charAt(0),k=_A(F.event).json(),F.event.type==="track"&&delete k.traits,F.event.type==="alias"&&(k=bK1(a,k)),[2,M.dispatch("".concat(y,"/").concat(j),ZK1(a,k,e,r,F)).then(function(){return F}).catch(function(C){if(F.log("error","Error sending event",C),C.name==="RateLimitError"){var I=C.retryTimeout;m.pushWithBackoff(F,I)}else m.pushWithBackoff(F);return t9(h,m,S,t9),F}).finally(function(){u.delete(F)})])})})}var S={metadata:{writeKey:c,apiHost:g,protocol:A},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:O,identify:O,page:O,alias:O,group:O,screen:O};return m.todo&&t9(h,m,S,t9),S}var vo="This is being deprecated and will be not be available in future releases of Analytics JS",MS=Qw(),VS=MS==null?void 0:MS.analytics;function MK1(a,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=e?10:1,l=r?new gA(n,[]):new MA(n,a);return new sQ1(l)}var VK1=function(){function a(e,r){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var l;return(l=r.plugins.find(HK1))===null||l===void 0?void 0:l.metadata},this.writeKey=e.writeKey,this.cdnSettings=(n=e.cdnSettings)!==null&&n!==void 0?n:{integrations:{},edgeFunction:{}},this.cdnURL=e.cdnURL}return Object.defineProperty(a.prototype,"apiHost",{get:function(){var e,r;return(r=(e=this._getSegmentPluginMetadata)===null||e===void 0?void 0:e.call(this))===null||r===void 0?void 0:r.apiHost},enumerable:!1,configurable:!0}),a}();function Fn(){console.warn(vo)}var QY=function(a){Z8(e,a);function e(r,n,l,o,c){var m=this,u,h;m=a.call(this)||this,m._debug=!1,m.initialized=!1,m.user=function(){return m._user},m.init=m.initialize.bind(m),m.log=Fn,m.addIntegrationMiddleware=Fn,m.listeners=Fn,m.addEventListener=Fn,m.removeAllListeners=Fn,m.removeListener=Fn,m.removeEventListener=Fn,m.hasListeners=Fn,m.add=Fn,m.addIntegration=Fn;var g=n==null?void 0:n.cookie,A=(u=n==null?void 0:n.disableClientPersistence)!==null&&u!==void 0?u:!1;m.queue=l??MK1("".concat(r.writeKey,":event-queue"),n==null?void 0:n.retryQueue,A),m.settings=new VK1(r,m.queue);var y=n==null?void 0:n.storage;return m._universalStorage=m.createStore(A,y,g),m._user=o??new LY(a0({persist:!A,storage:n==null?void 0:n.storage},n==null?void 0:n.user),g).load(),m._group=c??new vQ1(a0({persist:!A,storage:n==null?void 0:n.storage},n==null?void 0:n.group),g).load(),m.eventFactory=new nQ1(m._user),m.integrations=(h=n==null?void 0:n.integrations)!==null&&h!==void 0?h:{},m.options=n??{},Jw(m),m}return e.prototype.createStore=function(r,n,l){return r?new p5([new tS]):n&&wY(n)?new p5(rS(SY(n.stores,l))):new p5(rS([B6.LocalStorage,{name:B6.Cookie,settings:l},B6.Memory]))},Object.defineProperty(e.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),e.prototype.track=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o,c,m,u,h,g,A=this;return L1(this,function(y){return l=Gc(r),o=qY1.apply(void 0,r),c=o[0],m=o[1],u=o[2],h=o[3],g=this.eventFactory.track(c,m,u,this.integrations,l),[2,this._dispatch(g,h).then(function(E){return A.emit("track",c,E.event.properties,E.event.options),E})]})})},e.prototype.page=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o,c,m,u,h,g,A,y=this;return L1(this,function(E){return l=Gc(r),o=pY.apply(void 0,r),c=o[0],m=o[1],u=o[2],h=o[3],g=o[4],A=this.eventFactory.page(c,m,u,h,this.integrations,l),[2,this._dispatch(A,g).then(function(M){return y.emit("page",c,m,M.event.properties,M.event.options),M})]})})},e.prototype.identify=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o,c,m,u,h,g,A=this;return L1(this,function(y){return l=Gc(r),o=hY(this._user).apply(void 0,r),c=o[0],m=o[1],u=o[2],h=o[3],this._user.identify(c,m),g=this.eventFactory.identify(this._user.id(),this._user.traits(),u,this.integrations,l),[2,this._dispatch(g,h).then(function(E){return A.emit("identify",E.event.userId,E.event.traits,E.event.options),E})]})})},e.prototype.group=function(){for(var r=this,n=[],l=0;l<arguments.length;l++)n[l]=arguments[l];var o=Gc(n);if(n.length===0)return this._group;var c=hY(this._group).apply(void 0,n),m=c[0],u=c[1],h=c[2],g=c[3];this._group.identify(m,u);var A=this._group.id(),y=this._group.traits(),E=this.eventFactory.group(A,y,h,this.integrations,o);return this._dispatch(E,g).then(function(M){return r.emit("group",M.event.groupId,M.event.traits,M.event.options),M})},e.prototype.alias=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o,c,m,u,h,g,A=this;return L1(this,function(y){return l=Gc(r),o=WY1.apply(void 0,r),c=o[0],m=o[1],u=o[2],h=o[3],g=this.eventFactory.alias(c,m,u,this.integrations,l),[2,this._dispatch(g,h).then(function(E){return A.emit("alias",c,m,E.event.options),E})]})})},e.prototype.screen=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o,c,m,u,h,g,A,y=this;return L1(this,function(E){return l=Gc(r),o=pY.apply(void 0,r),c=o[0],m=o[1],u=o[2],h=o[3],g=o[4],A=this.eventFactory.screen(c,m,u,h,this.integrations,l),[2,this._dispatch(A,g).then(function(M){return y.emit("screen",c,m,M.event.properties,M.event.options),M})]})})},e.prototype.trackClick=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o;return L1(this,function(c){switch(c.label){case 0:return[4,Promise.resolve().then(()=>LZ)];case 1:return l=c.sent(),[2,(o=l.link).call.apply(o,c2([this],r,!1))]}})})},e.prototype.trackLink=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o;return L1(this,function(c){switch(c.label){case 0:return[4,Promise.resolve().then(()=>LZ)];case 1:return l=c.sent(),[2,(o=l.link).call.apply(o,c2([this],r,!1))]}})})},e.prototype.trackSubmit=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o;return L1(this,function(c){switch(c.label){case 0:return[4,Promise.resolve().then(()=>LZ)];case 1:return l=c.sent(),[2,(o=l.form).call.apply(o,c2([this],r,!1))]}})})},e.prototype.trackForm=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o;return L1(this,function(c){switch(c.label){case 0:return[4,Promise.resolve().then(()=>LZ)];case 1:return l=c.sent(),[2,(o=l.form).call.apply(o,c2([this],r,!1))]}})})},e.prototype.register=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o,c=this;return L1(this,function(m){switch(m.label){case 0:return l=$n.system(),o=r.map(function(u){return c.queue.register(l,u,c)}),[4,Promise.all(o)];case 1:return m.sent(),[2,l]}})})},e.prototype.deregister=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return S1(this,void 0,void 0,function(){var l,o,c=this;return L1(this,function(m){switch(m.label){case 0:return l=$n.system(),o=r.map(function(u){var h=c.queue.plugins.find(function(g){return g.name===u});if(h)return c.queue.deregister(l,h,c);l.log("warn","plugin ".concat(u," not found"))}),[4,Promise.all(o)];case 1:return m.sent(),[2,l]}})})},e.prototype.debug=function(r){return r===!1&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=r,this},e.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},e.prototype.timeout=function(r){this.settings.timeout=r},e.prototype._dispatch=function(r,n){return S1(this,void 0,void 0,function(){var l;return L1(this,function(o){return l=new $n(r),ho()&&!this.options.retryQueue?[2,l]:[2,BY1(l,this.queue,this,{callback:n,debug:this._debug,timeout:this.settings.timeout})]})})},e.prototype.addSourceMiddleware=function(r){return S1(this,void 0,void 0,function(){var n=this;return L1(this,function(l){switch(l.label){case 0:return[4,this.queue.criticalTasks.run(function(){return S1(n,void 0,void 0,function(){var o,c,m;return L1(this,function(u){switch(u.label){case 0:return[4,Promise.resolve().then(()=>xK1)];case 1:return o=u.sent().sourceMiddlewarePlugin,c={},this.queue.plugins.forEach(function(h){if(h.type==="destination")return c[h.name]=!0}),m=o(r,c),[4,this.register(m)];case 2:return u.sent(),[2]}})})})];case 1:return l.sent(),[2,this]}})})},e.prototype.addDestinationMiddleware=function(r){for(var n=[],l=1;l<arguments.length;l++)n[l-1]=arguments[l];return this.queue.plugins.filter(lQ1).forEach(function(o){(r==="*"||o.name.toLowerCase()===r.toLowerCase())&&o.addMiddleware.apply(o,n)}),Promise.resolve(this)},e.prototype.setAnonymousId=function(r){return this._user.anonymousId(r)},e.prototype.queryString=function(r){return S1(this,void 0,void 0,function(){var n;return L1(this,function(l){switch(l.label){case 0:return this.options.useQueryString===!1?[2,[]]:[4,Promise.resolve().then(()=>i2a)];case 1:return n=l.sent().queryString,[2,n(this,r)]}})})},e.prototype.use=function(r){return r(this),this},e.prototype.ready=function(r){return r===void 0&&(r=function(n){return n}),S1(this,void 0,void 0,function(){return L1(this,function(n){return[2,Promise.all(this.queue.plugins.map(function(l){return l.ready?l.ready():Promise.resolve()})).then(function(l){return r(l),l})]})})},e.prototype.noConflict=function(){return console.warn(vo),AQ1(VS??this),this},e.prototype.normalize=function(r){return console.warn(vo),this.eventFactory.normalize(r)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(vo),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return HA},enumerable:!1,configurable:!0}),e.prototype.initialize=function(r,n){return S1(this,void 0,void 0,function(){return L1(this,function(l){return console.warn(vo),[2,Promise.resolve(this)]})})},e.prototype.pageview=function(r){return S1(this,void 0,void 0,function(){return L1(this,function(n){switch(n.label){case 0:return console.warn(vo),[4,this.page({path:r})];case 1:return n.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var r;return console.warn(vo),(r=this._plugins)!==null&&r!==void 0?r:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){console.warn(vo);var r=this.queue.plugins.filter(function(n){return n.type==="destination"}).reduce(function(n,l){var o="".concat(l.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),c=window[o];if(!c)return n;var m=c.Integration;return m?(n[l.name]=m,n):(n[l.name]=c,n)},{});return r},enumerable:!1,configurable:!0}),e.prototype.push=function(r){var n=this,l=r.shift();l&&!n[l]||n[l].apply(this,r)},e}(Ww),KY=function(a){Z8(e,a);function e(){var r=a.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return r.initialized=!0,r}return e}(QY),XY={};function JY(){return typeof process>"u"||!XY?{}:XY}var OK1=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,$K1=function(){var a,e=Array.prototype.slice.call(document.querySelectorAll("script"));return e.forEach(function(r){var n,l=(n=r.getAttribute("src"))!==null&&n!==void 0?n:"",o=OK1.exec(l);o&&o[1]&&(a=o[1])}),a},CA,wK1=function(){var a,e=CA??((a=jY())===null||a===void 0?void 0:a._cdn);return e},SK1=function(a){var e=jY();e&&(e._cdn=a),CA=a},OS=function(){var a=wK1();if(a)return a;var e=$K1();return e||"https://cdn.segment.com"},$S=function(){var a=OS();return"".concat(a,"/next-integrations")};function eQ(a,e){var r,n=Object.entries((r=e.integrations)!==null&&r!==void 0?r:{}).reduce(function(l,o){var c,m,u=o[0],h=o[1];return typeof h=="object"?a0(a0({},l),(c={},c[u]=h,c)):a0(a0({},l),(m={},m[u]={},m))},{});return Object.entries(a.integrations).reduce(function(l,o){var c,m=o[0],u=o[1];return a0(a0({},l),(c={},c[m]=a0(a0({},u),n[m]),c))},{})}function tQ(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch{return a}}function LK1(a){return S1(this,void 0,void 0,function(){var e;return L1(this,function(r){return e=navigator.userAgentData,e?a?[2,e.getHighEntropyValues(a).catch(function(){return e.toJSON()})]:[2,e.toJSON()]:[2,void 0]})})}var Gu;function FK1(){if(Gu)return Gu;var a=OY(window.location.href);return Gu={expires:31536e6,secure:!1,path:"/"},a&&(Gu.domain=a),Gu}function jK1(a){var e={btid:"dataxu",urid:"millennial-media"};a.startsWith("?")&&(a=a.substring(1)),a=a.replace(/\?/g,"&");for(var r=a.split("&"),n=0,l=r;n<l.length;n++){var o=l[n],c=o.split("="),m=c[0],u=c[1];if(e[m])return{id:u,type:e[m]}}}function PK1(a){return a.startsWith("?")&&(a=a.substring(1)),a=a.replace(/\?/g,"&"),a.split("&").reduce(function(e,r){var n=r.split("="),l=n[0],o=n[1],c=o===void 0?"":o;if(l.includes("utm_")&&l.length>4){var m=l.slice(4);m==="campaign"&&(m="name"),e[m]=tQ(c)}return e},{})}function kK1(){var a=Tl.get("_ga");if(a&&a.startsWith("amp"))return a}function _K1(a,e,r){var n,l=new p5(r?[]:[new $Y(FK1())]),o=l.get("s:context.referrer"),c=(n=jK1(a))!==null&&n!==void 0?n:o;c&&(e&&(e.referrer=a0(a0({},e.referrer),c)),l.set("s:context.referrer",c))}var CK1=function(a){try{var e=new URLSearchParams;return Object.entries(a).forEach(function(r){var n=r[0],l=r[1];Array.isArray(l)?l.forEach(function(o){return e.append(n,o)}):e.append(n,l)}),e.toString()}catch{return""}},NK1=function(){function a(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(r,n){return S1(e,void 0,void 0,function(){var l;return L1(this,function(o){switch(o.label){case 0:this.instance=n,o.label=1;case 1:return o.trys.push([1,3,,4]),l=this,[4,LK1(this.instance.options.highEntropyValuesClientHints)];case 2:return l.userAgentData=o.sent(),[3,4];case 3:return o.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(r){var n,l,o=r.event.context,c=o.page.search||"",m=typeof c=="object"?CK1(c):c;o.userAgent=navigator.userAgent,o.userAgentData=e.userAgentData;var u=navigator.userLanguage||navigator.language;typeof o.locale>"u"&&typeof u<"u"&&(o.locale=u),(n=o.library)!==null&&n!==void 0||(o.library={name:"analytics.js",version:"".concat("npm:next","-").concat(HA)}),m&&!o.campaign&&(o.campaign=PK1(m));var h=kK1();h&&(o.amp={id:h}),_K1(m,o,(l=e.instance.options.disableClientPersistence)!==null&&l!==void 0?l:!1);try{o.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}return r},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich}return a}(),TK1=new NK1;function aQ(a){var e=Array.prototype.slice.call(window.document.querySelectorAll("script"));return e.find(function(r){return r.src===a})}function a9(a,e){var r=aQ(a);if(r!==void 0){var n=r==null?void 0:r.getAttribute("status");if(n==="loaded")return Promise.resolve(r);if(n==="loading")return new Promise(function(l,o){r.addEventListener("load",function(){return l(r)}),r.addEventListener("error",function(c){return o(c)})})}return new Promise(function(l,o){var c,m=window.document.createElement("script");m.type="text/javascript",m.src=a,m.async=!0,m.setAttribute("status","loading");for(var u=0,h=Object.entries({});u<h.length;u++){var g=h[u],A=g[0],y=g[1];m.setAttribute(A,y)}m.onload=function(){m.onerror=m.onload=null,m.setAttribute("status","loaded"),l(m)},m.onerror=function(){m.onerror=m.onload=null,m.setAttribute("status","error"),o(new Error("Failed to load ".concat(a)))};var E=window.document.querySelector("script");E?(c=E.parentElement)===null||c===void 0||c.insertBefore(m,E):window.document.head.appendChild(m)})}function IK1(a){var e=aQ(a);return e!==void 0&&e.remove(),Promise.resolve()}function wS(a,e,r){return S1(this,void 0,void 0,function(){function n(h,g){return S1(this,void 0,void 0,function(){var A,y,E;return L1(this,function(M){switch(M.label){case 0:return A=!1,y=null,[4,g({payload:_A(h,{clone:!0,traverse:!1}),integration:a,next:function(O){A=!0,O===null&&(y=null),O&&(y=O.obj)}})];case 1:return M.sent(),!A&&y!==null&&(y=y,y.integrations=a0(a0({},h.integrations),(E={},E[a]=!1,E))),[2,y]}})})}var l,o,c,m,u;return L1(this,function(h){switch(h.label){case 0:l=_A(e,{clone:!0,traverse:!1}).rawEvent(),o=0,c=r,h.label=1;case 1:return o<c.length?(m=c[o],[4,n(l,m)]):[3,4];case 2:if(u=h.sent(),u===null)return[2,null];l=u,h.label=3;case 3:return o++,[3,1];case 4:return[2,l]}})})}function DK1(a,e){function r(n){return S1(this,void 0,void 0,function(){var l;return L1(this,function(o){switch(o.label){case 0:return l=!1,[4,a({payload:_A(n.event,{clone:!0,traverse:!1}),integrations:e??{},next:function(c){l=!0,c&&(n.event=c.obj)}})];case 1:if(o.sent(),!l)throw new po({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(a.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(n){return Promise.resolve(n)},track:r,page:r,identify:r,alias:r,group:r}}const xK1=Object.freeze(Object.defineProperty({__proto__:null,applyDestinationMiddleware:wS,sourceMiddlewarePlugin:DK1},Symbol.toStringTag,{value:"Module"}));function go(a,e){var r=e.methodName,n=e.integrationName,l=e.type,o=e.didError,c=o===void 0?!1:o;a.stats.increment("analytics_js.integration.invoke".concat(c?".error":""),1,["method:".concat(r),"integration_name:".concat(n),"type:".concat(l)])}var RK1=function(){function a(e,r){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=qw(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=r,this.name=e,this.type=r.type,this.alternativeNames.push(r.name)}return a.prototype.addMiddleware=function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.type==="destination"&&(e=this.middleware).push.apply(e,r)},a.prototype.transform=function(e){return S1(this,void 0,void 0,function(){var r;return L1(this,function(n){switch(n.label){case 0:return[4,wS(this.name,e.event,this.middleware)];case 1:return r=n.sent(),r===null&&e.cancel(new po({retry:!1,reason:"dropped by destination middleware"})),[2,new $n(r)]}})})},a.prototype._createMethod=function(e){var r=this;return function(n){return S1(r,void 0,void 0,function(){var l,o;return L1(this,function(c){switch(c.label){case 0:return this.action[e]?(l=n,this.type!=="destination"?[3,2]:[4,this.transform(n)]):[2,n];case 1:l=c.sent(),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!c.sent())throw new Error("Something prevented the destination from getting ready");return go(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](l)];case 4:return c.sent(),[3,6];case 5:throw o=c.sent(),go(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),o;case 6:return[2,n]}})})}},a.prototype.isLoaded=function(){return this.action.isLoaded()},a.prototype.ready=function(){return S1(this,void 0,void 0,function(){return L1(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}})})},a.prototype.load=function(e,r){return S1(this,void 0,void 0,function(){var n,l,o,c;return L1(this,function(m){switch(m.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];m.label=1;case 1:return m.trys.push([1,3,,4]),go(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,r),o=(l=this.loadPromise).resolve,[4,n];case 2:return o.apply(l,[m.sent()]),[2,n];case 3:throw c=m.sent(),go(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(c),c;case 4:return[2]}})})},a.prototype.unload=function(e,r){var n,l;return(l=(n=this.action).unload)===null||l===void 0?void 0:l.call(n,e,r)},a}();function zK1(a){if(!Array.isArray(a))throw new Error("Not a valid list of plugins");var e=["load","isLoaded","name","version","type"];return a.forEach(function(r){e.forEach(function(n){var l;if(r[n]===void 0)throw new Error("Plugin: ".concat((l=r.name)!==null&&l!==void 0?l:"unknown"," missing required function ").concat(n))})}),!0}function UK1(a,e){var r=a[e.creationName],n=a[e.name];return a.All===!1&&!r&&!n||r===!1||n===!1}function BK1(a,e){return S1(this,void 0,void 0,function(){var r,n,l,o,c,m;return L1(this,function(u){switch(u.label){case 0:if(u.trys.push([0,9,,10]),r=new RegExp("https://cdn.segment.(com|build)"),n=OS(),!e)return[3,6];l=a.url.split("/"),o=l[l.length-2],c=a.url.replace(o,btoa(o).replace(/=/g,"")),u.label=1;case 1:return u.trys.push([1,3,,5]),[4,a9(c.replace(r,n))];case 2:return u.sent(),[3,5];case 3:return u.sent(),[4,a9(a.url.replace(r,n))];case 4:return u.sent(),[3,5];case 5:return[3,8];case 6:return[4,a9(a.url.replace(r,n))];case 7:u.sent(),u.label=8;case 8:return typeof window[a.libraryName]=="function"?[2,window[a.libraryName]]:[3,10];case 9:throw m=u.sent(),console.error("Failed to create PluginFactory",a),m;case 10:return[2]}})})}function qK1(a,e,r,n,l,o){var c,m,u;return S1(this,void 0,void 0,function(){var h,g,A,y=this;return L1(this,function(E){switch(E.label){case 0:return h=[],g=(m=(c=a.middlewareSettings)===null||c===void 0?void 0:c.routingRules)!==null&&m!==void 0?m:[],A=((u=a.remotePlugins)!==null&&u!==void 0?u:[]).map(function(M){return S1(y,void 0,void 0,function(){var O,S,F,j,k,N;return L1(this,function(C){switch(C.label){case 0:if(UK1(e,M))return[2];C.label=1;case 1:return C.trys.push([1,6,,7]),S=o==null?void 0:o.find(function(I){var z=I.pluginName;return z===M.name}),S?[3,3]:[4,BK1(M,n==null?void 0:n.obfuscate)];case 2:S=C.sent(),C.label=3;case 3:return O=S,O?[4,O(a0(a0({},M.settings),r[M.name]))]:[3,5];case 4:F=C.sent(),j=Array.isArray(F)?F:[F],zK1(j),k=g.filter(function(I){return I.destinationName===M.creationName}),j.forEach(function(I){var z=new RK1(M.creationName,I);k.length&&l&&z.addMiddleware(l),h.push(z)}),C.label=5;case 5:return[3,7];case 6:return N=C.sent(),console.warn("Failed to load Remote Plugin",N),[3,7];case 7:return[2]}})})}),[4,Promise.all(A)];case 1:return E.sent(),[2,h.filter(Boolean)]}})})}var SS,rQ,WK1=Qw(),nQ=(SS=(rQ=WK1).__SEGMENT_INSPECTOR__)!==null&&SS!==void 0?SS:rQ.__SEGMENT_INSPECTOR__={},GK1=function(a){var e;return(e=nQ.attach)===null||e===void 0?void 0:e.call(nQ,a)};function YK1(a,e){return bA("".concat(e,"/v1/projects/").concat(a,"/settings")).then(function(r){return r.ok?r.json():r.text().then(function(n){throw new Error(n)})}).catch(function(r){throw console.error(r.message),r})}function QK1(a){return JY().NODE_ENV!=="test"&&Object.keys(a.integrations).length>1}function KK1(a){var e,r,n;return JY().NODE_ENV!=="test"&&((n=(r=(e=a.middlewareSettings)===null||e===void 0?void 0:e.routingRules)===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0)>0}function XK1(a,e){EQ1(a,e),HQ1(a,e)}function JK1(a,e){return S1(this,void 0,void 0,function(){return L1(this,function(r){switch(r.label){case 0:return[4,yQ1(a,e)];case 1:return r.sent(),MQ1(a,e),[2]}})})}function eX1(a,e,r,n,l,o,c){var m,u,h;return l===void 0&&(l=[]),S1(this,void 0,void 0,function(){var g,A,y,E,M,O,S,F,j,k,N,C,I,z,q,e0=this;return L1(this,function(G){switch(G.label){case 0:return XK1(r,c),g=l==null?void 0:l.filter(function(c0){return typeof c0=="object"}),A=l==null?void 0:l.filter(function(c0){return typeof c0=="function"&&typeof c0.pluginName=="string"}),KK1(e)?[4,Promise.resolve().then(()=>s2a).then(function(c0){return c0.tsubMiddleware(e.middlewareSettings.routingRules)})]:[3,2];case 1:return E=G.sent(),[3,3];case 2:E=void 0,G.label=3;case 3:return y=E,QK1(e)||o.length>0?[4,Promise.resolve().then(()=>y2a).then(function(c0){return c0.ajsDestinations(a,e,r.integrations,n,y,o)})]:[3,5];case 4:return O=G.sent(),[3,6];case 5:O=[],G.label=6;case 6:return M=O,e.legacyVideoPluginsEnabled?[4,Promise.resolve().then(()=>H2a).then(function(c0){return c0.loadLegacyVideoPlugins(r)})]:[3,8];case 7:G.sent(),G.label=8;case 8:return!((m=n.plan)===null||m===void 0)&&m.track?[4,Promise.resolve().then(()=>V2a).then(function(c0){var t0;return c0.schemaFilter((t0=n.plan)===null||t0===void 0?void 0:t0.track,e)})]:[3,10];case 9:return F=G.sent(),[3,11];case 10:F=void 0,G.label=11;case 11:return S=F,j=eQ(e,n),[4,qK1(e,r.integrations,j,n,y,A).catch(function(){return[]})];case 12:return k=G.sent(),N=c2(c2([TK1],M,!0),k,!0),S&&N.push(S),C=((u=n.integrations)===null||u===void 0?void 0:u.All)===!1&&!n.integrations["Segment.io"]||n.integrations&&n.integrations["Segment.io"]===!1,C?[3,14]:(z=(I=N).push,[4,EK1(r,j["Segment.io"],e.integrations)]);case 13:z.apply(I,[G.sent()]),G.label=14;case 14:return[4,r.register.apply(r,c2(c2([],N,!1),g,!1))];case 15:return q=G.sent(),[4,bQ1(r,c)];case 16:return G.sent(),Object.entries((h=e.enabledMiddleware)!==null&&h!==void 0?h:{}).some(function(c0){var t0=c0[1];return t0})?[4,Promise.resolve().then(()=>$2a).then(function(c0){var t0=c0.remoteMiddlewares;return S1(e0,void 0,void 0,function(){var n0,l0;return L1(this,function(J){switch(J.label){case 0:return[4,t0(q,e,n.obfuscate)];case 1:return n0=J.sent(),l0=n0.map(function(W0){return r.addSourceMiddleware(W0)}),[2,Promise.all(l0)]}})})})]:[3,18];case 17:G.sent(),G.label=18;case 18:return[2,q]}})})}function tX1(a,e,r){var n,l,o,c,m,u,h,g,A,y,E;return e===void 0&&(e={}),S1(this,void 0,void 0,function(){var M,O,S,F,j,k,N,C,I,z,q,e0,G;return L1(this,function(c0){switch(c0.label){case 0:return e.disable===!0?[2,[new KY,$n.system()]]:(e.globalAnalyticsKey&&gQ1(e.globalAnalyticsKey),a.cdnURL&&SK1(a.cdnURL),e.initialPageview&&r.add(new lS("page",[])),M=(n=a.cdnURL)!==null&&n!==void 0?n:OS(),(l=a.cdnSettings)!==null&&l!==void 0?(S=l,[3,3]):[3,1]);case 1:return[4,YK1(a.writeKey,M)];case 2:S=c0.sent(),c0.label=3;case 3:return O=S,e.updateCDNSettings&&(O=e.updateCDNSettings(O)),typeof e.disable!="function"?[3,5]:[4,e.disable(O)];case 4:if(F=c0.sent(),F)return[2,[new KY,$n.system()]];c0.label=5;case 5:return j=(c=(o=O.integrations["Segment.io"])===null||o===void 0?void 0:o.retryQueue)!==null&&c!==void 0?c:!0,e=a0({retryQueue:j},e),k=new QY(a0(a0({},a),{cdnSettings:O,cdnURL:M}),e),GK1(k),N=(m=a.plugins)!==null&&m!==void 0?m:[],C=(u=a.classicIntegrations)!==null&&u!==void 0?u:[],I=(h=e.integrations)===null||h===void 0?void 0:h["Segment.io"],AY.initRemoteMetrics(a0(a0({},O.metrics),{host:(g=I==null?void 0:I.apiHost)!==null&&g!==void 0?g:(A=O.metrics)===null||A===void 0?void 0:A.host,protocol:I==null?void 0:I.protocol})),[4,eX1(a.writeKey,O,k,e,N,C,r)];case 6:return z=c0.sent(),q=(y=window.location.search)!==null&&y!==void 0?y:"",e0=(E=window.location.hash)!==null&&E!==void 0?E:"",G=q.length?q:e0.replace(/(?=#).*(?=\?)/,""),G.includes("ajs_")?[4,k.queryString(G).catch(console.error)]:[3,8];case 7:c0.sent(),c0.label=8;case 8:return k.initialized=!0,k.emit("initialize",a,e),[4,JK1(k,r)];case 9:return c0.sent(),[2,[k,z]]}})})}var aX1=function(a){Z8(e,a);function e(){var r=this,n=qw(),l=n.promise,o=n.resolve;return r=a.call(this,function(c){return l.then(function(m){var u=m[0],h=m[1];return tX1(u,h,c)})})||this,r._resolveLoadStart=function(c,m){return o([c,m])},r}return e.prototype.load=function(r,n){return n===void 0&&(n={}),this._resolveLoadStart(r,n),this},e.load=function(r,n){return n===void 0&&(n={}),new e().load(r,n)},e.standalone=function(r,n){return e.load({writeKey:r},n).then(function(l){return l[0]})},e}(OQ1);const lQ=(a,e=!1)=>{if(!a)return null;const r=aX1.load({writeKey:a,trackAppLifecycleEvents:!0});return{track:(n,l=null)=>{r.track(n,l)},screen:(n,l=null)=>{r.screen(n,l)},identify:(n,l=null)=>{if(n){const o={campusName:l==null?void 0:l.campus,church:l==null?void 0:l.church,email:l==null?void 0:l.email,firstName:l==null?void 0:l.firstName,lastName:l==null?void 0:l.lastName,nickName:l==null?void 0:l.nickName,userId:l==null?void 0:l.id,originId:l==null?void 0:l.originId,originType:l==null?void 0:l.originType,apollosId:n};e&&(l!=null&&l.originId)?r.identify(l==null?void 0:l.originId,o):r.identify(n,o)}},group:(n,l=null)=>{n&&r.group(n,l)},alias:n=>{r.alias(n)},reset:()=>{r.reset()},flush:()=>{r.flush()}}},LS=p.createContext(),rX1=U8`
978
978
  query GetAnalyticsUser {